@ikonai/sdk-ui 0.0.43 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ui-worker-B6ND4RDC.js → ui-worker-CcCXE6uz.js} +243 -238
- package/index.js +214 -209
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1481,23 +1481,23 @@ function Gs(e, t) {
|
|
|
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 =
|
|
1485
|
-
function
|
|
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) {
|
|
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.Functions = /* @__PURE__ */ Object.create(null), e;
|
|
1491
|
-
}
|
|
1492
|
-
function or(e, t) {
|
|
1493
|
-
const s = p.create(e);
|
|
1494
|
-
return ar(s, t);
|
|
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;
|
|
1495
1491
|
}
|
|
1496
1492
|
function ar(e, t) {
|
|
1497
|
-
const s =
|
|
1498
|
-
return
|
|
1493
|
+
const s = p.create(e);
|
|
1494
|
+
return lr(s, t);
|
|
1499
1495
|
}
|
|
1500
1496
|
function lr(e, t) {
|
|
1497
|
+
const s = t ?? or();
|
|
1498
|
+
return pt(s), Ir(e, s), s;
|
|
1499
|
+
}
|
|
1500
|
+
function Ir(e, t) {
|
|
1501
1501
|
let s;
|
|
1502
1502
|
for (; (s = e.next()) !== null; )
|
|
1503
1503
|
switch (s.fieldId) {
|
|
@@ -1508,12 +1508,12 @@ function lr(e, t) {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
case Ws: {
|
|
1510
1510
|
if (s.isNull) throw new Error();
|
|
1511
|
-
t.Clients =
|
|
1511
|
+
t.Clients = cr(s.asDictionary());
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
|
1514
1514
|
case Ks: {
|
|
1515
1515
|
if (s.isNull) throw new Error();
|
|
1516
|
-
t.TrackingStreams =
|
|
1516
|
+
t.TrackingStreams = ur(s.asDictionary());
|
|
1517
1517
|
break;
|
|
1518
1518
|
}
|
|
1519
1519
|
case $s: {
|
|
@@ -1538,56 +1538,61 @@ function lr(e, t) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
case Js: {
|
|
1540
1540
|
if (s.isNull) throw new Error();
|
|
1541
|
-
t.
|
|
1541
|
+
t.IsGitSourceMode = s.asBool();
|
|
1542
1542
|
break;
|
|
1543
1543
|
}
|
|
1544
1544
|
case qs: {
|
|
1545
1545
|
if (s.isNull) throw new Error();
|
|
1546
|
-
t.
|
|
1546
|
+
t.OrganisationName = s.asString();
|
|
1547
1547
|
break;
|
|
1548
1548
|
}
|
|
1549
1549
|
case Qs: {
|
|
1550
1550
|
if (s.isNull) throw new Error();
|
|
1551
|
-
t.
|
|
1551
|
+
t.Functions = Er(s.asDictionary());
|
|
1552
1552
|
break;
|
|
1553
1553
|
}
|
|
1554
1554
|
case Zs: {
|
|
1555
1555
|
if (s.isNull) throw new Error();
|
|
1556
|
-
t.
|
|
1556
|
+
t.UIStreams = _r(s.asDictionary());
|
|
1557
1557
|
break;
|
|
1558
1558
|
}
|
|
1559
1559
|
case tr: {
|
|
1560
1560
|
if (s.isNull) throw new Error();
|
|
1561
|
-
t.
|
|
1561
|
+
t.SpaceId = s.asString();
|
|
1562
1562
|
break;
|
|
1563
1563
|
}
|
|
1564
1564
|
case er: {
|
|
1565
1565
|
if (s.isNull) throw new Error();
|
|
1566
|
-
t.
|
|
1566
|
+
t.PrimaryUserId = s.asString();
|
|
1567
1567
|
break;
|
|
1568
1568
|
}
|
|
1569
1569
|
case sr: {
|
|
1570
1570
|
if (s.isNull) throw new Error();
|
|
1571
|
-
t.
|
|
1571
|
+
t.ChannelInstanceId = s.asString();
|
|
1572
1572
|
break;
|
|
1573
1573
|
}
|
|
1574
1574
|
case rr: {
|
|
1575
1575
|
if (s.isNull) throw new Error();
|
|
1576
|
-
t.
|
|
1576
|
+
t.AudioStreams = fr(s.asDictionary());
|
|
1577
1577
|
break;
|
|
1578
1578
|
}
|
|
1579
1579
|
case ir: {
|
|
1580
|
+
if (s.isNull) throw new Error();
|
|
1581
|
+
t.VideoStreams = dr(s.asDictionary());
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
case nr: {
|
|
1580
1585
|
if (s.isNull) throw new Error();
|
|
1581
1586
|
t.SpaceName = s.asString();
|
|
1582
1587
|
break;
|
|
1583
1588
|
}
|
|
1584
1589
|
}
|
|
1585
1590
|
}
|
|
1586
|
-
function
|
|
1591
|
+
function hr(e, t) {
|
|
1587
1592
|
const s = M(e, Hs, xs);
|
|
1588
|
-
return
|
|
1593
|
+
return ar(s, t);
|
|
1589
1594
|
}
|
|
1590
|
-
function
|
|
1595
|
+
function cr(e) {
|
|
1591
1596
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1592
1597
|
let s;
|
|
1593
1598
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1596,275 +1601,275 @@ function hr(e) {
|
|
|
1596
1601
|
}
|
|
1597
1602
|
return t;
|
|
1598
1603
|
}
|
|
1599
|
-
function
|
|
1604
|
+
function ur(e) {
|
|
1600
1605
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1601
1606
|
let s;
|
|
1602
1607
|
for (; (s = e.next()) !== null; ) {
|
|
1603
1608
|
const r = s.key.asString();
|
|
1604
|
-
t[r] =
|
|
1609
|
+
t[r] = Wr(s.value.asObject());
|
|
1605
1610
|
}
|
|
1606
1611
|
return t;
|
|
1607
1612
|
}
|
|
1608
|
-
function
|
|
1613
|
+
function Er(e) {
|
|
1609
1614
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1610
1615
|
let s;
|
|
1611
1616
|
for (; (s = e.next()) !== null; ) {
|
|
1612
1617
|
const r = s.key.asInt32();
|
|
1613
|
-
t[r] =
|
|
1618
|
+
t[r] = Tr(s.value.asArray());
|
|
1614
1619
|
}
|
|
1615
1620
|
return t;
|
|
1616
1621
|
}
|
|
1617
|
-
function
|
|
1622
|
+
function _r(e) {
|
|
1618
1623
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1619
1624
|
let s;
|
|
1620
1625
|
for (; (s = e.next()) !== null; ) {
|
|
1621
1626
|
const r = s.key.asString();
|
|
1622
|
-
t[r] =
|
|
1627
|
+
t[r] = Ur(s.value.asObject());
|
|
1623
1628
|
}
|
|
1624
1629
|
return t;
|
|
1625
1630
|
}
|
|
1626
|
-
function
|
|
1631
|
+
function fr(e) {
|
|
1627
1632
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1628
1633
|
let s;
|
|
1629
1634
|
for (; (s = e.next()) !== null; ) {
|
|
1630
1635
|
const r = s.key.asString();
|
|
1631
|
-
t[r] =
|
|
1636
|
+
t[r] = pr(s.value.asObject());
|
|
1632
1637
|
}
|
|
1633
1638
|
return t;
|
|
1634
1639
|
}
|
|
1635
|
-
function
|
|
1640
|
+
function dr(e) {
|
|
1636
1641
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1637
1642
|
let s;
|
|
1638
1643
|
for (; (s = e.next()) !== null; ) {
|
|
1639
1644
|
const r = s.key.asString();
|
|
1640
|
-
t[r] =
|
|
1645
|
+
t[r] = Vr(s.value.asObject());
|
|
1641
1646
|
}
|
|
1642
1647
|
return t;
|
|
1643
1648
|
}
|
|
1644
|
-
function
|
|
1649
|
+
function Tr(e) {
|
|
1645
1650
|
const t = [];
|
|
1646
1651
|
let s;
|
|
1647
1652
|
for (; (s = e.next()) !== null; )
|
|
1648
1653
|
t.push(ls(s.asObject()));
|
|
1649
1654
|
return t;
|
|
1650
1655
|
}
|
|
1651
|
-
const
|
|
1652
|
-
function
|
|
1656
|
+
const yr = 161083277, Sr = 325678206, Ar = 3469892363, Nr = 3645544153;
|
|
1657
|
+
function wr(e) {
|
|
1653
1658
|
const t = {};
|
|
1654
1659
|
return Ot(t), t;
|
|
1655
1660
|
}
|
|
1656
1661
|
function Ot(e) {
|
|
1657
1662
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Rt(), e;
|
|
1658
1663
|
}
|
|
1659
|
-
function wr(e, t) {
|
|
1660
|
-
const s = t ?? Nr();
|
|
1661
|
-
return Ot(s), Ur(e, s), s;
|
|
1662
|
-
}
|
|
1663
1664
|
function Ur(e, t) {
|
|
1665
|
+
const s = t ?? wr();
|
|
1666
|
+
return Ot(s), Cr(e, s), s;
|
|
1667
|
+
}
|
|
1668
|
+
function Cr(e, t) {
|
|
1664
1669
|
let s;
|
|
1665
1670
|
for (; (s = e.next()) !== null; )
|
|
1666
1671
|
switch (s.fieldId) {
|
|
1667
|
-
case
|
|
1672
|
+
case yr: {
|
|
1668
1673
|
if (s.isNull) throw new Error();
|
|
1669
1674
|
t.StreamId = s.asString();
|
|
1670
1675
|
break;
|
|
1671
1676
|
}
|
|
1672
|
-
case
|
|
1677
|
+
case Sr: {
|
|
1673
1678
|
if (s.isNull) throw new Error();
|
|
1674
1679
|
t.ClientSessionId = s.asInt32();
|
|
1675
1680
|
break;
|
|
1676
1681
|
}
|
|
1677
|
-
case
|
|
1682
|
+
case Ar: {
|
|
1678
1683
|
if (s.isNull) throw new Error();
|
|
1679
1684
|
t.TrackId = s.asInt32();
|
|
1680
1685
|
break;
|
|
1681
1686
|
}
|
|
1682
|
-
case
|
|
1687
|
+
case Nr: {
|
|
1683
1688
|
if (s.isNull) throw new Error();
|
|
1684
1689
|
t.Info = ps(s.asObject());
|
|
1685
1690
|
break;
|
|
1686
1691
|
}
|
|
1687
1692
|
}
|
|
1688
1693
|
}
|
|
1689
|
-
const
|
|
1690
|
-
function
|
|
1694
|
+
const Dr = 161083277, Rr = 325678206, mr = 3469892363, Lr = 3645544153;
|
|
1695
|
+
function gr(e) {
|
|
1691
1696
|
const t = {};
|
|
1692
1697
|
return bt(t), t;
|
|
1693
1698
|
}
|
|
1694
1699
|
function bt(e) {
|
|
1695
1700
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = yt(), e;
|
|
1696
1701
|
}
|
|
1697
|
-
function gr(e, t) {
|
|
1698
|
-
const s = t ?? Lr();
|
|
1699
|
-
return bt(s), pr(e, s), s;
|
|
1700
|
-
}
|
|
1701
1702
|
function pr(e, t) {
|
|
1703
|
+
const s = t ?? gr();
|
|
1704
|
+
return bt(s), Or(e, s), s;
|
|
1705
|
+
}
|
|
1706
|
+
function Or(e, t) {
|
|
1702
1707
|
let s;
|
|
1703
1708
|
for (; (s = e.next()) !== null; )
|
|
1704
1709
|
switch (s.fieldId) {
|
|
1705
|
-
case
|
|
1710
|
+
case Dr: {
|
|
1706
1711
|
if (s.isNull) throw new Error();
|
|
1707
1712
|
t.StreamId = s.asString();
|
|
1708
1713
|
break;
|
|
1709
1714
|
}
|
|
1710
|
-
case
|
|
1715
|
+
case Rr: {
|
|
1711
1716
|
if (s.isNull) throw new Error();
|
|
1712
1717
|
t.ClientSessionId = s.asInt32();
|
|
1713
1718
|
break;
|
|
1714
1719
|
}
|
|
1715
|
-
case
|
|
1720
|
+
case mr: {
|
|
1716
1721
|
if (s.isNull) throw new Error();
|
|
1717
1722
|
t.TrackId = s.asInt32();
|
|
1718
1723
|
break;
|
|
1719
1724
|
}
|
|
1720
|
-
case
|
|
1725
|
+
case Lr: {
|
|
1721
1726
|
if (s.isNull) throw new Error();
|
|
1722
1727
|
t.Info = ue(s.asObject());
|
|
1723
1728
|
break;
|
|
1724
1729
|
}
|
|
1725
1730
|
}
|
|
1726
1731
|
}
|
|
1727
|
-
const
|
|
1728
|
-
function
|
|
1732
|
+
const br = 161083277, Pr = 325678206, Fr = 3469892363, kr = 3645544153;
|
|
1733
|
+
function vr(e) {
|
|
1729
1734
|
const t = {};
|
|
1730
1735
|
return Pt(t), t;
|
|
1731
1736
|
}
|
|
1732
1737
|
function Pt(e) {
|
|
1733
1738
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Lt(), e;
|
|
1734
1739
|
}
|
|
1735
|
-
function vr(e, t) {
|
|
1736
|
-
const s = t ?? kr();
|
|
1737
|
-
return Pt(s), Vr(e, s), s;
|
|
1738
|
-
}
|
|
1739
1740
|
function Vr(e, t) {
|
|
1741
|
+
const s = t ?? vr();
|
|
1742
|
+
return Pt(s), Mr(e, s), s;
|
|
1743
|
+
}
|
|
1744
|
+
function Mr(e, t) {
|
|
1740
1745
|
let s;
|
|
1741
1746
|
for (; (s = e.next()) !== null; )
|
|
1742
1747
|
switch (s.fieldId) {
|
|
1743
|
-
case
|
|
1748
|
+
case br: {
|
|
1744
1749
|
if (s.isNull) throw new Error();
|
|
1745
1750
|
t.StreamId = s.asString();
|
|
1746
1751
|
break;
|
|
1747
1752
|
}
|
|
1748
|
-
case
|
|
1753
|
+
case Pr: {
|
|
1749
1754
|
if (s.isNull) throw new Error();
|
|
1750
1755
|
t.ClientSessionId = s.asInt32();
|
|
1751
1756
|
break;
|
|
1752
1757
|
}
|
|
1753
|
-
case
|
|
1758
|
+
case Fr: {
|
|
1754
1759
|
if (s.isNull) throw new Error();
|
|
1755
1760
|
t.TrackId = s.asInt32();
|
|
1756
1761
|
break;
|
|
1757
1762
|
}
|
|
1758
|
-
case
|
|
1763
|
+
case kr: {
|
|
1759
1764
|
if (s.isNull) throw new Error();
|
|
1760
1765
|
t.Info = Bs(s.asObject());
|
|
1761
1766
|
break;
|
|
1762
1767
|
}
|
|
1763
1768
|
}
|
|
1764
1769
|
}
|
|
1765
|
-
const
|
|
1766
|
-
function
|
|
1770
|
+
const Br = 161083277, Gr = 325678206, xr = 3469892363, Hr = 3645544153;
|
|
1771
|
+
function Yr(e) {
|
|
1767
1772
|
const t = {};
|
|
1768
1773
|
return Ft(t), t;
|
|
1769
1774
|
}
|
|
1770
1775
|
function Ft(e) {
|
|
1771
1776
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ct(), e;
|
|
1772
1777
|
}
|
|
1773
|
-
function Yr(e, t) {
|
|
1774
|
-
const s = t ?? Hr();
|
|
1775
|
-
return Ft(s), Wr(e, s), s;
|
|
1776
|
-
}
|
|
1777
1778
|
function Wr(e, t) {
|
|
1779
|
+
const s = t ?? Yr();
|
|
1780
|
+
return Ft(s), Kr(e, s), s;
|
|
1781
|
+
}
|
|
1782
|
+
function Kr(e, t) {
|
|
1778
1783
|
let s;
|
|
1779
1784
|
for (; (s = e.next()) !== null; )
|
|
1780
1785
|
switch (s.fieldId) {
|
|
1781
|
-
case
|
|
1786
|
+
case Br: {
|
|
1782
1787
|
if (s.isNull) throw new Error();
|
|
1783
1788
|
t.StreamId = s.asString();
|
|
1784
1789
|
break;
|
|
1785
1790
|
}
|
|
1786
|
-
case
|
|
1791
|
+
case Gr: {
|
|
1787
1792
|
if (s.isNull) throw new Error();
|
|
1788
1793
|
t.ClientSessionId = s.asInt32();
|
|
1789
1794
|
break;
|
|
1790
1795
|
}
|
|
1791
|
-
case
|
|
1796
|
+
case xr: {
|
|
1792
1797
|
if (s.isNull) throw new Error();
|
|
1793
1798
|
t.TrackId = s.asInt32();
|
|
1794
1799
|
break;
|
|
1795
1800
|
}
|
|
1796
|
-
case
|
|
1801
|
+
case Hr: {
|
|
1797
1802
|
if (s.isNull) throw new Error();
|
|
1798
1803
|
t.Info = Rs(s.asObject());
|
|
1799
1804
|
break;
|
|
1800
1805
|
}
|
|
1801
1806
|
}
|
|
1802
1807
|
}
|
|
1803
|
-
const
|
|
1804
|
-
function
|
|
1808
|
+
const $r = 1405462580, jr = 2968276160;
|
|
1809
|
+
function Xr(e) {
|
|
1805
1810
|
const t = {};
|
|
1806
1811
|
return kt(t), t;
|
|
1807
1812
|
}
|
|
1808
1813
|
function kt(e) {
|
|
1809
1814
|
return e.MimeType = "", e.Value = new Uint8Array(0), e;
|
|
1810
1815
|
}
|
|
1811
|
-
function Xr(e, t) {
|
|
1812
|
-
const s = t ?? jr();
|
|
1813
|
-
return kt(s), zr(e, s), s;
|
|
1814
|
-
}
|
|
1815
1816
|
function zr(e, t) {
|
|
1817
|
+
const s = t ?? Xr();
|
|
1818
|
+
return kt(s), Jr(e, s), s;
|
|
1819
|
+
}
|
|
1820
|
+
function Jr(e, t) {
|
|
1816
1821
|
let s;
|
|
1817
1822
|
for (; (s = e.next()) !== null; )
|
|
1818
1823
|
switch (s.fieldId) {
|
|
1819
|
-
case
|
|
1824
|
+
case $r: {
|
|
1820
1825
|
if (s.isNull) throw new Error();
|
|
1821
1826
|
t.Value = s.asBinary();
|
|
1822
1827
|
break;
|
|
1823
1828
|
}
|
|
1824
|
-
case
|
|
1829
|
+
case jr: {
|
|
1825
1830
|
if (s.isNull) throw new Error();
|
|
1826
1831
|
t.MimeType = s.asString();
|
|
1827
1832
|
break;
|
|
1828
1833
|
}
|
|
1829
1834
|
}
|
|
1830
1835
|
}
|
|
1831
|
-
const
|
|
1832
|
-
function
|
|
1836
|
+
const qr = 1, Qr = 2097188, Zr = 979822885, ti = 2374537704;
|
|
1837
|
+
function ei(e) {
|
|
1833
1838
|
const t = {};
|
|
1834
1839
|
return vt(t), t;
|
|
1835
1840
|
}
|
|
1836
1841
|
function vt(e) {
|
|
1837
1842
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1838
1843
|
}
|
|
1839
|
-
function ei(e, t) {
|
|
1840
|
-
const s = p.create(e);
|
|
1841
|
-
return si(s, t);
|
|
1842
|
-
}
|
|
1843
1844
|
function si(e, t) {
|
|
1844
|
-
const s =
|
|
1845
|
-
return
|
|
1845
|
+
const s = p.create(e);
|
|
1846
|
+
return ri(s, t);
|
|
1846
1847
|
}
|
|
1847
1848
|
function ri(e, t) {
|
|
1849
|
+
const s = t ?? ei();
|
|
1850
|
+
return vt(s), ii(e, s), s;
|
|
1851
|
+
}
|
|
1852
|
+
function ii(e, t) {
|
|
1848
1853
|
let s;
|
|
1849
1854
|
for (; (s = e.next()) !== null; )
|
|
1850
1855
|
switch (s.fieldId) {
|
|
1851
|
-
case
|
|
1856
|
+
case Zr: {
|
|
1852
1857
|
if (s.isNull) throw new Error();
|
|
1853
1858
|
t.StyleId = s.asString();
|
|
1854
1859
|
break;
|
|
1855
1860
|
}
|
|
1856
|
-
case
|
|
1861
|
+
case ti: {
|
|
1857
1862
|
if (s.isNull) throw new Error();
|
|
1858
|
-
t.Style =
|
|
1863
|
+
t.Style = oi(s.asDictionary());
|
|
1859
1864
|
break;
|
|
1860
1865
|
}
|
|
1861
1866
|
}
|
|
1862
1867
|
}
|
|
1863
|
-
function
|
|
1864
|
-
const s = M(e,
|
|
1865
|
-
return
|
|
1868
|
+
function ni(e, t) {
|
|
1869
|
+
const s = M(e, Qr, qr);
|
|
1870
|
+
return si(s, t);
|
|
1866
1871
|
}
|
|
1867
|
-
function
|
|
1872
|
+
function oi(e) {
|
|
1868
1873
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1869
1874
|
let s;
|
|
1870
1875
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1873,73 +1878,73 @@ function ni(e) {
|
|
|
1873
1878
|
}
|
|
1874
1879
|
return t;
|
|
1875
1880
|
}
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1881
|
+
const ai = 1, li = 2097192, Ii = 2136687806;
|
|
1882
|
+
function hi(e) {
|
|
1878
1883
|
const t = {};
|
|
1879
1884
|
return Vt(t), t;
|
|
1880
1885
|
}
|
|
1881
1886
|
function Vt(e) {
|
|
1882
1887
|
return e.Styles = [], e;
|
|
1883
1888
|
}
|
|
1884
|
-
function hi(e, t) {
|
|
1885
|
-
const s = p.create(e);
|
|
1886
|
-
return ci(s, t);
|
|
1887
|
-
}
|
|
1888
1889
|
function ci(e, t) {
|
|
1889
|
-
const s =
|
|
1890
|
-
return
|
|
1890
|
+
const s = p.create(e);
|
|
1891
|
+
return ui(s, t);
|
|
1891
1892
|
}
|
|
1892
1893
|
function ui(e, t) {
|
|
1894
|
+
const s = t ?? hi();
|
|
1895
|
+
return Vt(s), Ei(e, s), s;
|
|
1896
|
+
}
|
|
1897
|
+
function Ei(e, t) {
|
|
1893
1898
|
let s;
|
|
1894
1899
|
for (; (s = e.next()) !== null; )
|
|
1895
1900
|
switch (s.fieldId) {
|
|
1896
|
-
case
|
|
1901
|
+
case Ii: {
|
|
1897
1902
|
if (s.isNull) throw new Error();
|
|
1898
|
-
t.Styles =
|
|
1903
|
+
t.Styles = fi(s.asArray());
|
|
1899
1904
|
break;
|
|
1900
1905
|
}
|
|
1901
1906
|
}
|
|
1902
1907
|
}
|
|
1903
|
-
function
|
|
1904
|
-
const s = M(e,
|
|
1905
|
-
return
|
|
1908
|
+
function _i(e, t) {
|
|
1909
|
+
const s = M(e, li, ai);
|
|
1910
|
+
return ci(s, t);
|
|
1906
1911
|
}
|
|
1907
|
-
function
|
|
1912
|
+
function fi(e) {
|
|
1908
1913
|
const t = [];
|
|
1909
1914
|
let s;
|
|
1910
1915
|
for (; (s = e.next()) !== null; )
|
|
1911
|
-
t.push(
|
|
1916
|
+
t.push(Si(s.asObject()));
|
|
1912
1917
|
return t;
|
|
1913
1918
|
}
|
|
1914
|
-
const
|
|
1915
|
-
function
|
|
1919
|
+
const di = 979822885, Ti = 2374537704;
|
|
1920
|
+
function yi(e) {
|
|
1916
1921
|
const t = {};
|
|
1917
1922
|
return Mt(t), t;
|
|
1918
1923
|
}
|
|
1919
1924
|
function Mt(e) {
|
|
1920
1925
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1921
1926
|
}
|
|
1922
|
-
function yi(e, t) {
|
|
1923
|
-
const s = t ?? Ti();
|
|
1924
|
-
return Mt(s), Si(e, s), s;
|
|
1925
|
-
}
|
|
1926
1927
|
function Si(e, t) {
|
|
1928
|
+
const s = t ?? yi();
|
|
1929
|
+
return Mt(s), Ai(e, s), s;
|
|
1930
|
+
}
|
|
1931
|
+
function Ai(e, t) {
|
|
1927
1932
|
let s;
|
|
1928
1933
|
for (; (s = e.next()) !== null; )
|
|
1929
1934
|
switch (s.fieldId) {
|
|
1930
|
-
case
|
|
1935
|
+
case di: {
|
|
1931
1936
|
if (s.isNull) throw new Error();
|
|
1932
1937
|
t.StyleId = s.asString();
|
|
1933
1938
|
break;
|
|
1934
1939
|
}
|
|
1935
|
-
case
|
|
1940
|
+
case Ti: {
|
|
1936
1941
|
if (s.isNull) throw new Error();
|
|
1937
|
-
t.Style =
|
|
1942
|
+
t.Style = Ni(s.asDictionary());
|
|
1938
1943
|
break;
|
|
1939
1944
|
}
|
|
1940
1945
|
}
|
|
1941
1946
|
}
|
|
1942
|
-
function
|
|
1947
|
+
function Ni(e) {
|
|
1943
1948
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1944
1949
|
let s;
|
|
1945
1950
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1948,100 +1953,100 @@ function Ai(e) {
|
|
|
1948
1953
|
}
|
|
1949
1954
|
return t;
|
|
1950
1955
|
}
|
|
1951
|
-
const
|
|
1952
|
-
function
|
|
1956
|
+
const wi = 1, Ui = 2097193, Ci = 1415642792;
|
|
1957
|
+
function Di(e) {
|
|
1953
1958
|
const t = {};
|
|
1954
1959
|
return Bt(t), t;
|
|
1955
1960
|
}
|
|
1956
1961
|
function Bt(e) {
|
|
1957
1962
|
return e.StyleIds = [], e;
|
|
1958
1963
|
}
|
|
1959
|
-
function Di(e, t) {
|
|
1960
|
-
const s = p.create(e);
|
|
1961
|
-
return Ri(s, t);
|
|
1962
|
-
}
|
|
1963
1964
|
function Ri(e, t) {
|
|
1964
|
-
const s =
|
|
1965
|
-
return
|
|
1965
|
+
const s = p.create(e);
|
|
1966
|
+
return mi(s, t);
|
|
1966
1967
|
}
|
|
1967
1968
|
function mi(e, t) {
|
|
1969
|
+
const s = t ?? Di();
|
|
1970
|
+
return Bt(s), Li(e, s), s;
|
|
1971
|
+
}
|
|
1972
|
+
function Li(e, t) {
|
|
1968
1973
|
let s;
|
|
1969
1974
|
for (; (s = e.next()) !== null; )
|
|
1970
1975
|
switch (s.fieldId) {
|
|
1971
|
-
case
|
|
1976
|
+
case Ci: {
|
|
1972
1977
|
if (s.isNull) throw new Error();
|
|
1973
|
-
t.StyleIds =
|
|
1978
|
+
t.StyleIds = pi(s.asArray());
|
|
1974
1979
|
break;
|
|
1975
1980
|
}
|
|
1976
1981
|
}
|
|
1977
1982
|
}
|
|
1978
|
-
function
|
|
1979
|
-
const s = M(e,
|
|
1980
|
-
return
|
|
1983
|
+
function gi(e, t) {
|
|
1984
|
+
const s = M(e, Ui, wi);
|
|
1985
|
+
return Ri(s, t);
|
|
1981
1986
|
}
|
|
1982
|
-
function
|
|
1987
|
+
function pi(e) {
|
|
1983
1988
|
const t = [];
|
|
1984
1989
|
let s;
|
|
1985
1990
|
for (; (s = e.next()) !== null; )
|
|
1986
1991
|
t.push(s.asString());
|
|
1987
1992
|
return t;
|
|
1988
1993
|
}
|
|
1989
|
-
const
|
|
1990
|
-
function
|
|
1994
|
+
const Oi = 1, bi = 2097190, Pi = 425183262, Fi = 653781469;
|
|
1995
|
+
function ki(e) {
|
|
1991
1996
|
const t = {};
|
|
1992
1997
|
return Gt(t), t;
|
|
1993
1998
|
}
|
|
1994
1999
|
function Gt(e) {
|
|
1995
2000
|
return e.Json = "", e.Payloads = /* @__PURE__ */ Object.create(null), e;
|
|
1996
2001
|
}
|
|
1997
|
-
function ki(e, t) {
|
|
1998
|
-
const s = p.create(e);
|
|
1999
|
-
return vi(s, t);
|
|
2000
|
-
}
|
|
2001
2002
|
function vi(e, t) {
|
|
2002
|
-
const s =
|
|
2003
|
-
return
|
|
2003
|
+
const s = p.create(e);
|
|
2004
|
+
return Vi(s, t);
|
|
2004
2005
|
}
|
|
2005
2006
|
function Vi(e, t) {
|
|
2007
|
+
const s = t ?? ki();
|
|
2008
|
+
return Gt(s), Mi(e, s), s;
|
|
2009
|
+
}
|
|
2010
|
+
function Mi(e, t) {
|
|
2006
2011
|
let s;
|
|
2007
2012
|
for (; (s = e.next()) !== null; )
|
|
2008
2013
|
switch (s.fieldId) {
|
|
2009
|
-
case
|
|
2014
|
+
case Pi: {
|
|
2010
2015
|
if (s.isNull) throw new Error();
|
|
2011
2016
|
t.Json = s.asString();
|
|
2012
2017
|
break;
|
|
2013
2018
|
}
|
|
2014
|
-
case
|
|
2019
|
+
case Fi: {
|
|
2015
2020
|
if (s.isNull) throw new Error();
|
|
2016
|
-
t.Payloads =
|
|
2021
|
+
t.Payloads = Gi(s.asDictionary());
|
|
2017
2022
|
break;
|
|
2018
2023
|
}
|
|
2019
2024
|
}
|
|
2020
2025
|
}
|
|
2021
|
-
function
|
|
2022
|
-
const s = M(e,
|
|
2023
|
-
return
|
|
2026
|
+
function Bi(e, t) {
|
|
2027
|
+
const s = M(e, bi, Oi);
|
|
2028
|
+
return vi(s, t);
|
|
2024
2029
|
}
|
|
2025
|
-
function
|
|
2030
|
+
function Gi(e) {
|
|
2026
2031
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2027
2032
|
let s;
|
|
2028
2033
|
for (; (s = e.next()) !== null; ) {
|
|
2029
2034
|
const r = s.key.asString();
|
|
2030
|
-
t[r] =
|
|
2035
|
+
t[r] = zr(s.value.asObject());
|
|
2031
2036
|
}
|
|
2032
2037
|
return t;
|
|
2033
2038
|
}
|
|
2034
|
-
const xt = 1,
|
|
2035
|
-
function
|
|
2039
|
+
const xt = 1, xi = 1048636, Hi = 2610786289;
|
|
2040
|
+
function Yi(e) {
|
|
2036
2041
|
const t = new B(xt);
|
|
2037
|
-
return
|
|
2042
|
+
return Wi(e, t), t.finish();
|
|
2038
2043
|
}
|
|
2039
|
-
function
|
|
2040
|
-
t.writeUInt32Field(
|
|
2044
|
+
function Wi(e, t) {
|
|
2045
|
+
t.writeUInt32Field(Hi, e.Version >>> 0);
|
|
2041
2046
|
}
|
|
2042
|
-
function
|
|
2043
|
-
const r =
|
|
2044
|
-
return Qt(
|
|
2047
|
+
function Ki(e, t, s) {
|
|
2048
|
+
const r = Yi(e);
|
|
2049
|
+
return Qt(xi, r, xt, t, s);
|
|
2045
2050
|
}
|
|
2046
2051
|
function w(e) {
|
|
2047
2052
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
@@ -2099,7 +2104,7 @@ function it(e, t) {
|
|
|
2099
2104
|
styleIds: u ?? []
|
|
2100
2105
|
};
|
|
2101
2106
|
}
|
|
2102
|
-
function
|
|
2107
|
+
function $i(e, t) {
|
|
2103
2108
|
if (!w(e))
|
|
2104
2109
|
throw new Error(`Invalid text delta at ${t}`);
|
|
2105
2110
|
const s = e.NodeId, r = e.PropertyName, i = e.Start, n = e.End, o = e.InsertedText;
|
|
@@ -2126,7 +2131,7 @@ function Ki(e, t) {
|
|
|
2126
2131
|
insertedText: o
|
|
2127
2132
|
};
|
|
2128
2133
|
}
|
|
2129
|
-
function
|
|
2134
|
+
function ji(e, t) {
|
|
2130
2135
|
if (!w(e))
|
|
2131
2136
|
throw new Error(`Invalid child insert at ${t}`);
|
|
2132
2137
|
const s = e.Index, r = e.Node;
|
|
@@ -2139,7 +2144,7 @@ function $i(e, t) {
|
|
|
2139
2144
|
node: it(r, `${t}.node`)
|
|
2140
2145
|
};
|
|
2141
2146
|
}
|
|
2142
|
-
function
|
|
2147
|
+
function Xi(e, t) {
|
|
2143
2148
|
if (!w(e))
|
|
2144
2149
|
throw new Error(`Invalid child move at ${t}`);
|
|
2145
2150
|
const s = e.NodeId, r = e.FromIndex, i = e.ToIndex;
|
|
@@ -2155,7 +2160,7 @@ function ji(e, t) {
|
|
|
2155
2160
|
toIndex: i
|
|
2156
2161
|
};
|
|
2157
2162
|
}
|
|
2158
|
-
function
|
|
2163
|
+
function zi(e, t) {
|
|
2159
2164
|
if (!w(e))
|
|
2160
2165
|
throw new Error(`Invalid child remove at ${t}`);
|
|
2161
2166
|
const s = e.NodeId, r = e.Index;
|
|
@@ -2168,18 +2173,18 @@ function Xi(e, t) {
|
|
|
2168
2173
|
index: r
|
|
2169
2174
|
};
|
|
2170
2175
|
}
|
|
2171
|
-
function
|
|
2176
|
+
function Ji(e, t) {
|
|
2172
2177
|
if (!w(e))
|
|
2173
2178
|
throw new Error(`Invalid node change at ${t}`);
|
|
2174
2179
|
const s = e.nodeId;
|
|
2175
2180
|
if (typeof s != "string" || s.length === 0)
|
|
2176
2181
|
throw new Error(`Invalid node change nodeId at ${t}`);
|
|
2177
2182
|
const r = Array.isArray(e.inserts) ? e.inserts.map(
|
|
2178
|
-
(I, c) =>
|
|
2183
|
+
(I, c) => ji(I ?? {}, `${t}.inserts[${c}]`)
|
|
2179
2184
|
) : void 0, i = Array.isArray(e.moves) ? e.moves.map(
|
|
2180
|
-
(I, c) =>
|
|
2185
|
+
(I, c) => Xi(I ?? {}, `${t}.moves[${c}]`)
|
|
2181
2186
|
) : void 0, n = Array.isArray(e.removals) ? e.removals.map(
|
|
2182
|
-
(I, c) =>
|
|
2187
|
+
(I, c) => zi(I ?? {}, `${t}.removals[${c}]`)
|
|
2183
2188
|
) : void 0;
|
|
2184
2189
|
let o;
|
|
2185
2190
|
if (w(e.changedProps)) {
|
|
@@ -2192,7 +2197,7 @@ function zi(e, t) {
|
|
|
2192
2197
|
}
|
|
2193
2198
|
}
|
|
2194
2199
|
const a = Array.isArray(e.textUpdates) ? e.textUpdates.map(
|
|
2195
|
-
(I, c) =>
|
|
2200
|
+
(I, c) => $i(I ?? {}, `${t}.textUpdates[${c}]`)
|
|
2196
2201
|
) : void 0, l = e.styleIds, u = l !== void 0 ? Yt(l, t, s, !0) : void 0;
|
|
2197
2202
|
return {
|
|
2198
2203
|
nodeId: s,
|
|
@@ -2204,19 +2209,19 @@ function zi(e, t) {
|
|
|
2204
2209
|
...u !== void 0 ? { styleIds: u } : {}
|
|
2205
2210
|
};
|
|
2206
2211
|
}
|
|
2207
|
-
function
|
|
2212
|
+
function qi(e) {
|
|
2208
2213
|
const t = /* @__PURE__ */ new Map();
|
|
2209
2214
|
for (const [s, r] of Object.entries(e))
|
|
2210
2215
|
t.set(s, r);
|
|
2211
2216
|
return t;
|
|
2212
2217
|
}
|
|
2213
|
-
function
|
|
2218
|
+
function Qi(e, t, s) {
|
|
2214
2219
|
if (!e || typeof e != "object")
|
|
2215
2220
|
throw new D("UI update graph is missing");
|
|
2216
2221
|
const r = it(e, "graph");
|
|
2217
2222
|
if (r.type !== "root")
|
|
2218
2223
|
throw new D('UI update root element must have type "root"');
|
|
2219
|
-
const i =
|
|
2224
|
+
const i = tn(r.props, t);
|
|
2220
2225
|
return {
|
|
2221
2226
|
type: "full",
|
|
2222
2227
|
version: s,
|
|
@@ -2224,7 +2229,7 @@ function qi(e, t, s) {
|
|
|
2224
2229
|
metadata: i
|
|
2225
2230
|
};
|
|
2226
2231
|
}
|
|
2227
|
-
function
|
|
2232
|
+
function Zi(e, t, s) {
|
|
2228
2233
|
if (!Array.isArray(e))
|
|
2229
2234
|
throw new D("UI diff changes must be an array");
|
|
2230
2235
|
if (!w(t))
|
|
@@ -2233,7 +2238,7 @@ function Qi(e, t, s) {
|
|
|
2233
2238
|
if (typeof r != "string" || r.length === 0)
|
|
2234
2239
|
throw new D("UI diff metadata is missing viewId");
|
|
2235
2240
|
const i = e.map(
|
|
2236
|
-
(c, h) =>
|
|
2241
|
+
(c, h) => Ji(c ?? {}, `changes[${h}]`)
|
|
2237
2242
|
), 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 = {
|
|
2238
2243
|
viewId: r,
|
|
2239
2244
|
...n !== void 0 ? { optimisticActionId: n } : {},
|
|
@@ -2249,7 +2254,7 @@ function Qi(e, t, s) {
|
|
|
2249
2254
|
metadata: I
|
|
2250
2255
|
};
|
|
2251
2256
|
}
|
|
2252
|
-
function
|
|
2257
|
+
function tn(e, t) {
|
|
2253
2258
|
const s = e.viewId;
|
|
2254
2259
|
if (typeof s != "string" || s.length === 0)
|
|
2255
2260
|
throw new D("UI update root is missing viewId");
|
|
@@ -2307,7 +2312,7 @@ class D extends Error {
|
|
|
2307
2312
|
super(t), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
2308
2313
|
}
|
|
2309
2314
|
}
|
|
2310
|
-
function
|
|
2315
|
+
function en(e) {
|
|
2311
2316
|
let t;
|
|
2312
2317
|
try {
|
|
2313
2318
|
t = JSON.parse(e.Json);
|
|
@@ -2321,13 +2326,13 @@ function tn(e) {
|
|
|
2321
2326
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
2322
2327
|
if (typeof r != "number")
|
|
2323
2328
|
throw new D("UI update version must be a number");
|
|
2324
|
-
const i = s === "full" ?
|
|
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();
|
|
2325
2330
|
return {
|
|
2326
2331
|
snapshot: i,
|
|
2327
2332
|
payloads: n
|
|
2328
2333
|
};
|
|
2329
2334
|
}
|
|
2330
|
-
class
|
|
2335
|
+
class sn {
|
|
2331
2336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2332
2337
|
cache = /* @__PURE__ */ new Map();
|
|
2333
2338
|
/**
|
|
@@ -2408,7 +2413,7 @@ class en {
|
|
|
2408
2413
|
return this.cache.size;
|
|
2409
2414
|
}
|
|
2410
2415
|
}
|
|
2411
|
-
class
|
|
2416
|
+
class rn {
|
|
2412
2417
|
views = /* @__PURE__ */ new Map();
|
|
2413
2418
|
listeners = /* @__PURE__ */ new Set();
|
|
2414
2419
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2430,7 +2435,7 @@ class sn {
|
|
|
2430
2435
|
patchesDirty = !0;
|
|
2431
2436
|
payloadsDirty = !0;
|
|
2432
2437
|
// Handler cache for stable event handlers
|
|
2433
|
-
handlerCache = new
|
|
2438
|
+
handlerCache = new sn();
|
|
2434
2439
|
getSortedPatches(t) {
|
|
2435
2440
|
const s = this.buildPatchCacheKey(t.patches);
|
|
2436
2441
|
if (t.sortedPatchesCacheKey === s && t.sortedPatchesCache)
|
|
@@ -2549,7 +2554,7 @@ class sn {
|
|
|
2549
2554
|
if (t.upsertOptimisticPatches && t.upsertOptimisticPatches.length > 0)
|
|
2550
2555
|
for (const [h, E] of t.upsertOptimisticPatches) {
|
|
2551
2556
|
const _ = u(), y = _.get(h);
|
|
2552
|
-
|
|
2557
|
+
ln(y, E) || (_.set(h, E), r = !0);
|
|
2553
2558
|
}
|
|
2554
2559
|
const I = t.rootViewId ?? this.snapshot.rootViewId;
|
|
2555
2560
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2676,7 +2681,7 @@ class sn {
|
|
|
2676
2681
|
}
|
|
2677
2682
|
}
|
|
2678
2683
|
}
|
|
2679
|
-
class
|
|
2684
|
+
class nn {
|
|
2680
2685
|
streams = /* @__PURE__ */ new Map();
|
|
2681
2686
|
listeners = /* @__PURE__ */ new Set();
|
|
2682
2687
|
apply(t, s) {
|
|
@@ -2740,7 +2745,7 @@ class rn {
|
|
|
2740
2745
|
}
|
|
2741
2746
|
getOrCreateStreamEntry(t) {
|
|
2742
2747
|
let s = this.streams.get(t);
|
|
2743
|
-
return s || (s = { store: new
|
|
2748
|
+
return s || (s = { store: new rn() }, this.streams.set(t, s)), s;
|
|
2744
2749
|
}
|
|
2745
2750
|
notify(t) {
|
|
2746
2751
|
for (const s of this.listeners)
|
|
@@ -2759,7 +2764,7 @@ function Wt(e, t, s) {
|
|
|
2759
2764
|
const r = t.get(e.id);
|
|
2760
2765
|
let i = e, n = !1;
|
|
2761
2766
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2762
|
-
const f =
|
|
2767
|
+
const f = hn(e, r.textUpdates);
|
|
2763
2768
|
i = f.node, n = f.changed;
|
|
2764
2769
|
}
|
|
2765
2770
|
let o = !1, a = i.props;
|
|
@@ -2830,7 +2835,7 @@ function b(e, t) {
|
|
|
2830
2835
|
b(s, t);
|
|
2831
2836
|
}
|
|
2832
2837
|
const x = [];
|
|
2833
|
-
function
|
|
2838
|
+
function on(e) {
|
|
2834
2839
|
for (; x.length <= e; )
|
|
2835
2840
|
x.push(/* @__PURE__ */ new Map());
|
|
2836
2841
|
return x[e].clear(), x[e];
|
|
@@ -2841,10 +2846,10 @@ function H(e, t, s) {
|
|
|
2841
2846
|
function Kt(e, t, s, r) {
|
|
2842
2847
|
if (e === t)
|
|
2843
2848
|
return;
|
|
2844
|
-
(e.type !== t.type || !
|
|
2849
|
+
(e.type !== t.type || !an(e.props, t.props) || !jt(e.styleIds, t.styleIds)) && s.add(t.id);
|
|
2845
2850
|
const n = e.children ?? [], o = t.children ?? [];
|
|
2846
2851
|
if (n !== o) {
|
|
2847
|
-
const a =
|
|
2852
|
+
const a = on(r);
|
|
2848
2853
|
for (const l of n)
|
|
2849
2854
|
a.set(l.id, l);
|
|
2850
2855
|
for (const l of o) {
|
|
@@ -2854,7 +2859,7 @@ function Kt(e, t, s, r) {
|
|
|
2854
2859
|
n.length !== o.length && s.add(t.id);
|
|
2855
2860
|
}
|
|
2856
2861
|
}
|
|
2857
|
-
function
|
|
2862
|
+
function an(e, t) {
|
|
2858
2863
|
return k(e, t);
|
|
2859
2864
|
}
|
|
2860
2865
|
function $t(e, t) {
|
|
@@ -2870,7 +2875,7 @@ function $t(e, t) {
|
|
|
2870
2875
|
function jt(e, t) {
|
|
2871
2876
|
return k(e, t);
|
|
2872
2877
|
}
|
|
2873
|
-
function
|
|
2878
|
+
function ln(e, t) {
|
|
2874
2879
|
if (e === t) return !0;
|
|
2875
2880
|
if (!e || !t || e.length !== t.length) return !1;
|
|
2876
2881
|
for (let s = 0; s < e.length; s++) {
|
|
@@ -2880,7 +2885,7 @@ function an(e, t) {
|
|
|
2880
2885
|
}
|
|
2881
2886
|
return !0;
|
|
2882
2887
|
}
|
|
2883
|
-
function
|
|
2888
|
+
function In(e, t) {
|
|
2884
2889
|
if (t.length === 0)
|
|
2885
2890
|
return e;
|
|
2886
2891
|
const s = [...t].sort((n, o) => n.start - o.start);
|
|
@@ -2888,7 +2893,7 @@ function ln(e, t) {
|
|
|
2888
2893
|
for (const n of s) {
|
|
2889
2894
|
const o = at(n.start + i, 0, r.length);
|
|
2890
2895
|
if (n.end == null) {
|
|
2891
|
-
const I = r.slice(o), c =
|
|
2896
|
+
const I = r.slice(o), c = cn(I, n.insertedText);
|
|
2892
2897
|
r = r.slice(0, o) + n.insertedText + I.slice(c), i += n.insertedText.length - c;
|
|
2893
2898
|
continue;
|
|
2894
2899
|
}
|
|
@@ -2897,7 +2902,7 @@ function ln(e, t) {
|
|
|
2897
2902
|
}
|
|
2898
2903
|
return r;
|
|
2899
2904
|
}
|
|
2900
|
-
function
|
|
2905
|
+
function hn(e, t, s) {
|
|
2901
2906
|
if (t.length === 0)
|
|
2902
2907
|
return { node: e, changed: !1 };
|
|
2903
2908
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2917,7 +2922,7 @@ function Xt(e, t, s) {
|
|
|
2917
2922
|
c ? c.push(I) : u.set(I.propertyName, [I]);
|
|
2918
2923
|
}
|
|
2919
2924
|
for (const [I, c] of u.entries()) {
|
|
2920
|
-
const h = n[I], _ =
|
|
2925
|
+
const h = n[I], _ = In(typeof h == "string" ? h : "", c);
|
|
2921
2926
|
i || (n = V(n), i = !0), n[I] = _;
|
|
2922
2927
|
}
|
|
2923
2928
|
}
|
|
@@ -2946,7 +2951,7 @@ function Xt(e, t, s) {
|
|
|
2946
2951
|
function at(e, t, s) {
|
|
2947
2952
|
return Math.max(t, Math.min(s, e));
|
|
2948
2953
|
}
|
|
2949
|
-
function
|
|
2954
|
+
function cn(e, t) {
|
|
2950
2955
|
const s = Math.min(e.length, t.length);
|
|
2951
2956
|
let r = 0;
|
|
2952
2957
|
for (; r < s && e.charCodeAt(r) === t.charCodeAt(r); )
|
|
@@ -2986,9 +2991,9 @@ function k(e, t) {
|
|
|
2986
2991
|
}
|
|
2987
2992
|
return !1;
|
|
2988
2993
|
}
|
|
2989
|
-
function
|
|
2994
|
+
function un(e) {
|
|
2990
2995
|
return new Worker(
|
|
2991
|
-
"" + new URL("assets/ui-worker-
|
|
2996
|
+
"" + new URL("assets/ui-worker-CcCXE6uz.js", import.meta.url).href,
|
|
2992
2997
|
{
|
|
2993
2998
|
type: "module",
|
|
2994
2999
|
name: e?.name
|
|
@@ -2996,10 +3001,10 @@ function cn(e) {
|
|
|
2996
3001
|
);
|
|
2997
3002
|
}
|
|
2998
3003
|
const R = zt("IkonUICore");
|
|
2999
|
-
class
|
|
3004
|
+
class fn {
|
|
3000
3005
|
unsubscribeProtocolMessages;
|
|
3001
3006
|
client = null;
|
|
3002
|
-
uiStore = new
|
|
3007
|
+
uiStore = new nn();
|
|
3003
3008
|
uiWorker = null;
|
|
3004
3009
|
uiStyles = /* @__PURE__ */ new Map();
|
|
3005
3010
|
uiUpdateListeners = /* @__PURE__ */ new Set();
|
|
@@ -3052,7 +3057,7 @@ class _n {
|
|
|
3052
3057
|
}
|
|
3053
3058
|
startUiWorker(t) {
|
|
3054
3059
|
try {
|
|
3055
|
-
this.uiWorker = new
|
|
3060
|
+
this.uiWorker = new un();
|
|
3056
3061
|
} catch (i) {
|
|
3057
3062
|
R.warn("Failed to create UI worker, falling back to main thread", i), this.uiWorker = null;
|
|
3058
3063
|
return;
|
|
@@ -3169,7 +3174,7 @@ class _n {
|
|
|
3169
3174
|
}
|
|
3170
3175
|
handleGlobalState(t) {
|
|
3171
3176
|
try {
|
|
3172
|
-
const s =
|
|
3177
|
+
const s = hr(t), r = /* @__PURE__ */ new Set();
|
|
3173
3178
|
for (const i of Object.values(s.UIStreams ?? {}))
|
|
3174
3179
|
r.add(i.StreamId), this.uiStore.setCategory(i.StreamId, i.Info?.Category);
|
|
3175
3180
|
for (const i of this.uiStore.getSnapshots())
|
|
@@ -3181,7 +3186,7 @@ class _n {
|
|
|
3181
3186
|
handleUiUpdate(t) {
|
|
3182
3187
|
const s = nt(t), r = `${s.senderId}_${s.trackId}`;
|
|
3183
3188
|
try {
|
|
3184
|
-
const i =
|
|
3189
|
+
const i = Bi(t), n = en(i);
|
|
3185
3190
|
this.notifyUiUpdate(r, n), this.uiStore.apply(r, n), this.sendUiUpdateAck(s.trackId, n.snapshot.version);
|
|
3186
3191
|
} catch (i) {
|
|
3187
3192
|
i instanceof D ? R.warn("Failed to parse UI update", i.causeError ?? i) : R.error("Failed to apply UI update", i);
|
|
@@ -3189,7 +3194,7 @@ class _n {
|
|
|
3189
3194
|
}
|
|
3190
3195
|
handleUiStyles(t) {
|
|
3191
3196
|
try {
|
|
3192
|
-
const s =
|
|
3197
|
+
const s = ni(t);
|
|
3193
3198
|
if (!s.StyleId) return;
|
|
3194
3199
|
const r = {
|
|
3195
3200
|
styleId: s.StyleId,
|
|
@@ -3203,7 +3208,7 @@ class _n {
|
|
|
3203
3208
|
}
|
|
3204
3209
|
handleUiStylesBatch(t) {
|
|
3205
3210
|
try {
|
|
3206
|
-
const s =
|
|
3211
|
+
const s = _i(t);
|
|
3207
3212
|
if (!s.Styles) return;
|
|
3208
3213
|
for (const r of s.Styles) {
|
|
3209
3214
|
if (!r.StyleId) continue;
|
|
@@ -3220,7 +3225,7 @@ class _n {
|
|
|
3220
3225
|
}
|
|
3221
3226
|
handleUiStylesDelete(t) {
|
|
3222
3227
|
try {
|
|
3223
|
-
const s =
|
|
3228
|
+
const s = gi(t);
|
|
3224
3229
|
if (!s.StyleIds || s.StyleIds.length === 0) return;
|
|
3225
3230
|
for (const r of s.StyleIds)
|
|
3226
3231
|
this.uiStyles.delete(r);
|
|
@@ -3252,7 +3257,7 @@ class _n {
|
|
|
3252
3257
|
sendUiUpdateAck(t, s) {
|
|
3253
3258
|
if (this.client && !(!Number.isFinite(s) || s < 0))
|
|
3254
3259
|
try {
|
|
3255
|
-
const r =
|
|
3260
|
+
const r = Ki({ Version: s }, this.client.sessionId ?? 0, { trackId: t });
|
|
3256
3261
|
this.client.sendProtocolMessage(r);
|
|
3257
3262
|
} catch (r) {
|
|
3258
3263
|
R.warn("Failed to send UI update ack", r);
|
|
@@ -3260,10 +3265,10 @@ class _n {
|
|
|
3260
3265
|
}
|
|
3261
3266
|
}
|
|
3262
3267
|
export {
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3268
|
+
sn as HandlerCache,
|
|
3269
|
+
fn as IkonUICore,
|
|
3270
|
+
nn as UiStore,
|
|
3271
|
+
rn as UiStreamStore,
|
|
3267
3272
|
D as UiUpdateParseError,
|
|
3268
|
-
|
|
3273
|
+
en as parseUiUpdate
|
|
3269
3274
|
};
|