@ikonai/sdk-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -23,7 +23,7 @@ function qt(e) {
23
23
  flags: c
24
24
  };
25
25
  }
26
- function M(e, t, s) {
26
+ function B(e, t, s) {
27
27
  const r = G(e), i = qt(r);
28
28
  if (t !== void 0 && i.opcode !== t)
29
29
  throw new Error(`Unexpected opcode ${i.opcode}`);
@@ -44,7 +44,7 @@ function Qt(e, t, s, r, i) {
44
44
  }
45
45
  var C = /* @__PURE__ */ ((e) => (e[e.Null = 1] = "Null", e[e.Bool = 2] = "Bool", e[e.Int32 = 3] = "Int32", e[e.Int64 = 4] = "Int64", e[e.UInt32 = 5] = "UInt32", e[e.UInt64 = 6] = "UInt64", e[e.Float32 = 7] = "Float32", e[e.Float64 = 8] = "Float64", e[e.Array = 9] = "Array", e[e.Dict = 10] = "Dict", e[e.Object = 11] = "Object", e[e.String = 12] = "String", e[e.Binary = 13] = "Binary", e[e.Guid = 14] = "Guid", e))(C || {});
46
46
  const lt = 161, It = 162, Y = new TextEncoder(), Zt = new TextDecoder("utf-8", { fatal: !0 });
47
- class B {
47
+ class M {
48
48
  constructor(t = 1) {
49
49
  this.version = t, this.buffer.writeByte(lt), this.buffer.writeVarUInt(t >>> 0);
50
50
  }
@@ -86,7 +86,7 @@ class B {
86
86
  this.writeVariableField(t, 13, s);
87
87
  }
88
88
  writeObjectField(t, s, r) {
89
- const i = new B(s);
89
+ const i = new M(s);
90
90
  r(i);
91
91
  const n = i.finish();
92
92
  this.writeVariableField(t, 11, n);
@@ -193,7 +193,7 @@ class K {
193
193
  11
194
194
  /* Object */
195
195
  ), this.count++;
196
- const r = new B(t);
196
+ const r = new M(t);
197
197
  s(r);
198
198
  const i = r.finish();
199
199
  this.payload.writeVarUInt(i.length), this.payload.writeBytes(i);
@@ -398,7 +398,7 @@ class te {
398
398
  11
399
399
  /* Object */
400
400
  );
401
- const r = new B(t);
401
+ const r = new M(t);
402
402
  s(r);
403
403
  const i = r.finish();
404
404
  this.payload.writeVarUInt(i.length), this.payload.writeBytes(i), this.valueWritten = !0;
@@ -1075,7 +1075,7 @@ function Ne(e) {
1075
1075
  t.push(s.asString());
1076
1076
  return t;
1077
1077
  }
1078
- const we = 76337612, Ue = 185396121, Ce = 388632637, De = 417197284, Re = 469070965, me = 470595159, Le = 781727218, ge = 834078886, pe = 1043273762, Oe = 1236999138, be = 1368629611, Pe = 1715899485, Fe = 1942830531, ke = 1999510636, ve = 2079864626, Ve = 2142346422, Me = 2598291686, Be = 2719718823, Ge = 2810953526, xe = 2840065720, He = 2885165957, Ye = 3586157513, We = 3717933110, Ke = 4062655306;
1078
+ const we = 76337612, Ue = 185396121, Ce = 388632637, De = 417197284, Re = 469070965, me = 470595159, Le = 781727218, ge = 834078886, pe = 1043273762, Oe = 1236999138, be = 1368629611, Pe = 1715899485, Fe = 1942830531, ke = 1999510636, ve = 2079864626, Ve = 2142346422, Be = 2598291686, Me = 2719718823, Ge = 2810953526, xe = 2840065720, He = 2885165957, Ye = 3586157513, We = 3717933110, Ke = 4062655306;
1079
1079
  function $e(e) {
1080
1080
  const t = {};
1081
1081
  return Nt(t), t;
@@ -1171,12 +1171,12 @@ function Xe(e, t) {
1171
1171
  t.PayloadType = s.asInt32();
1172
1172
  break;
1173
1173
  }
1174
- case Me: {
1174
+ case Be: {
1175
1175
  if (s.isNull) throw new Error();
1176
1176
  t.VersionId = s.asString();
1177
1177
  break;
1178
1178
  }
1179
- case Be: {
1179
+ case Me: {
1180
1180
  if (s.isNull) throw new Error();
1181
1181
  t.UniqueSessionId = s.asString();
1182
1182
  break;
@@ -1428,7 +1428,7 @@ function Os(e, t) {
1428
1428
  }
1429
1429
  }
1430
1430
  }
1431
- const bs = 164808083, Ps = 1368629611, Fs = 2739413426, ks = 2768375929, vs = 2950031986, Vs = 3284746250, Ms = 4065070594;
1431
+ const bs = 164808083, Ps = 1368629611, Fs = 2739413426, ks = 2768375929, vs = 2950031986, Vs = 3284746250, Bs = 4065070594;
1432
1432
  function Lt(e) {
1433
1433
  const t = {};
1434
1434
  return gt(t), t;
@@ -1436,7 +1436,7 @@ function Lt(e) {
1436
1436
  function gt(e) {
1437
1437
  return e.Description = "", e.Codec = dt.H264, e.Width = 0, e.Height = 0, e.Framerate = 30, e.Bitrate = 0, e.IsHardwareAccelerated = !1, e;
1438
1438
  }
1439
- function Bs(e, t) {
1439
+ function Ms(e, t) {
1440
1440
  const s = t ?? Lt();
1441
1441
  return gt(s), Gs(e, s), s;
1442
1442
  }
@@ -1474,125 +1474,145 @@ function Gs(e, t) {
1474
1474
  t.Codec = s.asInt32();
1475
1475
  break;
1476
1476
  }
1477
- case Ms: {
1477
+ case Bs: {
1478
1478
  if (s.isNull) throw new Error();
1479
1479
  t.Width = s.asInt32();
1480
1480
  break;
1481
1481
  }
1482
1482
  }
1483
1483
  }
1484
- const xs = 3, Hs = 65539, Ys = 693643444, Ws = 1144553441, Ks = 1497620243, $s = 1559330978, js = 1999510636, Xs = 2277643855, zs = 2469008121, Js = 2589786682, qs = 3219210453, Qs = 3678477544, Zs = 3696445035, tr = 3707543140, er = 3712281496, sr = 3823842552, rr = 3895362455, ir = 3897397815, nr = 4225107827;
1485
- function or(e) {
1484
+ const xs = 4, Hs = 65539, Ys = 414670648, Ws = 693643444, Ks = 1144553441, $s = 1497620243, js = 1559330978, Xs = 1999510636, zs = 2277643855, Js = 2469008121, qs = 3042922213, Qs = 3219210453, Zs = 3504054055, tr = 3642827795, er = 3678477544, sr = 3696445035, rr = 3707543140, ir = 3712281496, nr = 3748214980, or = 3823842552, ar = 3895362455, lr = 3897397815, Ir = 4225107827;
1485
+ function hr(e) {
1486
1486
  const t = {};
1487
1487
  return pt(t), t;
1488
1488
  }
1489
1489
  function pt(e) {
1490
- return e.Clients = /* @__PURE__ */ Object.create(null), e.UIStreams = /* @__PURE__ */ Object.create(null), e.AudioStreams = /* @__PURE__ */ Object.create(null), e.VideoStreams = /* @__PURE__ */ Object.create(null), e.TrackingStreams = /* @__PURE__ */ Object.create(null), e.SpaceId = "", e.ChannelInstanceId = "", e.FirstUserId = "", e.ChannelUrl = "", e.ChannelId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.SessionId = "", e.IsGitSourceMode = !1, e.Functions = /* @__PURE__ */ Object.create(null), e;
1490
+ return e.Clients = /* @__PURE__ */ Object.create(null), e.UIStreams = /* @__PURE__ */ Object.create(null), e.AudioStreams = /* @__PURE__ */ Object.create(null), e.VideoStreams = /* @__PURE__ */ Object.create(null), e.TrackingStreams = /* @__PURE__ */ Object.create(null), e.SpaceId = "", e.ChannelInstanceId = "", e.FirstUserId = "", e.ChannelUrl = "", e.ChannelId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.SessionId = "", e.RunnerType = "", e.BootType = "", e.PublicAccess = !1, e.DebugMode = !1, e.IsGitSource = !1, e.Functions = /* @__PURE__ */ Object.create(null), e;
1491
1491
  }
1492
- function ar(e, t) {
1492
+ function cr(e, t) {
1493
1493
  const s = p.create(e);
1494
- return lr(s, t);
1494
+ return ur(s, t);
1495
1495
  }
1496
- function lr(e, t) {
1497
- const s = t ?? or();
1498
- return pt(s), Ir(e, s), s;
1496
+ function ur(e, t) {
1497
+ const s = t ?? hr();
1498
+ return pt(s), Er(e, s), s;
1499
1499
  }
1500
- function Ir(e, t) {
1500
+ function Er(e, t) {
1501
1501
  let s;
1502
1502
  for (; (s = e.next()) !== null; )
1503
1503
  switch (s.fieldId) {
1504
1504
  case Ys: {
1505
1505
  if (s.isNull) throw new Error();
1506
- t.FirstUserId = s.asString();
1506
+ t.IsGitSource = s.asBool();
1507
1507
  break;
1508
1508
  }
1509
1509
  case Ws: {
1510
1510
  if (s.isNull) throw new Error();
1511
- t.Clients = cr(s.asDictionary());
1511
+ t.FirstUserId = s.asString();
1512
1512
  break;
1513
1513
  }
1514
1514
  case Ks: {
1515
1515
  if (s.isNull) throw new Error();
1516
- t.TrackingStreams = ur(s.asDictionary());
1516
+ t.Clients = fr(s.asDictionary());
1517
1517
  break;
1518
1518
  }
1519
1519
  case $s: {
1520
1520
  if (s.isNull) throw new Error();
1521
- t.ChannelId = s.asString();
1521
+ t.TrackingStreams = dr(s.asDictionary());
1522
1522
  break;
1523
1523
  }
1524
1524
  case js: {
1525
1525
  if (s.isNull) throw new Error();
1526
- t.SessionId = s.asString();
1526
+ t.ChannelId = s.asString();
1527
1527
  break;
1528
1528
  }
1529
1529
  case Xs: {
1530
1530
  if (s.isNull) throw new Error();
1531
- t.ChannelUrl = s.asString();
1531
+ t.SessionId = s.asString();
1532
1532
  break;
1533
1533
  }
1534
1534
  case zs: {
1535
1535
  if (s.isNull) throw new Error();
1536
- t.ChannelName = s.asString();
1536
+ t.ChannelUrl = s.asString();
1537
1537
  break;
1538
1538
  }
1539
1539
  case Js: {
1540
1540
  if (s.isNull) throw new Error();
1541
- t.IsGitSourceMode = s.asBool();
1541
+ t.ChannelName = s.asString();
1542
1542
  break;
1543
1543
  }
1544
1544
  case qs: {
1545
1545
  if (s.isNull) throw new Error();
1546
- t.OrganisationName = s.asString();
1546
+ t.PublicAccess = s.asBool();
1547
1547
  break;
1548
1548
  }
1549
1549
  case Qs: {
1550
1550
  if (s.isNull) throw new Error();
1551
- t.Functions = Er(s.asDictionary());
1551
+ t.OrganisationName = s.asString();
1552
1552
  break;
1553
1553
  }
1554
1554
  case Zs: {
1555
1555
  if (s.isNull) throw new Error();
1556
- t.UIStreams = _r(s.asDictionary());
1556
+ t.DebugMode = s.asBool();
1557
1557
  break;
1558
1558
  }
1559
1559
  case tr: {
1560
1560
  if (s.isNull) throw new Error();
1561
- t.SpaceId = s.asString();
1561
+ t.RunnerType = s.asString();
1562
1562
  break;
1563
1563
  }
1564
1564
  case er: {
1565
1565
  if (s.isNull) throw new Error();
1566
- t.PrimaryUserId = s.asString();
1566
+ t.Functions = Tr(s.asDictionary());
1567
1567
  break;
1568
1568
  }
1569
1569
  case sr: {
1570
1570
  if (s.isNull) throw new Error();
1571
- t.ChannelInstanceId = s.asString();
1571
+ t.UIStreams = yr(s.asDictionary());
1572
1572
  break;
1573
1573
  }
1574
1574
  case rr: {
1575
1575
  if (s.isNull) throw new Error();
1576
- t.AudioStreams = fr(s.asDictionary());
1576
+ t.SpaceId = s.asString();
1577
1577
  break;
1578
1578
  }
1579
1579
  case ir: {
1580
1580
  if (s.isNull) throw new Error();
1581
- t.VideoStreams = dr(s.asDictionary());
1581
+ t.PrimaryUserId = s.asString();
1582
1582
  break;
1583
1583
  }
1584
1584
  case nr: {
1585
+ if (s.isNull) throw new Error();
1586
+ t.BootType = s.asString();
1587
+ break;
1588
+ }
1589
+ case or: {
1590
+ if (s.isNull) throw new Error();
1591
+ t.ChannelInstanceId = s.asString();
1592
+ break;
1593
+ }
1594
+ case ar: {
1595
+ if (s.isNull) throw new Error();
1596
+ t.AudioStreams = Sr(s.asDictionary());
1597
+ break;
1598
+ }
1599
+ case lr: {
1600
+ if (s.isNull) throw new Error();
1601
+ t.VideoStreams = Ar(s.asDictionary());
1602
+ break;
1603
+ }
1604
+ case Ir: {
1585
1605
  if (s.isNull) throw new Error();
1586
1606
  t.SpaceName = s.asString();
1587
1607
  break;
1588
1608
  }
1589
1609
  }
1590
1610
  }
1591
- function hr(e, t) {
1592
- const s = M(e, Hs, xs);
1593
- return ar(s, t);
1611
+ function _r(e, t) {
1612
+ const s = B(e, Hs, xs);
1613
+ return cr(s, t);
1594
1614
  }
1595
- function cr(e) {
1615
+ function fr(e) {
1596
1616
  const t = /* @__PURE__ */ Object.create(null);
1597
1617
  let s;
1598
1618
  for (; (s = e.next()) !== null; ) {
@@ -1601,275 +1621,275 @@ function cr(e) {
1601
1621
  }
1602
1622
  return t;
1603
1623
  }
1604
- function ur(e) {
1624
+ function dr(e) {
1605
1625
  const t = /* @__PURE__ */ Object.create(null);
1606
1626
  let s;
1607
1627
  for (; (s = e.next()) !== null; ) {
1608
1628
  const r = s.key.asString();
1609
- t[r] = Wr(s.value.asObject());
1629
+ t[r] = Xr(s.value.asObject());
1610
1630
  }
1611
1631
  return t;
1612
1632
  }
1613
- function Er(e) {
1633
+ function Tr(e) {
1614
1634
  const t = /* @__PURE__ */ Object.create(null);
1615
1635
  let s;
1616
1636
  for (; (s = e.next()) !== null; ) {
1617
1637
  const r = s.key.asInt32();
1618
- t[r] = Tr(s.value.asArray());
1638
+ t[r] = Nr(s.value.asArray());
1619
1639
  }
1620
1640
  return t;
1621
1641
  }
1622
- function _r(e) {
1642
+ function yr(e) {
1623
1643
  const t = /* @__PURE__ */ Object.create(null);
1624
1644
  let s;
1625
1645
  for (; (s = e.next()) !== null; ) {
1626
1646
  const r = s.key.asString();
1627
- t[r] = Ur(s.value.asObject());
1647
+ t[r] = mr(s.value.asObject());
1628
1648
  }
1629
1649
  return t;
1630
1650
  }
1631
- function fr(e) {
1651
+ function Sr(e) {
1632
1652
  const t = /* @__PURE__ */ Object.create(null);
1633
1653
  let s;
1634
1654
  for (; (s = e.next()) !== null; ) {
1635
1655
  const r = s.key.asString();
1636
- t[r] = pr(s.value.asObject());
1656
+ t[r] = Fr(s.value.asObject());
1637
1657
  }
1638
1658
  return t;
1639
1659
  }
1640
- function dr(e) {
1660
+ function Ar(e) {
1641
1661
  const t = /* @__PURE__ */ Object.create(null);
1642
1662
  let s;
1643
1663
  for (; (s = e.next()) !== null; ) {
1644
1664
  const r = s.key.asString();
1645
- t[r] = Vr(s.value.asObject());
1665
+ t[r] = xr(s.value.asObject());
1646
1666
  }
1647
1667
  return t;
1648
1668
  }
1649
- function Tr(e) {
1669
+ function Nr(e) {
1650
1670
  const t = [];
1651
1671
  let s;
1652
1672
  for (; (s = e.next()) !== null; )
1653
1673
  t.push(ls(s.asObject()));
1654
1674
  return t;
1655
1675
  }
1656
- const yr = 161083277, Sr = 325678206, Ar = 3469892363, Nr = 3645544153;
1657
- function wr(e) {
1676
+ const wr = 161083277, Ur = 325678206, Cr = 3469892363, Dr = 3645544153;
1677
+ function Rr(e) {
1658
1678
  const t = {};
1659
1679
  return Ot(t), t;
1660
1680
  }
1661
1681
  function Ot(e) {
1662
1682
  return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Rt(), e;
1663
1683
  }
1664
- function Ur(e, t) {
1665
- const s = t ?? wr();
1666
- return Ot(s), Cr(e, s), s;
1684
+ function mr(e, t) {
1685
+ const s = t ?? Rr();
1686
+ return Ot(s), Lr(e, s), s;
1667
1687
  }
1668
- function Cr(e, t) {
1688
+ function Lr(e, t) {
1669
1689
  let s;
1670
1690
  for (; (s = e.next()) !== null; )
1671
1691
  switch (s.fieldId) {
1672
- case yr: {
1692
+ case wr: {
1673
1693
  if (s.isNull) throw new Error();
1674
1694
  t.StreamId = s.asString();
1675
1695
  break;
1676
1696
  }
1677
- case Sr: {
1697
+ case Ur: {
1678
1698
  if (s.isNull) throw new Error();
1679
1699
  t.ClientSessionId = s.asInt32();
1680
1700
  break;
1681
1701
  }
1682
- case Ar: {
1702
+ case Cr: {
1683
1703
  if (s.isNull) throw new Error();
1684
1704
  t.TrackId = s.asInt32();
1685
1705
  break;
1686
1706
  }
1687
- case Nr: {
1707
+ case Dr: {
1688
1708
  if (s.isNull) throw new Error();
1689
1709
  t.Info = ps(s.asObject());
1690
1710
  break;
1691
1711
  }
1692
1712
  }
1693
1713
  }
1694
- const Dr = 161083277, Rr = 325678206, mr = 3469892363, Lr = 3645544153;
1695
- function gr(e) {
1714
+ const gr = 161083277, pr = 325678206, Or = 3469892363, br = 3645544153;
1715
+ function Pr(e) {
1696
1716
  const t = {};
1697
1717
  return bt(t), t;
1698
1718
  }
1699
1719
  function bt(e) {
1700
1720
  return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = yt(), e;
1701
1721
  }
1702
- function pr(e, t) {
1703
- const s = t ?? gr();
1704
- return bt(s), Or(e, s), s;
1722
+ function Fr(e, t) {
1723
+ const s = t ?? Pr();
1724
+ return bt(s), kr(e, s), s;
1705
1725
  }
1706
- function Or(e, t) {
1726
+ function kr(e, t) {
1707
1727
  let s;
1708
1728
  for (; (s = e.next()) !== null; )
1709
1729
  switch (s.fieldId) {
1710
- case Dr: {
1730
+ case gr: {
1711
1731
  if (s.isNull) throw new Error();
1712
1732
  t.StreamId = s.asString();
1713
1733
  break;
1714
1734
  }
1715
- case Rr: {
1735
+ case pr: {
1716
1736
  if (s.isNull) throw new Error();
1717
1737
  t.ClientSessionId = s.asInt32();
1718
1738
  break;
1719
1739
  }
1720
- case mr: {
1740
+ case Or: {
1721
1741
  if (s.isNull) throw new Error();
1722
1742
  t.TrackId = s.asInt32();
1723
1743
  break;
1724
1744
  }
1725
- case Lr: {
1745
+ case br: {
1726
1746
  if (s.isNull) throw new Error();
1727
1747
  t.Info = ue(s.asObject());
1728
1748
  break;
1729
1749
  }
1730
1750
  }
1731
1751
  }
1732
- const br = 161083277, Pr = 325678206, Fr = 3469892363, kr = 3645544153;
1733
- function vr(e) {
1752
+ const vr = 161083277, Vr = 325678206, Br = 3469892363, Mr = 3645544153;
1753
+ function Gr(e) {
1734
1754
  const t = {};
1735
1755
  return Pt(t), t;
1736
1756
  }
1737
1757
  function Pt(e) {
1738
1758
  return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Lt(), e;
1739
1759
  }
1740
- function Vr(e, t) {
1741
- const s = t ?? vr();
1742
- return Pt(s), Mr(e, s), s;
1760
+ function xr(e, t) {
1761
+ const s = t ?? Gr();
1762
+ return Pt(s), Hr(e, s), s;
1743
1763
  }
1744
- function Mr(e, t) {
1764
+ function Hr(e, t) {
1745
1765
  let s;
1746
1766
  for (; (s = e.next()) !== null; )
1747
1767
  switch (s.fieldId) {
1748
- case br: {
1768
+ case vr: {
1749
1769
  if (s.isNull) throw new Error();
1750
1770
  t.StreamId = s.asString();
1751
1771
  break;
1752
1772
  }
1753
- case Pr: {
1773
+ case Vr: {
1754
1774
  if (s.isNull) throw new Error();
1755
1775
  t.ClientSessionId = s.asInt32();
1756
1776
  break;
1757
1777
  }
1758
- case Fr: {
1778
+ case Br: {
1759
1779
  if (s.isNull) throw new Error();
1760
1780
  t.TrackId = s.asInt32();
1761
1781
  break;
1762
1782
  }
1763
- case kr: {
1783
+ case Mr: {
1764
1784
  if (s.isNull) throw new Error();
1765
- t.Info = Bs(s.asObject());
1785
+ t.Info = Ms(s.asObject());
1766
1786
  break;
1767
1787
  }
1768
1788
  }
1769
1789
  }
1770
- const Br = 161083277, Gr = 325678206, xr = 3469892363, Hr = 3645544153;
1771
- function Yr(e) {
1790
+ const Yr = 161083277, Wr = 325678206, Kr = 3469892363, $r = 3645544153;
1791
+ function jr(e) {
1772
1792
  const t = {};
1773
1793
  return Ft(t), t;
1774
1794
  }
1775
1795
  function Ft(e) {
1776
1796
  return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ct(), e;
1777
1797
  }
1778
- function Wr(e, t) {
1779
- const s = t ?? Yr();
1780
- return Ft(s), Kr(e, s), s;
1798
+ function Xr(e, t) {
1799
+ const s = t ?? jr();
1800
+ return Ft(s), zr(e, s), s;
1781
1801
  }
1782
- function Kr(e, t) {
1802
+ function zr(e, t) {
1783
1803
  let s;
1784
1804
  for (; (s = e.next()) !== null; )
1785
1805
  switch (s.fieldId) {
1786
- case Br: {
1806
+ case Yr: {
1787
1807
  if (s.isNull) throw new Error();
1788
1808
  t.StreamId = s.asString();
1789
1809
  break;
1790
1810
  }
1791
- case Gr: {
1811
+ case Wr: {
1792
1812
  if (s.isNull) throw new Error();
1793
1813
  t.ClientSessionId = s.asInt32();
1794
1814
  break;
1795
1815
  }
1796
- case xr: {
1816
+ case Kr: {
1797
1817
  if (s.isNull) throw new Error();
1798
1818
  t.TrackId = s.asInt32();
1799
1819
  break;
1800
1820
  }
1801
- case Hr: {
1821
+ case $r: {
1802
1822
  if (s.isNull) throw new Error();
1803
1823
  t.Info = Rs(s.asObject());
1804
1824
  break;
1805
1825
  }
1806
1826
  }
1807
1827
  }
1808
- const $r = 1405462580, jr = 2968276160;
1809
- function Xr(e) {
1828
+ const Jr = 1405462580, qr = 2968276160;
1829
+ function Qr(e) {
1810
1830
  const t = {};
1811
1831
  return kt(t), t;
1812
1832
  }
1813
1833
  function kt(e) {
1814
1834
  return e.MimeType = "", e.Value = new Uint8Array(0), e;
1815
1835
  }
1816
- function zr(e, t) {
1817
- const s = t ?? Xr();
1818
- return kt(s), Jr(e, s), s;
1836
+ function Zr(e, t) {
1837
+ const s = t ?? Qr();
1838
+ return kt(s), ti(e, s), s;
1819
1839
  }
1820
- function Jr(e, t) {
1840
+ function ti(e, t) {
1821
1841
  let s;
1822
1842
  for (; (s = e.next()) !== null; )
1823
1843
  switch (s.fieldId) {
1824
- case $r: {
1844
+ case Jr: {
1825
1845
  if (s.isNull) throw new Error();
1826
1846
  t.Value = s.asBinary();
1827
1847
  break;
1828
1848
  }
1829
- case jr: {
1849
+ case qr: {
1830
1850
  if (s.isNull) throw new Error();
1831
1851
  t.MimeType = s.asString();
1832
1852
  break;
1833
1853
  }
1834
1854
  }
1835
1855
  }
1836
- const qr = 1, Qr = 2097188, Zr = 979822885, ti = 2374537704;
1837
- function ei(e) {
1856
+ const ei = 1, si = 2097188, ri = 979822885, ii = 2374537704;
1857
+ function ni(e) {
1838
1858
  const t = {};
1839
1859
  return vt(t), t;
1840
1860
  }
1841
1861
  function vt(e) {
1842
1862
  return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
1843
1863
  }
1844
- function si(e, t) {
1864
+ function oi(e, t) {
1845
1865
  const s = p.create(e);
1846
- return ri(s, t);
1866
+ return ai(s, t);
1847
1867
  }
1848
- function ri(e, t) {
1849
- const s = t ?? ei();
1850
- return vt(s), ii(e, s), s;
1868
+ function ai(e, t) {
1869
+ const s = t ?? ni();
1870
+ return vt(s), li(e, s), s;
1851
1871
  }
1852
- function ii(e, t) {
1872
+ function li(e, t) {
1853
1873
  let s;
1854
1874
  for (; (s = e.next()) !== null; )
1855
1875
  switch (s.fieldId) {
1856
- case Zr: {
1876
+ case ri: {
1857
1877
  if (s.isNull) throw new Error();
1858
1878
  t.StyleId = s.asString();
1859
1879
  break;
1860
1880
  }
1861
- case ti: {
1881
+ case ii: {
1862
1882
  if (s.isNull) throw new Error();
1863
- t.Style = oi(s.asDictionary());
1883
+ t.Style = hi(s.asDictionary());
1864
1884
  break;
1865
1885
  }
1866
1886
  }
1867
1887
  }
1868
- function ni(e, t) {
1869
- const s = M(e, Qr, qr);
1870
- return si(s, t);
1888
+ function Ii(e, t) {
1889
+ const s = B(e, si, ei);
1890
+ return oi(s, t);
1871
1891
  }
1872
- function oi(e) {
1892
+ function hi(e) {
1873
1893
  const t = /* @__PURE__ */ Object.create(null);
1874
1894
  let s;
1875
1895
  for (; (s = e.next()) !== null; ) {
@@ -1878,73 +1898,73 @@ function oi(e) {
1878
1898
  }
1879
1899
  return t;
1880
1900
  }
1881
- const ai = 1, li = 2097192, Ii = 2136687806;
1882
- function hi(e) {
1901
+ const ci = 1, ui = 2097192, Ei = 2136687806;
1902
+ function _i(e) {
1883
1903
  const t = {};
1884
1904
  return Vt(t), t;
1885
1905
  }
1886
1906
  function Vt(e) {
1887
1907
  return e.Styles = [], e;
1888
1908
  }
1889
- function ci(e, t) {
1909
+ function fi(e, t) {
1890
1910
  const s = p.create(e);
1891
- return ui(s, t);
1911
+ return di(s, t);
1892
1912
  }
1893
- function ui(e, t) {
1894
- const s = t ?? hi();
1895
- return Vt(s), Ei(e, s), s;
1913
+ function di(e, t) {
1914
+ const s = t ?? _i();
1915
+ return Vt(s), Ti(e, s), s;
1896
1916
  }
1897
- function Ei(e, t) {
1917
+ function Ti(e, t) {
1898
1918
  let s;
1899
1919
  for (; (s = e.next()) !== null; )
1900
1920
  switch (s.fieldId) {
1901
- case Ii: {
1921
+ case Ei: {
1902
1922
  if (s.isNull) throw new Error();
1903
- t.Styles = fi(s.asArray());
1923
+ t.Styles = Si(s.asArray());
1904
1924
  break;
1905
1925
  }
1906
1926
  }
1907
1927
  }
1908
- function _i(e, t) {
1909
- const s = M(e, li, ai);
1910
- return ci(s, t);
1928
+ function yi(e, t) {
1929
+ const s = B(e, ui, ci);
1930
+ return fi(s, t);
1911
1931
  }
1912
- function fi(e) {
1932
+ function Si(e) {
1913
1933
  const t = [];
1914
1934
  let s;
1915
1935
  for (; (s = e.next()) !== null; )
1916
- t.push(Si(s.asObject()));
1936
+ t.push(Ui(s.asObject()));
1917
1937
  return t;
1918
1938
  }
1919
- const di = 979822885, Ti = 2374537704;
1920
- function yi(e) {
1939
+ const Ai = 979822885, Ni = 2374537704;
1940
+ function wi(e) {
1921
1941
  const t = {};
1922
- return Mt(t), t;
1942
+ return Bt(t), t;
1923
1943
  }
1924
- function Mt(e) {
1944
+ function Bt(e) {
1925
1945
  return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
1926
1946
  }
1927
- function Si(e, t) {
1928
- const s = t ?? yi();
1929
- return Mt(s), Ai(e, s), s;
1947
+ function Ui(e, t) {
1948
+ const s = t ?? wi();
1949
+ return Bt(s), Ci(e, s), s;
1930
1950
  }
1931
- function Ai(e, t) {
1951
+ function Ci(e, t) {
1932
1952
  let s;
1933
1953
  for (; (s = e.next()) !== null; )
1934
1954
  switch (s.fieldId) {
1935
- case di: {
1955
+ case Ai: {
1936
1956
  if (s.isNull) throw new Error();
1937
1957
  t.StyleId = s.asString();
1938
1958
  break;
1939
1959
  }
1940
- case Ti: {
1960
+ case Ni: {
1941
1961
  if (s.isNull) throw new Error();
1942
- t.Style = Ni(s.asDictionary());
1962
+ t.Style = Di(s.asDictionary());
1943
1963
  break;
1944
1964
  }
1945
1965
  }
1946
1966
  }
1947
- function Ni(e) {
1967
+ function Di(e) {
1948
1968
  const t = /* @__PURE__ */ Object.create(null);
1949
1969
  let s;
1950
1970
  for (; (s = e.next()) !== null; ) {
@@ -1953,100 +1973,100 @@ function Ni(e) {
1953
1973
  }
1954
1974
  return t;
1955
1975
  }
1956
- const wi = 1, Ui = 2097193, Ci = 1415642792;
1957
- function Di(e) {
1976
+ const Ri = 1, mi = 2097193, Li = 1415642792;
1977
+ function gi(e) {
1958
1978
  const t = {};
1959
- return Bt(t), t;
1979
+ return Mt(t), t;
1960
1980
  }
1961
- function Bt(e) {
1981
+ function Mt(e) {
1962
1982
  return e.StyleIds = [], e;
1963
1983
  }
1964
- function Ri(e, t) {
1984
+ function pi(e, t) {
1965
1985
  const s = p.create(e);
1966
- return mi(s, t);
1986
+ return Oi(s, t);
1967
1987
  }
1968
- function mi(e, t) {
1969
- const s = t ?? Di();
1970
- return Bt(s), Li(e, s), s;
1988
+ function Oi(e, t) {
1989
+ const s = t ?? gi();
1990
+ return Mt(s), bi(e, s), s;
1971
1991
  }
1972
- function Li(e, t) {
1992
+ function bi(e, t) {
1973
1993
  let s;
1974
1994
  for (; (s = e.next()) !== null; )
1975
1995
  switch (s.fieldId) {
1976
- case Ci: {
1996
+ case Li: {
1977
1997
  if (s.isNull) throw new Error();
1978
- t.StyleIds = pi(s.asArray());
1998
+ t.StyleIds = Fi(s.asArray());
1979
1999
  break;
1980
2000
  }
1981
2001
  }
1982
2002
  }
1983
- function gi(e, t) {
1984
- const s = M(e, Ui, wi);
1985
- return Ri(s, t);
2003
+ function Pi(e, t) {
2004
+ const s = B(e, mi, Ri);
2005
+ return pi(s, t);
1986
2006
  }
1987
- function pi(e) {
2007
+ function Fi(e) {
1988
2008
  const t = [];
1989
2009
  let s;
1990
2010
  for (; (s = e.next()) !== null; )
1991
2011
  t.push(s.asString());
1992
2012
  return t;
1993
2013
  }
1994
- const Oi = 1, bi = 2097190, Pi = 425183262, Fi = 653781469;
1995
- function ki(e) {
2014
+ const ki = 1, vi = 2097190, Vi = 425183262, Bi = 653781469;
2015
+ function Mi(e) {
1996
2016
  const t = {};
1997
2017
  return Gt(t), t;
1998
2018
  }
1999
2019
  function Gt(e) {
2000
2020
  return e.Json = "", e.Payloads = /* @__PURE__ */ Object.create(null), e;
2001
2021
  }
2002
- function vi(e, t) {
2022
+ function Gi(e, t) {
2003
2023
  const s = p.create(e);
2004
- return Vi(s, t);
2024
+ return xi(s, t);
2005
2025
  }
2006
- function Vi(e, t) {
2007
- const s = t ?? ki();
2008
- return Gt(s), Mi(e, s), s;
2026
+ function xi(e, t) {
2027
+ const s = t ?? Mi();
2028
+ return Gt(s), Hi(e, s), s;
2009
2029
  }
2010
- function Mi(e, t) {
2030
+ function Hi(e, t) {
2011
2031
  let s;
2012
2032
  for (; (s = e.next()) !== null; )
2013
2033
  switch (s.fieldId) {
2014
- case Pi: {
2034
+ case Vi: {
2015
2035
  if (s.isNull) throw new Error();
2016
2036
  t.Json = s.asString();
2017
2037
  break;
2018
2038
  }
2019
- case Fi: {
2039
+ case Bi: {
2020
2040
  if (s.isNull) throw new Error();
2021
- t.Payloads = Gi(s.asDictionary());
2041
+ t.Payloads = Wi(s.asDictionary());
2022
2042
  break;
2023
2043
  }
2024
2044
  }
2025
2045
  }
2026
- function Bi(e, t) {
2027
- const s = M(e, bi, Oi);
2028
- return vi(s, t);
2046
+ function Yi(e, t) {
2047
+ const s = B(e, vi, ki);
2048
+ return Gi(s, t);
2029
2049
  }
2030
- function Gi(e) {
2050
+ function Wi(e) {
2031
2051
  const t = /* @__PURE__ */ Object.create(null);
2032
2052
  let s;
2033
2053
  for (; (s = e.next()) !== null; ) {
2034
2054
  const r = s.key.asString();
2035
- t[r] = zr(s.value.asObject());
2055
+ t[r] = Zr(s.value.asObject());
2036
2056
  }
2037
2057
  return t;
2038
2058
  }
2039
- const xt = 1, xi = 1048636, Hi = 2610786289;
2040
- function Yi(e) {
2041
- const t = new B(xt);
2042
- return Wi(e, t), t.finish();
2059
+ const xt = 1, Ki = 1048636, $i = 2610786289;
2060
+ function ji(e) {
2061
+ const t = new M(xt);
2062
+ return Xi(e, t), t.finish();
2043
2063
  }
2044
- function Wi(e, t) {
2045
- t.writeUInt32Field(Hi, e.Version >>> 0);
2064
+ function Xi(e, t) {
2065
+ t.writeUInt32Field($i, e.Version >>> 0);
2046
2066
  }
2047
- function Ki(e, t, s) {
2048
- const r = Yi(e);
2049
- return Qt(xi, r, xt, t, s);
2067
+ function zi(e, t, s) {
2068
+ const r = ji(e);
2069
+ return Qt(Ki, r, xt, t, s);
2050
2070
  }
2051
2071
  function w(e) {
2052
2072
  return typeof e == "object" && e !== null && !Array.isArray(e);
@@ -2104,7 +2124,7 @@ function it(e, t) {
2104
2124
  styleIds: u ?? []
2105
2125
  };
2106
2126
  }
2107
- function $i(e, t) {
2127
+ function Ji(e, t) {
2108
2128
  if (!w(e))
2109
2129
  throw new Error(`Invalid text delta at ${t}`);
2110
2130
  const s = e.NodeId, r = e.PropertyName, i = e.Start, n = e.End, o = e.InsertedText;
@@ -2131,7 +2151,7 @@ function $i(e, t) {
2131
2151
  insertedText: o
2132
2152
  };
2133
2153
  }
2134
- function ji(e, t) {
2154
+ function qi(e, t) {
2135
2155
  if (!w(e))
2136
2156
  throw new Error(`Invalid child insert at ${t}`);
2137
2157
  const s = e.Index, r = e.Node;
@@ -2144,7 +2164,7 @@ function ji(e, t) {
2144
2164
  node: it(r, `${t}.node`)
2145
2165
  };
2146
2166
  }
2147
- function Xi(e, t) {
2167
+ function Qi(e, t) {
2148
2168
  if (!w(e))
2149
2169
  throw new Error(`Invalid child move at ${t}`);
2150
2170
  const s = e.NodeId, r = e.FromIndex, i = e.ToIndex;
@@ -2160,7 +2180,7 @@ function Xi(e, t) {
2160
2180
  toIndex: i
2161
2181
  };
2162
2182
  }
2163
- function zi(e, t) {
2183
+ function Zi(e, t) {
2164
2184
  if (!w(e))
2165
2185
  throw new Error(`Invalid child remove at ${t}`);
2166
2186
  const s = e.NodeId, r = e.Index;
@@ -2173,18 +2193,18 @@ function zi(e, t) {
2173
2193
  index: r
2174
2194
  };
2175
2195
  }
2176
- function Ji(e, t) {
2196
+ function tn(e, t) {
2177
2197
  if (!w(e))
2178
2198
  throw new Error(`Invalid node change at ${t}`);
2179
2199
  const s = e.nodeId;
2180
2200
  if (typeof s != "string" || s.length === 0)
2181
2201
  throw new Error(`Invalid node change nodeId at ${t}`);
2182
2202
  const r = Array.isArray(e.inserts) ? e.inserts.map(
2183
- (I, c) => ji(I ?? {}, `${t}.inserts[${c}]`)
2203
+ (I, c) => qi(I ?? {}, `${t}.inserts[${c}]`)
2184
2204
  ) : void 0, i = Array.isArray(e.moves) ? e.moves.map(
2185
- (I, c) => Xi(I ?? {}, `${t}.moves[${c}]`)
2205
+ (I, c) => Qi(I ?? {}, `${t}.moves[${c}]`)
2186
2206
  ) : void 0, n = Array.isArray(e.removals) ? e.removals.map(
2187
- (I, c) => zi(I ?? {}, `${t}.removals[${c}]`)
2207
+ (I, c) => Zi(I ?? {}, `${t}.removals[${c}]`)
2188
2208
  ) : void 0;
2189
2209
  let o;
2190
2210
  if (w(e.changedProps)) {
@@ -2197,7 +2217,7 @@ function Ji(e, t) {
2197
2217
  }
2198
2218
  }
2199
2219
  const a = Array.isArray(e.textUpdates) ? e.textUpdates.map(
2200
- (I, c) => $i(I ?? {}, `${t}.textUpdates[${c}]`)
2220
+ (I, c) => Ji(I ?? {}, `${t}.textUpdates[${c}]`)
2201
2221
  ) : void 0, l = e.styleIds, u = l !== void 0 ? Yt(l, t, s, !0) : void 0;
2202
2222
  return {
2203
2223
  nodeId: s,
@@ -2209,19 +2229,19 @@ function Ji(e, t) {
2209
2229
  ...u !== void 0 ? { styleIds: u } : {}
2210
2230
  };
2211
2231
  }
2212
- function qi(e) {
2232
+ function en(e) {
2213
2233
  const t = /* @__PURE__ */ new Map();
2214
2234
  for (const [s, r] of Object.entries(e))
2215
2235
  t.set(s, r);
2216
2236
  return t;
2217
2237
  }
2218
- function Qi(e, t, s) {
2238
+ function sn(e, t, s) {
2219
2239
  if (!e || typeof e != "object")
2220
2240
  throw new D("UI update graph is missing");
2221
2241
  const r = it(e, "graph");
2222
2242
  if (r.type !== "root")
2223
2243
  throw new D('UI update root element must have type "root"');
2224
- const i = tn(r.props, t);
2244
+ const i = nn(r.props, t);
2225
2245
  return {
2226
2246
  type: "full",
2227
2247
  version: s,
@@ -2229,7 +2249,7 @@ function Qi(e, t, s) {
2229
2249
  metadata: i
2230
2250
  };
2231
2251
  }
2232
- function Zi(e, t, s) {
2252
+ function rn(e, t, s) {
2233
2253
  if (!Array.isArray(e))
2234
2254
  throw new D("UI diff changes must be an array");
2235
2255
  if (!w(t))
@@ -2238,7 +2258,7 @@ function Zi(e, t, s) {
2238
2258
  if (typeof r != "string" || r.length === 0)
2239
2259
  throw new D("UI diff metadata is missing viewId");
2240
2260
  const i = e.map(
2241
- (c, h) => Ji(c ?? {}, `changes[${h}]`)
2261
+ (c, h) => tn(c ?? {}, `changes[${h}]`)
2242
2262
  ), n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, o = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, a = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, l = z(t.optimisticPatch), u = J(t.optimisticReconcile), I = {
2243
2263
  viewId: r,
2244
2264
  ...n !== void 0 ? { optimisticActionId: n } : {},
@@ -2254,7 +2274,7 @@ function Zi(e, t, s) {
2254
2274
  metadata: I
2255
2275
  };
2256
2276
  }
2257
- function tn(e, t) {
2277
+ function nn(e, t) {
2258
2278
  const s = e.viewId;
2259
2279
  if (typeof s != "string" || s.length === 0)
2260
2280
  throw new D("UI update root is missing viewId");
@@ -2312,7 +2332,7 @@ class D extends Error {
2312
2332
  super(t), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
2313
2333
  }
2314
2334
  }
2315
- function en(e) {
2335
+ function on(e) {
2316
2336
  let t;
2317
2337
  try {
2318
2338
  t = JSON.parse(e.Json);
@@ -2326,13 +2346,13 @@ function en(e) {
2326
2346
  throw new D(`Unknown UI update type: ${String(s)}`);
2327
2347
  if (typeof r != "number")
2328
2348
  throw new D("UI update version must be a number");
2329
- const i = s === "full" ? Qi(t.graph, t.metadata, r) : Zi(t.changes, t.metadata, r), n = e.Payloads ? qi(e.Payloads) : /* @__PURE__ */ new Map();
2349
+ const i = s === "full" ? sn(t.graph, t.metadata, r) : rn(t.changes, t.metadata, r), n = e.Payloads ? en(e.Payloads) : /* @__PURE__ */ new Map();
2330
2350
  return {
2331
2351
  snapshot: i,
2332
2352
  payloads: n
2333
2353
  };
2334
2354
  }
2335
- class sn {
2355
+ class an {
2336
2356
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2337
2357
  cache = /* @__PURE__ */ new Map();
2338
2358
  /**
@@ -2413,7 +2433,7 @@ class sn {
2413
2433
  return this.cache.size;
2414
2434
  }
2415
2435
  }
2416
- class rn {
2436
+ class ln {
2417
2437
  views = /* @__PURE__ */ new Map();
2418
2438
  listeners = /* @__PURE__ */ new Set();
2419
2439
  payloads = /* @__PURE__ */ new Map();
@@ -2435,7 +2455,7 @@ class rn {
2435
2455
  patchesDirty = !0;
2436
2456
  payloadsDirty = !0;
2437
2457
  // Handler cache for stable event handlers
2438
- handlerCache = new sn();
2458
+ handlerCache = new an();
2439
2459
  getSortedPatches(t) {
2440
2460
  const s = this.buildPatchCacheKey(t.patches);
2441
2461
  if (t.sortedPatchesCacheKey === s && t.sortedPatchesCache)
@@ -2554,7 +2574,7 @@ class rn {
2554
2574
  if (t.upsertOptimisticPatches && t.upsertOptimisticPatches.length > 0)
2555
2575
  for (const [h, E] of t.upsertOptimisticPatches) {
2556
2576
  const _ = u(), y = _.get(h);
2557
- ln(y, E) || (_.set(h, E), r = !0);
2577
+ un(y, E) || (_.set(h, E), r = !0);
2558
2578
  }
2559
2579
  const I = t.rootViewId ?? this.snapshot.rootViewId;
2560
2580
  I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
@@ -2681,7 +2701,7 @@ class rn {
2681
2701
  }
2682
2702
  }
2683
2703
  }
2684
- class nn {
2704
+ class In {
2685
2705
  streams = /* @__PURE__ */ new Map();
2686
2706
  listeners = /* @__PURE__ */ new Set();
2687
2707
  apply(t, s) {
@@ -2745,7 +2765,7 @@ class nn {
2745
2765
  }
2746
2766
  getOrCreateStreamEntry(t) {
2747
2767
  let s = this.streams.get(t);
2748
- return s || (s = { store: new rn() }, this.streams.set(t, s)), s;
2768
+ return s || (s = { store: new ln() }, this.streams.set(t, s)), s;
2749
2769
  }
2750
2770
  notify(t) {
2751
2771
  for (const s of this.listeners)
@@ -2764,7 +2784,7 @@ function Wt(e, t, s) {
2764
2784
  const r = t.get(e.id);
2765
2785
  let i = e, n = !1;
2766
2786
  if (r?.textUpdates && r.textUpdates.length > 0) {
2767
- const f = hn(e, r.textUpdates);
2787
+ const f = _n(e, r.textUpdates);
2768
2788
  i = f.node, n = f.changed;
2769
2789
  }
2770
2790
  let o = !1, a = i.props;
@@ -2835,7 +2855,7 @@ function b(e, t) {
2835
2855
  b(s, t);
2836
2856
  }
2837
2857
  const x = [];
2838
- function on(e) {
2858
+ function hn(e) {
2839
2859
  for (; x.length <= e; )
2840
2860
  x.push(/* @__PURE__ */ new Map());
2841
2861
  return x[e].clear(), x[e];
@@ -2846,10 +2866,10 @@ function H(e, t, s) {
2846
2866
  function Kt(e, t, s, r) {
2847
2867
  if (e === t)
2848
2868
  return;
2849
- (e.type !== t.type || !an(e.props, t.props) || !jt(e.styleIds, t.styleIds)) && s.add(t.id);
2869
+ (e.type !== t.type || !cn(e.props, t.props) || !jt(e.styleIds, t.styleIds)) && s.add(t.id);
2850
2870
  const n = e.children ?? [], o = t.children ?? [];
2851
2871
  if (n !== o) {
2852
- const a = on(r);
2872
+ const a = hn(r);
2853
2873
  for (const l of n)
2854
2874
  a.set(l.id, l);
2855
2875
  for (const l of o) {
@@ -2859,7 +2879,7 @@ function Kt(e, t, s, r) {
2859
2879
  n.length !== o.length && s.add(t.id);
2860
2880
  }
2861
2881
  }
2862
- function an(e, t) {
2882
+ function cn(e, t) {
2863
2883
  return k(e, t);
2864
2884
  }
2865
2885
  function $t(e, t) {
@@ -2875,7 +2895,7 @@ function $t(e, t) {
2875
2895
  function jt(e, t) {
2876
2896
  return k(e, t);
2877
2897
  }
2878
- function ln(e, t) {
2898
+ function un(e, t) {
2879
2899
  if (e === t) return !0;
2880
2900
  if (!e || !t || e.length !== t.length) return !1;
2881
2901
  for (let s = 0; s < e.length; s++) {
@@ -2885,7 +2905,7 @@ function ln(e, t) {
2885
2905
  }
2886
2906
  return !0;
2887
2907
  }
2888
- function In(e, t) {
2908
+ function En(e, t) {
2889
2909
  if (t.length === 0)
2890
2910
  return e;
2891
2911
  const s = [...t].sort((n, o) => n.start - o.start);
@@ -2893,7 +2913,7 @@ function In(e, t) {
2893
2913
  for (const n of s) {
2894
2914
  const o = at(n.start + i, 0, r.length);
2895
2915
  if (n.end == null) {
2896
- const I = r.slice(o), c = cn(I, n.insertedText);
2916
+ const I = r.slice(o), c = fn(I, n.insertedText);
2897
2917
  r = r.slice(0, o) + n.insertedText + I.slice(c), i += n.insertedText.length - c;
2898
2918
  continue;
2899
2919
  }
@@ -2902,7 +2922,7 @@ function In(e, t) {
2902
2922
  }
2903
2923
  return r;
2904
2924
  }
2905
- function hn(e, t, s) {
2925
+ function _n(e, t, s) {
2906
2926
  if (t.length === 0)
2907
2927
  return { node: e, changed: !1 };
2908
2928
  const r = /* @__PURE__ */ new Map();
@@ -2922,7 +2942,7 @@ function Xt(e, t, s) {
2922
2942
  c ? c.push(I) : u.set(I.propertyName, [I]);
2923
2943
  }
2924
2944
  for (const [I, c] of u.entries()) {
2925
- const h = n[I], _ = In(typeof h == "string" ? h : "", c);
2945
+ const h = n[I], _ = En(typeof h == "string" ? h : "", c);
2926
2946
  i || (n = V(n), i = !0), n[I] = _;
2927
2947
  }
2928
2948
  }
@@ -2951,7 +2971,7 @@ function Xt(e, t, s) {
2951
2971
  function at(e, t, s) {
2952
2972
  return Math.max(t, Math.min(s, e));
2953
2973
  }
2954
- function cn(e, t) {
2974
+ function fn(e, t) {
2955
2975
  const s = Math.min(e.length, t.length);
2956
2976
  let r = 0;
2957
2977
  for (; r < s && e.charCodeAt(r) === t.charCodeAt(r); )
@@ -2991,9 +3011,9 @@ function k(e, t) {
2991
3011
  }
2992
3012
  return !1;
2993
3013
  }
2994
- function un(e) {
3014
+ function dn(e) {
2995
3015
  return new Worker(
2996
- "" + new URL("assets/ui-worker-CcCXE6uz.js", import.meta.url).href,
3016
+ "" + new URL("assets/ui-worker-CgUI78Qp.js", import.meta.url).href,
2997
3017
  {
2998
3018
  type: "module",
2999
3019
  name: e?.name
@@ -3001,10 +3021,10 @@ function un(e) {
3001
3021
  );
3002
3022
  }
3003
3023
  const R = zt("IkonUICore");
3004
- class fn {
3024
+ class Sn {
3005
3025
  unsubscribeProtocolMessages;
3006
3026
  client = null;
3007
- uiStore = new nn();
3027
+ uiStore = new In();
3008
3028
  uiWorker = null;
3009
3029
  uiStyles = /* @__PURE__ */ new Map();
3010
3030
  uiUpdateListeners = /* @__PURE__ */ new Set();
@@ -3057,7 +3077,7 @@ class fn {
3057
3077
  }
3058
3078
  startUiWorker(t) {
3059
3079
  try {
3060
- this.uiWorker = new un();
3080
+ this.uiWorker = new dn();
3061
3081
  } catch (i) {
3062
3082
  R.warn("Failed to create UI worker, falling back to main thread", i), this.uiWorker = null;
3063
3083
  return;
@@ -3174,7 +3194,7 @@ class fn {
3174
3194
  }
3175
3195
  handleGlobalState(t) {
3176
3196
  try {
3177
- const s = hr(t), r = /* @__PURE__ */ new Set();
3197
+ const s = _r(t), r = /* @__PURE__ */ new Set();
3178
3198
  for (const i of Object.values(s.UIStreams ?? {}))
3179
3199
  r.add(i.StreamId), this.uiStore.setCategory(i.StreamId, i.Info?.Category);
3180
3200
  for (const i of this.uiStore.getSnapshots())
@@ -3186,7 +3206,7 @@ class fn {
3186
3206
  handleUiUpdate(t) {
3187
3207
  const s = nt(t), r = `${s.senderId}_${s.trackId}`;
3188
3208
  try {
3189
- const i = Bi(t), n = en(i);
3209
+ const i = Yi(t), n = on(i);
3190
3210
  this.notifyUiUpdate(r, n), this.uiStore.apply(r, n), this.sendUiUpdateAck(s.trackId, n.snapshot.version);
3191
3211
  } catch (i) {
3192
3212
  i instanceof D ? R.warn("Failed to parse UI update", i.causeError ?? i) : R.error("Failed to apply UI update", i);
@@ -3194,7 +3214,7 @@ class fn {
3194
3214
  }
3195
3215
  handleUiStyles(t) {
3196
3216
  try {
3197
- const s = ni(t);
3217
+ const s = Ii(t);
3198
3218
  if (!s.StyleId) return;
3199
3219
  const r = {
3200
3220
  styleId: s.StyleId,
@@ -3208,7 +3228,7 @@ class fn {
3208
3228
  }
3209
3229
  handleUiStylesBatch(t) {
3210
3230
  try {
3211
- const s = _i(t);
3231
+ const s = yi(t);
3212
3232
  if (!s.Styles) return;
3213
3233
  for (const r of s.Styles) {
3214
3234
  if (!r.StyleId) continue;
@@ -3225,7 +3245,7 @@ class fn {
3225
3245
  }
3226
3246
  handleUiStylesDelete(t) {
3227
3247
  try {
3228
- const s = gi(t);
3248
+ const s = Pi(t);
3229
3249
  if (!s.StyleIds || s.StyleIds.length === 0) return;
3230
3250
  for (const r of s.StyleIds)
3231
3251
  this.uiStyles.delete(r);
@@ -3257,7 +3277,7 @@ class fn {
3257
3277
  sendUiUpdateAck(t, s) {
3258
3278
  if (this.client && !(!Number.isFinite(s) || s < 0))
3259
3279
  try {
3260
- const r = Ki({ Version: s }, this.client.sessionId ?? 0, { trackId: t });
3280
+ const r = zi({ Version: s }, this.client.sessionId ?? 0, { trackId: t });
3261
3281
  this.client.sendProtocolMessage(r);
3262
3282
  } catch (r) {
3263
3283
  R.warn("Failed to send UI update ack", r);
@@ -3265,10 +3285,10 @@ class fn {
3265
3285
  }
3266
3286
  }
3267
3287
  export {
3268
- sn as HandlerCache,
3269
- fn as IkonUICore,
3270
- nn as UiStore,
3271
- rn as UiStreamStore,
3288
+ an as HandlerCache,
3289
+ Sn as IkonUICore,
3290
+ In as UiStore,
3291
+ ln as UiStreamStore,
3272
3292
  D as UiUpdateParseError,
3273
- en as parseUiUpdate
3293
+ on as parseUiUpdate
3274
3294
  };