elbe-ui 0.2.11 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1308,7 +1308,7 @@ var require_react_development = __commonJS((exports, module) => {
1308
1308
  }
1309
1309
  }
1310
1310
  }
1311
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1311
+ function checkPropTypes(typeSpecs, values, location2, componentName, element) {
1312
1312
  {
1313
1313
  var has = Function.call.bind(hasOwnProperty);
1314
1314
  for (var typeSpecName in typeSpecs) {
@@ -1316,23 +1316,23 @@ var require_react_development = __commonJS((exports, module) => {
1316
1316
  var error$1 = undefined;
1317
1317
  try {
1318
1318
  if (typeof typeSpecs[typeSpecName] !== "function") {
1319
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1319
+ var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1320
1320
  err.name = "Invariant Violation";
1321
1321
  throw err;
1322
1322
  }
1323
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1323
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1324
1324
  } catch (ex) {
1325
1325
  error$1 = ex;
1326
1326
  }
1327
1327
  if (error$1 && !(error$1 instanceof Error)) {
1328
1328
  setCurrentlyValidatingElement(element);
1329
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1329
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
1330
1330
  setCurrentlyValidatingElement(null);
1331
1331
  }
1332
1332
  if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1333
1333
  loggedTypeFailures[error$1.message] = true;
1334
1334
  setCurrentlyValidatingElement(element);
1335
- error("Failed %s type: %s", location, error$1.message);
1335
+ error("Failed %s type: %s", location2, error$1.message);
1336
1336
  setCurrentlyValidatingElement(null);
1337
1337
  }
1338
1338
  }
@@ -15900,9 +15900,9 @@ var index = Object.freeze({
15900
15900
  ZoomIn,
15901
15901
  ZoomOut
15902
15902
  });
15903
- var $CircleXIcon = CircleX;
15904
15903
  var $X = X;
15905
15904
  var $icons = index;
15905
+
15906
15906
  // node_modules/preact/dist/preact.mjs
15907
15907
  var d = function(n, l) {
15908
15908
  for (var u in l)
@@ -16259,6 +16259,7 @@ n = p.slice, l = { __e: function(n2, l2, u2, t2) {
16259
16259
  }, b.prototype.render = k, i = [], r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
16260
16260
  return n2.__v.__b - l2.__v.__b;
16261
16261
  }, P.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
16262
+
16262
16263
  // node_modules/preact/hooks/dist/hooks.mjs
16263
16264
  var d2 = function(n2, t2) {
16264
16265
  c2.__h && c2.__h(r2, n2, o2 || t2), o2 = 0;
@@ -16437,106 +16438,1142 @@ c2.__b = function(n2) {
16437
16438
  };
16438
16439
  var k2 = typeof requestAnimationFrame == "function";
16439
16440
 
16441
+ // node_modules/@preact/signals-core/dist/signals-core.mjs
16442
+ var t3 = function() {
16443
+ if (r3 > 1) {
16444
+ r3--;
16445
+ return;
16446
+ }
16447
+ let i3, t4 = false;
16448
+ while (s3 !== undefined) {
16449
+ let o3 = s3;
16450
+ s3 = undefined;
16451
+ f3++;
16452
+ while (o3 !== undefined) {
16453
+ const n2 = o3.o;
16454
+ o3.o = undefined;
16455
+ o3.f &= -3;
16456
+ if (!(8 & o3.f) && v3(o3))
16457
+ try {
16458
+ o3.c();
16459
+ } catch (o4) {
16460
+ if (!t4) {
16461
+ i3 = o4;
16462
+ t4 = true;
16463
+ }
16464
+ }
16465
+ o3 = n2;
16466
+ }
16467
+ }
16468
+ f3 = 0;
16469
+ r3--;
16470
+ if (t4)
16471
+ throw i3;
16472
+ };
16473
+ var c3 = function(i3) {
16474
+ if (n2 === undefined)
16475
+ return;
16476
+ let t4 = i3.n;
16477
+ if (t4 === undefined || t4.t !== n2) {
16478
+ t4 = { i: 0, S: i3, p: n2.s, n: undefined, t: n2, e: undefined, x: undefined, r: t4 };
16479
+ if (n2.s !== undefined)
16480
+ n2.s.n = t4;
16481
+ n2.s = t4;
16482
+ i3.n = t4;
16483
+ if (32 & n2.f)
16484
+ i3.S(t4);
16485
+ return t4;
16486
+ } else if (t4.i === -1) {
16487
+ t4.i = 0;
16488
+ if (t4.n !== undefined) {
16489
+ t4.n.p = t4.p;
16490
+ if (t4.p !== undefined)
16491
+ t4.p.n = t4.n;
16492
+ t4.p = n2.s;
16493
+ t4.n = undefined;
16494
+ n2.s.n = t4;
16495
+ n2.s = t4;
16496
+ }
16497
+ return t4;
16498
+ }
16499
+ };
16500
+ var u3 = function(i3) {
16501
+ this.v = i3;
16502
+ this.i = 0;
16503
+ this.n = undefined;
16504
+ this.t = undefined;
16505
+ };
16506
+ var d3 = function(i3) {
16507
+ return new u3(i3);
16508
+ };
16509
+ var v3 = function(i3) {
16510
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
16511
+ if (t4.S.i !== t4.i || !t4.S.h() || t4.S.i !== t4.i)
16512
+ return true;
16513
+ return false;
16514
+ };
16515
+ var l3 = function(i3) {
16516
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n) {
16517
+ const o3 = t4.S.n;
16518
+ if (o3 !== undefined)
16519
+ t4.r = o3;
16520
+ t4.S.n = t4;
16521
+ t4.i = -1;
16522
+ if (t4.n === undefined) {
16523
+ i3.s = t4;
16524
+ break;
16525
+ }
16526
+ }
16527
+ };
16528
+ var y3 = function(i3) {
16529
+ let t4, o3 = i3.s;
16530
+ while (o3 !== undefined) {
16531
+ const i4 = o3.p;
16532
+ if (o3.i === -1) {
16533
+ o3.S.U(o3);
16534
+ if (i4 !== undefined)
16535
+ i4.n = o3.n;
16536
+ if (o3.n !== undefined)
16537
+ o3.n.p = i4;
16538
+ } else
16539
+ t4 = o3;
16540
+ o3.S.n = o3.r;
16541
+ if (o3.r !== undefined)
16542
+ o3.r = undefined;
16543
+ o3 = i4;
16544
+ }
16545
+ i3.s = t4;
16546
+ };
16547
+ var a3 = function(i3) {
16548
+ u3.call(this, undefined);
16549
+ this.x = i3;
16550
+ this.s = undefined;
16551
+ this.g = e3 - 1;
16552
+ this.f = 4;
16553
+ };
16554
+ var w3 = function(i3) {
16555
+ return new a3(i3);
16556
+ };
16557
+ var _3 = function(i3) {
16558
+ const o3 = i3.u;
16559
+ i3.u = undefined;
16560
+ if (typeof o3 == "function") {
16561
+ r3++;
16562
+ const s3 = n2;
16563
+ n2 = undefined;
16564
+ try {
16565
+ o3();
16566
+ } catch (t4) {
16567
+ i3.f &= -2;
16568
+ i3.f |= 8;
16569
+ g3(i3);
16570
+ throw t4;
16571
+ } finally {
16572
+ n2 = s3;
16573
+ t3();
16574
+ }
16575
+ }
16576
+ };
16577
+ var g3 = function(i3) {
16578
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
16579
+ t4.S.U(t4);
16580
+ i3.x = undefined;
16581
+ i3.s = undefined;
16582
+ _3(i3);
16583
+ };
16584
+ var p3 = function(i3) {
16585
+ if (n2 !== this)
16586
+ throw new Error("Out-of-order effect");
16587
+ y3(this);
16588
+ n2 = i3;
16589
+ this.f &= -2;
16590
+ if (8 & this.f)
16591
+ g3(this);
16592
+ t3();
16593
+ };
16594
+ var b2 = function(i3) {
16595
+ this.x = i3;
16596
+ this.u = undefined;
16597
+ this.s = undefined;
16598
+ this.o = undefined;
16599
+ this.f = 32;
16600
+ };
16601
+ var E2 = function(i3) {
16602
+ const t4 = new b2(i3);
16603
+ try {
16604
+ t4.c();
16605
+ } catch (i4) {
16606
+ t4.d();
16607
+ throw i4;
16608
+ }
16609
+ return t4.d.bind(t4);
16610
+ };
16611
+ var i3 = Symbol.for("preact-signals");
16612
+ var n2;
16613
+ var s3;
16614
+ var r3 = 0;
16615
+ var f3 = 0;
16616
+ var e3 = 0;
16617
+ u3.prototype.brand = i3;
16618
+ u3.prototype.h = function() {
16619
+ return true;
16620
+ };
16621
+ u3.prototype.S = function(i4) {
16622
+ if (this.t !== i4 && i4.e === undefined) {
16623
+ i4.x = this.t;
16624
+ if (this.t !== undefined)
16625
+ this.t.e = i4;
16626
+ this.t = i4;
16627
+ }
16628
+ };
16629
+ u3.prototype.U = function(i4) {
16630
+ if (this.t !== undefined) {
16631
+ const { e: t4, x: o3 } = i4;
16632
+ if (t4 !== undefined) {
16633
+ t4.x = o3;
16634
+ i4.e = undefined;
16635
+ }
16636
+ if (o3 !== undefined) {
16637
+ o3.e = t4;
16638
+ i4.x = undefined;
16639
+ }
16640
+ if (i4 === this.t)
16641
+ this.t = o3;
16642
+ }
16643
+ };
16644
+ u3.prototype.subscribe = function(i4) {
16645
+ return E2(() => {
16646
+ const t4 = this.value, o3 = n2;
16647
+ n2 = undefined;
16648
+ try {
16649
+ i4(t4);
16650
+ } finally {
16651
+ n2 = o3;
16652
+ }
16653
+ });
16654
+ };
16655
+ u3.prototype.valueOf = function() {
16656
+ return this.value;
16657
+ };
16658
+ u3.prototype.toString = function() {
16659
+ return this.value + "";
16660
+ };
16661
+ u3.prototype.toJSON = function() {
16662
+ return this.value;
16663
+ };
16664
+ u3.prototype.peek = function() {
16665
+ const i4 = n2;
16666
+ n2 = undefined;
16667
+ try {
16668
+ return this.value;
16669
+ } finally {
16670
+ n2 = i4;
16671
+ }
16672
+ };
16673
+ Object.defineProperty(u3.prototype, "value", { get() {
16674
+ const i4 = c3(this);
16675
+ if (i4 !== undefined)
16676
+ i4.i = this.i;
16677
+ return this.v;
16678
+ }, set(i4) {
16679
+ if (i4 !== this.v) {
16680
+ if (f3 > 100)
16681
+ throw new Error("Cycle detected");
16682
+ this.v = i4;
16683
+ this.i++;
16684
+ e3++;
16685
+ r3++;
16686
+ try {
16687
+ for (let i5 = this.t;i5 !== undefined; i5 = i5.x)
16688
+ i5.t.N();
16689
+ } finally {
16690
+ t3();
16691
+ }
16692
+ }
16693
+ } });
16694
+ (a3.prototype = new u3).h = function() {
16695
+ this.f &= -3;
16696
+ if (1 & this.f)
16697
+ return false;
16698
+ if ((36 & this.f) == 32)
16699
+ return true;
16700
+ this.f &= -5;
16701
+ if (this.g === e3)
16702
+ return true;
16703
+ this.g = e3;
16704
+ this.f |= 1;
16705
+ if (this.i > 0 && !v3(this)) {
16706
+ this.f &= -2;
16707
+ return true;
16708
+ }
16709
+ const i4 = n2;
16710
+ try {
16711
+ l3(this);
16712
+ n2 = this;
16713
+ const i5 = this.x();
16714
+ if (16 & this.f || this.v !== i5 || this.i === 0) {
16715
+ this.v = i5;
16716
+ this.f &= -17;
16717
+ this.i++;
16718
+ }
16719
+ } catch (i5) {
16720
+ this.v = i5;
16721
+ this.f |= 16;
16722
+ this.i++;
16723
+ }
16724
+ n2 = i4;
16725
+ y3(this);
16726
+ this.f &= -2;
16727
+ return true;
16728
+ };
16729
+ a3.prototype.S = function(i4) {
16730
+ if (this.t === undefined) {
16731
+ this.f |= 36;
16732
+ for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
16733
+ i5.S.S(i5);
16734
+ }
16735
+ u3.prototype.S.call(this, i4);
16736
+ };
16737
+ a3.prototype.U = function(i4) {
16738
+ if (this.t !== undefined) {
16739
+ u3.prototype.U.call(this, i4);
16740
+ if (this.t === undefined) {
16741
+ this.f &= -33;
16742
+ for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
16743
+ i5.S.U(i5);
16744
+ }
16745
+ }
16746
+ };
16747
+ a3.prototype.N = function() {
16748
+ if (!(2 & this.f)) {
16749
+ this.f |= 6;
16750
+ for (let i4 = this.t;i4 !== undefined; i4 = i4.x)
16751
+ i4.t.N();
16752
+ }
16753
+ };
16754
+ Object.defineProperty(a3.prototype, "value", { get() {
16755
+ if (1 & this.f)
16756
+ throw new Error("Cycle detected");
16757
+ const i4 = c3(this);
16758
+ this.h();
16759
+ if (i4 !== undefined)
16760
+ i4.i = this.i;
16761
+ if (16 & this.f)
16762
+ throw this.v;
16763
+ return this.v;
16764
+ } });
16765
+ b2.prototype.c = function() {
16766
+ const i4 = this.S();
16767
+ try {
16768
+ if (8 & this.f)
16769
+ return;
16770
+ if (this.x === undefined)
16771
+ return;
16772
+ const t4 = this.x();
16773
+ if (typeof t4 == "function")
16774
+ this.u = t4;
16775
+ } finally {
16776
+ i4();
16777
+ }
16778
+ };
16779
+ b2.prototype.S = function() {
16780
+ if (1 & this.f)
16781
+ throw new Error("Cycle detected");
16782
+ this.f |= 1;
16783
+ this.f &= -9;
16784
+ _3(this);
16785
+ l3(this);
16786
+ r3++;
16787
+ const i4 = n2;
16788
+ n2 = this;
16789
+ return p3.bind(this, i4);
16790
+ };
16791
+ b2.prototype.N = function() {
16792
+ if (!(2 & this.f)) {
16793
+ this.f |= 2;
16794
+ this.o = s3;
16795
+ s3 = this;
16796
+ }
16797
+ };
16798
+ b2.prototype.d = function() {
16799
+ this.f |= 8;
16800
+ if (!(1 & this.f))
16801
+ g3(this);
16802
+ };
16803
+
16804
+ // node_modules/@preact/signals/dist/signals.mjs
16805
+ var c4 = function(t4, e4) {
16806
+ l[t4] = e4.bind(null, l[t4] || (() => {
16807
+ }));
16808
+ };
16809
+ var h3 = function(t4) {
16810
+ if (d4)
16811
+ d4();
16812
+ d4 = t4 && t4.S();
16813
+ };
16814
+ var p4 = function({ data: t4 }) {
16815
+ const i4 = useSignal(t4);
16816
+ i4.value = t4;
16817
+ const o3 = T2(() => {
16818
+ let t5 = this.__v;
16819
+ while (t5 = t5.__)
16820
+ if (t5.__c) {
16821
+ t5.__c.__$f |= 4;
16822
+ break;
16823
+ }
16824
+ this.__$u.c = () => {
16825
+ var t6;
16826
+ if (!t(o3.peek()) && ((t6 = this.base) == null ? undefined : t6.nodeType) === 3)
16827
+ this.base.data = o3.peek();
16828
+ else {
16829
+ this.__$f |= 1;
16830
+ this.setState({});
16831
+ }
16832
+ };
16833
+ return w3(() => {
16834
+ let t6 = i4.value.value;
16835
+ return t6 === 0 ? 0 : t6 === true ? "" : t6 || "";
16836
+ });
16837
+ }, []);
16838
+ return o3.value;
16839
+ };
16840
+ var v4 = function(t4, i4, e4, n3) {
16841
+ const o3 = i4 in t4 && t4.ownerSVGElement === undefined, r4 = d3(e4);
16842
+ return { o: (t5, i5) => {
16843
+ r4.value = t5;
16844
+ n3 = i5;
16845
+ }, d: E2(() => {
16846
+ const e5 = r4.value.value;
16847
+ if (n3[i4] !== e5) {
16848
+ n3[i4] = e5;
16849
+ if (o3)
16850
+ t4[i4] = e5;
16851
+ else if (e5)
16852
+ t4.setAttribute(i4, e5);
16853
+ else
16854
+ t4.removeAttribute(i4);
16855
+ }
16856
+ }) };
16857
+ };
16858
+ var useSignal = function(t4) {
16859
+ return T2(() => d3(t4), []);
16860
+ };
16861
+ var a4;
16862
+ var d4;
16863
+ p4.displayName = "_st";
16864
+ Object.defineProperties(u3.prototype, { constructor: { configurable: true, value: undefined }, type: { configurable: true, value: p4 }, props: { configurable: true, get() {
16865
+ return { data: this };
16866
+ } }, __b: { configurable: true, value: 1 } });
16867
+ c4("__b", (t4, i4) => {
16868
+ if (typeof i4.type == "string") {
16869
+ let t5, e4 = i4.props;
16870
+ for (let n3 in e4) {
16871
+ if (n3 === "children")
16872
+ continue;
16873
+ let o3 = e4[n3];
16874
+ if (o3 instanceof u3) {
16875
+ if (!t5)
16876
+ i4.__np = t5 = {};
16877
+ t5[n3] = o3;
16878
+ e4[n3] = o3.peek();
16879
+ }
16880
+ }
16881
+ }
16882
+ t4(i4);
16883
+ });
16884
+ c4("__r", (t4, i4) => {
16885
+ h3();
16886
+ let e4, n3 = i4.__c;
16887
+ if (n3) {
16888
+ n3.__$f &= -2;
16889
+ e4 = n3.__$u;
16890
+ if (e4 === undefined)
16891
+ n3.__$u = e4 = function(t5) {
16892
+ let i5;
16893
+ E2(function() {
16894
+ i5 = this;
16895
+ });
16896
+ i5.c = () => {
16897
+ n3.__$f |= 1;
16898
+ n3.setState({});
16899
+ };
16900
+ return i5;
16901
+ }();
16902
+ }
16903
+ a4 = n3;
16904
+ h3(e4);
16905
+ t4(i4);
16906
+ });
16907
+ c4("__e", (t4, i4, e4, n3) => {
16908
+ h3();
16909
+ a4 = undefined;
16910
+ t4(i4, e4, n3);
16911
+ });
16912
+ c4("diffed", (t4, i4) => {
16913
+ h3();
16914
+ a4 = undefined;
16915
+ let e4;
16916
+ if (typeof i4.type == "string" && (e4 = i4.__e)) {
16917
+ let { __np: t5, props: n3 } = i4;
16918
+ if (t5) {
16919
+ let i5 = e4.U;
16920
+ if (i5)
16921
+ for (let e5 in i5) {
16922
+ let n4 = i5[e5];
16923
+ if (n4 !== undefined && !(e5 in t5)) {
16924
+ n4.d();
16925
+ i5[e5] = undefined;
16926
+ }
16927
+ }
16928
+ else {
16929
+ i5 = {};
16930
+ e4.U = i5;
16931
+ }
16932
+ for (let o3 in t5) {
16933
+ let r4 = i5[o3], f4 = t5[o3];
16934
+ if (r4 === undefined) {
16935
+ r4 = v4(e4, o3, f4, n3);
16936
+ i5[o3] = r4;
16937
+ } else
16938
+ r4.o(f4, n3);
16939
+ }
16940
+ }
16941
+ }
16942
+ t4(i4);
16943
+ });
16944
+ c4("unmount", (t4, i4) => {
16945
+ if (typeof i4.type == "string") {
16946
+ let t5 = i4.__e;
16947
+ if (t5) {
16948
+ const i5 = t5.U;
16949
+ if (i5) {
16950
+ t5.U = undefined;
16951
+ for (let t6 in i5) {
16952
+ let e4 = i5[t6];
16953
+ if (e4)
16954
+ e4.d();
16955
+ }
16956
+ }
16957
+ }
16958
+ } else {
16959
+ let t5 = i4.__c;
16960
+ if (t5) {
16961
+ const i5 = t5.__$u;
16962
+ if (i5) {
16963
+ t5.__$u = undefined;
16964
+ i5.d();
16965
+ }
16966
+ }
16967
+ }
16968
+ t4(i4);
16969
+ });
16970
+ c4("__h", (t4, i4, e4, n3) => {
16971
+ if (n3 < 3 || n3 === 9)
16972
+ i4.__$f |= 2;
16973
+ t4(i4, e4, n3);
16974
+ });
16975
+ b.prototype.shouldComponentUpdate = function(t4, i4) {
16976
+ const e4 = this.__$u;
16977
+ if (!(e4 && e4.s !== undefined || 4 & this.__$f))
16978
+ return true;
16979
+ if (3 & this.__$f)
16980
+ return true;
16981
+ for (let t5 in i4)
16982
+ return true;
16983
+ for (let i5 in t4)
16984
+ if (i5 !== "__source" && t4[i5] !== this.props[i5])
16985
+ return true;
16986
+ for (let i5 in this.props)
16987
+ if (!(i5 in t4))
16988
+ return true;
16989
+ return false;
16990
+ };
16991
+
16992
+ // node_modules/preact-router/dist/preact-router.mjs
16993
+ var c5 = function(n3, t4) {
16994
+ for (var r4 in t4)
16995
+ n3[r4] = t4[r4];
16996
+ return n3;
16997
+ };
16998
+ var s4 = function(n3, t4, r4) {
16999
+ var i4, o3 = /(?:\?([^#]*))?(#.*)?$/, e4 = n3.match(o3), u4 = {};
17000
+ if (e4 && e4[1])
17001
+ for (var f4 = e4[1].split("&"), c6 = 0;c6 < f4.length; c6++) {
17002
+ var s5 = f4[c6].split("=");
17003
+ u4[decodeURIComponent(s5[0])] = decodeURIComponent(s5.slice(1).join("="));
17004
+ }
17005
+ n3 = d5(n3.replace(o3, "")), t4 = d5(t4 || "");
17006
+ for (var h4 = Math.max(n3.length, t4.length), v5 = 0;v5 < h4; v5++)
17007
+ if (t4[v5] && t4[v5].charAt(0) === ":") {
17008
+ var l4 = t4[v5].replace(/(^:|[+*?]+$)/g, ""), p5 = (t4[v5].match(/[+*?]+$/) || a5)[0] || "", m3 = ~p5.indexOf("+"), y4 = ~p5.indexOf("*"), U = n3[v5] || "";
17009
+ if (!U && !y4 && (p5.indexOf("?") < 0 || m3)) {
17010
+ i4 = false;
17011
+ break;
17012
+ }
17013
+ if (u4[l4] = decodeURIComponent(U), m3 || y4) {
17014
+ u4[l4] = n3.slice(v5).map(decodeURIComponent).join("/");
17015
+ break;
17016
+ }
17017
+ } else if (t4[v5] !== n3[v5]) {
17018
+ i4 = false;
17019
+ break;
17020
+ }
17021
+ return (r4.default === true || i4 !== false) && u4;
17022
+ };
17023
+ var h4 = function(n3, t4) {
17024
+ return n3.rank < t4.rank ? 1 : n3.rank > t4.rank ? -1 : n3.index - t4.index;
17025
+ };
17026
+ var v5 = function(n3, t4) {
17027
+ return n3.index = t4, n3.rank = function(n4) {
17028
+ return n4.props.default ? 0 : d5(n4.props.path).map(l4).join("");
17029
+ }(n3), n3.props;
17030
+ };
17031
+ var d5 = function(n3) {
17032
+ return n3.replace(/(^\/+|\/+$)/g, "").split("/");
17033
+ };
17034
+ var l4 = function(n3) {
17035
+ return n3.charAt(0) == ":" ? 1 + "*+?".indexOf(n3.charAt(n3.length - 1)) || 4 : 5;
17036
+ };
17037
+ var R = function() {
17038
+ var n3;
17039
+ return "" + ((n3 = U && U.location ? U.location : U && U.getCurrentLocation ? U.getCurrentLocation() : typeof location != "undefined" ? location : p5).pathname || "") + (n3.search || "");
17040
+ };
17041
+ var $2 = function(n3, t4) {
17042
+ return t4 === undefined && (t4 = false), typeof n3 != "string" && n3.url && (t4 = n3.replace, n3 = n3.url), function(n4) {
17043
+ for (var t5 = m3.length;t5--; )
17044
+ if (m3[t5].canRoute(n4))
17045
+ return true;
17046
+ return false;
17047
+ }(n3) && function(n4, t5) {
17048
+ t5 === undefined && (t5 = "push"), U && U[t5] ? U[t5](n4) : typeof history != "undefined" && history[t5 + "State"] && history[t5 + "State"](null, null, n4);
17049
+ }(n3, t4 ? "replace" : "push"), I2(n3);
17050
+ };
17051
+ var I2 = function(n3) {
17052
+ for (var t4 = false, r4 = 0;r4 < m3.length; r4++)
17053
+ m3[r4].routeTo(n3) && (t4 = true);
17054
+ return t4;
17055
+ };
17056
+ var M2 = function(n3) {
17057
+ if (n3 && n3.getAttribute) {
17058
+ var t4 = n3.getAttribute("href"), r4 = n3.getAttribute("target");
17059
+ if (t4 && t4.match(/^\//g) && (!r4 || r4.match(/^_?self$/i)))
17060
+ return $2(t4);
17061
+ }
17062
+ };
17063
+ var b3 = function(n3) {
17064
+ return n3.stopImmediatePropagation && n3.stopImmediatePropagation(), n3.stopPropagation && n3.stopPropagation(), n3.preventDefault(), false;
17065
+ };
17066
+ var W = function(n3) {
17067
+ if (!(n3.ctrlKey || n3.metaKey || n3.altKey || n3.shiftKey || n3.button)) {
17068
+ var t4 = n3.target;
17069
+ do {
17070
+ if (t4.localName === "a" && t4.getAttribute("href")) {
17071
+ if (t4.hasAttribute("data-native") || t4.hasAttribute("native"))
17072
+ return;
17073
+ if (M2(t4))
17074
+ return b3(n3);
17075
+ }
17076
+ } while (t4 = t4.parentNode);
17077
+ }
17078
+ };
17079
+ var D3 = function(n3) {
17080
+ n3.history && (U = n3.history), this.state = { url: n3.url || R() };
17081
+ };
17082
+ var a5 = {};
17083
+ var p5 = {};
17084
+ var m3 = [];
17085
+ var y4 = [];
17086
+ var U = null;
17087
+ var g4 = { url: R() };
17088
+ var k3 = G(g4);
17089
+ var w4 = false;
17090
+ c5(D3.prototype = new b, { shouldComponentUpdate: function(n3) {
17091
+ return n3.static !== true || n3.url !== this.props.url || n3.onChange !== this.props.onChange;
17092
+ }, canRoute: function(n3) {
17093
+ var t4 = H(this.props.children);
17094
+ return this.g(t4, n3) !== undefined;
17095
+ }, routeTo: function(n3) {
17096
+ this.setState({ url: n3 });
17097
+ var t4 = this.canRoute(n3);
17098
+ return this.p || this.forceUpdate(), t4;
17099
+ }, componentWillMount: function() {
17100
+ this.p = true;
17101
+ }, componentDidMount: function() {
17102
+ var n3 = this;
17103
+ w4 || (w4 = true, U || addEventListener("popstate", function() {
17104
+ I2(R());
17105
+ }), addEventListener("click", W)), m3.push(this), U && (this.u = U.listen(function(t4) {
17106
+ var r4 = t4.location || t4;
17107
+ n3.routeTo("" + (r4.pathname || "") + (r4.search || ""));
17108
+ })), this.p = false;
17109
+ }, componentWillUnmount: function() {
17110
+ typeof this.u == "function" && this.u(), m3.splice(m3.indexOf(this), 1);
17111
+ }, componentWillUpdate: function() {
17112
+ this.p = true;
17113
+ }, componentDidUpdate: function() {
17114
+ this.p = false;
17115
+ }, g: function(n3, t4) {
17116
+ n3 = n3.filter(v5).sort(h4);
17117
+ for (var r4 = 0;r4 < n3.length; r4++) {
17118
+ var i4 = n3[r4], o3 = s4(t4, i4.props.path, i4.props);
17119
+ if (o3)
17120
+ return [i4, o3];
17121
+ }
17122
+ }, render: function(n3, t4) {
17123
+ var e4, u4, f4 = n3.onChange, a6 = t4.url, s5 = this.c, h5 = this.g(H(n3.children), a6);
17124
+ if (h5 && (u4 = E(h5[0], c5(c5({ url: a6, matches: e4 = h5[1] }, e4), { key: undefined, ref: undefined }))), a6 !== (s5 && s5.url)) {
17125
+ c5(g4, s5 = this.c = { url: a6, previous: s5 && s5.url, current: u4, path: u4 ? u4.props.path : null, matches: e4 }), s5.router = this, s5.active = u4 ? [u4] : [];
17126
+ for (var v6 = y4.length;v6--; )
17127
+ y4[v6]({});
17128
+ typeof f4 == "function" && f4(s5);
17129
+ }
17130
+ return _(k3.Provider, { value: s5 }, u4);
17131
+ } });
17132
+
17133
+ // src/service/s_api.ts
17134
+ var rethrow = function(e4, code, message) {
17135
+ if (e4 && e4.code !== null && e4.message !== null)
17136
+ throw e4;
17137
+ throw { code, message, data: e4 };
17138
+ };
17139
+ function ifApiError(e4) {
17140
+ if (e4 && e4.code !== null && e4.message !== null)
17141
+ return e4;
17142
+ return null;
17143
+ }
17144
+ var _noArgs = {};
17145
+
17146
+ class ApiService {
17147
+ apiURL;
17148
+ static _i = null;
17149
+ static get i() {
17150
+ if (!ApiService._i)
17151
+ throw "ApiService not initialized. Call ApiService.init(apiURL)";
17152
+ return ApiService._i;
17153
+ }
17154
+ constructor(apiURL) {
17155
+ this.apiURL = apiURL;
17156
+ }
17157
+ static init(apiURL) {
17158
+ if (ApiService._i)
17159
+ throw "ApiService already initialized";
17160
+ ApiService._i = new ApiService(apiURL);
17161
+ }
17162
+ async _fetch(p6, method, { path, query, body }) {
17163
+ try {
17164
+ p6 = path ? p6.replace(/:([a-zA-Z0-9_]+)/g, (m4, p1) => {
17165
+ const v6 = path[p1];
17166
+ if (v6 === undefined)
17167
+ throw { code: 400, message: `missing parameter ${p1}` };
17168
+ return v6?.toString() ?? "";
17169
+ }) : p6;
17170
+ const queryStr = query != null ? "?" + new URLSearchParams(query).toString() : "";
17171
+ const response = await fetch(this.apiURL + p6 + queryStr, {
17172
+ method,
17173
+ credentials: "include",
17174
+ headers: { "Content-Type": "application/json" },
17175
+ body: body ? JSON.stringify(body) : undefined
17176
+ });
17177
+ if (response.ok) {
17178
+ try {
17179
+ return await response.json();
17180
+ } catch (e4) {
17181
+ return null;
17182
+ }
17183
+ }
17184
+ let data = null;
17185
+ try {
17186
+ data = await response.clone().json();
17187
+ } catch (e4) {
17188
+ data = await response.text();
17189
+ }
17190
+ throw {
17191
+ code: response.status,
17192
+ message: data.message ?? "undefined error",
17193
+ data
17194
+ };
17195
+ } catch (e4) {
17196
+ rethrow(e4, 0, "unknown error");
17197
+ }
17198
+ }
17199
+ async get(path, args) {
17200
+ return this._fetch(path, "GET", args || _noArgs);
17201
+ }
17202
+ async post(path, args) {
17203
+ return this._fetch(path, "POST", args || _noArgs);
17204
+ }
17205
+ async delete(path, args) {
17206
+ return this._fetch(path, "DELETE", args || _noArgs);
17207
+ }
17208
+ }
17209
+
17210
+ // src/ui/components/error_view.tsx
17211
+ function ErrorView({
17212
+ error,
17213
+ retry,
17214
+ debug
17215
+ }) {
17216
+ const apiError = ifApiError(error) ?? {
17217
+ code: 0,
17218
+ message: "unknown error",
17219
+ data: error
17220
+ };
17221
+ return !debug ? u4(PrettyErrorView, {
17222
+ apiError,
17223
+ retry
17224
+ }, undefined, false, undefined, this) : u4("div", {
17225
+ class: "column padded card inverse cross-stretch",
17226
+ children: [
17227
+ u4("h3", {
17228
+ style: "margin: 0",
17229
+ children: [
17230
+ "ERROR: ",
17231
+ apiError.code
17232
+ ]
17233
+ }, undefined, true, undefined, this),
17234
+ u4("p", {
17235
+ children: apiError.message
17236
+ }, undefined, false, undefined, this),
17237
+ u4("pre", {
17238
+ children: JSON.stringify(apiError.data, null, 2)
17239
+ }, undefined, false, undefined, this)
17240
+ ]
17241
+ }, undefined, true, undefined, this);
17242
+ }
17243
+ function PrettyErrorView({
17244
+ apiError,
17245
+ retry,
17246
+ labels = {
17247
+ retry: "retry",
17248
+ home: "go home",
17249
+ details: "error details"
17250
+ }
17251
+ }) {
17252
+ const openSig = useSignal(false);
17253
+ return u4("div", {
17254
+ class: "column padded cross-center",
17255
+ style: "margin: 1rem 0",
17256
+ children: [
17257
+ u4(Icons.OctagonAlert, {}, undefined, false, undefined, this),
17258
+ u4("h3", {
17259
+ style: "margin: 0",
17260
+ children: apiError.code
17261
+ }, undefined, false, undefined, this),
17262
+ u4("span", {
17263
+ class: "pointer",
17264
+ onClick: () => openSig.value = true,
17265
+ children: apiError.message
17266
+ }, undefined, false, undefined, this),
17267
+ retry && u4("button", {
17268
+ class: "action",
17269
+ onClick: () => retry(),
17270
+ children: [
17271
+ u4(Icons.RotateCcw, {}, undefined, false, undefined, this),
17272
+ " ",
17273
+ labels.retry ?? "retry"
17274
+ ]
17275
+ }, undefined, true, undefined, this),
17276
+ apiError.code === 404 && u4("button", {
17277
+ class: "action",
17278
+ onClick: () => $2("/"),
17279
+ children: [
17280
+ u4(Icons.House, {}, undefined, false, undefined, this),
17281
+ labels.home ?? "go home"
17282
+ ]
17283
+ }, undefined, true, undefined, this),
17284
+ u4(ElbeDialog, {
17285
+ title: labels.details ?? "error details",
17286
+ open: openSig.value,
17287
+ onClose: () => openSig.value = false,
17288
+ children: u4("pre", {
17289
+ class: "card inverse",
17290
+ children: JSON.stringify(apiError.data, null, 2)
17291
+ }, undefined, false, undefined, this)
17292
+ }, undefined, false, undefined, this)
17293
+ ]
17294
+ }, undefined, true, undefined, this);
17295
+ }
17296
+ // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
17297
+ var u4 = function(e4, t4, n3, o3, i4, u5) {
17298
+ t4 || (t4 = {});
17299
+ var a6, c6, p6 = t4;
17300
+ if ("ref" in p6)
17301
+ for (c6 in p6 = {}, t4)
17302
+ c6 == "ref" ? a6 = t4[c6] : p6[c6] = t4[c6];
17303
+ var l5 = { type: e4, props: p6, key: n3, ref: a6, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f4, __i: -1, __u: 0, __source: i4, __self: u5 };
17304
+ if (typeof e4 == "function" && (a6 = e4.defaultProps))
17305
+ for (c6 in a6)
17306
+ p6[c6] === undefined && (p6[c6] = a6[c6]);
17307
+ return l.vnode && l.vnode(l5), l5;
17308
+ };
17309
+ var f4 = 0;
17310
+ var i4 = Array.isArray;
17311
+
17312
+ // src/ui/components/spinner.tsx
17313
+ function Spinner({ padding = 2 }) {
17314
+ return u4("div", {
17315
+ style: { padding: `${padding}rem` },
17316
+ class: "centered",
17317
+ children: u4("div", {
17318
+ class: "rotate-box",
17319
+ children: u4(Icons.LoaderCircle, {}, undefined, false, undefined, this)
17320
+ }, undefined, false, undefined, this)
17321
+ }, undefined, false, undefined, this);
17322
+ }
17323
+
17324
+ // src/bit/bit.tsx
17325
+ function makeBit(name) {
17326
+ const c6 = G(null);
17327
+ c6.displayName = name;
17328
+ return c6;
17329
+ }
17330
+ function ProvideBit(context, parameters, worker, ctrl, children) {
17331
+ const s5 = useSignal({ loading: true });
17332
+ const _set = (n3) => {
17333
+ if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
17334
+ return;
17335
+ s5.value = n3;
17336
+ };
17337
+ const emit = (data) => _set({ data });
17338
+ const emitLoading = () => _set({ loading: true });
17339
+ const emitError = (error) => {
17340
+ console.warn(`BIT: ${context.displayName} emitted ERROR`, error);
17341
+ return _set({ error });
17342
+ };
17343
+ function map(m4) {
17344
+ const st = s5.value;
17345
+ if (st.loading)
17346
+ return m4.onLoading();
17347
+ if (st.error)
17348
+ return m4.onError(st.error);
17349
+ return m4.onData(st.data ?? null);
17350
+ }
17351
+ const c6 = ctrl(parameters, { emit, emitLoading, emitError, map, signal: s5 });
17352
+ worker(parameters, { emit, emitLoading, emitError, map, signal: s5 }, c6);
17353
+ return u4(context.Provider, {
17354
+ value: { ctrl: c6, state: s5 },
17355
+ children
17356
+ }, undefined, false, undefined, this);
17357
+ }
17358
+ function useBit(context) {
17359
+ try {
17360
+ let map = function(m4) {
17361
+ if (v6.loading)
17362
+ return (m4.onLoading || (() => u4(Spinner, {}, undefined, false, undefined, this)))();
17363
+ if (v6.error)
17364
+ return (m4.onError || ((e4) => u4(ErrorView, {
17365
+ error: e4,
17366
+ retry: ctrl.reload ?? null
17367
+ }, undefined, false, undefined, this)))(v6.error);
17368
+ return m4.onData(v6.data ?? null);
17369
+ };
17370
+ const { ctrl, state } = x2(context);
17371
+ const v6 = state.value;
17372
+ return {
17373
+ signal: state,
17374
+ ctrl,
17375
+ map,
17376
+ onData: (f5) => map({ onData: f5 })
17377
+ };
17378
+ } catch (e4) {
17379
+ const err = `BIT ERROR: NO ${context.displayName} PROVIDED`;
17380
+ console.error(err, e4);
17381
+ return {
17382
+ map: (_4) => u4("div", {
17383
+ children: err
17384
+ }, undefined, false, undefined, this),
17385
+ ctrl: null,
17386
+ signal: null,
17387
+ onData: () => u4("div", {
17388
+ children: err
17389
+ }, undefined, false, undefined, this)
17390
+ };
17391
+ }
17392
+ }
17393
+ // src/bit/ctrl_bit.tsx
17394
+ var make = function(name) {
17395
+ return makeBit(name);
17396
+ };
17397
+ var use = function(b4) {
17398
+ return useBit(b4);
17399
+ };
17400
+ function CtrlBit(ctrl, name) {
17401
+ const context = make((name || "Unknown") + "Bit");
17402
+ function Provide({ children, ...p6 }) {
17403
+ return ProvideBit(context, p6, async (p7, b4, c6) => {
17404
+ b4.emitLoading();
17405
+ try {
17406
+ if (c6 instanceof WorkerControl) {
17407
+ if (c6.reload)
17408
+ await c6.reload();
17409
+ }
17410
+ if (c6 instanceof StreamControl) {
17411
+ c6.stream = c6.listen();
17412
+ }
17413
+ } catch (e4) {
17414
+ b4.emitError(e4);
17415
+ }
17416
+ }, (p7, b4) => {
17417
+ const c6 = ctrl(p7, b4);
17418
+ y2(() => () => c6.dispose(), []);
17419
+ if (c6 instanceof WorkerControl) {
17420
+ c6.reload = async () => {
17421
+ b4.emitLoading();
17422
+ try {
17423
+ b4.emit(await c6.worker());
17424
+ } catch (e4) {
17425
+ b4.emitError(e4);
17426
+ }
17427
+ };
17428
+ }
17429
+ return c6;
17430
+ }, children);
17431
+ }
17432
+ return { Provide, use: () => use(context) };
17433
+ }
17434
+
17435
+ class BitControl {
17436
+ p;
17437
+ bit;
17438
+ constructor(p6, bit2) {
17439
+ this.bit = bit2;
17440
+ this.p = p6;
17441
+ }
17442
+ act(fn) {
17443
+ this.bit.map({
17444
+ onData: async (d6) => {
17445
+ try {
17446
+ await fn(d6);
17447
+ } catch (e4) {
17448
+ if (e4 && e4.code && e4.message)
17449
+ console.error(`[BitERROR] act: ${e4.code} (${e4.message})`);
17450
+ else
17451
+ console.error("[BitERROR] act: ", e4);
17452
+ }
17453
+ }
17454
+ });
17455
+ }
17456
+ dispose() {
17457
+ }
17458
+ }
17459
+
17460
+ class WorkerControl extends BitControl {
17461
+ constructor() {
17462
+ super(...arguments);
17463
+ }
17464
+ reload = null;
17465
+ }
17466
+
17467
+ class StreamControl extends BitControl {
17468
+ constructor() {
17469
+ super(...arguments);
17470
+ }
17471
+ stream = null;
17472
+ dispose() {
17473
+ if (this.stream)
17474
+ this.disposeStream(this.stream);
17475
+ }
17476
+ }
16440
17477
  // node_modules/preact/compat/dist/compat.mjs
16441
- var g3 = function(n2, t3) {
16442
- for (var e3 in t3)
16443
- n2[e3] = t3[e3];
16444
- return n2;
17478
+ var g5 = function(n3, t4) {
17479
+ for (var e4 in t4)
17480
+ n3[e4] = t4[e4];
17481
+ return n3;
16445
17482
  };
16446
- var E2 = function(n2, t3) {
16447
- for (var e3 in n2)
16448
- if (e3 !== "__source" && !(e3 in t3))
17483
+ var E3 = function(n3, t4) {
17484
+ for (var e4 in n3)
17485
+ if (e4 !== "__source" && !(e4 in t4))
16449
17486
  return true;
16450
- for (var r3 in t3)
16451
- if (r3 !== "__source" && n2[r3] !== t3[r3])
17487
+ for (var r4 in t4)
17488
+ if (r4 !== "__source" && n3[r4] !== t4[r4])
16452
17489
  return true;
16453
17490
  return false;
16454
17491
  };
16455
- var C3 = function(n2, t3) {
16456
- this.props = n2, this.context = t3;
17492
+ var C3 = function(n3, t4) {
17493
+ this.props = n3, this.context = t4;
16457
17494
  };
16458
- var x3 = function(n2, e3) {
16459
- function r3(n3) {
16460
- var t3 = this.props.ref, r4 = t3 == n3.ref;
16461
- return !r4 && t3 && (t3.call ? t3(null) : t3.current = null), e3 ? !e3(this.props, n3) || !r4 : E2(this.props, n3);
17495
+ var x3 = function(n3, e4) {
17496
+ function r4(n4) {
17497
+ var t4 = this.props.ref, r5 = t4 == n4.ref;
17498
+ return !r5 && t4 && (t4.call ? t4(null) : t4.current = null), e4 ? !e4(this.props, n4) || !r5 : E3(this.props, n4);
16462
17499
  }
16463
- function u3(e4) {
16464
- return this.shouldComponentUpdate = r3, _(n2, e4);
17500
+ function u5(e5) {
17501
+ return this.shouldComponentUpdate = r4, _(n3, e5);
16465
17502
  }
16466
- return u3.displayName = "Memo(" + (n2.displayName || n2.name) + ")", u3.prototype.isReactComponent = true, u3.__f = true, u3;
17503
+ return u5.displayName = "Memo(" + (n3.displayName || n3.name) + ")", u5.prototype.isReactComponent = true, u5.__f = true, u5;
16467
17504
  };
16468
- var k3 = function(n2) {
16469
- function t3(t4) {
16470
- var e3 = g3({}, t4);
16471
- return delete e3.ref, n2(e3, t4.ref || null);
17505
+ var k4 = function(n3) {
17506
+ function t4(t5) {
17507
+ var e4 = g5({}, t5);
17508
+ return delete e4.ref, n3(e4, t5.ref || null);
16472
17509
  }
16473
- return t3.$$typeof = w3, t3.render = t3, t3.prototype.isReactComponent = t3.__f = true, t3.displayName = "ForwardRef(" + (n2.displayName || n2.name) + ")", t3;
17510
+ return t4.$$typeof = w5, t4.render = t4, t4.prototype.isReactComponent = t4.__f = true, t4.displayName = "ForwardRef(" + (n3.displayName || n3.name) + ")", t4;
16474
17511
  };
16475
- var A3 = function(n2, t3, e3) {
16476
- return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
16477
- typeof n3.__c == "function" && n3.__c();
16478
- }), n2.__c.__H = null), (n2 = g3({}, n2)).__c != null && (n2.__c.__P === e3 && (n2.__c.__P = t3), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
16479
- return A3(n3, t3, e3);
16480
- })), n2;
17512
+ var A3 = function(n3, t4, e4) {
17513
+ return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) {
17514
+ typeof n4.__c == "function" && n4.__c();
17515
+ }), n3.__c.__H = null), (n3 = g5({}, n3)).__c != null && (n3.__c.__P === e4 && (n3.__c.__P = t4), n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) {
17516
+ return A3(n4, t4, e4);
17517
+ })), n3;
16481
17518
  };
16482
- var D3 = function(n2, t3, e3) {
16483
- return n2 && e3 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
16484
- return D3(n3, t3, e3);
16485
- }), n2.__c && n2.__c.__P === t3 && (n2.__e && e3.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e3)), n2;
17519
+ var D4 = function(n3, t4, e4) {
17520
+ return n3 && e4 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) {
17521
+ return D4(n4, t4, e4);
17522
+ }), n3.__c && n3.__c.__P === t4 && (n3.__e && e4.appendChild(n3.__e), n3.__c.__e = true, n3.__c.__P = e4)), n3;
16486
17523
  };
16487
17524
  var L2 = function() {
16488
17525
  this.__u = 0, this.t = null, this.__b = null;
16489
17526
  };
16490
- var O2 = function(n2) {
16491
- var t3 = n2.__.__c;
16492
- return t3 && t3.__a && t3.__a(n2);
17527
+ var O2 = function(n3) {
17528
+ var t4 = n3.__.__c;
17529
+ return t4 && t4.__a && t4.__a(n3);
16493
17530
  };
16494
- var F3 = function(n2) {
16495
- var e3, r3, u3;
17531
+ var F3 = function(n3) {
17532
+ var e4, r4, u5;
16496
17533
  function o3(o4) {
16497
- if (e3 || (e3 = n2()).then(function(n3) {
16498
- r3 = n3.default || n3;
16499
- }, function(n3) {
16500
- u3 = n3;
16501
- }), u3)
16502
- throw u3;
16503
- if (!r3)
16504
- throw e3;
16505
- return _(r3, o4);
17534
+ if (e4 || (e4 = n3()).then(function(n4) {
17535
+ r4 = n4.default || n4;
17536
+ }, function(n4) {
17537
+ u5 = n4;
17538
+ }), u5)
17539
+ throw u5;
17540
+ if (!r4)
17541
+ throw e4;
17542
+ return _(r4, o4);
16506
17543
  }
16507
17544
  return o3.displayName = "Lazy", o3.__f = true, o3;
16508
17545
  };
16509
- var U = function() {
17546
+ var U2 = function() {
16510
17547
  this.u = null, this.o = null;
16511
17548
  };
16512
- var W = function(n2) {
17549
+ var W2 = function(n3) {
16513
17550
  return this.getChildContext = function() {
16514
- return n2.context;
16515
- }, n2.children;
17551
+ return n3.context;
17552
+ }, n3.children;
16516
17553
  };
16517
- var P3 = function(n2) {
16518
- var e3 = this, r3 = n2.i;
16519
- e3.componentWillUnmount = function() {
16520
- B(null, e3.l), e3.l = null, e3.i = null;
16521
- }, e3.i && e3.i !== r3 && e3.componentWillUnmount(), e3.l || (e3.i = r3, e3.l = { nodeType: 1, parentNode: r3, childNodes: [], contains: function() {
17554
+ var P3 = function(n3) {
17555
+ var e4 = this, r4 = n3.i;
17556
+ e4.componentWillUnmount = function() {
17557
+ B(null, e4.l), e4.l = null, e4.i = null;
17558
+ }, e4.i && e4.i !== r4 && e4.componentWillUnmount(), e4.l || (e4.i = r4, e4.l = { nodeType: 1, parentNode: r4, childNodes: [], contains: function() {
16522
17559
  return true;
16523
- }, appendChild: function(n3) {
16524
- this.childNodes.push(n3), e3.i.appendChild(n3);
16525
- }, insertBefore: function(n3, t3) {
16526
- this.childNodes.push(n3), e3.i.appendChild(n3);
16527
- }, removeChild: function(n3) {
16528
- this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), e3.i.removeChild(n3);
16529
- } }), B(_(W, { context: e3.context }, n2.__v), e3.l);
17560
+ }, appendChild: function(n4) {
17561
+ this.childNodes.push(n4), e4.i.appendChild(n4);
17562
+ }, insertBefore: function(n4, t4) {
17563
+ this.childNodes.push(n4), e4.i.appendChild(n4);
17564
+ }, removeChild: function(n4) {
17565
+ this.childNodes.splice(this.childNodes.indexOf(n4) >>> 1, 1), e4.i.removeChild(n4);
17566
+ } }), B(_(W2, { context: e4.context }, n3.__v), e4.l);
16530
17567
  };
16531
- var j3 = function(n2, e3) {
16532
- var r3 = _(P3, { __v: n2, i: e3 });
16533
- return r3.containerInfo = e3, r3;
17568
+ var j3 = function(n3, e4) {
17569
+ var r4 = _(P3, { __v: n3, i: e4 });
17570
+ return r4.containerInfo = e4, r4;
16534
17571
  };
16535
- var q3 = function(n2, t3, e3) {
16536
- return t3.__k == null && (t3.textContent = ""), B(n2, t3), typeof e3 == "function" && e3(), n2 ? n2.__c : null;
17572
+ var q3 = function(n3, t4, e4) {
17573
+ return t4.__k == null && (t4.textContent = ""), B(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
16537
17574
  };
16538
- var G2 = function(n2, t3, e3) {
16539
- return D(n2, t3), typeof e3 == "function" && e3(), n2 ? n2.__c : null;
17575
+ var G2 = function(n3, t4, e4) {
17576
+ return D(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
16540
17577
  };
16541
17578
  var K = function() {
16542
17579
  };
@@ -16546,148 +17583,148 @@ var Q = function() {
16546
17583
  var X2 = function() {
16547
17584
  return this.defaultPrevented;
16548
17585
  };
16549
- var ln = function(n2) {
16550
- return _.bind(null, n2);
17586
+ var ln = function(n3) {
17587
+ return _.bind(null, n3);
16551
17588
  };
16552
- var fn = function(n2) {
16553
- return !!n2 && n2.$$typeof === z3;
17589
+ var fn = function(n3) {
17590
+ return !!n3 && n3.$$typeof === z3;
16554
17591
  };
16555
- var an = function(n2) {
16556
- return fn(n2) && n2.type === k;
17592
+ var an = function(n3) {
17593
+ return fn(n3) && n3.type === k;
16557
17594
  };
16558
- var sn = function(n2) {
16559
- return !!n2 && !!n2.displayName && (typeof n2.displayName == "string" || n2.displayName instanceof String) && n2.displayName.startsWith("Memo(");
17595
+ var sn = function(n3) {
17596
+ return !!n3 && !!n3.displayName && (typeof n3.displayName == "string" || n3.displayName instanceof String) && n3.displayName.startsWith("Memo(");
16560
17597
  };
16561
- var hn = function(n2) {
16562
- return fn(n2) ? E.apply(null, arguments) : n2;
17598
+ var hn = function(n3) {
17599
+ return fn(n3) ? E.apply(null, arguments) : n3;
16563
17600
  };
16564
- var vn = function(n2) {
16565
- return !!n2.__k && (B(null, n2), true);
17601
+ var vn = function(n3) {
17602
+ return !!n3.__k && (B(null, n3), true);
16566
17603
  };
16567
- var dn = function(n2) {
16568
- return n2 && (n2.base || n2.nodeType === 1 && n2) || null;
17604
+ var dn = function(n3) {
17605
+ return n3 && (n3.base || n3.nodeType === 1 && n3) || null;
16569
17606
  };
16570
- var _n = function(n2) {
16571
- n2();
17607
+ var _n = function(n3) {
17608
+ n3();
16572
17609
  };
16573
- var bn = function(n2) {
16574
- return n2;
17610
+ var bn = function(n3) {
17611
+ return n3;
16575
17612
  };
16576
17613
  var Sn = function() {
16577
17614
  return [false, _n];
16578
17615
  };
16579
- var Cn = function(n2, t3) {
16580
- var e3 = t3(), r3 = h2({ h: { __: e3, v: t3 } }), u3 = r3[0].h, o3 = r3[1];
17616
+ var Cn = function(n3, t4) {
17617
+ var e4 = t4(), r4 = h2({ h: { __: e4, v: t4 } }), u5 = r4[0].h, o3 = r4[1];
16581
17618
  return _2(function() {
16582
- u3.__ = e3, u3.v = t3, xn(u3) && o3({ h: u3 });
16583
- }, [n2, e3, t3]), y2(function() {
16584
- return xn(u3) && o3({ h: u3 }), n2(function() {
16585
- xn(u3) && o3({ h: u3 });
17619
+ u5.__ = e4, u5.v = t4, xn(u5) && o3({ h: u5 });
17620
+ }, [n3, e4, t4]), y2(function() {
17621
+ return xn(u5) && o3({ h: u5 }), n3(function() {
17622
+ xn(u5) && o3({ h: u5 });
16586
17623
  });
16587
- }, [n2]), e3;
17624
+ }, [n3]), e4;
16588
17625
  };
16589
- var xn = function(n2) {
16590
- var t3, e3, r3 = n2.v, u3 = n2.__;
17626
+ var xn = function(n3) {
17627
+ var t4, e4, r4 = n3.v, u5 = n3.__;
16591
17628
  try {
16592
- var o3 = r3();
16593
- return !((t3 = u3) === (e3 = o3) && (t3 !== 0 || 1 / t3 == 1 / e3) || t3 != t3 && e3 != e3);
16594
- } catch (n3) {
17629
+ var o3 = r4();
17630
+ return !((t4 = u5) === (e4 = o3) && (t4 !== 0 || 1 / t4 == 1 / e4) || t4 != t4 && e4 != e4);
17631
+ } catch (n4) {
16595
17632
  return true;
16596
17633
  }
16597
17634
  };
16598
- (C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(n2, t3) {
16599
- return E2(this.props, n2) || E2(this.state, t3);
17635
+ (C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(n3, t4) {
17636
+ return E3(this.props, n3) || E3(this.state, t4);
16600
17637
  };
16601
- var R = l.__b;
16602
- l.__b = function(n2) {
16603
- n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), R && R(n2);
17638
+ var R2 = l.__b;
17639
+ l.__b = function(n3) {
17640
+ n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), R2 && R2(n3);
16604
17641
  };
16605
- var w3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
16606
- var I2 = function(n2, t3) {
16607
- return n2 == null ? null : H(H(n2).map(t3));
17642
+ var w5 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
17643
+ var I3 = function(n3, t4) {
17644
+ return n3 == null ? null : H(H(n3).map(t4));
16608
17645
  };
16609
- var N2 = { map: I2, forEach: I2, count: function(n2) {
16610
- return n2 ? H(n2).length : 0;
16611
- }, only: function(n2) {
16612
- var t3 = H(n2);
16613
- if (t3.length !== 1)
17646
+ var N2 = { map: I3, forEach: I3, count: function(n3) {
17647
+ return n3 ? H(n3).length : 0;
17648
+ }, only: function(n3) {
17649
+ var t4 = H(n3);
17650
+ if (t4.length !== 1)
16614
17651
  throw "Children.only";
16615
- return t3[0];
17652
+ return t4[0];
16616
17653
  }, toArray: H };
16617
- var M2 = l.__e;
16618
- l.__e = function(n2, t3, e3, r3) {
16619
- if (n2.then) {
16620
- for (var u3, o3 = t3;o3 = o3.__; )
16621
- if ((u3 = o3.__c) && u3.__c)
16622
- return t3.__e == null && (t3.__e = e3.__e, t3.__k = e3.__k), u3.__c(n2, t3);
17654
+ var M3 = l.__e;
17655
+ l.__e = function(n3, t4, e4, r4) {
17656
+ if (n3.then) {
17657
+ for (var u5, o3 = t4;o3 = o3.__; )
17658
+ if ((u5 = o3.__c) && u5.__c)
17659
+ return t4.__e == null && (t4.__e = e4.__e, t4.__k = e4.__k), u5.__c(n3, t4);
16623
17660
  }
16624
- M2(n2, t3, e3, r3);
17661
+ M3(n3, t4, e4, r4);
16625
17662
  };
16626
17663
  var T3 = l.unmount;
16627
- l.unmount = function(n2) {
16628
- var t3 = n2.__c;
16629
- t3 && t3.__R && t3.__R(), t3 && 32 & n2.__u && (n2.type = null), T3 && T3(n2);
16630
- }, (L2.prototype = new b).__c = function(n2, t3) {
16631
- var e3 = t3.__c, r3 = this;
16632
- r3.t == null && (r3.t = []), r3.t.push(e3);
16633
- var u3 = O2(r3.__v), o3 = false, i3 = function() {
16634
- o3 || (o3 = true, e3.__R = null, u3 ? u3(c3) : c3());
17664
+ l.unmount = function(n3) {
17665
+ var t4 = n3.__c;
17666
+ t4 && t4.__R && t4.__R(), t4 && 32 & n3.__u && (n3.type = null), T3 && T3(n3);
17667
+ }, (L2.prototype = new b).__c = function(n3, t4) {
17668
+ var e4 = t4.__c, r4 = this;
17669
+ r4.t == null && (r4.t = []), r4.t.push(e4);
17670
+ var u5 = O2(r4.__v), o3 = false, i5 = function() {
17671
+ o3 || (o3 = true, e4.__R = null, u5 ? u5(c6) : c6());
16635
17672
  };
16636
- e3.__R = i3;
16637
- var c3 = function() {
16638
- if (!--r3.__u) {
16639
- if (r3.state.__a) {
16640
- var n3 = r3.state.__a;
16641
- r3.__v.__k[0] = D3(n3, n3.__c.__P, n3.__c.__O);
17673
+ e4.__R = i5;
17674
+ var c6 = function() {
17675
+ if (!--r4.__u) {
17676
+ if (r4.state.__a) {
17677
+ var n4 = r4.state.__a;
17678
+ r4.__v.__k[0] = D4(n4, n4.__c.__P, n4.__c.__O);
16642
17679
  }
16643
- var t4;
16644
- for (r3.setState({ __a: r3.__b = null });t4 = r3.t.pop(); )
16645
- t4.forceUpdate();
17680
+ var t5;
17681
+ for (r4.setState({ __a: r4.__b = null });t5 = r4.t.pop(); )
17682
+ t5.forceUpdate();
16646
17683
  }
16647
17684
  };
16648
- r3.__u++ || 32 & t3.__u || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n2.then(i3, i3);
17685
+ r4.__u++ || 32 & t4.__u || r4.setState({ __a: r4.__b = r4.__v.__k[0] }), n3.then(i5, i5);
16649
17686
  }, L2.prototype.componentWillUnmount = function() {
16650
17687
  this.t = [];
16651
- }, L2.prototype.render = function(n2, e3) {
17688
+ }, L2.prototype.render = function(n3, e4) {
16652
17689
  if (this.__b) {
16653
17690
  if (this.__v.__k) {
16654
- var r3 = document.createElement("div"), o3 = this.__v.__k[0].__c;
16655
- this.__v.__k[0] = A3(this.__b, r3, o3.__O = o3.__P);
17691
+ var r4 = document.createElement("div"), o3 = this.__v.__k[0].__c;
17692
+ this.__v.__k[0] = A3(this.__b, r4, o3.__O = o3.__P);
16656
17693
  }
16657
17694
  this.__b = null;
16658
17695
  }
16659
- var i3 = e3.__a && _(k, null, n2.fallback);
16660
- return i3 && (i3.__u &= -33), [_(k, null, e3.__a ? null : n2.children), i3];
17696
+ var i5 = e4.__a && _(k, null, n3.fallback);
17697
+ return i5 && (i5.__u &= -33), [_(k, null, e4.__a ? null : n3.children), i5];
16661
17698
  };
16662
- var V2 = function(n2, t3, e3) {
16663
- if (++e3[1] === e3[0] && n2.o.delete(t3), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.o.size))
16664
- for (e3 = n2.u;e3; ) {
16665
- for (;e3.length > 3; )
16666
- e3.pop()();
16667
- if (e3[1] < e3[0])
17699
+ var V2 = function(n3, t4, e4) {
17700
+ if (++e4[1] === e4[0] && n3.o.delete(t4), n3.props.revealOrder && (n3.props.revealOrder[0] !== "t" || !n3.o.size))
17701
+ for (e4 = n3.u;e4; ) {
17702
+ for (;e4.length > 3; )
17703
+ e4.pop()();
17704
+ if (e4[1] < e4[0])
16668
17705
  break;
16669
- n2.u = e3 = e3[2];
17706
+ n3.u = e4 = e4[2];
16670
17707
  }
16671
17708
  };
16672
- (U.prototype = new b).__a = function(n2) {
16673
- var t3 = this, e3 = O2(t3.__v), r3 = t3.o.get(n2);
16674
- return r3[0]++, function(u3) {
17709
+ (U2.prototype = new b).__a = function(n3) {
17710
+ var t4 = this, e4 = O2(t4.__v), r4 = t4.o.get(n3);
17711
+ return r4[0]++, function(u5) {
16675
17712
  var o3 = function() {
16676
- t3.props.revealOrder ? (r3.push(u3), V2(t3, n2, r3)) : u3();
17713
+ t4.props.revealOrder ? (r4.push(u5), V2(t4, n3, r4)) : u5();
16677
17714
  };
16678
- e3 ? e3(o3) : o3();
17715
+ e4 ? e4(o3) : o3();
16679
17716
  };
16680
- }, U.prototype.render = function(n2) {
17717
+ }, U2.prototype.render = function(n3) {
16681
17718
  this.u = null, this.o = new Map;
16682
- var t3 = H(n2.children);
16683
- n2.revealOrder && n2.revealOrder[0] === "b" && t3.reverse();
16684
- for (var e3 = t3.length;e3--; )
16685
- this.o.set(t3[e3], this.u = [1, 0, this.u]);
16686
- return n2.children;
16687
- }, U.prototype.componentDidUpdate = U.prototype.componentDidMount = function() {
16688
- var n2 = this;
16689
- this.o.forEach(function(t3, e3) {
16690
- V2(n2, e3, t3);
17719
+ var t4 = H(n3.children);
17720
+ n3.revealOrder && n3.revealOrder[0] === "b" && t4.reverse();
17721
+ for (var e4 = t4.length;e4--; )
17722
+ this.o.set(t4[e4], this.u = [1, 0, this.u]);
17723
+ return n3.children;
17724
+ }, U2.prototype.componentDidUpdate = U2.prototype.componentDidMount = function() {
17725
+ var n3 = this;
17726
+ this.o.forEach(function(t4, e4) {
17727
+ V2(n3, e4, t4);
16691
17728
  });
16692
17729
  };
16693
17730
  var z3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103;
@@ -16695,123 +17732,106 @@ var B3 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|
16695
17732
  var H2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
16696
17733
  var Z = /[A-Z0-9]/g;
16697
17734
  var Y = typeof document != "undefined";
16698
- var $2 = function(n2) {
16699
- return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
17735
+ var $3 = function(n3) {
17736
+ return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n3);
16700
17737
  };
16701
- b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t3) {
16702
- Object.defineProperty(b.prototype, t3, { configurable: true, get: function() {
16703
- return this["UNSAFE_" + t3];
16704
- }, set: function(n2) {
16705
- Object.defineProperty(this, t3, { configurable: true, writable: true, value: n2 });
17738
+ b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t4) {
17739
+ Object.defineProperty(b.prototype, t4, { configurable: true, get: function() {
17740
+ return this["UNSAFE_" + t4];
17741
+ }, set: function(n3) {
17742
+ Object.defineProperty(this, t4, { configurable: true, writable: true, value: n3 });
16706
17743
  } });
16707
17744
  });
16708
17745
  var J = l.event;
16709
- l.event = function(n2) {
16710
- return J && (n2 = J(n2)), n2.persist = K, n2.isPropagationStopped = Q, n2.isDefaultPrevented = X2, n2.nativeEvent = n2;
17746
+ l.event = function(n3) {
17747
+ return J && (n3 = J(n3)), n3.persist = K, n3.isPropagationStopped = Q, n3.isDefaultPrevented = X2, n3.nativeEvent = n3;
16711
17748
  };
16712
17749
  var nn;
16713
17750
  var tn = { enumerable: false, configurable: true, get: function() {
16714
17751
  return this.class;
16715
17752
  } };
16716
17753
  var en = l.vnode;
16717
- l.vnode = function(n2) {
16718
- typeof n2.type == "string" && function(n3) {
16719
- var { props: t3, type: e3 } = n3, u3 = {}, o3 = e3.indexOf("-") === -1;
16720
- for (var i3 in t3) {
16721
- var c3 = t3[i3];
16722
- if (!(i3 === "value" && ("defaultValue" in t3) && c3 == null || Y && i3 === "children" && e3 === "noscript" || i3 === "class" || i3 === "className")) {
16723
- var l3 = i3.toLowerCase();
16724
- i3 === "defaultValue" && "value" in t3 && t3.value == null ? i3 = "value" : i3 === "download" && c3 === true ? c3 = "" : l3 === "translate" && c3 === "no" ? c3 = false : l3[0] === "o" && l3[1] === "n" ? l3 === "ondoubleclick" ? i3 = "ondblclick" : l3 !== "onchange" || e3 !== "input" && e3 !== "textarea" || $2(t3.type) ? l3 === "onfocus" ? i3 = "onfocusin" : l3 === "onblur" ? i3 = "onfocusout" : H2.test(i3) && (i3 = l3) : l3 = i3 = "oninput" : o3 && B3.test(i3) ? i3 = i3.replace(Z, "-$&").toLowerCase() : c3 === null && (c3 = undefined), l3 === "oninput" && u3[i3 = l3] && (i3 = "oninputCapture"), u3[i3] = c3;
17754
+ l.vnode = function(n3) {
17755
+ typeof n3.type == "string" && function(n4) {
17756
+ var { props: t4, type: e4 } = n4, u5 = {}, o3 = e4.indexOf("-") === -1;
17757
+ for (var i5 in t4) {
17758
+ var c6 = t4[i5];
17759
+ if (!(i5 === "value" && ("defaultValue" in t4) && c6 == null || Y && i5 === "children" && e4 === "noscript" || i5 === "class" || i5 === "className")) {
17760
+ var l5 = i5.toLowerCase();
17761
+ i5 === "defaultValue" && "value" in t4 && t4.value == null ? i5 = "value" : i5 === "download" && c6 === true ? c6 = "" : l5 === "translate" && c6 === "no" ? c6 = false : l5[0] === "o" && l5[1] === "n" ? l5 === "ondoubleclick" ? i5 = "ondblclick" : l5 !== "onchange" || e4 !== "input" && e4 !== "textarea" || $3(t4.type) ? l5 === "onfocus" ? i5 = "onfocusin" : l5 === "onblur" ? i5 = "onfocusout" : H2.test(i5) && (i5 = l5) : l5 = i5 = "oninput" : o3 && B3.test(i5) ? i5 = i5.replace(Z, "-$&").toLowerCase() : c6 === null && (c6 = undefined), l5 === "oninput" && u5[i5 = l5] && (i5 = "oninputCapture"), u5[i5] = c6;
16725
17762
  }
16726
17763
  }
16727
- e3 == "select" && u3.multiple && Array.isArray(u3.value) && (u3.value = H(t3.children).forEach(function(n4) {
16728
- n4.props.selected = u3.value.indexOf(n4.props.value) != -1;
16729
- })), e3 == "select" && u3.defaultValue != null && (u3.value = H(t3.children).forEach(function(n4) {
16730
- n4.props.selected = u3.multiple ? u3.defaultValue.indexOf(n4.props.value) != -1 : u3.defaultValue == n4.props.value;
16731
- })), t3.class && !t3.className ? (u3.class = t3.class, Object.defineProperty(u3, "className", tn)) : (t3.className && !t3.class || t3.class && t3.className) && (u3.class = u3.className = t3.className), n3.props = u3;
16732
- }(n2), n2.$$typeof = z3, en && en(n2);
17764
+ e4 == "select" && u5.multiple && Array.isArray(u5.value) && (u5.value = H(t4.children).forEach(function(n5) {
17765
+ n5.props.selected = u5.value.indexOf(n5.props.value) != -1;
17766
+ })), e4 == "select" && u5.defaultValue != null && (u5.value = H(t4.children).forEach(function(n5) {
17767
+ n5.props.selected = u5.multiple ? u5.defaultValue.indexOf(n5.props.value) != -1 : u5.defaultValue == n5.props.value;
17768
+ })), t4.class && !t4.className ? (u5.class = t4.class, Object.defineProperty(u5, "className", tn)) : (t4.className && !t4.class || t4.class && t4.className) && (u5.class = u5.className = t4.className), n4.props = u5;
17769
+ }(n3), n3.$$typeof = z3, en && en(n3);
16733
17770
  };
16734
17771
  var rn = l.__r;
16735
- l.__r = function(n2) {
16736
- rn && rn(n2), nn = n2.__c;
17772
+ l.__r = function(n3) {
17773
+ rn && rn(n3), nn = n3.__c;
16737
17774
  };
16738
17775
  var un = l.diffed;
16739
- l.diffed = function(n2) {
16740
- un && un(n2);
16741
- var { props: t3, __e: e3 } = n2;
16742
- e3 != null && n2.type === "textarea" && "value" in t3 && t3.value !== e3.value && (e3.value = t3.value == null ? "" : t3.value), nn = null;
17776
+ l.diffed = function(n3) {
17777
+ un && un(n3);
17778
+ var { props: t4, __e: e4 } = n3;
17779
+ e4 != null && n3.type === "textarea" && "value" in t4 && t4.value !== e4.value && (e4.value = t4.value == null ? "" : t4.value), nn = null;
16743
17780
  };
16744
- var on = { ReactCurrentDispatcher: { current: { readContext: function(n2) {
16745
- return nn.__n[n2.__c].props.value;
17781
+ var on = { ReactCurrentDispatcher: { current: { readContext: function(n3) {
17782
+ return nn.__n[n3.__c].props.value;
16746
17783
  }, useCallback: q2, useContext: x2, useDebugValue: P2, useDeferredValue: bn, useEffect: y2, useId: g2, useImperativeHandle: F2, useInsertionEffect: gn, useLayoutEffect: _2, useMemo: T2, useReducer: p2, useRef: A2, useState: h2, useSyncExternalStore: Cn, useTransition: Sn } } };
16747
- var pn = function(n2, t3) {
16748
- return n2(t3);
17784
+ var pn = function(n3, t4) {
17785
+ return n3(t4);
16749
17786
  };
16750
- var mn = function(n2, t3) {
16751
- return n2(t3);
17787
+ var mn = function(n3, t4) {
17788
+ return n3(t4);
16752
17789
  };
16753
17790
  var yn = k;
16754
17791
  var gn = _2;
16755
17792
  var En = fn;
16756
- var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef: k3, flushSync: mn, unstable_batchedUpdates: pn, StrictMode: yn, Suspense: L2, SuspenseList: U, lazy: F3, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
17793
+ var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef: k4, flushSync: mn, unstable_batchedUpdates: pn, StrictMode: yn, Suspense: L2, SuspenseList: U2, lazy: F3, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
16757
17794
 
16758
17795
  // src/ui/components/badge.tsx
16759
- function TestBadge(p3) {
16760
- return new Badge2({ ...p3, colorStyle: "accent" });
17796
+ function TestBadge(p6) {
17797
+ return new Badge2({ ...p6, colorStyle: "accent" });
16761
17798
  }
16762
- // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
16763
- var u3 = function(e3, t3, n2, o3, i3, u4) {
16764
- t3 || (t3 = {});
16765
- var a3, c3, p3 = t3;
16766
- if ("ref" in p3)
16767
- for (c3 in p3 = {}, t3)
16768
- c3 == "ref" ? a3 = t3[c3] : p3[c3] = t3[c3];
16769
- var l3 = { type: e3, props: p3, key: n2, ref: a3, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f3, __i: -1, __u: 0, __source: i3, __self: u4 };
16770
- if (typeof e3 == "function" && (a3 = e3.defaultProps))
16771
- for (c3 in a3)
16772
- p3[c3] === undefined && (p3[c3] = a3[c3]);
16773
- return l.vnode && l.vnode(l3), l3;
16774
- };
16775
- var f3 = 0;
16776
- var i3 = Array.isArray;
16777
-
16778
- // src/ui/components/badge.tsx
16779
17799
  class Badge2 extends Rn.Component {
16780
17800
  constructor(props) {
16781
17801
  super(props);
16782
17802
  }
16783
- static accent(p3) {
16784
- return u3(Badge2, {
16785
- ...p3,
17803
+ static accent(p6) {
17804
+ return u4(Badge2, {
17805
+ ...p6,
16786
17806
  colorStyle: "accent"
16787
17807
  }, undefined, false, undefined, this);
16788
17808
  }
16789
- static error(p3) {
16790
- return u3(Badge2, {
16791
- ...p3,
17809
+ static error(p6) {
17810
+ return u4(Badge2, {
17811
+ ...p6,
16792
17812
  colorStyle: "error"
16793
17813
  }, undefined, false, undefined, this);
16794
17814
  }
16795
- static warning(p3) {
16796
- return u3(Badge2, {
16797
- ...p3,
17815
+ static warning(p6) {
17816
+ return u4(Badge2, {
17817
+ ...p6,
16798
17818
  colorStyle: "warning"
16799
17819
  }, undefined, false, undefined, this);
16800
17820
  }
16801
- static success(p3) {
16802
- return u3(Badge2, {
16803
- ...p3,
17821
+ static success(p6) {
17822
+ return u4(Badge2, {
17823
+ ...p6,
16804
17824
  colorStyle: "success"
16805
17825
  }, undefined, false, undefined, this);
16806
17826
  }
16807
- static info(p3) {
16808
- return u3(Badge2, {
16809
- ...p3,
17827
+ static info(p6) {
17828
+ return u4(Badge2, {
17829
+ ...p6,
16810
17830
  colorStyle: "info"
16811
17831
  }, undefined, false, undefined, this);
16812
17832
  }
16813
17833
  render() {
16814
- return u3("div", {
17834
+ return u4("div", {
16815
17835
  style: {
16816
17836
  position: "relative",
16817
17837
  display: "inline-block"
@@ -16819,7 +17839,7 @@ class Badge2 extends Rn.Component {
16819
17839
  children: [
16820
17840
  this.props.child,
16821
17841
  this.props.children,
16822
- u3("div", {
17842
+ u4("div", {
16823
17843
  class: `b ${this.props.colorStyle} ${this.props.class ?? ""}`,
16824
17844
  style: {
16825
17845
  position: "absolute",
@@ -16843,14 +17863,14 @@ class Badge2 extends Rn.Component {
16843
17863
  }
16844
17864
  }
16845
17865
  // src/ui/components/box.tsx
16846
- function applyProps(p3, classes, style) {
17866
+ function applyProps(p6, classes, style) {
16847
17867
  if (Array.isArray(classes)) {
16848
- classes = classes.filter((c3) => c3).join(" ");
17868
+ classes = classes.filter((c6) => c6).join(" ");
16849
17869
  }
16850
17870
  return {
16851
- class: `${classes || ""} ${p3.class || ""}`,
16852
- style: { ...style ?? {}, ...p3.style ?? {} },
16853
- ...p3.tooltip ? { ["data-tooltip"]: p3.tooltip } : {}
17871
+ class: `${classes || ""} ${p6.class || ""}`,
17872
+ style: { ...style ?? {}, ...p6.style ?? {} },
17873
+ ...p6.tooltip ? { ["data-tooltip"]: p6.tooltip } : {}
16854
17874
  };
16855
17875
  }
16856
17876
  function Box2({
@@ -16869,19 +17889,19 @@ function Box2({
16869
17889
  }
16870
17890
  // src/ui/util/error_view.tsx
16871
17891
  function _ElbeErr(msg) {
16872
- return u3("div", {
17892
+ return u4("div", {
16873
17893
  class: "row text-s gap-half",
16874
17894
  style: "background: #ee0044; color: white; border-radius: 4px; text-align: left; padding: .5rem",
16875
17895
  children: [
16876
- u3($CircleXIcon, {}, undefined, false, undefined, this),
16877
- u3("div", {
17896
+ u4(Icons.CircleX, {}, undefined, false, undefined, this),
17897
+ u4("div", {
16878
17898
  class: "column gap-none cross-stretch",
16879
17899
  children: [
16880
- u3("b", {
17900
+ u4("b", {
16881
17901
  class: "text-s",
16882
17902
  children: "elbe error"
16883
17903
  }, undefined, false, undefined, this),
16884
- u3("span", {
17904
+ u4("span", {
16885
17905
  style: "margin-top: -.125rem",
16886
17906
  children: msg
16887
17907
  }, undefined, false, undefined, this)
@@ -16893,7 +17913,7 @@ function _ElbeErr(msg) {
16893
17913
 
16894
17914
  // src/ui/components/button.tsx
16895
17915
  var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner) {
16896
- return message || icon ? u3("button", {
17916
+ return message || icon ? u4("button", {
16897
17917
  ...applyProps(elbe, [
16898
17918
  "row",
16899
17919
  "main-center",
@@ -16907,7 +17927,7 @@ var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner)
16907
17927
  onClick: () => onTap && onTap(),
16908
17928
  children: [
16909
17929
  typeof icon === "function" ? icon({}) : icon,
16910
- message && u3("span", {
17930
+ message && u4("span", {
16911
17931
  children: message
16912
17932
  }, undefined, false, undefined, this)
16913
17933
  ]
@@ -16917,10 +17937,10 @@ class Button extends Rn.Component {
16917
17937
  constructor() {
16918
17938
  super(...arguments);
16919
17939
  }
16920
- static major = (p3) => _btn(p3, "major");
16921
- static minor = (p3) => _btn(p3, "minor");
16922
- static action = (p3) => _btn(p3, "action");
16923
- static integrated = (p3) => _btn(p3, "integrated");
17940
+ static major = (p6) => _btn(p6, "major");
17941
+ static minor = (p6) => _btn(p6, "minor");
17942
+ static action = (p6) => _btn(p6, "action");
17943
+ static integrated = (p6) => _btn(p6, "integrated");
16924
17944
  render() {
16925
17945
  return _btn(this.props, this.props.colorManner);
16926
17946
  }
@@ -16938,7 +17958,7 @@ function Card({
16938
17958
  children,
16939
17959
  ...elbe
16940
17960
  }) {
16941
- return u3("div", {
17961
+ return u4("div", {
16942
17962
  ...applyProps(elbe, ["card", colorScheme, colorStyle, colorManner, mode], { padding: `${padding}rem`, margin: `${margin}rem` }),
16943
17963
  onClick: onTap,
16944
17964
  onContextMenu: onLongTap,
@@ -16947,7 +17967,7 @@ function Card({
16947
17967
  }
16948
17968
  // src/ui/components/util.tsx
16949
17969
  function Spaced({ amount = 1 }) {
16950
- return u3("div", {
17970
+ return u4("div", {
16951
17971
  style: { width: amount + "rem", height: amount + "rem" }
16952
17972
  }, undefined, false, undefined, this);
16953
17973
  }
@@ -16960,38 +17980,38 @@ function ElbeDialog({
16960
17980
  children,
16961
17981
  _style
16962
17982
  }) {
16963
- return u3("dialog", {
16964
- onClick: (e3) => e3.stopPropagation(),
17983
+ return u4("dialog", {
17984
+ onClick: (e4) => e4.stopPropagation(),
16965
17985
  open,
16966
17986
  style: "text-align: start" + (_style ?? ""),
16967
- children: u3("div", {
17987
+ children: u4("div", {
16968
17988
  class: " card plain-opaque padding-none",
16969
17989
  style: "max-width: 40rem; min-width: 10rem",
16970
17990
  children: [
16971
- u3("div", {
17991
+ u4("div", {
16972
17992
  class: "row cross-start padded",
16973
17993
  children: [
16974
- u3("div", {
17994
+ u4("div", {
16975
17995
  class: "flex-1 b",
16976
17996
  style: "margin-top: 0.6rem; font-size: 1.2rem",
16977
17997
  children: title
16978
17998
  }, undefined, false, undefined, this),
16979
- u3("button", {
17999
+ u4("button", {
16980
18000
  class: "integrated",
16981
18001
  style: "width: 3rem",
16982
- onClick: (e3) => {
16983
- e3.stopPropagation();
16984
- e3.preventDefault();
18002
+ onClick: (e4) => {
18003
+ e4.stopPropagation();
18004
+ e4.preventDefault();
16985
18005
  onClose();
16986
18006
  },
16987
- children: u3($X, {}, undefined, false, undefined, this)
18007
+ children: u4($X, {}, undefined, false, undefined, this)
16988
18008
  }, undefined, false, undefined, this)
16989
18009
  ]
16990
18010
  }, undefined, true, undefined, this),
16991
- u3(Spaced, {
18011
+ u4(Spaced, {
16992
18012
  amount: 0.5
16993
18013
  }, undefined, false, undefined, this),
16994
- u3("div", {
18014
+ u4("div", {
16995
18015
  class: "padded",
16996
18016
  style: "max-height: 80vh; overflow: auto",
16997
18017
  children
@@ -17002,7 +18022,7 @@ function ElbeDialog({
17002
18022
  }
17003
18023
  // src/ui/components/flex.tsx
17004
18024
  function FlexSpace({}) {
17005
- return u3("div", {
18025
+ return u4("div", {
17006
18026
  style: "flex:1"
17007
18027
  }, undefined, false, undefined, this);
17008
18028
  }
@@ -17012,9 +18032,9 @@ function Column({
17012
18032
  cross,
17013
18033
  stretch = false,
17014
18034
  children,
17015
- ...p3
18035
+ ...p6
17016
18036
  }) {
17017
- return _Flex(false, { gap, main, cross, stretch, children }, p3);
18037
+ return _Flex(false, { gap, main, cross, stretch, children }, p6);
17018
18038
  }
17019
18039
  function Row({
17020
18040
  gap = 1,
@@ -17022,24 +18042,23 @@ function Row({
17022
18042
  cross,
17023
18043
  stretch = false,
17024
18044
  children,
17025
- ...p3
18045
+ ...p6
17026
18046
  }) {
17027
- return _Flex(true, { gap, main, cross, stretch, children }, p3);
18047
+ return _Flex(true, { gap, main, cross, stretch, children }, p6);
17028
18048
  }
17029
- var _Flex = function(row, p3, elbe) {
17030
- return u3("div", {
18049
+ var _Flex = function(row, p6, elbe) {
18050
+ return u4("div", {
17031
18051
  ...applyProps(elbe, row ? "row" : "column", {
17032
- justifyContent: p3.main,
17033
- alignItems: p3.cross || (p3.stretch ? "stretch" : "center"),
17034
- gap: `${p3.gap}rem`
18052
+ justifyContent: p6.main,
18053
+ alignItems: p6.cross || (p6.stretch ? "stretch" : "center"),
18054
+ gap: `${p6.gap}rem`
17035
18055
  }),
17036
- children: p3.children
18056
+ children: p6.children
17037
18057
  }, undefined, false, undefined, this);
17038
18058
  };
17039
18059
  // src/ui/components/icon_button.tsx
17040
18060
  var _btn2 = function({ icon, onTap, ...elbe }, colorManner = "major") {
17041
- console.log("icon", icon);
17042
- return u3("button", {
18061
+ return u4("button", {
17043
18062
  ...applyProps(elbe, [
17044
18063
  "row",
17045
18064
  "main-center",
@@ -17053,17 +18072,18 @@ var _btn2 = function({ icon, onTap, ...elbe }, colorManner = "major") {
17053
18072
  height: "3rem",
17054
18073
  width: "3rem"
17055
18074
  }),
17056
- onClick: () => onTap && onTap()
18075
+ onClick: () => onTap && onTap(),
18076
+ children: typeof icon === "function" ? icon({}) : icon
17057
18077
  }, undefined, false, undefined, this);
17058
18078
  };
17059
18079
  class IconButton extends Rn.Component {
17060
18080
  constructor() {
17061
18081
  super(...arguments);
17062
18082
  }
17063
- static major = (p3) => _btn2(p3, "major");
17064
- static minor = (p3) => _btn2(p3, "minor");
17065
- static action = (p3) => _btn2(p3, "action");
17066
- static integrated = (p3) => _btn2(p3, "integrated");
18083
+ static major = (p6) => _btn2(p6, "major");
18084
+ static minor = (p6) => _btn2(p6, "minor");
18085
+ static action = (p6) => _btn2(p6, "action");
18086
+ static integrated = (p6) => _btn2(p6, "integrated");
17067
18087
  render() {
17068
18088
  return _btn2(this.props, this.props.colorManner);
17069
18089
  }
@@ -17075,7 +18095,7 @@ function Checkbox({
17075
18095
  onChange,
17076
18096
  ...elbe
17077
18097
  }) {
17078
- return u3("div", {
18098
+ return u4("div", {
17079
18099
  class: `row ${onChange ? "" : "disabled"}`,
17080
18100
  style: {
17081
18101
  gap: ".75rem",
@@ -17083,14 +18103,14 @@ function Checkbox({
17083
18103
  opacity: onChange ? "" : "0.5"
17084
18104
  },
17085
18105
  children: [
17086
- u3("input", {
18106
+ u4("input", {
17087
18107
  type: "checkbox",
17088
18108
  ...applyProps(elbe),
17089
18109
  disabled: !onChange,
17090
18110
  checked: value,
17091
- onChange: (e3) => onChange?.(e3.currentTarget.checked)
18111
+ onChange: (e4) => onChange?.(e4.currentTarget.checked)
17092
18112
  }, undefined, false, undefined, this),
17093
- label && u3("div", {
18113
+ label && u4("div", {
17094
18114
  style: "margin-top: -.25rem",
17095
18115
  children: label
17096
18116
  }, undefined, false, undefined, this)
@@ -17108,7 +18128,7 @@ function _TextArea({
17108
18128
  onInput,
17109
18129
  ...elbe
17110
18130
  }) {
17111
- return u3("div", {
18131
+ return u4("div", {
17112
18132
  style: {
17113
18133
  width: "12rem !important",
17114
18134
  display: "flex",
@@ -17116,7 +18136,7 @@ function _TextArea({
17116
18136
  alignItems: "stretch"
17117
18137
  },
17118
18138
  "data-tooltip": elbe.tooltip,
17119
- children: u3("textarea", {
18139
+ children: u4("textarea", {
17120
18140
  ...applyProps(elbe, null, { width: "100%" }),
17121
18141
  label,
17122
18142
  size: 5,
@@ -17125,7 +18145,7 @@ function _TextArea({
17125
18145
  rows,
17126
18146
  maxLength,
17127
18147
  value,
17128
- onInput: (e3) => onInput && onInput(e3.currentTarget.value),
18148
+ onInput: (e4) => onInput && onInput(e4.currentTarget.value),
17129
18149
  readonly
17130
18150
  }, undefined, false, undefined, this)
17131
18151
  }, undefined, false, undefined, this);
@@ -17136,34 +18156,34 @@ class Field extends Rn.Component {
17136
18156
  constructor() {
17137
18157
  super(...arguments);
17138
18158
  }
17139
- static text = (p3) => u3(Field, {
17140
- ...p3,
18159
+ static text = (p6) => u4(Field, {
18160
+ ...p6,
17141
18161
  type: "text"
17142
18162
  }, undefined, false, undefined, this);
17143
- static number = (p3) => u3(Field, {
17144
- ...p3,
18163
+ static number = (p6) => u4(Field, {
18164
+ ...p6,
17145
18165
  type: "number"
17146
18166
  }, undefined, false, undefined, this);
17147
- static password = (p3) => u3(Field, {
17148
- ...p3,
18167
+ static password = (p6) => u4(Field, {
18168
+ ...p6,
17149
18169
  type: "password"
17150
18170
  }, undefined, false, undefined, this);
17151
- static date = (p3) => u3(Field, {
17152
- ...p3,
18171
+ static date = (p6) => u4(Field, {
18172
+ ...p6,
17153
18173
  type: "date"
17154
18174
  }, undefined, false, undefined, this);
17155
- static time = (p3) => u3(Field, {
17156
- ...p3,
18175
+ static time = (p6) => u4(Field, {
18176
+ ...p6,
17157
18177
  type: "time"
17158
18178
  }, undefined, false, undefined, this);
17159
- static email = (p3) => u3(Field, {
17160
- ...p3,
18179
+ static email = (p6) => u4(Field, {
18180
+ ...p6,
17161
18181
  type: "email"
17162
18182
  }, undefined, false, undefined, this);
17163
18183
  static multiLine = _TextArea;
17164
18184
  render() {
17165
18185
  const { label, hint, readonly, type, value, onInput, ...elbe } = this.props;
17166
- return u3("div", {
18186
+ return u4("div", {
17167
18187
  style: {
17168
18188
  width: "12rem !important",
17169
18189
  display: "flex",
@@ -17171,7 +18191,7 @@ class Field extends Rn.Component {
17171
18191
  alignItems: "stretch"
17172
18192
  },
17173
18193
  "data-tooltip": this.props?.tooltip,
17174
- children: u3("input", {
18194
+ children: u4("input", {
17175
18195
  type: this.props.type,
17176
18196
  ...applyProps(this.props, null, {
17177
18197
  width: "100%"
@@ -17180,7 +18200,7 @@ class Field extends Rn.Component {
17180
18200
  label: this.props.label,
17181
18201
  placeholder: this.props.hint,
17182
18202
  value: this.props.value,
17183
- onInput: (e3) => this.props.onInput && this.props.onInput(e3.currentTarget.value),
18203
+ onInput: (e4) => this.props.onInput && this.props.onInput(e4.currentTarget.value),
17184
18204
  readonly: this.props.readonly
17185
18205
  }, undefined, false, undefined, this)
17186
18206
  }, undefined, false, undefined, this);
@@ -17195,7 +18215,7 @@ function Range({
17195
18215
  step = 1,
17196
18216
  ...elbe
17197
18217
  }) {
17198
- return min > max ? _ElbeErr("Range: max is smaller than min") : u3("input", {
18218
+ return min > max ? _ElbeErr("Range: max is smaller than min") : u4("input", {
17199
18219
  type: "range",
17200
18220
  ...applyProps(elbe, null, {
17201
18221
  filter: onChange ? "" : "grayscale(1)",
@@ -17208,7 +18228,7 @@ function Range({
17208
18228
  step,
17209
18229
  disabled: !onChange,
17210
18230
  value,
17211
- onInput: (e3) => onChange?.(Number(e3.currentTarget.value))
18231
+ onInput: (e4) => onChange?.(Number(e4.currentTarget.value))
17212
18232
  }, undefined, false, undefined, this);
17213
18233
  }
17214
18234
  // src/ui/components/input/select.tsx
@@ -17219,12 +18239,12 @@ function Select({
17219
18239
  onChange,
17220
18240
  ...elbe
17221
18241
  }) {
17222
- return u3("select", {
18242
+ return u4("select", {
17223
18243
  ...applyProps(elbe),
17224
18244
  value,
17225
18245
  label,
17226
- onChange: (e3) => onChange(e3.currentTarget.value),
17227
- children: options.map(({ key, label: label2 }) => u3("option", {
18246
+ onChange: (e4) => onChange(e4.currentTarget.value),
18247
+ children: options.map(({ key, label: label2 }) => u4("option", {
17228
18248
  value: key,
17229
18249
  children: label2
17230
18250
  }, key, false, undefined, this))
@@ -17235,8 +18255,8 @@ class Padded extends Rn.Component {
17235
18255
  constructor(props) {
17236
18256
  super(props);
17237
18257
  }
17238
- static all = ({ amount = 1, ...p3 }) => u3(Padded, {
17239
- ...p3,
18258
+ static all = ({ amount = 1, ...p6 }) => u4(Padded, {
18259
+ ...p6,
17240
18260
  top: amount,
17241
18261
  right: amount,
17242
18262
  bottom: amount,
@@ -17245,16 +18265,16 @@ class Padded extends Rn.Component {
17245
18265
  static symmetric = ({
17246
18266
  vertical = 0,
17247
18267
  horizontal = 0,
17248
- ...p3
17249
- }) => u3(Padded, {
17250
- ...p3,
18268
+ ...p6
18269
+ }) => u4(Padded, {
18270
+ ...p6,
17251
18271
  top: vertical,
17252
18272
  bottom: vertical,
17253
18273
  left: horizontal,
17254
18274
  right: horizontal
17255
18275
  }, undefined, false, undefined, this);
17256
18276
  render() {
17257
- return u3("div", {
18277
+ return u4("div", {
17258
18278
  style: {
17259
18279
  paddingTop: `${this.props.top}rem`,
17260
18280
  paddingRight: `${this.props.right}rem`,
@@ -17267,44 +18287,44 @@ class Padded extends Rn.Component {
17267
18287
  }
17268
18288
  // src/ui/components/text.tsx
17269
18289
  class Text2 extends Rn.Component {
17270
- static h1 = (p3) => u3(Text2, {
17271
- ...p3,
18290
+ static h1 = (p6) => u4(Text2, {
18291
+ ...p6,
17272
18292
  typeStyle: "header-1"
17273
18293
  }, undefined, false, undefined, this);
17274
- static h2 = (p3) => u3(Text2, {
17275
- ...p3,
18294
+ static h2 = (p6) => u4(Text2, {
18295
+ ...p6,
17276
18296
  typeStyle: "header-2"
17277
18297
  }, undefined, false, undefined, this);
17278
- static h3 = (p3) => u3(Text2, {
17279
- ...p3,
18298
+ static h3 = (p6) => u4(Text2, {
18299
+ ...p6,
17280
18300
  typeStyle: "header-3"
17281
18301
  }, undefined, false, undefined, this);
17282
- static h4 = (p3) => u3(Text2, {
17283
- ...p3,
18302
+ static h4 = (p6) => u4(Text2, {
18303
+ ...p6,
17284
18304
  typeStyle: "header-4"
17285
18305
  }, undefined, false, undefined, this);
17286
- static h5 = (p3) => u3(Text2, {
17287
- ...p3,
18306
+ static h5 = (p6) => u4(Text2, {
18307
+ ...p6,
17288
18308
  typeStyle: "header-5"
17289
18309
  }, undefined, false, undefined, this);
17290
- static h6 = (p3) => u3(Text2, {
17291
- ...p3,
18310
+ static h6 = (p6) => u4(Text2, {
18311
+ ...p6,
17292
18312
  typeStyle: "header-6"
17293
18313
  }, undefined, false, undefined, this);
17294
- static s = (p3) => u3(Text2, {
17295
- ...p3,
18314
+ static s = (p6) => u4(Text2, {
18315
+ ...p6,
17296
18316
  typeStyle: "text-s"
17297
18317
  }, undefined, false, undefined, this);
17298
- static m = (p3) => u3(Text2, {
17299
- ...p3,
18318
+ static m = (p6) => u4(Text2, {
18319
+ ...p6,
17300
18320
  typeStyle: "text-m"
17301
18321
  }, undefined, false, undefined, this);
17302
- static l = (p3) => u3(Text2, {
17303
- ...p3,
18322
+ static l = (p6) => u4(Text2, {
18323
+ ...p6,
17304
18324
  typeStyle: "text-l"
17305
18325
  }, undefined, false, undefined, this);
17306
- static code = (p3) => u3(Text2, {
17307
- ...p3,
18326
+ static code = (p6) => u4(Text2, {
18327
+ ...p6,
17308
18328
  typeStyle: "code"
17309
18329
  }, undefined, false, undefined, this);
17310
18330
  constructor({
@@ -17324,10 +18344,10 @@ class Text2 extends Rn.Component {
17324
18344
  size,
17325
18345
  children,
17326
18346
  typeStyle,
17327
- v: v3,
18347
+ v: v6,
17328
18348
  ...elbe
17329
18349
  } = this.props;
17330
- return u3("span", {
18350
+ return u4("span", {
17331
18351
  ...applyProps(elbe, [
17332
18352
  "text",
17333
18353
  align,
@@ -17342,7 +18362,7 @@ class Text2 extends Rn.Component {
17342
18362
  color: color || ""
17343
18363
  }),
17344
18364
  children: [
17345
- v3,
18365
+ v6,
17346
18366
  children
17347
18367
  ]
17348
18368
  }, undefined, true, undefined, this);
@@ -17355,15 +18375,15 @@ function ToggleButton({
17355
18375
  value,
17356
18376
  ...elbe
17357
18377
  }) {
17358
- return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") : u3(Card, {
18378
+ return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") : u4(Card, {
17359
18379
  mode: "light",
17360
18380
  colorScheme: "primary",
17361
18381
  padding: 0,
17362
18382
  ...applyProps(elbe, null, { overflow: "hidden", width: "100%" }),
17363
- children: u3(Column, {
18383
+ children: u4(Column, {
17364
18384
  stretch: true,
17365
18385
  gap: 0,
17366
- children: items.map((item) => u3(Card, {
18386
+ children: items.map((item) => u4(Card, {
17367
18387
  onTap: onSelect ? () => onSelect(item.key) : undefined,
17368
18388
  class: `row b ${onSelect ? "pointer" : "disabled"}`,
17369
18389
  style: { border: "none", borderRadius: 0, gap: ".75rem" },
@@ -17372,8 +18392,8 @@ function ToggleButton({
17372
18392
  children: [
17373
18393
  item.icon?.({}),
17374
18394
  item.label,
17375
- u3(FlexSpace, {}, undefined, false, undefined, this),
17376
- value === item.key && u3(Icons.Check, {}, undefined, false, undefined, this)
18395
+ u4(FlexSpace, {}, undefined, false, undefined, this),
18396
+ value === item.key && u4(Icons.Check, {}, undefined, false, undefined, this)
17377
18397
  ]
17378
18398
  }, undefined, true, undefined, this))
17379
18399
  }, undefined, false, undefined, this)
@@ -17413,9 +18433,9 @@ function showConfirmDialog({
17413
18433
  </dialog>
17414
18434
  `;
17415
18435
  document.body.appendChild(dialog);
17416
- window["conf_resolve"] = (v3) => {
18436
+ window["conf_resolve"] = (v6) => {
17417
18437
  document.body.removeChild(dialog);
17418
- resolve(v3);
18438
+ resolve(v6);
17419
18439
  };
17420
18440
  });
17421
18441
  }
@@ -17429,30 +18449,55 @@ function showToast(message) {
17429
18449
  toast.remove();
17430
18450
  }, 3000);
17431
18451
  }
18452
+ // src/ui/util/util.ts
18453
+ function share(data, toastMsg = "copied to clipboard. Share it with others.") {
18454
+ const msg = `${data.title}\n${data.text ?? ""}\n\n${data.url}`;
18455
+ if (navigator.share) {
18456
+ navigator.share(data).catch(() => copyToClipboard(msg, toastMsg));
18457
+ } else {
18458
+ copyToClipboard(msg, toastMsg);
18459
+ }
18460
+ }
18461
+ function copyToClipboard(text, toastMsg = "copied to clipboard") {
18462
+ navigator.clipboard.writeText(text);
18463
+ if (toastMsg)
18464
+ showToast(toastMsg);
18465
+ }
17432
18466
 
17433
18467
  // src/index.tsx
17434
18468
  var Icons = $icons;
17435
18469
  export {
18470
+ useBit,
17436
18471
  showToast,
17437
18472
  showConfirmDialog,
18473
+ share,
18474
+ makeBit,
18475
+ ifApiError,
18476
+ copyToClipboard,
17438
18477
  applyProps,
18478
+ WorkerControl,
17439
18479
  ToggleButton,
17440
18480
  Text2 as Text,
17441
18481
  TestBadge,
18482
+ StreamControl,
18483
+ Spinner,
17442
18484
  Spaced,
17443
18485
  Select,
17444
18486
  Row,
17445
18487
  Range,
18488
+ ProvideBit,
17446
18489
  Padded,
17447
18490
  Icons,
17448
18491
  IconButton,
17449
18492
  FlexSpace,
17450
18493
  Field,
17451
18494
  ElbeDialog,
18495
+ CtrlBit,
17452
18496
  Column,
17453
18497
  Checkbox,
17454
18498
  Card,
17455
18499
  Button,
17456
18500
  Box2 as Box,
17457
- Badge2 as Badge
18501
+ Badge2 as Badge,
18502
+ ApiService
17458
18503
  };