@learncard/vpqr-plugin 1.0.1 → 1.0.3

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.
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -21,10 +20,7 @@ var __copyProps = (to, from, except, desc) => {
21
20
  }
22
21
  return to;
23
22
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
28
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
25
 
30
26
  // ../../../node_modules/.pnpm/base32-decode@1.0.0/node_modules/base32-decode/index.js
@@ -78,531 +74,6 @@ var require_base32_decode = __commonJS({
78
74
  }
79
75
  });
80
76
 
81
- // ../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js
82
- var require_tslib = __commonJS({
83
- "../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js"(exports, module2) {
84
- var __extends2;
85
- var __assign2;
86
- var __rest2;
87
- var __decorate2;
88
- var __param2;
89
- var __esDecorate2;
90
- var __runInitializers2;
91
- var __propKey2;
92
- var __setFunctionName2;
93
- var __metadata2;
94
- var __awaiter2;
95
- var __generator2;
96
- var __exportStar2;
97
- var __values2;
98
- var __read2;
99
- var __spread2;
100
- var __spreadArrays2;
101
- var __spreadArray2;
102
- var __await2;
103
- var __asyncGenerator2;
104
- var __asyncDelegator2;
105
- var __asyncValues2;
106
- var __makeTemplateObject2;
107
- var __importStar2;
108
- var __importDefault2;
109
- var __classPrivateFieldGet2;
110
- var __classPrivateFieldSet2;
111
- var __classPrivateFieldIn2;
112
- var __createBinding2;
113
- (function(factory) {
114
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
115
- if (typeof define === "function" && define.amd) {
116
- define("tslib", ["exports"], function(exports2) {
117
- factory(createExporter(root, createExporter(exports2)));
118
- });
119
- } else if (typeof module2 === "object" && typeof module2.exports === "object") {
120
- factory(createExporter(root, createExporter(module2.exports)));
121
- } else {
122
- factory(createExporter(root));
123
- }
124
- function createExporter(exports2, previous) {
125
- if (exports2 !== root) {
126
- if (typeof Object.create === "function") {
127
- Object.defineProperty(exports2, "__esModule", { value: true });
128
- } else {
129
- exports2.__esModule = true;
130
- }
131
- }
132
- return function(id, v) {
133
- return exports2[id] = previous ? previous(id, v) : v;
134
- };
135
- }
136
- __name(createExporter, "createExporter");
137
- })(function(exporter) {
138
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
139
- d.__proto__ = b;
140
- } || function(d, b) {
141
- for (var p in b)
142
- if (Object.prototype.hasOwnProperty.call(b, p))
143
- d[p] = b[p];
144
- };
145
- __extends2 = /* @__PURE__ */ __name(function(d, b) {
146
- if (typeof b !== "function" && b !== null)
147
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
148
- extendStatics(d, b);
149
- function __() {
150
- this.constructor = d;
151
- }
152
- __name(__, "__");
153
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
154
- }, "__extends");
155
- __assign2 = Object.assign || function(t) {
156
- for (var s, i = 1, n = arguments.length; i < n; i++) {
157
- s = arguments[i];
158
- for (var p in s)
159
- if (Object.prototype.hasOwnProperty.call(s, p))
160
- t[p] = s[p];
161
- }
162
- return t;
163
- };
164
- __rest2 = /* @__PURE__ */ __name(function(s, e) {
165
- var t = {};
166
- for (var p in s)
167
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
168
- t[p] = s[p];
169
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
170
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
171
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
172
- t[p[i]] = s[p[i]];
173
- }
174
- return t;
175
- }, "__rest");
176
- __decorate2 = /* @__PURE__ */ __name(function(decorators, target, key, desc) {
177
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
178
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
179
- r = Reflect.decorate(decorators, target, key, desc);
180
- else
181
- for (var i = decorators.length - 1; i >= 0; i--)
182
- if (d = decorators[i])
183
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
184
- return c > 3 && r && Object.defineProperty(target, key, r), r;
185
- }, "__decorate");
186
- __param2 = /* @__PURE__ */ __name(function(paramIndex, decorator) {
187
- return function(target, key) {
188
- decorator(target, key, paramIndex);
189
- };
190
- }, "__param");
191
- __esDecorate2 = /* @__PURE__ */ __name(function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
192
- function accept(f) {
193
- if (f !== void 0 && typeof f !== "function")
194
- throw new TypeError("Function expected");
195
- return f;
196
- }
197
- __name(accept, "accept");
198
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
199
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
200
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
201
- var _, done = false;
202
- for (var i = decorators.length - 1; i >= 0; i--) {
203
- var context = {};
204
- for (var p in contextIn)
205
- context[p] = p === "access" ? {} : contextIn[p];
206
- for (var p in contextIn.access)
207
- context.access[p] = contextIn.access[p];
208
- context.addInitializer = function(f) {
209
- if (done)
210
- throw new TypeError("Cannot add initializers after decoration has completed");
211
- extraInitializers.push(accept(f || null));
212
- };
213
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
214
- if (kind === "accessor") {
215
- if (result === void 0)
216
- continue;
217
- if (result === null || typeof result !== "object")
218
- throw new TypeError("Object expected");
219
- if (_ = accept(result.get))
220
- descriptor.get = _;
221
- if (_ = accept(result.set))
222
- descriptor.set = _;
223
- if (_ = accept(result.init))
224
- initializers.push(_);
225
- } else if (_ = accept(result)) {
226
- if (kind === "field")
227
- initializers.push(_);
228
- else
229
- descriptor[key] = _;
230
- }
231
- }
232
- if (target)
233
- Object.defineProperty(target, contextIn.name, descriptor);
234
- done = true;
235
- }, "__esDecorate");
236
- __runInitializers2 = /* @__PURE__ */ __name(function(thisArg, initializers, value) {
237
- var useValue = arguments.length > 2;
238
- for (var i = 0; i < initializers.length; i++) {
239
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
240
- }
241
- return useValue ? value : void 0;
242
- }, "__runInitializers");
243
- __propKey2 = /* @__PURE__ */ __name(function(x) {
244
- return typeof x === "symbol" ? x : "".concat(x);
245
- }, "__propKey");
246
- __setFunctionName2 = /* @__PURE__ */ __name(function(f, name, prefix) {
247
- if (typeof name === "symbol")
248
- name = name.description ? "[".concat(name.description, "]") : "";
249
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
250
- }, "__setFunctionName");
251
- __metadata2 = /* @__PURE__ */ __name(function(metadataKey, metadataValue) {
252
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
253
- return Reflect.metadata(metadataKey, metadataValue);
254
- }, "__metadata");
255
- __awaiter2 = /* @__PURE__ */ __name(function(thisArg, _arguments, P, generator) {
256
- function adopt(value) {
257
- return value instanceof P ? value : new P(function(resolve) {
258
- resolve(value);
259
- });
260
- }
261
- __name(adopt, "adopt");
262
- return new (P || (P = Promise))(function(resolve, reject) {
263
- function fulfilled(value) {
264
- try {
265
- step(generator.next(value));
266
- } catch (e) {
267
- reject(e);
268
- }
269
- }
270
- __name(fulfilled, "fulfilled");
271
- function rejected(value) {
272
- try {
273
- step(generator["throw"](value));
274
- } catch (e) {
275
- reject(e);
276
- }
277
- }
278
- __name(rejected, "rejected");
279
- function step(result) {
280
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
281
- }
282
- __name(step, "step");
283
- step((generator = generator.apply(thisArg, _arguments || [])).next());
284
- });
285
- }, "__awaiter");
286
- __generator2 = /* @__PURE__ */ __name(function(thisArg, body) {
287
- var _ = { label: 0, sent: function() {
288
- if (t[0] & 1)
289
- throw t[1];
290
- return t[1];
291
- }, trys: [], ops: [] }, f, y, t, g;
292
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
293
- return this;
294
- }), g;
295
- function verb(n) {
296
- return function(v) {
297
- return step([n, v]);
298
- };
299
- }
300
- __name(verb, "verb");
301
- function step(op) {
302
- if (f)
303
- throw new TypeError("Generator is already executing.");
304
- while (g && (g = 0, op[0] && (_ = 0)), _)
305
- try {
306
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
307
- return t;
308
- if (y = 0, t)
309
- op = [op[0] & 2, t.value];
310
- switch (op[0]) {
311
- case 0:
312
- case 1:
313
- t = op;
314
- break;
315
- case 4:
316
- _.label++;
317
- return { value: op[1], done: false };
318
- case 5:
319
- _.label++;
320
- y = op[1];
321
- op = [0];
322
- continue;
323
- case 7:
324
- op = _.ops.pop();
325
- _.trys.pop();
326
- continue;
327
- default:
328
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
329
- _ = 0;
330
- continue;
331
- }
332
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
333
- _.label = op[1];
334
- break;
335
- }
336
- if (op[0] === 6 && _.label < t[1]) {
337
- _.label = t[1];
338
- t = op;
339
- break;
340
- }
341
- if (t && _.label < t[2]) {
342
- _.label = t[2];
343
- _.ops.push(op);
344
- break;
345
- }
346
- if (t[2])
347
- _.ops.pop();
348
- _.trys.pop();
349
- continue;
350
- }
351
- op = body.call(thisArg, _);
352
- } catch (e) {
353
- op = [6, e];
354
- y = 0;
355
- } finally {
356
- f = t = 0;
357
- }
358
- if (op[0] & 5)
359
- throw op[1];
360
- return { value: op[0] ? op[1] : void 0, done: true };
361
- }
362
- __name(step, "step");
363
- }, "__generator");
364
- __exportStar2 = /* @__PURE__ */ __name(function(m, o) {
365
- for (var p in m)
366
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
367
- __createBinding2(o, m, p);
368
- }, "__exportStar");
369
- __createBinding2 = Object.create ? function(o, m, k, k2) {
370
- if (k2 === void 0)
371
- k2 = k;
372
- var desc = Object.getOwnPropertyDescriptor(m, k);
373
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
374
- desc = { enumerable: true, get: function() {
375
- return m[k];
376
- } };
377
- }
378
- Object.defineProperty(o, k2, desc);
379
- } : function(o, m, k, k2) {
380
- if (k2 === void 0)
381
- k2 = k;
382
- o[k2] = m[k];
383
- };
384
- __values2 = /* @__PURE__ */ __name(function(o) {
385
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
386
- if (m)
387
- return m.call(o);
388
- if (o && typeof o.length === "number")
389
- return {
390
- next: function() {
391
- if (o && i >= o.length)
392
- o = void 0;
393
- return { value: o && o[i++], done: !o };
394
- }
395
- };
396
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
397
- }, "__values");
398
- __read2 = /* @__PURE__ */ __name(function(o, n) {
399
- var m = typeof Symbol === "function" && o[Symbol.iterator];
400
- if (!m)
401
- return o;
402
- var i = m.call(o), r, ar = [], e;
403
- try {
404
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
405
- ar.push(r.value);
406
- } catch (error) {
407
- e = { error };
408
- } finally {
409
- try {
410
- if (r && !r.done && (m = i["return"]))
411
- m.call(i);
412
- } finally {
413
- if (e)
414
- throw e.error;
415
- }
416
- }
417
- return ar;
418
- }, "__read");
419
- __spread2 = /* @__PURE__ */ __name(function() {
420
- for (var ar = [], i = 0; i < arguments.length; i++)
421
- ar = ar.concat(__read2(arguments[i]));
422
- return ar;
423
- }, "__spread");
424
- __spreadArrays2 = /* @__PURE__ */ __name(function() {
425
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
426
- s += arguments[i].length;
427
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
428
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
429
- r[k] = a[j];
430
- return r;
431
- }, "__spreadArrays");
432
- __spreadArray2 = /* @__PURE__ */ __name(function(to, from, pack) {
433
- if (pack || arguments.length === 2)
434
- for (var i = 0, l = from.length, ar; i < l; i++) {
435
- if (ar || !(i in from)) {
436
- if (!ar)
437
- ar = Array.prototype.slice.call(from, 0, i);
438
- ar[i] = from[i];
439
- }
440
- }
441
- return to.concat(ar || Array.prototype.slice.call(from));
442
- }, "__spreadArray");
443
- __await2 = /* @__PURE__ */ __name(function(v) {
444
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
445
- }, "__await");
446
- __asyncGenerator2 = /* @__PURE__ */ __name(function(thisArg, _arguments, generator) {
447
- if (!Symbol.asyncIterator)
448
- throw new TypeError("Symbol.asyncIterator is not defined.");
449
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
450
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
451
- return this;
452
- }, i;
453
- function verb(n) {
454
- if (g[n])
455
- i[n] = function(v) {
456
- return new Promise(function(a, b) {
457
- q.push([n, v, a, b]) > 1 || resume(n, v);
458
- });
459
- };
460
- }
461
- __name(verb, "verb");
462
- function resume(n, v) {
463
- try {
464
- step(g[n](v));
465
- } catch (e) {
466
- settle(q[0][3], e);
467
- }
468
- }
469
- __name(resume, "resume");
470
- function step(r) {
471
- r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
472
- }
473
- __name(step, "step");
474
- function fulfill(value) {
475
- resume("next", value);
476
- }
477
- __name(fulfill, "fulfill");
478
- function reject(value) {
479
- resume("throw", value);
480
- }
481
- __name(reject, "reject");
482
- function settle(f, v) {
483
- if (f(v), q.shift(), q.length)
484
- resume(q[0][0], q[0][1]);
485
- }
486
- __name(settle, "settle");
487
- }, "__asyncGenerator");
488
- __asyncDelegator2 = /* @__PURE__ */ __name(function(o) {
489
- var i, p;
490
- return i = {}, verb("next"), verb("throw", function(e) {
491
- throw e;
492
- }), verb("return"), i[Symbol.iterator] = function() {
493
- return this;
494
- }, i;
495
- function verb(n, f) {
496
- i[n] = o[n] ? function(v) {
497
- return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v;
498
- } : f;
499
- }
500
- __name(verb, "verb");
501
- }, "__asyncDelegator");
502
- __asyncValues2 = /* @__PURE__ */ __name(function(o) {
503
- if (!Symbol.asyncIterator)
504
- throw new TypeError("Symbol.asyncIterator is not defined.");
505
- var m = o[Symbol.asyncIterator], i;
506
- return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
507
- return this;
508
- }, i);
509
- function verb(n) {
510
- i[n] = o[n] && function(v) {
511
- return new Promise(function(resolve, reject) {
512
- v = o[n](v), settle(resolve, reject, v.done, v.value);
513
- });
514
- };
515
- }
516
- __name(verb, "verb");
517
- function settle(resolve, reject, d, v) {
518
- Promise.resolve(v).then(function(v2) {
519
- resolve({ value: v2, done: d });
520
- }, reject);
521
- }
522
- __name(settle, "settle");
523
- }, "__asyncValues");
524
- __makeTemplateObject2 = /* @__PURE__ */ __name(function(cooked, raw) {
525
- if (Object.defineProperty) {
526
- Object.defineProperty(cooked, "raw", { value: raw });
527
- } else {
528
- cooked.raw = raw;
529
- }
530
- return cooked;
531
- }, "__makeTemplateObject");
532
- var __setModuleDefault = Object.create ? function(o, v) {
533
- Object.defineProperty(o, "default", { enumerable: true, value: v });
534
- } : function(o, v) {
535
- o["default"] = v;
536
- };
537
- __importStar2 = /* @__PURE__ */ __name(function(mod) {
538
- if (mod && mod.__esModule)
539
- return mod;
540
- var result = {};
541
- if (mod != null) {
542
- for (var k in mod)
543
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
544
- __createBinding2(result, mod, k);
545
- }
546
- __setModuleDefault(result, mod);
547
- return result;
548
- }, "__importStar");
549
- __importDefault2 = /* @__PURE__ */ __name(function(mod) {
550
- return mod && mod.__esModule ? mod : { "default": mod };
551
- }, "__importDefault");
552
- __classPrivateFieldGet2 = /* @__PURE__ */ __name(function(receiver, state, kind, f) {
553
- if (kind === "a" && !f)
554
- throw new TypeError("Private accessor was defined without a getter");
555
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
556
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
557
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
558
- }, "__classPrivateFieldGet");
559
- __classPrivateFieldSet2 = /* @__PURE__ */ __name(function(receiver, state, value, kind, f) {
560
- if (kind === "m")
561
- throw new TypeError("Private method is not writable");
562
- if (kind === "a" && !f)
563
- throw new TypeError("Private accessor was defined without a setter");
564
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
565
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
566
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
567
- }, "__classPrivateFieldSet");
568
- __classPrivateFieldIn2 = /* @__PURE__ */ __name(function(state, receiver) {
569
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
570
- throw new TypeError("Cannot use 'in' operator on non-object");
571
- return typeof state === "function" ? receiver === state : state.has(receiver);
572
- }, "__classPrivateFieldIn");
573
- exporter("__extends", __extends2);
574
- exporter("__assign", __assign2);
575
- exporter("__rest", __rest2);
576
- exporter("__decorate", __decorate2);
577
- exporter("__param", __param2);
578
- exporter("__esDecorate", __esDecorate2);
579
- exporter("__runInitializers", __runInitializers2);
580
- exporter("__propKey", __propKey2);
581
- exporter("__setFunctionName", __setFunctionName2);
582
- exporter("__metadata", __metadata2);
583
- exporter("__awaiter", __awaiter2);
584
- exporter("__generator", __generator2);
585
- exporter("__exportStar", __exportStar2);
586
- exporter("__createBinding", __createBinding2);
587
- exporter("__values", __values2);
588
- exporter("__read", __read2);
589
- exporter("__spread", __spread2);
590
- exporter("__spreadArrays", __spreadArrays2);
591
- exporter("__spreadArray", __spreadArray2);
592
- exporter("__await", __await2);
593
- exporter("__asyncGenerator", __asyncGenerator2);
594
- exporter("__asyncDelegator", __asyncDelegator2);
595
- exporter("__asyncValues", __asyncValues2);
596
- exporter("__makeTemplateObject", __makeTemplateObject2);
597
- exporter("__importStar", __importStar2);
598
- exporter("__importDefault", __importDefault2);
599
- exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
600
- exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
601
- exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
602
- });
603
- }
604
- });
605
-
606
77
  // src/index.ts
