@learncard/idx-plugin 1.0.30 → 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 +248 -96
- package/dist/idx-plugin.cjs.development.js.map +4 -4
- package/dist/idx-plugin.cjs.production.min.js +99 -98
- package/dist/idx-plugin.cjs.production.min.js.map +4 -4
- package/dist/idx-plugin.esm.js +248 -96
- 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 +3 -3
|
@@ -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) {
|
|
@@ -47482,24 +47483,25 @@ var require_lodash22 = __commonJS2({
|
|
|
47482
47483
|
}
|
|
47483
47484
|
});
|
|
47484
47485
|
var require_browser_ponyfill = __commonJS2({
|
|
47485
|
-
"../../../node_modules/.pnpm/cross-fetch@3.
|
|
47486
|
-
var
|
|
47487
|
-
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() {
|
|
47488
47489
|
function F() {
|
|
47489
47490
|
this.fetch = false;
|
|
47490
|
-
this.DOMException =
|
|
47491
|
+
this.DOMException = __global__.DOMException;
|
|
47491
47492
|
}
|
|
47492
47493
|
__name(F, "F");
|
|
47493
47494
|
__name3(F, "F");
|
|
47494
|
-
F.prototype =
|
|
47495
|
+
F.prototype = __global__;
|
|
47495
47496
|
return new F();
|
|
47496
47497
|
}();
|
|
47497
|
-
(function(
|
|
47498
|
+
(function(globalThis2) {
|
|
47498
47499
|
var irrelevant = function(exports2) {
|
|
47500
|
+
var g = typeof globalThis2 !== "undefined" && globalThis2 || typeof self !== "undefined" && self || typeof global !== "undefined" && global || {};
|
|
47499
47501
|
var support = {
|
|
47500
|
-
searchParams: "URLSearchParams" in
|
|
47501
|
-
iterable: "Symbol" in
|
|
47502
|
-
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() {
|
|
47503
47505
|
try {
|
|
47504
47506
|
new Blob();
|
|
47505
47507
|
return true;
|
|
@@ -47507,8 +47509,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47507
47509
|
return false;
|
|
47508
47510
|
}
|
|
47509
47511
|
}(),
|
|
47510
|
-
formData: "FormData" in
|
|
47511
|
-
arrayBuffer: "ArrayBuffer" in
|
|
47512
|
+
formData: "FormData" in g,
|
|
47513
|
+
arrayBuffer: "ArrayBuffer" in g
|
|
47512
47514
|
};
|
|
47513
47515
|
function isDataView(obj) {
|
|
47514
47516
|
return obj && DataView.prototype.isPrototypeOf(obj);
|
|
@@ -47535,8 +47537,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47535
47537
|
if (typeof name32 !== "string") {
|
|
47536
47538
|
name32 = String(name32);
|
|
47537
47539
|
}
|
|
47538
|
-
if (/[^a-z0-9\-#$%&'*+.^_
|
|
47539
|
-
throw new TypeError(
|
|
47540
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name32) || name32 === "") {
|
|
47541
|
+
throw new TypeError('Invalid character in header field name: "' + name32 + '"');
|
|
47540
47542
|
}
|
|
47541
47543
|
return name32.toLowerCase();
|
|
47542
47544
|
}
|
|
@@ -47574,6 +47576,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47574
47576
|
}, this);
|
|
47575
47577
|
} else if (Array.isArray(headers)) {
|
|
47576
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
|
+
}
|
|
47577
47582
|
this.append(header[0], header[1]);
|
|
47578
47583
|
}, this);
|
|
47579
47584
|
} else if (headers) {
|
|
@@ -47635,6 +47640,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47635
47640
|
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
47636
47641
|
}
|
|
47637
47642
|
function consumed(body) {
|
|
47643
|
+
if (body._noBody)
|
|
47644
|
+
return;
|
|
47638
47645
|
if (body.bodyUsed) {
|
|
47639
47646
|
return Promise.reject(new TypeError("Already read"));
|
|
47640
47647
|
}
|
|
@@ -47665,7 +47672,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47665
47672
|
function readBlobAsText(blob) {
|
|
47666
47673
|
var reader = new FileReader();
|
|
47667
47674
|
var promise = fileReaderReady(reader);
|
|
47668
|
-
|
|
47675
|
+
var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
|
|
47676
|
+
var encoding = match ? match[1] : "utf-8";
|
|
47677
|
+
reader.readAsText(blob, encoding);
|
|
47669
47678
|
return promise;
|
|
47670
47679
|
}
|
|
47671
47680
|
__name(readBlobAsText, "readBlobAsText");
|
|
@@ -47694,8 +47703,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47694
47703
|
function Body() {
|
|
47695
47704
|
this.bodyUsed = false;
|
|
47696
47705
|
this._initBody = function(body) {
|
|
47706
|
+
this.bodyUsed = this.bodyUsed;
|
|
47697
47707
|
this._bodyInit = body;
|
|
47698
47708
|
if (!body) {
|
|
47709
|
+
this._noBody = true;
|
|
47699
47710
|
this._bodyText = "";
|
|
47700
47711
|
} else if (typeof body === "string") {
|
|
47701
47712
|
this._bodyText = body;
|
|
@@ -47739,14 +47750,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47739
47750
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
47740
47751
|
}
|
|
47741
47752
|
};
|
|
47742
|
-
|
|
47743
|
-
|
|
47744
|
-
|
|
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
|
+
);
|
|
47745
47766
|
} else {
|
|
47746
|
-
return
|
|
47767
|
+
return Promise.resolve(this._bodyArrayBuffer);
|
|
47747
47768
|
}
|
|
47748
|
-
}
|
|
47749
|
-
|
|
47769
|
+
} else if (support.blob) {
|
|
47770
|
+
return this.blob().then(readBlobAsArrayBuffer);
|
|
47771
|
+
} else {
|
|
47772
|
+
throw new Error("could not read as ArrayBuffer");
|
|
47773
|
+
}
|
|
47774
|
+
};
|
|
47750
47775
|
this.text = function() {
|
|
47751
47776
|
var rejected = consumed(this);
|
|
47752
47777
|
if (rejected) {
|
|
@@ -47774,7 +47799,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47774
47799
|
}
|
|
47775
47800
|
__name(Body, "Body");
|
|
47776
47801
|
__name3(Body, "Body");
|
|
47777
|
-
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
47802
|
+
var methods = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
47778
47803
|
function normalizeMethod(method) {
|
|
47779
47804
|
var upcased = method.toUpperCase();
|
|
47780
47805
|
return methods.indexOf(upcased) > -1 ? upcased : method;
|
|
@@ -47782,6 +47807,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47782
47807
|
__name(normalizeMethod, "normalizeMethod");
|
|
47783
47808
|
__name3(normalizeMethod, "normalizeMethod");
|
|
47784
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
|
+
}
|
|
47785
47813
|
options = options || {};
|
|
47786
47814
|
var body = options.body;
|
|
47787
47815
|
if (input instanceof Request) {
|
|
@@ -47809,12 +47837,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47809
47837
|
}
|
|
47810
47838
|
this.method = normalizeMethod(options.method || this.method || "GET");
|
|
47811
47839
|
this.mode = options.mode || this.mode || null;
|
|
47812
|
-
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
|
+
}();
|
|
47813
47846
|
this.referrer = null;
|
|
47814
47847
|
if ((this.method === "GET" || this.method === "HEAD") && body) {
|
|
47815
47848
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
47816
47849
|
}
|
|
47817
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
|
+
}
|
|
47818
47862
|
}
|
|
47819
47863
|
__name(Request, "Request");
|
|
47820
47864
|
__name3(Request, "Request");
|
|
@@ -47838,12 +47882,18 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47838
47882
|
function parseHeaders(rawHeaders) {
|
|
47839
47883
|
var headers = new Headers();
|
|
47840
47884
|
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
|
|
47841
|
-
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) {
|
|
47842
47888
|
var parts = line.split(":");
|
|
47843
47889
|
var key2 = parts.shift().trim();
|
|
47844
47890
|
if (key2) {
|
|
47845
47891
|
var value = parts.join(":").trim();
|
|
47846
|
-
|
|
47892
|
+
try {
|
|
47893
|
+
headers.append(key2, value);
|
|
47894
|
+
} catch (error) {
|
|
47895
|
+
console.warn("Response " + error.message);
|
|
47896
|
+
}
|
|
47847
47897
|
}
|
|
47848
47898
|
});
|
|
47849
47899
|
return headers;
|
|
@@ -47852,13 +47902,19 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47852
47902
|
__name3(parseHeaders, "parseHeaders");
|
|
47853
47903
|
Body.call(Request.prototype);
|
|
47854
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
|
+
}
|
|
47855
47908
|
if (!options) {
|
|
47856
47909
|
options = {};
|
|
47857
47910
|
}
|
|
47858
47911
|
this.type = "default";
|
|
47859
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
|
+
}
|
|
47860
47916
|
this.ok = this.status >= 200 && this.status < 300;
|
|
47861
|
-
this.statusText =
|
|
47917
|
+
this.statusText = options.statusText === void 0 ? "" : "" + options.statusText;
|
|
47862
47918
|
this.headers = new Headers(options.headers);
|
|
47863
47919
|
this.url = options.url || "";
|
|
47864
47920
|
this._initBody(bodyInit);
|
|
@@ -47875,7 +47931,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47875
47931
|
});
|
|
47876
47932
|
};
|
|
47877
47933
|
Response.error = function() {
|
|
47878
|
-
var response = new Response(null, { status:
|
|
47934
|
+
var response = new Response(null, { status: 200, statusText: "" });
|
|
47935
|
+
response.ok = false;
|
|
47936
|
+
response.status = 0;
|
|
47879
47937
|
response.type = "error";
|
|
47880
47938
|
return response;
|
|
47881
47939
|
};
|
|
@@ -47886,7 +47944,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47886
47944
|
}
|
|
47887
47945
|
return new Response(null, { status, headers: { location: url } });
|
|
47888
47946
|
};
|
|
47889
|
-
exports2.DOMException =
|
|
47947
|
+
exports2.DOMException = g.DOMException;
|
|
47890
47948
|
try {
|
|
47891
47949
|
new exports2.DOMException();
|
|
47892
47950
|
} catch (err) {
|
|
@@ -47913,35 +47971,73 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47913
47971
|
__name3(abortXhr, "abortXhr");
|
|
47914
47972
|
xhr.onload = function() {
|
|
47915
47973
|
var options = {
|
|
47916
|
-
status: xhr.status,
|
|
47917
47974
|
statusText: xhr.statusText,
|
|
47918
47975
|
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
|
|
47919
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
|
+
}
|
|
47920
47982
|
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
|
|
47921
47983
|
var body = "response" in xhr ? xhr.response : xhr.responseText;
|
|
47922
|
-
|
|
47984
|
+
setTimeout(function() {
|
|
47985
|
+
resolve(new Response(body, options));
|
|
47986
|
+
}, 0);
|
|
47923
47987
|
};
|
|
47924
47988
|
xhr.onerror = function() {
|
|
47925
|
-
|
|
47989
|
+
setTimeout(function() {
|
|
47990
|
+
reject(new TypeError("Network request failed"));
|
|
47991
|
+
}, 0);
|
|
47926
47992
|
};
|
|
47927
47993
|
xhr.ontimeout = function() {
|
|
47928
|
-
|
|
47994
|
+
setTimeout(function() {
|
|
47995
|
+
reject(new TypeError("Network request timed out"));
|
|
47996
|
+
}, 0);
|
|
47929
47997
|
};
|
|
47930
47998
|
xhr.onabort = function() {
|
|
47931
|
-
|
|
47999
|
+
setTimeout(function() {
|
|
48000
|
+
reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
48001
|
+
}, 0);
|
|
47932
48002
|
};
|
|
47933
|
-
|
|
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);
|
|
47934
48013
|
if (request.credentials === "include") {
|
|
47935
48014
|
xhr.withCredentials = true;
|
|
47936
48015
|
} else if (request.credentials === "omit") {
|
|
47937
48016
|
xhr.withCredentials = false;
|
|
47938
48017
|
}
|
|
47939
|
-
if ("responseType" in xhr
|
|
47940
|
-
|
|
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
|
+
});
|
|
47941
48040
|
}
|
|
47942
|
-
request.headers.forEach(function(value, name32) {
|
|
47943
|
-
xhr.setRequestHeader(name32, value);
|
|
47944
|
-
});
|
|
47945
48041
|
if (request.signal) {
|
|
47946
48042
|
request.signal.addEventListener("abort", abortXhr);
|
|
47947
48043
|
xhr.onreadystatechange = function() {
|
|
@@ -47956,11 +48052,11 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47956
48052
|
__name(fetch2, "fetch2");
|
|
47957
48053
|
__name3(fetch2, "fetch");
|
|
47958
48054
|
fetch2.polyfill = true;
|
|
47959
|
-
if (!
|
|
47960
|
-
|
|
47961
|
-
|
|
47962
|
-
|
|
47963
|
-
|
|
48055
|
+
if (!g.fetch) {
|
|
48056
|
+
g.fetch = fetch2;
|
|
48057
|
+
g.Headers = Headers;
|
|
48058
|
+
g.Request = Request;
|
|
48059
|
+
g.Response = Response;
|
|
47964
48060
|
}
|
|
47965
48061
|
exports2.Headers = Headers;
|
|
47966
48062
|
exports2.Request = Request;
|
|
@@ -47969,10 +48065,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47969
48065
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
47970
48066
|
return exports2;
|
|
47971
48067
|
}({});
|
|
47972
|
-
})(
|
|
47973
|
-
|
|
47974
|
-
delete
|
|
47975
|
-
var ctx =
|
|
48068
|
+
})(__globalThis__);
|
|
48069
|
+
__globalThis__.fetch.ponyfill = true;
|
|
48070
|
+
delete __globalThis__.fetch.polyfill;
|
|
48071
|
+
var ctx = __global__.fetch ? __global__ : __globalThis__;
|
|
47976
48072
|
exports = ctx.fetch;
|
|
47977
48073
|
exports.default = ctx.fetch;
|
|
47978
48074
|
exports.fetch = ctx.fetch;
|
|
@@ -47983,7 +48079,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47983
48079
|
}
|
|
47984
48080
|
});
|
|
47985
48081
|
var require_dataloader2 = __commonJS2({
|
|
47986
|
-
"../../../node_modules/.pnpm/dataloader@2.2.
|
|
48082
|
+
"../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module2) {
|
|
47987
48083
|
"use strict";
|
|
47988
48084
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
47989
48085
|
function DataLoader3(batchLoadFn, options) {
|
|
@@ -48007,8 +48103,9 @@ var require_dataloader2 = __commonJS2({
|
|
|
48007
48103
|
}
|
|
48008
48104
|
var batch = getCurrentBatch(this);
|
|
48009
48105
|
var cacheMap = this._cacheMap;
|
|
48010
|
-
var cacheKey
|
|
48106
|
+
var cacheKey;
|
|
48011
48107
|
if (cacheMap) {
|
|
48108
|
+
cacheKey = this._cacheKeyFn(key2);
|
|
48012
48109
|
var cachedPromise = cacheMap.get(cacheKey);
|
|
48013
48110
|
if (cachedPromise) {
|
|
48014
48111
|
var cacheHits = batch.cacheHits || (batch.cacheHits = []);
|
|
@@ -48133,11 +48230,11 @@ var require_dataloader2 = __commonJS2({
|
|
|
48133
48230
|
}
|
|
48134
48231
|
resolveCacheHits(batch);
|
|
48135
48232
|
for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
|
|
48136
|
-
var
|
|
48137
|
-
if (
|
|
48138
|
-
batch.callbacks[i2].reject(
|
|
48233
|
+
var _value = values[i2];
|
|
48234
|
+
if (_value instanceof Error) {
|
|
48235
|
+
batch.callbacks[i2].reject(_value);
|
|
48139
48236
|
} else {
|
|
48140
|
-
batch.callbacks[i2].resolve(
|
|
48237
|
+
batch.callbacks[i2].resolve(_value);
|
|
48141
48238
|
}
|
|
48142
48239
|
}
|
|
48143
48240
|
})["catch"](function(error) {
|
|
@@ -53626,7 +53723,7 @@ function verifyTimeChecks(cacao, options) {
|
|
|
53626
53723
|
}
|
|
53627
53724
|
__name(verifyTimeChecks, "verifyTimeChecks");
|
|
53628
53725
|
__name3(verifyTimeChecks, "verifyTimeChecks");
|
|
53629
|
-
var version22 = "logger/5.
|
|
53726
|
+
var version22 = "logger/5.8.0";
|
|
53630
53727
|
var _permanentCensorErrors = false;
|
|
53631
53728
|
var _censorErrors = false;
|
|
53632
53729
|
var LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
|
|
@@ -53916,7 +54013,7 @@ var Logger = /* @__PURE__ */ __name(class {
|
|
|
53916
54013
|
__name3(Logger, "Logger");
|
|
53917
54014
|
Logger.errors = ErrorCode;
|
|
53918
54015
|
Logger.levels = LogLevel;
|
|
53919
|
-
var version3 = "bytes/5.
|
|
54016
|
+
var version3 = "bytes/5.8.0";
|
|
53920
54017
|
var logger = new Logger(version3);
|
|
53921
54018
|
function isHexable(value) {
|
|
53922
54019
|
return !!value.toHexString;
|
|
@@ -54259,7 +54356,7 @@ function splitSignature(signature2) {
|
|
|
54259
54356
|
__name(splitSignature, "splitSignature");
|
|
54260
54357
|
__name3(splitSignature, "splitSignature");
|
|
54261
54358
|
var import_bn = __toESM2(require_bn2());
|
|
54262
|
-
var version4 = "bignumber/5.
|
|
54359
|
+
var version4 = "bignumber/5.8.0";
|
|
54263
54360
|
var BN = import_bn.default.BN;
|
|
54264
54361
|
var logger2 = new Logger(version4);
|
|
54265
54362
|
function _base36To16(value) {
|
|
@@ -54273,7 +54370,7 @@ function keccak256(data) {
|
|
|
54273
54370
|
}
|
|
54274
54371
|
__name(keccak256, "keccak256");
|
|
54275
54372
|
__name3(keccak256, "keccak256");
|
|
54276
|
-
var version5 = "address/5.
|
|
54373
|
+
var version5 = "address/5.8.0";
|
|
54277
54374
|
var logger3 = new Logger(version5);
|
|
54278
54375
|
function getChecksumAddress(address) {
|
|
54279
54376
|
if (!isHexString(address, 20)) {
|
|
@@ -54362,7 +54459,7 @@ function getAddress(address) {
|
|
|
54362
54459
|
}
|
|
54363
54460
|
__name(getAddress, "getAddress");
|
|
54364
54461
|
__name3(getAddress, "getAddress");
|
|
54365
|
-
var version6 = "properties/5.
|
|
54462
|
+
var version6 = "properties/5.8.0";
|
|
54366
54463
|
var logger4 = new Logger(version6);
|
|
54367
54464
|
function defineReadOnly(object, name32, value) {
|
|
54368
54465
|
Object.defineProperty(object, name32, {
|
|
@@ -54373,7 +54470,7 @@ function defineReadOnly(object, name32, value) {
|
|
|
54373
54470
|
}
|
|
54374
54471
|
__name(defineReadOnly, "defineReadOnly");
|
|
54375
54472
|
__name3(defineReadOnly, "defineReadOnly");
|
|
54376
|
-
var version7 = "strings/5.
|
|
54473
|
+
var version7 = "strings/5.8.0";
|
|
54377
54474
|
var logger5 = new Logger(version7);
|
|
54378
54475
|
var UnicodeNormalizationForm;
|
|
54379
54476
|
(function(UnicodeNormalizationForm2) {
|
|
@@ -54578,10 +54675,13 @@ var utils_1$1 = createCommonjsModule(function(module2, exports) {
|
|
|
54578
54675
|
utils.encode = utils_1.encode;
|
|
54579
54676
|
function getNAF2(num, w, bits) {
|
|
54580
54677
|
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
|
|
54581
|
-
|
|
54678
|
+
var i2;
|
|
54679
|
+
for (i2 = 0; i2 < naf.length; i2 += 1) {
|
|
54680
|
+
naf[i2] = 0;
|
|
54681
|
+
}
|
|
54582
54682
|
var ws = 1 << w + 1;
|
|
54583
54683
|
var k = num.clone();
|
|
54584
|
-
for (
|
|
54684
|
+
for (i2 = 0; i2 < naf.length; i2++) {
|
|
54585
54685
|
var z;
|
|
54586
54686
|
var mod22 = k.andln(ws - 1);
|
|
54587
54687
|
if (k.isOdd()) {
|
|
@@ -56046,8 +56146,8 @@ KeyPair.prototype.derive = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functi
|
|
|
56046
56146
|
KeyPair.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign2(msg, enc, options) {
|
|
56047
56147
|
return this.ec.sign(msg, this, enc, options);
|
|
56048
56148
|
}, "sign2"), "sign");
|
|
56049
|
-
KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2) {
|
|
56050
|
-
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);
|
|
56051
56151
|
}, "verify2"), "verify");
|
|
56052
56152
|
KeyPair.prototype.inspect = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function inspect3() {
|
|
56053
56153
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
@@ -56083,6 +56183,9 @@ function getLength(buf22, p) {
|
|
|
56083
56183
|
if (octetLen === 0 || octetLen > 4) {
|
|
56084
56184
|
return false;
|
|
56085
56185
|
}
|
|
56186
|
+
if (buf22[p.place] === 0) {
|
|
56187
|
+
return false;
|
|
56188
|
+
}
|
|
56086
56189
|
var val = 0;
|
|
56087
56190
|
for (var i2 = 0, off = p.place; i2 < octetLen; i2++, off++) {
|
|
56088
56191
|
val <<= 8;
|
|
@@ -56130,6 +56233,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56130
56233
|
if (rlen === false) {
|
|
56131
56234
|
return false;
|
|
56132
56235
|
}
|
|
56236
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56237
|
+
return false;
|
|
56238
|
+
}
|
|
56133
56239
|
var r2 = data.slice(p.place, rlen + p.place);
|
|
56134
56240
|
p.place += rlen;
|
|
56135
56241
|
if (data[p.place++] !== 2) {
|
|
@@ -56142,6 +56248,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56142
56248
|
if (data.length !== slen + p.place) {
|
|
56143
56249
|
return false;
|
|
56144
56250
|
}
|
|
56251
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56252
|
+
return false;
|
|
56253
|
+
}
|
|
56145
56254
|
var s2 = data.slice(p.place, slen + p.place);
|
|
56146
56255
|
if (r2[0] === 0) {
|
|
56147
56256
|
if (r2[1] & 128) {
|
|
@@ -56256,8 +56365,23 @@ EC.prototype.genKeyPair = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functio
|
|
|
56256
56365
|
return this.keyFromPrivate(priv);
|
|
56257
56366
|
}
|
|
56258
56367
|
}, "genKeyPair"), "genKeyPair");
|
|
56259
|
-
EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly) {
|
|
56260
|
-
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();
|
|
56261
56385
|
if (delta > 0)
|
|
56262
56386
|
msg = msg.ushrn(delta);
|
|
56263
56387
|
if (!truncOnly && msg.cmp(this.n) >= 0)
|
|
@@ -56272,11 +56396,22 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56272
56396
|
}
|
|
56273
56397
|
if (!options)
|
|
56274
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
|
+
}
|
|
56275
56408
|
key2 = this.keyFromPrivate(key2, enc);
|
|
56276
|
-
msg = this._truncateToN(
|
|
56409
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
56410
|
+
assert$5(!msg.isNeg(), "Can not sign a negative message");
|
|
56277
56411
|
var bytes = this.n.byteLength();
|
|
56278
56412
|
var bkey = key2.getPrivate().toArray("be", bytes);
|
|
56279
56413
|
var nonce = msg.toArray("be", bytes);
|
|
56414
|
+
assert$5(new import_bn2.default(nonce).eq(msg), "Can not sign message");
|
|
56280
56415
|
var drbg = new hmacDrbg({
|
|
56281
56416
|
hash: this.hash,
|
|
56282
56417
|
entropy: bkey,
|
|
@@ -56309,8 +56444,10 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56309
56444
|
return new signature({ r: r2, s: s2, recoveryParam });
|
|
56310
56445
|
}
|
|
56311
56446
|
}, "sign3"), "sign");
|
|
56312
|
-
EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc) {
|
|
56313
|
-
|
|
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);
|
|
56314
56451
|
key2 = this.keyFromPublic(key2, enc);
|
|
56315
56452
|
signature$1 = new signature(signature$1, "hex");
|
|
56316
56453
|
var r2 = signature$1.r;
|
|
@@ -56373,7 +56510,7 @@ EC.prototype.getKeyRecoveryParam = function(e2, signature$1, Q, enc) {
|
|
|
56373
56510
|
var elliptic_1 = createCommonjsModule(function(module2, exports) {
|
|
56374
56511
|
"use strict";
|
|
56375
56512
|
var elliptic = exports;
|
|
56376
|
-
elliptic.version = { version: "6.
|
|
56513
|
+
elliptic.version = { version: "6.6.1" }.version;
|
|
56377
56514
|
elliptic.utils = utils_1$1;
|
|
56378
56515
|
elliptic.rand = function() {
|
|
56379
56516
|
throw new Error("unsupported");
|
|
@@ -56384,7 +56521,7 @@ var elliptic_1 = createCommonjsModule(function(module2, exports) {
|
|
|
56384
56521
|
elliptic.eddsa = null;
|
|
56385
56522
|
});
|
|
56386
56523
|
var EC$1 = elliptic_1.ec;
|
|
56387
|
-
var version8 = "signing-key/5.
|
|
56524
|
+
var version8 = "signing-key/5.8.0";
|
|
56388
56525
|
var logger6 = new Logger(version8);
|
|
56389
56526
|
var _curve = null;
|
|
56390
56527
|
function getCurve() {
|
|
@@ -56465,7 +56602,7 @@ function computePublicKey(key2, compressed) {
|
|
|
56465
56602
|
}
|
|
56466
56603
|
__name(computePublicKey, "computePublicKey");
|
|
56467
56604
|
__name3(computePublicKey, "computePublicKey");
|
|
56468
|
-
var version9 = "transactions/5.
|
|
56605
|
+
var version9 = "transactions/5.8.0";
|
|
56469
56606
|
var logger7 = new Logger(version9);
|
|
56470
56607
|
var TransactionTypes;
|
|
56471
56608
|
(function(TransactionTypes2) {
|
|
@@ -56484,7 +56621,7 @@ function recoverAddress(digest22, signature2) {
|
|
|
56484
56621
|
}
|
|
56485
56622
|
__name(recoverAddress, "recoverAddress");
|
|
56486
56623
|
__name3(recoverAddress, "recoverAddress");
|
|
56487
|
-
var version10 = "wallet/5.
|
|
56624
|
+
var version10 = "wallet/5.8.0";
|
|
56488
56625
|
var logger8 = new Logger(version10);
|
|
56489
56626
|
function verifyMessage(message, signature2) {
|
|
56490
56627
|
return recoverAddress(hashMessage(message), signature2);
|
|
@@ -66627,8 +66764,23 @@ var BackwardsCompatCredentialsListValidator = mod.object({
|
|
|
66627
66764
|
credentials: CredentialRecordValidator.or(BackwardsCompatIDXCredentialValidator).array()
|
|
66628
66765
|
}).strict();
|
|
66629
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
|
+
|
|
66630
66782
|
// src/idx.ts
|
|
66631
|
-
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias }) => {
|
|
66783
|
+
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias } = DEFAULT_IDX_ARGS) => {
|
|
66632
66784
|
const ceramic = learnCard.invoke.getCeramicClient();
|
|
66633
66785
|
const dataStore = new DIDDataStore({ ceramic, model: modelData });
|
|
66634
66786
|
const getCredentialsListFromIdx = /* @__PURE__ */ __name(async (alias = credentialAlias) => {
|