@pod-os/core 0.11.2-7dc8fd4.0 → 0.11.2-d3dc448.0
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/{chunk-NJZBRQIY.js → chunk-K3YKITD7.js} +0 -49
- package/dist/dist-L3AA3UET.js +905 -0
- package/dist/index.js +1751 -42
- package/lib/index.js +2571 -362
- package/package.json +3 -2
- package/types/authentication/index.d.ts +5 -1
- package/types/authentication/observeSession.d.ts +4 -0
- package/types/authentication/observeSession.spec.d.ts +1 -0
- package/types/index.d.ts +11 -2
- package/dist/dist-D3HKZNEN.js +0 -384
package/lib/index.js
CHANGED
|
@@ -16,11 +16,11 @@ var PodOS = (() => {
|
|
|
16
16
|
for (var name7 in all)
|
|
17
17
|
__defProp(target5, name7, { get: all[name7], enumerable: true });
|
|
18
18
|
};
|
|
19
|
-
var __copyProps = (to2,
|
|
20
|
-
if (
|
|
21
|
-
for (let key3 of __getOwnPropNames(
|
|
19
|
+
var __copyProps = (to2, from2, except, desc) => {
|
|
20
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
21
|
+
for (let key3 of __getOwnPropNames(from2))
|
|
22
22
|
if (!__hasOwnProp.call(to2, key3) && key3 !== except)
|
|
23
|
-
__defProp(to2, key3, { get: () =>
|
|
23
|
+
__defProp(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc(from2, key3)) || desc.enumerable });
|
|
24
24
|
}
|
|
25
25
|
return to2;
|
|
26
26
|
};
|
|
@@ -406,83 +406,6 @@ var PodOS = (() => {
|
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
|
|
409
|
-
// ../node_modules/uuid/dist/esm-browser/rng.js
|
|
410
|
-
function rng() {
|
|
411
|
-
if (!getRandomValues) {
|
|
412
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
413
|
-
if (!getRandomValues) {
|
|
414
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return getRandomValues(rnds8);
|
|
418
|
-
}
|
|
419
|
-
var getRandomValues, rnds8;
|
|
420
|
-
var init_rng = __esm({
|
|
421
|
-
"../node_modules/uuid/dist/esm-browser/rng.js"() {
|
|
422
|
-
rnds8 = new Uint8Array(16);
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
// ../node_modules/uuid/dist/esm-browser/stringify.js
|
|
427
|
-
function unsafeStringify(arr, offset3 = 0) {
|
|
428
|
-
return byteToHex[arr[offset3 + 0]] + byteToHex[arr[offset3 + 1]] + byteToHex[arr[offset3 + 2]] + byteToHex[arr[offset3 + 3]] + "-" + byteToHex[arr[offset3 + 4]] + byteToHex[arr[offset3 + 5]] + "-" + byteToHex[arr[offset3 + 6]] + byteToHex[arr[offset3 + 7]] + "-" + byteToHex[arr[offset3 + 8]] + byteToHex[arr[offset3 + 9]] + "-" + byteToHex[arr[offset3 + 10]] + byteToHex[arr[offset3 + 11]] + byteToHex[arr[offset3 + 12]] + byteToHex[arr[offset3 + 13]] + byteToHex[arr[offset3 + 14]] + byteToHex[arr[offset3 + 15]];
|
|
429
|
-
}
|
|
430
|
-
var byteToHex;
|
|
431
|
-
var init_stringify = __esm({
|
|
432
|
-
"../node_modules/uuid/dist/esm-browser/stringify.js"() {
|
|
433
|
-
byteToHex = [];
|
|
434
|
-
for (let i = 0; i < 256; ++i) {
|
|
435
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
// ../node_modules/uuid/dist/esm-browser/native.js
|
|
441
|
-
var randomUUID, native_default;
|
|
442
|
-
var init_native = __esm({
|
|
443
|
-
"../node_modules/uuid/dist/esm-browser/native.js"() {
|
|
444
|
-
randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
445
|
-
native_default = {
|
|
446
|
-
randomUUID
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
// ../node_modules/uuid/dist/esm-browser/v4.js
|
|
452
|
-
function v4(options, buf, offset3) {
|
|
453
|
-
if (native_default.randomUUID && !buf && !options) {
|
|
454
|
-
return native_default.randomUUID();
|
|
455
|
-
}
|
|
456
|
-
options = options || {};
|
|
457
|
-
const rnds = options.random || (options.rng || rng)();
|
|
458
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
459
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
460
|
-
if (buf) {
|
|
461
|
-
offset3 = offset3 || 0;
|
|
462
|
-
for (let i = 0; i < 16; ++i) {
|
|
463
|
-
buf[offset3 + i] = rnds[i];
|
|
464
|
-
}
|
|
465
|
-
return buf;
|
|
466
|
-
}
|
|
467
|
-
return unsafeStringify(rnds);
|
|
468
|
-
}
|
|
469
|
-
var v4_default;
|
|
470
|
-
var init_v4 = __esm({
|
|
471
|
-
"../node_modules/uuid/dist/esm-browser/v4.js"() {
|
|
472
|
-
init_native();
|
|
473
|
-
init_rng();
|
|
474
|
-
init_stringify();
|
|
475
|
-
v4_default = v4;
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
// ../node_modules/uuid/dist/esm-browser/index.js
|
|
480
|
-
var init_esm_browser = __esm({
|
|
481
|
-
"../node_modules/uuid/dist/esm-browser/index.js"() {
|
|
482
|
-
init_v4();
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
|
|
486
409
|
// ../node_modules/@inrupt/oidc-client/lib/oidc-client.min.js
|
|
487
410
|
var require_oidc_client_min = __commonJS({
|
|
488
411
|
"../node_modules/@inrupt/oidc-client/lib/oidc-client.min.js"(exports, module3) {
|
|
@@ -10354,10 +10277,10 @@ var PodOS = (() => {
|
|
|
10354
10277
|
lookupPrefix: function(namespaceURI) {
|
|
10355
10278
|
var el = this;
|
|
10356
10279
|
while (el) {
|
|
10357
|
-
var
|
|
10358
|
-
if (
|
|
10359
|
-
for (var n2 in
|
|
10360
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
10280
|
+
var map5 = el._nsMap;
|
|
10281
|
+
if (map5) {
|
|
10282
|
+
for (var n2 in map5) {
|
|
10283
|
+
if (Object.prototype.hasOwnProperty.call(map5, n2) && map5[n2] === namespaceURI) {
|
|
10361
10284
|
return n2;
|
|
10362
10285
|
}
|
|
10363
10286
|
}
|
|
@@ -10370,10 +10293,10 @@ var PodOS = (() => {
|
|
|
10370
10293
|
lookupNamespaceURI: function(prefix2) {
|
|
10371
10294
|
var el = this;
|
|
10372
10295
|
while (el) {
|
|
10373
|
-
var
|
|
10374
|
-
if (
|
|
10375
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
10376
|
-
return
|
|
10296
|
+
var map5 = el._nsMap;
|
|
10297
|
+
if (map5) {
|
|
10298
|
+
if (Object.prototype.hasOwnProperty.call(map5, prefix2)) {
|
|
10299
|
+
return map5[prefix2];
|
|
10377
10300
|
}
|
|
10378
10301
|
}
|
|
10379
10302
|
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
@@ -13576,21 +13499,21 @@ var PodOS = (() => {
|
|
|
13576
13499
|
case "/":
|
|
13577
13500
|
var end2 = source8.indexOf(">", tagStart + 3);
|
|
13578
13501
|
var tagName = source8.substring(tagStart + 2, end2).replace(/[ \t\n\r]+$/g, "");
|
|
13579
|
-
var
|
|
13502
|
+
var config2 = parseStack.pop();
|
|
13580
13503
|
if (end2 < 0) {
|
|
13581
13504
|
tagName = source8.substring(tagStart + 2).replace(/[\s<].*/, "");
|
|
13582
|
-
errorHandler.error("end tag name: " + tagName + " is not complete:" +
|
|
13505
|
+
errorHandler.error("end tag name: " + tagName + " is not complete:" + config2.tagName);
|
|
13583
13506
|
end2 = tagStart + 1 + tagName.length;
|
|
13584
13507
|
} else if (tagName.match(/\s</)) {
|
|
13585
13508
|
tagName = tagName.replace(/[\s<].*/, "");
|
|
13586
13509
|
errorHandler.error("end tag name: " + tagName + " maybe not complete");
|
|
13587
13510
|
end2 = tagStart + 1 + tagName.length;
|
|
13588
13511
|
}
|
|
13589
|
-
var localNSMap =
|
|
13590
|
-
var endMatch =
|
|
13591
|
-
var endIgnoreCaseMach = endMatch ||
|
|
13512
|
+
var localNSMap = config2.localNSMap;
|
|
13513
|
+
var endMatch = config2.tagName == tagName;
|
|
13514
|
+
var endIgnoreCaseMach = endMatch || config2.tagName && config2.tagName.toLowerCase() == tagName.toLowerCase();
|
|
13592
13515
|
if (endIgnoreCaseMach) {
|
|
13593
|
-
domBuilder.endElement(
|
|
13516
|
+
domBuilder.endElement(config2.uri, config2.localName, tagName);
|
|
13594
13517
|
if (localNSMap) {
|
|
13595
13518
|
for (var prefix2 in localNSMap) {
|
|
13596
13519
|
if (Object.prototype.hasOwnProperty.call(localNSMap, prefix2)) {
|
|
@@ -13599,10 +13522,10 @@ var PodOS = (() => {
|
|
|
13599
13522
|
}
|
|
13600
13523
|
}
|
|
13601
13524
|
if (!endMatch) {
|
|
13602
|
-
errorHandler.fatalError("end tag name: " + tagName + " is not match the current start tagName:" +
|
|
13525
|
+
errorHandler.fatalError("end tag name: " + tagName + " is not match the current start tagName:" + config2.tagName);
|
|
13603
13526
|
}
|
|
13604
13527
|
} else {
|
|
13605
|
-
parseStack.push(
|
|
13528
|
+
parseStack.push(config2);
|
|
13606
13529
|
}
|
|
13607
13530
|
end2++;
|
|
13608
13531
|
break;
|
|
@@ -14602,7 +14525,7 @@ var PodOS = (() => {
|
|
|
14602
14525
|
function error5(type5) {
|
|
14603
14526
|
throw new RangeError(errors[type5]);
|
|
14604
14527
|
}
|
|
14605
|
-
function
|
|
14528
|
+
function map5(array, fn2) {
|
|
14606
14529
|
var length2 = array.length;
|
|
14607
14530
|
var result5 = [];
|
|
14608
14531
|
while (length2--) {
|
|
@@ -14619,7 +14542,7 @@ var PodOS = (() => {
|
|
|
14619
14542
|
}
|
|
14620
14543
|
string2 = string2.replace(regexSeparators, ".");
|
|
14621
14544
|
var labels = string2.split(".");
|
|
14622
|
-
var encoded =
|
|
14545
|
+
var encoded = map5(labels, fn2).join(".");
|
|
14623
14546
|
return result5 + encoded;
|
|
14624
14547
|
}
|
|
14625
14548
|
function ucs2decode(string2) {
|
|
@@ -14641,7 +14564,7 @@ var PodOS = (() => {
|
|
|
14641
14564
|
return output2;
|
|
14642
14565
|
}
|
|
14643
14566
|
function ucs2encode(array) {
|
|
14644
|
-
return
|
|
14567
|
+
return map5(array, function(value6) {
|
|
14645
14568
|
var output2 = "";
|
|
14646
14569
|
if (value6 > 65535) {
|
|
14647
14570
|
value6 -= 65536;
|
|
@@ -15012,7 +14935,7 @@ var PodOS = (() => {
|
|
|
15012
14935
|
}
|
|
15013
14936
|
return str;
|
|
15014
14937
|
};
|
|
15015
|
-
module3.exports = function
|
|
14938
|
+
module3.exports = function bind2(that) {
|
|
15016
14939
|
var target5 = this;
|
|
15017
14940
|
if (typeof target5 !== "function" || toStr.apply(target5) !== funcType) {
|
|
15018
14941
|
throw new TypeError(ERROR_MESSAGE + target5);
|
|
@@ -15068,8 +14991,8 @@ var PodOS = (() => {
|
|
|
15068
14991
|
"use strict";
|
|
15069
14992
|
var call = Function.prototype.call;
|
|
15070
14993
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
15071
|
-
var
|
|
15072
|
-
module3.exports =
|
|
14994
|
+
var bind2 = require_function_bind();
|
|
14995
|
+
module3.exports = bind2.call(call, $hasOwn);
|
|
15073
14996
|
}
|
|
15074
14997
|
});
|
|
15075
14998
|
|
|
@@ -15277,21 +15200,21 @@ var PodOS = (() => {
|
|
|
15277
15200
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
15278
15201
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
15279
15202
|
};
|
|
15280
|
-
var
|
|
15203
|
+
var bind2 = require_function_bind();
|
|
15281
15204
|
var hasOwn = require_hasown();
|
|
15282
|
-
var $concat =
|
|
15283
|
-
var $spliceApply =
|
|
15284
|
-
var $replace =
|
|
15285
|
-
var $strSlice =
|
|
15286
|
-
var $exec =
|
|
15205
|
+
var $concat = bind2.call(Function.call, Array.prototype.concat);
|
|
15206
|
+
var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
|
|
15207
|
+
var $replace = bind2.call(Function.call, String.prototype.replace);
|
|
15208
|
+
var $strSlice = bind2.call(Function.call, String.prototype.slice);
|
|
15209
|
+
var $exec = bind2.call(Function.call, RegExp.prototype.exec);
|
|
15287
15210
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
15288
15211
|
var reEscapeChar = /\\(\\)?/g;
|
|
15289
15212
|
var stringToPath = function stringToPath2(string2) {
|
|
15290
15213
|
var first3 = $strSlice(string2, 0, 1);
|
|
15291
|
-
var
|
|
15292
|
-
if (first3 === "%" &&
|
|
15214
|
+
var last3 = $strSlice(string2, -1);
|
|
15215
|
+
if (first3 === "%" && last3 !== "%") {
|
|
15293
15216
|
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
15294
|
-
} else if (
|
|
15217
|
+
} else if (last3 === "%" && first3 !== "%") {
|
|
15295
15218
|
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
15296
15219
|
}
|
|
15297
15220
|
var result5 = [];
|
|
@@ -15347,8 +15270,8 @@ var PodOS = (() => {
|
|
|
15347
15270
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
15348
15271
|
var part3 = parts[i];
|
|
15349
15272
|
var first3 = $strSlice(part3, 0, 1);
|
|
15350
|
-
var
|
|
15351
|
-
if ((first3 === '"' || first3 === "'" || first3 === "`" || (
|
|
15273
|
+
var last3 = $strSlice(part3, -1);
|
|
15274
|
+
if ((first3 === '"' || first3 === "'" || first3 === "`" || (last3 === '"' || last3 === "'" || last3 === "`")) && first3 !== last3) {
|
|
15352
15275
|
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
15353
15276
|
}
|
|
15354
15277
|
if (part3 === "constructor" || !isOwn) {
|
|
@@ -15548,20 +15471,20 @@ var PodOS = (() => {
|
|
|
15548
15471
|
var require_call_bind = __commonJS({
|
|
15549
15472
|
"../node_modules/call-bind/index.js"(exports, module3) {
|
|
15550
15473
|
"use strict";
|
|
15551
|
-
var
|
|
15474
|
+
var bind2 = require_function_bind();
|
|
15552
15475
|
var GetIntrinsic = require_get_intrinsic();
|
|
15553
15476
|
var setFunctionLength = require_set_function_length();
|
|
15554
15477
|
var $TypeError = require_type();
|
|
15555
15478
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
15556
15479
|
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
15557
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) ||
|
|
15480
|
+
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
15558
15481
|
var $defineProperty = require_es_define_property();
|
|
15559
15482
|
var $max = GetIntrinsic("%Math.max%");
|
|
15560
15483
|
module3.exports = function callBind(originalFunction) {
|
|
15561
15484
|
if (typeof originalFunction !== "function") {
|
|
15562
15485
|
throw new $TypeError("a function is required");
|
|
15563
15486
|
}
|
|
15564
|
-
var func = $reflectApply(
|
|
15487
|
+
var func = $reflectApply(bind2, $call, arguments);
|
|
15565
15488
|
return setFunctionLength(
|
|
15566
15489
|
func,
|
|
15567
15490
|
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
@@ -15569,7 +15492,7 @@ var PodOS = (() => {
|
|
|
15569
15492
|
);
|
|
15570
15493
|
};
|
|
15571
15494
|
var applyBind = function applyBind2() {
|
|
15572
|
-
return $reflectApply(
|
|
15495
|
+
return $reflectApply(bind2, $apply, arguments);
|
|
15573
15496
|
};
|
|
15574
15497
|
if ($defineProperty) {
|
|
15575
15498
|
$defineProperty(module3.exports, "apply", { value: applyBind });
|
|
@@ -15706,7 +15629,7 @@ var PodOS = (() => {
|
|
|
15706
15629
|
depth3 = 0;
|
|
15707
15630
|
}
|
|
15708
15631
|
if (depth3 >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
15709
|
-
return
|
|
15632
|
+
return isArray2(obj) ? "[Array]" : "[Object]";
|
|
15710
15633
|
}
|
|
15711
15634
|
var indent = getIndent(opts, depth3);
|
|
15712
15635
|
if (typeof seen === "undefined") {
|
|
@@ -15714,10 +15637,10 @@ var PodOS = (() => {
|
|
|
15714
15637
|
} else if (indexOf(seen, obj) >= 0) {
|
|
15715
15638
|
return "[Circular]";
|
|
15716
15639
|
}
|
|
15717
|
-
function inspect(value6,
|
|
15718
|
-
if (
|
|
15640
|
+
function inspect(value6, from2, noIndent) {
|
|
15641
|
+
if (from2) {
|
|
15719
15642
|
seen = $arrSlice.call(seen);
|
|
15720
|
-
seen.push(
|
|
15643
|
+
seen.push(from2);
|
|
15721
15644
|
}
|
|
15722
15645
|
if (noIndent) {
|
|
15723
15646
|
var newOpts = {
|
|
@@ -15752,7 +15675,7 @@ var PodOS = (() => {
|
|
|
15752
15675
|
s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
15753
15676
|
return s;
|
|
15754
15677
|
}
|
|
15755
|
-
if (
|
|
15678
|
+
if (isArray2(obj)) {
|
|
15756
15679
|
if (obj.length === 0) {
|
|
15757
15680
|
return "[]";
|
|
15758
15681
|
}
|
|
@@ -15848,7 +15771,7 @@ var PodOS = (() => {
|
|
|
15848
15771
|
function quote(s) {
|
|
15849
15772
|
return $replace.call(String(s), /"/g, """);
|
|
15850
15773
|
}
|
|
15851
|
-
function
|
|
15774
|
+
function isArray2(obj) {
|
|
15852
15775
|
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
15853
15776
|
}
|
|
15854
15777
|
function isDate(obj) {
|
|
@@ -16074,7 +15997,7 @@ var PodOS = (() => {
|
|
|
16074
15997
|
return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
|
|
16075
15998
|
}
|
|
16076
15999
|
function arrObjKeys(obj, inspect) {
|
|
16077
|
-
var isArr =
|
|
16000
|
+
var isArr = isArray2(obj);
|
|
16078
16001
|
var xs = [];
|
|
16079
16002
|
if (isArr) {
|
|
16080
16003
|
xs.length = obj.length;
|
|
@@ -16264,7 +16187,7 @@ var PodOS = (() => {
|
|
|
16264
16187
|
"use strict";
|
|
16265
16188
|
var formats = require_formats();
|
|
16266
16189
|
var has = Object.prototype.hasOwnProperty;
|
|
16267
|
-
var
|
|
16190
|
+
var isArray2 = Array.isArray;
|
|
16268
16191
|
var hexTable = function() {
|
|
16269
16192
|
var array = [];
|
|
16270
16193
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -16276,7 +16199,7 @@ var PodOS = (() => {
|
|
|
16276
16199
|
while (queue.length > 1) {
|
|
16277
16200
|
var item4 = queue.pop();
|
|
16278
16201
|
var obj = item4.obj[item4.prop];
|
|
16279
|
-
if (
|
|
16202
|
+
if (isArray2(obj)) {
|
|
16280
16203
|
var compacted = [];
|
|
16281
16204
|
for (var j = 0; j < obj.length; ++j) {
|
|
16282
16205
|
if (typeof obj[j] !== "undefined") {
|
|
@@ -16296,12 +16219,12 @@ var PodOS = (() => {
|
|
|
16296
16219
|
}
|
|
16297
16220
|
return obj;
|
|
16298
16221
|
};
|
|
16299
|
-
var
|
|
16222
|
+
var merge2 = function merge3(target5, source8, options) {
|
|
16300
16223
|
if (!source8) {
|
|
16301
16224
|
return target5;
|
|
16302
16225
|
}
|
|
16303
16226
|
if (typeof source8 !== "object") {
|
|
16304
|
-
if (
|
|
16227
|
+
if (isArray2(target5)) {
|
|
16305
16228
|
target5.push(source8);
|
|
16306
16229
|
} else if (target5 && typeof target5 === "object") {
|
|
16307
16230
|
if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source8)) {
|
|
@@ -16316,15 +16239,15 @@ var PodOS = (() => {
|
|
|
16316
16239
|
return [target5].concat(source8);
|
|
16317
16240
|
}
|
|
16318
16241
|
var mergeTarget = target5;
|
|
16319
|
-
if (
|
|
16242
|
+
if (isArray2(target5) && !isArray2(source8)) {
|
|
16320
16243
|
mergeTarget = arrayToObject(target5, options);
|
|
16321
16244
|
}
|
|
16322
|
-
if (
|
|
16245
|
+
if (isArray2(target5) && isArray2(source8)) {
|
|
16323
16246
|
source8.forEach(function(item4, i) {
|
|
16324
16247
|
if (has.call(target5, i)) {
|
|
16325
16248
|
var targetItem2 = target5[i];
|
|
16326
16249
|
if (targetItem2 && typeof targetItem2 === "object" && item4 && typeof item4 === "object") {
|
|
16327
|
-
target5[i] =
|
|
16250
|
+
target5[i] = merge3(targetItem2, item4, options);
|
|
16328
16251
|
} else {
|
|
16329
16252
|
target5.push(item4);
|
|
16330
16253
|
}
|
|
@@ -16337,7 +16260,7 @@ var PodOS = (() => {
|
|
|
16337
16260
|
return Object.keys(source8).reduce(function(acc, key3) {
|
|
16338
16261
|
var value6 = source8[key3];
|
|
16339
16262
|
if (has.call(acc, key3)) {
|
|
16340
|
-
acc[key3] =
|
|
16263
|
+
acc[key3] = merge3(acc[key3], value6, options);
|
|
16341
16264
|
} else {
|
|
16342
16265
|
acc[key3] = value6;
|
|
16343
16266
|
}
|
|
@@ -16433,7 +16356,7 @@ var PodOS = (() => {
|
|
|
16433
16356
|
return [].concat(a, b);
|
|
16434
16357
|
};
|
|
16435
16358
|
var maybeMap = function maybeMap2(val, fn2) {
|
|
16436
|
-
if (
|
|
16359
|
+
if (isArray2(val)) {
|
|
16437
16360
|
var mapped = [];
|
|
16438
16361
|
for (var i = 0; i < val.length; i += 1) {
|
|
16439
16362
|
mapped.push(fn2(val[i]));
|
|
@@ -16452,7 +16375,7 @@ var PodOS = (() => {
|
|
|
16452
16375
|
isBuffer,
|
|
16453
16376
|
isRegExp,
|
|
16454
16377
|
maybeMap,
|
|
16455
|
-
merge
|
|
16378
|
+
merge: merge2
|
|
16456
16379
|
};
|
|
16457
16380
|
}
|
|
16458
16381
|
});
|
|
@@ -16477,10 +16400,10 @@ var PodOS = (() => {
|
|
|
16477
16400
|
return prefix2;
|
|
16478
16401
|
}
|
|
16479
16402
|
};
|
|
16480
|
-
var
|
|
16403
|
+
var isArray2 = Array.isArray;
|
|
16481
16404
|
var push = Array.prototype.push;
|
|
16482
16405
|
var pushToArray = function(arr, valueOrArray) {
|
|
16483
|
-
push.apply(arr,
|
|
16406
|
+
push.apply(arr, isArray2(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
16484
16407
|
};
|
|
16485
16408
|
var toISO = Date.prototype.toISOString;
|
|
16486
16409
|
var defaultFormat = formats["default"];
|
|
@@ -16530,7 +16453,7 @@ var PodOS = (() => {
|
|
|
16530
16453
|
obj = filter2(prefix2, obj);
|
|
16531
16454
|
} else if (obj instanceof Date) {
|
|
16532
16455
|
obj = serializeDate(obj);
|
|
16533
|
-
} else if (generateArrayPrefix === "comma" &&
|
|
16456
|
+
} else if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
16534
16457
|
obj = utils.maybeMap(obj, function(value7) {
|
|
16535
16458
|
if (value7 instanceof Date) {
|
|
16536
16459
|
return serializeDate(value7);
|
|
@@ -16556,25 +16479,25 @@ var PodOS = (() => {
|
|
|
16556
16479
|
return values;
|
|
16557
16480
|
}
|
|
16558
16481
|
var objKeys;
|
|
16559
|
-
if (generateArrayPrefix === "comma" &&
|
|
16482
|
+
if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
16560
16483
|
if (encodeValuesOnly && encoder2) {
|
|
16561
16484
|
obj = utils.maybeMap(obj, encoder2);
|
|
16562
16485
|
}
|
|
16563
16486
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
16564
|
-
} else if (
|
|
16487
|
+
} else if (isArray2(filter2)) {
|
|
16565
16488
|
objKeys = filter2;
|
|
16566
16489
|
} else {
|
|
16567
16490
|
var keys = Object.keys(obj);
|
|
16568
16491
|
objKeys = sort2 ? keys.sort(sort2) : keys;
|
|
16569
16492
|
}
|
|
16570
|
-
var adjustedPrefix = commaRoundTrip &&
|
|
16493
|
+
var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? prefix2 + "[]" : prefix2;
|
|
16571
16494
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
16572
16495
|
var key3 = objKeys[j];
|
|
16573
16496
|
var value6 = typeof key3 === "object" && typeof key3.value !== "undefined" ? key3.value : obj[key3];
|
|
16574
16497
|
if (skipNulls && value6 === null) {
|
|
16575
16498
|
continue;
|
|
16576
16499
|
}
|
|
16577
|
-
var keyPrefix =
|
|
16500
|
+
var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key3) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key3 : "[" + key3 + "]");
|
|
16578
16501
|
sideChannel.set(object6, step4);
|
|
16579
16502
|
var valueSideChannel = getSideChannel();
|
|
16580
16503
|
valueSideChannel.set(sentinel, sideChannel);
|
|
@@ -16585,7 +16508,7 @@ var PodOS = (() => {
|
|
|
16585
16508
|
commaRoundTrip,
|
|
16586
16509
|
strictNullHandling,
|
|
16587
16510
|
skipNulls,
|
|
16588
|
-
generateArrayPrefix === "comma" && encodeValuesOnly &&
|
|
16511
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder2,
|
|
16589
16512
|
filter2,
|
|
16590
16513
|
sort2,
|
|
16591
16514
|
allowDots,
|
|
@@ -16619,7 +16542,7 @@ var PodOS = (() => {
|
|
|
16619
16542
|
}
|
|
16620
16543
|
var formatter = formats.formatters[format4];
|
|
16621
16544
|
var filter2 = defaults.filter;
|
|
16622
|
-
if (typeof opts.filter === "function" ||
|
|
16545
|
+
if (typeof opts.filter === "function" || isArray2(opts.filter)) {
|
|
16623
16546
|
filter2 = opts.filter;
|
|
16624
16547
|
}
|
|
16625
16548
|
return {
|
|
@@ -16648,7 +16571,7 @@ var PodOS = (() => {
|
|
|
16648
16571
|
if (typeof options.filter === "function") {
|
|
16649
16572
|
filter2 = options.filter;
|
|
16650
16573
|
obj = filter2("", obj);
|
|
16651
|
-
} else if (
|
|
16574
|
+
} else if (isArray2(options.filter)) {
|
|
16652
16575
|
filter2 = options.filter;
|
|
16653
16576
|
objKeys = filter2;
|
|
16654
16577
|
}
|
|
@@ -16720,7 +16643,7 @@ var PodOS = (() => {
|
|
|
16720
16643
|
"use strict";
|
|
16721
16644
|
var utils = require_utils();
|
|
16722
16645
|
var has = Object.prototype.hasOwnProperty;
|
|
16723
|
-
var
|
|
16646
|
+
var isArray2 = Array.isArray;
|
|
16724
16647
|
var defaults = {
|
|
16725
16648
|
allowDots: false,
|
|
16726
16649
|
allowPrototypes: false,
|
|
@@ -16797,7 +16720,7 @@ var PodOS = (() => {
|
|
|
16797
16720
|
val = interpretNumericEntities(val);
|
|
16798
16721
|
}
|
|
16799
16722
|
if (part3.indexOf("[]=") > -1) {
|
|
16800
|
-
val =
|
|
16723
|
+
val = isArray2(val) ? [val] : val;
|
|
16801
16724
|
}
|
|
16802
16725
|
if (has.call(obj, key3)) {
|
|
16803
16726
|
obj[key3] = utils.combine(obj[key3], val);
|
|
@@ -17403,14 +17326,14 @@ var PodOS = (() => {
|
|
|
17403
17326
|
result5.href = result5.format();
|
|
17404
17327
|
return result5;
|
|
17405
17328
|
}
|
|
17406
|
-
var
|
|
17407
|
-
var hasTrailingSlash = (result5.host || relative2.host || srcPath.length > 1) && (
|
|
17329
|
+
var last3 = srcPath.slice(-1)[0];
|
|
17330
|
+
var hasTrailingSlash = (result5.host || relative2.host || srcPath.length > 1) && (last3 === "." || last3 === "..") || last3 === "";
|
|
17408
17331
|
var up = 0;
|
|
17409
17332
|
for (var i = srcPath.length; i >= 0; i--) {
|
|
17410
|
-
|
|
17411
|
-
if (
|
|
17333
|
+
last3 = srcPath[i];
|
|
17334
|
+
if (last3 === ".") {
|
|
17412
17335
|
srcPath.splice(i, 1);
|
|
17413
|
-
} else if (
|
|
17336
|
+
} else if (last3 === "..") {
|
|
17414
17337
|
srcPath.splice(i, 1);
|
|
17415
17338
|
up++;
|
|
17416
17339
|
} else if (up) {
|
|
@@ -17585,7 +17508,7 @@ var PodOS = (() => {
|
|
|
17585
17508
|
function peg$parse(input2, options) {
|
|
17586
17509
|
options = options !== void 0 ? options : {};
|
|
17587
17510
|
var peg$FAILED = {}, peg$startRuleFunctions = { turtleDoc: peg$parseturtleDoc }, peg$startRuleFunction = peg$parseturtleDoc, peg$c0 = function(statements) {
|
|
17588
|
-
var jsonld =
|
|
17511
|
+
var jsonld = context4.toJSON();
|
|
17589
17512
|
jsonld["@graph"] = [];
|
|
17590
17513
|
statements.filter((a) => Array.isArray(a)).forEach((a) => {
|
|
17591
17514
|
a.forEach((b) => {
|
|
@@ -17602,10 +17525,10 @@ var PodOS = (() => {
|
|
|
17602
17525
|
}, peg$c4 = "#", peg$c5 = peg$literalExpectation("#", false), peg$c6 = /^[^\n]/, peg$c7 = peg$classExpectation(["\n"], true, false), peg$c8 = "\n", peg$c9 = peg$literalExpectation("\n", false), peg$c10 = function(a) {
|
|
17603
17526
|
return a.join("");
|
|
17604
17527
|
}, peg$c11 = "@prefix", peg$c12 = peg$literalExpectation("@prefix", false), peg$c13 = function(a, b) {
|
|
17605
|
-
|
|
17528
|
+
context4.addPrefix(a === "" ? "0" : a, b);
|
|
17606
17529
|
return {};
|
|
17607
17530
|
}, peg$c14 = "@base", peg$c15 = peg$literalExpectation("@base", false), peg$c16 = function(a) {
|
|
17608
|
-
|
|
17531
|
+
context4.addBase(a);
|
|
17609
17532
|
return {};
|
|
17610
17533
|
}, peg$c17 = /^[Bb]/, peg$c18 = peg$classExpectation(["B", "b"], false, false), peg$c19 = /^[Aa]/, peg$c20 = peg$classExpectation(["A", "a"], false, false), peg$c21 = /^[Ss]/, peg$c22 = peg$classExpectation(["S", "s"], false, false), peg$c23 = /^[Ee]/, peg$c24 = peg$classExpectation(["E", "e"], false, false), peg$c25 = /^[Pp]/, peg$c26 = peg$classExpectation(["P", "p"], false, false), peg$c27 = /^[Rr]/, peg$c28 = peg$classExpectation(["R", "r"], false, false), peg$c29 = /^[Ff]/, peg$c30 = peg$classExpectation(["F", "f"], false, false), peg$c31 = /^[Ii]/, peg$c32 = peg$classExpectation(["I", "i"], false, false), peg$c33 = /^[Xx]/, peg$c34 = peg$classExpectation(["X", "x"], false, false), peg$c35 = function(s, p) {
|
|
17611
17534
|
var x = {};
|
|
@@ -17677,23 +17600,23 @@ var PodOS = (() => {
|
|
|
17677
17600
|
return parseInt(a);
|
|
17678
17601
|
if (b === "http://www.w3.org/2001/XMLSchema#double")
|
|
17679
17602
|
return parseFloat(a);
|
|
17680
|
-
const uri6 =
|
|
17603
|
+
const uri6 = context4.resolve(b, true);
|
|
17681
17604
|
if (uri6) {
|
|
17682
17605
|
const prefix2 = b.split(":")[0];
|
|
17683
17606
|
if (uri6 === "http://www.w3.org/2001/XMLSchema#boolean" && a === "true") {
|
|
17684
|
-
|
|
17607
|
+
context4.decrement(prefix2);
|
|
17685
17608
|
return true;
|
|
17686
17609
|
}
|
|
17687
17610
|
if (uri6 === "http://www.w3.org/2001/XMLSchema#boolean" && a === "false") {
|
|
17688
|
-
|
|
17611
|
+
context4.decrement(prefix2);
|
|
17689
17612
|
return false;
|
|
17690
17613
|
}
|
|
17691
17614
|
if (uri6 === "http://www.w3.org/2001/XMLSchema#integer") {
|
|
17692
|
-
|
|
17615
|
+
context4.decrement(prefix2);
|
|
17693
17616
|
return parseInt(a);
|
|
17694
17617
|
}
|
|
17695
17618
|
if (uri6 === "http://www.w3.org/2001/XMLSchema#double") {
|
|
17696
|
-
|
|
17619
|
+
context4.decrement(prefix2);
|
|
17697
17620
|
return parseFloat(a);
|
|
17698
17621
|
}
|
|
17699
17622
|
}
|
|
@@ -17719,7 +17642,7 @@ var PodOS = (() => {
|
|
|
17719
17642
|
if (decoded.match(/^[^\u0000-\u0020<>"{}|^`\\]*$/)) {
|
|
17720
17643
|
var join2 = a.join("");
|
|
17721
17644
|
try {
|
|
17722
|
-
return
|
|
17645
|
+
return context4.resolve(join2);
|
|
17723
17646
|
} catch (e) {
|
|
17724
17647
|
error5("Invalid IRIREF " + join2);
|
|
17725
17648
|
}
|
|
@@ -17727,14 +17650,14 @@ var PodOS = (() => {
|
|
|
17727
17650
|
error5("Invalid IRIREF " + a.join("") + " / " + decoded);
|
|
17728
17651
|
}, peg$c80 = ":", peg$c81 = peg$literalExpectation(":", false), peg$c82 = function(a) {
|
|
17729
17652
|
a = a || "0";
|
|
17730
|
-
if (
|
|
17653
|
+
if (context4.hasPrefix(a) === false)
|
|
17731
17654
|
error5("undefined prefix " + a);
|
|
17732
17655
|
return a;
|
|
17733
17656
|
}, peg$c83 = function(a) {
|
|
17734
17657
|
return a || "";
|
|
17735
17658
|
}, peg$c84 = function(a, b) {
|
|
17736
|
-
|
|
17737
|
-
return
|
|
17659
|
+
context4.increment(a);
|
|
17660
|
+
return context4.resolve(a + ":" + b);
|
|
17738
17661
|
}, peg$c85 = "_:", peg$c86 = peg$literalExpectation("_:", false), peg$c87 = /^[0-9]/, peg$c88 = peg$classExpectation([["0", "9"]], false, false), peg$c89 = "@", peg$c90 = peg$literalExpectation("@", false), peg$c91 = /^[a-zA-Z]/, peg$c92 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false), peg$c93 = "-", peg$c94 = peg$literalExpectation("-", false), peg$c95 = /^[a-zA-Z0-9]/, peg$c96 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"]], false, false), peg$c97 = function(a, s) {
|
|
17739
17662
|
return "-" + s.join("");
|
|
17740
17663
|
}, peg$c98 = function(a, b) {
|
|
@@ -22051,22 +21974,22 @@ var PodOS = (() => {
|
|
|
22051
21974
|
a[property3] = value6;
|
|
22052
21975
|
return a;
|
|
22053
21976
|
}
|
|
22054
|
-
var
|
|
21977
|
+
var context4 = {
|
|
22055
21978
|
base: [],
|
|
22056
21979
|
data: {},
|
|
22057
21980
|
addBase: function(uri6) {
|
|
22058
|
-
if (
|
|
22059
|
-
|
|
21981
|
+
if (context4.base.length === 0) {
|
|
21982
|
+
context4.base.push(uri6);
|
|
22060
21983
|
return;
|
|
22061
21984
|
}
|
|
22062
|
-
const
|
|
22063
|
-
if (
|
|
22064
|
-
|
|
21985
|
+
const last3 = context4.base[context4.base.length - 1];
|
|
21986
|
+
if (last3 !== uri6)
|
|
21987
|
+
context4.base.push(new URL4(uri6, last3).toString());
|
|
22065
21988
|
},
|
|
22066
21989
|
addPrefix: function(prefix2, uri6) {
|
|
22067
|
-
const list =
|
|
21990
|
+
const list = context4.data[prefix2];
|
|
22068
21991
|
if (list === void 0) {
|
|
22069
|
-
|
|
21992
|
+
context4.data[prefix2] = [{ uri: uri6, count: 0 }];
|
|
22070
21993
|
} else if (list[list.length - 1].uri !== uri6) {
|
|
22071
21994
|
list.push({ uri: uri6, count: 0 });
|
|
22072
21995
|
}
|
|
@@ -22075,15 +21998,15 @@ var PodOS = (() => {
|
|
|
22075
21998
|
return this.data[prefix2] !== void 0;
|
|
22076
21999
|
},
|
|
22077
22000
|
resolve: function(pname, force) {
|
|
22078
|
-
const prefix2 = Object.keys(
|
|
22001
|
+
const prefix2 = Object.keys(context4.data).find((key3) => pname.indexOf(key3 + ":") === 0);
|
|
22079
22002
|
if (prefix2 !== void 0) {
|
|
22080
|
-
const list =
|
|
22003
|
+
const list = context4.data[prefix2];
|
|
22081
22004
|
if (list.length === 1 && force !== true && isIRI(list[0].uri))
|
|
22082
22005
|
return pname;
|
|
22083
22006
|
const uri6 = list[list.length - 1].uri;
|
|
22084
22007
|
return pname.replace(prefix2 + ":", uri6);
|
|
22085
22008
|
} else {
|
|
22086
|
-
var base2 =
|
|
22009
|
+
var base2 = context4.base.length === 0 ? options.baseIRI : context4.base[context4.base.length - 1];
|
|
22087
22010
|
if (!base2 || pname.match(/^(http:|https:|urn:|file:)/))
|
|
22088
22011
|
return pname;
|
|
22089
22012
|
if (pname.indexOf("//") === 0 && base2)
|
|
@@ -22092,24 +22015,24 @@ var PodOS = (() => {
|
|
|
22092
22015
|
}
|
|
22093
22016
|
},
|
|
22094
22017
|
increment: function(prefix2) {
|
|
22095
|
-
const list =
|
|
22018
|
+
const list = context4.data[prefix2];
|
|
22096
22019
|
if (list !== void 0)
|
|
22097
22020
|
list[list.length - 1].count++;
|
|
22098
22021
|
},
|
|
22099
22022
|
decrement: function(prefix2) {
|
|
22100
|
-
const list =
|
|
22023
|
+
const list = context4.data[prefix2];
|
|
22101
22024
|
if (list !== void 0)
|
|
22102
22025
|
list[list.length - 1].count--;
|
|
22103
22026
|
},
|
|
22104
22027
|
toJSON: function() {
|
|
22105
22028
|
const root = {};
|
|
22106
|
-
if (
|
|
22029
|
+
if (context4.base.length > 0) {
|
|
22107
22030
|
if (root["@context"] === void 0)
|
|
22108
22031
|
root["@context"] = {};
|
|
22109
|
-
root["@context"]["@base"] =
|
|
22032
|
+
root["@context"]["@base"] = context4.base[0];
|
|
22110
22033
|
}
|
|
22111
|
-
Object.keys(
|
|
22112
|
-
const head =
|
|
22034
|
+
Object.keys(context4.data).forEach((key3) => {
|
|
22035
|
+
const head = context4.data[key3][0];
|
|
22113
22036
|
if (head.uri === "http://www.w3.org/2001/XMLSchema#" && head.count < 1)
|
|
22114
22037
|
return;
|
|
22115
22038
|
if (!isIRI(head.uri))
|
|
@@ -23892,17 +23815,17 @@ var PodOS = (() => {
|
|
|
23892
23815
|
*/
|
|
23893
23816
|
}, {
|
|
23894
23817
|
key: "list",
|
|
23895
|
-
value: function list(values,
|
|
23896
|
-
if (
|
|
23897
|
-
var collection6 =
|
|
23818
|
+
value: function list(values, context4) {
|
|
23819
|
+
if (context4.rdfFactory.supports["COLLECTIONS"]) {
|
|
23820
|
+
var collection6 = context4.rdfFactory.collection();
|
|
23898
23821
|
values.forEach(function(val) {
|
|
23899
23822
|
collection6.append(val);
|
|
23900
23823
|
});
|
|
23901
23824
|
return collection6;
|
|
23902
23825
|
} else {
|
|
23903
|
-
var node2 =
|
|
23904
|
-
var statements = arrayToStatements(
|
|
23905
|
-
|
|
23826
|
+
var node2 = context4.rdfFactory.blankNode();
|
|
23827
|
+
var statements = arrayToStatements(context4.rdfFactory, node2, values);
|
|
23828
|
+
context4.addAll(statements);
|
|
23906
23829
|
return node2;
|
|
23907
23830
|
}
|
|
23908
23831
|
}
|
|
@@ -24229,7 +24152,7 @@ var PodOS = (() => {
|
|
|
24229
24152
|
}
|
|
24230
24153
|
return res;
|
|
24231
24154
|
}
|
|
24232
|
-
function
|
|
24155
|
+
function bind2(x, binding2) {
|
|
24233
24156
|
var y = binding2[x];
|
|
24234
24157
|
if (y === void 0) {
|
|
24235
24158
|
return x;
|
|
@@ -24327,7 +24250,7 @@ var PodOS = (() => {
|
|
|
24327
24250
|
} else if (t.isVar && !(bindings[t] !== void 0)) {
|
|
24328
24251
|
item4.nvars++;
|
|
24329
24252
|
} else {
|
|
24330
|
-
t =
|
|
24253
|
+
t = bind2(terms[i], bindings);
|
|
24331
24254
|
if (f2.redirections[f2.id(t)]) {
|
|
24332
24255
|
t = f2.redirections[f2.id(t)];
|
|
24333
24256
|
}
|
|
@@ -25031,12 +24954,12 @@ var PodOS = (() => {
|
|
|
25031
24954
|
*/
|
|
25032
24955
|
}, {
|
|
25033
24956
|
key: "checkStatementList",
|
|
25034
|
-
value: function checkStatementList(sts,
|
|
25035
|
-
if (
|
|
25036
|
-
|
|
24957
|
+
value: function checkStatementList(sts, from2) {
|
|
24958
|
+
if (from2 === void 0) {
|
|
24959
|
+
from2 = 0;
|
|
25037
24960
|
}
|
|
25038
24961
|
var names = ["subject", "predicate", "object", "why"];
|
|
25039
|
-
var origin4 = " found in " + names[
|
|
24962
|
+
var origin4 = " found in " + names[from2] + " index.";
|
|
25040
24963
|
var st3;
|
|
25041
24964
|
for (var j = 0; j < sts.length; j++) {
|
|
25042
24965
|
st3 = sts[j];
|
|
@@ -26210,7 +26133,7 @@ var PodOS = (() => {
|
|
|
26210
26133
|
}
|
|
26211
26134
|
}, {
|
|
26212
26135
|
key: "bind",
|
|
26213
|
-
value: function
|
|
26136
|
+
value: function bind2(qn, uri6) {
|
|
26214
26137
|
if (qn == "") {
|
|
26215
26138
|
} else {
|
|
26216
26139
|
this._store.setPrefixForURI(qn, uri6);
|
|
@@ -29282,8 +29205,8 @@ var PodOS = (() => {
|
|
|
29282
29205
|
const rel2 = api.parse(iri.substr(root.length));
|
|
29283
29206
|
const baseSegments = base2.normalizedPath.split("/");
|
|
29284
29207
|
const iriSegments = rel2.normalizedPath.split("/");
|
|
29285
|
-
const
|
|
29286
|
-
while (baseSegments.length > 0 && iriSegments.length >
|
|
29208
|
+
const last3 = rel2.fragment || rel2.query ? 0 : 1;
|
|
29209
|
+
while (baseSegments.length > 0 && iriSegments.length > last3) {
|
|
29287
29210
|
if (baseSegments[0] !== iriSegments[0]) {
|
|
29288
29211
|
break;
|
|
29289
29212
|
}
|
|
@@ -29711,26 +29634,26 @@ var PodOS = (() => {
|
|
|
29711
29634
|
}
|
|
29712
29635
|
return arr;
|
|
29713
29636
|
};
|
|
29714
|
-
Yallist.prototype.slice = function(
|
|
29637
|
+
Yallist.prototype.slice = function(from2, to2) {
|
|
29715
29638
|
to2 = to2 || this.length;
|
|
29716
29639
|
if (to2 < 0) {
|
|
29717
29640
|
to2 += this.length;
|
|
29718
29641
|
}
|
|
29719
|
-
|
|
29720
|
-
if (
|
|
29721
|
-
|
|
29642
|
+
from2 = from2 || 0;
|
|
29643
|
+
if (from2 < 0) {
|
|
29644
|
+
from2 += this.length;
|
|
29722
29645
|
}
|
|
29723
29646
|
var ret = new Yallist();
|
|
29724
|
-
if (to2 <
|
|
29647
|
+
if (to2 < from2 || to2 < 0) {
|
|
29725
29648
|
return ret;
|
|
29726
29649
|
}
|
|
29727
|
-
if (
|
|
29728
|
-
|
|
29650
|
+
if (from2 < 0) {
|
|
29651
|
+
from2 = 0;
|
|
29729
29652
|
}
|
|
29730
29653
|
if (to2 > this.length) {
|
|
29731
29654
|
to2 = this.length;
|
|
29732
29655
|
}
|
|
29733
|
-
for (var i = 0, walker = this.head; walker !== null && i <
|
|
29656
|
+
for (var i = 0, walker = this.head; walker !== null && i < from2; i++) {
|
|
29734
29657
|
walker = walker.next;
|
|
29735
29658
|
}
|
|
29736
29659
|
for (; walker !== null && i < to2; i++, walker = walker.next) {
|
|
@@ -29738,21 +29661,21 @@ var PodOS = (() => {
|
|
|
29738
29661
|
}
|
|
29739
29662
|
return ret;
|
|
29740
29663
|
};
|
|
29741
|
-
Yallist.prototype.sliceReverse = function(
|
|
29664
|
+
Yallist.prototype.sliceReverse = function(from2, to2) {
|
|
29742
29665
|
to2 = to2 || this.length;
|
|
29743
29666
|
if (to2 < 0) {
|
|
29744
29667
|
to2 += this.length;
|
|
29745
29668
|
}
|
|
29746
|
-
|
|
29747
|
-
if (
|
|
29748
|
-
|
|
29669
|
+
from2 = from2 || 0;
|
|
29670
|
+
if (from2 < 0) {
|
|
29671
|
+
from2 += this.length;
|
|
29749
29672
|
}
|
|
29750
29673
|
var ret = new Yallist();
|
|
29751
|
-
if (to2 <
|
|
29674
|
+
if (to2 < from2 || to2 < 0) {
|
|
29752
29675
|
return ret;
|
|
29753
29676
|
}
|
|
29754
|
-
if (
|
|
29755
|
-
|
|
29677
|
+
if (from2 < 0) {
|
|
29678
|
+
from2 = 0;
|
|
29756
29679
|
}
|
|
29757
29680
|
if (to2 > this.length) {
|
|
29758
29681
|
to2 = this.length;
|
|
@@ -29760,7 +29683,7 @@ var PodOS = (() => {
|
|
|
29760
29683
|
for (var i = this.length, walker = this.tail; walker !== null && i > to2; i--) {
|
|
29761
29684
|
walker = walker.prev;
|
|
29762
29685
|
}
|
|
29763
|
-
for (; walker !== null && i >
|
|
29686
|
+
for (; walker !== null && i > from2; i--, walker = walker.prev) {
|
|
29764
29687
|
ret.push(walker.value);
|
|
29765
29688
|
}
|
|
29766
29689
|
return ret;
|
|
@@ -30178,17 +30101,17 @@ var PodOS = (() => {
|
|
|
30178
30101
|
}
|
|
30179
30102
|
async resolve({
|
|
30180
30103
|
activeCtx,
|
|
30181
|
-
context:
|
|
30104
|
+
context: context4,
|
|
30182
30105
|
documentLoader,
|
|
30183
30106
|
base: base2,
|
|
30184
30107
|
cycles = /* @__PURE__ */ new Set()
|
|
30185
30108
|
}) {
|
|
30186
|
-
if (
|
|
30187
|
-
|
|
30109
|
+
if (context4 && _isObject(context4) && context4["@context"]) {
|
|
30110
|
+
context4 = context4["@context"];
|
|
30188
30111
|
}
|
|
30189
|
-
|
|
30112
|
+
context4 = _asArray(context4);
|
|
30190
30113
|
const allResolved = [];
|
|
30191
|
-
for (const ctx of
|
|
30114
|
+
for (const ctx of context4) {
|
|
30192
30115
|
if (_isString(ctx)) {
|
|
30193
30116
|
let resolved2 = this._get(ctx);
|
|
30194
30117
|
if (!resolved2) {
|
|
@@ -30208,7 +30131,7 @@ var PodOS = (() => {
|
|
|
30208
30131
|
continue;
|
|
30209
30132
|
}
|
|
30210
30133
|
if (!_isObject(ctx)) {
|
|
30211
|
-
_throwInvalidLocalContext(
|
|
30134
|
+
_throwInvalidLocalContext(context4);
|
|
30212
30135
|
}
|
|
30213
30136
|
const key3 = JSON.stringify(ctx);
|
|
30214
30137
|
let resolved = this._get(key3);
|
|
@@ -30247,13 +30170,13 @@ var PodOS = (() => {
|
|
|
30247
30170
|
}
|
|
30248
30171
|
async _resolveRemoteContext({ activeCtx, url: url7, documentLoader, base: base2, cycles }) {
|
|
30249
30172
|
url7 = prependBase(base2, url7);
|
|
30250
|
-
const { context:
|
|
30173
|
+
const { context: context4, remoteDoc } = await this._fetchContext(
|
|
30251
30174
|
{ activeCtx, url: url7, documentLoader, cycles }
|
|
30252
30175
|
);
|
|
30253
30176
|
base2 = remoteDoc.documentUrl || url7;
|
|
30254
|
-
_resolveContextUrls({ context:
|
|
30177
|
+
_resolveContextUrls({ context: context4, base: base2 });
|
|
30255
30178
|
const resolved = await this.resolve(
|
|
30256
|
-
{ activeCtx, context:
|
|
30179
|
+
{ activeCtx, context: context4, documentLoader, base: base2, cycles }
|
|
30257
30180
|
);
|
|
30258
30181
|
this._cacheResolvedContext({ key: url7, resolved, tag: remoteDoc.tag });
|
|
30259
30182
|
return resolved;
|
|
@@ -30280,13 +30203,13 @@ var PodOS = (() => {
|
|
|
30280
30203
|
);
|
|
30281
30204
|
}
|
|
30282
30205
|
cycles.add(url7);
|
|
30283
|
-
let
|
|
30206
|
+
let context4;
|
|
30284
30207
|
let remoteDoc;
|
|
30285
30208
|
try {
|
|
30286
30209
|
remoteDoc = await documentLoader(url7);
|
|
30287
|
-
|
|
30288
|
-
if (_isString(
|
|
30289
|
-
|
|
30210
|
+
context4 = remoteDoc.document || null;
|
|
30211
|
+
if (_isString(context4)) {
|
|
30212
|
+
context4 = JSON.parse(context4);
|
|
30290
30213
|
}
|
|
30291
30214
|
} catch (e) {
|
|
30292
30215
|
throw new JsonLdError(
|
|
@@ -30295,25 +30218,25 @@ var PodOS = (() => {
|
|
|
30295
30218
|
{ code: "loading remote context failed", url: url7, cause: e }
|
|
30296
30219
|
);
|
|
30297
30220
|
}
|
|
30298
|
-
if (!_isObject(
|
|
30221
|
+
if (!_isObject(context4)) {
|
|
30299
30222
|
throw new JsonLdError(
|
|
30300
30223
|
"Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.",
|
|
30301
30224
|
"jsonld.InvalidUrl",
|
|
30302
30225
|
{ code: "invalid remote context", url: url7 }
|
|
30303
30226
|
);
|
|
30304
30227
|
}
|
|
30305
|
-
if (!("@context" in
|
|
30306
|
-
|
|
30228
|
+
if (!("@context" in context4)) {
|
|
30229
|
+
context4 = { "@context": {} };
|
|
30307
30230
|
} else {
|
|
30308
|
-
|
|
30231
|
+
context4 = { "@context": context4["@context"] };
|
|
30309
30232
|
}
|
|
30310
30233
|
if (remoteDoc.contextUrl) {
|
|
30311
|
-
if (!_isArray(
|
|
30312
|
-
|
|
30234
|
+
if (!_isArray(context4["@context"])) {
|
|
30235
|
+
context4["@context"] = [context4["@context"]];
|
|
30313
30236
|
}
|
|
30314
|
-
|
|
30237
|
+
context4["@context"].push(remoteDoc.contextUrl);
|
|
30315
30238
|
}
|
|
30316
|
-
return { context:
|
|
30239
|
+
return { context: context4, remoteDoc };
|
|
30317
30240
|
}
|
|
30318
30241
|
};
|
|
30319
30242
|
function _throwInvalidLocalContext(ctx) {
|
|
@@ -30326,13 +30249,13 @@ var PodOS = (() => {
|
|
|
30326
30249
|
}
|
|
30327
30250
|
);
|
|
30328
30251
|
}
|
|
30329
|
-
function _resolveContextUrls({ context:
|
|
30330
|
-
if (!
|
|
30252
|
+
function _resolveContextUrls({ context: context4, base: base2 }) {
|
|
30253
|
+
if (!context4) {
|
|
30331
30254
|
return;
|
|
30332
30255
|
}
|
|
30333
|
-
const ctx =
|
|
30256
|
+
const ctx = context4["@context"];
|
|
30334
30257
|
if (_isString(ctx)) {
|
|
30335
|
-
|
|
30258
|
+
context4["@context"] = prependBase(base2, ctx);
|
|
30336
30259
|
return;
|
|
30337
30260
|
}
|
|
30338
30261
|
if (_isArray(ctx)) {
|
|
@@ -30803,16 +30726,16 @@ var PodOS = (() => {
|
|
|
30803
30726
|
});
|
|
30804
30727
|
if (_isObject(ctx[key3]) && "@context" in ctx[key3]) {
|
|
30805
30728
|
const keyCtx = ctx[key3]["@context"];
|
|
30806
|
-
let
|
|
30729
|
+
let process4 = true;
|
|
30807
30730
|
if (_isString(keyCtx)) {
|
|
30808
30731
|
const url7 = prependBase(options.base, keyCtx);
|
|
30809
30732
|
if (cycles.has(url7)) {
|
|
30810
|
-
|
|
30733
|
+
process4 = false;
|
|
30811
30734
|
} else {
|
|
30812
30735
|
cycles.add(url7);
|
|
30813
30736
|
}
|
|
30814
30737
|
}
|
|
30815
|
-
if (
|
|
30738
|
+
if (process4) {
|
|
30816
30739
|
try {
|
|
30817
30740
|
await api.process({
|
|
30818
30741
|
activeCtx: rval.clone(),
|
|
@@ -33456,8 +33379,8 @@ var PodOS = (() => {
|
|
|
33456
33379
|
const first3 = { termType: "NamedNode", value: RDF_FIRST };
|
|
33457
33380
|
const rest3 = { termType: "NamedNode", value: RDF_REST };
|
|
33458
33381
|
const nil = { termType: "NamedNode", value: RDF_NIL };
|
|
33459
|
-
const
|
|
33460
|
-
const result5 =
|
|
33382
|
+
const last3 = list.pop();
|
|
33383
|
+
const result5 = last3 ? { termType: "BlankNode", value: issuer2.getId() } : nil;
|
|
33461
33384
|
let subject5 = result5;
|
|
33462
33385
|
for (const item4 of list) {
|
|
33463
33386
|
const object6 = _objectToRDF(
|
|
@@ -33483,9 +33406,9 @@ var PodOS = (() => {
|
|
|
33483
33406
|
});
|
|
33484
33407
|
subject5 = next3;
|
|
33485
33408
|
}
|
|
33486
|
-
if (
|
|
33409
|
+
if (last3) {
|
|
33487
33410
|
const object6 = _objectToRDF(
|
|
33488
|
-
|
|
33411
|
+
last3,
|
|
33489
33412
|
issuer2,
|
|
33490
33413
|
dataset3,
|
|
33491
33414
|
graphTerm,
|
|
@@ -34352,8 +34275,8 @@ var PodOS = (() => {
|
|
|
34352
34275
|
"@container"
|
|
34353
34276
|
) || [];
|
|
34354
34277
|
const typeAsSet = container2.includes("@set") && _processingMode2(activeCtx, 1.1);
|
|
34355
|
-
const
|
|
34356
|
-
_addValue(rval, alias2, compactedValue, { propertyIsArray:
|
|
34278
|
+
const isArray2 = typeAsSet || _isArray(compactedValue) && expandedValue.length === 0;
|
|
34279
|
+
_addValue(rval, alias2, compactedValue, { propertyIsArray: isArray2 });
|
|
34357
34280
|
continue;
|
|
34358
34281
|
}
|
|
34359
34282
|
if (expandedProperty === "@reverse") {
|
|
@@ -34687,12 +34610,12 @@ var PodOS = (() => {
|
|
|
34687
34610
|
}
|
|
34688
34611
|
);
|
|
34689
34612
|
} else {
|
|
34690
|
-
const
|
|
34613
|
+
const isArray2 = !options.compactArrays || container2.includes("@set") || container2.includes("@list") || _isArray(compactedItem) && compactedItem.length === 0 || expandedProperty === "@list" || expandedProperty === "@graph";
|
|
34691
34614
|
_addValue(
|
|
34692
34615
|
nestResult,
|
|
34693
34616
|
itemActiveProperty,
|
|
34694
34617
|
compactedItem,
|
|
34695
|
-
{ propertyIsArray:
|
|
34618
|
+
{ propertyIsArray: isArray2 }
|
|
34696
34619
|
);
|
|
34697
34620
|
}
|
|
34698
34621
|
}
|
|
@@ -36478,7 +36401,7 @@ var PodOS = (() => {
|
|
|
36478
36401
|
});
|
|
36479
36402
|
|
|
36480
36403
|
// ../node_modules/n3/src/N3Parser.js
|
|
36481
|
-
function
|
|
36404
|
+
function noop2() {
|
|
36482
36405
|
}
|
|
36483
36406
|
function initDataFactory(parser, factory) {
|
|
36484
36407
|
const namedNode4 = factory.namedNode;
|
|
@@ -36572,17 +36495,17 @@ var PodOS = (() => {
|
|
|
36572
36495
|
// ### `_restoreContext` restores the parent context
|
|
36573
36496
|
// when leaving a scope (list, blank node, formula)
|
|
36574
36497
|
_restoreContext(type5, token) {
|
|
36575
|
-
const
|
|
36576
|
-
if (!
|
|
36498
|
+
const context4 = this._contextStack.pop();
|
|
36499
|
+
if (!context4 || context4.type !== type5)
|
|
36577
36500
|
return this._error(`Unexpected ${token.type}`, token);
|
|
36578
|
-
this._subject =
|
|
36579
|
-
this._predicate =
|
|
36580
|
-
this._object =
|
|
36581
|
-
this._graph =
|
|
36501
|
+
this._subject = context4.subject;
|
|
36502
|
+
this._predicate = context4.predicate;
|
|
36503
|
+
this._object = context4.object;
|
|
36504
|
+
this._graph = context4.graph;
|
|
36582
36505
|
if (this._n3Mode) {
|
|
36583
|
-
this._inversePredicate =
|
|
36584
|
-
this._prefixes._ =
|
|
36585
|
-
this._quantified =
|
|
36506
|
+
this._inversePredicate = context4.inverse;
|
|
36507
|
+
this._prefixes._ = context4.blankPrefix;
|
|
36508
|
+
this._quantified = context4.quantified;
|
|
36586
36509
|
}
|
|
36587
36510
|
}
|
|
36588
36511
|
// ### `_readInTopContext` reads a token when in the top context
|
|
@@ -37263,7 +37186,7 @@ var PodOS = (() => {
|
|
|
37263
37186
|
previousToken: this._lexer.previousToken
|
|
37264
37187
|
};
|
|
37265
37188
|
this._callback(err);
|
|
37266
|
-
this._callback =
|
|
37189
|
+
this._callback = noop2;
|
|
37267
37190
|
}
|
|
37268
37191
|
// ### `_resolveIRI` resolves an IRI against the base path
|
|
37269
37192
|
_resolveIRI(iri) {
|
|
@@ -37340,7 +37263,7 @@ var PodOS = (() => {
|
|
|
37340
37263
|
this._sparqlStyle = false;
|
|
37341
37264
|
this._prefixes = /* @__PURE__ */ Object.create(null);
|
|
37342
37265
|
this._prefixes._ = this._blankNodePrefix ? this._blankNodePrefix.substr(2) : `b${blankNodePrefix++}_`;
|
|
37343
|
-
this._prefixCallback = prefixCallback ||
|
|
37266
|
+
this._prefixCallback = prefixCallback || noop2;
|
|
37344
37267
|
this._inversePredicate = false;
|
|
37345
37268
|
this._quantified = /* @__PURE__ */ Object.create(null);
|
|
37346
37269
|
if (!quadCallback) {
|
|
@@ -37359,7 +37282,7 @@ var PodOS = (() => {
|
|
|
37359
37282
|
this._callback = quadCallback;
|
|
37360
37283
|
this._lexer.tokenize(input2, (error5, token) => {
|
|
37361
37284
|
if (error5 !== null)
|
|
37362
|
-
this._callback(error5), this._callback =
|
|
37285
|
+
this._callback(error5), this._callback = noop2;
|
|
37363
37286
|
else if (this._readCallback)
|
|
37364
37287
|
this._readCallback = this._readCallback(token);
|
|
37365
37288
|
});
|
|
@@ -37625,7 +37548,7 @@ var PodOS = (() => {
|
|
|
37625
37548
|
}
|
|
37626
37549
|
}, {
|
|
37627
37550
|
key: "process",
|
|
37628
|
-
value: function
|
|
37551
|
+
value: function process4(node2, options) {
|
|
37629
37552
|
options = options || {};
|
|
37630
37553
|
var base2;
|
|
37631
37554
|
if (node2.nodeType === Node3.DOCUMENT_NODE) {
|
|
@@ -37693,18 +37616,18 @@ var PodOS = (() => {
|
|
|
37693
37616
|
continue;
|
|
37694
37617
|
}
|
|
37695
37618
|
var current2 = item4.current;
|
|
37696
|
-
var
|
|
37619
|
+
var context4 = item4.context;
|
|
37697
37620
|
var skip = false;
|
|
37698
37621
|
var newSubject = null;
|
|
37699
37622
|
var currentObjectResource = null;
|
|
37700
37623
|
var typedResource = null;
|
|
37701
|
-
var prefixes =
|
|
37624
|
+
var prefixes = context4.prefixes;
|
|
37702
37625
|
var prefixesCopied = false;
|
|
37703
37626
|
var incomplete2 = [];
|
|
37704
|
-
var listMapping =
|
|
37705
|
-
var listMappingDifferent = !
|
|
37706
|
-
var language8 =
|
|
37707
|
-
var vocabulary =
|
|
37627
|
+
var listMapping = context4.listMapping;
|
|
37628
|
+
var listMappingDifferent = !context4.parent;
|
|
37629
|
+
var language8 = context4.language;
|
|
37630
|
+
var vocabulary = context4.vocabulary;
|
|
37708
37631
|
base2 = this.parseURI(removeHash(current2.baseURI));
|
|
37709
37632
|
current2.item = null;
|
|
37710
37633
|
var vocabAtt = current2.getAttributeNode("vocab");
|
|
@@ -37770,7 +37693,7 @@ var PodOS = (() => {
|
|
|
37770
37693
|
if (relAtt) {
|
|
37771
37694
|
values = this.tokenize(relAtt.value);
|
|
37772
37695
|
for (var _i4 = 0; _i4 < values.length; _i4++) {
|
|
37773
|
-
predicate2 = this.parsePredicate(values[_i4], vocabulary,
|
|
37696
|
+
predicate2 = this.parsePredicate(values[_i4], vocabulary, context4.terms, prefixes, base2, this.inHTMLMode && propertyAtt !== null);
|
|
37774
37697
|
if (predicate2) {
|
|
37775
37698
|
relAttPredicates.push(predicate2);
|
|
37776
37699
|
}
|
|
@@ -37780,7 +37703,7 @@ var PodOS = (() => {
|
|
|
37780
37703
|
if (revAtt) {
|
|
37781
37704
|
values = this.tokenize(revAtt.value);
|
|
37782
37705
|
for (var _i5 = 0; _i5 < values.length; _i5++) {
|
|
37783
|
-
predicate2 = this.parsePredicate(values[_i5], vocabulary,
|
|
37706
|
+
predicate2 = this.parsePredicate(values[_i5], vocabulary, context4.terms, prefixes, base2, this.inHTMLMode && propertyAtt);
|
|
37784
37707
|
if (predicate2) {
|
|
37785
37708
|
revAttPredicates.push(predicate2);
|
|
37786
37709
|
}
|
|
@@ -37804,8 +37727,8 @@ var PodOS = (() => {
|
|
|
37804
37727
|
if (!newSubject) {
|
|
37805
37728
|
if (current2.parentNode.nodeType === Node3.DOCUMENT_NODE) {
|
|
37806
37729
|
newSubject = removeHash(current2.baseURI);
|
|
37807
|
-
} else if (
|
|
37808
|
-
newSubject = removeHash(current2.parentNode.baseURI) ===
|
|
37730
|
+
} else if (context4.parentObject) {
|
|
37731
|
+
newSubject = removeHash(current2.parentNode.baseURI) === context4.parentObject ? removeHash(current2.baseURI) : context4.parentObject;
|
|
37809
37732
|
}
|
|
37810
37733
|
}
|
|
37811
37734
|
if (resourceAtt) {
|
|
@@ -37837,8 +37760,8 @@ var PodOS = (() => {
|
|
|
37837
37760
|
if (typeofAtt) {
|
|
37838
37761
|
typedResource = newSubject;
|
|
37839
37762
|
}
|
|
37840
|
-
} else if (!newSubject &&
|
|
37841
|
-
newSubject = removeHash(current2.parentNode.baseURI) ===
|
|
37763
|
+
} else if (!newSubject && context4.parentObject) {
|
|
37764
|
+
newSubject = removeHash(current2.parentNode.baseURI) === context4.parentObject ? removeHash(current2.baseURI) : context4.parentObject;
|
|
37842
37765
|
}
|
|
37843
37766
|
if (typeofAtt && !typedResource) {
|
|
37844
37767
|
if (resourceAtt) {
|
|
@@ -37875,11 +37798,11 @@ var PodOS = (() => {
|
|
|
37875
37798
|
if (current2.parentNode.nodeType === Node3.DOCUMENT_NODE) {
|
|
37876
37799
|
newSubject = removeHash(current2.baseURI);
|
|
37877
37800
|
} else if ((this.inXHTMLMode || this.inHTMLMode) && (current2.localName === "head" || current2.localName === "body")) {
|
|
37878
|
-
newSubject = removeHash(current2.parentNode.baseURI) ===
|
|
37801
|
+
newSubject = removeHash(current2.parentNode.baseURI) === context4.parentObject ? removeHash(current2.baseURI) : context4.parentObject;
|
|
37879
37802
|
} else if (typeofAtt) {
|
|
37880
37803
|
newSubject = this.newBlankNode();
|
|
37881
|
-
} else if (
|
|
37882
|
-
newSubject = removeHash(current2.parentNode.baseURI) ===
|
|
37804
|
+
} else if (context4.parentObject) {
|
|
37805
|
+
newSubject = removeHash(current2.parentNode.baseURI) === context4.parentObject ? removeHash(current2.baseURI) : context4.parentObject;
|
|
37883
37806
|
if (!propertyAtt) {
|
|
37884
37807
|
skip = true;
|
|
37885
37808
|
}
|
|
@@ -37901,7 +37824,7 @@ var PodOS = (() => {
|
|
|
37901
37824
|
if (typedResource) {
|
|
37902
37825
|
values = this.tokenize(typeofAtt.value);
|
|
37903
37826
|
for (var _i6 = 0; _i6 < values.length; _i6++) {
|
|
37904
|
-
var object6 = this.parseTermOrCURIEOrAbsURI(values[_i6], vocabulary,
|
|
37827
|
+
var object6 = this.parseTermOrCURIEOrAbsURI(values[_i6], vocabulary, context4.terms, prefixes, base2);
|
|
37905
37828
|
if (object6) {
|
|
37906
37829
|
this.addTriple(current2, typedResource, RDFaProcessor2.typeURI, {
|
|
37907
37830
|
type: RDFaProcessor2.objectURI,
|
|
@@ -37910,7 +37833,7 @@ var PodOS = (() => {
|
|
|
37910
37833
|
}
|
|
37911
37834
|
}
|
|
37912
37835
|
}
|
|
37913
|
-
if (newSubject && newSubject !==
|
|
37836
|
+
if (newSubject && newSubject !== context4.parentObject) {
|
|
37914
37837
|
listMapping = {};
|
|
37915
37838
|
listMappingDifferent = true;
|
|
37916
37839
|
}
|
|
@@ -37980,7 +37903,7 @@ var PodOS = (() => {
|
|
|
37980
37903
|
var datatype = null;
|
|
37981
37904
|
var content5 = null;
|
|
37982
37905
|
if (datatypeAtt) {
|
|
37983
|
-
datatype = datatypeAtt.value === "" ? RDFaProcessor2.PlainLiteralURI : this.parseTermOrCURIEOrAbsURI(datatypeAtt.value, vocabulary,
|
|
37906
|
+
datatype = datatypeAtt.value === "" ? RDFaProcessor2.PlainLiteralURI : this.parseTermOrCURIEOrAbsURI(datatypeAtt.value, vocabulary, context4.terms, prefixes, base2);
|
|
37984
37907
|
if (datetimeAtt && !contentAtt) {
|
|
37985
37908
|
content5 = datetimeAtt.value;
|
|
37986
37909
|
} else {
|
|
@@ -38024,7 +37947,7 @@ var PodOS = (() => {
|
|
|
38024
37947
|
}
|
|
38025
37948
|
values = this.tokenize(propertyAtt.value);
|
|
38026
37949
|
for (var _i13 = 0; _i13 < values.length; _i13++) {
|
|
38027
|
-
var _predicate2 = this.parsePredicate(values[_i13], vocabulary,
|
|
37950
|
+
var _predicate2 = this.parsePredicate(values[_i13], vocabulary, context4.terms, prefixes, base2);
|
|
38028
37951
|
if (_predicate2) {
|
|
38029
37952
|
if (inlistAtt) {
|
|
38030
37953
|
var _list3 = listMapping[_predicate2];
|
|
@@ -38058,21 +37981,21 @@ var PodOS = (() => {
|
|
|
38058
37981
|
}
|
|
38059
37982
|
}
|
|
38060
37983
|
if (newSubject && !skip) {
|
|
38061
|
-
for (var _i14 = 0; _i14 <
|
|
38062
|
-
if (
|
|
38063
|
-
|
|
37984
|
+
for (var _i14 = 0; _i14 < context4.incomplete.length; _i14++) {
|
|
37985
|
+
if (context4.incomplete[_i14].list) {
|
|
37986
|
+
context4.incomplete[_i14].list.push({
|
|
38064
37987
|
type: RDFaProcessor2.objectURI,
|
|
38065
37988
|
value: newSubject
|
|
38066
37989
|
});
|
|
38067
|
-
} else if (
|
|
38068
|
-
this.addTriple(current2,
|
|
37990
|
+
} else if (context4.incomplete[_i14].forward) {
|
|
37991
|
+
this.addTriple(current2, context4.subject, context4.incomplete[_i14].predicate, {
|
|
38069
37992
|
type: RDFaProcessor2.objectURI,
|
|
38070
37993
|
value: newSubject
|
|
38071
37994
|
});
|
|
38072
37995
|
} else {
|
|
38073
|
-
this.addTriple(current2, newSubject,
|
|
37996
|
+
this.addTriple(current2, newSubject, context4.incomplete[_i14].predicate, {
|
|
38074
37997
|
type: RDFaProcessor2.objectURI,
|
|
38075
|
-
value:
|
|
37998
|
+
value: context4.subject
|
|
38076
37999
|
});
|
|
38077
38000
|
}
|
|
38078
38001
|
}
|
|
@@ -38080,15 +38003,15 @@ var PodOS = (() => {
|
|
|
38080
38003
|
var childContext = null;
|
|
38081
38004
|
var listSubject = newSubject;
|
|
38082
38005
|
if (skip) {
|
|
38083
|
-
childContext = this.push(
|
|
38084
|
-
childContext.parentObject = removeHash(current2.parentNode.baseURI) ===
|
|
38085
|
-
childContext.incomplete =
|
|
38006
|
+
childContext = this.push(context4, context4.subject);
|
|
38007
|
+
childContext.parentObject = removeHash(current2.parentNode.baseURI) === context4.parentObject ? removeHash(current2.baseURI) : context4.parentObject;
|
|
38008
|
+
childContext.incomplete = context4.incomplete;
|
|
38086
38009
|
childContext.language = language8;
|
|
38087
38010
|
childContext.prefixes = prefixes;
|
|
38088
38011
|
childContext.vocabulary = vocabulary;
|
|
38089
38012
|
} else {
|
|
38090
|
-
childContext = this.push(
|
|
38091
|
-
childContext.parentObject = currentObjectResource || newSubject ||
|
|
38013
|
+
childContext = this.push(context4, newSubject);
|
|
38014
|
+
childContext.parentObject = currentObjectResource || newSubject || context4.subject;
|
|
38092
38015
|
childContext.prefixes = prefixes;
|
|
38093
38016
|
childContext.incomplete = incomplete2;
|
|
38094
38017
|
if (currentObjectResource) {
|
|
@@ -38103,7 +38026,7 @@ var PodOS = (() => {
|
|
|
38103
38026
|
if (listMappingDifferent) {
|
|
38104
38027
|
queue.unshift({
|
|
38105
38028
|
parent: current2,
|
|
38106
|
-
context:
|
|
38029
|
+
context: context4,
|
|
38107
38030
|
subject: listSubject,
|
|
38108
38031
|
listMapping
|
|
38109
38032
|
});
|
|
@@ -39008,18 +38931,18 @@ var PodOS = (() => {
|
|
|
39008
38931
|
return value6;
|
|
39009
38932
|
}
|
|
39010
38933
|
function iteratorFor(items2) {
|
|
39011
|
-
var
|
|
38934
|
+
var iterator2 = {
|
|
39012
38935
|
next: function() {
|
|
39013
38936
|
var value6 = items2.shift();
|
|
39014
38937
|
return { done: value6 === void 0, value: value6 };
|
|
39015
38938
|
}
|
|
39016
38939
|
};
|
|
39017
38940
|
if (support2.iterable) {
|
|
39018
|
-
|
|
39019
|
-
return
|
|
38941
|
+
iterator2[Symbol.iterator] = function() {
|
|
38942
|
+
return iterator2;
|
|
39020
38943
|
};
|
|
39021
38944
|
}
|
|
39022
|
-
return
|
|
38945
|
+
return iterator2;
|
|
39023
38946
|
}
|
|
39024
38947
|
function Headers3(headers) {
|
|
39025
38948
|
this.map = {};
|
|
@@ -41638,17 +41561,17 @@ var PodOS = (() => {
|
|
|
41638
41561
|
}, {
|
|
41639
41562
|
key: "bnodeContext",
|
|
41640
41563
|
value: function bnodeContext(bnodes, doc) {
|
|
41641
|
-
var
|
|
41564
|
+
var context4 = [];
|
|
41642
41565
|
if (bnodes.length) {
|
|
41643
41566
|
this.cacheIfps();
|
|
41644
41567
|
for (var i = 0; i < bnodes.length; i++) {
|
|
41645
41568
|
var bnode = bnodes[i];
|
|
41646
41569
|
if (!this.mentioned(bnode))
|
|
41647
41570
|
continue;
|
|
41648
|
-
|
|
41571
|
+
context4 = context4.concat(this.bnodeContext1(bnode, doc));
|
|
41649
41572
|
}
|
|
41650
41573
|
}
|
|
41651
|
-
return
|
|
41574
|
+
return context4;
|
|
41652
41575
|
}
|
|
41653
41576
|
/**
|
|
41654
41577
|
* Returns the best context for a single statement
|
|
@@ -41665,9 +41588,9 @@ var PodOS = (() => {
|
|
|
41665
41588
|
*/
|
|
41666
41589
|
}, {
|
|
41667
41590
|
key: "contextWhere",
|
|
41668
|
-
value: function contextWhere(
|
|
41591
|
+
value: function contextWhere(context4) {
|
|
41669
41592
|
var updater = this;
|
|
41670
|
-
return !
|
|
41593
|
+
return !context4 || context4.length === 0 ? "" : "WHERE { " + context4.map(function(x) {
|
|
41671
41594
|
return updater.anonymizeNT(x);
|
|
41672
41595
|
}).join("\n") + " }\n";
|
|
41673
41596
|
}
|
|
@@ -41711,11 +41634,11 @@ var PodOS = (() => {
|
|
|
41711
41634
|
return;
|
|
41712
41635
|
}
|
|
41713
41636
|
var updater = this;
|
|
41714
|
-
var
|
|
41637
|
+
var context4 = this.statementContext(statement2);
|
|
41715
41638
|
return {
|
|
41716
41639
|
statement: statement2 ? [statement2.subject, statement2.predicate, statement2.object, statement2.graph] : void 0,
|
|
41717
41640
|
statementNT: statement2 ? this.anonymizeNT(statement2) : void 0,
|
|
41718
|
-
where: updater.contextWhere(
|
|
41641
|
+
where: updater.contextWhere(context4),
|
|
41719
41642
|
set_object: function set_object(obj, callbackFunction) {
|
|
41720
41643
|
var query4 = this.where;
|
|
41721
41644
|
query4 += "DELETE DATA { " + this.statementNT + " } ;\n";
|
|
@@ -42136,8 +42059,8 @@ var PodOS = (() => {
|
|
|
42136
42059
|
bnodes = this.statementArrayBnodes(ds);
|
|
42137
42060
|
if (is.length)
|
|
42138
42061
|
bnodes = bnodes.concat(this.statementArrayBnodes(is));
|
|
42139
|
-
var
|
|
42140
|
-
var query4 = isSparql ? this.constructSparqlUpdateQuery(ds, is,
|
|
42062
|
+
var context4 = this.bnodeContext(bnodes, doc);
|
|
42063
|
+
var query4 = isSparql ? this.constructSparqlUpdateQuery(ds, is, context4) : this.constructN3PatchQuery(ds, is, context4);
|
|
42141
42064
|
options.contentType = isSparql ? "application/sparql-update" : "text/n3";
|
|
42142
42065
|
control2.pendingUpstream = control2.pendingUpstream ? control2.pendingUpstream + 1 : 1;
|
|
42143
42066
|
if ("upstreamCount" in control2) {
|
|
@@ -42495,23 +42418,372 @@ var PodOS = (() => {
|
|
|
42495
42418
|
});
|
|
42496
42419
|
|
|
42497
42420
|
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/namespaces.js
|
|
42498
|
-
var rdf3, vcard, dc;
|
|
42421
|
+
var rdf3, vcard, solid, pim, dc;
|
|
42499
42422
|
var init_namespaces = __esm({
|
|
42500
42423
|
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/namespaces.js"() {
|
|
42501
42424
|
init_esm();
|
|
42502
42425
|
rdf3 = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
|
42503
42426
|
vcard = Namespace("http://www.w3.org/2006/vcard/ns#");
|
|
42427
|
+
solid = Namespace("http://www.w3.org/ns/solid/terms#");
|
|
42428
|
+
pim = Namespace("http://www.w3.org/ns/pim/space#");
|
|
42504
42429
|
dc = Namespace("http://purl.org/dc/elements/1.1/");
|
|
42505
42430
|
}
|
|
42506
42431
|
});
|
|
42507
42432
|
|
|
42433
|
+
// ../node_modules/short-unique-id/dist/short-unique-id.js
|
|
42434
|
+
var require_short_unique_id = __commonJS({
|
|
42435
|
+
"../node_modules/short-unique-id/dist/short-unique-id.js"(exports, module3) {
|
|
42436
|
+
"use strict";
|
|
42437
|
+
var ShortUniqueId2 = (() => {
|
|
42438
|
+
var __defProp2 = Object.defineProperty;
|
|
42439
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
42440
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
42441
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
42442
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
42443
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
42444
|
+
var __defNormalProp = (obj, key3, value6) => key3 in obj ? __defProp2(obj, key3, { enumerable: true, configurable: true, writable: true, value: value6 }) : obj[key3] = value6;
|
|
42445
|
+
var __spreadValues = (a, b) => {
|
|
42446
|
+
for (var prop in b || (b = {}))
|
|
42447
|
+
if (__hasOwnProp2.call(b, prop))
|
|
42448
|
+
__defNormalProp(a, prop, b[prop]);
|
|
42449
|
+
if (__getOwnPropSymbols)
|
|
42450
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
42451
|
+
if (__propIsEnum.call(b, prop))
|
|
42452
|
+
__defNormalProp(a, prop, b[prop]);
|
|
42453
|
+
}
|
|
42454
|
+
return a;
|
|
42455
|
+
};
|
|
42456
|
+
var __export2 = (target5, all) => {
|
|
42457
|
+
for (var name7 in all)
|
|
42458
|
+
__defProp2(target5, name7, { get: all[name7], enumerable: true });
|
|
42459
|
+
};
|
|
42460
|
+
var __copyProps2 = (to2, from2, except, desc) => {
|
|
42461
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
42462
|
+
for (let key3 of __getOwnPropNames2(from2))
|
|
42463
|
+
if (!__hasOwnProp2.call(to2, key3) && key3 !== except)
|
|
42464
|
+
__defProp2(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc2(from2, key3)) || desc.enumerable });
|
|
42465
|
+
}
|
|
42466
|
+
return to2;
|
|
42467
|
+
};
|
|
42468
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
42469
|
+
var __publicField = (obj, key3, value6) => {
|
|
42470
|
+
__defNormalProp(obj, typeof key3 !== "symbol" ? key3 + "" : key3, value6);
|
|
42471
|
+
return value6;
|
|
42472
|
+
};
|
|
42473
|
+
var src_exports2 = {};
|
|
42474
|
+
__export2(src_exports2, {
|
|
42475
|
+
DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
|
|
42476
|
+
DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
|
|
42477
|
+
default: () => ShortUniqueId3
|
|
42478
|
+
});
|
|
42479
|
+
var version6 = "5.0.3";
|
|
42480
|
+
var DEFAULT_UUID_LENGTH = 6;
|
|
42481
|
+
var DEFAULT_OPTIONS = {
|
|
42482
|
+
dictionary: "alphanum",
|
|
42483
|
+
shuffle: true,
|
|
42484
|
+
debug: false,
|
|
42485
|
+
length: DEFAULT_UUID_LENGTH,
|
|
42486
|
+
counter: 0
|
|
42487
|
+
};
|
|
42488
|
+
var _ShortUniqueId = class _ShortUniqueId {
|
|
42489
|
+
constructor(argOptions = {}) {
|
|
42490
|
+
__publicField(this, "counter");
|
|
42491
|
+
__publicField(this, "debug");
|
|
42492
|
+
__publicField(this, "dict");
|
|
42493
|
+
__publicField(this, "version");
|
|
42494
|
+
__publicField(this, "dictIndex", 0);
|
|
42495
|
+
__publicField(this, "dictRange", []);
|
|
42496
|
+
__publicField(this, "lowerBound", 0);
|
|
42497
|
+
__publicField(this, "upperBound", 0);
|
|
42498
|
+
__publicField(this, "dictLength", 0);
|
|
42499
|
+
__publicField(this, "uuidLength");
|
|
42500
|
+
__publicField(this, "_digit_first_ascii", 48);
|
|
42501
|
+
__publicField(this, "_digit_last_ascii", 58);
|
|
42502
|
+
__publicField(this, "_alpha_lower_first_ascii", 97);
|
|
42503
|
+
__publicField(this, "_alpha_lower_last_ascii", 123);
|
|
42504
|
+
__publicField(this, "_hex_last_ascii", 103);
|
|
42505
|
+
__publicField(this, "_alpha_upper_first_ascii", 65);
|
|
42506
|
+
__publicField(this, "_alpha_upper_last_ascii", 91);
|
|
42507
|
+
__publicField(this, "_number_dict_ranges", {
|
|
42508
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii]
|
|
42509
|
+
});
|
|
42510
|
+
__publicField(this, "_alpha_dict_ranges", {
|
|
42511
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
42512
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
42513
|
+
});
|
|
42514
|
+
__publicField(this, "_alpha_lower_dict_ranges", {
|
|
42515
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
42516
|
+
});
|
|
42517
|
+
__publicField(this, "_alpha_upper_dict_ranges", {
|
|
42518
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
42519
|
+
});
|
|
42520
|
+
__publicField(this, "_alphanum_dict_ranges", {
|
|
42521
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
42522
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
42523
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
42524
|
+
});
|
|
42525
|
+
__publicField(this, "_alphanum_lower_dict_ranges", {
|
|
42526
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
42527
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
42528
|
+
});
|
|
42529
|
+
__publicField(this, "_alphanum_upper_dict_ranges", {
|
|
42530
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
42531
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
42532
|
+
});
|
|
42533
|
+
__publicField(this, "_hex_dict_ranges", {
|
|
42534
|
+
decDigits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
42535
|
+
alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
|
|
42536
|
+
});
|
|
42537
|
+
__publicField(this, "_dict_ranges", {
|
|
42538
|
+
_number_dict_ranges: this._number_dict_ranges,
|
|
42539
|
+
_alpha_dict_ranges: this._alpha_dict_ranges,
|
|
42540
|
+
_alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
|
|
42541
|
+
_alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
|
|
42542
|
+
_alphanum_dict_ranges: this._alphanum_dict_ranges,
|
|
42543
|
+
_alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
|
|
42544
|
+
_alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
|
|
42545
|
+
_hex_dict_ranges: this._hex_dict_ranges
|
|
42546
|
+
});
|
|
42547
|
+
__publicField(this, "log", (...args) => {
|
|
42548
|
+
const finalArgs = [...args];
|
|
42549
|
+
finalArgs[0] = `[short-unique-id] ${args[0]}`;
|
|
42550
|
+
if (this.debug === true) {
|
|
42551
|
+
if (typeof console !== "undefined" && console !== null) {
|
|
42552
|
+
return console.log(...finalArgs);
|
|
42553
|
+
}
|
|
42554
|
+
}
|
|
42555
|
+
});
|
|
42556
|
+
__publicField(this, "setDictionary", (dictionary2, shuffle2) => {
|
|
42557
|
+
let finalDict;
|
|
42558
|
+
if (dictionary2 && Array.isArray(dictionary2) && dictionary2.length > 1) {
|
|
42559
|
+
finalDict = dictionary2;
|
|
42560
|
+
} else {
|
|
42561
|
+
finalDict = [];
|
|
42562
|
+
let i;
|
|
42563
|
+
this.dictIndex = i = 0;
|
|
42564
|
+
const rangesName = `_${dictionary2}_dict_ranges`;
|
|
42565
|
+
const ranges = this._dict_ranges[rangesName];
|
|
42566
|
+
Object.keys(ranges).forEach((rangeType) => {
|
|
42567
|
+
const rangeTypeKey = rangeType;
|
|
42568
|
+
this.dictRange = ranges[rangeTypeKey];
|
|
42569
|
+
this.lowerBound = this.dictRange[0];
|
|
42570
|
+
this.upperBound = this.dictRange[1];
|
|
42571
|
+
for (this.dictIndex = i = this.lowerBound; this.lowerBound <= this.upperBound ? i < this.upperBound : i > this.upperBound; this.dictIndex = this.lowerBound <= this.upperBound ? i += 1 : i -= 1) {
|
|
42572
|
+
finalDict.push(String.fromCharCode(this.dictIndex));
|
|
42573
|
+
}
|
|
42574
|
+
});
|
|
42575
|
+
}
|
|
42576
|
+
if (shuffle2) {
|
|
42577
|
+
const PROBABILITY = 0.5;
|
|
42578
|
+
finalDict = finalDict.sort(() => Math.random() - PROBABILITY);
|
|
42579
|
+
}
|
|
42580
|
+
this.dict = finalDict;
|
|
42581
|
+
this.dictLength = this.dict.length;
|
|
42582
|
+
this.setCounter(0);
|
|
42583
|
+
});
|
|
42584
|
+
__publicField(this, "seq", () => {
|
|
42585
|
+
return this.sequentialUUID();
|
|
42586
|
+
});
|
|
42587
|
+
__publicField(this, "sequentialUUID", () => {
|
|
42588
|
+
let counterDiv;
|
|
42589
|
+
let counterRem;
|
|
42590
|
+
let id6 = "";
|
|
42591
|
+
counterDiv = this.counter;
|
|
42592
|
+
do {
|
|
42593
|
+
counterRem = counterDiv % this.dictLength;
|
|
42594
|
+
counterDiv = Math.trunc(counterDiv / this.dictLength);
|
|
42595
|
+
id6 += this.dict[counterRem];
|
|
42596
|
+
} while (counterDiv !== 0);
|
|
42597
|
+
this.counter += 1;
|
|
42598
|
+
return id6;
|
|
42599
|
+
});
|
|
42600
|
+
__publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
42601
|
+
return this.randomUUID(uuidLength);
|
|
42602
|
+
});
|
|
42603
|
+
__publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
42604
|
+
let id6;
|
|
42605
|
+
let randomPartIdx;
|
|
42606
|
+
let j;
|
|
42607
|
+
if (uuidLength === null || typeof uuidLength === "undefined" || uuidLength < 1) {
|
|
42608
|
+
throw new Error("Invalid UUID Length Provided");
|
|
42609
|
+
}
|
|
42610
|
+
const isPositive = uuidLength >= 0;
|
|
42611
|
+
id6 = "";
|
|
42612
|
+
for (j = 0; j < uuidLength; j += 1) {
|
|
42613
|
+
randomPartIdx = parseInt(
|
|
42614
|
+
(Math.random() * this.dictLength).toFixed(0),
|
|
42615
|
+
10
|
|
42616
|
+
) % this.dictLength;
|
|
42617
|
+
id6 += this.dict[randomPartIdx];
|
|
42618
|
+
}
|
|
42619
|
+
return id6;
|
|
42620
|
+
});
|
|
42621
|
+
__publicField(this, "fmt", (format4, date5) => {
|
|
42622
|
+
return this.formattedUUID(format4, date5);
|
|
42623
|
+
});
|
|
42624
|
+
__publicField(this, "formattedUUID", (format4, date5) => {
|
|
42625
|
+
const fnMap = {
|
|
42626
|
+
"$r": this.randomUUID,
|
|
42627
|
+
"$s": this.sequentialUUID,
|
|
42628
|
+
"$t": this.stamp
|
|
42629
|
+
};
|
|
42630
|
+
const result5 = format4.replace(
|
|
42631
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
42632
|
+
(m) => {
|
|
42633
|
+
const fn2 = m.slice(0, 2);
|
|
42634
|
+
const len = parseInt(m.slice(2), 10);
|
|
42635
|
+
if (fn2 === "$s") {
|
|
42636
|
+
return fnMap[fn2]().padStart(len, "0");
|
|
42637
|
+
}
|
|
42638
|
+
if (fn2 === "$t" && date5) {
|
|
42639
|
+
return fnMap[fn2](len, date5);
|
|
42640
|
+
}
|
|
42641
|
+
return fnMap[fn2](len);
|
|
42642
|
+
}
|
|
42643
|
+
);
|
|
42644
|
+
return result5;
|
|
42645
|
+
});
|
|
42646
|
+
__publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
|
|
42647
|
+
return parseFloat(
|
|
42648
|
+
Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
|
|
42649
|
+
);
|
|
42650
|
+
});
|
|
42651
|
+
__publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
42652
|
+
return parseFloat(
|
|
42653
|
+
Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
|
|
42654
|
+
);
|
|
42655
|
+
});
|
|
42656
|
+
__publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
|
|
42657
|
+
return parseFloat(
|
|
42658
|
+
(this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
|
|
42659
|
+
);
|
|
42660
|
+
});
|
|
42661
|
+
__publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
42662
|
+
const score2 = parseFloat(
|
|
42663
|
+
(1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
|
|
42664
|
+
);
|
|
42665
|
+
return score2 > 1 ? 1 : score2 < 0 ? 0 : score2;
|
|
42666
|
+
});
|
|
42667
|
+
__publicField(this, "getVersion", () => {
|
|
42668
|
+
return this.version;
|
|
42669
|
+
});
|
|
42670
|
+
__publicField(this, "stamp", (finalLength, date5) => {
|
|
42671
|
+
const hexStamp = Math.floor(+(date5 || /* @__PURE__ */ new Date()) / 1e3).toString(16);
|
|
42672
|
+
if (typeof finalLength === "number" && finalLength === 0) {
|
|
42673
|
+
return hexStamp;
|
|
42674
|
+
}
|
|
42675
|
+
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
42676
|
+
throw new Error(
|
|
42677
|
+
[
|
|
42678
|
+
"Param finalLength must be a number greater than or equal to 10,",
|
|
42679
|
+
"or 0 if you want the raw hexadecimal timestamp"
|
|
42680
|
+
].join("\n")
|
|
42681
|
+
);
|
|
42682
|
+
}
|
|
42683
|
+
const idLength = finalLength - 9;
|
|
42684
|
+
const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
42685
|
+
const id6 = this.randomUUID(idLength);
|
|
42686
|
+
return `${id6.substring(0, rndIdx)}${hexStamp}${id6.substring(rndIdx)}${rndIdx.toString(16)}`;
|
|
42687
|
+
});
|
|
42688
|
+
__publicField(this, "parseStamp", (suid, format4) => {
|
|
42689
|
+
if (format4 && !/t0|t[1-9]\d{1,}/.test(format4)) {
|
|
42690
|
+
throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
|
|
42691
|
+
}
|
|
42692
|
+
const stamp = format4 ? format4.replace(
|
|
42693
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
42694
|
+
(m) => {
|
|
42695
|
+
const fnMap = {
|
|
42696
|
+
"$r": (len2) => [...Array(len2)].map(() => "r").join(""),
|
|
42697
|
+
"$s": (len2) => [...Array(len2)].map(() => "s").join(""),
|
|
42698
|
+
"$t": (len2) => [...Array(len2)].map(() => "t").join("")
|
|
42699
|
+
};
|
|
42700
|
+
const fn2 = m.slice(0, 2);
|
|
42701
|
+
const len = parseInt(m.slice(2), 10);
|
|
42702
|
+
return fnMap[fn2](len);
|
|
42703
|
+
}
|
|
42704
|
+
).replace(
|
|
42705
|
+
/^(.*?)(t{8,})(.*)$/g,
|
|
42706
|
+
(_m, p1, p2) => {
|
|
42707
|
+
return suid.substring(p1.length, p1.length + p2.length);
|
|
42708
|
+
}
|
|
42709
|
+
) : suid;
|
|
42710
|
+
if (stamp.length === 8) {
|
|
42711
|
+
return new Date(parseInt(stamp, 16) * 1e3);
|
|
42712
|
+
}
|
|
42713
|
+
if (stamp.length < 10) {
|
|
42714
|
+
throw new Error("Stamp length invalid");
|
|
42715
|
+
}
|
|
42716
|
+
const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
|
|
42717
|
+
return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
|
|
42718
|
+
});
|
|
42719
|
+
__publicField(this, "setCounter", (counter2) => {
|
|
42720
|
+
this.counter = counter2;
|
|
42721
|
+
});
|
|
42722
|
+
const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
42723
|
+
this.counter = 0;
|
|
42724
|
+
this.debug = false;
|
|
42725
|
+
this.dict = [];
|
|
42726
|
+
this.version = version6;
|
|
42727
|
+
const {
|
|
42728
|
+
dictionary,
|
|
42729
|
+
shuffle,
|
|
42730
|
+
length: length2,
|
|
42731
|
+
counter
|
|
42732
|
+
} = options;
|
|
42733
|
+
this.uuidLength = length2;
|
|
42734
|
+
this.setDictionary(dictionary, shuffle);
|
|
42735
|
+
this.setCounter(counter);
|
|
42736
|
+
this.debug = options.debug;
|
|
42737
|
+
this.log(this.dict);
|
|
42738
|
+
this.log(
|
|
42739
|
+
`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
|
|
42740
|
+
);
|
|
42741
|
+
this.log = this.log.bind(this);
|
|
42742
|
+
this.setDictionary = this.setDictionary.bind(this);
|
|
42743
|
+
this.setCounter = this.setCounter.bind(this);
|
|
42744
|
+
this.seq = this.seq.bind(this);
|
|
42745
|
+
this.sequentialUUID = this.sequentialUUID.bind(this);
|
|
42746
|
+
this.rnd = this.rnd.bind(this);
|
|
42747
|
+
this.randomUUID = this.randomUUID.bind(this);
|
|
42748
|
+
this.fmt = this.fmt.bind(this);
|
|
42749
|
+
this.formattedUUID = this.formattedUUID.bind(this);
|
|
42750
|
+
this.availableUUIDs = this.availableUUIDs.bind(this);
|
|
42751
|
+
this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
|
|
42752
|
+
this.collisionProbability = this.collisionProbability.bind(this);
|
|
42753
|
+
this.uniqueness = this.uniqueness.bind(this);
|
|
42754
|
+
this.getVersion = this.getVersion.bind(this);
|
|
42755
|
+
this.stamp = this.stamp.bind(this);
|
|
42756
|
+
this.parseStamp = this.parseStamp.bind(this);
|
|
42757
|
+
return this;
|
|
42758
|
+
}
|
|
42759
|
+
};
|
|
42760
|
+
__publicField(_ShortUniqueId, "default", _ShortUniqueId);
|
|
42761
|
+
var ShortUniqueId3 = _ShortUniqueId;
|
|
42762
|
+
return __toCommonJS2(src_exports2);
|
|
42763
|
+
})();
|
|
42764
|
+
"undefined" != typeof module3 && (module3.exports = ShortUniqueId2.default), "undefined" != typeof window && (ShortUniqueId2 = ShortUniqueId2.default);
|
|
42765
|
+
}
|
|
42766
|
+
});
|
|
42767
|
+
|
|
42768
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/generate-id.js
|
|
42769
|
+
function generateId() {
|
|
42770
|
+
return uid.rnd(6);
|
|
42771
|
+
}
|
|
42772
|
+
var import_short_unique_id, uid;
|
|
42773
|
+
var init_generate_id = __esm({
|
|
42774
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/generate-id.js"() {
|
|
42775
|
+
import_short_unique_id = __toESM(require_short_unique_id(), 1);
|
|
42776
|
+
uid = new import_short_unique_id.default({ length: 10 });
|
|
42777
|
+
}
|
|
42778
|
+
});
|
|
42779
|
+
|
|
42508
42780
|
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/AddressBookQuery.js
|
|
42509
42781
|
var AddressBookQuery;
|
|
42510
42782
|
var init_AddressBookQuery = __esm({
|
|
42511
42783
|
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/AddressBookQuery.js"() {
|
|
42512
42784
|
init_esm();
|
|
42513
42785
|
init_namespaces();
|
|
42514
|
-
|
|
42786
|
+
init_generate_id();
|
|
42515
42787
|
AddressBookQuery = class {
|
|
42516
42788
|
constructor(store, addressBookNode) {
|
|
42517
42789
|
this.store = store;
|
|
@@ -42525,7 +42797,7 @@ var PodOS = (() => {
|
|
|
42525
42797
|
return this.proposeNewNode("Group");
|
|
42526
42798
|
}
|
|
42527
42799
|
proposeNewNode(containerPath) {
|
|
42528
|
-
const id6 =
|
|
42800
|
+
const id6 = generateId();
|
|
42529
42801
|
const baseUri = this.addressBookNode.dir()?.uri;
|
|
42530
42802
|
return namedNode2(`${baseUri}${containerPath}/${id6}/index.ttl#this`);
|
|
42531
42803
|
}
|
|
@@ -42639,7 +42911,7 @@ var PodOS = (() => {
|
|
|
42639
42911
|
|
|
42640
42912
|
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/createAddressBook.js
|
|
42641
42913
|
function createAddressBook(container2, name7) {
|
|
42642
|
-
const id6 =
|
|
42914
|
+
const id6 = generateId();
|
|
42643
42915
|
const uri6 = `${container2}${id6}/index.ttl#this`;
|
|
42644
42916
|
const nameEmailIndexUri = `${container2}${id6}/people.ttl`;
|
|
42645
42917
|
const groupIndexUri = `${container2}${id6}/groups.ttl`;
|
|
@@ -42659,8 +42931,8 @@ var PodOS = (() => {
|
|
|
42659
42931
|
var init_createAddressBook = __esm({
|
|
42660
42932
|
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/createAddressBook.js"() {
|
|
42661
42933
|
init_esm();
|
|
42662
|
-
init_esm_browser();
|
|
42663
42934
|
init_namespaces();
|
|
42935
|
+
init_generate_id();
|
|
42664
42936
|
}
|
|
42665
42937
|
});
|
|
42666
42938
|
|
|
@@ -42831,6 +43103,169 @@ var PodOS = (() => {
|
|
|
42831
43103
|
}
|
|
42832
43104
|
});
|
|
42833
43105
|
|
|
43106
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/addNewPhoneNumber.js
|
|
43107
|
+
function addNewPhoneNumber(contactNode, phoneNumber) {
|
|
43108
|
+
const id6 = generateId();
|
|
43109
|
+
const uri6 = `${contactNode.doc().uri}#${id6}`;
|
|
43110
|
+
return {
|
|
43111
|
+
uri: uri6,
|
|
43112
|
+
insertions: [
|
|
43113
|
+
st2(contactNode, vcard("hasTelephone"), namedNode2(uri6), contactNode.doc()),
|
|
43114
|
+
st2(namedNode2(uri6), vcard("value"), namedNode2("tel:" + phoneNumber), contactNode.doc())
|
|
43115
|
+
],
|
|
43116
|
+
deletions: [],
|
|
43117
|
+
filesToCreate: []
|
|
43118
|
+
};
|
|
43119
|
+
}
|
|
43120
|
+
var init_addNewPhoneNumber = __esm({
|
|
43121
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/addNewPhoneNumber.js"() {
|
|
43122
|
+
init_esm();
|
|
43123
|
+
init_generate_id();
|
|
43124
|
+
init_namespaces();
|
|
43125
|
+
}
|
|
43126
|
+
});
|
|
43127
|
+
|
|
43128
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/addNewEmailAddress.js
|
|
43129
|
+
function addNewEmailAddress(contactNode, emailAddress) {
|
|
43130
|
+
const id6 = generateId();
|
|
43131
|
+
const uri6 = `${contactNode.doc().uri}#${id6}`;
|
|
43132
|
+
return {
|
|
43133
|
+
uri: uri6,
|
|
43134
|
+
insertions: [
|
|
43135
|
+
st2(contactNode, vcard("hasEmail"), namedNode2(uri6), contactNode.doc()),
|
|
43136
|
+
st2(namedNode2(uri6), vcard("value"), namedNode2("mailto:" + emailAddress), contactNode.doc())
|
|
43137
|
+
],
|
|
43138
|
+
deletions: [],
|
|
43139
|
+
filesToCreate: []
|
|
43140
|
+
};
|
|
43141
|
+
}
|
|
43142
|
+
var init_addNewEmailAddress = __esm({
|
|
43143
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/addNewEmailAddress.js"() {
|
|
43144
|
+
init_esm();
|
|
43145
|
+
init_generate_id();
|
|
43146
|
+
init_namespaces();
|
|
43147
|
+
}
|
|
43148
|
+
});
|
|
43149
|
+
|
|
43150
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/removePhoneNumber.js
|
|
43151
|
+
function removePhoneNumber(contactNode, phoneNode, store) {
|
|
43152
|
+
const phoneStatements = store.statementsMatching(phoneNode, null, null, phoneNode.doc());
|
|
43153
|
+
return {
|
|
43154
|
+
uri: "",
|
|
43155
|
+
insertions: [],
|
|
43156
|
+
deletions: [
|
|
43157
|
+
...phoneStatements,
|
|
43158
|
+
st2(contactNode, vcard("hasTelephone"), phoneNode, contactNode.doc())
|
|
43159
|
+
],
|
|
43160
|
+
filesToCreate: []
|
|
43161
|
+
};
|
|
43162
|
+
}
|
|
43163
|
+
var init_removePhoneNumber = __esm({
|
|
43164
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/removePhoneNumber.js"() {
|
|
43165
|
+
init_esm();
|
|
43166
|
+
init_namespaces();
|
|
43167
|
+
}
|
|
43168
|
+
});
|
|
43169
|
+
|
|
43170
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/removeEmailAddress.js
|
|
43171
|
+
function removeEmailAddress(contactNode, emailNode, store) {
|
|
43172
|
+
const emailStatements = store.statementsMatching(emailNode, null, null, emailNode.doc());
|
|
43173
|
+
return {
|
|
43174
|
+
uri: "",
|
|
43175
|
+
insertions: [],
|
|
43176
|
+
deletions: [
|
|
43177
|
+
...emailStatements,
|
|
43178
|
+
st2(contactNode, vcard("hasEmail"), emailNode, contactNode.doc())
|
|
43179
|
+
],
|
|
43180
|
+
filesToCreate: []
|
|
43181
|
+
};
|
|
43182
|
+
}
|
|
43183
|
+
var init_removeEmailAddress = __esm({
|
|
43184
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/update-operations/removeEmailAddress.js"() {
|
|
43185
|
+
init_esm();
|
|
43186
|
+
init_namespaces();
|
|
43187
|
+
}
|
|
43188
|
+
});
|
|
43189
|
+
|
|
43190
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/ProfileQuery.js
|
|
43191
|
+
var ProfileQuery;
|
|
43192
|
+
var init_ProfileQuery = __esm({
|
|
43193
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/ProfileQuery.js"() {
|
|
43194
|
+
init_esm();
|
|
43195
|
+
init_namespaces();
|
|
43196
|
+
ProfileQuery = class {
|
|
43197
|
+
constructor(webIdNode, store) {
|
|
43198
|
+
this.webIdNode = webIdNode;
|
|
43199
|
+
this.store = store;
|
|
43200
|
+
}
|
|
43201
|
+
queryPublicTypeIndex() {
|
|
43202
|
+
const predicate2 = solid("publicTypeIndex");
|
|
43203
|
+
return this.queryNamedNode(predicate2);
|
|
43204
|
+
}
|
|
43205
|
+
queryPreferencesFile() {
|
|
43206
|
+
const predicate2 = pim("preferencesFile");
|
|
43207
|
+
return this.queryNamedNode(predicate2);
|
|
43208
|
+
}
|
|
43209
|
+
queryNamedNode(predicate2) {
|
|
43210
|
+
const node2 = this.store.any(this.webIdNode, predicate2, null, this.webIdNode.doc());
|
|
43211
|
+
if (isNamedNode(node2)) {
|
|
43212
|
+
return node2;
|
|
43213
|
+
}
|
|
43214
|
+
return null;
|
|
43215
|
+
}
|
|
43216
|
+
};
|
|
43217
|
+
}
|
|
43218
|
+
});
|
|
43219
|
+
|
|
43220
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/TypeIndexQuery.js
|
|
43221
|
+
var TypeIndexQuery;
|
|
43222
|
+
var init_TypeIndexQuery = __esm({
|
|
43223
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/TypeIndexQuery.js"() {
|
|
43224
|
+
init_esm();
|
|
43225
|
+
init_namespaces();
|
|
43226
|
+
TypeIndexQuery = class {
|
|
43227
|
+
constructor(store, typeIndexDoc) {
|
|
43228
|
+
this.store = store;
|
|
43229
|
+
this.typeIndexDoc = typeIndexDoc;
|
|
43230
|
+
}
|
|
43231
|
+
queryAddressBookInstances() {
|
|
43232
|
+
const addressBookRegistrations = this.store.each(null, solid("forClass"), vcard("AddressBook"), this.typeIndexDoc);
|
|
43233
|
+
return addressBookRegistrations.flatMap((registration) => {
|
|
43234
|
+
if (!isNamedNode(registration))
|
|
43235
|
+
return [];
|
|
43236
|
+
return this.getInstanceValues(registration);
|
|
43237
|
+
});
|
|
43238
|
+
}
|
|
43239
|
+
getInstanceValues(registration) {
|
|
43240
|
+
return this.store.each(registration, solid("instance"), null, this.typeIndexDoc).map((it) => it.value);
|
|
43241
|
+
}
|
|
43242
|
+
};
|
|
43243
|
+
}
|
|
43244
|
+
});
|
|
43245
|
+
|
|
43246
|
+
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/PreferencesQuery.js
|
|
43247
|
+
var PreferencesQuery;
|
|
43248
|
+
var init_PreferencesQuery = __esm({
|
|
43249
|
+
"../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/queries/PreferencesQuery.js"() {
|
|
43250
|
+
init_esm();
|
|
43251
|
+
init_namespaces();
|
|
43252
|
+
PreferencesQuery = class {
|
|
43253
|
+
constructor(store, webIdNode, preferencesDoc) {
|
|
43254
|
+
this.store = store;
|
|
43255
|
+
this.webIdNode = webIdNode;
|
|
43256
|
+
this.preferencesDoc = preferencesDoc;
|
|
43257
|
+
}
|
|
43258
|
+
queryPrivateTypeIndex() {
|
|
43259
|
+
const node2 = this.store.any(this.webIdNode, solid("privateTypeIndex"), null, this.preferencesDoc);
|
|
43260
|
+
if (isNamedNode(node2)) {
|
|
43261
|
+
return node2;
|
|
43262
|
+
}
|
|
43263
|
+
return null;
|
|
43264
|
+
}
|
|
43265
|
+
};
|
|
43266
|
+
}
|
|
43267
|
+
});
|
|
43268
|
+
|
|
42834
43269
|
// ../node_modules/@solid-data-modules/contacts-rdflib/dist/rdflib/ContactsModuleRdfLib.js
|
|
42835
43270
|
var ContactsModuleRdfLib;
|
|
42836
43271
|
var init_ContactsModuleRdfLib = __esm({
|
|
@@ -42844,11 +43279,18 @@ var PodOS = (() => {
|
|
|
42844
43279
|
init_GroupQuery();
|
|
42845
43280
|
init_addContactToGroup();
|
|
42846
43281
|
init_removeContactFromGroup();
|
|
43282
|
+
init_addNewPhoneNumber();
|
|
43283
|
+
init_addNewEmailAddress();
|
|
43284
|
+
init_removePhoneNumber();
|
|
43285
|
+
init_removeEmailAddress();
|
|
43286
|
+
init_ProfileQuery();
|
|
43287
|
+
init_TypeIndexQuery();
|
|
43288
|
+
init_PreferencesQuery();
|
|
42847
43289
|
ContactsModuleRdfLib = class {
|
|
42848
|
-
constructor(
|
|
42849
|
-
this.store =
|
|
42850
|
-
this.fetcher =
|
|
42851
|
-
this.updater =
|
|
43290
|
+
constructor(config2) {
|
|
43291
|
+
this.store = config2.store;
|
|
43292
|
+
this.fetcher = config2.fetcher;
|
|
43293
|
+
this.updater = config2.updater;
|
|
42852
43294
|
}
|
|
42853
43295
|
async readAddressBook(uri6) {
|
|
42854
43296
|
const addressBookNode = namedNode2(uri6);
|
|
@@ -42956,6 +43398,65 @@ var PodOS = (() => {
|
|
|
42956
43398
|
const operation3 = removeContactFromGroup(contactQuery, groupQuery);
|
|
42957
43399
|
await executeUpdate(this.fetcher, this.updater, operation3);
|
|
42958
43400
|
}
|
|
43401
|
+
async addNewPhoneNumber({ contactUri, newPhoneNumber }) {
|
|
43402
|
+
const contactNode = namedNode2(contactUri);
|
|
43403
|
+
const operation3 = addNewPhoneNumber(contactNode, newPhoneNumber);
|
|
43404
|
+
await executeUpdate(this.fetcher, this.updater, operation3);
|
|
43405
|
+
return operation3.uri;
|
|
43406
|
+
}
|
|
43407
|
+
async addNewEmailAddress({ contactUri, newEmailAddress }) {
|
|
43408
|
+
const contactNode = namedNode2(contactUri);
|
|
43409
|
+
const operation3 = addNewEmailAddress(contactNode, newEmailAddress);
|
|
43410
|
+
await executeUpdate(this.fetcher, this.updater, operation3);
|
|
43411
|
+
return operation3.uri;
|
|
43412
|
+
}
|
|
43413
|
+
async removePhoneNumber({ contactUri, phoneNumberUri }) {
|
|
43414
|
+
const contactNode = namedNode2(contactUri);
|
|
43415
|
+
const phoneNumberNode = namedNode2(phoneNumberUri);
|
|
43416
|
+
await this.fetchNode(phoneNumberNode);
|
|
43417
|
+
const operation3 = removePhoneNumber(contactNode, phoneNumberNode, this.store);
|
|
43418
|
+
await executeUpdate(this.fetcher, this.updater, operation3);
|
|
43419
|
+
}
|
|
43420
|
+
async removeEmailAddress({ contactUri, emailAddressUri }) {
|
|
43421
|
+
const contactNode = namedNode2(contactUri);
|
|
43422
|
+
const emailAddressNode = namedNode2(emailAddressUri);
|
|
43423
|
+
await this.fetchNode(emailAddressNode);
|
|
43424
|
+
const operation3 = removeEmailAddress(contactNode, emailAddressNode, this.store);
|
|
43425
|
+
await executeUpdate(this.fetcher, this.updater, operation3);
|
|
43426
|
+
}
|
|
43427
|
+
async listAddressBooks(webId) {
|
|
43428
|
+
const profileNode = namedNode2(webId);
|
|
43429
|
+
await this.fetchNode(profileNode);
|
|
43430
|
+
const profileQuery = new ProfileQuery(profileNode, this.store);
|
|
43431
|
+
const publicTypeIndexNode = profileQuery.queryPublicTypeIndex();
|
|
43432
|
+
const preferencesFile2 = profileQuery.queryPreferencesFile();
|
|
43433
|
+
const promisePublicUris = this.fetchIndexedAddressBooks(publicTypeIndexNode);
|
|
43434
|
+
const promisePrivateTypeIndex = this.fetchPrivateTypeIndex(profileNode, preferencesFile2);
|
|
43435
|
+
const [publicUris, privateTypeIndex2] = await Promise.allSettled([
|
|
43436
|
+
promisePublicUris,
|
|
43437
|
+
promisePrivateTypeIndex
|
|
43438
|
+
]);
|
|
43439
|
+
const privateUris = privateTypeIndex2.status === "fulfilled" ? await this.fetchIndexedAddressBooks(privateTypeIndex2.value) : [];
|
|
43440
|
+
return {
|
|
43441
|
+
publicUris: publicUris.status === "fulfilled" ? publicUris.value : [],
|
|
43442
|
+
privateUris
|
|
43443
|
+
};
|
|
43444
|
+
}
|
|
43445
|
+
async fetchIndexedAddressBooks(publicTypeIndexNode) {
|
|
43446
|
+
if (!publicTypeIndexNode) {
|
|
43447
|
+
return [];
|
|
43448
|
+
}
|
|
43449
|
+
await this.fetchNode(publicTypeIndexNode);
|
|
43450
|
+
return new TypeIndexQuery(this.store, publicTypeIndexNode).queryAddressBookInstances();
|
|
43451
|
+
}
|
|
43452
|
+
async fetchPrivateTypeIndex(profileNode, preferencesFile2) {
|
|
43453
|
+
if (!preferencesFile2) {
|
|
43454
|
+
return null;
|
|
43455
|
+
}
|
|
43456
|
+
await this.fetchNode(preferencesFile2);
|
|
43457
|
+
const preferencesQuery = new PreferencesQuery(this.store, profileNode, preferencesFile2);
|
|
43458
|
+
return preferencesQuery.queryPrivateTypeIndex();
|
|
43459
|
+
}
|
|
42959
43460
|
};
|
|
42960
43461
|
}
|
|
42961
43462
|
});
|
|
@@ -42977,7 +43478,7 @@ var PodOS = (() => {
|
|
|
42977
43478
|
var require_lunr = __commonJS({
|
|
42978
43479
|
"../node_modules/lunr/lunr.js"(exports, module3) {
|
|
42979
43480
|
(function() {
|
|
42980
|
-
var lunr2 = function(
|
|
43481
|
+
var lunr2 = function(config2) {
|
|
42981
43482
|
var builder = new lunr2.Builder();
|
|
42982
43483
|
builder.pipeline.add(
|
|
42983
43484
|
lunr2.trimmer,
|
|
@@ -42987,7 +43488,7 @@ var PodOS = (() => {
|
|
|
42987
43488
|
builder.searchPipeline.add(
|
|
42988
43489
|
lunr2.stemmer
|
|
42989
43490
|
);
|
|
42990
|
-
|
|
43491
|
+
config2.call(builder, builder);
|
|
42991
43492
|
return builder.build();
|
|
42992
43493
|
};
|
|
42993
43494
|
lunr2.version = "2.3.9";
|
|
@@ -44952,8 +45453,8 @@ var PodOS = (() => {
|
|
|
44952
45453
|
if (usages.length && !usages.some((expected) => key3.usages.includes(expected))) {
|
|
44953
45454
|
let msg2 = "CryptoKey does not support this operation, its usages must include ";
|
|
44954
45455
|
if (usages.length > 2) {
|
|
44955
|
-
const
|
|
44956
|
-
msg2 += `one of ${usages.join(", ")}, or ${
|
|
45456
|
+
const last3 = usages.pop();
|
|
45457
|
+
msg2 += `one of ${usages.join(", ")}, or ${last3}.`;
|
|
44957
45458
|
} else if (usages.length === 2) {
|
|
44958
45459
|
msg2 += `one of ${usages[0]} or ${usages[1]}.`;
|
|
44959
45460
|
} else {
|
|
@@ -45023,8 +45524,8 @@ var PodOS = (() => {
|
|
|
45023
45524
|
// ../node_modules/jose/dist/browser/lib/invalid_key_input.js
|
|
45024
45525
|
function message(msg2, actual2, ...types2) {
|
|
45025
45526
|
if (types2.length > 2) {
|
|
45026
|
-
const
|
|
45027
|
-
msg2 += `one of type ${types2.join(", ")}, or ${
|
|
45527
|
+
const last3 = types2.pop();
|
|
45528
|
+
msg2 += `one of type ${types2.join(", ")}, or ${last3}.`;
|
|
45028
45529
|
} else if (types2.length === 2) {
|
|
45029
45530
|
msg2 += `one of type ${types2[0]} or ${types2[1]}.`;
|
|
45030
45531
|
} else {
|
|
@@ -45998,8 +46499,55 @@ var PodOS = (() => {
|
|
|
45998
46499
|
return generateKeyPair(alg, options);
|
|
45999
46500
|
}
|
|
46000
46501
|
|
|
46502
|
+
// ../node_modules/uuid/dist/esm-browser/rng.js
|
|
46503
|
+
var getRandomValues;
|
|
46504
|
+
var rnds8 = new Uint8Array(16);
|
|
46505
|
+
function rng() {
|
|
46506
|
+
if (!getRandomValues) {
|
|
46507
|
+
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
46508
|
+
if (!getRandomValues) {
|
|
46509
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
46510
|
+
}
|
|
46511
|
+
}
|
|
46512
|
+
return getRandomValues(rnds8);
|
|
46513
|
+
}
|
|
46514
|
+
|
|
46515
|
+
// ../node_modules/uuid/dist/esm-browser/stringify.js
|
|
46516
|
+
var byteToHex = [];
|
|
46517
|
+
for (let i = 0; i < 256; ++i) {
|
|
46518
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
46519
|
+
}
|
|
46520
|
+
function unsafeStringify(arr, offset3 = 0) {
|
|
46521
|
+
return byteToHex[arr[offset3 + 0]] + byteToHex[arr[offset3 + 1]] + byteToHex[arr[offset3 + 2]] + byteToHex[arr[offset3 + 3]] + "-" + byteToHex[arr[offset3 + 4]] + byteToHex[arr[offset3 + 5]] + "-" + byteToHex[arr[offset3 + 6]] + byteToHex[arr[offset3 + 7]] + "-" + byteToHex[arr[offset3 + 8]] + byteToHex[arr[offset3 + 9]] + "-" + byteToHex[arr[offset3 + 10]] + byteToHex[arr[offset3 + 11]] + byteToHex[arr[offset3 + 12]] + byteToHex[arr[offset3 + 13]] + byteToHex[arr[offset3 + 14]] + byteToHex[arr[offset3 + 15]];
|
|
46522
|
+
}
|
|
46523
|
+
|
|
46524
|
+
// ../node_modules/uuid/dist/esm-browser/native.js
|
|
46525
|
+
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
46526
|
+
var native_default = {
|
|
46527
|
+
randomUUID
|
|
46528
|
+
};
|
|
46529
|
+
|
|
46530
|
+
// ../node_modules/uuid/dist/esm-browser/v4.js
|
|
46531
|
+
function v4(options, buf, offset3) {
|
|
46532
|
+
if (native_default.randomUUID && !buf && !options) {
|
|
46533
|
+
return native_default.randomUUID();
|
|
46534
|
+
}
|
|
46535
|
+
options = options || {};
|
|
46536
|
+
const rnds = options.random || (options.rng || rng)();
|
|
46537
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
46538
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
46539
|
+
if (buf) {
|
|
46540
|
+
offset3 = offset3 || 0;
|
|
46541
|
+
for (let i = 0; i < 16; ++i) {
|
|
46542
|
+
buf[offset3 + i] = rnds[i];
|
|
46543
|
+
}
|
|
46544
|
+
return buf;
|
|
46545
|
+
}
|
|
46546
|
+
return unsafeStringify(rnds);
|
|
46547
|
+
}
|
|
46548
|
+
var v4_default = v4;
|
|
46549
|
+
|
|
46001
46550
|
// ../node_modules/@inrupt/solid-client-authn-core/dist/index.mjs
|
|
46002
|
-
init_esm_browser();
|
|
46003
46551
|
var SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
|
|
46004
46552
|
var PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
|
|
46005
46553
|
var EVENTS = {
|
|
@@ -46651,7 +47199,6 @@ var PodOS = (() => {
|
|
|
46651
47199
|
}
|
|
46652
47200
|
|
|
46653
47201
|
// ../node_modules/@inrupt/solid-client-authn-browser/dist/index.mjs
|
|
46654
|
-
init_esm_browser();
|
|
46655
47202
|
var import_events2 = __toESM(require_events(), 1);
|
|
46656
47203
|
|
|
46657
47204
|
// ../node_modules/@inrupt/oidc-client-ext/dist/index.es.js
|
|
@@ -46686,7 +47233,7 @@ var PodOS = (() => {
|
|
|
46686
47233
|
throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");
|
|
46687
47234
|
}
|
|
46688
47235
|
const signingAlg = determineSigningAlg(issuerConfig.idTokenSigningAlgValuesSupported, PREFERRED_SIGNING_ALG);
|
|
46689
|
-
const
|
|
47236
|
+
const config2 = {
|
|
46690
47237
|
/* eslint-disable camelcase */
|
|
46691
47238
|
client_name: options.clientName,
|
|
46692
47239
|
application_type: "web",
|
|
@@ -46703,7 +47250,7 @@ var PodOS = (() => {
|
|
|
46703
47250
|
const registerResponse = await fetch(issuerConfig.registrationEndpoint.toString(), {
|
|
46704
47251
|
method: "POST",
|
|
46705
47252
|
headers,
|
|
46706
|
-
body: JSON.stringify(
|
|
47253
|
+
body: JSON.stringify(config2)
|
|
46707
47254
|
});
|
|
46708
47255
|
if (registerResponse.ok) {
|
|
46709
47256
|
const responseBody = await registerResponse.json();
|
|
@@ -47200,11 +47747,11 @@ var PodOS = (() => {
|
|
|
47200
47747
|
convertToUrl: true
|
|
47201
47748
|
}
|
|
47202
47749
|
};
|
|
47203
|
-
function processConfig(
|
|
47750
|
+
function processConfig(config2) {
|
|
47204
47751
|
const parsedConfig = {};
|
|
47205
|
-
Object.keys(
|
|
47752
|
+
Object.keys(config2).forEach((key3) => {
|
|
47206
47753
|
if (issuerConfigKeyMap[key3]) {
|
|
47207
|
-
parsedConfig[issuerConfigKeyMap[key3].toKey] =
|
|
47754
|
+
parsedConfig[issuerConfigKeyMap[key3].toKey] = config2[key3];
|
|
47208
47755
|
}
|
|
47209
47756
|
});
|
|
47210
47757
|
if (!Array.isArray(parsedConfig.scopesSupported)) {
|
|
@@ -47746,6 +48293,1654 @@ var PodOS = (() => {
|
|
|
47746
48293
|
}
|
|
47747
48294
|
};
|
|
47748
48295
|
|
|
48296
|
+
// ../node_modules/tslib/tslib.es6.mjs
|
|
48297
|
+
var extendStatics = function(d, b) {
|
|
48298
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
48299
|
+
d2.__proto__ = b2;
|
|
48300
|
+
} || function(d2, b2) {
|
|
48301
|
+
for (var p in b2)
|
|
48302
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
48303
|
+
d2[p] = b2[p];
|
|
48304
|
+
};
|
|
48305
|
+
return extendStatics(d, b);
|
|
48306
|
+
};
|
|
48307
|
+
function __extends(d, b) {
|
|
48308
|
+
if (typeof b !== "function" && b !== null)
|
|
48309
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
48310
|
+
extendStatics(d, b);
|
|
48311
|
+
function __() {
|
|
48312
|
+
this.constructor = d;
|
|
48313
|
+
}
|
|
48314
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
48315
|
+
}
|
|
48316
|
+
function __awaiter(thisArg, _arguments, P, generator3) {
|
|
48317
|
+
function adopt(value6) {
|
|
48318
|
+
return value6 instanceof P ? value6 : new P(function(resolve) {
|
|
48319
|
+
resolve(value6);
|
|
48320
|
+
});
|
|
48321
|
+
}
|
|
48322
|
+
return new (P || (P = Promise))(function(resolve, reject2) {
|
|
48323
|
+
function fulfilled(value6) {
|
|
48324
|
+
try {
|
|
48325
|
+
step4(generator3.next(value6));
|
|
48326
|
+
} catch (e) {
|
|
48327
|
+
reject2(e);
|
|
48328
|
+
}
|
|
48329
|
+
}
|
|
48330
|
+
function rejected(value6) {
|
|
48331
|
+
try {
|
|
48332
|
+
step4(generator3["throw"](value6));
|
|
48333
|
+
} catch (e) {
|
|
48334
|
+
reject2(e);
|
|
48335
|
+
}
|
|
48336
|
+
}
|
|
48337
|
+
function step4(result5) {
|
|
48338
|
+
result5.done ? resolve(result5.value) : adopt(result5.value).then(fulfilled, rejected);
|
|
48339
|
+
}
|
|
48340
|
+
step4((generator3 = generator3.apply(thisArg, _arguments || [])).next());
|
|
48341
|
+
});
|
|
48342
|
+
}
|
|
48343
|
+
function __generator(thisArg, body) {
|
|
48344
|
+
var _ = { label: 0, sent: function() {
|
|
48345
|
+
if (t[0] & 1)
|
|
48346
|
+
throw t[1];
|
|
48347
|
+
return t[1];
|
|
48348
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
48349
|
+
return g = { next: verb2(0), "throw": verb2(1), "return": verb2(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
48350
|
+
return this;
|
|
48351
|
+
}), g;
|
|
48352
|
+
function verb2(n2) {
|
|
48353
|
+
return function(v2) {
|
|
48354
|
+
return step4([n2, v2]);
|
|
48355
|
+
};
|
|
48356
|
+
}
|
|
48357
|
+
function step4(op2) {
|
|
48358
|
+
if (f)
|
|
48359
|
+
throw new TypeError("Generator is already executing.");
|
|
48360
|
+
while (g && (g = 0, op2[0] && (_ = 0)), _)
|
|
48361
|
+
try {
|
|
48362
|
+
if (f = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done)
|
|
48363
|
+
return t;
|
|
48364
|
+
if (y = 0, t)
|
|
48365
|
+
op2 = [op2[0] & 2, t.value];
|
|
48366
|
+
switch (op2[0]) {
|
|
48367
|
+
case 0:
|
|
48368
|
+
case 1:
|
|
48369
|
+
t = op2;
|
|
48370
|
+
break;
|
|
48371
|
+
case 4:
|
|
48372
|
+
_.label++;
|
|
48373
|
+
return { value: op2[1], done: false };
|
|
48374
|
+
case 5:
|
|
48375
|
+
_.label++;
|
|
48376
|
+
y = op2[1];
|
|
48377
|
+
op2 = [0];
|
|
48378
|
+
continue;
|
|
48379
|
+
case 7:
|
|
48380
|
+
op2 = _.ops.pop();
|
|
48381
|
+
_.trys.pop();
|
|
48382
|
+
continue;
|
|
48383
|
+
default:
|
|
48384
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) {
|
|
48385
|
+
_ = 0;
|
|
48386
|
+
continue;
|
|
48387
|
+
}
|
|
48388
|
+
if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) {
|
|
48389
|
+
_.label = op2[1];
|
|
48390
|
+
break;
|
|
48391
|
+
}
|
|
48392
|
+
if (op2[0] === 6 && _.label < t[1]) {
|
|
48393
|
+
_.label = t[1];
|
|
48394
|
+
t = op2;
|
|
48395
|
+
break;
|
|
48396
|
+
}
|
|
48397
|
+
if (t && _.label < t[2]) {
|
|
48398
|
+
_.label = t[2];
|
|
48399
|
+
_.ops.push(op2);
|
|
48400
|
+
break;
|
|
48401
|
+
}
|
|
48402
|
+
if (t[2])
|
|
48403
|
+
_.ops.pop();
|
|
48404
|
+
_.trys.pop();
|
|
48405
|
+
continue;
|
|
48406
|
+
}
|
|
48407
|
+
op2 = body.call(thisArg, _);
|
|
48408
|
+
} catch (e) {
|
|
48409
|
+
op2 = [6, e];
|
|
48410
|
+
y = 0;
|
|
48411
|
+
} finally {
|
|
48412
|
+
f = t = 0;
|
|
48413
|
+
}
|
|
48414
|
+
if (op2[0] & 5)
|
|
48415
|
+
throw op2[1];
|
|
48416
|
+
return { value: op2[0] ? op2[1] : void 0, done: true };
|
|
48417
|
+
}
|
|
48418
|
+
}
|
|
48419
|
+
function __values(o) {
|
|
48420
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
48421
|
+
if (m)
|
|
48422
|
+
return m.call(o);
|
|
48423
|
+
if (o && typeof o.length === "number")
|
|
48424
|
+
return {
|
|
48425
|
+
next: function() {
|
|
48426
|
+
if (o && i >= o.length)
|
|
48427
|
+
o = void 0;
|
|
48428
|
+
return { value: o && o[i++], done: !o };
|
|
48429
|
+
}
|
|
48430
|
+
};
|
|
48431
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48432
|
+
}
|
|
48433
|
+
function __read(o, n2) {
|
|
48434
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
48435
|
+
if (!m)
|
|
48436
|
+
return o;
|
|
48437
|
+
var i = m.call(o), r, ar = [], e;
|
|
48438
|
+
try {
|
|
48439
|
+
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done)
|
|
48440
|
+
ar.push(r.value);
|
|
48441
|
+
} catch (error5) {
|
|
48442
|
+
e = { error: error5 };
|
|
48443
|
+
} finally {
|
|
48444
|
+
try {
|
|
48445
|
+
if (r && !r.done && (m = i["return"]))
|
|
48446
|
+
m.call(i);
|
|
48447
|
+
} finally {
|
|
48448
|
+
if (e)
|
|
48449
|
+
throw e.error;
|
|
48450
|
+
}
|
|
48451
|
+
}
|
|
48452
|
+
return ar;
|
|
48453
|
+
}
|
|
48454
|
+
function __spreadArray(to2, from2, pack) {
|
|
48455
|
+
if (pack || arguments.length === 2)
|
|
48456
|
+
for (var i = 0, l = from2.length, ar; i < l; i++) {
|
|
48457
|
+
if (ar || !(i in from2)) {
|
|
48458
|
+
if (!ar)
|
|
48459
|
+
ar = Array.prototype.slice.call(from2, 0, i);
|
|
48460
|
+
ar[i] = from2[i];
|
|
48461
|
+
}
|
|
48462
|
+
}
|
|
48463
|
+
return to2.concat(ar || Array.prototype.slice.call(from2));
|
|
48464
|
+
}
|
|
48465
|
+
function __await(v2) {
|
|
48466
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
48467
|
+
}
|
|
48468
|
+
function __asyncGenerator(thisArg, _arguments, generator3) {
|
|
48469
|
+
if (!Symbol.asyncIterator)
|
|
48470
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48471
|
+
var g = generator3.apply(thisArg, _arguments || []), i, q = [];
|
|
48472
|
+
return i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
|
|
48473
|
+
return this;
|
|
48474
|
+
}, i;
|
|
48475
|
+
function verb2(n2) {
|
|
48476
|
+
if (g[n2])
|
|
48477
|
+
i[n2] = function(v2) {
|
|
48478
|
+
return new Promise(function(a, b) {
|
|
48479
|
+
q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
|
|
48480
|
+
});
|
|
48481
|
+
};
|
|
48482
|
+
}
|
|
48483
|
+
function resume(n2, v2) {
|
|
48484
|
+
try {
|
|
48485
|
+
step4(g[n2](v2));
|
|
48486
|
+
} catch (e) {
|
|
48487
|
+
settle(q[0][3], e);
|
|
48488
|
+
}
|
|
48489
|
+
}
|
|
48490
|
+
function step4(r) {
|
|
48491
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject2) : settle(q[0][2], r);
|
|
48492
|
+
}
|
|
48493
|
+
function fulfill(value6) {
|
|
48494
|
+
resume("next", value6);
|
|
48495
|
+
}
|
|
48496
|
+
function reject2(value6) {
|
|
48497
|
+
resume("throw", value6);
|
|
48498
|
+
}
|
|
48499
|
+
function settle(f, v2) {
|
|
48500
|
+
if (f(v2), q.shift(), q.length)
|
|
48501
|
+
resume(q[0][0], q[0][1]);
|
|
48502
|
+
}
|
|
48503
|
+
}
|
|
48504
|
+
function __asyncValues(o) {
|
|
48505
|
+
if (!Symbol.asyncIterator)
|
|
48506
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48507
|
+
var m = o[Symbol.asyncIterator], i;
|
|
48508
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
|
|
48509
|
+
return this;
|
|
48510
|
+
}, i);
|
|
48511
|
+
function verb2(n2) {
|
|
48512
|
+
i[n2] = o[n2] && function(v2) {
|
|
48513
|
+
return new Promise(function(resolve, reject2) {
|
|
48514
|
+
v2 = o[n2](v2), settle(resolve, reject2, v2.done, v2.value);
|
|
48515
|
+
});
|
|
48516
|
+
};
|
|
48517
|
+
}
|
|
48518
|
+
function settle(resolve, reject2, d, v2) {
|
|
48519
|
+
Promise.resolve(v2).then(function(v3) {
|
|
48520
|
+
resolve({ value: v3, done: d });
|
|
48521
|
+
}, reject2);
|
|
48522
|
+
}
|
|
48523
|
+
}
|
|
48524
|
+
|
|
48525
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
48526
|
+
function isFunction(value6) {
|
|
48527
|
+
return typeof value6 === "function";
|
|
48528
|
+
}
|
|
48529
|
+
|
|
48530
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
|
|
48531
|
+
function createErrorClass(createImpl) {
|
|
48532
|
+
var _super = function(instance3) {
|
|
48533
|
+
Error.call(instance3);
|
|
48534
|
+
instance3.stack = new Error().stack;
|
|
48535
|
+
};
|
|
48536
|
+
var ctorFunc = createImpl(_super);
|
|
48537
|
+
ctorFunc.prototype = Object.create(Error.prototype);
|
|
48538
|
+
ctorFunc.prototype.constructor = ctorFunc;
|
|
48539
|
+
return ctorFunc;
|
|
48540
|
+
}
|
|
48541
|
+
|
|
48542
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
|
|
48543
|
+
var UnsubscriptionError = createErrorClass(function(_super) {
|
|
48544
|
+
return function UnsubscriptionErrorImpl(errors) {
|
|
48545
|
+
_super(this);
|
|
48546
|
+
this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
|
|
48547
|
+
return i + 1 + ") " + err.toString();
|
|
48548
|
+
}).join("\n ") : "";
|
|
48549
|
+
this.name = "UnsubscriptionError";
|
|
48550
|
+
this.errors = errors;
|
|
48551
|
+
};
|
|
48552
|
+
});
|
|
48553
|
+
|
|
48554
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
|
|
48555
|
+
function arrRemove(arr, item4) {
|
|
48556
|
+
if (arr) {
|
|
48557
|
+
var index2 = arr.indexOf(item4);
|
|
48558
|
+
0 <= index2 && arr.splice(index2, 1);
|
|
48559
|
+
}
|
|
48560
|
+
}
|
|
48561
|
+
|
|
48562
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subscription.js
|
|
48563
|
+
var Subscription = function() {
|
|
48564
|
+
function Subscription3(initialTeardown) {
|
|
48565
|
+
this.initialTeardown = initialTeardown;
|
|
48566
|
+
this.closed = false;
|
|
48567
|
+
this._parentage = null;
|
|
48568
|
+
this._finalizers = null;
|
|
48569
|
+
}
|
|
48570
|
+
Subscription3.prototype.unsubscribe = function() {
|
|
48571
|
+
var e_1, _a, e_2, _b;
|
|
48572
|
+
var errors;
|
|
48573
|
+
if (!this.closed) {
|
|
48574
|
+
this.closed = true;
|
|
48575
|
+
var _parentage = this._parentage;
|
|
48576
|
+
if (_parentage) {
|
|
48577
|
+
this._parentage = null;
|
|
48578
|
+
if (Array.isArray(_parentage)) {
|
|
48579
|
+
try {
|
|
48580
|
+
for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
|
48581
|
+
var parent_1 = _parentage_1_1.value;
|
|
48582
|
+
parent_1.remove(this);
|
|
48583
|
+
}
|
|
48584
|
+
} catch (e_1_1) {
|
|
48585
|
+
e_1 = { error: e_1_1 };
|
|
48586
|
+
} finally {
|
|
48587
|
+
try {
|
|
48588
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
|
|
48589
|
+
_a.call(_parentage_1);
|
|
48590
|
+
} finally {
|
|
48591
|
+
if (e_1)
|
|
48592
|
+
throw e_1.error;
|
|
48593
|
+
}
|
|
48594
|
+
}
|
|
48595
|
+
} else {
|
|
48596
|
+
_parentage.remove(this);
|
|
48597
|
+
}
|
|
48598
|
+
}
|
|
48599
|
+
var initialFinalizer = this.initialTeardown;
|
|
48600
|
+
if (isFunction(initialFinalizer)) {
|
|
48601
|
+
try {
|
|
48602
|
+
initialFinalizer();
|
|
48603
|
+
} catch (e) {
|
|
48604
|
+
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
48605
|
+
}
|
|
48606
|
+
}
|
|
48607
|
+
var _finalizers = this._finalizers;
|
|
48608
|
+
if (_finalizers) {
|
|
48609
|
+
this._finalizers = null;
|
|
48610
|
+
try {
|
|
48611
|
+
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
48612
|
+
var finalizer = _finalizers_1_1.value;
|
|
48613
|
+
try {
|
|
48614
|
+
execFinalizer(finalizer);
|
|
48615
|
+
} catch (err) {
|
|
48616
|
+
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
48617
|
+
if (err instanceof UnsubscriptionError) {
|
|
48618
|
+
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
|
48619
|
+
} else {
|
|
48620
|
+
errors.push(err);
|
|
48621
|
+
}
|
|
48622
|
+
}
|
|
48623
|
+
}
|
|
48624
|
+
} catch (e_2_1) {
|
|
48625
|
+
e_2 = { error: e_2_1 };
|
|
48626
|
+
} finally {
|
|
48627
|
+
try {
|
|
48628
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
|
|
48629
|
+
_b.call(_finalizers_1);
|
|
48630
|
+
} finally {
|
|
48631
|
+
if (e_2)
|
|
48632
|
+
throw e_2.error;
|
|
48633
|
+
}
|
|
48634
|
+
}
|
|
48635
|
+
}
|
|
48636
|
+
if (errors) {
|
|
48637
|
+
throw new UnsubscriptionError(errors);
|
|
48638
|
+
}
|
|
48639
|
+
}
|
|
48640
|
+
};
|
|
48641
|
+
Subscription3.prototype.add = function(teardown2) {
|
|
48642
|
+
var _a;
|
|
48643
|
+
if (teardown2 && teardown2 !== this) {
|
|
48644
|
+
if (this.closed) {
|
|
48645
|
+
execFinalizer(teardown2);
|
|
48646
|
+
} else {
|
|
48647
|
+
if (teardown2 instanceof Subscription3) {
|
|
48648
|
+
if (teardown2.closed || teardown2._hasParent(this)) {
|
|
48649
|
+
return;
|
|
48650
|
+
}
|
|
48651
|
+
teardown2._addParent(this);
|
|
48652
|
+
}
|
|
48653
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown2);
|
|
48654
|
+
}
|
|
48655
|
+
}
|
|
48656
|
+
};
|
|
48657
|
+
Subscription3.prototype._hasParent = function(parent4) {
|
|
48658
|
+
var _parentage = this._parentage;
|
|
48659
|
+
return _parentage === parent4 || Array.isArray(_parentage) && _parentage.includes(parent4);
|
|
48660
|
+
};
|
|
48661
|
+
Subscription3.prototype._addParent = function(parent4) {
|
|
48662
|
+
var _parentage = this._parentage;
|
|
48663
|
+
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent4), _parentage) : _parentage ? [_parentage, parent4] : parent4;
|
|
48664
|
+
};
|
|
48665
|
+
Subscription3.prototype._removeParent = function(parent4) {
|
|
48666
|
+
var _parentage = this._parentage;
|
|
48667
|
+
if (_parentage === parent4) {
|
|
48668
|
+
this._parentage = null;
|
|
48669
|
+
} else if (Array.isArray(_parentage)) {
|
|
48670
|
+
arrRemove(_parentage, parent4);
|
|
48671
|
+
}
|
|
48672
|
+
};
|
|
48673
|
+
Subscription3.prototype.remove = function(teardown2) {
|
|
48674
|
+
var _finalizers = this._finalizers;
|
|
48675
|
+
_finalizers && arrRemove(_finalizers, teardown2);
|
|
48676
|
+
if (teardown2 instanceof Subscription3) {
|
|
48677
|
+
teardown2._removeParent(this);
|
|
48678
|
+
}
|
|
48679
|
+
};
|
|
48680
|
+
Subscription3.EMPTY = function() {
|
|
48681
|
+
var empty = new Subscription3();
|
|
48682
|
+
empty.closed = true;
|
|
48683
|
+
return empty;
|
|
48684
|
+
}();
|
|
48685
|
+
return Subscription3;
|
|
48686
|
+
}();
|
|
48687
|
+
var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
48688
|
+
function isSubscription(value6) {
|
|
48689
|
+
return value6 instanceof Subscription || value6 && "closed" in value6 && isFunction(value6.remove) && isFunction(value6.add) && isFunction(value6.unsubscribe);
|
|
48690
|
+
}
|
|
48691
|
+
function execFinalizer(finalizer) {
|
|
48692
|
+
if (isFunction(finalizer)) {
|
|
48693
|
+
finalizer();
|
|
48694
|
+
} else {
|
|
48695
|
+
finalizer.unsubscribe();
|
|
48696
|
+
}
|
|
48697
|
+
}
|
|
48698
|
+
|
|
48699
|
+
// ../node_modules/rxjs/dist/esm5/internal/config.js
|
|
48700
|
+
var config = {
|
|
48701
|
+
onUnhandledError: null,
|
|
48702
|
+
onStoppedNotification: null,
|
|
48703
|
+
Promise: void 0,
|
|
48704
|
+
useDeprecatedSynchronousErrorHandling: false,
|
|
48705
|
+
useDeprecatedNextContext: false
|
|
48706
|
+
};
|
|
48707
|
+
|
|
48708
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
|
|
48709
|
+
var timeoutProvider = {
|
|
48710
|
+
setTimeout: function(handler, timeout2) {
|
|
48711
|
+
var args = [];
|
|
48712
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
48713
|
+
args[_i - 2] = arguments[_i];
|
|
48714
|
+
}
|
|
48715
|
+
var delegate = timeoutProvider.delegate;
|
|
48716
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
48717
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout2], __read(args)));
|
|
48718
|
+
}
|
|
48719
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
|
|
48720
|
+
},
|
|
48721
|
+
clearTimeout: function(handle) {
|
|
48722
|
+
var delegate = timeoutProvider.delegate;
|
|
48723
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
48724
|
+
},
|
|
48725
|
+
delegate: void 0
|
|
48726
|
+
};
|
|
48727
|
+
|
|
48728
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
|
|
48729
|
+
function reportUnhandledError(err) {
|
|
48730
|
+
timeoutProvider.setTimeout(function() {
|
|
48731
|
+
var onUnhandledError = config.onUnhandledError;
|
|
48732
|
+
if (onUnhandledError) {
|
|
48733
|
+
onUnhandledError(err);
|
|
48734
|
+
} else {
|
|
48735
|
+
throw err;
|
|
48736
|
+
}
|
|
48737
|
+
});
|
|
48738
|
+
}
|
|
48739
|
+
|
|
48740
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/noop.js
|
|
48741
|
+
function noop() {
|
|
48742
|
+
}
|
|
48743
|
+
|
|
48744
|
+
// ../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
|
|
48745
|
+
var COMPLETE_NOTIFICATION = function() {
|
|
48746
|
+
return createNotification("C", void 0, void 0);
|
|
48747
|
+
}();
|
|
48748
|
+
function errorNotification(error5) {
|
|
48749
|
+
return createNotification("E", void 0, error5);
|
|
48750
|
+
}
|
|
48751
|
+
function nextNotification(value6) {
|
|
48752
|
+
return createNotification("N", value6, void 0);
|
|
48753
|
+
}
|
|
48754
|
+
function createNotification(kind2, value6, error5) {
|
|
48755
|
+
return {
|
|
48756
|
+
kind: kind2,
|
|
48757
|
+
value: value6,
|
|
48758
|
+
error: error5
|
|
48759
|
+
};
|
|
48760
|
+
}
|
|
48761
|
+
|
|
48762
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/errorContext.js
|
|
48763
|
+
var context = null;
|
|
48764
|
+
function errorContext(cb) {
|
|
48765
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
48766
|
+
var isRoot = !context;
|
|
48767
|
+
if (isRoot) {
|
|
48768
|
+
context = { errorThrown: false, error: null };
|
|
48769
|
+
}
|
|
48770
|
+
cb();
|
|
48771
|
+
if (isRoot) {
|
|
48772
|
+
var _a = context, errorThrown = _a.errorThrown, error5 = _a.error;
|
|
48773
|
+
context = null;
|
|
48774
|
+
if (errorThrown) {
|
|
48775
|
+
throw error5;
|
|
48776
|
+
}
|
|
48777
|
+
}
|
|
48778
|
+
} else {
|
|
48779
|
+
cb();
|
|
48780
|
+
}
|
|
48781
|
+
}
|
|
48782
|
+
function captureError(err) {
|
|
48783
|
+
if (config.useDeprecatedSynchronousErrorHandling && context) {
|
|
48784
|
+
context.errorThrown = true;
|
|
48785
|
+
context.error = err;
|
|
48786
|
+
}
|
|
48787
|
+
}
|
|
48788
|
+
|
|
48789
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subscriber.js
|
|
48790
|
+
var Subscriber = function(_super) {
|
|
48791
|
+
__extends(Subscriber2, _super);
|
|
48792
|
+
function Subscriber2(destination2) {
|
|
48793
|
+
var _this = _super.call(this) || this;
|
|
48794
|
+
_this.isStopped = false;
|
|
48795
|
+
if (destination2) {
|
|
48796
|
+
_this.destination = destination2;
|
|
48797
|
+
if (isSubscription(destination2)) {
|
|
48798
|
+
destination2.add(_this);
|
|
48799
|
+
}
|
|
48800
|
+
} else {
|
|
48801
|
+
_this.destination = EMPTY_OBSERVER;
|
|
48802
|
+
}
|
|
48803
|
+
return _this;
|
|
48804
|
+
}
|
|
48805
|
+
Subscriber2.create = function(next3, error5, complete2) {
|
|
48806
|
+
return new SafeSubscriber(next3, error5, complete2);
|
|
48807
|
+
};
|
|
48808
|
+
Subscriber2.prototype.next = function(value6) {
|
|
48809
|
+
if (this.isStopped) {
|
|
48810
|
+
handleStoppedNotification(nextNotification(value6), this);
|
|
48811
|
+
} else {
|
|
48812
|
+
this._next(value6);
|
|
48813
|
+
}
|
|
48814
|
+
};
|
|
48815
|
+
Subscriber2.prototype.error = function(err) {
|
|
48816
|
+
if (this.isStopped) {
|
|
48817
|
+
handleStoppedNotification(errorNotification(err), this);
|
|
48818
|
+
} else {
|
|
48819
|
+
this.isStopped = true;
|
|
48820
|
+
this._error(err);
|
|
48821
|
+
}
|
|
48822
|
+
};
|
|
48823
|
+
Subscriber2.prototype.complete = function() {
|
|
48824
|
+
if (this.isStopped) {
|
|
48825
|
+
handleStoppedNotification(COMPLETE_NOTIFICATION, this);
|
|
48826
|
+
} else {
|
|
48827
|
+
this.isStopped = true;
|
|
48828
|
+
this._complete();
|
|
48829
|
+
}
|
|
48830
|
+
};
|
|
48831
|
+
Subscriber2.prototype.unsubscribe = function() {
|
|
48832
|
+
if (!this.closed) {
|
|
48833
|
+
this.isStopped = true;
|
|
48834
|
+
_super.prototype.unsubscribe.call(this);
|
|
48835
|
+
this.destination = null;
|
|
48836
|
+
}
|
|
48837
|
+
};
|
|
48838
|
+
Subscriber2.prototype._next = function(value6) {
|
|
48839
|
+
this.destination.next(value6);
|
|
48840
|
+
};
|
|
48841
|
+
Subscriber2.prototype._error = function(err) {
|
|
48842
|
+
try {
|
|
48843
|
+
this.destination.error(err);
|
|
48844
|
+
} finally {
|
|
48845
|
+
this.unsubscribe();
|
|
48846
|
+
}
|
|
48847
|
+
};
|
|
48848
|
+
Subscriber2.prototype._complete = function() {
|
|
48849
|
+
try {
|
|
48850
|
+
this.destination.complete();
|
|
48851
|
+
} finally {
|
|
48852
|
+
this.unsubscribe();
|
|
48853
|
+
}
|
|
48854
|
+
};
|
|
48855
|
+
return Subscriber2;
|
|
48856
|
+
}(Subscription);
|
|
48857
|
+
var _bind = Function.prototype.bind;
|
|
48858
|
+
function bind(fn2, thisArg) {
|
|
48859
|
+
return _bind.call(fn2, thisArg);
|
|
48860
|
+
}
|
|
48861
|
+
var ConsumerObserver = function() {
|
|
48862
|
+
function ConsumerObserver2(partialObserver) {
|
|
48863
|
+
this.partialObserver = partialObserver;
|
|
48864
|
+
}
|
|
48865
|
+
ConsumerObserver2.prototype.next = function(value6) {
|
|
48866
|
+
var partialObserver = this.partialObserver;
|
|
48867
|
+
if (partialObserver.next) {
|
|
48868
|
+
try {
|
|
48869
|
+
partialObserver.next(value6);
|
|
48870
|
+
} catch (error5) {
|
|
48871
|
+
handleUnhandledError(error5);
|
|
48872
|
+
}
|
|
48873
|
+
}
|
|
48874
|
+
};
|
|
48875
|
+
ConsumerObserver2.prototype.error = function(err) {
|
|
48876
|
+
var partialObserver = this.partialObserver;
|
|
48877
|
+
if (partialObserver.error) {
|
|
48878
|
+
try {
|
|
48879
|
+
partialObserver.error(err);
|
|
48880
|
+
} catch (error5) {
|
|
48881
|
+
handleUnhandledError(error5);
|
|
48882
|
+
}
|
|
48883
|
+
} else {
|
|
48884
|
+
handleUnhandledError(err);
|
|
48885
|
+
}
|
|
48886
|
+
};
|
|
48887
|
+
ConsumerObserver2.prototype.complete = function() {
|
|
48888
|
+
var partialObserver = this.partialObserver;
|
|
48889
|
+
if (partialObserver.complete) {
|
|
48890
|
+
try {
|
|
48891
|
+
partialObserver.complete();
|
|
48892
|
+
} catch (error5) {
|
|
48893
|
+
handleUnhandledError(error5);
|
|
48894
|
+
}
|
|
48895
|
+
}
|
|
48896
|
+
};
|
|
48897
|
+
return ConsumerObserver2;
|
|
48898
|
+
}();
|
|
48899
|
+
var SafeSubscriber = function(_super) {
|
|
48900
|
+
__extends(SafeSubscriber2, _super);
|
|
48901
|
+
function SafeSubscriber2(observerOrNext, error5, complete2) {
|
|
48902
|
+
var _this = _super.call(this) || this;
|
|
48903
|
+
var partialObserver;
|
|
48904
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
48905
|
+
partialObserver = {
|
|
48906
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
|
|
48907
|
+
error: error5 !== null && error5 !== void 0 ? error5 : void 0,
|
|
48908
|
+
complete: complete2 !== null && complete2 !== void 0 ? complete2 : void 0
|
|
48909
|
+
};
|
|
48910
|
+
} else {
|
|
48911
|
+
var context_1;
|
|
48912
|
+
if (_this && config.useDeprecatedNextContext) {
|
|
48913
|
+
context_1 = Object.create(observerOrNext);
|
|
48914
|
+
context_1.unsubscribe = function() {
|
|
48915
|
+
return _this.unsubscribe();
|
|
48916
|
+
};
|
|
48917
|
+
partialObserver = {
|
|
48918
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
48919
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
48920
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
|
|
48921
|
+
};
|
|
48922
|
+
} else {
|
|
48923
|
+
partialObserver = observerOrNext;
|
|
48924
|
+
}
|
|
48925
|
+
}
|
|
48926
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
48927
|
+
return _this;
|
|
48928
|
+
}
|
|
48929
|
+
return SafeSubscriber2;
|
|
48930
|
+
}(Subscriber);
|
|
48931
|
+
function handleUnhandledError(error5) {
|
|
48932
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
48933
|
+
captureError(error5);
|
|
48934
|
+
} else {
|
|
48935
|
+
reportUnhandledError(error5);
|
|
48936
|
+
}
|
|
48937
|
+
}
|
|
48938
|
+
function defaultErrorHandler(err) {
|
|
48939
|
+
throw err;
|
|
48940
|
+
}
|
|
48941
|
+
function handleStoppedNotification(notification2, subscriber3) {
|
|
48942
|
+
var onStoppedNotification = config.onStoppedNotification;
|
|
48943
|
+
onStoppedNotification && timeoutProvider.setTimeout(function() {
|
|
48944
|
+
return onStoppedNotification(notification2, subscriber3);
|
|
48945
|
+
});
|
|
48946
|
+
}
|
|
48947
|
+
var EMPTY_OBSERVER = {
|
|
48948
|
+
closed: true,
|
|
48949
|
+
next: noop,
|
|
48950
|
+
error: defaultErrorHandler,
|
|
48951
|
+
complete: noop
|
|
48952
|
+
};
|
|
48953
|
+
|
|
48954
|
+
// ../node_modules/rxjs/dist/esm5/internal/symbol/observable.js
|
|
48955
|
+
var observable = function() {
|
|
48956
|
+
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
48957
|
+
}();
|
|
48958
|
+
|
|
48959
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/identity.js
|
|
48960
|
+
function identity(x) {
|
|
48961
|
+
return x;
|
|
48962
|
+
}
|
|
48963
|
+
|
|
48964
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/pipe.js
|
|
48965
|
+
function pipeFromArray(fns) {
|
|
48966
|
+
if (fns.length === 0) {
|
|
48967
|
+
return identity;
|
|
48968
|
+
}
|
|
48969
|
+
if (fns.length === 1) {
|
|
48970
|
+
return fns[0];
|
|
48971
|
+
}
|
|
48972
|
+
return function piped(input2) {
|
|
48973
|
+
return fns.reduce(function(prev, fn2) {
|
|
48974
|
+
return fn2(prev);
|
|
48975
|
+
}, input2);
|
|
48976
|
+
};
|
|
48977
|
+
}
|
|
48978
|
+
|
|
48979
|
+
// ../node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
48980
|
+
var Observable = function() {
|
|
48981
|
+
function Observable2(subscribe) {
|
|
48982
|
+
if (subscribe) {
|
|
48983
|
+
this._subscribe = subscribe;
|
|
48984
|
+
}
|
|
48985
|
+
}
|
|
48986
|
+
Observable2.prototype.lift = function(operator2) {
|
|
48987
|
+
var observable2 = new Observable2();
|
|
48988
|
+
observable2.source = this;
|
|
48989
|
+
observable2.operator = operator2;
|
|
48990
|
+
return observable2;
|
|
48991
|
+
};
|
|
48992
|
+
Observable2.prototype.subscribe = function(observerOrNext, error5, complete2) {
|
|
48993
|
+
var _this = this;
|
|
48994
|
+
var subscriber3 = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error5, complete2);
|
|
48995
|
+
errorContext(function() {
|
|
48996
|
+
var _a = _this, operator2 = _a.operator, source8 = _a.source;
|
|
48997
|
+
subscriber3.add(operator2 ? operator2.call(subscriber3, source8) : source8 ? _this._subscribe(subscriber3) : _this._trySubscribe(subscriber3));
|
|
48998
|
+
});
|
|
48999
|
+
return subscriber3;
|
|
49000
|
+
};
|
|
49001
|
+
Observable2.prototype._trySubscribe = function(sink) {
|
|
49002
|
+
try {
|
|
49003
|
+
return this._subscribe(sink);
|
|
49004
|
+
} catch (err) {
|
|
49005
|
+
sink.error(err);
|
|
49006
|
+
}
|
|
49007
|
+
};
|
|
49008
|
+
Observable2.prototype.forEach = function(next3, promiseCtor) {
|
|
49009
|
+
var _this = this;
|
|
49010
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
49011
|
+
return new promiseCtor(function(resolve, reject2) {
|
|
49012
|
+
var subscriber3 = new SafeSubscriber({
|
|
49013
|
+
next: function(value6) {
|
|
49014
|
+
try {
|
|
49015
|
+
next3(value6);
|
|
49016
|
+
} catch (err) {
|
|
49017
|
+
reject2(err);
|
|
49018
|
+
subscriber3.unsubscribe();
|
|
49019
|
+
}
|
|
49020
|
+
},
|
|
49021
|
+
error: reject2,
|
|
49022
|
+
complete: resolve
|
|
49023
|
+
});
|
|
49024
|
+
_this.subscribe(subscriber3);
|
|
49025
|
+
});
|
|
49026
|
+
};
|
|
49027
|
+
Observable2.prototype._subscribe = function(subscriber3) {
|
|
49028
|
+
var _a;
|
|
49029
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3);
|
|
49030
|
+
};
|
|
49031
|
+
Observable2.prototype[observable] = function() {
|
|
49032
|
+
return this;
|
|
49033
|
+
};
|
|
49034
|
+
Observable2.prototype.pipe = function() {
|
|
49035
|
+
var operations = [];
|
|
49036
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
49037
|
+
operations[_i] = arguments[_i];
|
|
49038
|
+
}
|
|
49039
|
+
return pipeFromArray(operations)(this);
|
|
49040
|
+
};
|
|
49041
|
+
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
49042
|
+
var _this = this;
|
|
49043
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
49044
|
+
return new promiseCtor(function(resolve, reject2) {
|
|
49045
|
+
var value6;
|
|
49046
|
+
_this.subscribe(function(x) {
|
|
49047
|
+
return value6 = x;
|
|
49048
|
+
}, function(err) {
|
|
49049
|
+
return reject2(err);
|
|
49050
|
+
}, function() {
|
|
49051
|
+
return resolve(value6);
|
|
49052
|
+
});
|
|
49053
|
+
});
|
|
49054
|
+
};
|
|
49055
|
+
Observable2.create = function(subscribe) {
|
|
49056
|
+
return new Observable2(subscribe);
|
|
49057
|
+
};
|
|
49058
|
+
return Observable2;
|
|
49059
|
+
}();
|
|
49060
|
+
function getPromiseCtor(promiseCtor) {
|
|
49061
|
+
var _a;
|
|
49062
|
+
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
49063
|
+
}
|
|
49064
|
+
function isObserver(value6) {
|
|
49065
|
+
return value6 && isFunction(value6.next) && isFunction(value6.error) && isFunction(value6.complete);
|
|
49066
|
+
}
|
|
49067
|
+
function isSubscriber(value6) {
|
|
49068
|
+
return value6 && value6 instanceof Subscriber || isObserver(value6) && isSubscription(value6);
|
|
49069
|
+
}
|
|
49070
|
+
|
|
49071
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/lift.js
|
|
49072
|
+
function hasLift(source8) {
|
|
49073
|
+
return isFunction(source8 === null || source8 === void 0 ? void 0 : source8.lift);
|
|
49074
|
+
}
|
|
49075
|
+
function operate(init) {
|
|
49076
|
+
return function(source8) {
|
|
49077
|
+
if (hasLift(source8)) {
|
|
49078
|
+
return source8.lift(function(liftedSource) {
|
|
49079
|
+
try {
|
|
49080
|
+
return init(liftedSource, this);
|
|
49081
|
+
} catch (err) {
|
|
49082
|
+
this.error(err);
|
|
49083
|
+
}
|
|
49084
|
+
});
|
|
49085
|
+
}
|
|
49086
|
+
throw new TypeError("Unable to lift unknown Observable type");
|
|
49087
|
+
};
|
|
49088
|
+
}
|
|
49089
|
+
|
|
49090
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
|
|
49091
|
+
function createOperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize) {
|
|
49092
|
+
return new OperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize);
|
|
49093
|
+
}
|
|
49094
|
+
var OperatorSubscriber = function(_super) {
|
|
49095
|
+
__extends(OperatorSubscriber2, _super);
|
|
49096
|
+
function OperatorSubscriber2(destination2, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
49097
|
+
var _this = _super.call(this, destination2) || this;
|
|
49098
|
+
_this.onFinalize = onFinalize;
|
|
49099
|
+
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
49100
|
+
_this._next = onNext ? function(value6) {
|
|
49101
|
+
try {
|
|
49102
|
+
onNext(value6);
|
|
49103
|
+
} catch (err) {
|
|
49104
|
+
destination2.error(err);
|
|
49105
|
+
}
|
|
49106
|
+
} : _super.prototype._next;
|
|
49107
|
+
_this._error = onError ? function(err) {
|
|
49108
|
+
try {
|
|
49109
|
+
onError(err);
|
|
49110
|
+
} catch (err2) {
|
|
49111
|
+
destination2.error(err2);
|
|
49112
|
+
} finally {
|
|
49113
|
+
this.unsubscribe();
|
|
49114
|
+
}
|
|
49115
|
+
} : _super.prototype._error;
|
|
49116
|
+
_this._complete = onComplete ? function() {
|
|
49117
|
+
try {
|
|
49118
|
+
onComplete();
|
|
49119
|
+
} catch (err) {
|
|
49120
|
+
destination2.error(err);
|
|
49121
|
+
} finally {
|
|
49122
|
+
this.unsubscribe();
|
|
49123
|
+
}
|
|
49124
|
+
} : _super.prototype._complete;
|
|
49125
|
+
return _this;
|
|
49126
|
+
}
|
|
49127
|
+
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
49128
|
+
var _a;
|
|
49129
|
+
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
49130
|
+
var closed_1 = this.closed;
|
|
49131
|
+
_super.prototype.unsubscribe.call(this);
|
|
49132
|
+
!closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
49133
|
+
}
|
|
49134
|
+
};
|
|
49135
|
+
return OperatorSubscriber2;
|
|
49136
|
+
}(Subscriber);
|
|
49137
|
+
|
|
49138
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
|
|
49139
|
+
var ObjectUnsubscribedError = createErrorClass(function(_super) {
|
|
49140
|
+
return function ObjectUnsubscribedErrorImpl() {
|
|
49141
|
+
_super(this);
|
|
49142
|
+
this.name = "ObjectUnsubscribedError";
|
|
49143
|
+
this.message = "object unsubscribed";
|
|
49144
|
+
};
|
|
49145
|
+
});
|
|
49146
|
+
|
|
49147
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subject.js
|
|
49148
|
+
var Subject = function(_super) {
|
|
49149
|
+
__extends(Subject2, _super);
|
|
49150
|
+
function Subject2() {
|
|
49151
|
+
var _this = _super.call(this) || this;
|
|
49152
|
+
_this.closed = false;
|
|
49153
|
+
_this.currentObservers = null;
|
|
49154
|
+
_this.observers = [];
|
|
49155
|
+
_this.isStopped = false;
|
|
49156
|
+
_this.hasError = false;
|
|
49157
|
+
_this.thrownError = null;
|
|
49158
|
+
return _this;
|
|
49159
|
+
}
|
|
49160
|
+
Subject2.prototype.lift = function(operator2) {
|
|
49161
|
+
var subject5 = new AnonymousSubject(this, this);
|
|
49162
|
+
subject5.operator = operator2;
|
|
49163
|
+
return subject5;
|
|
49164
|
+
};
|
|
49165
|
+
Subject2.prototype._throwIfClosed = function() {
|
|
49166
|
+
if (this.closed) {
|
|
49167
|
+
throw new ObjectUnsubscribedError();
|
|
49168
|
+
}
|
|
49169
|
+
};
|
|
49170
|
+
Subject2.prototype.next = function(value6) {
|
|
49171
|
+
var _this = this;
|
|
49172
|
+
errorContext(function() {
|
|
49173
|
+
var e_1, _a;
|
|
49174
|
+
_this._throwIfClosed();
|
|
49175
|
+
if (!_this.isStopped) {
|
|
49176
|
+
if (!_this.currentObservers) {
|
|
49177
|
+
_this.currentObservers = Array.from(_this.observers);
|
|
49178
|
+
}
|
|
49179
|
+
try {
|
|
49180
|
+
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49181
|
+
var observer2 = _c.value;
|
|
49182
|
+
observer2.next(value6);
|
|
49183
|
+
}
|
|
49184
|
+
} catch (e_1_1) {
|
|
49185
|
+
e_1 = { error: e_1_1 };
|
|
49186
|
+
} finally {
|
|
49187
|
+
try {
|
|
49188
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
49189
|
+
_a.call(_b);
|
|
49190
|
+
} finally {
|
|
49191
|
+
if (e_1)
|
|
49192
|
+
throw e_1.error;
|
|
49193
|
+
}
|
|
49194
|
+
}
|
|
49195
|
+
}
|
|
49196
|
+
});
|
|
49197
|
+
};
|
|
49198
|
+
Subject2.prototype.error = function(err) {
|
|
49199
|
+
var _this = this;
|
|
49200
|
+
errorContext(function() {
|
|
49201
|
+
_this._throwIfClosed();
|
|
49202
|
+
if (!_this.isStopped) {
|
|
49203
|
+
_this.hasError = _this.isStopped = true;
|
|
49204
|
+
_this.thrownError = err;
|
|
49205
|
+
var observers = _this.observers;
|
|
49206
|
+
while (observers.length) {
|
|
49207
|
+
observers.shift().error(err);
|
|
49208
|
+
}
|
|
49209
|
+
}
|
|
49210
|
+
});
|
|
49211
|
+
};
|
|
49212
|
+
Subject2.prototype.complete = function() {
|
|
49213
|
+
var _this = this;
|
|
49214
|
+
errorContext(function() {
|
|
49215
|
+
_this._throwIfClosed();
|
|
49216
|
+
if (!_this.isStopped) {
|
|
49217
|
+
_this.isStopped = true;
|
|
49218
|
+
var observers = _this.observers;
|
|
49219
|
+
while (observers.length) {
|
|
49220
|
+
observers.shift().complete();
|
|
49221
|
+
}
|
|
49222
|
+
}
|
|
49223
|
+
});
|
|
49224
|
+
};
|
|
49225
|
+
Subject2.prototype.unsubscribe = function() {
|
|
49226
|
+
this.isStopped = this.closed = true;
|
|
49227
|
+
this.observers = this.currentObservers = null;
|
|
49228
|
+
};
|
|
49229
|
+
Object.defineProperty(Subject2.prototype, "observed", {
|
|
49230
|
+
get: function() {
|
|
49231
|
+
var _a;
|
|
49232
|
+
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
49233
|
+
},
|
|
49234
|
+
enumerable: false,
|
|
49235
|
+
configurable: true
|
|
49236
|
+
});
|
|
49237
|
+
Subject2.prototype._trySubscribe = function(subscriber3) {
|
|
49238
|
+
this._throwIfClosed();
|
|
49239
|
+
return _super.prototype._trySubscribe.call(this, subscriber3);
|
|
49240
|
+
};
|
|
49241
|
+
Subject2.prototype._subscribe = function(subscriber3) {
|
|
49242
|
+
this._throwIfClosed();
|
|
49243
|
+
this._checkFinalizedStatuses(subscriber3);
|
|
49244
|
+
return this._innerSubscribe(subscriber3);
|
|
49245
|
+
};
|
|
49246
|
+
Subject2.prototype._innerSubscribe = function(subscriber3) {
|
|
49247
|
+
var _this = this;
|
|
49248
|
+
var _a = this, hasError2 = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
49249
|
+
if (hasError2 || isStopped) {
|
|
49250
|
+
return EMPTY_SUBSCRIPTION;
|
|
49251
|
+
}
|
|
49252
|
+
this.currentObservers = null;
|
|
49253
|
+
observers.push(subscriber3);
|
|
49254
|
+
return new Subscription(function() {
|
|
49255
|
+
_this.currentObservers = null;
|
|
49256
|
+
arrRemove(observers, subscriber3);
|
|
49257
|
+
});
|
|
49258
|
+
};
|
|
49259
|
+
Subject2.prototype._checkFinalizedStatuses = function(subscriber3) {
|
|
49260
|
+
var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
49261
|
+
if (hasError2) {
|
|
49262
|
+
subscriber3.error(thrownError);
|
|
49263
|
+
} else if (isStopped) {
|
|
49264
|
+
subscriber3.complete();
|
|
49265
|
+
}
|
|
49266
|
+
};
|
|
49267
|
+
Subject2.prototype.asObservable = function() {
|
|
49268
|
+
var observable2 = new Observable();
|
|
49269
|
+
observable2.source = this;
|
|
49270
|
+
return observable2;
|
|
49271
|
+
};
|
|
49272
|
+
Subject2.create = function(destination2, source8) {
|
|
49273
|
+
return new AnonymousSubject(destination2, source8);
|
|
49274
|
+
};
|
|
49275
|
+
return Subject2;
|
|
49276
|
+
}(Observable);
|
|
49277
|
+
var AnonymousSubject = function(_super) {
|
|
49278
|
+
__extends(AnonymousSubject2, _super);
|
|
49279
|
+
function AnonymousSubject2(destination2, source8) {
|
|
49280
|
+
var _this = _super.call(this) || this;
|
|
49281
|
+
_this.destination = destination2;
|
|
49282
|
+
_this.source = source8;
|
|
49283
|
+
return _this;
|
|
49284
|
+
}
|
|
49285
|
+
AnonymousSubject2.prototype.next = function(value6) {
|
|
49286
|
+
var _a, _b;
|
|
49287
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value6);
|
|
49288
|
+
};
|
|
49289
|
+
AnonymousSubject2.prototype.error = function(err) {
|
|
49290
|
+
var _a, _b;
|
|
49291
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
49292
|
+
};
|
|
49293
|
+
AnonymousSubject2.prototype.complete = function() {
|
|
49294
|
+
var _a, _b;
|
|
49295
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
49296
|
+
};
|
|
49297
|
+
AnonymousSubject2.prototype._subscribe = function(subscriber3) {
|
|
49298
|
+
var _a, _b;
|
|
49299
|
+
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
49300
|
+
};
|
|
49301
|
+
return AnonymousSubject2;
|
|
49302
|
+
}(Subject);
|
|
49303
|
+
|
|
49304
|
+
// ../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js
|
|
49305
|
+
var BehaviorSubject = function(_super) {
|
|
49306
|
+
__extends(BehaviorSubject2, _super);
|
|
49307
|
+
function BehaviorSubject2(_value2) {
|
|
49308
|
+
var _this = _super.call(this) || this;
|
|
49309
|
+
_this._value = _value2;
|
|
49310
|
+
return _this;
|
|
49311
|
+
}
|
|
49312
|
+
Object.defineProperty(BehaviorSubject2.prototype, "value", {
|
|
49313
|
+
get: function() {
|
|
49314
|
+
return this.getValue();
|
|
49315
|
+
},
|
|
49316
|
+
enumerable: false,
|
|
49317
|
+
configurable: true
|
|
49318
|
+
});
|
|
49319
|
+
BehaviorSubject2.prototype._subscribe = function(subscriber3) {
|
|
49320
|
+
var subscription2 = _super.prototype._subscribe.call(this, subscriber3);
|
|
49321
|
+
!subscription2.closed && subscriber3.next(this._value);
|
|
49322
|
+
return subscription2;
|
|
49323
|
+
};
|
|
49324
|
+
BehaviorSubject2.prototype.getValue = function() {
|
|
49325
|
+
var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, _value2 = _a._value;
|
|
49326
|
+
if (hasError2) {
|
|
49327
|
+
throw thrownError;
|
|
49328
|
+
}
|
|
49329
|
+
this._throwIfClosed();
|
|
49330
|
+
return _value2;
|
|
49331
|
+
};
|
|
49332
|
+
BehaviorSubject2.prototype.next = function(value6) {
|
|
49333
|
+
_super.prototype.next.call(this, this._value = value6);
|
|
49334
|
+
};
|
|
49335
|
+
return BehaviorSubject2;
|
|
49336
|
+
}(Subject);
|
|
49337
|
+
|
|
49338
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/empty.js
|
|
49339
|
+
var EMPTY = new Observable(function(subscriber3) {
|
|
49340
|
+
return subscriber3.complete();
|
|
49341
|
+
});
|
|
49342
|
+
|
|
49343
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
|
|
49344
|
+
function isScheduler(value6) {
|
|
49345
|
+
return value6 && isFunction(value6.schedule);
|
|
49346
|
+
}
|
|
49347
|
+
|
|
49348
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/args.js
|
|
49349
|
+
function last(arr) {
|
|
49350
|
+
return arr[arr.length - 1];
|
|
49351
|
+
}
|
|
49352
|
+
function popScheduler(args) {
|
|
49353
|
+
return isScheduler(last(args)) ? args.pop() : void 0;
|
|
49354
|
+
}
|
|
49355
|
+
function popNumber(args, defaultValue4) {
|
|
49356
|
+
return typeof last(args) === "number" ? args.pop() : defaultValue4;
|
|
49357
|
+
}
|
|
49358
|
+
|
|
49359
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
|
|
49360
|
+
var isArrayLike = function(x) {
|
|
49361
|
+
return x && typeof x.length === "number" && typeof x !== "function";
|
|
49362
|
+
};
|
|
49363
|
+
|
|
49364
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isPromise.js
|
|
49365
|
+
function isPromise(value6) {
|
|
49366
|
+
return isFunction(value6 === null || value6 === void 0 ? void 0 : value6.then);
|
|
49367
|
+
}
|
|
49368
|
+
|
|
49369
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
|
|
49370
|
+
function isInteropObservable(input2) {
|
|
49371
|
+
return isFunction(input2[observable]);
|
|
49372
|
+
}
|
|
49373
|
+
|
|
49374
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
|
|
49375
|
+
function isAsyncIterable(obj) {
|
|
49376
|
+
return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
49377
|
+
}
|
|
49378
|
+
|
|
49379
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
|
|
49380
|
+
function createInvalidObservableTypeError(input2) {
|
|
49381
|
+
return new TypeError("You provided " + (input2 !== null && typeof input2 === "object" ? "an invalid object" : "'" + input2 + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
49382
|
+
}
|
|
49383
|
+
|
|
49384
|
+
// ../node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
|
|
49385
|
+
function getSymbolIterator() {
|
|
49386
|
+
if (typeof Symbol !== "function" || !Symbol.iterator) {
|
|
49387
|
+
return "@@iterator";
|
|
49388
|
+
}
|
|
49389
|
+
return Symbol.iterator;
|
|
49390
|
+
}
|
|
49391
|
+
var iterator = getSymbolIterator();
|
|
49392
|
+
|
|
49393
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isIterable.js
|
|
49394
|
+
function isIterable(input2) {
|
|
49395
|
+
return isFunction(input2 === null || input2 === void 0 ? void 0 : input2[iterator]);
|
|
49396
|
+
}
|
|
49397
|
+
|
|
49398
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
49399
|
+
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
49400
|
+
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
49401
|
+
var reader, _a, value6, done;
|
|
49402
|
+
return __generator(this, function(_b) {
|
|
49403
|
+
switch (_b.label) {
|
|
49404
|
+
case 0:
|
|
49405
|
+
reader = readableStream.getReader();
|
|
49406
|
+
_b.label = 1;
|
|
49407
|
+
case 1:
|
|
49408
|
+
_b.trys.push([1, , 9, 10]);
|
|
49409
|
+
_b.label = 2;
|
|
49410
|
+
case 2:
|
|
49411
|
+
if (false)
|
|
49412
|
+
return [3, 8];
|
|
49413
|
+
return [4, __await(reader.read())];
|
|
49414
|
+
case 3:
|
|
49415
|
+
_a = _b.sent(), value6 = _a.value, done = _a.done;
|
|
49416
|
+
if (!done)
|
|
49417
|
+
return [3, 5];
|
|
49418
|
+
return [4, __await(void 0)];
|
|
49419
|
+
case 4:
|
|
49420
|
+
return [2, _b.sent()];
|
|
49421
|
+
case 5:
|
|
49422
|
+
return [4, __await(value6)];
|
|
49423
|
+
case 6:
|
|
49424
|
+
return [4, _b.sent()];
|
|
49425
|
+
case 7:
|
|
49426
|
+
_b.sent();
|
|
49427
|
+
return [3, 2];
|
|
49428
|
+
case 8:
|
|
49429
|
+
return [3, 10];
|
|
49430
|
+
case 9:
|
|
49431
|
+
reader.releaseLock();
|
|
49432
|
+
return [7];
|
|
49433
|
+
case 10:
|
|
49434
|
+
return [2];
|
|
49435
|
+
}
|
|
49436
|
+
});
|
|
49437
|
+
});
|
|
49438
|
+
}
|
|
49439
|
+
function isReadableStreamLike(obj) {
|
|
49440
|
+
return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
|
|
49441
|
+
}
|
|
49442
|
+
|
|
49443
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
|
|
49444
|
+
function innerFrom(input2) {
|
|
49445
|
+
if (input2 instanceof Observable) {
|
|
49446
|
+
return input2;
|
|
49447
|
+
}
|
|
49448
|
+
if (input2 != null) {
|
|
49449
|
+
if (isInteropObservable(input2)) {
|
|
49450
|
+
return fromInteropObservable(input2);
|
|
49451
|
+
}
|
|
49452
|
+
if (isArrayLike(input2)) {
|
|
49453
|
+
return fromArrayLike(input2);
|
|
49454
|
+
}
|
|
49455
|
+
if (isPromise(input2)) {
|
|
49456
|
+
return fromPromise(input2);
|
|
49457
|
+
}
|
|
49458
|
+
if (isAsyncIterable(input2)) {
|
|
49459
|
+
return fromAsyncIterable(input2);
|
|
49460
|
+
}
|
|
49461
|
+
if (isIterable(input2)) {
|
|
49462
|
+
return fromIterable(input2);
|
|
49463
|
+
}
|
|
49464
|
+
if (isReadableStreamLike(input2)) {
|
|
49465
|
+
return fromReadableStreamLike(input2);
|
|
49466
|
+
}
|
|
49467
|
+
}
|
|
49468
|
+
throw createInvalidObservableTypeError(input2);
|
|
49469
|
+
}
|
|
49470
|
+
function fromInteropObservable(obj) {
|
|
49471
|
+
return new Observable(function(subscriber3) {
|
|
49472
|
+
var obs = obj[observable]();
|
|
49473
|
+
if (isFunction(obs.subscribe)) {
|
|
49474
|
+
return obs.subscribe(subscriber3);
|
|
49475
|
+
}
|
|
49476
|
+
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
49477
|
+
});
|
|
49478
|
+
}
|
|
49479
|
+
function fromArrayLike(array) {
|
|
49480
|
+
return new Observable(function(subscriber3) {
|
|
49481
|
+
for (var i = 0; i < array.length && !subscriber3.closed; i++) {
|
|
49482
|
+
subscriber3.next(array[i]);
|
|
49483
|
+
}
|
|
49484
|
+
subscriber3.complete();
|
|
49485
|
+
});
|
|
49486
|
+
}
|
|
49487
|
+
function fromPromise(promise) {
|
|
49488
|
+
return new Observable(function(subscriber3) {
|
|
49489
|
+
promise.then(function(value6) {
|
|
49490
|
+
if (!subscriber3.closed) {
|
|
49491
|
+
subscriber3.next(value6);
|
|
49492
|
+
subscriber3.complete();
|
|
49493
|
+
}
|
|
49494
|
+
}, function(err) {
|
|
49495
|
+
return subscriber3.error(err);
|
|
49496
|
+
}).then(null, reportUnhandledError);
|
|
49497
|
+
});
|
|
49498
|
+
}
|
|
49499
|
+
function fromIterable(iterable) {
|
|
49500
|
+
return new Observable(function(subscriber3) {
|
|
49501
|
+
var e_1, _a;
|
|
49502
|
+
try {
|
|
49503
|
+
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
49504
|
+
var value6 = iterable_1_1.value;
|
|
49505
|
+
subscriber3.next(value6);
|
|
49506
|
+
if (subscriber3.closed) {
|
|
49507
|
+
return;
|
|
49508
|
+
}
|
|
49509
|
+
}
|
|
49510
|
+
} catch (e_1_1) {
|
|
49511
|
+
e_1 = { error: e_1_1 };
|
|
49512
|
+
} finally {
|
|
49513
|
+
try {
|
|
49514
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
|
|
49515
|
+
_a.call(iterable_1);
|
|
49516
|
+
} finally {
|
|
49517
|
+
if (e_1)
|
|
49518
|
+
throw e_1.error;
|
|
49519
|
+
}
|
|
49520
|
+
}
|
|
49521
|
+
subscriber3.complete();
|
|
49522
|
+
});
|
|
49523
|
+
}
|
|
49524
|
+
function fromAsyncIterable(asyncIterable) {
|
|
49525
|
+
return new Observable(function(subscriber3) {
|
|
49526
|
+
process2(asyncIterable, subscriber3).catch(function(err) {
|
|
49527
|
+
return subscriber3.error(err);
|
|
49528
|
+
});
|
|
49529
|
+
});
|
|
49530
|
+
}
|
|
49531
|
+
function fromReadableStreamLike(readableStream) {
|
|
49532
|
+
return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
|
|
49533
|
+
}
|
|
49534
|
+
function process2(asyncIterable, subscriber3) {
|
|
49535
|
+
var asyncIterable_1, asyncIterable_1_1;
|
|
49536
|
+
var e_2, _a;
|
|
49537
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
49538
|
+
var value6, e_2_1;
|
|
49539
|
+
return __generator(this, function(_b) {
|
|
49540
|
+
switch (_b.label) {
|
|
49541
|
+
case 0:
|
|
49542
|
+
_b.trys.push([0, 5, 6, 11]);
|
|
49543
|
+
asyncIterable_1 = __asyncValues(asyncIterable);
|
|
49544
|
+
_b.label = 1;
|
|
49545
|
+
case 1:
|
|
49546
|
+
return [4, asyncIterable_1.next()];
|
|
49547
|
+
case 2:
|
|
49548
|
+
if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
|
|
49549
|
+
return [3, 4];
|
|
49550
|
+
value6 = asyncIterable_1_1.value;
|
|
49551
|
+
subscriber3.next(value6);
|
|
49552
|
+
if (subscriber3.closed) {
|
|
49553
|
+
return [2];
|
|
49554
|
+
}
|
|
49555
|
+
_b.label = 3;
|
|
49556
|
+
case 3:
|
|
49557
|
+
return [3, 1];
|
|
49558
|
+
case 4:
|
|
49559
|
+
return [3, 11];
|
|
49560
|
+
case 5:
|
|
49561
|
+
e_2_1 = _b.sent();
|
|
49562
|
+
e_2 = { error: e_2_1 };
|
|
49563
|
+
return [3, 11];
|
|
49564
|
+
case 6:
|
|
49565
|
+
_b.trys.push([6, , 9, 10]);
|
|
49566
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
|
|
49567
|
+
return [3, 8];
|
|
49568
|
+
return [4, _a.call(asyncIterable_1)];
|
|
49569
|
+
case 7:
|
|
49570
|
+
_b.sent();
|
|
49571
|
+
_b.label = 8;
|
|
49572
|
+
case 8:
|
|
49573
|
+
return [3, 10];
|
|
49574
|
+
case 9:
|
|
49575
|
+
if (e_2)
|
|
49576
|
+
throw e_2.error;
|
|
49577
|
+
return [7];
|
|
49578
|
+
case 10:
|
|
49579
|
+
return [7];
|
|
49580
|
+
case 11:
|
|
49581
|
+
subscriber3.complete();
|
|
49582
|
+
return [2];
|
|
49583
|
+
}
|
|
49584
|
+
});
|
|
49585
|
+
});
|
|
49586
|
+
}
|
|
49587
|
+
|
|
49588
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
|
|
49589
|
+
function executeSchedule(parentSubscription, scheduler, work, delay, repeat3) {
|
|
49590
|
+
if (delay === void 0) {
|
|
49591
|
+
delay = 0;
|
|
49592
|
+
}
|
|
49593
|
+
if (repeat3 === void 0) {
|
|
49594
|
+
repeat3 = false;
|
|
49595
|
+
}
|
|
49596
|
+
var scheduleSubscription = scheduler.schedule(function() {
|
|
49597
|
+
work();
|
|
49598
|
+
if (repeat3) {
|
|
49599
|
+
parentSubscription.add(this.schedule(null, delay));
|
|
49600
|
+
} else {
|
|
49601
|
+
this.unsubscribe();
|
|
49602
|
+
}
|
|
49603
|
+
}, delay);
|
|
49604
|
+
parentSubscription.add(scheduleSubscription);
|
|
49605
|
+
if (!repeat3) {
|
|
49606
|
+
return scheduleSubscription;
|
|
49607
|
+
}
|
|
49608
|
+
}
|
|
49609
|
+
|
|
49610
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
|
|
49611
|
+
function observeOn(scheduler, delay) {
|
|
49612
|
+
if (delay === void 0) {
|
|
49613
|
+
delay = 0;
|
|
49614
|
+
}
|
|
49615
|
+
return operate(function(source8, subscriber3) {
|
|
49616
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
|
|
49617
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
49618
|
+
return subscriber3.next(value6);
|
|
49619
|
+
}, delay);
|
|
49620
|
+
}, function() {
|
|
49621
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
49622
|
+
return subscriber3.complete();
|
|
49623
|
+
}, delay);
|
|
49624
|
+
}, function(err) {
|
|
49625
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
49626
|
+
return subscriber3.error(err);
|
|
49627
|
+
}, delay);
|
|
49628
|
+
}));
|
|
49629
|
+
});
|
|
49630
|
+
}
|
|
49631
|
+
|
|
49632
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
|
|
49633
|
+
function subscribeOn(scheduler, delay) {
|
|
49634
|
+
if (delay === void 0) {
|
|
49635
|
+
delay = 0;
|
|
49636
|
+
}
|
|
49637
|
+
return operate(function(source8, subscriber3) {
|
|
49638
|
+
subscriber3.add(scheduler.schedule(function() {
|
|
49639
|
+
return source8.subscribe(subscriber3);
|
|
49640
|
+
}, delay));
|
|
49641
|
+
});
|
|
49642
|
+
}
|
|
49643
|
+
|
|
49644
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
|
|
49645
|
+
function scheduleObservable(input2, scheduler) {
|
|
49646
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
49647
|
+
}
|
|
49648
|
+
|
|
49649
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
|
|
49650
|
+
function schedulePromise(input2, scheduler) {
|
|
49651
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
49652
|
+
}
|
|
49653
|
+
|
|
49654
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
|
|
49655
|
+
function scheduleArray(input2, scheduler) {
|
|
49656
|
+
return new Observable(function(subscriber3) {
|
|
49657
|
+
var i = 0;
|
|
49658
|
+
return scheduler.schedule(function() {
|
|
49659
|
+
if (i === input2.length) {
|
|
49660
|
+
subscriber3.complete();
|
|
49661
|
+
} else {
|
|
49662
|
+
subscriber3.next(input2[i++]);
|
|
49663
|
+
if (!subscriber3.closed) {
|
|
49664
|
+
this.schedule();
|
|
49665
|
+
}
|
|
49666
|
+
}
|
|
49667
|
+
});
|
|
49668
|
+
});
|
|
49669
|
+
}
|
|
49670
|
+
|
|
49671
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
|
|
49672
|
+
function scheduleIterable(input2, scheduler) {
|
|
49673
|
+
return new Observable(function(subscriber3) {
|
|
49674
|
+
var iterator2;
|
|
49675
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
49676
|
+
iterator2 = input2[iterator]();
|
|
49677
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
49678
|
+
var _a;
|
|
49679
|
+
var value6;
|
|
49680
|
+
var done;
|
|
49681
|
+
try {
|
|
49682
|
+
_a = iterator2.next(), value6 = _a.value, done = _a.done;
|
|
49683
|
+
} catch (err) {
|
|
49684
|
+
subscriber3.error(err);
|
|
49685
|
+
return;
|
|
49686
|
+
}
|
|
49687
|
+
if (done) {
|
|
49688
|
+
subscriber3.complete();
|
|
49689
|
+
} else {
|
|
49690
|
+
subscriber3.next(value6);
|
|
49691
|
+
}
|
|
49692
|
+
}, 0, true);
|
|
49693
|
+
});
|
|
49694
|
+
return function() {
|
|
49695
|
+
return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
|
|
49696
|
+
};
|
|
49697
|
+
});
|
|
49698
|
+
}
|
|
49699
|
+
|
|
49700
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
|
|
49701
|
+
function scheduleAsyncIterable(input2, scheduler) {
|
|
49702
|
+
if (!input2) {
|
|
49703
|
+
throw new Error("Iterable cannot be null");
|
|
49704
|
+
}
|
|
49705
|
+
return new Observable(function(subscriber3) {
|
|
49706
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
49707
|
+
var iterator2 = input2[Symbol.asyncIterator]();
|
|
49708
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
49709
|
+
iterator2.next().then(function(result5) {
|
|
49710
|
+
if (result5.done) {
|
|
49711
|
+
subscriber3.complete();
|
|
49712
|
+
} else {
|
|
49713
|
+
subscriber3.next(result5.value);
|
|
49714
|
+
}
|
|
49715
|
+
});
|
|
49716
|
+
}, 0, true);
|
|
49717
|
+
});
|
|
49718
|
+
});
|
|
49719
|
+
}
|
|
49720
|
+
|
|
49721
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
|
|
49722
|
+
function scheduleReadableStreamLike(input2, scheduler) {
|
|
49723
|
+
return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input2), scheduler);
|
|
49724
|
+
}
|
|
49725
|
+
|
|
49726
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
|
|
49727
|
+
function scheduled(input2, scheduler) {
|
|
49728
|
+
if (input2 != null) {
|
|
49729
|
+
if (isInteropObservable(input2)) {
|
|
49730
|
+
return scheduleObservable(input2, scheduler);
|
|
49731
|
+
}
|
|
49732
|
+
if (isArrayLike(input2)) {
|
|
49733
|
+
return scheduleArray(input2, scheduler);
|
|
49734
|
+
}
|
|
49735
|
+
if (isPromise(input2)) {
|
|
49736
|
+
return schedulePromise(input2, scheduler);
|
|
49737
|
+
}
|
|
49738
|
+
if (isAsyncIterable(input2)) {
|
|
49739
|
+
return scheduleAsyncIterable(input2, scheduler);
|
|
49740
|
+
}
|
|
49741
|
+
if (isIterable(input2)) {
|
|
49742
|
+
return scheduleIterable(input2, scheduler);
|
|
49743
|
+
}
|
|
49744
|
+
if (isReadableStreamLike(input2)) {
|
|
49745
|
+
return scheduleReadableStreamLike(input2, scheduler);
|
|
49746
|
+
}
|
|
49747
|
+
}
|
|
49748
|
+
throw createInvalidObservableTypeError(input2);
|
|
49749
|
+
}
|
|
49750
|
+
|
|
49751
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/from.js
|
|
49752
|
+
function from(input2, scheduler) {
|
|
49753
|
+
return scheduler ? scheduled(input2, scheduler) : innerFrom(input2);
|
|
49754
|
+
}
|
|
49755
|
+
|
|
49756
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/map.js
|
|
49757
|
+
function map(project, thisArg) {
|
|
49758
|
+
return operate(function(source8, subscriber3) {
|
|
49759
|
+
var index2 = 0;
|
|
49760
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
|
|
49761
|
+
subscriber3.next(project.call(thisArg, value6, index2++));
|
|
49762
|
+
}));
|
|
49763
|
+
});
|
|
49764
|
+
}
|
|
49765
|
+
|
|
49766
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
|
|
49767
|
+
var isArray = Array.isArray;
|
|
49768
|
+
function callOrApply(fn2, args) {
|
|
49769
|
+
return isArray(args) ? fn2.apply(void 0, __spreadArray([], __read(args))) : fn2(args);
|
|
49770
|
+
}
|
|
49771
|
+
function mapOneOrManyArgs(fn2) {
|
|
49772
|
+
return map(function(args) {
|
|
49773
|
+
return callOrApply(fn2, args);
|
|
49774
|
+
});
|
|
49775
|
+
}
|
|
49776
|
+
|
|
49777
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
|
|
49778
|
+
function mergeInternals(source8, subscriber3, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
49779
|
+
var buffer = [];
|
|
49780
|
+
var active2 = 0;
|
|
49781
|
+
var index2 = 0;
|
|
49782
|
+
var isComplete = false;
|
|
49783
|
+
var checkComplete = function() {
|
|
49784
|
+
if (isComplete && !buffer.length && !active2) {
|
|
49785
|
+
subscriber3.complete();
|
|
49786
|
+
}
|
|
49787
|
+
};
|
|
49788
|
+
var outerNext = function(value6) {
|
|
49789
|
+
return active2 < concurrent ? doInnerSub(value6) : buffer.push(value6);
|
|
49790
|
+
};
|
|
49791
|
+
var doInnerSub = function(value6) {
|
|
49792
|
+
expand && subscriber3.next(value6);
|
|
49793
|
+
active2++;
|
|
49794
|
+
var innerComplete = false;
|
|
49795
|
+
innerFrom(project(value6, index2++)).subscribe(createOperatorSubscriber(subscriber3, function(innerValue) {
|
|
49796
|
+
onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
|
|
49797
|
+
if (expand) {
|
|
49798
|
+
outerNext(innerValue);
|
|
49799
|
+
} else {
|
|
49800
|
+
subscriber3.next(innerValue);
|
|
49801
|
+
}
|
|
49802
|
+
}, function() {
|
|
49803
|
+
innerComplete = true;
|
|
49804
|
+
}, void 0, function() {
|
|
49805
|
+
if (innerComplete) {
|
|
49806
|
+
try {
|
|
49807
|
+
active2--;
|
|
49808
|
+
var _loop_1 = function() {
|
|
49809
|
+
var bufferedValue = buffer.shift();
|
|
49810
|
+
if (innerSubScheduler) {
|
|
49811
|
+
executeSchedule(subscriber3, innerSubScheduler, function() {
|
|
49812
|
+
return doInnerSub(bufferedValue);
|
|
49813
|
+
});
|
|
49814
|
+
} else {
|
|
49815
|
+
doInnerSub(bufferedValue);
|
|
49816
|
+
}
|
|
49817
|
+
};
|
|
49818
|
+
while (buffer.length && active2 < concurrent) {
|
|
49819
|
+
_loop_1();
|
|
49820
|
+
}
|
|
49821
|
+
checkComplete();
|
|
49822
|
+
} catch (err) {
|
|
49823
|
+
subscriber3.error(err);
|
|
49824
|
+
}
|
|
49825
|
+
}
|
|
49826
|
+
}));
|
|
49827
|
+
};
|
|
49828
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, outerNext, function() {
|
|
49829
|
+
isComplete = true;
|
|
49830
|
+
checkComplete();
|
|
49831
|
+
}));
|
|
49832
|
+
return function() {
|
|
49833
|
+
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
49834
|
+
};
|
|
49835
|
+
}
|
|
49836
|
+
|
|
49837
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
|
|
49838
|
+
function mergeMap(project, resultSelector, concurrent) {
|
|
49839
|
+
if (concurrent === void 0) {
|
|
49840
|
+
concurrent = Infinity;
|
|
49841
|
+
}
|
|
49842
|
+
if (isFunction(resultSelector)) {
|
|
49843
|
+
return mergeMap(function(a, i) {
|
|
49844
|
+
return map(function(b, ii) {
|
|
49845
|
+
return resultSelector(a, b, i, ii);
|
|
49846
|
+
})(innerFrom(project(a, i)));
|
|
49847
|
+
}, concurrent);
|
|
49848
|
+
} else if (typeof resultSelector === "number") {
|
|
49849
|
+
concurrent = resultSelector;
|
|
49850
|
+
}
|
|
49851
|
+
return operate(function(source8, subscriber3) {
|
|
49852
|
+
return mergeInternals(source8, subscriber3, project, concurrent);
|
|
49853
|
+
});
|
|
49854
|
+
}
|
|
49855
|
+
|
|
49856
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
|
|
49857
|
+
function mergeAll(concurrent) {
|
|
49858
|
+
if (concurrent === void 0) {
|
|
49859
|
+
concurrent = Infinity;
|
|
49860
|
+
}
|
|
49861
|
+
return mergeMap(identity, concurrent);
|
|
49862
|
+
}
|
|
49863
|
+
|
|
49864
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
|
|
49865
|
+
var nodeEventEmitterMethods = ["addListener", "removeListener"];
|
|
49866
|
+
var eventTargetMethods = ["addEventListener", "removeEventListener"];
|
|
49867
|
+
var jqueryMethods = ["on", "off"];
|
|
49868
|
+
function fromEvent(target5, eventName, options, resultSelector) {
|
|
49869
|
+
if (isFunction(options)) {
|
|
49870
|
+
resultSelector = options;
|
|
49871
|
+
options = void 0;
|
|
49872
|
+
}
|
|
49873
|
+
if (resultSelector) {
|
|
49874
|
+
return fromEvent(target5, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
49875
|
+
}
|
|
49876
|
+
var _a = __read(isEventTarget(target5) ? eventTargetMethods.map(function(methodName) {
|
|
49877
|
+
return function(handler) {
|
|
49878
|
+
return target5[methodName](eventName, handler, options);
|
|
49879
|
+
};
|
|
49880
|
+
}) : isNodeStyleEventEmitter(target5) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target5, eventName)) : isJQueryStyleEventEmitter(target5) ? jqueryMethods.map(toCommonHandlerRegistry(target5, eventName)) : [], 2), add2 = _a[0], remove = _a[1];
|
|
49881
|
+
if (!add2) {
|
|
49882
|
+
if (isArrayLike(target5)) {
|
|
49883
|
+
return mergeMap(function(subTarget) {
|
|
49884
|
+
return fromEvent(subTarget, eventName, options);
|
|
49885
|
+
})(innerFrom(target5));
|
|
49886
|
+
}
|
|
49887
|
+
}
|
|
49888
|
+
if (!add2) {
|
|
49889
|
+
throw new TypeError("Invalid event target");
|
|
49890
|
+
}
|
|
49891
|
+
return new Observable(function(subscriber3) {
|
|
49892
|
+
var handler = function() {
|
|
49893
|
+
var args = [];
|
|
49894
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
49895
|
+
args[_i] = arguments[_i];
|
|
49896
|
+
}
|
|
49897
|
+
return subscriber3.next(1 < args.length ? args : args[0]);
|
|
49898
|
+
};
|
|
49899
|
+
add2(handler);
|
|
49900
|
+
return function() {
|
|
49901
|
+
return remove(handler);
|
|
49902
|
+
};
|
|
49903
|
+
});
|
|
49904
|
+
}
|
|
49905
|
+
function toCommonHandlerRegistry(target5, eventName) {
|
|
49906
|
+
return function(methodName) {
|
|
49907
|
+
return function(handler) {
|
|
49908
|
+
return target5[methodName](eventName, handler);
|
|
49909
|
+
};
|
|
49910
|
+
};
|
|
49911
|
+
}
|
|
49912
|
+
function isNodeStyleEventEmitter(target5) {
|
|
49913
|
+
return isFunction(target5.addListener) && isFunction(target5.removeListener);
|
|
49914
|
+
}
|
|
49915
|
+
function isJQueryStyleEventEmitter(target5) {
|
|
49916
|
+
return isFunction(target5.on) && isFunction(target5.off);
|
|
49917
|
+
}
|
|
49918
|
+
function isEventTarget(target5) {
|
|
49919
|
+
return isFunction(target5.addEventListener) && isFunction(target5.removeEventListener);
|
|
49920
|
+
}
|
|
49921
|
+
|
|
49922
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/merge.js
|
|
49923
|
+
function merge() {
|
|
49924
|
+
var args = [];
|
|
49925
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
49926
|
+
args[_i] = arguments[_i];
|
|
49927
|
+
}
|
|
49928
|
+
var scheduler = popScheduler(args);
|
|
49929
|
+
var concurrent = popNumber(args, Infinity);
|
|
49930
|
+
var sources = args;
|
|
49931
|
+
return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));
|
|
49932
|
+
}
|
|
49933
|
+
|
|
49934
|
+
// src/authentication/observeSession.ts
|
|
49935
|
+
function observeSession(session4) {
|
|
49936
|
+
const sessionInfoSubject = new BehaviorSubject(session4.info);
|
|
49937
|
+
const login = fromEvent(session4.events, EVENTS.LOGIN);
|
|
49938
|
+
const logout = fromEvent(session4.events, EVENTS.LOGOUT);
|
|
49939
|
+
const sessionRestored = fromEvent(session4.events, EVENTS.SESSION_RESTORED);
|
|
49940
|
+
merge(login, logout, sessionRestored).pipe(map(() => sessionInfoSubject.next(session4.info))).subscribe();
|
|
49941
|
+
return sessionInfoSubject;
|
|
49942
|
+
}
|
|
49943
|
+
|
|
47749
49944
|
// src/authentication/index.ts
|
|
47750
49945
|
var BrowserSession = class {
|
|
47751
49946
|
get authenticatedFetch() {
|
|
@@ -47753,6 +49948,7 @@ var PodOS = (() => {
|
|
|
47753
49948
|
}
|
|
47754
49949
|
constructor() {
|
|
47755
49950
|
this.session = new Session();
|
|
49951
|
+
this.sessionInfo$ = observeSession(this.session);
|
|
47756
49952
|
this._authenticatedFetch = this.session.fetch;
|
|
47757
49953
|
}
|
|
47758
49954
|
async handleIncomingRedirect() {
|
|
@@ -47773,11 +49969,14 @@ var PodOS = (() => {
|
|
|
47773
49969
|
return this.session.logout();
|
|
47774
49970
|
}
|
|
47775
49971
|
trackSession(callback) {
|
|
47776
|
-
this.session.
|
|
47777
|
-
this.session.
|
|
47778
|
-
this.session.
|
|
49972
|
+
this.session.on(EVENTS.LOGIN, () => callback(this.session.info));
|
|
49973
|
+
this.session.on(EVENTS.LOGOUT, () => callback(this.session.info));
|
|
49974
|
+
this.session.on(EVENTS.SESSION_RESTORED, () => callback(this.session.info));
|
|
47779
49975
|
callback(this.session.info);
|
|
47780
49976
|
}
|
|
49977
|
+
observeSession() {
|
|
49978
|
+
return this.sessionInfo$;
|
|
49979
|
+
}
|
|
47781
49980
|
};
|
|
47782
49981
|
|
|
47783
49982
|
// src/files/BinaryFile.ts
|
|
@@ -48271,7 +50470,7 @@ var PodOS = (() => {
|
|
|
48271
50470
|
sec: () => sec,
|
|
48272
50471
|
sioc: () => sioc,
|
|
48273
50472
|
skos: () => skos,
|
|
48274
|
-
solid: () =>
|
|
50473
|
+
solid: () => solid2,
|
|
48275
50474
|
space: () => space,
|
|
48276
50475
|
tab: () => tab,
|
|
48277
50476
|
tabont: () => tabont,
|
|
@@ -48349,7 +50548,7 @@ var PodOS = (() => {
|
|
|
48349
50548
|
var bcc = "http://www.w3.org/ns/activitystreams#bcc";
|
|
48350
50549
|
var bto = "http://www.w3.org/ns/activitystreams#bto";
|
|
48351
50550
|
var cc = "http://www.w3.org/ns/activitystreams#cc";
|
|
48352
|
-
var
|
|
50551
|
+
var context2 = "http://www.w3.org/ns/activitystreams#context";
|
|
48353
50552
|
var generator = "http://www.w3.org/ns/activitystreams#generator";
|
|
48354
50553
|
var icon = "http://www.w3.org/ns/activitystreams#icon";
|
|
48355
50554
|
var image = "http://www.w3.org/ns/activitystreams#image";
|
|
@@ -48467,7 +50666,7 @@ var PodOS = (() => {
|
|
|
48467
50666
|
bcc,
|
|
48468
50667
|
bto,
|
|
48469
50668
|
cc,
|
|
48470
|
-
context,
|
|
50669
|
+
context: context2,
|
|
48471
50670
|
generator,
|
|
48472
50671
|
icon,
|
|
48473
50672
|
image,
|
|
@@ -48624,7 +50823,7 @@ var PodOS = (() => {
|
|
|
48624
50823
|
var DomainOf_rrule = "http://www.w3.org/2002/12/cal/ical#DomainOf_rrule";
|
|
48625
50824
|
var relatedTo = "http://www.w3.org/2002/12/cal/ical#relatedTo";
|
|
48626
50825
|
var url2 = "http://www.w3.org/2002/12/cal/ical#url";
|
|
48627
|
-
var
|
|
50826
|
+
var uid2 = "http://www.w3.org/2002/12/cal/ical#uid";
|
|
48628
50827
|
var exdate = "http://www.w3.org/2002/12/cal/ical#exdate";
|
|
48629
50828
|
var exrule = "http://www.w3.org/2002/12/cal/ical#exrule";
|
|
48630
50829
|
var Value_RECUR = "http://www.w3.org/2002/12/cal/ical#Value_RECUR";
|
|
@@ -48684,7 +50883,7 @@ var PodOS = (() => {
|
|
|
48684
50883
|
DomainOf_rrule,
|
|
48685
50884
|
relatedTo,
|
|
48686
50885
|
url: url2,
|
|
48687
|
-
uid,
|
|
50886
|
+
uid: uid2,
|
|
48688
50887
|
exdate,
|
|
48689
50888
|
exrule,
|
|
48690
50889
|
Value_RECUR,
|
|
@@ -49111,7 +51310,7 @@ var PodOS = (() => {
|
|
|
49111
51310
|
var SubstanceProtein = "http://hl7.org/fhir/SubstanceProtein";
|
|
49112
51311
|
var _focalDevice = "http://hl7.org/fhir/_focalDevice";
|
|
49113
51312
|
var _operationType = "http://hl7.org/fhir/_operationType";
|
|
49114
|
-
var
|
|
51313
|
+
var context3 = "http://hl7.org/fhir/context";
|
|
49115
51314
|
var occurrenceDateTime = "http://hl7.org/fhir/occurrenceDateTime";
|
|
49116
51315
|
var DetectedIssueEvidenceComponent = "http://hl7.org/fhir/DetectedIssueEvidenceComponent";
|
|
49117
51316
|
var _ExplanationOfBenefit = "http://hl7.org/fhir/_ExplanationOfBenefit";
|
|
@@ -49456,7 +51655,7 @@ var PodOS = (() => {
|
|
|
49456
51655
|
var _returnedAmount = "http://hl7.org/fhir/_returnedAmount";
|
|
49457
51656
|
var MedicationKnowledgeDefinitionalIngredientComponent = "http://hl7.org/fhir/MedicationKnowledgeDefinitionalIngredientComponent";
|
|
49458
51657
|
var candidate = "http://hl7.org/fhir/candidate";
|
|
49459
|
-
var
|
|
51658
|
+
var Subscription2 = "http://hl7.org/fhir/Subscription";
|
|
49460
51659
|
var relatedAction = "http://hl7.org/fhir/relatedAction";
|
|
49461
51660
|
var textPresentation = "http://hl7.org/fhir/textPresentation";
|
|
49462
51661
|
var _supplements = "http://hl7.org/fhir/_supplements";
|
|
@@ -50057,7 +52256,7 @@ var PodOS = (() => {
|
|
|
50057
52256
|
var Specimen = "http://hl7.org/fhir/Specimen";
|
|
50058
52257
|
var _MedicinalProductDefinition = "http://hl7.org/fhir/_MedicinalProductDefinition";
|
|
50059
52258
|
var OperationDefinition = "http://hl7.org/fhir/OperationDefinition";
|
|
50060
|
-
var
|
|
52259
|
+
var process3 = "http://hl7.org/fhir/process";
|
|
50061
52260
|
var CitationCitedArtifactContributorshipEntryContributionInstanceComponent = "http://hl7.org/fhir/CitationCitedArtifactContributorshipEntryContributionInstanceComponent";
|
|
50062
52261
|
var EncounterAdmissionComponent = "http://hl7.org/fhir/EncounterAdmissionComponent";
|
|
50063
52262
|
var _MedicationDispense = "http://hl7.org/fhir/_MedicationDispense";
|
|
@@ -51112,7 +53311,7 @@ var PodOS = (() => {
|
|
|
51112
53311
|
var _daysSupply = "http://hl7.org/fhir/_daysSupply";
|
|
51113
53312
|
var reportingVendor = "http://hl7.org/fhir/reportingVendor";
|
|
51114
53313
|
var current = "http://hl7.org/fhir/current";
|
|
51115
|
-
var
|
|
53314
|
+
var uid3 = "http://hl7.org/fhir/uid";
|
|
51116
53315
|
var order = "http://hl7.org/fhir/order";
|
|
51117
53316
|
var priorPrescription = "http://hl7.org/fhir/priorPrescription";
|
|
51118
53317
|
var distanceFromLandmark = "http://hl7.org/fhir/distanceFromLandmark";
|
|
@@ -51468,7 +53667,7 @@ var PodOS = (() => {
|
|
|
51468
53667
|
var _measurementType = "http://hl7.org/fhir/_measurementType";
|
|
51469
53668
|
var RelatedArtifact = "http://hl7.org/fhir/RelatedArtifact";
|
|
51470
53669
|
var RequestOrchestrationActionDynamicValueComponent = "http://hl7.org/fhir/RequestOrchestrationActionDynamicValueComponent";
|
|
51471
|
-
var
|
|
53670
|
+
var identity2 = "http://hl7.org/fhir/identity";
|
|
51472
53671
|
var subType = "http://hl7.org/fhir/subType";
|
|
51473
53672
|
var ValueSetExpansionContainsComponent = "http://hl7.org/fhir/ValueSetExpansionContainsComponent";
|
|
51474
53673
|
var MedicationKnowledgePackagingComponent = "http://hl7.org/fhir/MedicationKnowledgePackagingComponent";
|
|
@@ -52656,7 +54855,7 @@ var PodOS = (() => {
|
|
|
52656
54855
|
var ElementDefinitionMappingComponent = "http://hl7.org/fhir/ElementDefinitionMappingComponent";
|
|
52657
54856
|
var copackagedIndicator = "http://hl7.org/fhir/copackagedIndicator";
|
|
52658
54857
|
var precheckBehavior = "http://hl7.org/fhir/precheckBehavior";
|
|
52659
|
-
var
|
|
54858
|
+
var map2 = "http://hl7.org/fhir/map";
|
|
52660
54859
|
var additionalInfo = "http://hl7.org/fhir/additionalInfo";
|
|
52661
54860
|
var preConditions = "http://hl7.org/fhir/preConditions";
|
|
52662
54861
|
var numberOfSubunits = "http://hl7.org/fhir/numberOfSubunits";
|
|
@@ -53344,7 +55543,7 @@ var PodOS = (() => {
|
|
|
53344
55543
|
SubstanceProtein,
|
|
53345
55544
|
_focalDevice,
|
|
53346
55545
|
_operationType,
|
|
53347
|
-
context:
|
|
55546
|
+
context: context3,
|
|
53348
55547
|
occurrenceDateTime,
|
|
53349
55548
|
DetectedIssueEvidenceComponent,
|
|
53350
55549
|
_ExplanationOfBenefit,
|
|
@@ -53689,7 +55888,7 @@ var PodOS = (() => {
|
|
|
53689
55888
|
_returnedAmount,
|
|
53690
55889
|
MedicationKnowledgeDefinitionalIngredientComponent,
|
|
53691
55890
|
candidate,
|
|
53692
|
-
Subscription,
|
|
55891
|
+
Subscription: Subscription2,
|
|
53693
55892
|
relatedAction,
|
|
53694
55893
|
textPresentation,
|
|
53695
55894
|
_supplements,
|
|
@@ -54290,7 +56489,7 @@ var PodOS = (() => {
|
|
|
54290
56489
|
Specimen,
|
|
54291
56490
|
_MedicinalProductDefinition,
|
|
54292
56491
|
OperationDefinition,
|
|
54293
|
-
process:
|
|
56492
|
+
process: process3,
|
|
54294
56493
|
CitationCitedArtifactContributorshipEntryContributionInstanceComponent,
|
|
54295
56494
|
EncounterAdmissionComponent,
|
|
54296
56495
|
_MedicationDispense,
|
|
@@ -55345,7 +57544,7 @@ var PodOS = (() => {
|
|
|
55345
57544
|
_daysSupply,
|
|
55346
57545
|
reportingVendor,
|
|
55347
57546
|
current,
|
|
55348
|
-
uid:
|
|
57547
|
+
uid: uid3,
|
|
55349
57548
|
order,
|
|
55350
57549
|
priorPrescription,
|
|
55351
57550
|
distanceFromLandmark,
|
|
@@ -55701,7 +57900,7 @@ var PodOS = (() => {
|
|
|
55701
57900
|
_measurementType,
|
|
55702
57901
|
RelatedArtifact,
|
|
55703
57902
|
RequestOrchestrationActionDynamicValueComponent,
|
|
55704
|
-
identity,
|
|
57903
|
+
identity: identity2,
|
|
55705
57904
|
subType,
|
|
55706
57905
|
ValueSetExpansionContainsComponent,
|
|
55707
57906
|
MedicationKnowledgePackagingComponent,
|
|
@@ -56889,7 +59088,7 @@ var PodOS = (() => {
|
|
|
56889
59088
|
ElementDefinitionMappingComponent,
|
|
56890
59089
|
copackagedIndicator,
|
|
56891
59090
|
precheckBehavior,
|
|
56892
|
-
map,
|
|
59091
|
+
map: map2,
|
|
56893
59092
|
additionalInfo,
|
|
56894
59093
|
preConditions,
|
|
56895
59094
|
numberOfSubunits,
|
|
@@ -57621,7 +59820,7 @@ var PodOS = (() => {
|
|
|
57621
59820
|
var first = "http://www.w3.org/ns/hydra/core#first";
|
|
57622
59821
|
var freetextQuery = "http://www.w3.org/ns/hydra/core#freetextQuery";
|
|
57623
59822
|
var headerName = "http://www.w3.org/ns/hydra/core#headerName";
|
|
57624
|
-
var
|
|
59823
|
+
var last2 = "http://www.w3.org/ns/hydra/core#last";
|
|
57625
59824
|
var limit2 = "http://www.w3.org/ns/hydra/core#limit";
|
|
57626
59825
|
var mapping2 = "http://www.w3.org/ns/hydra/core#mapping";
|
|
57627
59826
|
var member3 = "http://www.w3.org/ns/hydra/core#member";
|
|
@@ -57683,7 +59882,7 @@ var PodOS = (() => {
|
|
|
57683
59882
|
first,
|
|
57684
59883
|
freetextQuery,
|
|
57685
59884
|
headerName,
|
|
57686
|
-
last,
|
|
59885
|
+
last: last2,
|
|
57687
59886
|
limit: limit2,
|
|
57688
59887
|
mapping: mapping2,
|
|
57689
59888
|
member: member3,
|
|
@@ -57771,7 +59970,7 @@ var PodOS = (() => {
|
|
|
57771
59970
|
var ProtocolEvent = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
57772
59971
|
var RDFDocument = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
57773
59972
|
var Response2 = "http://www.w3.org/2007/ont/link#Response";
|
|
57774
|
-
var
|
|
59973
|
+
var Session3 = "http://www.w3.org/2007/ont/link#Session";
|
|
57775
59974
|
var isMentionedIn = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
57776
59975
|
var mentionsClass = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
57777
59976
|
var protocol3 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -57791,7 +59990,7 @@ var PodOS = (() => {
|
|
|
57791
59990
|
ProtocolEvent,
|
|
57792
59991
|
RDFDocument,
|
|
57793
59992
|
Response: Response2,
|
|
57794
|
-
Session:
|
|
59993
|
+
Session: Session3,
|
|
57795
59994
|
isMentionedIn,
|
|
57796
59995
|
mentionsClass,
|
|
57797
59996
|
protocol: protocol3,
|
|
@@ -59821,7 +62020,7 @@ var PodOS = (() => {
|
|
|
59821
62020
|
var lyrics = "http://schema.org/lyrics";
|
|
59822
62021
|
var maintainer = "http://schema.org/maintainer";
|
|
59823
62022
|
var manufacturer2 = "http://schema.org/manufacturer";
|
|
59824
|
-
var
|
|
62023
|
+
var map3 = "http://schema.org/map";
|
|
59825
62024
|
var mapType = "http://schema.org/mapType";
|
|
59826
62025
|
var maps = "http://schema.org/maps";
|
|
59827
62026
|
var marginOfError = "http://schema.org/marginOfError";
|
|
@@ -62189,7 +64388,7 @@ var PodOS = (() => {
|
|
|
62189
64388
|
lyrics,
|
|
62190
64389
|
maintainer,
|
|
62191
64390
|
manufacturer: manufacturer2,
|
|
62192
|
-
map:
|
|
64391
|
+
map: map3,
|
|
62193
64392
|
mapType,
|
|
62194
64393
|
maps,
|
|
62195
64394
|
marginOfError,
|
|
@@ -64559,7 +66758,7 @@ var PodOS = (() => {
|
|
|
64559
66758
|
var lyrics2 = "https://schema.org/lyrics";
|
|
64560
66759
|
var maintainer2 = "https://schema.org/maintainer";
|
|
64561
66760
|
var manufacturer3 = "https://schema.org/manufacturer";
|
|
64562
|
-
var
|
|
66761
|
+
var map4 = "https://schema.org/map";
|
|
64563
66762
|
var mapType2 = "https://schema.org/mapType";
|
|
64564
66763
|
var maps2 = "https://schema.org/maps";
|
|
64565
66764
|
var marginOfError2 = "https://schema.org/marginOfError";
|
|
@@ -66927,7 +69126,7 @@ var PodOS = (() => {
|
|
|
66927
69126
|
lyrics: lyrics2,
|
|
66928
69127
|
maintainer: maintainer2,
|
|
66929
69128
|
manufacturer: manufacturer3,
|
|
66930
|
-
map:
|
|
69129
|
+
map: map4,
|
|
66931
69130
|
mapType: mapType2,
|
|
66932
69131
|
maps: maps2,
|
|
66933
69132
|
marginOfError: marginOfError2,
|
|
@@ -68057,7 +70256,7 @@ var PodOS = (() => {
|
|
|
68057
70256
|
var ProtocolEvent2 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
68058
70257
|
var RDFDocument2 = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
68059
70258
|
var Response3 = "http://www.w3.org/2007/ont/link#Response";
|
|
68060
|
-
var
|
|
70259
|
+
var Session4 = "http://www.w3.org/2007/ont/link#Session";
|
|
68061
70260
|
var isMentionedIn2 = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
68062
70261
|
var mentionsClass2 = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
68063
70262
|
var protocol4 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -68077,7 +70276,7 @@ var PodOS = (() => {
|
|
|
68077
70276
|
ProtocolEvent: ProtocolEvent2,
|
|
68078
70277
|
RDFDocument: RDFDocument2,
|
|
68079
70278
|
Response: Response3,
|
|
68080
|
-
Session:
|
|
70279
|
+
Session: Session4,
|
|
68081
70280
|
isMentionedIn: isMentionedIn2,
|
|
68082
70281
|
mentionsClass: mentionsClass2,
|
|
68083
70282
|
protocol: protocol4,
|
|
@@ -68099,7 +70298,7 @@ var PodOS = (() => {
|
|
|
68099
70298
|
var ProtocolEvent3 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
68100
70299
|
var RDFDocument3 = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
68101
70300
|
var Response4 = "http://www.w3.org/2007/ont/link#Response";
|
|
68102
|
-
var
|
|
70301
|
+
var Session5 = "http://www.w3.org/2007/ont/link#Session";
|
|
68103
70302
|
var isMentionedIn3 = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
68104
70303
|
var mentionsClass3 = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
68105
70304
|
var protocol5 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -68119,7 +70318,7 @@ var PodOS = (() => {
|
|
|
68119
70318
|
ProtocolEvent: ProtocolEvent3,
|
|
68120
70319
|
RDFDocument: RDFDocument3,
|
|
68121
70320
|
Response: Response4,
|
|
68122
|
-
Session:
|
|
70321
|
+
Session: Session5,
|
|
68123
70322
|
isMentionedIn: isMentionedIn3,
|
|
68124
70323
|
mentionsClass: mentionsClass3,
|
|
68125
70324
|
protocol: protocol5,
|
|
@@ -68521,7 +70720,7 @@ var PodOS = (() => {
|
|
|
68521
70720
|
var sec = secImport;
|
|
68522
70721
|
var sioc = siocImport;
|
|
68523
70722
|
var skos = skosImport;
|
|
68524
|
-
var
|
|
70723
|
+
var solid2 = solidImport;
|
|
68525
70724
|
var space = spaceImport;
|
|
68526
70725
|
var tab = tabImport;
|
|
68527
70726
|
var tabont = tabontImport;
|
|
@@ -68621,12 +70820,22 @@ var PodOS = (() => {
|
|
|
68621
70820
|
proposeUriForNewThing(referenceUri, name7) {
|
|
68622
70821
|
return this.uriService.proposeUriForNewThing(referenceUri, name7);
|
|
68623
70822
|
}
|
|
70823
|
+
/**
|
|
70824
|
+
* @deprecated use observeSession instead
|
|
70825
|
+
* @param callback
|
|
70826
|
+
*/
|
|
68624
70827
|
trackSession(callback) {
|
|
68625
70828
|
return this.session.trackSession((session4) => {
|
|
68626
70829
|
this.store.updater.flagAuthorizationMetadata();
|
|
68627
70830
|
callback(session4);
|
|
68628
70831
|
});
|
|
68629
70832
|
}
|
|
70833
|
+
/**
|
|
70834
|
+
* returns a behavior subject that can be used to observe changes in the session state
|
|
70835
|
+
*/
|
|
70836
|
+
observeSession() {
|
|
70837
|
+
return this.session.observeSession();
|
|
70838
|
+
}
|
|
68630
70839
|
/**
|
|
68631
70840
|
* Fetch the WebId profile and preferences file for the given WebID
|
|
68632
70841
|
* @param webId
|