@nil-/xit 0.2.8 → 0.3.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/bundler.js +244 -244
- package/assets/index.js +61 -61
- package/package.json +1 -1
package/assets/index.js
CHANGED
|
@@ -5,8 +5,8 @@ var kt = (s) => {
|
|
|
5
5
|
var ae = (s, t, e) => t in s ? ne(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
6
6
|
var n = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e), It = (s, t, e) => t.has(s) || kt("Cannot " + e);
|
|
7
7
|
var u = (s, t, e) => (It(s, t, "read from private field"), e ? e.call(s) : t.get(s)), W = (s, t, e) => t.has(s) ? kt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), w = (s, t, e, i) => (It(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e), wt = (s, t, e) => (It(s, t, "access private method"), e);
|
|
8
|
-
import { w as et, g as
|
|
9
|
-
const mt =
|
|
8
|
+
import { w as et, g as Nt } from "./svelte/store.js";
|
|
9
|
+
const mt = 1e4;
|
|
10
10
|
var _t, Ft, v, rt, ot, lt, x, g;
|
|
11
11
|
class ft {
|
|
12
12
|
constructor(t) {
|
|
@@ -100,7 +100,7 @@ function oe(s) {
|
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
const vt = 2, L = 4, E = 4, f = 4, H = new Int32Array(2), yt = new Float32Array(H.buffer),
|
|
103
|
+
const vt = 2, L = 4, E = 4, f = 4, H = new Int32Array(2), yt = new Float32Array(H.buffer), At = new Float64Array(H.buffer), bt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
104
104
|
var Vt;
|
|
105
105
|
(function(s) {
|
|
106
106
|
s[s.UTF8_BYTES = 1] = "UTF8_BYTES", s[s.UTF16_STRING = 2] = "UTF16_STRING";
|
|
@@ -173,7 +173,7 @@ class P {
|
|
|
173
173
|
return H[0] = this.readInt32(t), yt[0];
|
|
174
174
|
}
|
|
175
175
|
readFloat64(t) {
|
|
176
|
-
return H[bt ? 0 : 1] = this.readInt32(t), H[bt ? 1 : 0] = this.readInt32(t + 4),
|
|
176
|
+
return H[bt ? 0 : 1] = this.readInt32(t), H[bt ? 1 : 0] = this.readInt32(t + 4), At[0];
|
|
177
177
|
}
|
|
178
178
|
writeInt8(t, e) {
|
|
179
179
|
this.bytes_[t] = e;
|
|
@@ -203,7 +203,7 @@ class P {
|
|
|
203
203
|
yt[0] = e, this.writeInt32(t, H[0]);
|
|
204
204
|
}
|
|
205
205
|
writeFloat64(t, e) {
|
|
206
|
-
|
|
206
|
+
At[0] = e, this.writeInt32(t, H[bt ? 0 : 1]), this.writeInt32(t + 4, H[bt ? 1 : 0]);
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* Return the file identifier. Behavior is undefined for FlatBuffers whose
|
|
@@ -675,7 +675,7 @@ class k {
|
|
|
675
675
|
return e(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class N {
|
|
679
679
|
constructor() {
|
|
680
680
|
n(this, "bb", null);
|
|
681
681
|
n(this, "bb_pos", 0);
|
|
@@ -684,10 +684,10 @@ class A {
|
|
|
684
684
|
return this.bb_pos = t, this.bb = e, this;
|
|
685
685
|
}
|
|
686
686
|
static getRootAsFileInfo(t, e) {
|
|
687
|
-
return (e || new
|
|
687
|
+
return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
688
688
|
}
|
|
689
689
|
static getSizePrefixedRootAsFileInfo(t, e) {
|
|
690
|
-
return t.setPosition(t.position() + f), (e || new
|
|
690
|
+
return t.setPosition(t.position() + f), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
691
691
|
}
|
|
692
692
|
target(t) {
|
|
693
693
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -728,27 +728,27 @@ class A {
|
|
|
728
728
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
729
729
|
}
|
|
730
730
|
static createFileInfo(t, e, i) {
|
|
731
|
-
return
|
|
731
|
+
return N.startFileInfo(t), N.addTarget(t, e), N.addMetadata(t, i), N.endFileInfo(t);
|
|
732
732
|
}
|
|
733
733
|
unpack() {
|
|
734
|
-
return new
|
|
734
|
+
return new Ct(this.target(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
|
|
735
735
|
}
|
|
736
736
|
unpackTo(t) {
|
|
737
737
|
t.target = this.target(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
class
|
|
740
|
+
class Ct {
|
|
741
741
|
constructor(t = null, e = []) {
|
|
742
742
|
n(this, "target");
|
|
743
743
|
n(this, "metadata");
|
|
744
744
|
this.target = t, this.metadata = e;
|
|
745
745
|
}
|
|
746
746
|
pack(t) {
|
|
747
|
-
const e = this.target !== null ? t.createString(this.target) : 0, i =
|
|
748
|
-
return
|
|
747
|
+
const e = this.target !== null ? t.createString(this.target) : 0, i = N.createMetadataVector(t, this.metadata);
|
|
748
|
+
return N.createFileInfo(t, e, i);
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
class
|
|
751
|
+
class A {
|
|
752
752
|
constructor() {
|
|
753
753
|
n(this, "bb", null);
|
|
754
754
|
n(this, "bb_pos", 0);
|
|
@@ -757,10 +757,10 @@ class N {
|
|
|
757
757
|
return this.bb_pos = t, this.bb = e, this;
|
|
758
758
|
}
|
|
759
759
|
static getRootAsFrameCache(t, e) {
|
|
760
|
-
return (e || new
|
|
760
|
+
return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
761
761
|
}
|
|
762
762
|
static getSizePrefixedRootAsFrameCache(t, e) {
|
|
763
|
-
return t.setPosition(t.position() + f), (e || new
|
|
763
|
+
return t.setPosition(t.position() + f), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
764
764
|
}
|
|
765
765
|
id(t) {
|
|
766
766
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -772,7 +772,7 @@ class N {
|
|
|
772
772
|
}
|
|
773
773
|
files(t, e) {
|
|
774
774
|
const i = this.bb.__offset(this.bb_pos, 8);
|
|
775
|
-
return i ? (e || new
|
|
775
|
+
return i ? (e || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
|
|
776
776
|
}
|
|
777
777
|
filesLength() {
|
|
778
778
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -804,16 +804,16 @@ class N {
|
|
|
804
804
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
805
805
|
}
|
|
806
806
|
static createFrameCache(t, e, i, a) {
|
|
807
|
-
return
|
|
807
|
+
return A.startFrameCache(t), A.addId(t, e), A.addContent(t, i), A.addFiles(t, a), A.endFrameCache(t);
|
|
808
808
|
}
|
|
809
809
|
unpack() {
|
|
810
|
-
return new
|
|
810
|
+
return new Bt(this.id(), this.content(), this.bb.createObjList(this.files.bind(this), this.filesLength()));
|
|
811
811
|
}
|
|
812
812
|
unpackTo(t) {
|
|
813
813
|
t.id = this.id(), t.content = this.content(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength());
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
class
|
|
816
|
+
class Bt {
|
|
817
817
|
constructor(t = null, e = null, i = []) {
|
|
818
818
|
n(this, "id");
|
|
819
819
|
n(this, "content");
|
|
@@ -821,13 +821,13 @@ class Ct {
|
|
|
821
821
|
this.id = t, this.content = e, this.files = i;
|
|
822
822
|
}
|
|
823
823
|
pack(t) {
|
|
824
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.content !== null ? t.createString(this.content) : 0, a =
|
|
825
|
-
return
|
|
824
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.content !== null ? t.createString(this.content) : 0, a = A.createFilesVector(t, t.createObjectOffsetList(this.files));
|
|
825
|
+
return A.createFrameCache(t, e, i, a);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
var _;
|
|
829
829
|
(function(s) {
|
|
830
|
-
s[s.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", s[s.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", s[s.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", s[s.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", s[s.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", s[s.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", s[s.Client_File_Request = 6] = "Client_File_Request", s[s.Server_File_Response = 7] = "Server_File_Response", s[s.
|
|
830
|
+
s[s.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", s[s.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", s[s.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", s[s.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", s[s.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", s[s.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", s[s.Client_File_Request = 6] = "Client_File_Request", s[s.Server_File_Response = 7] = "Server_File_Response", s[s.Client_File_Alias_Request = 8] = "Client_File_Alias_Request", s[s.Server_File_Alias_Response = 9] = "Server_File_Alias_Response", s[s.Client_Unique_FrameCache = 10] = "Client_Unique_FrameCache", s[s.Client_Tagged_FrameCache = 11] = "Client_Tagged_FrameCache", s[s.Client_Unique_Frame_Loaded = 12] = "Client_Unique_Frame_Loaded", s[s.Client_Tagged_Frame_Loaded = 13] = "Client_Tagged_Frame_Loaded", s[s.Client_Unique_Frame_Subscribe = 14] = "Client_Unique_Frame_Subscribe", s[s.Client_Tagged_Frame_Subscribe = 15] = "Client_Tagged_Frame_Subscribe", s[s.Client_Unique_Frame_Unsubscribe = 16] = "Client_Unique_Frame_Unsubscribe", s[s.Client_Tagged_Frame_Unsubscribe = 17] = "Client_Tagged_Frame_Unsubscribe", s[s.Client_Unique_Value_Request = 18] = "Client_Unique_Value_Request", s[s.Client_Tagged_Value_Request = 19] = "Client_Tagged_Value_Request", s[s.Server_Unique_Value_Response = 20] = "Server_Unique_Value_Response", s[s.Server_Tagged_Value_Response = 21] = "Server_Tagged_Value_Response", s[s.Unique_Value_Update = 22] = "Unique_Value_Update", s[s.Tagged_Value_Update = 23] = "Tagged_Value_Update", s[s.Client_Unique_Signal_Request = 24] = "Client_Unique_Signal_Request", s[s.Client_Tagged_Signal_Request = 25] = "Client_Tagged_Signal_Request", s[s.Server_Unique_Signal_Response = 26] = "Server_Unique_Signal_Response", s[s.Server_Tagged_Signal_Response = 27] = "Server_Tagged_Signal_Response", s[s.Client_Unique_Signal_Notify = 28] = "Client_Unique_Signal_Notify", s[s.Client_Tagged_Signal_Notify = 29] = "Client_Tagged_Signal_Notify";
|
|
831
831
|
})(_ || (_ = {}));
|
|
832
832
|
var q;
|
|
833
833
|
(function(s) {
|
|
@@ -1414,7 +1414,7 @@ class Gt {
|
|
|
1414
1414
|
return X.createTaggedSignalRequest(t, e, i);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
class
|
|
1417
|
+
class R {
|
|
1418
1418
|
constructor() {
|
|
1419
1419
|
n(this, "bb", null);
|
|
1420
1420
|
n(this, "bb_pos", 0);
|
|
@@ -1423,10 +1423,10 @@ class T {
|
|
|
1423
1423
|
return this.bb_pos = t, this.bb = e, this;
|
|
1424
1424
|
}
|
|
1425
1425
|
static getRootAsTaggedSignalResponse(t, e) {
|
|
1426
|
-
return (e || new
|
|
1426
|
+
return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1427
1427
|
}
|
|
1428
1428
|
static getSizePrefixedRootAsTaggedSignalResponse(t, e) {
|
|
1429
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1429
|
+
return t.setPosition(t.position() + f), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1430
1430
|
}
|
|
1431
1431
|
id(t) {
|
|
1432
1432
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1470,7 +1470,7 @@ class T {
|
|
|
1470
1470
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1471
1471
|
}
|
|
1472
1472
|
static createTaggedSignalResponse(t, e, i, a) {
|
|
1473
|
-
return
|
|
1473
|
+
return R.startTaggedSignalResponse(t), R.addId(t, e), R.addTag(t, i), R.addSignals(t, a), R.endTaggedSignalResponse(t);
|
|
1474
1474
|
}
|
|
1475
1475
|
unpack() {
|
|
1476
1476
|
return new ce(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
@@ -1487,8 +1487,8 @@ class ce {
|
|
|
1487
1487
|
this.id = t, this.tag = e, this.signals = i;
|
|
1488
1488
|
}
|
|
1489
1489
|
pack(t) {
|
|
1490
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a =
|
|
1491
|
-
return
|
|
1490
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = R.createSignalsVector(t, t.createObjectOffsetList(this.signals));
|
|
1491
|
+
return R.createTaggedSignalResponse(t, e, i, a);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
class $ {
|
|
@@ -1617,7 +1617,7 @@ class Ht {
|
|
|
1617
1617
|
return S.createValue(t, e, this.valueType, i);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
class
|
|
1620
|
+
class T {
|
|
1621
1621
|
constructor() {
|
|
1622
1622
|
n(this, "bb", null);
|
|
1623
1623
|
n(this, "bb_pos", 0);
|
|
@@ -1626,10 +1626,10 @@ class R {
|
|
|
1626
1626
|
return this.bb_pos = t, this.bb = e, this;
|
|
1627
1627
|
}
|
|
1628
1628
|
static getRootAsTaggedValueResponse(t, e) {
|
|
1629
|
-
return (e || new
|
|
1629
|
+
return (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1630
1630
|
}
|
|
1631
1631
|
static getSizePrefixedRootAsTaggedValueResponse(t, e) {
|
|
1632
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1632
|
+
return t.setPosition(t.position() + f), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1633
1633
|
}
|
|
1634
1634
|
id(t) {
|
|
1635
1635
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1673,7 +1673,7 @@ class R {
|
|
|
1673
1673
|
return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
|
|
1674
1674
|
}
|
|
1675
1675
|
static createTaggedValueResponse(t, e, i, a) {
|
|
1676
|
-
return
|
|
1676
|
+
return T.startTaggedValueResponse(t), T.addId(t, e), T.addTag(t, i), T.addValues(t, a), T.endTaggedValueResponse(t);
|
|
1677
1677
|
}
|
|
1678
1678
|
unpack() {
|
|
1679
1679
|
return new ue(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
@@ -1690,8 +1690,8 @@ class ue {
|
|
|
1690
1690
|
this.id = t, this.tag = e, this.values = i;
|
|
1691
1691
|
}
|
|
1692
1692
|
pack(t) {
|
|
1693
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a =
|
|
1694
|
-
return
|
|
1693
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = T.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
1694
|
+
return T.createTaggedValueResponse(t, e, i, a);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
class D {
|
|
@@ -1835,13 +1835,13 @@ class it {
|
|
|
1835
1835
|
return it.startUniqueFrameSubscribe(t), it.addId(t, e), it.endUniqueFrameSubscribe(t);
|
|
1836
1836
|
}
|
|
1837
1837
|
unpack() {
|
|
1838
|
-
return new
|
|
1838
|
+
return new Rt(this.id());
|
|
1839
1839
|
}
|
|
1840
1840
|
unpackTo(t) {
|
|
1841
1841
|
t.id = this.id();
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
class
|
|
1844
|
+
class Rt {
|
|
1845
1845
|
constructor(t = null) {
|
|
1846
1846
|
n(this, "id");
|
|
1847
1847
|
this.id = t;
|
|
@@ -1977,7 +1977,7 @@ class Xt {
|
|
|
1977
1977
|
return nt.createUniqueSignalRequest(t, e);
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
class
|
|
1980
|
+
class C {
|
|
1981
1981
|
constructor() {
|
|
1982
1982
|
n(this, "bb", null);
|
|
1983
1983
|
n(this, "bb_pos", 0);
|
|
@@ -1986,10 +1986,10 @@ class B {
|
|
|
1986
1986
|
return this.bb_pos = t, this.bb = e, this;
|
|
1987
1987
|
}
|
|
1988
1988
|
static getRootAsUniqueSignalResponse(t, e) {
|
|
1989
|
-
return (e || new
|
|
1989
|
+
return (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1990
1990
|
}
|
|
1991
1991
|
static getSizePrefixedRootAsUniqueSignalResponse(t, e) {
|
|
1992
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1992
|
+
return t.setPosition(t.position() + f), (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1993
1993
|
}
|
|
1994
1994
|
id(t) {
|
|
1995
1995
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2026,7 +2026,7 @@ class B {
|
|
|
2026
2026
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2027
2027
|
}
|
|
2028
2028
|
static createUniqueSignalResponse(t, e, i) {
|
|
2029
|
-
return
|
|
2029
|
+
return C.startUniqueSignalResponse(t), C.addId(t, e), C.addSignals(t, i), C.endUniqueSignalResponse(t);
|
|
2030
2030
|
}
|
|
2031
2031
|
unpack() {
|
|
2032
2032
|
return new he(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
@@ -2042,8 +2042,8 @@ class he {
|
|
|
2042
2042
|
this.id = t, this.signals = e;
|
|
2043
2043
|
}
|
|
2044
2044
|
pack(t) {
|
|
2045
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i =
|
|
2046
|
-
return
|
|
2045
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = C.createSignalsVector(t, t.createObjectOffsetList(this.signals));
|
|
2046
|
+
return C.createUniqueSignalResponse(t, e, i);
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
class at {
|
|
@@ -2094,7 +2094,7 @@ class $t {
|
|
|
2094
2094
|
return at.createUniqueValueRequest(t, e);
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
|
-
class
|
|
2097
|
+
class B {
|
|
2098
2098
|
constructor() {
|
|
2099
2099
|
n(this, "bb", null);
|
|
2100
2100
|
n(this, "bb_pos", 0);
|
|
@@ -2103,10 +2103,10 @@ class C {
|
|
|
2103
2103
|
return this.bb_pos = t, this.bb = e, this;
|
|
2104
2104
|
}
|
|
2105
2105
|
static getRootAsUniqueValueResponse(t, e) {
|
|
2106
|
-
return (e || new
|
|
2106
|
+
return (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2107
2107
|
}
|
|
2108
2108
|
static getSizePrefixedRootAsUniqueValueResponse(t, e) {
|
|
2109
|
-
return t.setPosition(t.position() + f), (e || new
|
|
2109
|
+
return t.setPosition(t.position() + f), (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2110
2110
|
}
|
|
2111
2111
|
id(t) {
|
|
2112
2112
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2143,7 +2143,7 @@ class C {
|
|
|
2143
2143
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
2144
2144
|
}
|
|
2145
2145
|
static createUniqueValueResponse(t, e, i) {
|
|
2146
|
-
return
|
|
2146
|
+
return B.startUniqueValueResponse(t), B.addId(t, e), B.addValues(t, i), B.endUniqueValueResponse(t);
|
|
2147
2147
|
}
|
|
2148
2148
|
unpack() {
|
|
2149
2149
|
return new de(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
@@ -2159,8 +2159,8 @@ class de {
|
|
|
2159
2159
|
this.id = t, this.values = e;
|
|
2160
2160
|
}
|
|
2161
2161
|
pack(t) {
|
|
2162
|
-
const e = this.id !== null ? t.createString(this.id) : 0, i =
|
|
2163
|
-
return
|
|
2162
|
+
const e = this.id !== null ? t.createString(this.id) : 0, i = B.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
2163
|
+
return B.createUniqueValueResponse(t, e, i);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
class tt {
|
|
@@ -2227,10 +2227,10 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2227
2227
|
}), i.addEventListener("message", async (a) => {
|
|
2228
2228
|
if (a.data.ok) {
|
|
2229
2229
|
if (a.data.files) {
|
|
2230
|
-
const r = new k(), o = new
|
|
2230
|
+
const r = new k(), o = new Bt(
|
|
2231
2231
|
s.id,
|
|
2232
2232
|
a.data.code,
|
|
2233
|
-
a.data.files.map((h) => new
|
|
2233
|
+
a.data.files.map((h) => new Ct(h.target, h.metadata))
|
|
2234
2234
|
);
|
|
2235
2235
|
r.finish(o.pack(r)), St(
|
|
2236
2236
|
s.host,
|
|
@@ -2282,7 +2282,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2282
2282
|
})(),
|
|
2283
2283
|
t != null ? (c, d) => {
|
|
2284
2284
|
if (c === _.Server_Tagged_Value_Response) {
|
|
2285
|
-
const b =
|
|
2285
|
+
const b = T.getRootAsTaggedValueResponse(
|
|
2286
2286
|
new P(d)
|
|
2287
2287
|
);
|
|
2288
2288
|
if (b.id() === s && t === b.tag())
|
|
@@ -2290,7 +2290,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2290
2290
|
}
|
|
2291
2291
|
} : (c, d) => {
|
|
2292
2292
|
if (c === _.Server_Unique_Value_Response) {
|
|
2293
|
-
const b =
|
|
2293
|
+
const b = B.getRootAsUniqueValueResponse(
|
|
2294
2294
|
new P(d)
|
|
2295
2295
|
);
|
|
2296
2296
|
if (b.id() === s)
|
|
@@ -2334,14 +2334,14 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2334
2334
|
if (p === l.ValueBuffer) {
|
|
2335
2335
|
const G = new Uint8Array(
|
|
2336
2336
|
m.unpack().value.value.value
|
|
2337
|
-
),
|
|
2337
|
+
), Tt = Nt(I);
|
|
2338
2338
|
let gt = !0;
|
|
2339
|
-
if (G.length !=
|
|
2339
|
+
if (G.length != Tt.length)
|
|
2340
2340
|
gt = !1;
|
|
2341
2341
|
else {
|
|
2342
2342
|
const ie = G.length;
|
|
2343
2343
|
for (let pt = 0; pt < ie; pt++)
|
|
2344
|
-
if (G[pt] !==
|
|
2344
|
+
if (G[pt] !== Tt[pt]) {
|
|
2345
2345
|
gt = !1;
|
|
2346
2346
|
break;
|
|
2347
2347
|
}
|
|
@@ -2369,9 +2369,9 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2369
2369
|
(h, c) => {
|
|
2370
2370
|
if (t != null) {
|
|
2371
2371
|
if (h === _.Server_Tagged_Signal_Response)
|
|
2372
|
-
return
|
|
2372
|
+
return R.getRootAsTaggedSignalResponse(new P(c));
|
|
2373
2373
|
} else if (h === _.Server_Unique_Signal_Response)
|
|
2374
|
-
return
|
|
2374
|
+
return C.getRootAsUniqueSignalResponse(new P(c));
|
|
2375
2375
|
}
|
|
2376
2376
|
), r = [
|
|
2377
2377
|
/* @__PURE__ */ new Map(),
|
|
@@ -2400,7 +2400,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2400
2400
|
json: (t, e, i) => {
|
|
2401
2401
|
const a = s[l.ValueBuffer].get(t);
|
|
2402
2402
|
if (a != null) {
|
|
2403
|
-
let r =
|
|
2403
|
+
let r = Nt(a), o = i.decode(r);
|
|
2404
2404
|
return {
|
|
2405
2405
|
set: (h) => {
|
|
2406
2406
|
o = h, r = i.encode(o), a.set(r);
|
|
@@ -2450,7 +2450,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2450
2450
|
p
|
|
2451
2451
|
), { action: O } = await d(F);
|
|
2452
2452
|
o.on_connect(() => {
|
|
2453
|
-
const p = new k(), I = e != null ? new qt(t, e) : new
|
|
2453
|
+
const p = new k(), I = e != null ? new qt(t, e) : new Rt(t);
|
|
2454
2454
|
p.finish(I.pack(p));
|
|
2455
2455
|
const G = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
|
|
2456
2456
|
o.publish(dt([ht(G), p.asUint8Array()]));
|
|
@@ -2489,7 +2489,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2489
2489
|
Mt({ id: t, tag: e ?? null, host: s, service: i })
|
|
2490
2490
|
]);
|
|
2491
2491
|
i.on_connect(() => {
|
|
2492
|
-
const d = new k(), b = e != null ? new qt(t, e) : new
|
|
2492
|
+
const d = new k(), b = e != null ? new qt(t, e) : new Rt(t);
|
|
2493
2493
|
d.finish(b.pack(d));
|
|
2494
2494
|
const F = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
|
|
2495
2495
|
i.publish(dt([ht(F), d.asUint8Array()]));
|