@learncard/idx-plugin 1.0.29 → 1.0.31
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/dist/defaults.d.ts +3 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/idx-plugin.cjs.development.js +322 -100
- package/dist/idx-plugin.cjs.development.js.map +4 -4
- package/dist/idx-plugin.cjs.production.min.js +326 -325
- package/dist/idx-plugin.cjs.production.min.js.map +4 -4
- package/dist/idx-plugin.esm.js +322 -100
- package/dist/idx-plugin.esm.js.map +4 -4
- package/dist/idx.d.ts +1 -1
- package/dist/idx.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1422,9 +1422,9 @@ var require_random = __commonJS({
|
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
1424
|
|
|
1425
|
-
// ../../../node_modules/.pnpm/dataloader@2.2.
|
|
1425
|
+
// ../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js
|
|
1426
1426
|
var require_dataloader = __commonJS({
|
|
1427
|
-
"../../../node_modules/.pnpm/dataloader@2.2.
|
|
1427
|
+
"../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module2) {
|
|
1428
1428
|
"use strict";
|
|
1429
1429
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
1430
1430
|
function DataLoader3(batchLoadFn, options) {
|
|
@@ -1447,8 +1447,9 @@ var require_dataloader = __commonJS({
|
|
|
1447
1447
|
}
|
|
1448
1448
|
var batch = getCurrentBatch(this);
|
|
1449
1449
|
var cacheMap = this._cacheMap;
|
|
1450
|
-
var cacheKey
|
|
1450
|
+
var cacheKey;
|
|
1451
1451
|
if (cacheMap) {
|
|
1452
|
+
cacheKey = this._cacheKeyFn(key2);
|
|
1452
1453
|
var cachedPromise = cacheMap.get(cacheKey);
|
|
1453
1454
|
if (cachedPromise) {
|
|
1454
1455
|
var cacheHits = batch.cacheHits || (batch.cacheHits = []);
|
|
@@ -1572,11 +1573,11 @@ var require_dataloader = __commonJS({
|
|
|
1572
1573
|
}
|
|
1573
1574
|
resolveCacheHits(batch);
|
|
1574
1575
|
for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
|
|
1575
|
-
var
|
|
1576
|
-
if (
|
|
1577
|
-
batch.callbacks[i2].reject(
|
|
1576
|
+
var _value = values[i2];
|
|
1577
|
+
if (_value instanceof Error) {
|
|
1578
|
+
batch.callbacks[i2].reject(_value);
|
|
1578
1579
|
} else {
|
|
1579
|
-
batch.callbacks[i2].resolve(
|
|
1580
|
+
batch.callbacks[i2].resolve(_value);
|
|
1580
1581
|
}
|
|
1581
1582
|
}
|
|
1582
1583
|
})["catch"](function(error) {
|
|
@@ -5951,13 +5952,13 @@ function __spreadArray(to, from4, pack) {
|
|
|
5951
5952
|
}
|
|
5952
5953
|
__name(__spreadArray, "__spreadArray");
|
|
5953
5954
|
|
|
5954
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5955
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
5955
5956
|
function isFunction(value) {
|
|
5956
5957
|
return typeof value === "function";
|
|
5957
5958
|
}
|
|
5958
5959
|
__name(isFunction, "isFunction");
|
|
5959
5960
|
|
|
5960
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5961
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
|
|
5961
5962
|
function createErrorClass(createImpl) {
|
|
5962
5963
|
var _super = /* @__PURE__ */ __name(function(instance) {
|
|
5963
5964
|
Error.call(instance);
|
|
@@ -5970,7 +5971,7 @@ function createErrorClass(createImpl) {
|
|
|
5970
5971
|
}
|
|
5971
5972
|
__name(createErrorClass, "createErrorClass");
|
|
5972
5973
|
|
|
5973
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5974
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
|
|
5974
5975
|
var UnsubscriptionError = createErrorClass(function(_super) {
|
|
5975
5976
|
return /* @__PURE__ */ __name(function UnsubscriptionErrorImpl(errors) {
|
|
5976
5977
|
_super(this);
|
|
@@ -5982,7 +5983,7 @@ var UnsubscriptionError = createErrorClass(function(_super) {
|
|
|
5982
5983
|
}, "UnsubscriptionErrorImpl");
|
|
5983
5984
|
});
|
|
5984
5985
|
|
|
5985
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5986
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
|
|
5986
5987
|
function arrRemove(arr, item) {
|
|
5987
5988
|
if (arr) {
|
|
5988
5989
|
var index = arr.indexOf(item);
|
|
@@ -5991,7 +5992,7 @@ function arrRemove(arr, item) {
|
|
|
5991
5992
|
}
|
|
5992
5993
|
__name(arrRemove, "arrRemove");
|
|
5993
5994
|
|
|
5994
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5995
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js
|
|
5995
5996
|
var Subscription = function() {
|
|
5996
5997
|
function Subscription3(initialTeardown) {
|
|
5997
5998
|
this.initialTeardown = initialTeardown;
|
|
@@ -6131,7 +6132,7 @@ function execFinalizer(finalizer) {
|
|
|
6131
6132
|
}
|
|
6132
6133
|
__name(execFinalizer, "execFinalizer");
|
|
6133
6134
|
|
|
6134
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6135
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js
|
|
6135
6136
|
var config = {
|
|
6136
6137
|
onUnhandledError: null,
|
|
6137
6138
|
onStoppedNotification: null,
|
|
@@ -6140,7 +6141,7 @@ var config = {
|
|
|
6140
6141
|
useDeprecatedNextContext: false
|
|
6141
6142
|
};
|
|
6142
6143
|
|
|
6143
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6144
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
|
|
6144
6145
|
var timeoutProvider = {
|
|
6145
6146
|
setTimeout: function(handler, timeout) {
|
|
6146
6147
|
var args = [];
|
|
@@ -6160,7 +6161,7 @@ var timeoutProvider = {
|
|
|
6160
6161
|
delegate: void 0
|
|
6161
6162
|
};
|
|
6162
6163
|
|
|
6163
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6164
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
|
|
6164
6165
|
function reportUnhandledError(err) {
|
|
6165
6166
|
timeoutProvider.setTimeout(function() {
|
|
6166
6167
|
var onUnhandledError = config.onUnhandledError;
|
|
@@ -6173,12 +6174,12 @@ function reportUnhandledError(err) {
|
|
|
6173
6174
|
}
|
|
6174
6175
|
__name(reportUnhandledError, "reportUnhandledError");
|
|
6175
6176
|
|
|
6176
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6177
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js
|
|
6177
6178
|
function noop() {
|
|
6178
6179
|
}
|
|
6179
6180
|
__name(noop, "noop");
|
|
6180
6181
|
|
|
6181
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6182
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
|
|
6182
6183
|
var COMPLETE_NOTIFICATION = function() {
|
|
6183
6184
|
return createNotification("C", void 0, void 0);
|
|
6184
6185
|
}();
|
|
@@ -6199,7 +6200,7 @@ function createNotification(kind, value, error) {
|
|
|
6199
6200
|
}
|
|
6200
6201
|
__name(createNotification, "createNotification");
|
|
6201
6202
|
|
|
6202
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6203
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js
|
|
6203
6204
|
var context = null;
|
|
6204
6205
|
function errorContext(cb) {
|
|
6205
6206
|
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
@@ -6228,7 +6229,7 @@ function captureError(err) {
|
|
|
6228
6229
|
}
|
|
6229
6230
|
__name(captureError, "captureError");
|
|
6230
6231
|
|
|
6231
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6232
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js
|
|
6232
6233
|
var Subscriber = function(_super) {
|
|
6233
6234
|
__extends2(Subscriber3, _super);
|
|
6234
6235
|
function Subscriber3(destination) {
|
|
@@ -6400,18 +6401,18 @@ var EMPTY_OBSERVER = {
|
|
|
6400
6401
|
complete: noop
|
|
6401
6402
|
};
|
|
6402
6403
|
|
|
6403
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6404
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js
|
|
6404
6405
|
var observable = function() {
|
|
6405
6406
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
6406
6407
|
}();
|
|
6407
6408
|
|
|
6408
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6409
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js
|
|
6409
6410
|
function identity3(x) {
|
|
6410
6411
|
return x;
|
|
6411
6412
|
}
|
|
6412
6413
|
__name(identity3, "identity");
|
|
6413
6414
|
|
|
6414
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6415
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js
|
|
6415
6416
|
function pipeFromArray(fns) {
|
|
6416
6417
|
if (fns.length === 0) {
|
|
6417
6418
|
return identity3;
|
|
@@ -6427,7 +6428,7 @@ function pipeFromArray(fns) {
|
|
|
6427
6428
|
}
|
|
6428
6429
|
__name(pipeFromArray, "pipeFromArray");
|
|
6429
6430
|
|
|
6430
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6431
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
6431
6432
|
var Observable = function() {
|
|
6432
6433
|
function Observable3(subscribe) {
|
|
6433
6434
|
if (subscribe) {
|
|
@@ -11536,6 +11537,13 @@ var LCNSigningAuthorityForUserValidator = mod.object({
|
|
|
11536
11537
|
did: mod.string()
|
|
11537
11538
|
})
|
|
11538
11539
|
});
|
|
11540
|
+
var AutoBoostConfigValidator = mod.object({
|
|
11541
|
+
boostUri: mod.string(),
|
|
11542
|
+
signingAuthority: mod.object({
|
|
11543
|
+
endpoint: mod.string(),
|
|
11544
|
+
name: mod.string()
|
|
11545
|
+
})
|
|
11546
|
+
});
|
|
11539
11547
|
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
|
11540
11548
|
var ConsentFlowContractValidator = mod.object({
|
|
11541
11549
|
read: mod.object({
|
|
@@ -11559,6 +11567,7 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11559
11567
|
uri: mod.string(),
|
|
11560
11568
|
needsGuardianConsent: mod.boolean().optional(),
|
|
11561
11569
|
redirectUrl: mod.string().optional(),
|
|
11570
|
+
frontDoorBoostUri: mod.string().optional(),
|
|
11562
11571
|
createdAt: mod.string(),
|
|
11563
11572
|
updatedAt: mod.string(),
|
|
11564
11573
|
expiresAt: mod.string().optional()
|
|
@@ -11574,6 +11583,15 @@ var ConsentFlowContractDataValidator = mod.object({
|
|
|
11574
11583
|
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
11575
11584
|
records: ConsentFlowContractDataValidator.array()
|
|
11576
11585
|
});
|
|
11586
|
+
var ConsentFlowContractDataForDidValidator = mod.object({
|
|
11587
|
+
credentials: mod.object({ category: mod.string(), uri: mod.string() }).array(),
|
|
11588
|
+
personal: mod.record(mod.string()).default({}),
|
|
11589
|
+
date: mod.string(),
|
|
11590
|
+
contractUri: mod.string()
|
|
11591
|
+
});
|
|
11592
|
+
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
11593
|
+
records: ConsentFlowContractDataForDidValidator.array()
|
|
11594
|
+
});
|
|
11577
11595
|
var ConsentFlowTermValidator = mod.object({
|
|
11578
11596
|
sharing: mod.boolean().optional(),
|
|
11579
11597
|
shared: mod.string().array().optional(),
|
|
@@ -11626,6 +11644,11 @@ var ConsentFlowDataQueryValidator = mod.object({
|
|
|
11626
11644
|
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
|
11627
11645
|
personal: mod.record(mod.boolean()).optional()
|
|
11628
11646
|
});
|
|
11647
|
+
var ConsentFlowDataForDidQueryValidator = mod.object({
|
|
11648
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
|
11649
|
+
personal: mod.record(mod.boolean()).optional(),
|
|
11650
|
+
id: StringQuery.optional()
|
|
11651
|
+
});
|
|
11629
11652
|
var ConsentFlowTermsQueryValidator = mod.object({
|
|
11630
11653
|
read: mod.object({
|
|
11631
11654
|
anonymize: mod.boolean().optional(),
|
|
@@ -11645,7 +11668,8 @@ var ConsentFlowTransactionActionValidator = mod.enum([
|
|
|
11645
11668
|
"consent",
|
|
11646
11669
|
"update",
|
|
11647
11670
|
"sync",
|
|
11648
|
-
"withdraw"
|
|
11671
|
+
"withdraw",
|
|
11672
|
+
"write"
|
|
11649
11673
|
]);
|
|
11650
11674
|
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
11651
11675
|
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
@@ -11662,11 +11686,23 @@ var ConsentFlowTransactionValidator = mod.object({
|
|
|
11662
11686
|
terms: ConsentFlowTermsValidator.optional(),
|
|
11663
11687
|
id: mod.string(),
|
|
11664
11688
|
action: ConsentFlowTransactionActionValidator,
|
|
11665
|
-
date: mod.string()
|
|
11689
|
+
date: mod.string(),
|
|
11690
|
+
uris: mod.string().array().optional()
|
|
11666
11691
|
});
|
|
11667
11692
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
11668
11693
|
records: ConsentFlowTransactionValidator.array()
|
|
11669
11694
|
});
|
|
11695
|
+
var ContractCredentialValidator = mod.object({
|
|
11696
|
+
credentialUri: mod.string(),
|
|
11697
|
+
termsUri: mod.string(),
|
|
11698
|
+
contractUri: mod.string(),
|
|
11699
|
+
boostUri: mod.string(),
|
|
11700
|
+
category: mod.string().optional(),
|
|
11701
|
+
date: mod.string()
|
|
11702
|
+
});
|
|
11703
|
+
var PaginatedContractCredentialsValidator = PaginationResponseValidator.extend({
|
|
11704
|
+
records: ContractCredentialValidator.array()
|
|
11705
|
+
});
|
|
11670
11706
|
var LCNNotificationTypeEnumValidator = mod.enum([
|
|
11671
11707
|
"CONNECTION_REQUEST",
|
|
11672
11708
|
"CONNECTION_ACCEPTED",
|
|
@@ -47447,24 +47483,25 @@ var require_lodash22 = __commonJS2({
|
|
|
47447
47483
|
}
|
|
47448
47484
|
});
|
|
47449
47485
|
var require_browser_ponyfill = __commonJS2({
|
|
47450
|
-
"../../../node_modules/.pnpm/cross-fetch@3.
|
|
47451
|
-
var
|
|
47452
|
-
var
|
|
47486
|
+
"../../../node_modules/.pnpm/cross-fetch@3.2.0/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module2) {
|
|
47487
|
+
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof global !== "undefined" && global;
|
|
47488
|
+
var __globalThis__ = function() {
|
|
47453
47489
|
function F() {
|
|
47454
47490
|
this.fetch = false;
|
|
47455
|
-
this.DOMException =
|
|
47491
|
+
this.DOMException = __global__.DOMException;
|
|
47456
47492
|
}
|
|
47457
47493
|
__name(F, "F");
|
|
47458
47494
|
__name3(F, "F");
|
|
47459
|
-
F.prototype =
|
|
47495
|
+
F.prototype = __global__;
|
|
47460
47496
|
return new F();
|
|
47461
47497
|
}();
|
|
47462
|
-
(function(
|
|
47498
|
+
(function(globalThis2) {
|
|
47463
47499
|
var irrelevant = function(exports2) {
|
|
47500
|
+
var g = typeof globalThis2 !== "undefined" && globalThis2 || typeof self !== "undefined" && self || typeof global !== "undefined" && global || {};
|
|
47464
47501
|
var support = {
|
|
47465
|
-
searchParams: "URLSearchParams" in
|
|
47466
|
-
iterable: "Symbol" in
|
|
47467
|
-
blob: "FileReader" in
|
|
47502
|
+
searchParams: "URLSearchParams" in g,
|
|
47503
|
+
iterable: "Symbol" in g && "iterator" in Symbol,
|
|
47504
|
+
blob: "FileReader" in g && "Blob" in g && function() {
|
|
47468
47505
|
try {
|
|
47469
47506
|
new Blob();
|
|
47470
47507
|
return true;
|
|
@@ -47472,8 +47509,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47472
47509
|
return false;
|
|
47473
47510
|
}
|
|
47474
47511
|
}(),
|
|
47475
|
-
formData: "FormData" in
|
|
47476
|
-
arrayBuffer: "ArrayBuffer" in
|
|
47512
|
+
formData: "FormData" in g,
|
|
47513
|
+
arrayBuffer: "ArrayBuffer" in g
|
|
47477
47514
|
};
|
|
47478
47515
|
function isDataView(obj) {
|
|
47479
47516
|
return obj && DataView.prototype.isPrototypeOf(obj);
|
|
@@ -47500,8 +47537,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47500
47537
|
if (typeof name32 !== "string") {
|
|
47501
47538
|
name32 = String(name32);
|
|
47502
47539
|
}
|
|
47503
|
-
if (/[^a-z0-9\-#$%&'*+.^_
|
|
47504
|
-
throw new TypeError(
|
|
47540
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name32) || name32 === "") {
|
|
47541
|
+
throw new TypeError('Invalid character in header field name: "' + name32 + '"');
|
|
47505
47542
|
}
|
|
47506
47543
|
return name32.toLowerCase();
|
|
47507
47544
|
}
|
|
@@ -47539,6 +47576,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47539
47576
|
}, this);
|
|
47540
47577
|
} else if (Array.isArray(headers)) {
|
|
47541
47578
|
headers.forEach(function(header) {
|
|
47579
|
+
if (header.length != 2) {
|
|
47580
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + header.length);
|
|
47581
|
+
}
|
|
47542
47582
|
this.append(header[0], header[1]);
|
|
47543
47583
|
}, this);
|
|
47544
47584
|
} else if (headers) {
|
|
@@ -47600,6 +47640,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47600
47640
|
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
47601
47641
|
}
|
|
47602
47642
|
function consumed(body) {
|
|
47643
|
+
if (body._noBody)
|
|
47644
|
+
return;
|
|
47603
47645
|
if (body.bodyUsed) {
|
|
47604
47646
|
return Promise.reject(new TypeError("Already read"));
|
|
47605
47647
|
}
|
|
@@ -47630,7 +47672,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47630
47672
|
function readBlobAsText(blob) {
|
|
47631
47673
|
var reader = new FileReader();
|
|
47632
47674
|
var promise = fileReaderReady(reader);
|
|
47633
|
-
|
|
47675
|
+
var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
|
|
47676
|
+
var encoding = match ? match[1] : "utf-8";
|
|
47677
|
+
reader.readAsText(blob, encoding);
|
|
47634
47678
|
return promise;
|
|
47635
47679
|
}
|
|
47636
47680
|
__name(readBlobAsText, "readBlobAsText");
|
|
@@ -47659,8 +47703,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47659
47703
|
function Body() {
|
|
47660
47704
|
this.bodyUsed = false;
|
|
47661
47705
|
this._initBody = function(body) {
|
|
47706
|
+
this.bodyUsed = this.bodyUsed;
|
|
47662
47707
|
this._bodyInit = body;
|
|
47663
47708
|
if (!body) {
|
|
47709
|
+
this._noBody = true;
|
|
47664
47710
|
this._bodyText = "";
|
|
47665
47711
|
} else if (typeof body === "string") {
|
|
47666
47712
|
this._bodyText = body;
|
|
@@ -47704,14 +47750,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47704
47750
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
47705
47751
|
}
|
|
47706
47752
|
};
|
|
47707
|
-
|
|
47708
|
-
|
|
47709
|
-
|
|
47753
|
+
}
|
|
47754
|
+
this.arrayBuffer = function() {
|
|
47755
|
+
if (this._bodyArrayBuffer) {
|
|
47756
|
+
var isConsumed = consumed(this);
|
|
47757
|
+
if (isConsumed) {
|
|
47758
|
+
return isConsumed;
|
|
47759
|
+
} else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
|
|
47760
|
+
return Promise.resolve(
|
|
47761
|
+
this._bodyArrayBuffer.buffer.slice(
|
|
47762
|
+
this._bodyArrayBuffer.byteOffset,
|
|
47763
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
47764
|
+
)
|
|
47765
|
+
);
|
|
47710
47766
|
} else {
|
|
47711
|
-
return
|
|
47767
|
+
return Promise.resolve(this._bodyArrayBuffer);
|
|
47712
47768
|
}
|
|
47713
|
-
}
|
|
47714
|
-
|
|
47769
|
+
} else if (support.blob) {
|
|
47770
|
+
return this.blob().then(readBlobAsArrayBuffer);
|
|
47771
|
+
} else {
|
|
47772
|
+
throw new Error("could not read as ArrayBuffer");
|
|
47773
|
+
}
|
|
47774
|
+
};
|
|
47715
47775
|
this.text = function() {
|
|
47716
47776
|
var rejected = consumed(this);
|
|
47717
47777
|
if (rejected) {
|
|
@@ -47739,7 +47799,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47739
47799
|
}
|
|
47740
47800
|
__name(Body, "Body");
|
|
47741
47801
|
__name3(Body, "Body");
|
|
47742
|
-
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
47802
|
+
var methods = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
47743
47803
|
function normalizeMethod(method) {
|
|
47744
47804
|
var upcased = method.toUpperCase();
|
|
47745
47805
|
return methods.indexOf(upcased) > -1 ? upcased : method;
|
|
@@ -47747,6 +47807,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47747
47807
|
__name(normalizeMethod, "normalizeMethod");
|
|
47748
47808
|
__name3(normalizeMethod, "normalizeMethod");
|
|
47749
47809
|
function Request(input, options) {
|
|
47810
|
+
if (!(this instanceof Request)) {
|
|
47811
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
47812
|
+
}
|
|
47750
47813
|
options = options || {};
|
|
47751
47814
|
var body = options.body;
|
|
47752
47815
|
if (input instanceof Request) {
|
|
@@ -47774,12 +47837,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47774
47837
|
}
|
|
47775
47838
|
this.method = normalizeMethod(options.method || this.method || "GET");
|
|
47776
47839
|
this.mode = options.mode || this.mode || null;
|
|
47777
|
-
this.signal = options.signal || this.signal
|
|
47840
|
+
this.signal = options.signal || this.signal || function() {
|
|
47841
|
+
if ("AbortController" in g) {
|
|
47842
|
+
var ctrl = new AbortController();
|
|
47843
|
+
return ctrl.signal;
|
|
47844
|
+
}
|
|
47845
|
+
}();
|
|
47778
47846
|
this.referrer = null;
|
|
47779
47847
|
if ((this.method === "GET" || this.method === "HEAD") && body) {
|
|
47780
47848
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
47781
47849
|
}
|
|
47782
47850
|
this._initBody(body);
|
|
47851
|
+
if (this.method === "GET" || this.method === "HEAD") {
|
|
47852
|
+
if (options.cache === "no-store" || options.cache === "no-cache") {
|
|
47853
|
+
var reParamSearch = /([?&])_=[^&]*/;
|
|
47854
|
+
if (reParamSearch.test(this.url)) {
|
|
47855
|
+
this.url = this.url.replace(reParamSearch, "$1_=" + new Date().getTime());
|
|
47856
|
+
} else {
|
|
47857
|
+
var reQueryString = /\?/;
|
|
47858
|
+
this.url += (reQueryString.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
|
|
47859
|
+
}
|
|
47860
|
+
}
|
|
47861
|
+
}
|
|
47783
47862
|
}
|
|
47784
47863
|
__name(Request, "Request");
|
|
47785
47864
|
__name3(Request, "Request");
|
|
@@ -47803,12 +47882,18 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47803
47882
|
function parseHeaders(rawHeaders) {
|
|
47804
47883
|
var headers = new Headers();
|
|
47805
47884
|
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
|
|
47806
|
-
preProcessedHeaders.split(
|
|
47885
|
+
preProcessedHeaders.split("\r").map(function(header) {
|
|
47886
|
+
return header.indexOf("\n") === 0 ? header.substr(1, header.length) : header;
|
|
47887
|
+
}).forEach(function(line) {
|
|
47807
47888
|
var parts = line.split(":");
|
|
47808
47889
|
var key2 = parts.shift().trim();
|
|
47809
47890
|
if (key2) {
|
|
47810
47891
|
var value = parts.join(":").trim();
|
|
47811
|
-
|
|
47892
|
+
try {
|
|
47893
|
+
headers.append(key2, value);
|
|
47894
|
+
} catch (error) {
|
|
47895
|
+
console.warn("Response " + error.message);
|
|
47896
|
+
}
|
|
47812
47897
|
}
|
|
47813
47898
|
});
|
|
47814
47899
|
return headers;
|
|
@@ -47817,13 +47902,19 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47817
47902
|
__name3(parseHeaders, "parseHeaders");
|
|
47818
47903
|
Body.call(Request.prototype);
|
|
47819
47904
|
function Response(bodyInit, options) {
|
|
47905
|
+
if (!(this instanceof Response)) {
|
|
47906
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
47907
|
+
}
|
|
47820
47908
|
if (!options) {
|
|
47821
47909
|
options = {};
|
|
47822
47910
|
}
|
|
47823
47911
|
this.type = "default";
|
|
47824
47912
|
this.status = options.status === void 0 ? 200 : options.status;
|
|
47913
|
+
if (this.status < 200 || this.status > 599) {
|
|
47914
|
+
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
47915
|
+
}
|
|
47825
47916
|
this.ok = this.status >= 200 && this.status < 300;
|
|
47826
|
-
this.statusText =
|
|
47917
|
+
this.statusText = options.statusText === void 0 ? "" : "" + options.statusText;
|
|
47827
47918
|
this.headers = new Headers(options.headers);
|
|
47828
47919
|
this.url = options.url || "";
|
|
47829
47920
|
this._initBody(bodyInit);
|
|
@@ -47840,7 +47931,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47840
47931
|
});
|
|
47841
47932
|
};
|
|
47842
47933
|
Response.error = function() {
|
|
47843
|
-
var response = new Response(null, { status:
|
|
47934
|
+
var response = new Response(null, { status: 200, statusText: "" });
|
|
47935
|
+
response.ok = false;
|
|
47936
|
+
response.status = 0;
|
|
47844
47937
|
response.type = "error";
|
|
47845
47938
|
return response;
|
|
47846
47939
|
};
|
|
@@ -47851,7 +47944,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47851
47944
|
}
|
|
47852
47945
|
return new Response(null, { status, headers: { location: url } });
|
|
47853
47946
|
};
|
|
47854
|
-
exports2.DOMException =
|
|
47947
|
+
exports2.DOMException = g.DOMException;
|
|
47855
47948
|
try {
|
|
47856
47949
|
new exports2.DOMException();
|
|
47857
47950
|
} catch (err) {
|
|
@@ -47878,35 +47971,73 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47878
47971
|
__name3(abortXhr, "abortXhr");
|
|
47879
47972
|
xhr.onload = function() {
|
|
47880
47973
|
var options = {
|
|
47881
|
-
status: xhr.status,
|
|
47882
47974
|
statusText: xhr.statusText,
|
|
47883
47975
|
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
|
|
47884
47976
|
};
|
|
47977
|
+
if (request.url.indexOf("file://") === 0 && (xhr.status < 200 || xhr.status > 599)) {
|
|
47978
|
+
options.status = 200;
|
|
47979
|
+
} else {
|
|
47980
|
+
options.status = xhr.status;
|
|
47981
|
+
}
|
|
47885
47982
|
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
|
|
47886
47983
|
var body = "response" in xhr ? xhr.response : xhr.responseText;
|
|
47887
|
-
|
|
47984
|
+
setTimeout(function() {
|
|
47985
|
+
resolve(new Response(body, options));
|
|
47986
|
+
}, 0);
|
|
47888
47987
|
};
|
|
47889
47988
|
xhr.onerror = function() {
|
|
47890
|
-
|
|
47989
|
+
setTimeout(function() {
|
|
47990
|
+
reject(new TypeError("Network request failed"));
|
|
47991
|
+
}, 0);
|
|
47891
47992
|
};
|
|
47892
47993
|
xhr.ontimeout = function() {
|
|
47893
|
-
|
|
47994
|
+
setTimeout(function() {
|
|
47995
|
+
reject(new TypeError("Network request timed out"));
|
|
47996
|
+
}, 0);
|
|
47894
47997
|
};
|
|
47895
47998
|
xhr.onabort = function() {
|
|
47896
|
-
|
|
47999
|
+
setTimeout(function() {
|
|
48000
|
+
reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
48001
|
+
}, 0);
|
|
47897
48002
|
};
|
|
47898
|
-
|
|
48003
|
+
function fixUrl(url) {
|
|
48004
|
+
try {
|
|
48005
|
+
return url === "" && g.location.href ? g.location.href : url;
|
|
48006
|
+
} catch (e2) {
|
|
48007
|
+
return url;
|
|
48008
|
+
}
|
|
48009
|
+
}
|
|
48010
|
+
__name(fixUrl, "fixUrl");
|
|
48011
|
+
__name3(fixUrl, "fixUrl");
|
|
48012
|
+
xhr.open(request.method, fixUrl(request.url), true);
|
|
47899
48013
|
if (request.credentials === "include") {
|
|
47900
48014
|
xhr.withCredentials = true;
|
|
47901
48015
|
} else if (request.credentials === "omit") {
|
|
47902
48016
|
xhr.withCredentials = false;
|
|
47903
48017
|
}
|
|
47904
|
-
if ("responseType" in xhr
|
|
47905
|
-
|
|
48018
|
+
if ("responseType" in xhr) {
|
|
48019
|
+
if (support.blob) {
|
|
48020
|
+
xhr.responseType = "blob";
|
|
48021
|
+
} else if (support.arrayBuffer) {
|
|
48022
|
+
xhr.responseType = "arraybuffer";
|
|
48023
|
+
}
|
|
48024
|
+
}
|
|
48025
|
+
if (init2 && typeof init2.headers === "object" && !(init2.headers instanceof Headers || g.Headers && init2.headers instanceof g.Headers)) {
|
|
48026
|
+
var names = [];
|
|
48027
|
+
Object.getOwnPropertyNames(init2.headers).forEach(function(name32) {
|
|
48028
|
+
names.push(normalizeName(name32));
|
|
48029
|
+
xhr.setRequestHeader(name32, normalizeValue(init2.headers[name32]));
|
|
48030
|
+
});
|
|
48031
|
+
request.headers.forEach(function(value, name32) {
|
|
48032
|
+
if (names.indexOf(name32) === -1) {
|
|
48033
|
+
xhr.setRequestHeader(name32, value);
|
|
48034
|
+
}
|
|
48035
|
+
});
|
|
48036
|
+
} else {
|
|
48037
|
+
request.headers.forEach(function(value, name32) {
|
|
48038
|
+
xhr.setRequestHeader(name32, value);
|
|
48039
|
+
});
|
|
47906
48040
|
}
|
|
47907
|
-
request.headers.forEach(function(value, name32) {
|
|
47908
|
-
xhr.setRequestHeader(name32, value);
|
|
47909
|
-
});
|
|
47910
48041
|
if (request.signal) {
|
|
47911
48042
|
request.signal.addEventListener("abort", abortXhr);
|
|
47912
48043
|
xhr.onreadystatechange = function() {
|
|
@@ -47921,11 +48052,11 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47921
48052
|
__name(fetch2, "fetch2");
|
|
47922
48053
|
__name3(fetch2, "fetch");
|
|
47923
48054
|
fetch2.polyfill = true;
|
|
47924
|
-
if (!
|
|
47925
|
-
|
|
47926
|
-
|
|
47927
|
-
|
|
47928
|
-
|
|
48055
|
+
if (!g.fetch) {
|
|
48056
|
+
g.fetch = fetch2;
|
|
48057
|
+
g.Headers = Headers;
|
|
48058
|
+
g.Request = Request;
|
|
48059
|
+
g.Response = Response;
|
|
47929
48060
|
}
|
|
47930
48061
|
exports2.Headers = Headers;
|
|
47931
48062
|
exports2.Request = Request;
|
|
@@ -47934,10 +48065,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47934
48065
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
47935
48066
|
return exports2;
|
|
47936
48067
|
}({});
|
|
47937
|
-
})(
|
|
47938
|
-
|
|
47939
|
-
delete
|
|
47940
|
-
var ctx =
|
|
48068
|
+
})(__globalThis__);
|
|
48069
|
+
__globalThis__.fetch.ponyfill = true;
|
|
48070
|
+
delete __globalThis__.fetch.polyfill;
|
|
48071
|
+
var ctx = __global__.fetch ? __global__ : __globalThis__;
|
|
47941
48072
|
exports = ctx.fetch;
|
|
47942
48073
|
exports.default = ctx.fetch;
|
|
47943
48074
|
exports.fetch = ctx.fetch;
|
|
@@ -47948,7 +48079,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47948
48079
|
}
|
|
47949
48080
|
});
|
|
47950
48081
|
var require_dataloader2 = __commonJS2({
|
|
47951
|
-
"../../../node_modules/.pnpm/dataloader@2.2.
|
|
48082
|
+
"../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module2) {
|
|
47952
48083
|
"use strict";
|
|
47953
48084
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
47954
48085
|
function DataLoader3(batchLoadFn, options) {
|
|
@@ -47972,8 +48103,9 @@ var require_dataloader2 = __commonJS2({
|
|
|
47972
48103
|
}
|
|
47973
48104
|
var batch = getCurrentBatch(this);
|
|
47974
48105
|
var cacheMap = this._cacheMap;
|
|
47975
|
-
var cacheKey
|
|
48106
|
+
var cacheKey;
|
|
47976
48107
|
if (cacheMap) {
|
|
48108
|
+
cacheKey = this._cacheKeyFn(key2);
|
|
47977
48109
|
var cachedPromise = cacheMap.get(cacheKey);
|
|
47978
48110
|
if (cachedPromise) {
|
|
47979
48111
|
var cacheHits = batch.cacheHits || (batch.cacheHits = []);
|
|
@@ -48098,11 +48230,11 @@ var require_dataloader2 = __commonJS2({
|
|
|
48098
48230
|
}
|
|
48099
48231
|
resolveCacheHits(batch);
|
|
48100
48232
|
for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
|
|
48101
|
-
var
|
|
48102
|
-
if (
|
|
48103
|
-
batch.callbacks[i2].reject(
|
|
48233
|
+
var _value = values[i2];
|
|
48234
|
+
if (_value instanceof Error) {
|
|
48235
|
+
batch.callbacks[i2].reject(_value);
|
|
48104
48236
|
} else {
|
|
48105
|
-
batch.callbacks[i2].resolve(
|
|
48237
|
+
batch.callbacks[i2].resolve(_value);
|
|
48106
48238
|
}
|
|
48107
48239
|
}
|
|
48108
48240
|
})["catch"](function(error) {
|
|
@@ -53591,7 +53723,7 @@ function verifyTimeChecks(cacao, options) {
|
|
|
53591
53723
|
}
|
|
53592
53724
|
__name(verifyTimeChecks, "verifyTimeChecks");
|
|
53593
53725
|
__name3(verifyTimeChecks, "verifyTimeChecks");
|
|
53594
|
-
var version22 = "logger/5.
|
|
53726
|
+
var version22 = "logger/5.8.0";
|
|
53595
53727
|
var _permanentCensorErrors = false;
|
|
53596
53728
|
var _censorErrors = false;
|
|
53597
53729
|
var LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
|
|
@@ -53881,7 +54013,7 @@ var Logger = /* @__PURE__ */ __name(class {
|
|
|
53881
54013
|
__name3(Logger, "Logger");
|
|
53882
54014
|
Logger.errors = ErrorCode;
|
|
53883
54015
|
Logger.levels = LogLevel;
|
|
53884
|
-
var version3 = "bytes/5.
|
|
54016
|
+
var version3 = "bytes/5.8.0";
|
|
53885
54017
|
var logger = new Logger(version3);
|
|
53886
54018
|
function isHexable(value) {
|
|
53887
54019
|
return !!value.toHexString;
|
|
@@ -54224,7 +54356,7 @@ function splitSignature(signature2) {
|
|
|
54224
54356
|
__name(splitSignature, "splitSignature");
|
|
54225
54357
|
__name3(splitSignature, "splitSignature");
|
|
54226
54358
|
var import_bn = __toESM2(require_bn2());
|
|
54227
|
-
var version4 = "bignumber/5.
|
|
54359
|
+
var version4 = "bignumber/5.8.0";
|
|
54228
54360
|
var BN = import_bn.default.BN;
|
|
54229
54361
|
var logger2 = new Logger(version4);
|
|
54230
54362
|
function _base36To16(value) {
|
|
@@ -54238,7 +54370,7 @@ function keccak256(data) {
|
|
|
54238
54370
|
}
|
|
54239
54371
|
__name(keccak256, "keccak256");
|
|
54240
54372
|
__name3(keccak256, "keccak256");
|
|
54241
|
-
var version5 = "address/5.
|
|
54373
|
+
var version5 = "address/5.8.0";
|
|
54242
54374
|
var logger3 = new Logger(version5);
|
|
54243
54375
|
function getChecksumAddress(address) {
|
|
54244
54376
|
if (!isHexString(address, 20)) {
|
|
@@ -54327,7 +54459,7 @@ function getAddress(address) {
|
|
|
54327
54459
|
}
|
|
54328
54460
|
__name(getAddress, "getAddress");
|
|
54329
54461
|
__name3(getAddress, "getAddress");
|
|
54330
|
-
var version6 = "properties/5.
|
|
54462
|
+
var version6 = "properties/5.8.0";
|
|
54331
54463
|
var logger4 = new Logger(version6);
|
|
54332
54464
|
function defineReadOnly(object, name32, value) {
|
|
54333
54465
|
Object.defineProperty(object, name32, {
|
|
@@ -54338,7 +54470,7 @@ function defineReadOnly(object, name32, value) {
|
|
|
54338
54470
|
}
|
|
54339
54471
|
__name(defineReadOnly, "defineReadOnly");
|
|
54340
54472
|
__name3(defineReadOnly, "defineReadOnly");
|
|
54341
|
-
var version7 = "strings/5.
|
|
54473
|
+
var version7 = "strings/5.8.0";
|
|
54342
54474
|
var logger5 = new Logger(version7);
|
|
54343
54475
|
var UnicodeNormalizationForm;
|
|
54344
54476
|
(function(UnicodeNormalizationForm2) {
|
|
@@ -54543,10 +54675,13 @@ var utils_1$1 = createCommonjsModule(function(module2, exports) {
|
|
|
54543
54675
|
utils.encode = utils_1.encode;
|
|
54544
54676
|
function getNAF2(num, w, bits) {
|
|
54545
54677
|
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
|
|
54546
|
-
|
|
54678
|
+
var i2;
|
|
54679
|
+
for (i2 = 0; i2 < naf.length; i2 += 1) {
|
|
54680
|
+
naf[i2] = 0;
|
|
54681
|
+
}
|
|
54547
54682
|
var ws = 1 << w + 1;
|
|
54548
54683
|
var k = num.clone();
|
|
54549
|
-
for (
|
|
54684
|
+
for (i2 = 0; i2 < naf.length; i2++) {
|
|
54550
54685
|
var z;
|
|
54551
54686
|
var mod22 = k.andln(ws - 1);
|
|
54552
54687
|
if (k.isOdd()) {
|
|
@@ -56011,8 +56146,8 @@ KeyPair.prototype.derive = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functi
|
|
|
56011
56146
|
KeyPair.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign2(msg, enc, options) {
|
|
56012
56147
|
return this.ec.sign(msg, this, enc, options);
|
|
56013
56148
|
}, "sign2"), "sign");
|
|
56014
|
-
KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2) {
|
|
56015
|
-
return this.ec.verify(msg, signature2, this);
|
|
56149
|
+
KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2, options) {
|
|
56150
|
+
return this.ec.verify(msg, signature2, this, void 0, options);
|
|
56016
56151
|
}, "verify2"), "verify");
|
|
56017
56152
|
KeyPair.prototype.inspect = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function inspect3() {
|
|
56018
56153
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
@@ -56048,6 +56183,9 @@ function getLength(buf22, p) {
|
|
|
56048
56183
|
if (octetLen === 0 || octetLen > 4) {
|
|
56049
56184
|
return false;
|
|
56050
56185
|
}
|
|
56186
|
+
if (buf22[p.place] === 0) {
|
|
56187
|
+
return false;
|
|
56188
|
+
}
|
|
56051
56189
|
var val = 0;
|
|
56052
56190
|
for (var i2 = 0, off = p.place; i2 < octetLen; i2++, off++) {
|
|
56053
56191
|
val <<= 8;
|
|
@@ -56095,6 +56233,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56095
56233
|
if (rlen === false) {
|
|
56096
56234
|
return false;
|
|
56097
56235
|
}
|
|
56236
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56237
|
+
return false;
|
|
56238
|
+
}
|
|
56098
56239
|
var r2 = data.slice(p.place, rlen + p.place);
|
|
56099
56240
|
p.place += rlen;
|
|
56100
56241
|
if (data[p.place++] !== 2) {
|
|
@@ -56107,6 +56248,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56107
56248
|
if (data.length !== slen + p.place) {
|
|
56108
56249
|
return false;
|
|
56109
56250
|
}
|
|
56251
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56252
|
+
return false;
|
|
56253
|
+
}
|
|
56110
56254
|
var s2 = data.slice(p.place, slen + p.place);
|
|
56111
56255
|
if (r2[0] === 0) {
|
|
56112
56256
|
if (r2[1] & 128) {
|
|
@@ -56221,8 +56365,23 @@ EC.prototype.genKeyPair = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functio
|
|
|
56221
56365
|
return this.keyFromPrivate(priv);
|
|
56222
56366
|
}
|
|
56223
56367
|
}, "genKeyPair"), "genKeyPair");
|
|
56224
|
-
EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly) {
|
|
56225
|
-
var
|
|
56368
|
+
EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly, bitLength) {
|
|
56369
|
+
var byteLength;
|
|
56370
|
+
if (import_bn2.default.isBN(msg) || typeof msg === "number") {
|
|
56371
|
+
msg = new import_bn2.default(msg, 16);
|
|
56372
|
+
byteLength = msg.byteLength();
|
|
56373
|
+
} else if (typeof msg === "object") {
|
|
56374
|
+
byteLength = msg.length;
|
|
56375
|
+
msg = new import_bn2.default(msg, 16);
|
|
56376
|
+
} else {
|
|
56377
|
+
var str = msg.toString();
|
|
56378
|
+
byteLength = str.length + 1 >>> 1;
|
|
56379
|
+
msg = new import_bn2.default(str, 16);
|
|
56380
|
+
}
|
|
56381
|
+
if (typeof bitLength !== "number") {
|
|
56382
|
+
bitLength = byteLength * 8;
|
|
56383
|
+
}
|
|
56384
|
+
var delta = bitLength - this.n.bitLength();
|
|
56226
56385
|
if (delta > 0)
|
|
56227
56386
|
msg = msg.ushrn(delta);
|
|
56228
56387
|
if (!truncOnly && msg.cmp(this.n) >= 0)
|
|
@@ -56237,11 +56396,22 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56237
56396
|
}
|
|
56238
56397
|
if (!options)
|
|
56239
56398
|
options = {};
|
|
56399
|
+
if (typeof msg !== "string" && typeof msg !== "number" && !import_bn2.default.isBN(msg)) {
|
|
56400
|
+
assert$5(
|
|
56401
|
+
typeof msg === "object" && msg && typeof msg.length === "number",
|
|
56402
|
+
"Expected message to be an array-like, a hex string, or a BN instance"
|
|
56403
|
+
);
|
|
56404
|
+
assert$5(msg.length >>> 0 === msg.length);
|
|
56405
|
+
for (var i2 = 0; i2 < msg.length; i2++)
|
|
56406
|
+
assert$5((msg[i2] & 255) === msg[i2]);
|
|
56407
|
+
}
|
|
56240
56408
|
key2 = this.keyFromPrivate(key2, enc);
|
|
56241
|
-
msg = this._truncateToN(
|
|
56409
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
56410
|
+
assert$5(!msg.isNeg(), "Can not sign a negative message");
|
|
56242
56411
|
var bytes = this.n.byteLength();
|
|
56243
56412
|
var bkey = key2.getPrivate().toArray("be", bytes);
|
|
56244
56413
|
var nonce = msg.toArray("be", bytes);
|
|
56414
|
+
assert$5(new import_bn2.default(nonce).eq(msg), "Can not sign message");
|
|
56245
56415
|
var drbg = new hmacDrbg({
|
|
56246
56416
|
hash: this.hash,
|
|
56247
56417
|
entropy: bkey,
|
|
@@ -56274,8 +56444,10 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56274
56444
|
return new signature({ r: r2, s: s2, recoveryParam });
|
|
56275
56445
|
}
|
|
56276
56446
|
}, "sign3"), "sign");
|
|
56277
|
-
EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc) {
|
|
56278
|
-
|
|
56447
|
+
EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc, options) {
|
|
56448
|
+
if (!options)
|
|
56449
|
+
options = {};
|
|
56450
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
56279
56451
|
key2 = this.keyFromPublic(key2, enc);
|
|
56280
56452
|
signature$1 = new signature(signature$1, "hex");
|
|
56281
56453
|
var r2 = signature$1.r;
|
|
@@ -56338,7 +56510,7 @@ EC.prototype.getKeyRecoveryParam = function(e2, signature$1, Q, enc) {
|
|
|
56338
56510
|
var elliptic_1 = createCommonjsModule(function(module2, exports) {
|
|
56339
56511
|
"use strict";
|
|
56340
56512
|
var elliptic = exports;
|
|
56341
|
-
elliptic.version = { version: "6.
|
|
56513
|
+
elliptic.version = { version: "6.6.1" }.version;
|
|
56342
56514
|
elliptic.utils = utils_1$1;
|
|
56343
56515
|
elliptic.rand = function() {
|
|
56344
56516
|
throw new Error("unsupported");
|
|
@@ -56349,7 +56521,7 @@ var elliptic_1 = createCommonjsModule(function(module2, exports) {
|
|
|
56349
56521
|
elliptic.eddsa = null;
|
|
56350
56522
|
});
|
|
56351
56523
|
var EC$1 = elliptic_1.ec;
|
|
56352
|
-
var version8 = "signing-key/5.
|
|
56524
|
+
var version8 = "signing-key/5.8.0";
|
|
56353
56525
|
var logger6 = new Logger(version8);
|
|
56354
56526
|
var _curve = null;
|
|
56355
56527
|
function getCurve() {
|
|
@@ -56430,7 +56602,7 @@ function computePublicKey(key2, compressed) {
|
|
|
56430
56602
|
}
|
|
56431
56603
|
__name(computePublicKey, "computePublicKey");
|
|
56432
56604
|
__name3(computePublicKey, "computePublicKey");
|
|
56433
|
-
var version9 = "transactions/5.
|
|
56605
|
+
var version9 = "transactions/5.8.0";
|
|
56434
56606
|
var logger7 = new Logger(version9);
|
|
56435
56607
|
var TransactionTypes;
|
|
56436
56608
|
(function(TransactionTypes2) {
|
|
@@ -56449,7 +56621,7 @@ function recoverAddress(digest22, signature2) {
|
|
|
56449
56621
|
}
|
|
56450
56622
|
__name(recoverAddress, "recoverAddress");
|
|
56451
56623
|
__name3(recoverAddress, "recoverAddress");
|
|
56452
|
-
var version10 = "wallet/5.
|
|
56624
|
+
var version10 = "wallet/5.8.0";
|
|
56453
56625
|
var logger8 = new Logger(version10);
|
|
56454
56626
|
function verifyMessage(message, signature2) {
|
|
56455
56627
|
return recoverAddress(hashMessage(message), signature2);
|
|
@@ -66380,6 +66552,13 @@ var LCNSigningAuthorityForUserValidator2 = mod2.object({
|
|
|
66380
66552
|
did: mod2.string()
|
|
66381
66553
|
})
|
|
66382
66554
|
});
|
|
66555
|
+
var AutoBoostConfigValidator2 = mod2.object({
|
|
66556
|
+
boostUri: mod2.string(),
|
|
66557
|
+
signingAuthority: mod2.object({
|
|
66558
|
+
endpoint: mod2.string(),
|
|
66559
|
+
name: mod2.string()
|
|
66560
|
+
})
|
|
66561
|
+
});
|
|
66383
66562
|
var ConsentFlowTermsStatusValidator2 = mod2.enum(["live", "stale", "withdrawn"]);
|
|
66384
66563
|
var ConsentFlowContractValidator2 = mod2.object({
|
|
66385
66564
|
read: mod2.object({
|
|
@@ -66403,6 +66582,7 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
66403
66582
|
uri: mod2.string(),
|
|
66404
66583
|
needsGuardianConsent: mod2.boolean().optional(),
|
|
66405
66584
|
redirectUrl: mod2.string().optional(),
|
|
66585
|
+
frontDoorBoostUri: mod2.string().optional(),
|
|
66406
66586
|
createdAt: mod2.string(),
|
|
66407
66587
|
updatedAt: mod2.string(),
|
|
66408
66588
|
expiresAt: mod2.string().optional()
|
|
@@ -66418,6 +66598,15 @@ var ConsentFlowContractDataValidator2 = mod2.object({
|
|
|
66418
66598
|
var PaginatedConsentFlowDataValidator2 = PaginationResponseValidator2.extend({
|
|
66419
66599
|
records: ConsentFlowContractDataValidator2.array()
|
|
66420
66600
|
});
|
|
66601
|
+
var ConsentFlowContractDataForDidValidator2 = mod2.object({
|
|
66602
|
+
credentials: mod2.object({ category: mod2.string(), uri: mod2.string() }).array(),
|
|
66603
|
+
personal: mod2.record(mod2.string()).default({}),
|
|
66604
|
+
date: mod2.string(),
|
|
66605
|
+
contractUri: mod2.string()
|
|
66606
|
+
});
|
|
66607
|
+
var PaginatedConsentFlowDataForDidValidator2 = PaginationResponseValidator2.extend({
|
|
66608
|
+
records: ConsentFlowContractDataForDidValidator2.array()
|
|
66609
|
+
});
|
|
66421
66610
|
var ConsentFlowTermValidator2 = mod2.object({
|
|
66422
66611
|
sharing: mod2.boolean().optional(),
|
|
66423
66612
|
shared: mod2.string().array().optional(),
|
|
@@ -66470,6 +66659,11 @@ var ConsentFlowDataQueryValidator2 = mod2.object({
|
|
|
66470
66659
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).optional() }).optional(),
|
|
66471
66660
|
personal: mod2.record(mod2.boolean()).optional()
|
|
66472
66661
|
});
|
|
66662
|
+
var ConsentFlowDataForDidQueryValidator2 = mod2.object({
|
|
66663
|
+
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).optional() }).optional(),
|
|
66664
|
+
personal: mod2.record(mod2.boolean()).optional(),
|
|
66665
|
+
id: StringQuery2.optional()
|
|
66666
|
+
});
|
|
66473
66667
|
var ConsentFlowTermsQueryValidator2 = mod2.object({
|
|
66474
66668
|
read: mod2.object({
|
|
66475
66669
|
anonymize: mod2.boolean().optional(),
|
|
@@ -66489,7 +66683,8 @@ var ConsentFlowTransactionActionValidator2 = mod2.enum([
|
|
|
66489
66683
|
"consent",
|
|
66490
66684
|
"update",
|
|
66491
66685
|
"sync",
|
|
66492
|
-
"withdraw"
|
|
66686
|
+
"withdraw",
|
|
66687
|
+
"write"
|
|
66493
66688
|
]);
|
|
66494
66689
|
var ConsentFlowTransactionsQueryValidator2 = mod2.object({
|
|
66495
66690
|
terms: ConsentFlowTermsQueryValidator2.optional(),
|
|
@@ -66506,11 +66701,23 @@ var ConsentFlowTransactionValidator2 = mod2.object({
|
|
|
66506
66701
|
terms: ConsentFlowTermsValidator2.optional(),
|
|
66507
66702
|
id: mod2.string(),
|
|
66508
66703
|
action: ConsentFlowTransactionActionValidator2,
|
|
66509
|
-
date: mod2.string()
|
|
66704
|
+
date: mod2.string(),
|
|
66705
|
+
uris: mod2.string().array().optional()
|
|
66510
66706
|
});
|
|
66511
66707
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
66512
66708
|
records: ConsentFlowTransactionValidator2.array()
|
|
66513
66709
|
});
|
|
66710
|
+
var ContractCredentialValidator2 = mod2.object({
|
|
66711
|
+
credentialUri: mod2.string(),
|
|
66712
|
+
termsUri: mod2.string(),
|
|
66713
|
+
contractUri: mod2.string(),
|
|
66714
|
+
boostUri: mod2.string(),
|
|
66715
|
+
category: mod2.string().optional(),
|
|
66716
|
+
date: mod2.string()
|
|
66717
|
+
});
|
|
66718
|
+
var PaginatedContractCredentialsValidator2 = PaginationResponseValidator2.extend({
|
|
66719
|
+
records: ContractCredentialValidator2.array()
|
|
66720
|
+
});
|
|
66514
66721
|
var LCNNotificationTypeEnumValidator2 = mod2.enum([
|
|
66515
66722
|
"CONNECTION_REQUEST",
|
|
66516
66723
|
"CONNECTION_ACCEPTED",
|
|
@@ -66557,8 +66764,23 @@ var BackwardsCompatCredentialsListValidator = mod.object({
|
|
|
66557
66764
|
credentials: CredentialRecordValidator.or(BackwardsCompatIDXCredentialValidator).array()
|
|
66558
66765
|
}).strict();
|
|
66559
66766
|
|
|
66767
|
+
// src/defaults.ts
|
|
66768
|
+
var DEFAULT_IDX_ARGS = {
|
|
66769
|
+
modelData: {
|
|
66770
|
+
definitions: {
|
|
66771
|
+
MyVerifiableCredentials: "kjzl6cwe1jw14am5tu5hh412s19o4zm8aq3g2lpd6s4paxj2nly2lj4drp3pun2"
|
|
66772
|
+
},
|
|
66773
|
+
schemas: {
|
|
66774
|
+
AchievementVerifiableCredential: "ceramic://k3y52l7qbv1frylibw2725v8gem3hxs1onoh6pvux0szdduugczh0hddxo6qsd6o0",
|
|
66775
|
+
VerifiableCredentialsList: "ceramic://k3y52l7qbv1frxkcwfpyauky3fyl4n44izridy3blvjjzgftis40sk9w8g3remghs"
|
|
66776
|
+
},
|
|
66777
|
+
tiles: {}
|
|
66778
|
+
},
|
|
66779
|
+
credentialAlias: "MyVerifiableCredentials"
|
|
66780
|
+
};
|
|
66781
|
+
|
|
66560
66782
|
// src/idx.ts
|
|
66561
|
-
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias }) => {
|
|
66783
|
+
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias } = DEFAULT_IDX_ARGS) => {
|
|
66562
66784
|
const ceramic = learnCard.invoke.getCeramicClient();
|
|
66563
66785
|
const dataStore = new DIDDataStore({ ceramic, model: modelData });
|
|
66564
66786
|
const getCredentialsListFromIdx = /* @__PURE__ */ __name(async (alias = credentialAlias) => {
|