@learncard/react 2.3.8 → 2.3.9
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/cjs/{VCCard-319ad765.js → VCCard-d11c11b7.js} +37 -490
- package/dist/cjs/VCCard-d11c11b7.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index14.js +1 -1
- package/dist/cjs/index5.js +1 -1
- package/dist/esm/{VCCard-2657bab7.js → VCCard-8fd71fba.js} +37 -490
- package/dist/{cjs/VCCard-319ad765.js.map → esm/VCCard-8fd71fba.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index14.js +1 -1
- package/dist/esm/index5.js +1 -1
- package/package.json +2 -2
- package/dist/esm/VCCard-2657bab7.js.map +0 -1
|
@@ -79844,7 +79844,7 @@ const Readable = Stream__default["default"].Readable;
|
|
|
79844
79844
|
const BUFFER = Symbol('buffer');
|
|
79845
79845
|
const TYPE = Symbol('type');
|
|
79846
79846
|
|
|
79847
|
-
class Blob
|
|
79847
|
+
class Blob {
|
|
79848
79848
|
constructor() {
|
|
79849
79849
|
this[TYPE] = '';
|
|
79850
79850
|
|
|
@@ -79866,7 +79866,7 @@ class Blob$1 {
|
|
|
79866
79866
|
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
|
79867
79867
|
} else if (element instanceof ArrayBuffer) {
|
|
79868
79868
|
buffer = Buffer.from(element);
|
|
79869
|
-
} else if (element instanceof Blob
|
|
79869
|
+
} else if (element instanceof Blob) {
|
|
79870
79870
|
buffer = element[BUFFER];
|
|
79871
79871
|
} else {
|
|
79872
79872
|
buffer = Buffer.from(typeof element === 'string' ? element : String(element));
|
|
@@ -79931,19 +79931,19 @@ class Blob$1 {
|
|
|
79931
79931
|
|
|
79932
79932
|
const buffer = this[BUFFER];
|
|
79933
79933
|
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
|
79934
|
-
const blob = new Blob
|
|
79934
|
+
const blob = new Blob([], { type: arguments[2] });
|
|
79935
79935
|
blob[BUFFER] = slicedBuffer;
|
|
79936
79936
|
return blob;
|
|
79937
79937
|
}
|
|
79938
79938
|
}
|
|
79939
79939
|
|
|
79940
|
-
Object.defineProperties(Blob
|
|
79940
|
+
Object.defineProperties(Blob.prototype, {
|
|
79941
79941
|
size: { enumerable: true },
|
|
79942
79942
|
type: { enumerable: true },
|
|
79943
79943
|
slice: { enumerable: true }
|
|
79944
79944
|
});
|
|
79945
79945
|
|
|
79946
|
-
Object.defineProperty(Blob
|
|
79946
|
+
Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
|
|
79947
79947
|
value: 'Blob',
|
|
79948
79948
|
writable: false,
|
|
79949
79949
|
enumerable: false,
|
|
@@ -80075,7 +80075,7 @@ Body.prototype = {
|
|
|
80075
80075
|
return consumeBody.call(this).then(function (buf) {
|
|
80076
80076
|
return Object.assign(
|
|
80077
80077
|
// Prevent copying
|
|
80078
|
-
new Blob
|
|
80078
|
+
new Blob([], {
|
|
80079
80079
|
type: ct.toLowerCase()
|
|
80080
80080
|
}), {
|
|
80081
80081
|
[BUFFER]: buf
|
|
@@ -90231,6 +90231,35 @@ class Crypto extends Crypto$1 {
|
|
|
90231
90231
|
|
|
90232
90232
|
var crypto2 = new Crypto();
|
|
90233
90233
|
|
|
90234
|
+
var nodePonyfill = {exports: {}};
|
|
90235
|
+
|
|
90236
|
+
(function (module, exports) {
|
|
90237
|
+
const nodeFetch = require$$0;
|
|
90238
|
+
const realFetch = nodeFetch.default || nodeFetch;
|
|
90239
|
+
|
|
90240
|
+
const fetch = function (url, options) {
|
|
90241
|
+
// Support schemaless URIs on the server for parity with the browser.
|
|
90242
|
+
// Ex: //github.com/ -> https://github.com/
|
|
90243
|
+
if (/^\/\//.test(url)) {
|
|
90244
|
+
url = 'https:' + url;
|
|
90245
|
+
}
|
|
90246
|
+
return realFetch.call(this, url, options)
|
|
90247
|
+
};
|
|
90248
|
+
|
|
90249
|
+
fetch.ponyfill = true;
|
|
90250
|
+
|
|
90251
|
+
module.exports = exports = fetch;
|
|
90252
|
+
exports.fetch = fetch;
|
|
90253
|
+
exports.Headers = nodeFetch.Headers;
|
|
90254
|
+
exports.Request = nodeFetch.Request;
|
|
90255
|
+
exports.Response = nodeFetch.Response;
|
|
90256
|
+
|
|
90257
|
+
// Needed for TypeScript consumers without esModuleInterop.
|
|
90258
|
+
exports.default = fetch;
|
|
90259
|
+
} (nodePonyfill, nodePonyfill.exports));
|
|
90260
|
+
|
|
90261
|
+
var fetch2 = nodePonyfill.exports;
|
|
90262
|
+
|
|
90234
90263
|
var __create = Object.create;
|
|
90235
90264
|
var __defProp = Object.defineProperty;
|
|
90236
90265
|
var __defProps = Object.defineProperties;
|
|
@@ -119369,487 +119398,6 @@ var require_tslib = __commonJS({
|
|
|
119369
119398
|
});
|
|
119370
119399
|
}
|
|
119371
119400
|
});
|
|
119372
|
-
var require_browser_ponyfill = __commonJS({
|
|
119373
|
-
"../../node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module) {
|
|
119374
|
-
var global2 = typeof self !== "undefined" ? self : exports;
|
|
119375
|
-
var __self__ = function() {
|
|
119376
|
-
function F() {
|
|
119377
|
-
this.fetch = false;
|
|
119378
|
-
this.DOMException = global2.DOMException;
|
|
119379
|
-
}
|
|
119380
|
-
__name(F, "F");
|
|
119381
|
-
F.prototype = global2;
|
|
119382
|
-
return new F();
|
|
119383
|
-
}();
|
|
119384
|
-
(function(self2) {
|
|
119385
|
-
(function(exports2) {
|
|
119386
|
-
var support = {
|
|
119387
|
-
searchParams: "URLSearchParams" in self2,
|
|
119388
|
-
iterable: "Symbol" in self2 && "iterator" in Symbol,
|
|
119389
|
-
blob: "FileReader" in self2 && "Blob" in self2 && function() {
|
|
119390
|
-
try {
|
|
119391
|
-
new Blob();
|
|
119392
|
-
return true;
|
|
119393
|
-
} catch (e) {
|
|
119394
|
-
return false;
|
|
119395
|
-
}
|
|
119396
|
-
}(),
|
|
119397
|
-
formData: "FormData" in self2,
|
|
119398
|
-
arrayBuffer: "ArrayBuffer" in self2
|
|
119399
|
-
};
|
|
119400
|
-
function isDataView(obj) {
|
|
119401
|
-
return obj && DataView.prototype.isPrototypeOf(obj);
|
|
119402
|
-
}
|
|
119403
|
-
__name(isDataView, "isDataView");
|
|
119404
|
-
if (support.arrayBuffer) {
|
|
119405
|
-
var viewClasses = [
|
|
119406
|
-
"[object Int8Array]",
|
|
119407
|
-
"[object Uint8Array]",
|
|
119408
|
-
"[object Uint8ClampedArray]",
|
|
119409
|
-
"[object Int16Array]",
|
|
119410
|
-
"[object Uint16Array]",
|
|
119411
|
-
"[object Int32Array]",
|
|
119412
|
-
"[object Uint32Array]",
|
|
119413
|
-
"[object Float32Array]",
|
|
119414
|
-
"[object Float64Array]"
|
|
119415
|
-
];
|
|
119416
|
-
var isArrayBufferView = ArrayBuffer.isView || function(obj) {
|
|
119417
|
-
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1;
|
|
119418
|
-
};
|
|
119419
|
-
}
|
|
119420
|
-
function normalizeName(name5) {
|
|
119421
|
-
if (typeof name5 !== "string") {
|
|
119422
|
-
name5 = String(name5);
|
|
119423
|
-
}
|
|
119424
|
-
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name5)) {
|
|
119425
|
-
throw new TypeError("Invalid character in header field name");
|
|
119426
|
-
}
|
|
119427
|
-
return name5.toLowerCase();
|
|
119428
|
-
}
|
|
119429
|
-
__name(normalizeName, "normalizeName");
|
|
119430
|
-
function normalizeValue(value) {
|
|
119431
|
-
if (typeof value !== "string") {
|
|
119432
|
-
value = String(value);
|
|
119433
|
-
}
|
|
119434
|
-
return value;
|
|
119435
|
-
}
|
|
119436
|
-
__name(normalizeValue, "normalizeValue");
|
|
119437
|
-
function iteratorFor(items) {
|
|
119438
|
-
var iterator2 = {
|
|
119439
|
-
next: function() {
|
|
119440
|
-
var value = items.shift();
|
|
119441
|
-
return { done: value === void 0, value };
|
|
119442
|
-
}
|
|
119443
|
-
};
|
|
119444
|
-
if (support.iterable) {
|
|
119445
|
-
iterator2[Symbol.iterator] = function() {
|
|
119446
|
-
return iterator2;
|
|
119447
|
-
};
|
|
119448
|
-
}
|
|
119449
|
-
return iterator2;
|
|
119450
|
-
}
|
|
119451
|
-
__name(iteratorFor, "iteratorFor");
|
|
119452
|
-
function Headers2(headers) {
|
|
119453
|
-
this.map = {};
|
|
119454
|
-
if (headers instanceof Headers2) {
|
|
119455
|
-
headers.forEach(function(value, name5) {
|
|
119456
|
-
this.append(name5, value);
|
|
119457
|
-
}, this);
|
|
119458
|
-
} else if (Array.isArray(headers)) {
|
|
119459
|
-
headers.forEach(function(header) {
|
|
119460
|
-
this.append(header[0], header[1]);
|
|
119461
|
-
}, this);
|
|
119462
|
-
} else if (headers) {
|
|
119463
|
-
Object.getOwnPropertyNames(headers).forEach(function(name5) {
|
|
119464
|
-
this.append(name5, headers[name5]);
|
|
119465
|
-
}, this);
|
|
119466
|
-
}
|
|
119467
|
-
}
|
|
119468
|
-
__name(Headers2, "Headers");
|
|
119469
|
-
Headers2.prototype.append = function(name5, value) {
|
|
119470
|
-
name5 = normalizeName(name5);
|
|
119471
|
-
value = normalizeValue(value);
|
|
119472
|
-
var oldValue = this.map[name5];
|
|
119473
|
-
this.map[name5] = oldValue ? oldValue + ", " + value : value;
|
|
119474
|
-
};
|
|
119475
|
-
Headers2.prototype["delete"] = function(name5) {
|
|
119476
|
-
delete this.map[normalizeName(name5)];
|
|
119477
|
-
};
|
|
119478
|
-
Headers2.prototype.get = function(name5) {
|
|
119479
|
-
name5 = normalizeName(name5);
|
|
119480
|
-
return this.has(name5) ? this.map[name5] : null;
|
|
119481
|
-
};
|
|
119482
|
-
Headers2.prototype.has = function(name5) {
|
|
119483
|
-
return this.map.hasOwnProperty(normalizeName(name5));
|
|
119484
|
-
};
|
|
119485
|
-
Headers2.prototype.set = function(name5, value) {
|
|
119486
|
-
this.map[normalizeName(name5)] = normalizeValue(value);
|
|
119487
|
-
};
|
|
119488
|
-
Headers2.prototype.forEach = function(callback, thisArg) {
|
|
119489
|
-
for (var name5 in this.map) {
|
|
119490
|
-
if (this.map.hasOwnProperty(name5)) {
|
|
119491
|
-
callback.call(thisArg, this.map[name5], name5, this);
|
|
119492
|
-
}
|
|
119493
|
-
}
|
|
119494
|
-
};
|
|
119495
|
-
Headers2.prototype.keys = function() {
|
|
119496
|
-
var items = [];
|
|
119497
|
-
this.forEach(function(value, name5) {
|
|
119498
|
-
items.push(name5);
|
|
119499
|
-
});
|
|
119500
|
-
return iteratorFor(items);
|
|
119501
|
-
};
|
|
119502
|
-
Headers2.prototype.values = function() {
|
|
119503
|
-
var items = [];
|
|
119504
|
-
this.forEach(function(value) {
|
|
119505
|
-
items.push(value);
|
|
119506
|
-
});
|
|
119507
|
-
return iteratorFor(items);
|
|
119508
|
-
};
|
|
119509
|
-
Headers2.prototype.entries = function() {
|
|
119510
|
-
var items = [];
|
|
119511
|
-
this.forEach(function(value, name5) {
|
|
119512
|
-
items.push([name5, value]);
|
|
119513
|
-
});
|
|
119514
|
-
return iteratorFor(items);
|
|
119515
|
-
};
|
|
119516
|
-
if (support.iterable) {
|
|
119517
|
-
Headers2.prototype[Symbol.iterator] = Headers2.prototype.entries;
|
|
119518
|
-
}
|
|
119519
|
-
function consumed(body) {
|
|
119520
|
-
if (body.bodyUsed) {
|
|
119521
|
-
return Promise.reject(new TypeError("Already read"));
|
|
119522
|
-
}
|
|
119523
|
-
body.bodyUsed = true;
|
|
119524
|
-
}
|
|
119525
|
-
__name(consumed, "consumed");
|
|
119526
|
-
function fileReaderReady(reader) {
|
|
119527
|
-
return new Promise(function(resolve, reject) {
|
|
119528
|
-
reader.onload = function() {
|
|
119529
|
-
resolve(reader.result);
|
|
119530
|
-
};
|
|
119531
|
-
reader.onerror = function() {
|
|
119532
|
-
reject(reader.error);
|
|
119533
|
-
};
|
|
119534
|
-
});
|
|
119535
|
-
}
|
|
119536
|
-
__name(fileReaderReady, "fileReaderReady");
|
|
119537
|
-
function readBlobAsArrayBuffer(blob) {
|
|
119538
|
-
var reader = new FileReader();
|
|
119539
|
-
var promise = fileReaderReady(reader);
|
|
119540
|
-
reader.readAsArrayBuffer(blob);
|
|
119541
|
-
return promise;
|
|
119542
|
-
}
|
|
119543
|
-
__name(readBlobAsArrayBuffer, "readBlobAsArrayBuffer");
|
|
119544
|
-
function readBlobAsText(blob) {
|
|
119545
|
-
var reader = new FileReader();
|
|
119546
|
-
var promise = fileReaderReady(reader);
|
|
119547
|
-
reader.readAsText(blob);
|
|
119548
|
-
return promise;
|
|
119549
|
-
}
|
|
119550
|
-
__name(readBlobAsText, "readBlobAsText");
|
|
119551
|
-
function readArrayBufferAsText(buf2) {
|
|
119552
|
-
var view = new Uint8Array(buf2);
|
|
119553
|
-
var chars = new Array(view.length);
|
|
119554
|
-
for (var i = 0; i < view.length; i++) {
|
|
119555
|
-
chars[i] = String.fromCharCode(view[i]);
|
|
119556
|
-
}
|
|
119557
|
-
return chars.join("");
|
|
119558
|
-
}
|
|
119559
|
-
__name(readArrayBufferAsText, "readArrayBufferAsText");
|
|
119560
|
-
function bufferClone(buf2) {
|
|
119561
|
-
if (buf2.slice) {
|
|
119562
|
-
return buf2.slice(0);
|
|
119563
|
-
} else {
|
|
119564
|
-
var view = new Uint8Array(buf2.byteLength);
|
|
119565
|
-
view.set(new Uint8Array(buf2));
|
|
119566
|
-
return view.buffer;
|
|
119567
|
-
}
|
|
119568
|
-
}
|
|
119569
|
-
__name(bufferClone, "bufferClone");
|
|
119570
|
-
function Body() {
|
|
119571
|
-
this.bodyUsed = false;
|
|
119572
|
-
this._initBody = function(body) {
|
|
119573
|
-
this._bodyInit = body;
|
|
119574
|
-
if (!body) {
|
|
119575
|
-
this._bodyText = "";
|
|
119576
|
-
} else if (typeof body === "string") {
|
|
119577
|
-
this._bodyText = body;
|
|
119578
|
-
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
119579
|
-
this._bodyBlob = body;
|
|
119580
|
-
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
119581
|
-
this._bodyFormData = body;
|
|
119582
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
119583
|
-
this._bodyText = body.toString();
|
|
119584
|
-
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
119585
|
-
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
119586
|
-
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
119587
|
-
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
119588
|
-
this._bodyArrayBuffer = bufferClone(body);
|
|
119589
|
-
} else {
|
|
119590
|
-
this._bodyText = body = Object.prototype.toString.call(body);
|
|
119591
|
-
}
|
|
119592
|
-
if (!this.headers.get("content-type")) {
|
|
119593
|
-
if (typeof body === "string") {
|
|
119594
|
-
this.headers.set("content-type", "text/plain;charset=UTF-8");
|
|
119595
|
-
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
119596
|
-
this.headers.set("content-type", this._bodyBlob.type);
|
|
119597
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
119598
|
-
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8");
|
|
119599
|
-
}
|
|
119600
|
-
}
|
|
119601
|
-
};
|
|
119602
|
-
if (support.blob) {
|
|
119603
|
-
this.blob = function() {
|
|
119604
|
-
var rejected = consumed(this);
|
|
119605
|
-
if (rejected) {
|
|
119606
|
-
return rejected;
|
|
119607
|
-
}
|
|
119608
|
-
if (this._bodyBlob) {
|
|
119609
|
-
return Promise.resolve(this._bodyBlob);
|
|
119610
|
-
} else if (this._bodyArrayBuffer) {
|
|
119611
|
-
return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
119612
|
-
} else if (this._bodyFormData) {
|
|
119613
|
-
throw new Error("could not read FormData body as blob");
|
|
119614
|
-
} else {
|
|
119615
|
-
return Promise.resolve(new Blob([this._bodyText]));
|
|
119616
|
-
}
|
|
119617
|
-
};
|
|
119618
|
-
this.arrayBuffer = function() {
|
|
119619
|
-
if (this._bodyArrayBuffer) {
|
|
119620
|
-
return consumed(this) || Promise.resolve(this._bodyArrayBuffer);
|
|
119621
|
-
} else {
|
|
119622
|
-
return this.blob().then(readBlobAsArrayBuffer);
|
|
119623
|
-
}
|
|
119624
|
-
};
|
|
119625
|
-
}
|
|
119626
|
-
this.text = function() {
|
|
119627
|
-
var rejected = consumed(this);
|
|
119628
|
-
if (rejected) {
|
|
119629
|
-
return rejected;
|
|
119630
|
-
}
|
|
119631
|
-
if (this._bodyBlob) {
|
|
119632
|
-
return readBlobAsText(this._bodyBlob);
|
|
119633
|
-
} else if (this._bodyArrayBuffer) {
|
|
119634
|
-
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));
|
|
119635
|
-
} else if (this._bodyFormData) {
|
|
119636
|
-
throw new Error("could not read FormData body as text");
|
|
119637
|
-
} else {
|
|
119638
|
-
return Promise.resolve(this._bodyText);
|
|
119639
|
-
}
|
|
119640
|
-
};
|
|
119641
|
-
if (support.formData) {
|
|
119642
|
-
this.formData = function() {
|
|
119643
|
-
return this.text().then(decode12);
|
|
119644
|
-
};
|
|
119645
|
-
}
|
|
119646
|
-
this.json = function() {
|
|
119647
|
-
return this.text().then(JSON.parse);
|
|
119648
|
-
};
|
|
119649
|
-
return this;
|
|
119650
|
-
}
|
|
119651
|
-
__name(Body, "Body");
|
|
119652
|
-
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
119653
|
-
function normalizeMethod(method) {
|
|
119654
|
-
var upcased = method.toUpperCase();
|
|
119655
|
-
return methods.indexOf(upcased) > -1 ? upcased : method;
|
|
119656
|
-
}
|
|
119657
|
-
__name(normalizeMethod, "normalizeMethod");
|
|
119658
|
-
function Request2(input, options) {
|
|
119659
|
-
options = options || {};
|
|
119660
|
-
var body = options.body;
|
|
119661
|
-
if (input instanceof Request2) {
|
|
119662
|
-
if (input.bodyUsed) {
|
|
119663
|
-
throw new TypeError("Already read");
|
|
119664
|
-
}
|
|
119665
|
-
this.url = input.url;
|
|
119666
|
-
this.credentials = input.credentials;
|
|
119667
|
-
if (!options.headers) {
|
|
119668
|
-
this.headers = new Headers2(input.headers);
|
|
119669
|
-
}
|
|
119670
|
-
this.method = input.method;
|
|
119671
|
-
this.mode = input.mode;
|
|
119672
|
-
this.signal = input.signal;
|
|
119673
|
-
if (!body && input._bodyInit != null) {
|
|
119674
|
-
body = input._bodyInit;
|
|
119675
|
-
input.bodyUsed = true;
|
|
119676
|
-
}
|
|
119677
|
-
} else {
|
|
119678
|
-
this.url = String(input);
|
|
119679
|
-
}
|
|
119680
|
-
this.credentials = options.credentials || this.credentials || "same-origin";
|
|
119681
|
-
if (options.headers || !this.headers) {
|
|
119682
|
-
this.headers = new Headers2(options.headers);
|
|
119683
|
-
}
|
|
119684
|
-
this.method = normalizeMethod(options.method || this.method || "GET");
|
|
119685
|
-
this.mode = options.mode || this.mode || null;
|
|
119686
|
-
this.signal = options.signal || this.signal;
|
|
119687
|
-
this.referrer = null;
|
|
119688
|
-
if ((this.method === "GET" || this.method === "HEAD") && body) {
|
|
119689
|
-
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
119690
|
-
}
|
|
119691
|
-
this._initBody(body);
|
|
119692
|
-
}
|
|
119693
|
-
__name(Request2, "Request");
|
|
119694
|
-
Request2.prototype.clone = function() {
|
|
119695
|
-
return new Request2(this, { body: this._bodyInit });
|
|
119696
|
-
};
|
|
119697
|
-
function decode12(body) {
|
|
119698
|
-
var form = new FormData();
|
|
119699
|
-
body.trim().split("&").forEach(function(bytes) {
|
|
119700
|
-
if (bytes) {
|
|
119701
|
-
var split = bytes.split("=");
|
|
119702
|
-
var name5 = split.shift().replace(/\+/g, " ");
|
|
119703
|
-
var value = split.join("=").replace(/\+/g, " ");
|
|
119704
|
-
form.append(decodeURIComponent(name5), decodeURIComponent(value));
|
|
119705
|
-
}
|
|
119706
|
-
});
|
|
119707
|
-
return form;
|
|
119708
|
-
}
|
|
119709
|
-
__name(decode12, "decode");
|
|
119710
|
-
function parseHeaders(rawHeaders) {
|
|
119711
|
-
var headers = new Headers2();
|
|
119712
|
-
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
|
|
119713
|
-
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
119714
|
-
var parts = line.split(":");
|
|
119715
|
-
var key2 = parts.shift().trim();
|
|
119716
|
-
if (key2) {
|
|
119717
|
-
var value = parts.join(":").trim();
|
|
119718
|
-
headers.append(key2, value);
|
|
119719
|
-
}
|
|
119720
|
-
});
|
|
119721
|
-
return headers;
|
|
119722
|
-
}
|
|
119723
|
-
__name(parseHeaders, "parseHeaders");
|
|
119724
|
-
Body.call(Request2.prototype);
|
|
119725
|
-
function Response2(bodyInit, options) {
|
|
119726
|
-
if (!options) {
|
|
119727
|
-
options = {};
|
|
119728
|
-
}
|
|
119729
|
-
this.type = "default";
|
|
119730
|
-
this.status = options.status === void 0 ? 200 : options.status;
|
|
119731
|
-
this.ok = this.status >= 200 && this.status < 300;
|
|
119732
|
-
this.statusText = "statusText" in options ? options.statusText : "OK";
|
|
119733
|
-
this.headers = new Headers2(options.headers);
|
|
119734
|
-
this.url = options.url || "";
|
|
119735
|
-
this._initBody(bodyInit);
|
|
119736
|
-
}
|
|
119737
|
-
__name(Response2, "Response");
|
|
119738
|
-
Body.call(Response2.prototype);
|
|
119739
|
-
Response2.prototype.clone = function() {
|
|
119740
|
-
return new Response2(this._bodyInit, {
|
|
119741
|
-
status: this.status,
|
|
119742
|
-
statusText: this.statusText,
|
|
119743
|
-
headers: new Headers2(this.headers),
|
|
119744
|
-
url: this.url
|
|
119745
|
-
});
|
|
119746
|
-
};
|
|
119747
|
-
Response2.error = function() {
|
|
119748
|
-
var response = new Response2(null, { status: 0, statusText: "" });
|
|
119749
|
-
response.type = "error";
|
|
119750
|
-
return response;
|
|
119751
|
-
};
|
|
119752
|
-
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
119753
|
-
Response2.redirect = function(url, status) {
|
|
119754
|
-
if (redirectStatuses.indexOf(status) === -1) {
|
|
119755
|
-
throw new RangeError("Invalid status code");
|
|
119756
|
-
}
|
|
119757
|
-
return new Response2(null, { status, headers: { location: url } });
|
|
119758
|
-
};
|
|
119759
|
-
exports2.DOMException = self2.DOMException;
|
|
119760
|
-
try {
|
|
119761
|
-
new exports2.DOMException();
|
|
119762
|
-
} catch (err) {
|
|
119763
|
-
exports2.DOMException = function(message, name5) {
|
|
119764
|
-
this.message = message;
|
|
119765
|
-
this.name = name5;
|
|
119766
|
-
var error = Error(message);
|
|
119767
|
-
this.stack = error.stack;
|
|
119768
|
-
};
|
|
119769
|
-
exports2.DOMException.prototype = Object.create(Error.prototype);
|
|
119770
|
-
exports2.DOMException.prototype.constructor = exports2.DOMException;
|
|
119771
|
-
}
|
|
119772
|
-
function fetch3(input, init4) {
|
|
119773
|
-
return new Promise(function(resolve, reject) {
|
|
119774
|
-
var request = new Request2(input, init4);
|
|
119775
|
-
if (request.signal && request.signal.aborted) {
|
|
119776
|
-
return reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
119777
|
-
}
|
|
119778
|
-
var xhr = new XMLHttpRequest();
|
|
119779
|
-
function abortXhr() {
|
|
119780
|
-
xhr.abort();
|
|
119781
|
-
}
|
|
119782
|
-
__name(abortXhr, "abortXhr");
|
|
119783
|
-
xhr.onload = function() {
|
|
119784
|
-
var options = {
|
|
119785
|
-
status: xhr.status,
|
|
119786
|
-
statusText: xhr.statusText,
|
|
119787
|
-
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
|
|
119788
|
-
};
|
|
119789
|
-
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
|
|
119790
|
-
var body = "response" in xhr ? xhr.response : xhr.responseText;
|
|
119791
|
-
resolve(new Response2(body, options));
|
|
119792
|
-
};
|
|
119793
|
-
xhr.onerror = function() {
|
|
119794
|
-
reject(new TypeError("Network request failed"));
|
|
119795
|
-
};
|
|
119796
|
-
xhr.ontimeout = function() {
|
|
119797
|
-
reject(new TypeError("Network request failed"));
|
|
119798
|
-
};
|
|
119799
|
-
xhr.onabort = function() {
|
|
119800
|
-
reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
119801
|
-
};
|
|
119802
|
-
xhr.open(request.method, request.url, true);
|
|
119803
|
-
if (request.credentials === "include") {
|
|
119804
|
-
xhr.withCredentials = true;
|
|
119805
|
-
} else if (request.credentials === "omit") {
|
|
119806
|
-
xhr.withCredentials = false;
|
|
119807
|
-
}
|
|
119808
|
-
if ("responseType" in xhr && support.blob) {
|
|
119809
|
-
xhr.responseType = "blob";
|
|
119810
|
-
}
|
|
119811
|
-
request.headers.forEach(function(value, name5) {
|
|
119812
|
-
xhr.setRequestHeader(name5, value);
|
|
119813
|
-
});
|
|
119814
|
-
if (request.signal) {
|
|
119815
|
-
request.signal.addEventListener("abort", abortXhr);
|
|
119816
|
-
xhr.onreadystatechange = function() {
|
|
119817
|
-
if (xhr.readyState === 4) {
|
|
119818
|
-
request.signal.removeEventListener("abort", abortXhr);
|
|
119819
|
-
}
|
|
119820
|
-
};
|
|
119821
|
-
}
|
|
119822
|
-
xhr.send(typeof request._bodyInit === "undefined" ? null : request._bodyInit);
|
|
119823
|
-
});
|
|
119824
|
-
}
|
|
119825
|
-
__name(fetch3, "fetch");
|
|
119826
|
-
fetch3.polyfill = true;
|
|
119827
|
-
if (!self2.fetch) {
|
|
119828
|
-
self2.fetch = fetch3;
|
|
119829
|
-
self2.Headers = Headers2;
|
|
119830
|
-
self2.Request = Request2;
|
|
119831
|
-
self2.Response = Response2;
|
|
119832
|
-
}
|
|
119833
|
-
exports2.Headers = Headers2;
|
|
119834
|
-
exports2.Request = Request2;
|
|
119835
|
-
exports2.Response = Response2;
|
|
119836
|
-
exports2.fetch = fetch3;
|
|
119837
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
119838
|
-
return exports2;
|
|
119839
|
-
})({});
|
|
119840
|
-
})(__self__);
|
|
119841
|
-
__self__.fetch.ponyfill = true;
|
|
119842
|
-
delete __self__.fetch.polyfill;
|
|
119843
|
-
var ctx = __self__;
|
|
119844
|
-
exports = ctx.fetch;
|
|
119845
|
-
exports.default = ctx.fetch;
|
|
119846
|
-
exports.fetch = ctx.fetch;
|
|
119847
|
-
exports.Headers = ctx.Headers;
|
|
119848
|
-
exports.Request = ctx.Request;
|
|
119849
|
-
exports.Response = ctx.Response;
|
|
119850
|
-
module.exports = exports;
|
|
119851
|
-
}
|
|
119852
|
-
});
|
|
119853
119401
|
var require_dataloader = __commonJS({
|
|
119854
119402
|
"../../node_modules/.pnpm/dataloader@2.1.0/node_modules/dataloader/index.js"(exports, module) {
|
|
119855
119403
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
@@ -134773,7 +134321,6 @@ function StreamStatic() {
|
|
|
134773
134321
|
};
|
|
134774
134322
|
}
|
|
134775
134323
|
__name(StreamStatic, "StreamStatic");
|
|
134776
|
-
var import_cross_fetch = __toESM(require_browser_ponyfill(), 1);
|
|
134777
134324
|
function mergeAbortSignals(signals) {
|
|
134778
134325
|
const controller = new AbortController();
|
|
134779
134326
|
if (signals.length === 0) {
|
|
@@ -134835,7 +134382,7 @@ function fetchJson(_0) {
|
|
|
134835
134382
|
const timedAbortSignal = new TimedAbortSignal(timeoutLength);
|
|
134836
134383
|
const signal = opts.signal ? mergeAbortSignals([opts.signal, timedAbortSignal.signal]) : timedAbortSignal.signal;
|
|
134837
134384
|
const res = yield abortable2(signal, (abortSignal) => {
|
|
134838
|
-
return (
|
|
134385
|
+
return fetch2(String(url), __spreadProps(__spreadValues({}, opts), { signal: abortSignal }));
|
|
134839
134386
|
}).finally(() => timedAbortSignal.clear());
|
|
134840
134387
|
if (!res.ok) {
|
|
134841
134388
|
const text = yield res.text();
|
|
@@ -151361,4 +150908,4 @@ const VCCard = ({ credential, issueeOverride, className = "" }) => {
|
|
|
151361
150908
|
};
|
|
151362
150909
|
|
|
151363
150910
|
exports.VCCard = VCCard;
|
|
151364
|
-
//# sourceMappingURL=VCCard-
|
|
150911
|
+
//# sourceMappingURL=VCCard-d11c11b7.js.map
|