@bcts/dcbor 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +88 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +327 -446
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +87 -156
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/diag.ts +4 -5
package/dist/index.iife.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
var bctsDcbor = (function(exports) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region \0rolldown/runtime.js
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
5
4
|
var __create = Object.create;
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
10
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
12
11
|
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
+
key = keys[i];
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
23
18
|
}
|
|
24
19
|
return to;
|
|
25
20
|
};
|
|
@@ -27,10 +22,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
27
22
|
value: mod,
|
|
28
23
|
enumerable: true
|
|
29
24
|
}) : target, mod));
|
|
30
|
-
|
|
31
|
-
//#
|
|
32
|
-
|
|
33
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-function.js
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-function.js
|
|
34
27
|
var require_shim_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35
28
|
module.exports = Function;
|
|
36
29
|
/**
|
|
@@ -84,9 +77,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
84
77
|
};
|
|
85
78
|
};
|
|
86
79
|
}));
|
|
87
|
-
|
|
88
|
-
//#
|
|
89
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-collection.js
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-collection.js
|
|
90
82
|
var require_generic_collection = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
91
83
|
module.exports = GenericCollection;
|
|
92
84
|
function GenericCollection() {
|
|
@@ -303,9 +295,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
303
295
|
Object.defineProperty(GenericCollection.prototype, "size", GenericCollection._sizePropertyDescriptor);
|
|
304
296
|
require_shim_array();
|
|
305
297
|
}));
|
|
306
|
-
|
|
307
|
-
//#
|
|
308
|
-
//#region ../../node_modules/.bun/weak-map@1.0.8/node_modules/weak-map/weak-map.js
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../node_modules/.bun/weak-map@1.0.8/node_modules/weak-map/weak-map.js
|
|
309
300
|
var require_weak_map$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
310
301
|
/**
|
|
311
302
|
* @fileoverview Install a leaky WeakMap emulation on platforms that
|
|
@@ -423,7 +414,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
423
414
|
}
|
|
424
415
|
}
|
|
425
416
|
}
|
|
426
|
-
Object.prototype.hasOwnProperty;
|
|
427
417
|
var gopn = Object.getOwnPropertyNames;
|
|
428
418
|
var defProp = Object.defineProperty;
|
|
429
419
|
var isExtensible = Object.isExtensible;
|
|
@@ -466,8 +456,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
466
456
|
var HIDDEN_NAME_PREFIX = "weakmap:";
|
|
467
457
|
var HIDDEN_NAME = HIDDEN_NAME_PREFIX + "ident:" + Math.random() + "___";
|
|
468
458
|
if (typeof crypto !== "undefined" && typeof crypto.getRandomValues === "function" && typeof ArrayBuffer === "function" && typeof Uint8Array === "function") {
|
|
469
|
-
var
|
|
470
|
-
var u8s = new Uint8Array(ab);
|
|
459
|
+
var u8s = new Uint8Array(/* @__PURE__ */ new ArrayBuffer(25));
|
|
471
460
|
crypto.getRandomValues(u8s);
|
|
472
461
|
HIDDEN_NAME = HIDDEN_NAME_PREFIX + "rand:" + Array.prototype.map.call(u8s, function(u8) {
|
|
473
462
|
return (u8 % 36).toString(36);
|
|
@@ -655,6 +644,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
655
644
|
};
|
|
656
645
|
OurWeakMap.prototype = Object.create(Object.prototype, {
|
|
657
646
|
get: {
|
|
647
|
+
/**
|
|
648
|
+
* Return the value most recently associated with key, or
|
|
649
|
+
* opt_default if none.
|
|
650
|
+
*/
|
|
658
651
|
value: function get(key, opt_default) {
|
|
659
652
|
return this.get___(key, opt_default);
|
|
660
653
|
},
|
|
@@ -662,6 +655,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
662
655
|
configurable: true
|
|
663
656
|
},
|
|
664
657
|
has: {
|
|
658
|
+
/**
|
|
659
|
+
* Is there a value associated with key in this WeakMap?
|
|
660
|
+
*/
|
|
665
661
|
value: function has(key) {
|
|
666
662
|
return this.has___(key);
|
|
667
663
|
},
|
|
@@ -669,6 +665,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
669
665
|
configurable: true
|
|
670
666
|
},
|
|
671
667
|
set: {
|
|
668
|
+
/**
|
|
669
|
+
* Associate value with key in this WeakMap, overwriting any
|
|
670
|
+
* previous association if present.
|
|
671
|
+
*/
|
|
672
672
|
value: function set(key, value) {
|
|
673
673
|
return this.set___(key, value);
|
|
674
674
|
},
|
|
@@ -676,6 +676,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
676
676
|
configurable: true
|
|
677
677
|
},
|
|
678
678
|
"delete": {
|
|
679
|
+
/**
|
|
680
|
+
* Remove any association for key in this WeakMap, returning
|
|
681
|
+
* whether there was one.
|
|
682
|
+
*
|
|
683
|
+
* <p>Note that the boolean return here does not work like the
|
|
684
|
+
* {@code delete} operator. The {@code delete} operator returns
|
|
685
|
+
* whether the deletion succeeds at bringing about a state in
|
|
686
|
+
* which the deleted property is absent. The {@code delete}
|
|
687
|
+
* operator therefore returns true if the property was already
|
|
688
|
+
* absent, whereas this {@code delete} method returns false if
|
|
689
|
+
* the association was already absent.
|
|
690
|
+
*/
|
|
679
691
|
value: function remove(key) {
|
|
680
692
|
return this.delete___(key);
|
|
681
693
|
},
|
|
@@ -747,15 +759,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
747
759
|
}
|
|
748
760
|
})();
|
|
749
761
|
}));
|
|
750
|
-
|
|
751
|
-
//#
|
|
752
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/weak-map.js
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/weak-map.js
|
|
753
764
|
var require_weak_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
754
765
|
module.exports = typeof WeakMap !== "undefined" ? WeakMap : require_weak_map$1();
|
|
755
766
|
}));
|
|
756
|
-
|
|
757
|
-
//#
|
|
758
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-object.js
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-object.js
|
|
759
769
|
var require_shim_object = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
760
770
|
var WeakMap = require_weak_map();
|
|
761
771
|
require_shim_function();
|
|
@@ -1173,9 +1183,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1173
1183
|
return object;
|
|
1174
1184
|
};
|
|
1175
1185
|
}));
|
|
1176
|
-
|
|
1177
|
-
//#
|
|
1178
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-order.js
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-order.js
|
|
1179
1188
|
var require_generic_order = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1180
1189
|
var Object = require_shim_object();
|
|
1181
1190
|
module.exports = GenericOrder;
|
|
@@ -1207,9 +1216,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1207
1216
|
return this.toArray();
|
|
1208
1217
|
};
|
|
1209
1218
|
}));
|
|
1210
|
-
|
|
1211
|
-
//#
|
|
1212
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-array.js
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-array.js
|
|
1213
1221
|
var require_shim_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1214
1222
|
require_shim_function();
|
|
1215
1223
|
var GenericCollection = require_generic_collection();
|
|
@@ -1482,9 +1490,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1482
1490
|
return this._iterationObject;
|
|
1483
1491
|
};
|
|
1484
1492
|
}));
|
|
1485
|
-
|
|
1486
|
-
//#
|
|
1487
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-regexp.js
|
|
1493
|
+
//#endregion
|
|
1494
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim-regexp.js
|
|
1488
1495
|
var require_shim_regexp = /* @__PURE__ */ __commonJSMin((() => {
|
|
1489
1496
|
/**
|
|
1490
1497
|
accepts a string; returns the string with regex metacharacters escaped.
|
|
@@ -1499,18 +1506,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1499
1506
|
};
|
|
1500
1507
|
}
|
|
1501
1508
|
}));
|
|
1502
|
-
|
|
1503
|
-
//#
|
|
1504
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim.js
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/shim.js
|
|
1505
1511
|
var require_shim = /* @__PURE__ */ __commonJSMin((() => {
|
|
1506
1512
|
require_shim_array();
|
|
1507
1513
|
require_shim_object();
|
|
1508
1514
|
require_shim_function();
|
|
1509
1515
|
require_shim_regexp();
|
|
1510
1516
|
}));
|
|
1511
|
-
|
|
1512
|
-
//#
|
|
1513
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-set.js
|
|
1517
|
+
//#endregion
|
|
1518
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-set.js
|
|
1514
1519
|
var require_generic_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1515
1520
|
module.exports = GenericSet;
|
|
1516
1521
|
function GenericSet() {
|
|
@@ -1578,9 +1583,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1578
1583
|
return this.map(_entriesArrayFunction);
|
|
1579
1584
|
};
|
|
1580
1585
|
}));
|
|
1581
|
-
|
|
1582
|
-
//#
|
|
1583
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_list.js
|
|
1586
|
+
//#endregion
|
|
1587
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_list.js
|
|
1584
1588
|
var require__list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1585
1589
|
module.exports = List;
|
|
1586
1590
|
require_shim();
|
|
@@ -1877,9 +1881,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1877
1881
|
node.prev = this;
|
|
1878
1882
|
};
|
|
1879
1883
|
}));
|
|
1880
|
-
|
|
1881
|
-
//#
|
|
1882
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/iterator.js
|
|
1884
|
+
//#endregion
|
|
1885
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/iterator.js
|
|
1883
1886
|
var require_iterator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1884
1887
|
module.exports = Iterator;
|
|
1885
1888
|
var Object = require_shim_object();
|
|
@@ -2117,9 +2120,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2117
2120
|
});
|
|
2118
2121
|
};
|
|
2119
2122
|
}));
|
|
2120
|
-
|
|
2121
|
-
//#
|
|
2122
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-map.js
|
|
2123
|
+
//#endregion
|
|
2124
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/generic-map.js
|
|
2123
2125
|
var require_generic_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2124
2126
|
var Object = require_shim_object();
|
|
2125
2127
|
var Iterator = require_iterator();
|
|
@@ -2255,9 +2257,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2255
2257
|
return Object.compare(this.key, that.key);
|
|
2256
2258
|
};
|
|
2257
2259
|
}));
|
|
2258
|
-
|
|
2259
|
-
//#
|
|
2260
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_dict.js
|
|
2260
|
+
//#endregion
|
|
2261
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_dict.js
|
|
2261
2262
|
var require__dict = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2262
2263
|
require_shim();
|
|
2263
2264
|
var GenericCollection = require_generic_collection();
|
|
@@ -2383,9 +2384,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2383
2384
|
return this.toObject();
|
|
2384
2385
|
};
|
|
2385
2386
|
}));
|
|
2386
|
-
|
|
2387
|
-
//#
|
|
2388
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/tree-log.js
|
|
2387
|
+
//#endregion
|
|
2388
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/tree-log.js
|
|
2389
2389
|
var require_tree_log = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2390
2390
|
module.exports = TreeLog;
|
|
2391
2391
|
function TreeLog() {}
|
|
@@ -2420,9 +2420,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2420
2420
|
strafe: "┃"
|
|
2421
2421
|
};
|
|
2422
2422
|
}));
|
|
2423
|
-
|
|
2424
|
-
//#
|
|
2425
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_fast-set.js
|
|
2423
|
+
//#endregion
|
|
2424
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_fast-set.js
|
|
2426
2425
|
var require__fast_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2427
2426
|
require_shim();
|
|
2428
2427
|
var Dict = require__dict();
|
|
@@ -2562,9 +2561,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2562
2561
|
else write(" " + value);
|
|
2563
2562
|
};
|
|
2564
2563
|
}));
|
|
2565
|
-
|
|
2566
|
-
//#
|
|
2567
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_set.js
|
|
2564
|
+
//#endregion
|
|
2565
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_set.js
|
|
2568
2566
|
var require__set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2569
2567
|
require_shim();
|
|
2570
2568
|
var GenericCollection = require_generic_collection();
|
|
@@ -2760,9 +2758,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2760
2758
|
GlobalSet.CollectionsSet = CollectionsSet;
|
|
2761
2759
|
}
|
|
2762
2760
|
}));
|
|
2763
|
-
|
|
2764
|
-
//#
|
|
2765
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_map.js
|
|
2761
|
+
//#endregion
|
|
2762
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/_map.js
|
|
2766
2763
|
var require__map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2767
2764
|
require_shim();
|
|
2768
2765
|
var GenericCollection = require_generic_collection();
|
|
@@ -2964,9 +2961,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2964
2961
|
GlobalMap.CollectionsMap = CollectionsMap;
|
|
2965
2962
|
}
|
|
2966
2963
|
}));
|
|
2967
|
-
|
|
2968
|
-
//#
|
|
2969
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/change-descriptor.js
|
|
2964
|
+
//#endregion
|
|
2965
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/change-descriptor.js
|
|
2970
2966
|
var require_change_descriptor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2971
2967
|
var Map = require__map();
|
|
2972
2968
|
var ObjectChangeDescriptor = module.exports.ObjectChangeDescriptor = function ObjectChangeDescriptor(name) {
|
|
@@ -3085,9 +3081,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3085
3081
|
WillChangeListenersRecord.prototype.constructor = WillChangeListenersRecord;
|
|
3086
3082
|
WillChangeListenersRecord.prototype.genericHandlerMethodName = "handlePropertyWillChange";
|
|
3087
3083
|
}));
|
|
3088
|
-
|
|
3089
|
-
//#
|
|
3090
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/property-changes.js
|
|
3084
|
+
//#endregion
|
|
3085
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/property-changes.js
|
|
3091
3086
|
var require_property_changes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3092
3087
|
module.exports = PropertyChanges;
|
|
3093
3088
|
function PropertyChanges() {
|
|
@@ -3322,9 +3317,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3322
3317
|
else return PropertyChanges.prototype.makePropertyObservable.call(object, key);
|
|
3323
3318
|
};
|
|
3324
3319
|
}));
|
|
3325
|
-
|
|
3326
|
-
//#
|
|
3327
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/range-changes.js
|
|
3320
|
+
//#endregion
|
|
3321
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/range-changes.js
|
|
3328
3322
|
var require_range_changes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3329
3323
|
var WeakMap = require_weak_map(), Map = require__map(), ChangeDescriptor = require_change_descriptor(), ObjectChangeDescriptor = ChangeDescriptor.ObjectChangeDescriptor, ChangeListenersRecord = ChangeDescriptor.ChangeListenersRecord, ListenerGhost = ChangeDescriptor.ListenerGhost;
|
|
3330
3324
|
var rangeChangeDescriptors = new WeakMap();
|
|
@@ -3473,9 +3467,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3473
3467
|
return this.dispatchRangeChange(plus, minus, index, true);
|
|
3474
3468
|
};
|
|
3475
3469
|
}));
|
|
3476
|
-
|
|
3477
|
-
//#
|
|
3478
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/sorted-set.js
|
|
3470
|
+
//#endregion
|
|
3471
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/sorted-set.js
|
|
3479
3472
|
var require_sorted_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3480
3473
|
module.exports = SortedSet;
|
|
3481
3474
|
require_shim();
|
|
@@ -3957,9 +3950,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3957
3950
|
return this._iterationObject;
|
|
3958
3951
|
};
|
|
3959
3952
|
}));
|
|
3960
|
-
|
|
3961
|
-
//#
|
|
3962
|
-
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/map-changes.js
|
|
3953
|
+
//#endregion
|
|
3954
|
+
//#region ../../node_modules/.bun/collections@5.1.13/node_modules/collections/listen/map-changes.js
|
|
3963
3955
|
var require_map_changes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3964
3956
|
var WeakMap = require_weak_map(), Map = require__map(), ChangeDescriptor = require_change_descriptor(), ObjectChangeDescriptor = ChangeDescriptor.ObjectChangeDescriptor, ChangeListenersRecord = ChangeDescriptor.ChangeListenersRecord, ListenerGhost = ChangeDescriptor.ListenerGhost;
|
|
3965
3957
|
module.exports = MapChanges;
|
|
@@ -4105,10 +4097,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4105
4097
|
return this.dispatchMapChange(key, value, true);
|
|
4106
4098
|
};
|
|
4107
4099
|
}));
|
|
4108
|
-
|
|
4109
|
-
//#
|
|
4110
|
-
|
|
4111
|
-
var require_sorted_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4100
|
+
//#endregion
|
|
4101
|
+
//#region src/tag.ts
|
|
4102
|
+
var import_sorted_map = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4112
4103
|
require_shim();
|
|
4113
4104
|
var SortedSet = require_sorted_set();
|
|
4114
4105
|
var GenericCollection = require_generic_collection();
|
|
@@ -4155,12 +4146,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4155
4146
|
log(" key: " + node.key);
|
|
4156
4147
|
log(" value: " + node.value);
|
|
4157
4148
|
};
|
|
4158
|
-
}));
|
|
4159
|
-
|
|
4160
|
-
//#endregion
|
|
4161
|
-
//#region src/tag.ts
|
|
4162
|
-
var import_sorted_map = require_sorted_map();
|
|
4163
|
-
/**
|
|
4149
|
+
})))();
|
|
4150
|
+
/**
|
|
4164
4151
|
* Create a new Tag.
|
|
4165
4152
|
*
|
|
4166
4153
|
* @param value - The numeric tag value
|
|
@@ -4190,10 +4177,9 @@ var import_sorted_map = require_sorted_map();
|
|
|
4190
4177
|
* @internal
|
|
4191
4178
|
*/
|
|
4192
4179
|
const tagToString = (tag) => tag.name ?? tag.value.toString();
|
|
4193
|
-
|
|
4194
|
-
//#
|
|
4195
|
-
|
|
4196
|
-
/**
|
|
4180
|
+
//#endregion
|
|
4181
|
+
//#region src/error.ts
|
|
4182
|
+
/**
|
|
4197
4183
|
* Create a custom error with a message.
|
|
4198
4184
|
*
|
|
4199
4185
|
* Matches Rust's `Error::msg()` method.
|
|
@@ -4280,10 +4266,9 @@ var import_sorted_map = require_sorted_map();
|
|
|
4280
4266
|
return error instanceof CborError;
|
|
4281
4267
|
}
|
|
4282
4268
|
};
|
|
4283
|
-
|
|
4284
|
-
//#
|
|
4285
|
-
|
|
4286
|
-
/**
|
|
4269
|
+
//#endregion
|
|
4270
|
+
//#region src/stdlib.ts
|
|
4271
|
+
/**
|
|
4287
4272
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4288
4273
|
* Copyright © 2025-2026 Parity Technologies
|
|
4289
4274
|
*
|
|
@@ -4336,10 +4321,9 @@ var import_sorted_map = require_sorted_map();
|
|
|
4336
4321
|
if (a.length > b.length) return 1;
|
|
4337
4322
|
return 0;
|
|
4338
4323
|
};
|
|
4339
|
-
|
|
4340
|
-
//#
|
|
4341
|
-
|
|
4342
|
-
var require_byte_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4324
|
+
//#endregion
|
|
4325
|
+
//#region src/exact.ts
|
|
4326
|
+
var import_byte_data = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4343
4327
|
/*! https://github.com/rochars/byte-data
|
|
4344
4328
|
Copyright (c) 2019 Rafael da Silva Rocha */
|
|
4345
4329
|
(function() {
|
|
@@ -4597,11 +4581,7 @@ var import_sorted_map = require_sorted_map();
|
|
|
4597
4581
|
typeof module !== "undefined" ? module.exports = exports$1 : typeof define === "function" && define.amd ? define(["exports"], exports$1) : typeof global !== "undefined" && (global.byteData = exports$1);
|
|
4598
4582
|
return exports$1;
|
|
4599
4583
|
})();
|
|
4600
|
-
}));
|
|
4601
|
-
|
|
4602
|
-
//#endregion
|
|
4603
|
-
//#region src/exact.ts
|
|
4604
|
-
var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
4584
|
+
})))(), 1);
|
|
4605
4585
|
const hasFract = (n) => {
|
|
4606
4586
|
return n % 1 !== 0;
|
|
4607
4587
|
};
|
|
@@ -4768,50 +4748,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
4768
4748
|
return source <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(source) : source;
|
|
4769
4749
|
}
|
|
4770
4750
|
};
|
|
4751
|
+
//#endregion
|
|
4752
|
+
//#region src/float.ts
|
|
4771
4753
|
/**
|
|
4772
|
-
* Exact conversions for u128 (JavaScript bigint, unsigned).
|
|
4773
|
-
*/
|
|
4774
|
-
var ExactU128 = class {
|
|
4775
|
-
static MIN = 0n;
|
|
4776
|
-
static MAX = 2n ** 128n - 1n;
|
|
4777
|
-
static exactFromF16(source) {
|
|
4778
|
-
if (!Number.isFinite(source)) return void 0;
|
|
4779
|
-
if (source <= -1) return void 0;
|
|
4780
|
-
if (hasFract(source)) return void 0;
|
|
4781
|
-
return BigInt(Math.trunc(source));
|
|
4782
|
-
}
|
|
4783
|
-
static exactFromF32(source) {
|
|
4784
|
-
if (!Number.isFinite(source)) return void 0;
|
|
4785
|
-
if (source <= -1) return void 0;
|
|
4786
|
-
if (hasFract(source)) return void 0;
|
|
4787
|
-
return BigInt(Math.trunc(source));
|
|
4788
|
-
}
|
|
4789
|
-
static exactFromF64(source) {
|
|
4790
|
-
if (!Number.isFinite(source)) return void 0;
|
|
4791
|
-
if (source <= -1) return void 0;
|
|
4792
|
-
if (hasFract(source)) return void 0;
|
|
4793
|
-
return BigInt(Math.trunc(source));
|
|
4794
|
-
}
|
|
4795
|
-
static exactFromU64(source) {
|
|
4796
|
-
return BigInt(source);
|
|
4797
|
-
}
|
|
4798
|
-
static exactFromI64(source) {
|
|
4799
|
-
const n = typeof source === "bigint" ? source : BigInt(source);
|
|
4800
|
-
if (n < 0n) return void 0;
|
|
4801
|
-
return n;
|
|
4802
|
-
}
|
|
4803
|
-
static exactFromU128(source) {
|
|
4804
|
-
return source;
|
|
4805
|
-
}
|
|
4806
|
-
static exactFromI128(source) {
|
|
4807
|
-
if (source < 0n) return void 0;
|
|
4808
|
-
return source;
|
|
4809
|
-
}
|
|
4810
|
-
};
|
|
4811
|
-
|
|
4812
|
-
//#endregion
|
|
4813
|
-
//#region src/float.ts
|
|
4814
|
-
/**
|
|
4815
4754
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4816
4755
|
* Copyright © 2025-2026 Parity Technologies
|
|
4817
4756
|
*
|
|
@@ -4966,10 +4905,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
4966
4905
|
const bytes = numberToBinary16(value);
|
|
4967
4906
|
return new Uint8Array([249, ...bytes]);
|
|
4968
4907
|
};
|
|
4969
|
-
|
|
4970
|
-
//#
|
|
4971
|
-
|
|
4972
|
-
/**
|
|
4908
|
+
//#endregion
|
|
4909
|
+
//#region src/varint.ts
|
|
4910
|
+
/**
|
|
4973
4911
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4974
4912
|
* Copyright © 2025-2026 Parity Technologies
|
|
4975
4913
|
*
|
|
@@ -5063,10 +5001,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5063
5001
|
const highWord = littleEndian ? view.getUint32(byteOffset + 4, true) : view.getUint32(byteOffset, false);
|
|
5064
5002
|
return (BigInt(highWord) << BigInt(32)) + BigInt(lowWord);
|
|
5065
5003
|
}
|
|
5066
|
-
|
|
5067
|
-
//#
|
|
5068
|
-
|
|
5069
|
-
/**
|
|
5004
|
+
//#endregion
|
|
5005
|
+
//#region src/string-util.ts
|
|
5006
|
+
/**
|
|
5070
5007
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5071
5008
|
* Copyright © 2025-2026 Parity Technologies
|
|
5072
5009
|
*
|
|
@@ -5112,10 +5049,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5112
5049
|
if (!hasPrintable) return;
|
|
5113
5050
|
return chars.join("");
|
|
5114
5051
|
};
|
|
5115
|
-
|
|
5116
|
-
//#
|
|
5117
|
-
|
|
5118
|
-
/**
|
|
5052
|
+
//#endregion
|
|
5053
|
+
//#region src/tags-store.ts
|
|
5054
|
+
/**
|
|
5119
5055
|
* Tag registry implementation.
|
|
5120
5056
|
*
|
|
5121
5057
|
* Stores tags with their names and optional summarizer functions.
|
|
@@ -5240,10 +5176,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5240
5176
|
globalTagsStore ??= new TagsStore();
|
|
5241
5177
|
return globalTagsStore;
|
|
5242
5178
|
};
|
|
5243
|
-
|
|
5244
|
-
//#
|
|
5245
|
-
|
|
5246
|
-
/**
|
|
5179
|
+
//#endregion
|
|
5180
|
+
//#region src/dump.ts
|
|
5181
|
+
/**
|
|
5247
5182
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5248
5183
|
* Copyright © 2025-2026 Parity Technologies
|
|
5249
5184
|
*
|
|
@@ -5428,10 +5363,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5428
5363
|
}
|
|
5429
5364
|
return items;
|
|
5430
5365
|
}
|
|
5431
|
-
|
|
5432
|
-
//#
|
|
5433
|
-
|
|
5434
|
-
/**
|
|
5366
|
+
//#endregion
|
|
5367
|
+
//#region src/diag.ts
|
|
5368
|
+
/**
|
|
5435
5369
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5436
5370
|
* Copyright © 2025-2026 Parity Technologies
|
|
5437
5371
|
*
|
|
@@ -5663,10 +5597,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5663
5597
|
else if (tags === "global" || tags === void 0) return getGlobalTagsStore();
|
|
5664
5598
|
else return tags;
|
|
5665
5599
|
}
|
|
5666
|
-
|
|
5667
|
-
//#
|
|
5668
|
-
|
|
5669
|
-
/**
|
|
5600
|
+
//#endregion
|
|
5601
|
+
//#region src/simple.ts
|
|
5602
|
+
/**
|
|
5670
5603
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5671
5604
|
* Copyright © 2025-2026 Parity Technologies
|
|
5672
5605
|
*
|
|
@@ -5721,10 +5654,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5721
5654
|
case "Float": return f64CborData(simple.value);
|
|
5722
5655
|
}
|
|
5723
5656
|
};
|
|
5724
|
-
|
|
5725
|
-
//#
|
|
5726
|
-
|
|
5727
|
-
/**
|
|
5657
|
+
//#endregion
|
|
5658
|
+
//#region src/decode.ts
|
|
5659
|
+
/**
|
|
5728
5660
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5729
5661
|
* Copyright © 2025-2026 Parity Technologies
|
|
5730
5662
|
*
|
|
@@ -5990,10 +5922,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
5990
5922
|
function checkCanonicalEncoding(cbor, buf) {
|
|
5991
5923
|
if (!areBytesEqual(buf, isCbor(cbor) ? cborData(cbor) : encodeCbor(cbor))) throw new CborError({ type: "NonCanonicalNumeric" });
|
|
5992
5924
|
}
|
|
5993
|
-
|
|
5994
|
-
//#
|
|
5995
|
-
|
|
5996
|
-
/**
|
|
5925
|
+
//#endregion
|
|
5926
|
+
//#region src/conveniences.ts
|
|
5927
|
+
/**
|
|
5997
5928
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5998
5929
|
* Copyright © 2025-2026 Parity Technologies
|
|
5999
5930
|
*
|
|
@@ -6580,10 +6511,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
6580
6511
|
if (cbor.type === MajorType.Simple) return isFloat$1(cbor.value);
|
|
6581
6512
|
return false;
|
|
6582
6513
|
};
|
|
6583
|
-
|
|
6584
|
-
//#
|
|
6585
|
-
|
|
6586
|
-
/**
|
|
6514
|
+
//#endregion
|
|
6515
|
+
//#region src/map.ts
|
|
6516
|
+
/**
|
|
6587
6517
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6588
6518
|
* Copyright © 2025-2026 Parity Technologies
|
|
6589
6519
|
*
|
|
@@ -6816,10 +6746,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
6816
6746
|
return map;
|
|
6817
6747
|
}
|
|
6818
6748
|
};
|
|
6819
|
-
|
|
6820
|
-
//#
|
|
6821
|
-
|
|
6822
|
-
/**
|
|
6749
|
+
//#endregion
|
|
6750
|
+
//#region src/walk.ts
|
|
6751
|
+
/**
|
|
6823
6752
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6824
6753
|
* Copyright © 2025-2026 Parity Technologies
|
|
6825
6754
|
*
|
|
@@ -6832,24 +6761,6 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
6832
6761
|
* @module walk
|
|
6833
6762
|
*/
|
|
6834
6763
|
/**
|
|
6835
|
-
* Types of edges in the CBOR tree traversal.
|
|
6836
|
-
*/
|
|
6837
|
-
let EdgeType = /* @__PURE__ */ function(EdgeType) {
|
|
6838
|
-
/** No specific edge type (root element) */
|
|
6839
|
-
EdgeType["None"] = "none";
|
|
6840
|
-
/** Element within an array */
|
|
6841
|
-
EdgeType["ArrayElement"] = "array_element";
|
|
6842
|
-
/** Key-value pair in a map (semantic unit) */
|
|
6843
|
-
EdgeType["MapKeyValue"] = "map_key_value";
|
|
6844
|
-
/** Key within a map */
|
|
6845
|
-
EdgeType["MapKey"] = "map_key";
|
|
6846
|
-
/** Value within a map */
|
|
6847
|
-
EdgeType["MapValue"] = "map_value";
|
|
6848
|
-
/** Content of a tagged value */
|
|
6849
|
-
EdgeType["TaggedContent"] = "tagged_content";
|
|
6850
|
-
return EdgeType;
|
|
6851
|
-
}({});
|
|
6852
|
-
/**
|
|
6853
6764
|
* Returns a short text label for the edge type, or undefined if no label is needed.
|
|
6854
6765
|
*
|
|
6855
6766
|
* This is primarily used for tree formatting to identify relationships between elements.
|
|
@@ -6869,12 +6780,12 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
6869
6780
|
*/
|
|
6870
6781
|
const edgeLabel = (edge) => {
|
|
6871
6782
|
switch (edge.type) {
|
|
6872
|
-
case
|
|
6873
|
-
case
|
|
6874
|
-
case
|
|
6875
|
-
case
|
|
6876
|
-
case
|
|
6877
|
-
case
|
|
6783
|
+
case "array_element": return `arr[${edge.index}]`;
|
|
6784
|
+
case "map_key_value": return "kv";
|
|
6785
|
+
case "map_key": return "key";
|
|
6786
|
+
case "map_value": return "val";
|
|
6787
|
+
case "tagged_content": return "content";
|
|
6788
|
+
case "none": return;
|
|
6878
6789
|
}
|
|
6879
6790
|
};
|
|
6880
6791
|
/**
|
|
@@ -6959,7 +6870,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
6959
6870
|
* ```
|
|
6960
6871
|
*/
|
|
6961
6872
|
const walk = (cbor, initialState, visitor) => {
|
|
6962
|
-
walkInternal(cbor, 0, { type:
|
|
6873
|
+
walkInternal(cbor, 0, { type: "none" }, initialState, visitor);
|
|
6963
6874
|
};
|
|
6964
6875
|
/**
|
|
6965
6876
|
* Internal recursive walk implementation.
|
|
@@ -7004,7 +6915,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7004
6915
|
message: `Array element at index ${index} is undefined`
|
|
7005
6916
|
});
|
|
7006
6917
|
currentState = walkInternal(item, level + 1, {
|
|
7007
|
-
type:
|
|
6918
|
+
type: "array_element",
|
|
7008
6919
|
index
|
|
7009
6920
|
}, currentState, visitor);
|
|
7010
6921
|
}
|
|
@@ -7028,11 +6939,11 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7028
6939
|
type: "keyvalue",
|
|
7029
6940
|
key,
|
|
7030
6941
|
value
|
|
7031
|
-
}, level + 1, { type:
|
|
6942
|
+
}, level + 1, { type: "map_key_value" }, currentState);
|
|
7032
6943
|
currentState = kvState;
|
|
7033
6944
|
if (!kvStop) {
|
|
7034
|
-
currentState = walkInternal(key, level + 1, { type:
|
|
7035
|
-
currentState = walkInternal(value, level + 1, { type:
|
|
6945
|
+
currentState = walkInternal(key, level + 1, { type: "map_key" }, currentState, visitor);
|
|
6946
|
+
currentState = walkInternal(value, level + 1, { type: "map_value" }, currentState, visitor);
|
|
7036
6947
|
}
|
|
7037
6948
|
}
|
|
7038
6949
|
return currentState;
|
|
@@ -7043,12 +6954,11 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7043
6954
|
* @internal
|
|
7044
6955
|
*/
|
|
7045
6956
|
function walkTagged(cbor, level, state, visitor) {
|
|
7046
|
-
return walkInternal(cbor.value, level + 1, { type:
|
|
6957
|
+
return walkInternal(cbor.value, level + 1, { type: "tagged_content" }, state, visitor);
|
|
7047
6958
|
}
|
|
7048
|
-
|
|
7049
|
-
//#
|
|
7050
|
-
|
|
7051
|
-
/**
|
|
6959
|
+
//#endregion
|
|
6960
|
+
//#region src/cbor.ts
|
|
6961
|
+
/**
|
|
7052
6962
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7053
6963
|
* Copyright © 2025-2026 Parity Technologies
|
|
7054
6964
|
*
|
|
@@ -7513,21 +7423,46 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7513
7423
|
value: NaN
|
|
7514
7424
|
}
|
|
7515
7425
|
}),
|
|
7426
|
+
/**
|
|
7427
|
+
* Creates a CBOR value from any JavaScript value.
|
|
7428
|
+
*
|
|
7429
|
+
* Matches Rust's `CBOR::from()` behavior for various types.
|
|
7430
|
+
*
|
|
7431
|
+
* @param value - Any JavaScript value (number, string, boolean, null, array, object, etc.)
|
|
7432
|
+
* @returns A CBOR symbolic representation with instance methods
|
|
7433
|
+
*/
|
|
7516
7434
|
from(value) {
|
|
7517
7435
|
return cbor(value);
|
|
7518
7436
|
},
|
|
7437
|
+
/**
|
|
7438
|
+
* Decodes binary data into CBOR symbolic representation.
|
|
7439
|
+
*
|
|
7440
|
+
* Matches Rust's `CBOR::try_from_data()` method.
|
|
7441
|
+
*
|
|
7442
|
+
* @param data - The binary data to decode
|
|
7443
|
+
* @returns A CBOR value with instance methods
|
|
7444
|
+
* @throws Error if the data is not valid CBOR or violates dCBOR encoding rules
|
|
7445
|
+
*/
|
|
7519
7446
|
tryFromData(data) {
|
|
7520
7447
|
return decodeCbor(data);
|
|
7521
7448
|
},
|
|
7449
|
+
/**
|
|
7450
|
+
* Decodes a hexadecimal string into CBOR symbolic representation.
|
|
7451
|
+
*
|
|
7452
|
+
* Matches Rust's `CBOR::try_from_hex()` method.
|
|
7453
|
+
*
|
|
7454
|
+
* @param hex - A string containing hexadecimal characters
|
|
7455
|
+
* @returns A CBOR value with instance methods
|
|
7456
|
+
* @throws Error if the hex string is invalid or the resulting data is not valid dCBOR
|
|
7457
|
+
*/
|
|
7522
7458
|
tryFromHex(hex) {
|
|
7523
7459
|
const data = hexToBytes(hex);
|
|
7524
7460
|
return this.tryFromData(data);
|
|
7525
7461
|
}
|
|
7526
7462
|
};
|
|
7527
|
-
|
|
7528
|
-
//#
|
|
7529
|
-
|
|
7530
|
-
/**
|
|
7463
|
+
//#endregion
|
|
7464
|
+
//#region src/cbor-tagged-encodable.ts
|
|
7465
|
+
/**
|
|
7531
7466
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7532
7467
|
* Copyright © 2025-2026 Parity Technologies
|
|
7533
7468
|
*
|
|
@@ -7574,10 +7509,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7574
7509
|
value: untagged
|
|
7575
7510
|
});
|
|
7576
7511
|
};
|
|
7577
|
-
|
|
7578
|
-
//#
|
|
7579
|
-
|
|
7580
|
-
/**
|
|
7512
|
+
//#endregion
|
|
7513
|
+
//#region src/cbor-tagged-decodable.ts
|
|
7514
|
+
/**
|
|
7581
7515
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7582
7516
|
* Copyright © 2025-2026 Parity Technologies
|
|
7583
7517
|
*
|
|
@@ -7623,10 +7557,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7623
7557
|
if (cbor.type !== MajorType.Tagged) throw new CborError({ type: "WrongType" });
|
|
7624
7558
|
return cbor.value;
|
|
7625
7559
|
};
|
|
7626
|
-
|
|
7627
|
-
//#
|
|
7628
|
-
|
|
7629
|
-
/**
|
|
7560
|
+
//#endregion
|
|
7561
|
+
//#region src/date.ts
|
|
7562
|
+
/**
|
|
7630
7563
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7631
7564
|
* Copyright © 2025-2026 Parity Technologies
|
|
7632
7565
|
*
|
|
@@ -7847,8 +7780,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7847
7780
|
* ```
|
|
7848
7781
|
*/
|
|
7849
7782
|
static withDurationFromNow(durationMs) {
|
|
7850
|
-
const
|
|
7851
|
-
const future = new Date(now.getTime() + durationMs);
|
|
7783
|
+
const future = new Date((/* @__PURE__ */ new Date()).getTime() + durationMs);
|
|
7852
7784
|
return CborDate.fromDatetime(future);
|
|
7853
7785
|
}
|
|
7854
7786
|
/**
|
|
@@ -7945,7 +7877,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
7945
7877
|
* @returns A vector containing tag 1
|
|
7946
7878
|
*/
|
|
7947
7879
|
cborTags() {
|
|
7948
|
-
return [createTag(
|
|
7880
|
+
return [createTag(1, "date")];
|
|
7949
7881
|
}
|
|
7950
7882
|
/**
|
|
7951
7883
|
* Implementation of the `CborTaggedEncodable` interface for `CborDate`.
|
|
@@ -8006,7 +7938,8 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8006
7938
|
message: "Invalid date CBOR: expected numeric value"
|
|
8007
7939
|
});
|
|
8008
7940
|
}
|
|
8009
|
-
|
|
7941
|
+
const date = CborDate.fromTimestamp(timestamp);
|
|
7942
|
+
this._datetime = date._datetime;
|
|
8010
7943
|
return this;
|
|
8011
7944
|
}
|
|
8012
7945
|
/**
|
|
@@ -8108,10 +8041,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8108
8041
|
this._datetime = /* @__PURE__ */ new Date();
|
|
8109
8042
|
}
|
|
8110
8043
|
};
|
|
8111
|
-
|
|
8112
|
-
//#
|
|
8113
|
-
|
|
8114
|
-
/**
|
|
8044
|
+
//#endregion
|
|
8045
|
+
//#region src/bignum.ts
|
|
8046
|
+
/**
|
|
8115
8047
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8116
8048
|
* Copyright © 2025-2026 Parity Technologies
|
|
8117
8049
|
*
|
|
@@ -8374,10 +8306,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8374
8306
|
case MajorType.Simple: throw new CborError({ type: "WrongType" });
|
|
8375
8307
|
}
|
|
8376
8308
|
}
|
|
8377
|
-
|
|
8378
|
-
//#
|
|
8379
|
-
|
|
8380
|
-
/**
|
|
8309
|
+
//#endregion
|
|
8310
|
+
//#region src/tags.ts
|
|
8311
|
+
/**
|
|
8381
8312
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8382
8313
|
* Copyright © 2025-2026 Parity Technologies
|
|
8383
8314
|
*
|
|
@@ -8490,9 +8421,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8490
8421
|
* @param tagsStore - The tags store to register tags into
|
|
8491
8422
|
*/
|
|
8492
8423
|
const registerTagsIn = (tagsStore) => {
|
|
8493
|
-
const tags = [createTag(
|
|
8424
|
+
const tags = [createTag(1, TAG_NAME_DATE)];
|
|
8494
8425
|
tagsStore.insertAll(tags);
|
|
8495
|
-
tagsStore.setSummarizer(
|
|
8426
|
+
tagsStore.setSummarizer(1, (untaggedCbor, _flat) => {
|
|
8496
8427
|
try {
|
|
8497
8428
|
return {
|
|
8498
8429
|
ok: true,
|
|
@@ -8508,10 +8439,10 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8508
8439
|
};
|
|
8509
8440
|
}
|
|
8510
8441
|
});
|
|
8511
|
-
const biguintTag = createTag(
|
|
8512
|
-
const bigintTag = createTag(
|
|
8442
|
+
const biguintTag = createTag(2, TAG_NAME_POSITIVE_BIGNUM);
|
|
8443
|
+
const bigintTag = createTag(3, TAG_NAME_NEGATIVE_BIGNUM);
|
|
8513
8444
|
tagsStore.insertAll([biguintTag, bigintTag]);
|
|
8514
|
-
tagsStore.setSummarizer(
|
|
8445
|
+
tagsStore.setSummarizer(2, (untaggedCbor, _flat) => {
|
|
8515
8446
|
try {
|
|
8516
8447
|
return {
|
|
8517
8448
|
ok: true,
|
|
@@ -8527,7 +8458,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8527
8458
|
};
|
|
8528
8459
|
}
|
|
8529
8460
|
});
|
|
8530
|
-
tagsStore.setSummarizer(
|
|
8461
|
+
tagsStore.setSummarizer(3, (untaggedCbor, _flat) => {
|
|
8531
8462
|
try {
|
|
8532
8463
|
return {
|
|
8533
8464
|
ok: true,
|
|
@@ -8590,10 +8521,9 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8590
8521
|
return createTag(value);
|
|
8591
8522
|
});
|
|
8592
8523
|
};
|
|
8593
|
-
|
|
8594
|
-
//#
|
|
8595
|
-
|
|
8596
|
-
/**
|
|
8524
|
+
//#endregion
|
|
8525
|
+
//#region src/set.ts
|
|
8526
|
+
/**
|
|
8597
8527
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8598
8528
|
* Copyright © 2025-2026 Parity Technologies
|
|
8599
8529
|
*
|
|
@@ -8882,7 +8812,7 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8882
8812
|
for (const value of this) callback(value);
|
|
8883
8813
|
}
|
|
8884
8814
|
cborTags() {
|
|
8885
|
-
return [createTag(
|
|
8815
|
+
return [createTag(258, "set")];
|
|
8886
8816
|
}
|
|
8887
8817
|
untaggedCbor() {
|
|
8888
8818
|
return cbor(this.values());
|
|
@@ -8995,55 +8925,8 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
8995
8925
|
if (typeof value === "object" && value !== null && "isCbor" in value && value.isCbor === true) return value;
|
|
8996
8926
|
return cbor(value);
|
|
8997
8927
|
}
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
//#region src/byte-string.ts
|
|
9001
|
-
/**
|
|
9002
|
-
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9003
|
-
* Copyright © 2025-2026 Parity Technologies
|
|
9004
|
-
*
|
|
9005
|
-
*
|
|
9006
|
-
* Byte string utilities for dCBOR.
|
|
9007
|
-
*
|
|
9008
|
-
* Represents a CBOR byte string (major type 2).
|
|
9009
|
-
*
|
|
9010
|
-
* `ByteString` is a wrapper around a byte array, optimized for use in CBOR
|
|
9011
|
-
* encoding and decoding operations. It provides a richer API for working with
|
|
9012
|
-
* byte data in the context of CBOR compared to using raw `Uint8Array` values.
|
|
9013
|
-
*
|
|
9014
|
-
* In dCBOR, byte strings follow the general deterministic encoding rules:
|
|
9015
|
-
* - They must use definite-length encoding
|
|
9016
|
-
* - Their length must be encoded in the shortest possible form
|
|
9017
|
-
*
|
|
9018
|
-
* @module byte-string
|
|
9019
|
-
*/
|
|
9020
|
-
/**
|
|
9021
|
-
* Represents a CBOR byte string (major type 2).
|
|
9022
|
-
*
|
|
9023
|
-
* Use Cases:
|
|
9024
|
-
* - Binary data such as images, audio, or other non-text content
|
|
9025
|
-
* - Cryptographic values like hashes, signatures, and public keys
|
|
9026
|
-
* - Embedded CBOR (wrapped with tag 24)
|
|
9027
|
-
* - Other serialized data formats embedded in CBOR
|
|
9028
|
-
*
|
|
9029
|
-
* @example
|
|
9030
|
-
* ```typescript
|
|
9031
|
-
* // Creating a byte string from various sources
|
|
9032
|
-
* const bytes1 = new ByteString(new Uint8Array([1, 2, 3, 4]));
|
|
9033
|
-
* const bytes2 = ByteString.from([5, 6, 7, 8]);
|
|
9034
|
-
* const bytes3 = ByteString.from(new Uint8Array([9, 10, 11, 12]));
|
|
9035
|
-
*
|
|
9036
|
-
* // Converting to and from CBOR
|
|
9037
|
-
* const cborValue = bytes1.toCbor();
|
|
9038
|
-
*
|
|
9039
|
-
* // ByteString provides Uint8Array-like operations
|
|
9040
|
-
* const bytes = new ByteString(new Uint8Array([1, 2]));
|
|
9041
|
-
* bytes.extend(new Uint8Array([3, 4]));
|
|
9042
|
-
* assert(bytes.len() === 4);
|
|
9043
|
-
* assert.deepEqual(bytes.data(), new Uint8Array([1, 2, 3, 4]));
|
|
9044
|
-
* ```
|
|
9045
|
-
*/
|
|
9046
|
-
var ByteString = class ByteString {
|
|
8928
|
+
//#endregion
|
|
8929
|
+
exports.ByteString = class ByteString {
|
|
9047
8930
|
_data;
|
|
9048
8931
|
/**
|
|
9049
8932
|
* Creates a new `ByteString` from a Uint8Array or array of bytes.
|
|
@@ -9275,136 +9158,134 @@ var import_byte_data = /* @__PURE__ */ __toESM(require_byte_data(), 1);
|
|
|
9275
9158
|
return new ByteString(this.toUint8Array());
|
|
9276
9159
|
}
|
|
9277
9160
|
};
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
exports.
|
|
9281
|
-
exports.
|
|
9282
|
-
exports.
|
|
9283
|
-
exports.
|
|
9284
|
-
exports.
|
|
9285
|
-
exports.
|
|
9286
|
-
exports.
|
|
9287
|
-
exports.
|
|
9288
|
-
exports.
|
|
9289
|
-
exports.
|
|
9290
|
-
exports.
|
|
9291
|
-
exports.
|
|
9292
|
-
exports.
|
|
9293
|
-
exports.
|
|
9294
|
-
exports.
|
|
9295
|
-
exports.
|
|
9296
|
-
exports.
|
|
9297
|
-
exports.
|
|
9298
|
-
exports.
|
|
9299
|
-
exports.
|
|
9300
|
-
exports.
|
|
9301
|
-
exports.
|
|
9302
|
-
exports.
|
|
9303
|
-
exports.
|
|
9304
|
-
exports.
|
|
9305
|
-
exports.
|
|
9306
|
-
exports.
|
|
9307
|
-
exports.
|
|
9308
|
-
exports.
|
|
9309
|
-
exports.
|
|
9310
|
-
exports.
|
|
9311
|
-
exports.
|
|
9312
|
-
exports.
|
|
9313
|
-
exports.
|
|
9314
|
-
exports.
|
|
9315
|
-
exports.
|
|
9316
|
-
exports.
|
|
9317
|
-
exports.
|
|
9318
|
-
exports.
|
|
9319
|
-
exports.
|
|
9320
|
-
exports.
|
|
9321
|
-
exports.
|
|
9322
|
-
exports.
|
|
9323
|
-
exports.
|
|
9324
|
-
exports.
|
|
9325
|
-
exports.
|
|
9326
|
-
exports.
|
|
9327
|
-
exports.
|
|
9328
|
-
exports.
|
|
9329
|
-
exports.
|
|
9330
|
-
exports.
|
|
9331
|
-
exports.
|
|
9332
|
-
exports.
|
|
9333
|
-
exports.
|
|
9334
|
-
exports.
|
|
9335
|
-
exports.
|
|
9336
|
-
exports.
|
|
9337
|
-
exports.
|
|
9338
|
-
exports.
|
|
9339
|
-
exports.
|
|
9340
|
-
exports.
|
|
9341
|
-
exports.
|
|
9342
|
-
exports.
|
|
9343
|
-
exports.
|
|
9344
|
-
exports.
|
|
9345
|
-
exports.
|
|
9346
|
-
exports.
|
|
9347
|
-
exports.
|
|
9348
|
-
exports.
|
|
9349
|
-
exports.
|
|
9350
|
-
exports.
|
|
9351
|
-
exports.
|
|
9352
|
-
exports.
|
|
9353
|
-
exports.
|
|
9354
|
-
exports.
|
|
9355
|
-
exports.
|
|
9356
|
-
exports.
|
|
9357
|
-
exports.
|
|
9358
|
-
exports.
|
|
9359
|
-
exports.
|
|
9360
|
-
exports.
|
|
9361
|
-
exports.
|
|
9362
|
-
exports.
|
|
9363
|
-
exports.
|
|
9364
|
-
exports.
|
|
9365
|
-
exports.
|
|
9366
|
-
exports.
|
|
9367
|
-
exports.
|
|
9368
|
-
exports.
|
|
9369
|
-
exports.
|
|
9370
|
-
exports.
|
|
9371
|
-
exports.
|
|
9372
|
-
exports.
|
|
9373
|
-
exports.
|
|
9374
|
-
exports.
|
|
9375
|
-
exports.
|
|
9376
|
-
exports.
|
|
9377
|
-
exports.
|
|
9378
|
-
exports.
|
|
9379
|
-
exports.
|
|
9380
|
-
exports.
|
|
9381
|
-
exports.
|
|
9382
|
-
exports.
|
|
9383
|
-
exports.
|
|
9384
|
-
exports.
|
|
9385
|
-
exports.
|
|
9386
|
-
exports.
|
|
9387
|
-
exports.
|
|
9388
|
-
exports.
|
|
9389
|
-
exports.
|
|
9390
|
-
exports.
|
|
9391
|
-
exports.
|
|
9392
|
-
exports.
|
|
9393
|
-
exports.
|
|
9394
|
-
exports.
|
|
9395
|
-
exports.
|
|
9396
|
-
exports.
|
|
9397
|
-
exports.
|
|
9398
|
-
exports.
|
|
9399
|
-
exports.
|
|
9400
|
-
exports.
|
|
9401
|
-
exports.
|
|
9402
|
-
exports.
|
|
9403
|
-
exports.
|
|
9404
|
-
exports.
|
|
9405
|
-
exports
|
|
9406
|
-
exports.validateTag = validateTag;
|
|
9407
|
-
exports.walk = walk;
|
|
9408
|
-
return exports;
|
|
9161
|
+
exports.Cbor = Cbor;
|
|
9162
|
+
exports.CborDate = CborDate;
|
|
9163
|
+
exports.CborError = CborError;
|
|
9164
|
+
exports.CborMap = CborMap;
|
|
9165
|
+
exports.CborSet = CborSet;
|
|
9166
|
+
exports.Err = Err;
|
|
9167
|
+
exports.MajorType = MajorType;
|
|
9168
|
+
exports.Ok = Ok;
|
|
9169
|
+
exports.TAG_BASE16 = TAG_BASE16;
|
|
9170
|
+
exports.TAG_BASE64 = TAG_BASE64;
|
|
9171
|
+
exports.TAG_BASE64URL = TAG_BASE64URL;
|
|
9172
|
+
exports.TAG_BASE64URL_TEXT = TAG_BASE64URL_TEXT;
|
|
9173
|
+
exports.TAG_BASE64_TEXT = TAG_BASE64_TEXT;
|
|
9174
|
+
exports.TAG_BIGFLOAT = TAG_BIGFLOAT;
|
|
9175
|
+
exports.TAG_BINARY_UUID = TAG_BINARY_UUID;
|
|
9176
|
+
exports.TAG_DATE = TAG_DATE;
|
|
9177
|
+
exports.TAG_DATE_TIME_STRING = TAG_DATE_TIME_STRING;
|
|
9178
|
+
exports.TAG_DECIMAL_FRACTION = TAG_DECIMAL_FRACTION;
|
|
9179
|
+
exports.TAG_ENCODED_CBOR = TAG_ENCODED_CBOR;
|
|
9180
|
+
exports.TAG_EPOCH_DATE = TAG_EPOCH_DATE;
|
|
9181
|
+
exports.TAG_EPOCH_DATE_TIME = TAG_EPOCH_DATE_TIME;
|
|
9182
|
+
exports.TAG_MIME_MESSAGE = TAG_MIME_MESSAGE;
|
|
9183
|
+
exports.TAG_NAME_DATE = TAG_NAME_DATE;
|
|
9184
|
+
exports.TAG_NAME_NEGATIVE_BIGNUM = TAG_NAME_NEGATIVE_BIGNUM;
|
|
9185
|
+
exports.TAG_NAME_POSITIVE_BIGNUM = TAG_NAME_POSITIVE_BIGNUM;
|
|
9186
|
+
exports.TAG_NEGATIVE_BIGNUM = TAG_NEGATIVE_BIGNUM;
|
|
9187
|
+
exports.TAG_POSITIVE_BIGNUM = TAG_POSITIVE_BIGNUM;
|
|
9188
|
+
exports.TAG_REGEXP = TAG_REGEXP;
|
|
9189
|
+
exports.TAG_SELF_DESCRIBE_CBOR = TAG_SELF_DESCRIBE_CBOR;
|
|
9190
|
+
exports.TAG_SET = TAG_SET;
|
|
9191
|
+
exports.TAG_STRING_REF_NAMESPACE = TAG_STRING_REF_NAMESPACE;
|
|
9192
|
+
exports.TAG_URI = TAG_URI;
|
|
9193
|
+
exports.TAG_UUID = TAG_UUID;
|
|
9194
|
+
exports.TagsStore = TagsStore;
|
|
9195
|
+
exports.arrayIsEmpty = arrayIsEmpty;
|
|
9196
|
+
exports.arrayItem = arrayItem;
|
|
9197
|
+
exports.arrayLength = arrayLength;
|
|
9198
|
+
exports.asArray = asArray;
|
|
9199
|
+
exports.asBoolean = asBoolean;
|
|
9200
|
+
exports.asByteString = asByteString;
|
|
9201
|
+
exports.asBytes = asBytes;
|
|
9202
|
+
exports.asCborArray = asCborArray;
|
|
9203
|
+
exports.asCborMap = asCborMap;
|
|
9204
|
+
exports.asFloat = asFloat;
|
|
9205
|
+
exports.asInteger = asInteger;
|
|
9206
|
+
exports.asKeyValue = asKeyValue;
|
|
9207
|
+
exports.asMap = asMap;
|
|
9208
|
+
exports.asNegative = asNegative;
|
|
9209
|
+
exports.asNumber = asNumber;
|
|
9210
|
+
exports.asSingle = asSingle;
|
|
9211
|
+
exports.asTaggedValue = asTaggedValue;
|
|
9212
|
+
exports.asText = asText;
|
|
9213
|
+
exports.asUnsigned = asUnsigned;
|
|
9214
|
+
exports.bigintFromNegativeUntaggedCbor = bigintFromNegativeUntaggedCbor;
|
|
9215
|
+
exports.bigintToCbor = bigintToCbor;
|
|
9216
|
+
exports.biguintFromUntaggedCbor = biguintFromUntaggedCbor;
|
|
9217
|
+
exports.biguintToCbor = biguintToCbor;
|
|
9218
|
+
exports.bytesToHex = bytesToHex;
|
|
9219
|
+
exports.cbor = cbor;
|
|
9220
|
+
exports.cborData = cborData;
|
|
9221
|
+
exports.cborToBigint = cborToBigint;
|
|
9222
|
+
exports.cborToBiguint = cborToBiguint;
|
|
9223
|
+
exports.createTag = createTag;
|
|
9224
|
+
exports.createTaggedCbor = createTaggedCbor;
|
|
9225
|
+
exports.decodeCbor = decodeCbor;
|
|
9226
|
+
exports.decodeVarInt = decodeVarInt;
|
|
9227
|
+
exports.decodeVarIntData = decodeVarIntData;
|
|
9228
|
+
exports.diagnosticOpt = diagnosticOpt;
|
|
9229
|
+
exports.edgeLabel = edgeLabel;
|
|
9230
|
+
exports.encodeVarInt = encodeVarInt;
|
|
9231
|
+
exports.errorMsg = errorMsg;
|
|
9232
|
+
exports.errorToString = errorToString;
|
|
9233
|
+
exports.expectArray = expectArray;
|
|
9234
|
+
exports.expectBoolean = expectBoolean;
|
|
9235
|
+
exports.expectBytes = expectBytes;
|
|
9236
|
+
exports.expectFloat = expectFloat;
|
|
9237
|
+
exports.expectInteger = expectInteger;
|
|
9238
|
+
exports.expectMap = expectMap;
|
|
9239
|
+
exports.expectNegative = expectNegative;
|
|
9240
|
+
exports.expectNumber = expectNumber;
|
|
9241
|
+
exports.expectTaggedContent = expectTaggedContent;
|
|
9242
|
+
exports.expectText = expectText;
|
|
9243
|
+
exports.expectUnsigned = expectUnsigned;
|
|
9244
|
+
exports.extractCbor = extractCbor;
|
|
9245
|
+
exports.extractTaggedContent = extractTaggedContent;
|
|
9246
|
+
exports.getGlobalTagsStore = getGlobalTagsStore;
|
|
9247
|
+
exports.getTaggedContent = getTaggedContent;
|
|
9248
|
+
exports.hasFractionalPart = hasFractionalPart;
|
|
9249
|
+
exports.hasTag = hasTag;
|
|
9250
|
+
exports.hexOpt = hexOpt;
|
|
9251
|
+
exports.hexToBytes = hexToBytes;
|
|
9252
|
+
exports.isArray = isArray;
|
|
9253
|
+
exports.isBoolean = isBoolean;
|
|
9254
|
+
exports.isBytes = isBytes;
|
|
9255
|
+
exports.isFloat = isFloat;
|
|
9256
|
+
exports.isInteger = isInteger;
|
|
9257
|
+
exports.isMap = isMap;
|
|
9258
|
+
exports.isNaN = isNaN$1;
|
|
9259
|
+
exports.isNegative = isNegative;
|
|
9260
|
+
exports.isNull = isNull;
|
|
9261
|
+
exports.isNumber = isNumber;
|
|
9262
|
+
exports.isSimple = isSimple;
|
|
9263
|
+
exports.isTagged = isTagged;
|
|
9264
|
+
exports.isText = isText;
|
|
9265
|
+
exports.isUnsigned = isUnsigned;
|
|
9266
|
+
exports.mapHas = mapHas;
|
|
9267
|
+
exports.mapIsEmpty = mapIsEmpty;
|
|
9268
|
+
exports.mapKeys = mapKeys;
|
|
9269
|
+
exports.mapSize = mapSize;
|
|
9270
|
+
exports.mapValue = mapValue;
|
|
9271
|
+
exports.mapValues = mapValues;
|
|
9272
|
+
exports.registerTags = registerTags;
|
|
9273
|
+
exports.registerTagsIn = registerTagsIn;
|
|
9274
|
+
exports.simpleName = simpleName;
|
|
9275
|
+
exports.summary = summary;
|
|
9276
|
+
exports.tagContent = tagContent;
|
|
9277
|
+
exports.tagValue = tagValue;
|
|
9278
|
+
exports.tagsForValues = tagsForValues;
|
|
9279
|
+
exports.toByteString = toByteString;
|
|
9280
|
+
exports.toByteStringFromHex = toByteStringFromHex;
|
|
9281
|
+
exports.toTaggedValue = toTaggedValue;
|
|
9282
|
+
exports.tryExpectedTaggedValue = expectTaggedContent;
|
|
9283
|
+
exports.tryIntoBool = expectBoolean;
|
|
9284
|
+
exports.tryIntoByteString = expectBytes;
|
|
9285
|
+
exports.tryIntoText = expectText;
|
|
9286
|
+
exports.validateTag = validateTag;
|
|
9287
|
+
exports.walk = walk;
|
|
9288
|
+
return exports;
|
|
9409
9289
|
})({});
|
|
9290
|
+
|
|
9410
9291
|
//# sourceMappingURL=index.iife.js.map
|