607
78
  var src_exports = {};
608
79
  __export(src_exports, {
@@ -610,7 +81,7 @@ __export(src_exports, {
610
81
  });
611
82
  module.exports = __toCommonJS(src_exports);
612
83
 
613
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/is.js
84
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/is.js
614
85
  var typeofs = [
615
86
  "string",
616
87
  "number",
@@ -696,7 +167,7 @@ function getObjectType(value) {
696
167
  }
697
168
  __name(getObjectType, "getObjectType");
698
169
 
699
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/token.js
170
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/token.js
700
171
  var Type = class {
701
172
  constructor(major, name, terminal) {
702
173
  this.major = major;
@@ -739,7 +210,7 @@ var Token = class {
739
210
  };
740
211
  __name(Token, "Token");
741
212
 
742
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/byte-utils.js
213
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/byte-utils.js
743
214
  var useBuffer = globalThis.process && !globalThis.process.browser && globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function";
744
215
  var textDecoder = new TextDecoder();
745
216
  var textEncoder = new TextEncoder();
@@ -938,7 +409,7 @@ function decodeCodePointsArray(codePoints) {
938
409
  }
939
410
  __name(decodeCodePointsArray, "decodeCodePointsArray");
940
411
 
941
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/bl.js
412
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/bl.js
942
413
  var defaultChunkSize = 256;
943
414
  var Bl = class {
944
415
  constructor(chunkSize = defaultChunkSize) {
@@ -1010,7 +481,7 @@ var Bl = class {
1010
481
  };
1011
482
  __name(Bl, "Bl");
1012
483
 
1013
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/common.js
484
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/common.js
1014
485
  var decodeErrPrefix = "CBOR decode error:";
1015
486
  var encodeErrPrefix = "CBOR encode error:";
1016
487
  var uintMinorPrefixBytes = [];
@@ -1026,7 +497,7 @@ function assertEnoughData(data, pos, need) {
1026
497
  }
1027
498
  __name(assertEnoughData, "assertEnoughData");
1028
499
 
1029
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/0uint.js
500
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/0uint.js
1030
501
  var uintBoundaries = [
1031
502
  24,
1032
503
  256,
@@ -1182,7 +653,7 @@ encodeUint.compareTokens = /* @__PURE__ */ __name(function compareTokens(tok1, t
1182
653
  return tok1.value < tok2.value ? -1 : tok1.value > tok2.value ? 1 : 0;
1183
654
  }, "compareTokens");
1184
655
 
1185
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/1negint.js
656
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/1negint.js
1186
657
  function decodeNegint8(data, pos, _minor, options) {
1187
658
  return new Token(Type.negint, -1 - readUint8(data, pos + 1, options), 2);
1188
659
  }
@@ -1238,7 +709,7 @@ encodeNegint.compareTokens = /* @__PURE__ */ __name(function compareTokens2(tok1
1238
709
  return tok1.value < tok2.value ? 1 : tok1.value > tok2.value ? -1 : 0;
1239
710
  }, "compareTokens");
1240
711
 
1241
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/2bytes.js
712
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/2bytes.js
1242
713
  function toToken(data, pos, prefix, length) {
1243
714
  assertEnoughData(data, pos, prefix + length);
1244
715
  const buf2 = slice(data, pos + prefix, pos + prefix + length);
@@ -1294,7 +765,7 @@ function compareBytes(b1, b2) {
1294
765
  }
1295
766
  __name(compareBytes, "compareBytes");
1296
767
 
1297
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/3string.js
768
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/3string.js
1298
769
  function toToken2(data, pos, prefix, length, options) {
1299
770
  const totLength = prefix + length;
1300
771
  assertEnoughData(data, pos, totLength);
@@ -1331,7 +802,7 @@ function decodeString64(data, pos, _minor, options) {
1331
802
  __name(decodeString64, "decodeString64");
1332
803
  var encodeString = encodeBytes;
1333
804
 
1334
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/4array.js
805
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/4array.js
1335
806
  function toToken3(_data, _pos, prefix, length) {
1336
807
  return new Token(Type.array, length, prefix);
1337
808
  }
@@ -1376,7 +847,7 @@ encodeArray.encodedSize = /* @__PURE__ */ __name(function encodedSize5(token) {
1376
847
  return encodeUintValue.encodedSize(token.value);
1377
848
  }, "encodedSize");
1378
849
 
1379
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/5map.js
850
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/5map.js
1380
851
  function toToken4(_data, _pos, prefix, length) {
1381
852
  return new Token(Type.map, length, prefix);
1382
853
  }
@@ -1421,7 +892,7 @@ encodeMap.encodedSize = /* @__PURE__ */ __name(function encodedSize6(token) {
1421
892
  return encodeUintValue.encodedSize(token.value);
1422
893
  }, "encodedSize");
1423
894
 
1424
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/6tag.js
895
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/6tag.js
1425
896
  function decodeTagCompact(_data, _pos, minor, _options) {
1426
897
  return new Token(Type.tag, minor, 1);
1427
898
  }
@@ -1451,7 +922,7 @@ encodeTag.encodedSize = /* @__PURE__ */ __name(function encodedSize7(token) {
1451
922
  return encodeUintValue.encodedSize(token.value);
1452
923
  }, "encodedSize");
1453
924
 
1454
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/7float.js
925
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/7float.js
1455
926
  var MINOR_FALSE = 20;
1456
927
  var MINOR_TRUE = 21;
1457
928
  var MINOR_NULL = 22;
@@ -1639,7 +1110,7 @@ function readFloat64(ui8a2, pos) {
1639
1110
  __name(readFloat64, "readFloat64");
1640
1111
  encodeFloat.compareTokens = encodeUint.compareTokens;
1641
1112
 
1642
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/jump.js
1113
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/jump.js
1643
1114
  function invalidMinor(data, pos, minor) {
1644
1115
  throw new Error(`${decodeErrPrefix} encountered invalid minor (${minor}) for major ${data[pos] >>> 5}`);
1645
1116
  }
@@ -1798,7 +1269,7 @@ function quickEncodeToken(token) {
1798
1269
  }
1799
1270
  __name(quickEncodeToken, "quickEncodeToken");
1800
1271
 
1801
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/encode.js
1272
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/encode.js
1802
1273
  var defaultEncodeOptions = {
1803
1274
  float64: false,
1804
1275
  mapSorter,
@@ -2031,7 +1502,7 @@ function encode(data, options) {
2031
1502
  }
2032
1503
  __name(encode, "encode");
2033
1504
 
2034
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/decode.js
1505
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/decode.js
2035
1506
  var defaultDecodeOptions = {
2036
1507
  strict: false,
2037
1508
  allowIndefinite: true,
@@ -2227,10 +1698,7 @@ var ContextDecoder = class extends CborldDecoder {
2227
1698
  }
2228
1699
  const url = ID_TO_URL.get(value) || this.reverseAppContextMap.get(value);
2229
1700
  if (url === void 0) {
2230
- throw new CborldError(
2231
- "ERR_UNDEFINED_COMPRESSED_CONTEXT",
2232
- `Undefined compressed context "${value}".`
2233
- );
1701
+ throw new CborldError("ERR_UNDEFINED_COMPRESSED_CONTEXT", `Undefined compressed context "${value}".`);
2234
1702
  }
2235
1703
  return url;
2236
1704
  }
@@ -2588,9 +2056,7 @@ var Transformer = class {
2588
2056
  this._beforeTypeScopedContexts({ activeCtx, obj, transformMap });
2589
2057
  activeCtx = await this._applyTypeScopedContexts({ obj, contextStack });
2590
2058
  const { aliases, scopedContextMap, termMap } = activeCtx;
2591
- const termEntries = this._getEntries(
2592
- { obj, transformMap, transformer: this, termMap }
2593
- );
2059
+ const termEntries = this._getEntries({ obj, transformMap, transformer: this, termMap });
2594
2060
  for (const [termInfo, value] of termEntries) {
2595
2061
  const { term } = termInfo;
2596
2062
  if (term === "@id" || aliases.id.has(term)) {
@@ -2612,9 +2078,7 @@ var Transformer = class {
2612
2078
  propertyContextStack = contextStack.slice();
2613
2079
  }
2614
2080
  const { plural, def } = termInfo;
2615
- const termType = this._getTermType(
2616
- { activeCtx: newActiveCtx || activeCtx, def }
2617
- );
2081
+ const termType = this._getTermType({ activeCtx: newActiveCtx || activeCtx, def });
2618
2082
  const values = plural ? value : [value];
2619
2083
  const entries = [];
2620
2084
  for (const value2 of values) {
@@ -2630,9 +2094,7 @@ var Transformer = class {
2630
2094
  continue;
2631
2095
  }
2632
2096
  if (Array.isArray(value2)) {
2633
- await this._transformArray(
2634
- { entries, contextStack: propertyContextStack, value: value2 }
2635
- );
2097
+ await this._transformArray({ entries, contextStack: propertyContextStack, value: value2 });
2636
2098
  continue;
2637
2099
  }
2638
2100
  await this._transformObject({
@@ -2773,12 +2235,8 @@ var Transformer = class {
2773
2235
  if (importUrl) {
2774
2236
  let importEntry = contextMap.get(importUrl);
2775
2237
  if (!importEntry) {
2776
- const { "@context": importCtx } = await this._getDocument(
2777
- { url: importUrl }
2778
- );
2779
- importEntry = await this._addContext(
2780
- { context: importCtx, contextUrl: importUrl }
2781
- );
2238
+ const { "@context": importCtx } = await this._getDocument({ url: importUrl });
2239
+ importEntry = await this._addContext({ context: importCtx, contextUrl: importUrl });
2782
2240
  }
2783
2241
  context = { ...importEntry.context, ...context };
2784
2242
  }
@@ -2842,20 +2300,14 @@ var Transformer = class {
2842
2300
  return prefixDef + suffix.join(":");
2843
2301
  }
2844
2302
  if (!(typeof prefixDef === "object" && typeof prefixDef["@id"] === "string")) {
2845
- throw new CborldError(
2846
- "ERR_INVALID_TERM_DEFINITION",
2847
- 'JSON-LD term definitions must be strings or objects with "@id".'
2848
- );
2303
+ throw new CborldError("ERR_INVALID_TERM_DEFINITION", 'JSON-LD term definitions must be strings or objects with "@id".');
2849
2304
  }
2850
2305
  return prefixDef["@id"] + suffix.join(":");
2851
2306
  }
2852
2307
  _getIdForTerm({ term, plural }) {
2853
2308
  const id = this.termToId.get(term);
2854
2309
  if (id === void 0) {
2855
- throw new CborldError(
2856
- "ERR_UNDEFINED_TERM",
2857
- "CBOR-LD compression requires all terms to be defined in a JSON-LD context."
2858
- );
2310
+ throw new CborldError("ERR_UNDEFINED_TERM", "CBOR-LD compression requires all terms to be defined in a JSON-LD context.");
2859
2311
  }
2860
2312
  return plural ? id + 1 : id;
2861
2313
  }
@@ -3118,30 +2570,20 @@ var Decompressor = class extends Transformer {
3118
2570
  _beforeObjectContexts({ obj, transformMap }) {
3119
2571
  const encodedContext = transformMap.get(CONTEXT_TERM_ID);
3120
2572
  if (encodedContext) {
3121
- const decoder = ContextDecoder.createDecoder(
3122
- { value: encodedContext, transformer: this }
3123
- );
2573
+ const decoder = ContextDecoder.createDecoder({ value: encodedContext, transformer: this });
3124
2574
  obj["@context"] = decoder ? decoder.decode({ value: encodedContext }) : encodedContext;
3125
2575
  }
3126
2576
  const encodedContexts = transformMap.get(CONTEXT_TERM_ID_PLURAL);
3127
2577
  if (encodedContexts) {
3128
2578
  if (encodedContext) {
3129
- throw new CborldError(
3130
- "ERR_INVALID_ENCODED_CONTEXT",
3131
- "Both singular and plural context IDs were found in the CBOR-LD input."
3132
- );
2579
+ throw new CborldError("ERR_INVALID_ENCODED_CONTEXT", "Both singular and plural context IDs were found in the CBOR-LD input.");
3133
2580
  }
3134
2581
  if (!Array.isArray(encodedContexts)) {
3135
- throw new CborldError(
3136
- "ERR_INVALID_ENCODED_CONTEXT",
3137
- "Encoded plural context value must be an array."
3138
- );
2582
+ throw new CborldError("ERR_INVALID_ENCODED_CONTEXT", "Encoded plural context value must be an array.");
3139
2583
  }
3140
2584
  const entries = [];
3141
2585
  for (const value of encodedContexts) {
3142
- const decoder = ContextDecoder.createDecoder(
3143
- { value, transformer: this }
3144
- );
2586
+ const decoder = ContextDecoder.createDecoder({ value, transformer: this });
3145
2587
  entries.push(decoder ? decoder.decode({ value }) : value);
3146
2588
  }
3147
2589
  obj["@context"] = entries;
@@ -3159,15 +2601,11 @@ var Decompressor = class extends Transformer {
3159
2601
  if (value !== void 0) {
3160
2602
  if (Array.isArray(value)) {
3161
2603
  obj[term] = value.map((value2) => {
3162
- const decoder = VocabTermDecoder.createDecoder(
3163
- { value: value2, transformer: this }
3164
- );
2604
+ const decoder = VocabTermDecoder.createDecoder({ value: value2, transformer: this });
3165
2605
  return decoder ? decoder.decode({ value: value2 }) : value2;
3166
2606
  });
3167
2607
  } else {
3168
- const decoder = VocabTermDecoder.createDecoder(
3169
- { value, transformer: this }
3170
- );
2608
+ const decoder = VocabTermDecoder.createDecoder({ value, transformer: this });
3171
2609
  obj[term] = decoder ? decoder.decode({ value }) : value;
3172
2610
  }
3173
2611
  }
@@ -3181,17 +2619,11 @@ var Decompressor = class extends Transformer {
3181
2619
  }
3182
2620
  const { term, plural } = this._getTermForId({ id: key });
3183
2621
  if (term === void 0) {
3184
- throw new CborldError(
3185
- "ERR_UNKNOWN_CBORLD_TERM_ID",
3186
- `Unknown term ID '${key}' was detected in the CBOR-LD input.`
3187
- );
2622
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM_ID", `Unknown term ID '${key}' was detected in the CBOR-LD input.`);
3188
2623
  }
3189
2624
  const def = termMap.get(term);
3190
2625
  if (def === void 0 && !(term.startsWith("@") && KEYWORDS.has(term))) {
3191
- throw new CborldError(
3192
- "ERR_UNKNOWN_CBORLD_TERM",
3193
- `Unknown term "${term}" was detected in the CBOR-LD input.`
3194
- );
2626
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term "${term}" was detected in the CBOR-LD input.`);
3195
2627
  }
3196
2628
  entries.push([{ term, termId: key, plural, def }, value]);
3197
2629
  }
@@ -3200,17 +2632,11 @@ var Decompressor = class extends Transformer {
3200
2632
  _getTermInfo({ termMap, key }) {
3201
2633
  const { term, plural } = this._getTermForId({ id: key });
3202
2634
  if (term === void 0) {
3203
- throw new CborldError(
3204
- "ERR_UNKNOWN_CBORLD_TERM_ID",
3205
- `Unknown term ID '${key}' was detected in the CBOR-LD input.`
3206
- );
2635
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM_ID", `Unknown term ID '${key}' was detected in the CBOR-LD input.`);
3207
2636
  }
3208
2637
  const def = termMap.get(term);
3209
2638
  if (def === void 0 && !(term.startsWith("@") && KEYWORDS.has(term))) {
3210
- throw new CborldError(
3211
- "ERR_UNKNOWN_CBORLD_TERM",
3212
- `Unknown term "${term}" was detected in the CBOR-LD input.`
3213
- );
2639
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term "${term}" was detected in the CBOR-LD input.`);
3214
2640
  }
3215
2641
  return { term, termId: key, plural, def };
3216
2642
  }
@@ -3223,18 +2649,14 @@ var Decompressor = class extends Transformer {
3223
2649
  const values = plural ? value : [value];
3224
2650
  const entries = [];
3225
2651
  for (const value2 of values) {
3226
- const decoder = VocabTermDecoder.createDecoder(
3227
- { value: value2, transformer: this }
3228
- );
2652
+ const decoder = VocabTermDecoder.createDecoder({ value: value2, transformer: this });
3229
2653
  entries.push(decoder ? decoder.decode({ value: value2 }) : value2);
3230
2654
  }
3231
2655
  obj[term] = plural ? entries : entries[0];
3232
2656
  }
3233
2657
  _transformTypedValue({ entries, termType, value }) {
3234
2658
  const DecoderClass = TYPE_DECODERS.get(termType);
3235
- const decoder = DecoderClass && DecoderClass.createDecoder(
3236
- { value, transformer: this }
3237
- );
2659
+ const decoder = DecoderClass && DecoderClass.createDecoder({ value, transformer: this });
3238
2660
  if (decoder) {
3239
2661
  entries.push(decoder.decode({ value }));
3240
2662
  return true;
@@ -3277,29 +2699,17 @@ async function decode5({
3277
2699
  }
3278
2700
  let index = 0;
3279
2701
  if (cborldBytes[index++] !== 217) {
3280
- throw new CborldError(
3281
- "ERR_NOT_CBORLD",
3282
- 'CBOR-LD must start with a CBOR major type "Tag" header of `0xd9`.'
3283
- );
2702
+ throw new CborldError("ERR_NOT_CBORLD", 'CBOR-LD must start with a CBOR major type "Tag" header of `0xd9`.');
3284
2703
  }
3285
2704
  if (cborldBytes[index++] !== 5) {
3286
- throw new CborldError(
3287
- "ERR_NOT_CBORLD",
3288
- "CBOR-LD 16-bit tag must start with `0x05`."
3289
- );
2705
+ throw new CborldError("ERR_NOT_CBORLD", "CBOR-LD 16-bit tag must start with `0x05`.");
3290
2706
  }
3291
2707
  const compressionMode = cborldBytes[index];
3292
2708
  if (compressionMode === void 0) {
3293
- throw new CborldError(
3294
- "ERR_NOT_CBORLD",
3295
- "Truncated CBOR-LD 16-bit tag."
3296
- );
2709
+ throw new CborldError("ERR_NOT_CBORLD", "Truncated CBOR-LD 16-bit tag.");
3297
2710
  }
3298
2711
  if (!(compressionMode === 0 || compressionMode === 1)) {
3299
- throw new CborldError(
3300
- "ERR_NOT_CBORLD",
3301
- `Unsupported CBOR-LD compression mode "${compressionMode}".`
3302
- );
2712
+ throw new CborldError("ERR_NOT_CBORLD", `Unsupported CBOR-LD compression mode "${compressionMode}".`);
3303
2713
  }
3304
2714
  index++;
3305
2715
  const { buffer: buffer2, byteOffset, length } = cborldBytes;
@@ -3308,9 +2718,7 @@ async function decode5({
3308
2718
  return decode(suffix, { useMaps: false });
3309
2719
  }
3310
2720
  const decompressor = new Decompressor({ documentLoader, appContextMap });
3311
- const result = await decompressor.decompress(
3312
- { compressedBytes: suffix, diagnose }
3313
- );
2721
+ const result = await decompressor.decompress({ compressedBytes: suffix, diagnose });
3314
2722
  if (diagnose) {
3315
2723
  diagnose("Diagnostic JSON-LD result:");
3316
2724
  diagnose(inspect(result, { depth: null, colors: true }));
@@ -3581,18 +2989,14 @@ var XsdDateTimeEncoder = class extends CborldEncoder {
3581
2989
  const secondsToken = new Token(Type.uint, secondsSinceEpoch);
3582
2990
  const millisecondIndex = value.indexOf(".");
3583
2991
  if (millisecondIndex === -1) {
3584
- const expectedDate2 = new Date(
3585
- secondsSinceEpoch * 1e3
3586
- ).toISOString().replace(".000Z", "Z");
2992
+ const expectedDate2 = new Date(secondsSinceEpoch * 1e3).toISOString().replace(".000Z", "Z");
3587
2993
  if (value !== expectedDate2) {
3588
2994
  return new Token(Type.string, value);
3589
2995
  }
3590
2996
  return secondsToken;
3591
2997
  }
3592
2998
  const milliseconds = parseInt(value.substr(millisecondIndex + 1), 10);
3593
- const expectedDate = new Date(
3594
- secondsSinceEpoch * 1e3 + milliseconds
3595
- ).toISOString();
2999
+ const expectedDate = new Date(secondsSinceEpoch * 1e3 + milliseconds).toISOString();
3596
3000
  if (value !== expectedDate) {
3597
3001
  return new Token(Type.string, value);
3598
3002
  }
@@ -3667,9 +3071,7 @@ var Compressor = class extends Transformer {
3667
3071
  const isArray = Array.isArray(context);
3668
3072
  const contexts = isArray ? context : [context];
3669
3073
  for (const value of contexts) {
3670
- const encoder = ContextEncoder.createEncoder(
3671
- { value, transformer: this }
3672
- );
3074
+ const encoder = ContextEncoder.createEncoder({ value, transformer: this });
3673
3075
  entries.push(encoder || value);
3674
3076
  }
3675
3077
  const id = isArray ? CONTEXT_TERM_ID_PLURAL2 : CONTEXT_TERM_ID2;
@@ -3684,10 +3086,7 @@ var Compressor = class extends Transformer {
3684
3086
  }
3685
3087
  const def = termMap.get(key);
3686
3088
  if (def === void 0 && !(key.startsWith("@") && KEYWORDS.has(key))) {
3687
- throw new CborldError(
3688
- "ERR_UNKNOWN_CBORLD_TERM",
3689
- `Unknown term '${key}' was detected in the JSON-LD input.`
3690
- );
3089
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term '${key}' was detected in the JSON-LD input.`);
3691
3090
  }
3692
3091
  const value = obj[key];
3693
3092
  const plural = Array.isArray(value);
@@ -3698,9 +3097,7 @@ var Compressor = class extends Transformer {
3698
3097
  }
3699
3098
  _transformObjectId({ transformMap, termInfo, value }) {
3700
3099
  const { termId } = termInfo;
3701
- const encoder = UriEncoder.createEncoder(
3702
- { value, transformer: this, termInfo }
3703
- );
3100
+ const encoder = UriEncoder.createEncoder({ value, transformer: this, termInfo });
3704
3101
  transformMap.set(termId, encoder || value);
3705
3102
  }
3706
3103
  _transformObjectType({ transformMap, termInfo, value }) {
@@ -3708,18 +3105,14 @@ var Compressor = class extends Transformer {
3708
3105
  const values = plural ? value : [value];
3709
3106
  const entries = [];
3710
3107
  for (const value2 of values) {
3711
- const encoder = VocabTermEncoder.createEncoder(
3712
- { value: value2, transformer: this, termInfo }
3713
- );
3108
+ const encoder = VocabTermEncoder.createEncoder({ value: value2, transformer: this, termInfo });
3714
3109
  entries.push(encoder || value2);
3715
3110
  }
3716
3111
  transformMap.set(termId, plural ? entries : entries[0]);
3717
3112
  }
3718
3113
  _transformTypedValue({ entries, termType, value, termInfo }) {
3719
3114
  const EncoderClass = TYPE_ENCODERS.get(termType);
3720
- const encoder = EncoderClass && EncoderClass.createEncoder(
3721
- { value, transformer: this, termInfo }
3722
- );
3115
+ const encoder = EncoderClass && EncoderClass.createEncoder({ value, transformer: this, termInfo });
3723
3116
  if (encoder) {
3724
3117
  entries.push(encoder);
3725
3118
  return true;
@@ -3755,9 +3148,7 @@ async function encode5({
3755
3148
  diagnose
3756
3149
  } = {}) {
3757
3150
  if (!(compressionMode === 0 || compressionMode === 1)) {
3758
- throw new TypeError(
3759
- '"compressionMode" must be "0" (no compression) or "1" for compression mode version 1.'
3760
- );
3151
+ throw new TypeError('"compressionMode" must be "0" (no compression) or "1" for compression mode version 1.');
3761
3152
  }
3762
3153
  const prefix = new Uint8Array([217, 5, compressionMode]);
3763
3154
  let suffix;
@@ -3843,7 +3234,7 @@ __name(base32Encode, "base32Encode");
3843
3234
  // ../../../node_modules/.pnpm/@digitalbazaar+vpqr@3.0.0/node_modules/@digitalbazaar/vpqr/lib/vpqr.js
3844
3235
  var import_base32_decode = __toESM(require_base32_decode(), 1);
3845
3236
 
3846
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/Mode.js
3237
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/Mode.js
3847
3238
  var Mode;
3848
3239
  (function(Mode2) {
3849
3240
  Mode2[Mode2["Terminator"] = 0] = "Terminator";
@@ -3855,41 +3246,30 @@ var Mode;
3855
3246
  Mode2[Mode2["ECI"] = 7] = "ECI";
3856
3247
  })(Mode || (Mode = {}));
3857
3248
 
3858
- // ../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/modules/index.js
3859
- var import_tslib = __toESM(require_tslib(), 1);
3860
- var {
3861
- __extends,
3862
- __assign,
3863
- __rest,
3864
- __decorate,
3865
- __param,
3866
- __esDecorate,
3867
- __runInitializers,
3868
- __propKey,
3869
- __setFunctionName,
3870
- __metadata,
3871
- __awaiter,
3872
- __generator,
3873
- __exportStar,
3874
- __createBinding,
3875
- __values,
3876
- __read,
3877
- __spread,
3878
- __spreadArrays,
3879
- __spreadArray,
3880
- __await,
3881
- __asyncGenerator,
3882
- __asyncDelegator,
3883
- __asyncValues,
3884
- __makeTemplateObject,
3885
- __importStar,
3886
- __importDefault,
3887
- __classPrivateFieldGet,
3888
- __classPrivateFieldSet,
3889
- __classPrivateFieldIn
3890
- } = import_tslib.default;
3249
+ // ../../../node_modules/.pnpm/tslib@2.5.3/node_modules/tslib/tslib.es6.mjs
3250
+ var extendStatics = /* @__PURE__ */ __name(function(d, b) {
3251
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
3252
+ d2.__proto__ = b2;
3253
+ } || function(d2, b2) {
3254
+ for (var p in b2)
3255
+ if (Object.prototype.hasOwnProperty.call(b2, p))
3256
+ d2[p] = b2[p];
3257
+ };
3258
+ return extendStatics(d, b);
3259
+ }, "extendStatics");
3260
+ function __extends(d, b) {
3261
+ if (typeof b !== "function" && b !== null)
3262
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3263
+ extendStatics(d, b);
3264
+ function __() {
3265
+ this.constructor = d;
3266
+ }
3267
+ __name(__, "__");
3268
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3269
+ }
3270
+ __name(__extends, "__extends");
3891
3271
 
3892
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRData.js
3272
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRData.js
3893
3273
  var QRData = /* @__PURE__ */ function() {
3894
3274
  function QRData2(mode, data) {
3895
3275
  this.bytes = [];
@@ -3949,7 +3329,7 @@ var QRData = /* @__PURE__ */ function() {
3949
3329
  return QRData2;
3950
3330
  }();
3951
3331
 
3952
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/encoding/UTF8.js
3332
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/encoding/UTF8.js
3953
3333
  function encode6(text) {
3954
3334
  var pos = 0;
3955
3335
  var length = text.length;
@@ -3977,7 +3357,7 @@ function encode6(text) {
3977
3357
  }
3978
3358
  __name(encode6, "encode");
3979
3359
 
3980
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRByte.js
3360
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRByte.js
3981
3361
  var QRByte = /* @__PURE__ */ function(_super) {
3982
3362
  __extends(QRByte2, _super);
3983
3363
  function QRByte2(data, encode$1) {
@@ -4004,7 +3384,7 @@ var QRByte = /* @__PURE__ */ function(_super) {
4004
3384
  return QRByte2;
4005
3385
  }(QRData);
4006
3386
 
4007
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRMath.js
3387
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRMath.js
4008
3388
  var EXP_TABLE = [];
4009
3389
  var LOG_TABLE = [];
4010
3390
  for (i = 0; i < 256; i++) {
@@ -4034,7 +3414,7 @@ function gexp(n) {
4034
3414
  }
4035
3415
  __name(gexp, "gexp");
4036
3416
 
4037
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Polynomial.js
3417
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Polynomial.js
4038
3418
  var Polynomial = /* @__PURE__ */ function() {
4039
3419
  function Polynomial2(num, shift) {
4040
3420
  if (shift === void 0) {
@@ -4096,7 +3476,7 @@ var Polynomial = /* @__PURE__ */ function() {
4096
3476
  return Polynomial2;
4097
3477
  }();
4098
3478
 
4099
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRUtil.js
3479
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRUtil.js
4100
3480
  var N1 = 3;
4101
3481
  var N2 = 3;
4102
3482
  var N3 = 40;
@@ -4275,7 +3655,7 @@ function calculateMaskPenalty(qrcode) {
4275
3655
  }
4276
3656
  __name(calculateMaskPenalty, "calculateMaskPenalty");
4277
3657
 
4278
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/ErrorCorrectionLevel.js
3658
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/ErrorCorrectionLevel.js
4279
3659
  var ErrorCorrectionLevel;
4280
3660
  (function(ErrorCorrectionLevel2) {
4281
3661
  ErrorCorrectionLevel2[ErrorCorrectionLevel2["L"] = 1] = "L";
@@ -4284,7 +3664,7 @@ var ErrorCorrectionLevel;
4284
3664
  ErrorCorrectionLevel2[ErrorCorrectionLevel2["H"] = 2] = "H";
4285
3665
  })(ErrorCorrectionLevel || (ErrorCorrectionLevel = {}));
4286
3666
 
4287
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/RSBlock.js
3667
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/RSBlock.js
4288
3668
  var RSBlock = /* @__PURE__ */ function() {
4289
3669
  function RSBlock2(totalCount, dataCount) {
4290
3670
  this.dataCount = dataCount;
@@ -4490,7 +3870,7 @@ var RSBlock = /* @__PURE__ */ function() {
4490
3870
  return RSBlock2;
4491
3871
  }();
4492
3872
 
4493
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/BitBuffer.js
3873
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/BitBuffer.js
4494
3874
  var BitBuffer = /* @__PURE__ */ function() {
4495
3875
  function BitBuffer2() {
4496
3876
  this.length = 0;
@@ -4524,7 +3904,7 @@ var BitBuffer = /* @__PURE__ */ function() {
4524
3904
  return BitBuffer2;
4525
3905
  }();
4526
3906
 
4527
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/OutputStream.js
3907
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/OutputStream.js
4528
3908
  var OutputStream = /* @__PURE__ */ function() {
4529
3909
  function OutputStream2() {
4530
3910
  }
@@ -4548,7 +3928,7 @@ var OutputStream = /* @__PURE__ */ function() {
4548
3928
  return OutputStream2;
4549
3929
  }();
4550
3930
 
4551
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/ByteArrayOutputStream.js
3931
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/ByteArrayOutputStream.js
4552
3932
  var ByteArrayOutputStream = /* @__PURE__ */ function(_super) {
4553
3933
  __extends(ByteArrayOutputStream2, _super);
4554
3934
  function ByteArrayOutputStream2() {
@@ -4569,7 +3949,7 @@ var ByteArrayOutputStream = /* @__PURE__ */ function(_super) {
4569
3949
  return ByteArrayOutputStream2;
4570
3950
  }(OutputStream);
4571
3951
 
4572
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/Base64EncodeOutputStream.js
3952
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/Base64EncodeOutputStream.js
4573
3953
  function encode7(ch) {
4574
3954
  if (ch >= 0) {
4575
3955
  if (ch < 26) {
@@ -4627,7 +4007,7 @@ var Base64EncodeOutputStream = /* @__PURE__ */ function(_super) {
4627
4007
  return Base64EncodeOutputStream2;
4628
4008
  }(OutputStream);
4629
4009
 
4630
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/image/GIFImage.js
4010
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/image/GIFImage.js
4631
4011
  function encodeToBase64(data) {
4632
4012
  var output = new ByteArrayOutputStream();
4633
4013
  var stream = new Base64EncodeOutputStream(output);
@@ -4820,7 +4200,7 @@ var GIFImage = /* @__PURE__ */ function() {
4820
4200
  return GIFImage2;
4821
4201
  }();
4822
4202
 
4823
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/MaskPattern.js
4203
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/MaskPattern.js
4824
4204
  function getMaskFunc(maskPattern) {
4825
4205
  switch (maskPattern) {
4826
4206
  case 0:
@@ -4861,7 +4241,7 @@ function getMaskFunc(maskPattern) {
4861
4241
  }
4862
4242
  __name(getMaskFunc, "getMaskFunc");
4863
4243
 
4864
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Writer.js
4244
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Writer.js
4865
4245
  var PAD0 = 236;
4866
4246
  var PAD1 = 17;
4867
4247
  var toString2 = Object.prototype.toString;
@@ -5245,7 +4625,7 @@ var Encoder = /* @__PURE__ */ function() {
5245
4625
  return Encoder2;
5246
4626
  }();
5247
4627
 
5248
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/encoding/UTF16.js
4628
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/encoding/UTF16.js
5249
4629
  function encode8(text) {
5250
4630
  var length = text.length;
5251
4631
  var bytes = [];
@@ -5256,7 +4636,7 @@ function encode8(text) {
5256
4636
  }
5257
4637
  __name(encode8, "encode");
5258
4638
 
5259
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRAlphanumeric.js
4639
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRAlphanumeric.js
5260
4640
  function getByte(byte) {
5261
4641
  if (48 <= byte && byte <= 57) {
5262
4642
  return byte - 48;
@@ -5424,7 +4804,7 @@ var getVpqrPlugin = /* @__PURE__ */ __name((learnCard) => {
5424
4804
  * @module QRCode
5425
4805
  * @package @nuintun/qrcode
5426
4806
  * @license MIT
5427
- * @version 3.3.0
4807
+ * @version 3.3.5
5428
4808
  * @author nuintun <nuintun@qq.com>
5429
4809
  * @description A pure JavaScript QRCode encode and decode library.
5430
4810
  * @see https://github.com/nuintun/qrcode#readme