@learncard/vpqr-plugin 1.0.13 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
package/dist/vpqr-plugin.esm.js
CHANGED
@@ -72,7 +72,7 @@ var require_base32_decode = __commonJS({
|
|
72
72
|
}
|
73
73
|
});
|
74
74
|
|
75
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
75
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/is.js
|
76
76
|
var typeofs = [
|
77
77
|
"string",
|
78
78
|
"number",
|
@@ -158,7 +158,7 @@ function getObjectType(value) {
|
|
158
158
|
}
|
159
159
|
__name(getObjectType, "getObjectType");
|
160
160
|
|
161
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
161
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/token.js
|
162
162
|
var Type = class {
|
163
163
|
constructor(major, name, terminal) {
|
164
164
|
this.major = major;
|
@@ -201,7 +201,7 @@ var Token = class {
|
|
201
201
|
};
|
202
202
|
__name(Token, "Token");
|
203
203
|
|
204
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
204
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/byte-utils.js
|
205
205
|
var useBuffer = globalThis.process && !globalThis.process.browser && globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function";
|
206
206
|
var textDecoder = new TextDecoder();
|
207
207
|
var textEncoder = new TextEncoder();
|
@@ -372,7 +372,7 @@ function decodeCodePointsArray(codePoints) {
|
|
372
372
|
}
|
373
373
|
__name(decodeCodePointsArray, "decodeCodePointsArray");
|
374
374
|
|
375
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
375
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/bl.js
|
376
376
|
var defaultChunkSize = 256;
|
377
377
|
var Bl = class {
|
378
378
|
constructor(chunkSize = defaultChunkSize) {
|
@@ -444,7 +444,7 @@ var Bl = class {
|
|
444
444
|
};
|
445
445
|
__name(Bl, "Bl");
|
446
446
|
|
447
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
447
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/common.js
|
448
448
|
var decodeErrPrefix = "CBOR decode error:";
|
449
449
|
var encodeErrPrefix = "CBOR encode error:";
|
450
450
|
var uintMinorPrefixBytes = [];
|
@@ -460,7 +460,7 @@ function assertEnoughData(data, pos, need) {
|
|
460
460
|
}
|
461
461
|
__name(assertEnoughData, "assertEnoughData");
|
462
462
|
|
463
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
463
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/0uint.js
|
464
464
|
var uintBoundaries = [24, 256, 65536, 4294967296, BigInt("18446744073709551616")];
|
465
465
|
function readUint8(data, offset, options) {
|
466
466
|
assertEnoughData(data, offset, 1);
|
@@ -588,7 +588,7 @@ encodeUint.compareTokens = /* @__PURE__ */ __name(function compareTokens(tok1, t
|
|
588
588
|
return tok1.value < tok2.value ? -1 : tok1.value > tok2.value ? 1 : 0;
|
589
589
|
}, "compareTokens");
|
590
590
|
|
591
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
591
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/1negint.js
|
592
592
|
function decodeNegint8(data, pos, _minor, options) {
|
593
593
|
return new Token(Type.negint, -1 - readUint8(data, pos + 1, options), 2);
|
594
594
|
}
|
@@ -644,7 +644,7 @@ encodeNegint.compareTokens = /* @__PURE__ */ __name(function compareTokens2(tok1
|
|
644
644
|
return tok1.value < tok2.value ? 1 : tok1.value > tok2.value ? -1 : 0;
|
645
645
|
}, "compareTokens");
|
646
646
|
|
647
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
647
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/2bytes.js
|
648
648
|
function toToken(data, pos, prefix, length) {
|
649
649
|
assertEnoughData(data, pos, prefix + length);
|
650
650
|
const buf2 = slice(data, pos + prefix, pos + prefix + length);
|
@@ -700,7 +700,7 @@ function compareBytes(b1, b2) {
|
|
700
700
|
}
|
701
701
|
__name(compareBytes, "compareBytes");
|
702
702
|
|
703
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
703
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/3string.js
|
704
704
|
function toToken2(data, pos, prefix, length, options) {
|
705
705
|
const totLength = prefix + length;
|
706
706
|
assertEnoughData(data, pos, totLength);
|
@@ -737,7 +737,7 @@ function decodeString64(data, pos, _minor, options) {
|
|
737
737
|
__name(decodeString64, "decodeString64");
|
738
738
|
var encodeString = encodeBytes;
|
739
739
|
|
740
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
740
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/4array.js
|
741
741
|
function toToken3(_data, _pos, prefix, length) {
|
742
742
|
return new Token(Type.array, length, prefix);
|
743
743
|
}
|
@@ -782,7 +782,7 @@ encodeArray.encodedSize = /* @__PURE__ */ __name(function encodedSize5(token) {
|
|
782
782
|
return encodeUintValue.encodedSize(token.value);
|
783
783
|
}, "encodedSize");
|
784
784
|
|
785
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
785
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/5map.js
|
786
786
|
function toToken4(_data, _pos, prefix, length) {
|
787
787
|
return new Token(Type.map, length, prefix);
|
788
788
|
}
|
@@ -827,7 +827,7 @@ encodeMap.encodedSize = /* @__PURE__ */ __name(function encodedSize6(token) {
|
|
827
827
|
return encodeUintValue.encodedSize(token.value);
|
828
828
|
}, "encodedSize");
|
829
829
|
|
830
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
830
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/6tag.js
|
831
831
|
function decodeTagCompact(_data, _pos, minor, _options) {
|
832
832
|
return new Token(Type.tag, minor, 1);
|
833
833
|
}
|
@@ -857,7 +857,7 @@ encodeTag.encodedSize = /* @__PURE__ */ __name(function encodedSize7(token) {
|
|
857
857
|
return encodeUintValue.encodedSize(token.value);
|
858
858
|
}, "encodedSize");
|
859
859
|
|
860
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
860
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/7float.js
|
861
861
|
var MINOR_FALSE = 20;
|
862
862
|
var MINOR_TRUE = 21;
|
863
863
|
var MINOR_NULL = 22;
|
@@ -1045,7 +1045,7 @@ function readFloat64(ui8a2, pos) {
|
|
1045
1045
|
__name(readFloat64, "readFloat64");
|
1046
1046
|
encodeFloat.compareTokens = encodeUint.compareTokens;
|
1047
1047
|
|
1048
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
1048
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/jump.js
|
1049
1049
|
function invalidMinor(data, pos, minor) {
|
1050
1050
|
throw new Error(`${decodeErrPrefix} encountered invalid minor (${minor}) for major ${data[pos] >>> 5}`);
|
1051
1051
|
}
|
@@ -1204,7 +1204,7 @@ function quickEncodeToken(token) {
|
|
1204
1204
|
}
|
1205
1205
|
__name(quickEncodeToken, "quickEncodeToken");
|
1206
1206
|
|
1207
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
1207
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/encode.js
|
1208
1208
|
var defaultEncodeOptions = {
|
1209
1209
|
float64: false,
|
1210
1210
|
mapSorter,
|
@@ -1417,7 +1417,7 @@ function encode(data, options) {
|
|
1417
1417
|
}
|
1418
1418
|
__name(encode, "encode");
|
1419
1419
|
|
1420
|
-
// ../../../node_modules/.pnpm/cborg@4.2.
|
1420
|
+
// ../../../node_modules/.pnpm/cborg@4.2.6/node_modules/cborg/lib/decode.js
|
1421
1421
|
var defaultDecodeOptions = {
|
1422
1422
|
strict: false,
|
1423
1423
|
allowIndefinite: true,
|