@pod-os/core 0.11.2-fe7524c.0 → 0.12.1-eddb6ac.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-7C7N3OSJ.js} +376 -542
- package/dist/dist-762OQHAF.js +912 -0
- package/dist/index.js +1860 -95
- package/lib/index.js +3091 -945
- package/package.json +8 -7
- package/types/authentication/index.d.ts +10 -2
- package/types/authentication/observeSession.d.ts +4 -0
- package/types/authentication/observeSession.spec.d.ts +1 -0
- package/types/index.d.ts +19 -4
- package/dist/dist-D3HKZNEN.js +0 -384
package/dist/index.js
CHANGED
|
@@ -7,9 +7,8 @@ import {
|
|
|
7
7
|
isNamedNode,
|
|
8
8
|
lit,
|
|
9
9
|
namedNode,
|
|
10
|
-
st
|
|
11
|
-
|
|
12
|
-
} from "./chunk-NJZBRQIY.js";
|
|
10
|
+
st
|
|
11
|
+
} from "./chunk-7C7N3OSJ.js";
|
|
13
12
|
import {
|
|
14
13
|
__commonJS,
|
|
15
14
|
__export,
|
|
@@ -7589,7 +7588,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
7589
7588
|
var require_lunr = __commonJS({
|
|
7590
7589
|
"../node_modules/lunr/lunr.js"(exports, module2) {
|
|
7591
7590
|
(function() {
|
|
7592
|
-
var lunr2 = function(
|
|
7591
|
+
var lunr2 = function(config2) {
|
|
7593
7592
|
var builder = new lunr2.Builder();
|
|
7594
7593
|
builder.pipeline.add(
|
|
7595
7594
|
lunr2.trimmer,
|
|
@@ -7599,7 +7598,7 @@ var require_lunr = __commonJS({
|
|
|
7599
7598
|
builder.searchPipeline.add(
|
|
7600
7599
|
lunr2.stemmer
|
|
7601
7600
|
);
|
|
7602
|
-
|
|
7601
|
+
config2.call(builder, builder);
|
|
7603
7602
|
return builder.build();
|
|
7604
7603
|
};
|
|
7605
7604
|
lunr2.version = "2.3.9";
|
|
@@ -9374,6 +9373,1675 @@ var require_slugify = __commonJS({
|
|
|
9374
9373
|
}
|
|
9375
9374
|
});
|
|
9376
9375
|
|
|
9376
|
+
// ../node_modules/tslib/tslib.es6.mjs
|
|
9377
|
+
var extendStatics = function(d, b) {
|
|
9378
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
9379
|
+
d2.__proto__ = b2;
|
|
9380
|
+
} || function(d2, b2) {
|
|
9381
|
+
for (var p in b2)
|
|
9382
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
9383
|
+
d2[p] = b2[p];
|
|
9384
|
+
};
|
|
9385
|
+
return extendStatics(d, b);
|
|
9386
|
+
};
|
|
9387
|
+
function __extends(d, b) {
|
|
9388
|
+
if (typeof b !== "function" && b !== null)
|
|
9389
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9390
|
+
extendStatics(d, b);
|
|
9391
|
+
function __() {
|
|
9392
|
+
this.constructor = d;
|
|
9393
|
+
}
|
|
9394
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9395
|
+
}
|
|
9396
|
+
function __awaiter(thisArg, _arguments, P, generator3) {
|
|
9397
|
+
function adopt(value6) {
|
|
9398
|
+
return value6 instanceof P ? value6 : new P(function(resolve) {
|
|
9399
|
+
resolve(value6);
|
|
9400
|
+
});
|
|
9401
|
+
}
|
|
9402
|
+
return new (P || (P = Promise))(function(resolve, reject2) {
|
|
9403
|
+
function fulfilled(value6) {
|
|
9404
|
+
try {
|
|
9405
|
+
step4(generator3.next(value6));
|
|
9406
|
+
} catch (e) {
|
|
9407
|
+
reject2(e);
|
|
9408
|
+
}
|
|
9409
|
+
}
|
|
9410
|
+
function rejected(value6) {
|
|
9411
|
+
try {
|
|
9412
|
+
step4(generator3["throw"](value6));
|
|
9413
|
+
} catch (e) {
|
|
9414
|
+
reject2(e);
|
|
9415
|
+
}
|
|
9416
|
+
}
|
|
9417
|
+
function step4(result5) {
|
|
9418
|
+
result5.done ? resolve(result5.value) : adopt(result5.value).then(fulfilled, rejected);
|
|
9419
|
+
}
|
|
9420
|
+
step4((generator3 = generator3.apply(thisArg, _arguments || [])).next());
|
|
9421
|
+
});
|
|
9422
|
+
}
|
|
9423
|
+
function __generator(thisArg, body) {
|
|
9424
|
+
var _ = { label: 0, sent: function() {
|
|
9425
|
+
if (t[0] & 1)
|
|
9426
|
+
throw t[1];
|
|
9427
|
+
return t[1];
|
|
9428
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
9429
|
+
return g = { next: verb2(0), "throw": verb2(1), "return": verb2(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
9430
|
+
return this;
|
|
9431
|
+
}), g;
|
|
9432
|
+
function verb2(n2) {
|
|
9433
|
+
return function(v2) {
|
|
9434
|
+
return step4([n2, v2]);
|
|
9435
|
+
};
|
|
9436
|
+
}
|
|
9437
|
+
function step4(op2) {
|
|
9438
|
+
if (f)
|
|
9439
|
+
throw new TypeError("Generator is already executing.");
|
|
9440
|
+
while (g && (g = 0, op2[0] && (_ = 0)), _)
|
|
9441
|
+
try {
|
|
9442
|
+
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)
|
|
9443
|
+
return t;
|
|
9444
|
+
if (y = 0, t)
|
|
9445
|
+
op2 = [op2[0] & 2, t.value];
|
|
9446
|
+
switch (op2[0]) {
|
|
9447
|
+
case 0:
|
|
9448
|
+
case 1:
|
|
9449
|
+
t = op2;
|
|
9450
|
+
break;
|
|
9451
|
+
case 4:
|
|
9452
|
+
_.label++;
|
|
9453
|
+
return { value: op2[1], done: false };
|
|
9454
|
+
case 5:
|
|
9455
|
+
_.label++;
|
|
9456
|
+
y = op2[1];
|
|
9457
|
+
op2 = [0];
|
|
9458
|
+
continue;
|
|
9459
|
+
case 7:
|
|
9460
|
+
op2 = _.ops.pop();
|
|
9461
|
+
_.trys.pop();
|
|
9462
|
+
continue;
|
|
9463
|
+
default:
|
|
9464
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) {
|
|
9465
|
+
_ = 0;
|
|
9466
|
+
continue;
|
|
9467
|
+
}
|
|
9468
|
+
if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) {
|
|
9469
|
+
_.label = op2[1];
|
|
9470
|
+
break;
|
|
9471
|
+
}
|
|
9472
|
+
if (op2[0] === 6 && _.label < t[1]) {
|
|
9473
|
+
_.label = t[1];
|
|
9474
|
+
t = op2;
|
|
9475
|
+
break;
|
|
9476
|
+
}
|
|
9477
|
+
if (t && _.label < t[2]) {
|
|
9478
|
+
_.label = t[2];
|
|
9479
|
+
_.ops.push(op2);
|
|
9480
|
+
break;
|
|
9481
|
+
}
|
|
9482
|
+
if (t[2])
|
|
9483
|
+
_.ops.pop();
|
|
9484
|
+
_.trys.pop();
|
|
9485
|
+
continue;
|
|
9486
|
+
}
|
|
9487
|
+
op2 = body.call(thisArg, _);
|
|
9488
|
+
} catch (e) {
|
|
9489
|
+
op2 = [6, e];
|
|
9490
|
+
y = 0;
|
|
9491
|
+
} finally {
|
|
9492
|
+
f = t = 0;
|
|
9493
|
+
}
|
|
9494
|
+
if (op2[0] & 5)
|
|
9495
|
+
throw op2[1];
|
|
9496
|
+
return { value: op2[0] ? op2[1] : void 0, done: true };
|
|
9497
|
+
}
|
|
9498
|
+
}
|
|
9499
|
+
function __values(o) {
|
|
9500
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
9501
|
+
if (m)
|
|
9502
|
+
return m.call(o);
|
|
9503
|
+
if (o && typeof o.length === "number")
|
|
9504
|
+
return {
|
|
9505
|
+
next: function() {
|
|
9506
|
+
if (o && i >= o.length)
|
|
9507
|
+
o = void 0;
|
|
9508
|
+
return { value: o && o[i++], done: !o };
|
|
9509
|
+
}
|
|
9510
|
+
};
|
|
9511
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
9512
|
+
}
|
|
9513
|
+
function __read(o, n2) {
|
|
9514
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
9515
|
+
if (!m)
|
|
9516
|
+
return o;
|
|
9517
|
+
var i = m.call(o), r, ar = [], e;
|
|
9518
|
+
try {
|
|
9519
|
+
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done)
|
|
9520
|
+
ar.push(r.value);
|
|
9521
|
+
} catch (error4) {
|
|
9522
|
+
e = { error: error4 };
|
|
9523
|
+
} finally {
|
|
9524
|
+
try {
|
|
9525
|
+
if (r && !r.done && (m = i["return"]))
|
|
9526
|
+
m.call(i);
|
|
9527
|
+
} finally {
|
|
9528
|
+
if (e)
|
|
9529
|
+
throw e.error;
|
|
9530
|
+
}
|
|
9531
|
+
}
|
|
9532
|
+
return ar;
|
|
9533
|
+
}
|
|
9534
|
+
function __spreadArray(to2, from2, pack) {
|
|
9535
|
+
if (pack || arguments.length === 2)
|
|
9536
|
+
for (var i = 0, l = from2.length, ar; i < l; i++) {
|
|
9537
|
+
if (ar || !(i in from2)) {
|
|
9538
|
+
if (!ar)
|
|
9539
|
+
ar = Array.prototype.slice.call(from2, 0, i);
|
|
9540
|
+
ar[i] = from2[i];
|
|
9541
|
+
}
|
|
9542
|
+
}
|
|
9543
|
+
return to2.concat(ar || Array.prototype.slice.call(from2));
|
|
9544
|
+
}
|
|
9545
|
+
function __await(v2) {
|
|
9546
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
9547
|
+
}
|
|
9548
|
+
function __asyncGenerator(thisArg, _arguments, generator3) {
|
|
9549
|
+
if (!Symbol.asyncIterator)
|
|
9550
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
9551
|
+
var g = generator3.apply(thisArg, _arguments || []), i, q = [];
|
|
9552
|
+
return i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
|
|
9553
|
+
return this;
|
|
9554
|
+
}, i;
|
|
9555
|
+
function verb2(n2) {
|
|
9556
|
+
if (g[n2])
|
|
9557
|
+
i[n2] = function(v2) {
|
|
9558
|
+
return new Promise(function(a, b) {
|
|
9559
|
+
q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
|
|
9560
|
+
});
|
|
9561
|
+
};
|
|
9562
|
+
}
|
|
9563
|
+
function resume(n2, v2) {
|
|
9564
|
+
try {
|
|
9565
|
+
step4(g[n2](v2));
|
|
9566
|
+
} catch (e) {
|
|
9567
|
+
settle(q[0][3], e);
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9570
|
+
function step4(r) {
|
|
9571
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject2) : settle(q[0][2], r);
|
|
9572
|
+
}
|
|
9573
|
+
function fulfill(value6) {
|
|
9574
|
+
resume("next", value6);
|
|
9575
|
+
}
|
|
9576
|
+
function reject2(value6) {
|
|
9577
|
+
resume("throw", value6);
|
|
9578
|
+
}
|
|
9579
|
+
function settle(f, v2) {
|
|
9580
|
+
if (f(v2), q.shift(), q.length)
|
|
9581
|
+
resume(q[0][0], q[0][1]);
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
function __asyncValues(o) {
|
|
9585
|
+
if (!Symbol.asyncIterator)
|
|
9586
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
9587
|
+
var m = o[Symbol.asyncIterator], i;
|
|
9588
|
+
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() {
|
|
9589
|
+
return this;
|
|
9590
|
+
}, i);
|
|
9591
|
+
function verb2(n2) {
|
|
9592
|
+
i[n2] = o[n2] && function(v2) {
|
|
9593
|
+
return new Promise(function(resolve, reject2) {
|
|
9594
|
+
v2 = o[n2](v2), settle(resolve, reject2, v2.done, v2.value);
|
|
9595
|
+
});
|
|
9596
|
+
};
|
|
9597
|
+
}
|
|
9598
|
+
function settle(resolve, reject2, d, v2) {
|
|
9599
|
+
Promise.resolve(v2).then(function(v3) {
|
|
9600
|
+
resolve({ value: v3, done: d });
|
|
9601
|
+
}, reject2);
|
|
9602
|
+
}
|
|
9603
|
+
}
|
|
9604
|
+
|
|
9605
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
9606
|
+
function isFunction(value6) {
|
|
9607
|
+
return typeof value6 === "function";
|
|
9608
|
+
}
|
|
9609
|
+
|
|
9610
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
|
|
9611
|
+
function createErrorClass(createImpl) {
|
|
9612
|
+
var _super = function(instance3) {
|
|
9613
|
+
Error.call(instance3);
|
|
9614
|
+
instance3.stack = new Error().stack;
|
|
9615
|
+
};
|
|
9616
|
+
var ctorFunc = createImpl(_super);
|
|
9617
|
+
ctorFunc.prototype = Object.create(Error.prototype);
|
|
9618
|
+
ctorFunc.prototype.constructor = ctorFunc;
|
|
9619
|
+
return ctorFunc;
|
|
9620
|
+
}
|
|
9621
|
+
|
|
9622
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
|
|
9623
|
+
var UnsubscriptionError = createErrorClass(function(_super) {
|
|
9624
|
+
return function UnsubscriptionErrorImpl(errors) {
|
|
9625
|
+
_super(this);
|
|
9626
|
+
this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
|
|
9627
|
+
return i + 1 + ") " + err.toString();
|
|
9628
|
+
}).join("\n ") : "";
|
|
9629
|
+
this.name = "UnsubscriptionError";
|
|
9630
|
+
this.errors = errors;
|
|
9631
|
+
};
|
|
9632
|
+
});
|
|
9633
|
+
|
|
9634
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
|
|
9635
|
+
function arrRemove(arr, item4) {
|
|
9636
|
+
if (arr) {
|
|
9637
|
+
var index2 = arr.indexOf(item4);
|
|
9638
|
+
0 <= index2 && arr.splice(index2, 1);
|
|
9639
|
+
}
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subscription.js
|
|
9643
|
+
var Subscription = function() {
|
|
9644
|
+
function Subscription3(initialTeardown) {
|
|
9645
|
+
this.initialTeardown = initialTeardown;
|
|
9646
|
+
this.closed = false;
|
|
9647
|
+
this._parentage = null;
|
|
9648
|
+
this._finalizers = null;
|
|
9649
|
+
}
|
|
9650
|
+
Subscription3.prototype.unsubscribe = function() {
|
|
9651
|
+
var e_1, _a, e_2, _b;
|
|
9652
|
+
var errors;
|
|
9653
|
+
if (!this.closed) {
|
|
9654
|
+
this.closed = true;
|
|
9655
|
+
var _parentage = this._parentage;
|
|
9656
|
+
if (_parentage) {
|
|
9657
|
+
this._parentage = null;
|
|
9658
|
+
if (Array.isArray(_parentage)) {
|
|
9659
|
+
try {
|
|
9660
|
+
for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
|
9661
|
+
var parent_1 = _parentage_1_1.value;
|
|
9662
|
+
parent_1.remove(this);
|
|
9663
|
+
}
|
|
9664
|
+
} catch (e_1_1) {
|
|
9665
|
+
e_1 = { error: e_1_1 };
|
|
9666
|
+
} finally {
|
|
9667
|
+
try {
|
|
9668
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
|
|
9669
|
+
_a.call(_parentage_1);
|
|
9670
|
+
} finally {
|
|
9671
|
+
if (e_1)
|
|
9672
|
+
throw e_1.error;
|
|
9673
|
+
}
|
|
9674
|
+
}
|
|
9675
|
+
} else {
|
|
9676
|
+
_parentage.remove(this);
|
|
9677
|
+
}
|
|
9678
|
+
}
|
|
9679
|
+
var initialFinalizer = this.initialTeardown;
|
|
9680
|
+
if (isFunction(initialFinalizer)) {
|
|
9681
|
+
try {
|
|
9682
|
+
initialFinalizer();
|
|
9683
|
+
} catch (e) {
|
|
9684
|
+
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
9685
|
+
}
|
|
9686
|
+
}
|
|
9687
|
+
var _finalizers = this._finalizers;
|
|
9688
|
+
if (_finalizers) {
|
|
9689
|
+
this._finalizers = null;
|
|
9690
|
+
try {
|
|
9691
|
+
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
9692
|
+
var finalizer = _finalizers_1_1.value;
|
|
9693
|
+
try {
|
|
9694
|
+
execFinalizer(finalizer);
|
|
9695
|
+
} catch (err) {
|
|
9696
|
+
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
9697
|
+
if (err instanceof UnsubscriptionError) {
|
|
9698
|
+
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
|
9699
|
+
} else {
|
|
9700
|
+
errors.push(err);
|
|
9701
|
+
}
|
|
9702
|
+
}
|
|
9703
|
+
}
|
|
9704
|
+
} catch (e_2_1) {
|
|
9705
|
+
e_2 = { error: e_2_1 };
|
|
9706
|
+
} finally {
|
|
9707
|
+
try {
|
|
9708
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
|
|
9709
|
+
_b.call(_finalizers_1);
|
|
9710
|
+
} finally {
|
|
9711
|
+
if (e_2)
|
|
9712
|
+
throw e_2.error;
|
|
9713
|
+
}
|
|
9714
|
+
}
|
|
9715
|
+
}
|
|
9716
|
+
if (errors) {
|
|
9717
|
+
throw new UnsubscriptionError(errors);
|
|
9718
|
+
}
|
|
9719
|
+
}
|
|
9720
|
+
};
|
|
9721
|
+
Subscription3.prototype.add = function(teardown2) {
|
|
9722
|
+
var _a;
|
|
9723
|
+
if (teardown2 && teardown2 !== this) {
|
|
9724
|
+
if (this.closed) {
|
|
9725
|
+
execFinalizer(teardown2);
|
|
9726
|
+
} else {
|
|
9727
|
+
if (teardown2 instanceof Subscription3) {
|
|
9728
|
+
if (teardown2.closed || teardown2._hasParent(this)) {
|
|
9729
|
+
return;
|
|
9730
|
+
}
|
|
9731
|
+
teardown2._addParent(this);
|
|
9732
|
+
}
|
|
9733
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown2);
|
|
9734
|
+
}
|
|
9735
|
+
}
|
|
9736
|
+
};
|
|
9737
|
+
Subscription3.prototype._hasParent = function(parent4) {
|
|
9738
|
+
var _parentage = this._parentage;
|
|
9739
|
+
return _parentage === parent4 || Array.isArray(_parentage) && _parentage.includes(parent4);
|
|
9740
|
+
};
|
|
9741
|
+
Subscription3.prototype._addParent = function(parent4) {
|
|
9742
|
+
var _parentage = this._parentage;
|
|
9743
|
+
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent4), _parentage) : _parentage ? [_parentage, parent4] : parent4;
|
|
9744
|
+
};
|
|
9745
|
+
Subscription3.prototype._removeParent = function(parent4) {
|
|
9746
|
+
var _parentage = this._parentage;
|
|
9747
|
+
if (_parentage === parent4) {
|
|
9748
|
+
this._parentage = null;
|
|
9749
|
+
} else if (Array.isArray(_parentage)) {
|
|
9750
|
+
arrRemove(_parentage, parent4);
|
|
9751
|
+
}
|
|
9752
|
+
};
|
|
9753
|
+
Subscription3.prototype.remove = function(teardown2) {
|
|
9754
|
+
var _finalizers = this._finalizers;
|
|
9755
|
+
_finalizers && arrRemove(_finalizers, teardown2);
|
|
9756
|
+
if (teardown2 instanceof Subscription3) {
|
|
9757
|
+
teardown2._removeParent(this);
|
|
9758
|
+
}
|
|
9759
|
+
};
|
|
9760
|
+
Subscription3.EMPTY = function() {
|
|
9761
|
+
var empty = new Subscription3();
|
|
9762
|
+
empty.closed = true;
|
|
9763
|
+
return empty;
|
|
9764
|
+
}();
|
|
9765
|
+
return Subscription3;
|
|
9766
|
+
}();
|
|
9767
|
+
var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
9768
|
+
function isSubscription(value6) {
|
|
9769
|
+
return value6 instanceof Subscription || value6 && "closed" in value6 && isFunction(value6.remove) && isFunction(value6.add) && isFunction(value6.unsubscribe);
|
|
9770
|
+
}
|
|
9771
|
+
function execFinalizer(finalizer) {
|
|
9772
|
+
if (isFunction(finalizer)) {
|
|
9773
|
+
finalizer();
|
|
9774
|
+
} else {
|
|
9775
|
+
finalizer.unsubscribe();
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
|
|
9779
|
+
// ../node_modules/rxjs/dist/esm5/internal/config.js
|
|
9780
|
+
var config = {
|
|
9781
|
+
onUnhandledError: null,
|
|
9782
|
+
onStoppedNotification: null,
|
|
9783
|
+
Promise: void 0,
|
|
9784
|
+
useDeprecatedSynchronousErrorHandling: false,
|
|
9785
|
+
useDeprecatedNextContext: false
|
|
9786
|
+
};
|
|
9787
|
+
|
|
9788
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
|
|
9789
|
+
var timeoutProvider = {
|
|
9790
|
+
setTimeout: function(handler, timeout2) {
|
|
9791
|
+
var args = [];
|
|
9792
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9793
|
+
args[_i - 2] = arguments[_i];
|
|
9794
|
+
}
|
|
9795
|
+
var delegate = timeoutProvider.delegate;
|
|
9796
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
9797
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout2], __read(args)));
|
|
9798
|
+
}
|
|
9799
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
|
|
9800
|
+
},
|
|
9801
|
+
clearTimeout: function(handle) {
|
|
9802
|
+
var delegate = timeoutProvider.delegate;
|
|
9803
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
9804
|
+
},
|
|
9805
|
+
delegate: void 0
|
|
9806
|
+
};
|
|
9807
|
+
|
|
9808
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
|
|
9809
|
+
function reportUnhandledError(err) {
|
|
9810
|
+
timeoutProvider.setTimeout(function() {
|
|
9811
|
+
var onUnhandledError = config.onUnhandledError;
|
|
9812
|
+
if (onUnhandledError) {
|
|
9813
|
+
onUnhandledError(err);
|
|
9814
|
+
} else {
|
|
9815
|
+
throw err;
|
|
9816
|
+
}
|
|
9817
|
+
});
|
|
9818
|
+
}
|
|
9819
|
+
|
|
9820
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/noop.js
|
|
9821
|
+
function noop() {
|
|
9822
|
+
}
|
|
9823
|
+
|
|
9824
|
+
// ../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
|
|
9825
|
+
var COMPLETE_NOTIFICATION = function() {
|
|
9826
|
+
return createNotification("C", void 0, void 0);
|
|
9827
|
+
}();
|
|
9828
|
+
function errorNotification(error4) {
|
|
9829
|
+
return createNotification("E", void 0, error4);
|
|
9830
|
+
}
|
|
9831
|
+
function nextNotification(value6) {
|
|
9832
|
+
return createNotification("N", value6, void 0);
|
|
9833
|
+
}
|
|
9834
|
+
function createNotification(kind2, value6, error4) {
|
|
9835
|
+
return {
|
|
9836
|
+
kind: kind2,
|
|
9837
|
+
value: value6,
|
|
9838
|
+
error: error4
|
|
9839
|
+
};
|
|
9840
|
+
}
|
|
9841
|
+
|
|
9842
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/errorContext.js
|
|
9843
|
+
var context = null;
|
|
9844
|
+
function errorContext(cb) {
|
|
9845
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
9846
|
+
var isRoot = !context;
|
|
9847
|
+
if (isRoot) {
|
|
9848
|
+
context = { errorThrown: false, error: null };
|
|
9849
|
+
}
|
|
9850
|
+
cb();
|
|
9851
|
+
if (isRoot) {
|
|
9852
|
+
var _a = context, errorThrown = _a.errorThrown, error4 = _a.error;
|
|
9853
|
+
context = null;
|
|
9854
|
+
if (errorThrown) {
|
|
9855
|
+
throw error4;
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
9858
|
+
} else {
|
|
9859
|
+
cb();
|
|
9860
|
+
}
|
|
9861
|
+
}
|
|
9862
|
+
function captureError(err) {
|
|
9863
|
+
if (config.useDeprecatedSynchronousErrorHandling && context) {
|
|
9864
|
+
context.errorThrown = true;
|
|
9865
|
+
context.error = err;
|
|
9866
|
+
}
|
|
9867
|
+
}
|
|
9868
|
+
|
|
9869
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subscriber.js
|
|
9870
|
+
var Subscriber = function(_super) {
|
|
9871
|
+
__extends(Subscriber2, _super);
|
|
9872
|
+
function Subscriber2(destination2) {
|
|
9873
|
+
var _this = _super.call(this) || this;
|
|
9874
|
+
_this.isStopped = false;
|
|
9875
|
+
if (destination2) {
|
|
9876
|
+
_this.destination = destination2;
|
|
9877
|
+
if (isSubscription(destination2)) {
|
|
9878
|
+
destination2.add(_this);
|
|
9879
|
+
}
|
|
9880
|
+
} else {
|
|
9881
|
+
_this.destination = EMPTY_OBSERVER;
|
|
9882
|
+
}
|
|
9883
|
+
return _this;
|
|
9884
|
+
}
|
|
9885
|
+
Subscriber2.create = function(next3, error4, complete2) {
|
|
9886
|
+
return new SafeSubscriber(next3, error4, complete2);
|
|
9887
|
+
};
|
|
9888
|
+
Subscriber2.prototype.next = function(value6) {
|
|
9889
|
+
if (this.isStopped) {
|
|
9890
|
+
handleStoppedNotification(nextNotification(value6), this);
|
|
9891
|
+
} else {
|
|
9892
|
+
this._next(value6);
|
|
9893
|
+
}
|
|
9894
|
+
};
|
|
9895
|
+
Subscriber2.prototype.error = function(err) {
|
|
9896
|
+
if (this.isStopped) {
|
|
9897
|
+
handleStoppedNotification(errorNotification(err), this);
|
|
9898
|
+
} else {
|
|
9899
|
+
this.isStopped = true;
|
|
9900
|
+
this._error(err);
|
|
9901
|
+
}
|
|
9902
|
+
};
|
|
9903
|
+
Subscriber2.prototype.complete = function() {
|
|
9904
|
+
if (this.isStopped) {
|
|
9905
|
+
handleStoppedNotification(COMPLETE_NOTIFICATION, this);
|
|
9906
|
+
} else {
|
|
9907
|
+
this.isStopped = true;
|
|
9908
|
+
this._complete();
|
|
9909
|
+
}
|
|
9910
|
+
};
|
|
9911
|
+
Subscriber2.prototype.unsubscribe = function() {
|
|
9912
|
+
if (!this.closed) {
|
|
9913
|
+
this.isStopped = true;
|
|
9914
|
+
_super.prototype.unsubscribe.call(this);
|
|
9915
|
+
this.destination = null;
|
|
9916
|
+
}
|
|
9917
|
+
};
|
|
9918
|
+
Subscriber2.prototype._next = function(value6) {
|
|
9919
|
+
this.destination.next(value6);
|
|
9920
|
+
};
|
|
9921
|
+
Subscriber2.prototype._error = function(err) {
|
|
9922
|
+
try {
|
|
9923
|
+
this.destination.error(err);
|
|
9924
|
+
} finally {
|
|
9925
|
+
this.unsubscribe();
|
|
9926
|
+
}
|
|
9927
|
+
};
|
|
9928
|
+
Subscriber2.prototype._complete = function() {
|
|
9929
|
+
try {
|
|
9930
|
+
this.destination.complete();
|
|
9931
|
+
} finally {
|
|
9932
|
+
this.unsubscribe();
|
|
9933
|
+
}
|
|
9934
|
+
};
|
|
9935
|
+
return Subscriber2;
|
|
9936
|
+
}(Subscription);
|
|
9937
|
+
var _bind = Function.prototype.bind;
|
|
9938
|
+
function bind(fn2, thisArg) {
|
|
9939
|
+
return _bind.call(fn2, thisArg);
|
|
9940
|
+
}
|
|
9941
|
+
var ConsumerObserver = function() {
|
|
9942
|
+
function ConsumerObserver2(partialObserver) {
|
|
9943
|
+
this.partialObserver = partialObserver;
|
|
9944
|
+
}
|
|
9945
|
+
ConsumerObserver2.prototype.next = function(value6) {
|
|
9946
|
+
var partialObserver = this.partialObserver;
|
|
9947
|
+
if (partialObserver.next) {
|
|
9948
|
+
try {
|
|
9949
|
+
partialObserver.next(value6);
|
|
9950
|
+
} catch (error4) {
|
|
9951
|
+
handleUnhandledError(error4);
|
|
9952
|
+
}
|
|
9953
|
+
}
|
|
9954
|
+
};
|
|
9955
|
+
ConsumerObserver2.prototype.error = function(err) {
|
|
9956
|
+
var partialObserver = this.partialObserver;
|
|
9957
|
+
if (partialObserver.error) {
|
|
9958
|
+
try {
|
|
9959
|
+
partialObserver.error(err);
|
|
9960
|
+
} catch (error4) {
|
|
9961
|
+
handleUnhandledError(error4);
|
|
9962
|
+
}
|
|
9963
|
+
} else {
|
|
9964
|
+
handleUnhandledError(err);
|
|
9965
|
+
}
|
|
9966
|
+
};
|
|
9967
|
+
ConsumerObserver2.prototype.complete = function() {
|
|
9968
|
+
var partialObserver = this.partialObserver;
|
|
9969
|
+
if (partialObserver.complete) {
|
|
9970
|
+
try {
|
|
9971
|
+
partialObserver.complete();
|
|
9972
|
+
} catch (error4) {
|
|
9973
|
+
handleUnhandledError(error4);
|
|
9974
|
+
}
|
|
9975
|
+
}
|
|
9976
|
+
};
|
|
9977
|
+
return ConsumerObserver2;
|
|
9978
|
+
}();
|
|
9979
|
+
var SafeSubscriber = function(_super) {
|
|
9980
|
+
__extends(SafeSubscriber2, _super);
|
|
9981
|
+
function SafeSubscriber2(observerOrNext, error4, complete2) {
|
|
9982
|
+
var _this = _super.call(this) || this;
|
|
9983
|
+
var partialObserver;
|
|
9984
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
9985
|
+
partialObserver = {
|
|
9986
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
|
|
9987
|
+
error: error4 !== null && error4 !== void 0 ? error4 : void 0,
|
|
9988
|
+
complete: complete2 !== null && complete2 !== void 0 ? complete2 : void 0
|
|
9989
|
+
};
|
|
9990
|
+
} else {
|
|
9991
|
+
var context_1;
|
|
9992
|
+
if (_this && config.useDeprecatedNextContext) {
|
|
9993
|
+
context_1 = Object.create(observerOrNext);
|
|
9994
|
+
context_1.unsubscribe = function() {
|
|
9995
|
+
return _this.unsubscribe();
|
|
9996
|
+
};
|
|
9997
|
+
partialObserver = {
|
|
9998
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
9999
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
10000
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
|
|
10001
|
+
};
|
|
10002
|
+
} else {
|
|
10003
|
+
partialObserver = observerOrNext;
|
|
10004
|
+
}
|
|
10005
|
+
}
|
|
10006
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
10007
|
+
return _this;
|
|
10008
|
+
}
|
|
10009
|
+
return SafeSubscriber2;
|
|
10010
|
+
}(Subscriber);
|
|
10011
|
+
function handleUnhandledError(error4) {
|
|
10012
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
10013
|
+
captureError(error4);
|
|
10014
|
+
} else {
|
|
10015
|
+
reportUnhandledError(error4);
|
|
10016
|
+
}
|
|
10017
|
+
}
|
|
10018
|
+
function defaultErrorHandler(err) {
|
|
10019
|
+
throw err;
|
|
10020
|
+
}
|
|
10021
|
+
function handleStoppedNotification(notification2, subscriber3) {
|
|
10022
|
+
var onStoppedNotification = config.onStoppedNotification;
|
|
10023
|
+
onStoppedNotification && timeoutProvider.setTimeout(function() {
|
|
10024
|
+
return onStoppedNotification(notification2, subscriber3);
|
|
10025
|
+
});
|
|
10026
|
+
}
|
|
10027
|
+
var EMPTY_OBSERVER = {
|
|
10028
|
+
closed: true,
|
|
10029
|
+
next: noop,
|
|
10030
|
+
error: defaultErrorHandler,
|
|
10031
|
+
complete: noop
|
|
10032
|
+
};
|
|
10033
|
+
|
|
10034
|
+
// ../node_modules/rxjs/dist/esm5/internal/symbol/observable.js
|
|
10035
|
+
var observable = function() {
|
|
10036
|
+
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
10037
|
+
}();
|
|
10038
|
+
|
|
10039
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/identity.js
|
|
10040
|
+
function identity(x) {
|
|
10041
|
+
return x;
|
|
10042
|
+
}
|
|
10043
|
+
|
|
10044
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/pipe.js
|
|
10045
|
+
function pipeFromArray(fns) {
|
|
10046
|
+
if (fns.length === 0) {
|
|
10047
|
+
return identity;
|
|
10048
|
+
}
|
|
10049
|
+
if (fns.length === 1) {
|
|
10050
|
+
return fns[0];
|
|
10051
|
+
}
|
|
10052
|
+
return function piped(input2) {
|
|
10053
|
+
return fns.reduce(function(prev, fn2) {
|
|
10054
|
+
return fn2(prev);
|
|
10055
|
+
}, input2);
|
|
10056
|
+
};
|
|
10057
|
+
}
|
|
10058
|
+
|
|
10059
|
+
// ../node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
10060
|
+
var Observable = function() {
|
|
10061
|
+
function Observable2(subscribe) {
|
|
10062
|
+
if (subscribe) {
|
|
10063
|
+
this._subscribe = subscribe;
|
|
10064
|
+
}
|
|
10065
|
+
}
|
|
10066
|
+
Observable2.prototype.lift = function(operator2) {
|
|
10067
|
+
var observable2 = new Observable2();
|
|
10068
|
+
observable2.source = this;
|
|
10069
|
+
observable2.operator = operator2;
|
|
10070
|
+
return observable2;
|
|
10071
|
+
};
|
|
10072
|
+
Observable2.prototype.subscribe = function(observerOrNext, error4, complete2) {
|
|
10073
|
+
var _this = this;
|
|
10074
|
+
var subscriber3 = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error4, complete2);
|
|
10075
|
+
errorContext(function() {
|
|
10076
|
+
var _a = _this, operator2 = _a.operator, source8 = _a.source;
|
|
10077
|
+
subscriber3.add(operator2 ? operator2.call(subscriber3, source8) : source8 ? _this._subscribe(subscriber3) : _this._trySubscribe(subscriber3));
|
|
10078
|
+
});
|
|
10079
|
+
return subscriber3;
|
|
10080
|
+
};
|
|
10081
|
+
Observable2.prototype._trySubscribe = function(sink) {
|
|
10082
|
+
try {
|
|
10083
|
+
return this._subscribe(sink);
|
|
10084
|
+
} catch (err) {
|
|
10085
|
+
sink.error(err);
|
|
10086
|
+
}
|
|
10087
|
+
};
|
|
10088
|
+
Observable2.prototype.forEach = function(next3, promiseCtor) {
|
|
10089
|
+
var _this = this;
|
|
10090
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
10091
|
+
return new promiseCtor(function(resolve, reject2) {
|
|
10092
|
+
var subscriber3 = new SafeSubscriber({
|
|
10093
|
+
next: function(value6) {
|
|
10094
|
+
try {
|
|
10095
|
+
next3(value6);
|
|
10096
|
+
} catch (err) {
|
|
10097
|
+
reject2(err);
|
|
10098
|
+
subscriber3.unsubscribe();
|
|
10099
|
+
}
|
|
10100
|
+
},
|
|
10101
|
+
error: reject2,
|
|
10102
|
+
complete: resolve
|
|
10103
|
+
});
|
|
10104
|
+
_this.subscribe(subscriber3);
|
|
10105
|
+
});
|
|
10106
|
+
};
|
|
10107
|
+
Observable2.prototype._subscribe = function(subscriber3) {
|
|
10108
|
+
var _a;
|
|
10109
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3);
|
|
10110
|
+
};
|
|
10111
|
+
Observable2.prototype[observable] = function() {
|
|
10112
|
+
return this;
|
|
10113
|
+
};
|
|
10114
|
+
Observable2.prototype.pipe = function() {
|
|
10115
|
+
var operations = [];
|
|
10116
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10117
|
+
operations[_i] = arguments[_i];
|
|
10118
|
+
}
|
|
10119
|
+
return pipeFromArray(operations)(this);
|
|
10120
|
+
};
|
|
10121
|
+
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
10122
|
+
var _this = this;
|
|
10123
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
10124
|
+
return new promiseCtor(function(resolve, reject2) {
|
|
10125
|
+
var value6;
|
|
10126
|
+
_this.subscribe(function(x) {
|
|
10127
|
+
return value6 = x;
|
|
10128
|
+
}, function(err) {
|
|
10129
|
+
return reject2(err);
|
|
10130
|
+
}, function() {
|
|
10131
|
+
return resolve(value6);
|
|
10132
|
+
});
|
|
10133
|
+
});
|
|
10134
|
+
};
|
|
10135
|
+
Observable2.create = function(subscribe) {
|
|
10136
|
+
return new Observable2(subscribe);
|
|
10137
|
+
};
|
|
10138
|
+
return Observable2;
|
|
10139
|
+
}();
|
|
10140
|
+
function getPromiseCtor(promiseCtor) {
|
|
10141
|
+
var _a;
|
|
10142
|
+
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
10143
|
+
}
|
|
10144
|
+
function isObserver(value6) {
|
|
10145
|
+
return value6 && isFunction(value6.next) && isFunction(value6.error) && isFunction(value6.complete);
|
|
10146
|
+
}
|
|
10147
|
+
function isSubscriber(value6) {
|
|
10148
|
+
return value6 && value6 instanceof Subscriber || isObserver(value6) && isSubscription(value6);
|
|
10149
|
+
}
|
|
10150
|
+
|
|
10151
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/lift.js
|
|
10152
|
+
function hasLift(source8) {
|
|
10153
|
+
return isFunction(source8 === null || source8 === void 0 ? void 0 : source8.lift);
|
|
10154
|
+
}
|
|
10155
|
+
function operate(init) {
|
|
10156
|
+
return function(source8) {
|
|
10157
|
+
if (hasLift(source8)) {
|
|
10158
|
+
return source8.lift(function(liftedSource) {
|
|
10159
|
+
try {
|
|
10160
|
+
return init(liftedSource, this);
|
|
10161
|
+
} catch (err) {
|
|
10162
|
+
this.error(err);
|
|
10163
|
+
}
|
|
10164
|
+
});
|
|
10165
|
+
}
|
|
10166
|
+
throw new TypeError("Unable to lift unknown Observable type");
|
|
10167
|
+
};
|
|
10168
|
+
}
|
|
10169
|
+
|
|
10170
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
|
|
10171
|
+
function createOperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize) {
|
|
10172
|
+
return new OperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize);
|
|
10173
|
+
}
|
|
10174
|
+
var OperatorSubscriber = function(_super) {
|
|
10175
|
+
__extends(OperatorSubscriber2, _super);
|
|
10176
|
+
function OperatorSubscriber2(destination2, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
10177
|
+
var _this = _super.call(this, destination2) || this;
|
|
10178
|
+
_this.onFinalize = onFinalize;
|
|
10179
|
+
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
10180
|
+
_this._next = onNext ? function(value6) {
|
|
10181
|
+
try {
|
|
10182
|
+
onNext(value6);
|
|
10183
|
+
} catch (err) {
|
|
10184
|
+
destination2.error(err);
|
|
10185
|
+
}
|
|
10186
|
+
} : _super.prototype._next;
|
|
10187
|
+
_this._error = onError ? function(err) {
|
|
10188
|
+
try {
|
|
10189
|
+
onError(err);
|
|
10190
|
+
} catch (err2) {
|
|
10191
|
+
destination2.error(err2);
|
|
10192
|
+
} finally {
|
|
10193
|
+
this.unsubscribe();
|
|
10194
|
+
}
|
|
10195
|
+
} : _super.prototype._error;
|
|
10196
|
+
_this._complete = onComplete ? function() {
|
|
10197
|
+
try {
|
|
10198
|
+
onComplete();
|
|
10199
|
+
} catch (err) {
|
|
10200
|
+
destination2.error(err);
|
|
10201
|
+
} finally {
|
|
10202
|
+
this.unsubscribe();
|
|
10203
|
+
}
|
|
10204
|
+
} : _super.prototype._complete;
|
|
10205
|
+
return _this;
|
|
10206
|
+
}
|
|
10207
|
+
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
10208
|
+
var _a;
|
|
10209
|
+
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
10210
|
+
var closed_1 = this.closed;
|
|
10211
|
+
_super.prototype.unsubscribe.call(this);
|
|
10212
|
+
!closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
10213
|
+
}
|
|
10214
|
+
};
|
|
10215
|
+
return OperatorSubscriber2;
|
|
10216
|
+
}(Subscriber);
|
|
10217
|
+
|
|
10218
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
|
|
10219
|
+
var ObjectUnsubscribedError = createErrorClass(function(_super) {
|
|
10220
|
+
return function ObjectUnsubscribedErrorImpl() {
|
|
10221
|
+
_super(this);
|
|
10222
|
+
this.name = "ObjectUnsubscribedError";
|
|
10223
|
+
this.message = "object unsubscribed";
|
|
10224
|
+
};
|
|
10225
|
+
});
|
|
10226
|
+
|
|
10227
|
+
// ../node_modules/rxjs/dist/esm5/internal/Subject.js
|
|
10228
|
+
var Subject = function(_super) {
|
|
10229
|
+
__extends(Subject2, _super);
|
|
10230
|
+
function Subject2() {
|
|
10231
|
+
var _this = _super.call(this) || this;
|
|
10232
|
+
_this.closed = false;
|
|
10233
|
+
_this.currentObservers = null;
|
|
10234
|
+
_this.observers = [];
|
|
10235
|
+
_this.isStopped = false;
|
|
10236
|
+
_this.hasError = false;
|
|
10237
|
+
_this.thrownError = null;
|
|
10238
|
+
return _this;
|
|
10239
|
+
}
|
|
10240
|
+
Subject2.prototype.lift = function(operator2) {
|
|
10241
|
+
var subject5 = new AnonymousSubject(this, this);
|
|
10242
|
+
subject5.operator = operator2;
|
|
10243
|
+
return subject5;
|
|
10244
|
+
};
|
|
10245
|
+
Subject2.prototype._throwIfClosed = function() {
|
|
10246
|
+
if (this.closed) {
|
|
10247
|
+
throw new ObjectUnsubscribedError();
|
|
10248
|
+
}
|
|
10249
|
+
};
|
|
10250
|
+
Subject2.prototype.next = function(value6) {
|
|
10251
|
+
var _this = this;
|
|
10252
|
+
errorContext(function() {
|
|
10253
|
+
var e_1, _a;
|
|
10254
|
+
_this._throwIfClosed();
|
|
10255
|
+
if (!_this.isStopped) {
|
|
10256
|
+
if (!_this.currentObservers) {
|
|
10257
|
+
_this.currentObservers = Array.from(_this.observers);
|
|
10258
|
+
}
|
|
10259
|
+
try {
|
|
10260
|
+
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
10261
|
+
var observer2 = _c.value;
|
|
10262
|
+
observer2.next(value6);
|
|
10263
|
+
}
|
|
10264
|
+
} catch (e_1_1) {
|
|
10265
|
+
e_1 = { error: e_1_1 };
|
|
10266
|
+
} finally {
|
|
10267
|
+
try {
|
|
10268
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
10269
|
+
_a.call(_b);
|
|
10270
|
+
} finally {
|
|
10271
|
+
if (e_1)
|
|
10272
|
+
throw e_1.error;
|
|
10273
|
+
}
|
|
10274
|
+
}
|
|
10275
|
+
}
|
|
10276
|
+
});
|
|
10277
|
+
};
|
|
10278
|
+
Subject2.prototype.error = function(err) {
|
|
10279
|
+
var _this = this;
|
|
10280
|
+
errorContext(function() {
|
|
10281
|
+
_this._throwIfClosed();
|
|
10282
|
+
if (!_this.isStopped) {
|
|
10283
|
+
_this.hasError = _this.isStopped = true;
|
|
10284
|
+
_this.thrownError = err;
|
|
10285
|
+
var observers = _this.observers;
|
|
10286
|
+
while (observers.length) {
|
|
10287
|
+
observers.shift().error(err);
|
|
10288
|
+
}
|
|
10289
|
+
}
|
|
10290
|
+
});
|
|
10291
|
+
};
|
|
10292
|
+
Subject2.prototype.complete = function() {
|
|
10293
|
+
var _this = this;
|
|
10294
|
+
errorContext(function() {
|
|
10295
|
+
_this._throwIfClosed();
|
|
10296
|
+
if (!_this.isStopped) {
|
|
10297
|
+
_this.isStopped = true;
|
|
10298
|
+
var observers = _this.observers;
|
|
10299
|
+
while (observers.length) {
|
|
10300
|
+
observers.shift().complete();
|
|
10301
|
+
}
|
|
10302
|
+
}
|
|
10303
|
+
});
|
|
10304
|
+
};
|
|
10305
|
+
Subject2.prototype.unsubscribe = function() {
|
|
10306
|
+
this.isStopped = this.closed = true;
|
|
10307
|
+
this.observers = this.currentObservers = null;
|
|
10308
|
+
};
|
|
10309
|
+
Object.defineProperty(Subject2.prototype, "observed", {
|
|
10310
|
+
get: function() {
|
|
10311
|
+
var _a;
|
|
10312
|
+
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
10313
|
+
},
|
|
10314
|
+
enumerable: false,
|
|
10315
|
+
configurable: true
|
|
10316
|
+
});
|
|
10317
|
+
Subject2.prototype._trySubscribe = function(subscriber3) {
|
|
10318
|
+
this._throwIfClosed();
|
|
10319
|
+
return _super.prototype._trySubscribe.call(this, subscriber3);
|
|
10320
|
+
};
|
|
10321
|
+
Subject2.prototype._subscribe = function(subscriber3) {
|
|
10322
|
+
this._throwIfClosed();
|
|
10323
|
+
this._checkFinalizedStatuses(subscriber3);
|
|
10324
|
+
return this._innerSubscribe(subscriber3);
|
|
10325
|
+
};
|
|
10326
|
+
Subject2.prototype._innerSubscribe = function(subscriber3) {
|
|
10327
|
+
var _this = this;
|
|
10328
|
+
var _a = this, hasError2 = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
10329
|
+
if (hasError2 || isStopped) {
|
|
10330
|
+
return EMPTY_SUBSCRIPTION;
|
|
10331
|
+
}
|
|
10332
|
+
this.currentObservers = null;
|
|
10333
|
+
observers.push(subscriber3);
|
|
10334
|
+
return new Subscription(function() {
|
|
10335
|
+
_this.currentObservers = null;
|
|
10336
|
+
arrRemove(observers, subscriber3);
|
|
10337
|
+
});
|
|
10338
|
+
};
|
|
10339
|
+
Subject2.prototype._checkFinalizedStatuses = function(subscriber3) {
|
|
10340
|
+
var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
10341
|
+
if (hasError2) {
|
|
10342
|
+
subscriber3.error(thrownError);
|
|
10343
|
+
} else if (isStopped) {
|
|
10344
|
+
subscriber3.complete();
|
|
10345
|
+
}
|
|
10346
|
+
};
|
|
10347
|
+
Subject2.prototype.asObservable = function() {
|
|
10348
|
+
var observable2 = new Observable();
|
|
10349
|
+
observable2.source = this;
|
|
10350
|
+
return observable2;
|
|
10351
|
+
};
|
|
10352
|
+
Subject2.create = function(destination2, source8) {
|
|
10353
|
+
return new AnonymousSubject(destination2, source8);
|
|
10354
|
+
};
|
|
10355
|
+
return Subject2;
|
|
10356
|
+
}(Observable);
|
|
10357
|
+
var AnonymousSubject = function(_super) {
|
|
10358
|
+
__extends(AnonymousSubject2, _super);
|
|
10359
|
+
function AnonymousSubject2(destination2, source8) {
|
|
10360
|
+
var _this = _super.call(this) || this;
|
|
10361
|
+
_this.destination = destination2;
|
|
10362
|
+
_this.source = source8;
|
|
10363
|
+
return _this;
|
|
10364
|
+
}
|
|
10365
|
+
AnonymousSubject2.prototype.next = function(value6) {
|
|
10366
|
+
var _a, _b;
|
|
10367
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value6);
|
|
10368
|
+
};
|
|
10369
|
+
AnonymousSubject2.prototype.error = function(err) {
|
|
10370
|
+
var _a, _b;
|
|
10371
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
10372
|
+
};
|
|
10373
|
+
AnonymousSubject2.prototype.complete = function() {
|
|
10374
|
+
var _a, _b;
|
|
10375
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
10376
|
+
};
|
|
10377
|
+
AnonymousSubject2.prototype._subscribe = function(subscriber3) {
|
|
10378
|
+
var _a, _b;
|
|
10379
|
+
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
10380
|
+
};
|
|
10381
|
+
return AnonymousSubject2;
|
|
10382
|
+
}(Subject);
|
|
10383
|
+
|
|
10384
|
+
// ../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js
|
|
10385
|
+
var BehaviorSubject = function(_super) {
|
|
10386
|
+
__extends(BehaviorSubject3, _super);
|
|
10387
|
+
function BehaviorSubject3(_value2) {
|
|
10388
|
+
var _this = _super.call(this) || this;
|
|
10389
|
+
_this._value = _value2;
|
|
10390
|
+
return _this;
|
|
10391
|
+
}
|
|
10392
|
+
Object.defineProperty(BehaviorSubject3.prototype, "value", {
|
|
10393
|
+
get: function() {
|
|
10394
|
+
return this.getValue();
|
|
10395
|
+
},
|
|
10396
|
+
enumerable: false,
|
|
10397
|
+
configurable: true
|
|
10398
|
+
});
|
|
10399
|
+
BehaviorSubject3.prototype._subscribe = function(subscriber3) {
|
|
10400
|
+
var subscription2 = _super.prototype._subscribe.call(this, subscriber3);
|
|
10401
|
+
!subscription2.closed && subscriber3.next(this._value);
|
|
10402
|
+
return subscription2;
|
|
10403
|
+
};
|
|
10404
|
+
BehaviorSubject3.prototype.getValue = function() {
|
|
10405
|
+
var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, _value2 = _a._value;
|
|
10406
|
+
if (hasError2) {
|
|
10407
|
+
throw thrownError;
|
|
10408
|
+
}
|
|
10409
|
+
this._throwIfClosed();
|
|
10410
|
+
return _value2;
|
|
10411
|
+
};
|
|
10412
|
+
BehaviorSubject3.prototype.next = function(value6) {
|
|
10413
|
+
_super.prototype.next.call(this, this._value = value6);
|
|
10414
|
+
};
|
|
10415
|
+
return BehaviorSubject3;
|
|
10416
|
+
}(Subject);
|
|
10417
|
+
|
|
10418
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/empty.js
|
|
10419
|
+
var EMPTY = new Observable(function(subscriber3) {
|
|
10420
|
+
return subscriber3.complete();
|
|
10421
|
+
});
|
|
10422
|
+
|
|
10423
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
|
|
10424
|
+
function isScheduler(value6) {
|
|
10425
|
+
return value6 && isFunction(value6.schedule);
|
|
10426
|
+
}
|
|
10427
|
+
|
|
10428
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/args.js
|
|
10429
|
+
function last(arr) {
|
|
10430
|
+
return arr[arr.length - 1];
|
|
10431
|
+
}
|
|
10432
|
+
function popScheduler(args) {
|
|
10433
|
+
return isScheduler(last(args)) ? args.pop() : void 0;
|
|
10434
|
+
}
|
|
10435
|
+
function popNumber(args, defaultValue4) {
|
|
10436
|
+
return typeof last(args) === "number" ? args.pop() : defaultValue4;
|
|
10437
|
+
}
|
|
10438
|
+
|
|
10439
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
|
|
10440
|
+
var isArrayLike = function(x) {
|
|
10441
|
+
return x && typeof x.length === "number" && typeof x !== "function";
|
|
10442
|
+
};
|
|
10443
|
+
|
|
10444
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isPromise.js
|
|
10445
|
+
function isPromise(value6) {
|
|
10446
|
+
return isFunction(value6 === null || value6 === void 0 ? void 0 : value6.then);
|
|
10447
|
+
}
|
|
10448
|
+
|
|
10449
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
|
|
10450
|
+
function isInteropObservable(input2) {
|
|
10451
|
+
return isFunction(input2[observable]);
|
|
10452
|
+
}
|
|
10453
|
+
|
|
10454
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
|
|
10455
|
+
function isAsyncIterable(obj) {
|
|
10456
|
+
return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
10457
|
+
}
|
|
10458
|
+
|
|
10459
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
|
|
10460
|
+
function createInvalidObservableTypeError(input2) {
|
|
10461
|
+
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.");
|
|
10462
|
+
}
|
|
10463
|
+
|
|
10464
|
+
// ../node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
|
|
10465
|
+
function getSymbolIterator() {
|
|
10466
|
+
if (typeof Symbol !== "function" || !Symbol.iterator) {
|
|
10467
|
+
return "@@iterator";
|
|
10468
|
+
}
|
|
10469
|
+
return Symbol.iterator;
|
|
10470
|
+
}
|
|
10471
|
+
var iterator = getSymbolIterator();
|
|
10472
|
+
|
|
10473
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isIterable.js
|
|
10474
|
+
function isIterable(input2) {
|
|
10475
|
+
return isFunction(input2 === null || input2 === void 0 ? void 0 : input2[iterator]);
|
|
10476
|
+
}
|
|
10477
|
+
|
|
10478
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
10479
|
+
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
10480
|
+
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
10481
|
+
var reader, _a, value6, done;
|
|
10482
|
+
return __generator(this, function(_b) {
|
|
10483
|
+
switch (_b.label) {
|
|
10484
|
+
case 0:
|
|
10485
|
+
reader = readableStream.getReader();
|
|
10486
|
+
_b.label = 1;
|
|
10487
|
+
case 1:
|
|
10488
|
+
_b.trys.push([1, , 9, 10]);
|
|
10489
|
+
_b.label = 2;
|
|
10490
|
+
case 2:
|
|
10491
|
+
if (false)
|
|
10492
|
+
return [3, 8];
|
|
10493
|
+
return [4, __await(reader.read())];
|
|
10494
|
+
case 3:
|
|
10495
|
+
_a = _b.sent(), value6 = _a.value, done = _a.done;
|
|
10496
|
+
if (!done)
|
|
10497
|
+
return [3, 5];
|
|
10498
|
+
return [4, __await(void 0)];
|
|
10499
|
+
case 4:
|
|
10500
|
+
return [2, _b.sent()];
|
|
10501
|
+
case 5:
|
|
10502
|
+
return [4, __await(value6)];
|
|
10503
|
+
case 6:
|
|
10504
|
+
return [4, _b.sent()];
|
|
10505
|
+
case 7:
|
|
10506
|
+
_b.sent();
|
|
10507
|
+
return [3, 2];
|
|
10508
|
+
case 8:
|
|
10509
|
+
return [3, 10];
|
|
10510
|
+
case 9:
|
|
10511
|
+
reader.releaseLock();
|
|
10512
|
+
return [7];
|
|
10513
|
+
case 10:
|
|
10514
|
+
return [2];
|
|
10515
|
+
}
|
|
10516
|
+
});
|
|
10517
|
+
});
|
|
10518
|
+
}
|
|
10519
|
+
function isReadableStreamLike(obj) {
|
|
10520
|
+
return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
|
|
10521
|
+
}
|
|
10522
|
+
|
|
10523
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
|
|
10524
|
+
function innerFrom(input2) {
|
|
10525
|
+
if (input2 instanceof Observable) {
|
|
10526
|
+
return input2;
|
|
10527
|
+
}
|
|
10528
|
+
if (input2 != null) {
|
|
10529
|
+
if (isInteropObservable(input2)) {
|
|
10530
|
+
return fromInteropObservable(input2);
|
|
10531
|
+
}
|
|
10532
|
+
if (isArrayLike(input2)) {
|
|
10533
|
+
return fromArrayLike(input2);
|
|
10534
|
+
}
|
|
10535
|
+
if (isPromise(input2)) {
|
|
10536
|
+
return fromPromise(input2);
|
|
10537
|
+
}
|
|
10538
|
+
if (isAsyncIterable(input2)) {
|
|
10539
|
+
return fromAsyncIterable(input2);
|
|
10540
|
+
}
|
|
10541
|
+
if (isIterable(input2)) {
|
|
10542
|
+
return fromIterable(input2);
|
|
10543
|
+
}
|
|
10544
|
+
if (isReadableStreamLike(input2)) {
|
|
10545
|
+
return fromReadableStreamLike(input2);
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10548
|
+
throw createInvalidObservableTypeError(input2);
|
|
10549
|
+
}
|
|
10550
|
+
function fromInteropObservable(obj) {
|
|
10551
|
+
return new Observable(function(subscriber3) {
|
|
10552
|
+
var obs = obj[observable]();
|
|
10553
|
+
if (isFunction(obs.subscribe)) {
|
|
10554
|
+
return obs.subscribe(subscriber3);
|
|
10555
|
+
}
|
|
10556
|
+
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
10557
|
+
});
|
|
10558
|
+
}
|
|
10559
|
+
function fromArrayLike(array) {
|
|
10560
|
+
return new Observable(function(subscriber3) {
|
|
10561
|
+
for (var i = 0; i < array.length && !subscriber3.closed; i++) {
|
|
10562
|
+
subscriber3.next(array[i]);
|
|
10563
|
+
}
|
|
10564
|
+
subscriber3.complete();
|
|
10565
|
+
});
|
|
10566
|
+
}
|
|
10567
|
+
function fromPromise(promise) {
|
|
10568
|
+
return new Observable(function(subscriber3) {
|
|
10569
|
+
promise.then(function(value6) {
|
|
10570
|
+
if (!subscriber3.closed) {
|
|
10571
|
+
subscriber3.next(value6);
|
|
10572
|
+
subscriber3.complete();
|
|
10573
|
+
}
|
|
10574
|
+
}, function(err) {
|
|
10575
|
+
return subscriber3.error(err);
|
|
10576
|
+
}).then(null, reportUnhandledError);
|
|
10577
|
+
});
|
|
10578
|
+
}
|
|
10579
|
+
function fromIterable(iterable) {
|
|
10580
|
+
return new Observable(function(subscriber3) {
|
|
10581
|
+
var e_1, _a;
|
|
10582
|
+
try {
|
|
10583
|
+
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
10584
|
+
var value6 = iterable_1_1.value;
|
|
10585
|
+
subscriber3.next(value6);
|
|
10586
|
+
if (subscriber3.closed) {
|
|
10587
|
+
return;
|
|
10588
|
+
}
|
|
10589
|
+
}
|
|
10590
|
+
} catch (e_1_1) {
|
|
10591
|
+
e_1 = { error: e_1_1 };
|
|
10592
|
+
} finally {
|
|
10593
|
+
try {
|
|
10594
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
|
|
10595
|
+
_a.call(iterable_1);
|
|
10596
|
+
} finally {
|
|
10597
|
+
if (e_1)
|
|
10598
|
+
throw e_1.error;
|
|
10599
|
+
}
|
|
10600
|
+
}
|
|
10601
|
+
subscriber3.complete();
|
|
10602
|
+
});
|
|
10603
|
+
}
|
|
10604
|
+
function fromAsyncIterable(asyncIterable) {
|
|
10605
|
+
return new Observable(function(subscriber3) {
|
|
10606
|
+
process(asyncIterable, subscriber3).catch(function(err) {
|
|
10607
|
+
return subscriber3.error(err);
|
|
10608
|
+
});
|
|
10609
|
+
});
|
|
10610
|
+
}
|
|
10611
|
+
function fromReadableStreamLike(readableStream) {
|
|
10612
|
+
return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
|
|
10613
|
+
}
|
|
10614
|
+
function process(asyncIterable, subscriber3) {
|
|
10615
|
+
var asyncIterable_1, asyncIterable_1_1;
|
|
10616
|
+
var e_2, _a;
|
|
10617
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
10618
|
+
var value6, e_2_1;
|
|
10619
|
+
return __generator(this, function(_b) {
|
|
10620
|
+
switch (_b.label) {
|
|
10621
|
+
case 0:
|
|
10622
|
+
_b.trys.push([0, 5, 6, 11]);
|
|
10623
|
+
asyncIterable_1 = __asyncValues(asyncIterable);
|
|
10624
|
+
_b.label = 1;
|
|
10625
|
+
case 1:
|
|
10626
|
+
return [4, asyncIterable_1.next()];
|
|
10627
|
+
case 2:
|
|
10628
|
+
if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
|
|
10629
|
+
return [3, 4];
|
|
10630
|
+
value6 = asyncIterable_1_1.value;
|
|
10631
|
+
subscriber3.next(value6);
|
|
10632
|
+
if (subscriber3.closed) {
|
|
10633
|
+
return [2];
|
|
10634
|
+
}
|
|
10635
|
+
_b.label = 3;
|
|
10636
|
+
case 3:
|
|
10637
|
+
return [3, 1];
|
|
10638
|
+
case 4:
|
|
10639
|
+
return [3, 11];
|
|
10640
|
+
case 5:
|
|
10641
|
+
e_2_1 = _b.sent();
|
|
10642
|
+
e_2 = { error: e_2_1 };
|
|
10643
|
+
return [3, 11];
|
|
10644
|
+
case 6:
|
|
10645
|
+
_b.trys.push([6, , 9, 10]);
|
|
10646
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
|
|
10647
|
+
return [3, 8];
|
|
10648
|
+
return [4, _a.call(asyncIterable_1)];
|
|
10649
|
+
case 7:
|
|
10650
|
+
_b.sent();
|
|
10651
|
+
_b.label = 8;
|
|
10652
|
+
case 8:
|
|
10653
|
+
return [3, 10];
|
|
10654
|
+
case 9:
|
|
10655
|
+
if (e_2)
|
|
10656
|
+
throw e_2.error;
|
|
10657
|
+
return [7];
|
|
10658
|
+
case 10:
|
|
10659
|
+
return [7];
|
|
10660
|
+
case 11:
|
|
10661
|
+
subscriber3.complete();
|
|
10662
|
+
return [2];
|
|
10663
|
+
}
|
|
10664
|
+
});
|
|
10665
|
+
});
|
|
10666
|
+
}
|
|
10667
|
+
|
|
10668
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
|
|
10669
|
+
function executeSchedule(parentSubscription, scheduler, work, delay, repeat3) {
|
|
10670
|
+
if (delay === void 0) {
|
|
10671
|
+
delay = 0;
|
|
10672
|
+
}
|
|
10673
|
+
if (repeat3 === void 0) {
|
|
10674
|
+
repeat3 = false;
|
|
10675
|
+
}
|
|
10676
|
+
var scheduleSubscription = scheduler.schedule(function() {
|
|
10677
|
+
work();
|
|
10678
|
+
if (repeat3) {
|
|
10679
|
+
parentSubscription.add(this.schedule(null, delay));
|
|
10680
|
+
} else {
|
|
10681
|
+
this.unsubscribe();
|
|
10682
|
+
}
|
|
10683
|
+
}, delay);
|
|
10684
|
+
parentSubscription.add(scheduleSubscription);
|
|
10685
|
+
if (!repeat3) {
|
|
10686
|
+
return scheduleSubscription;
|
|
10687
|
+
}
|
|
10688
|
+
}
|
|
10689
|
+
|
|
10690
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
|
|
10691
|
+
function observeOn(scheduler, delay) {
|
|
10692
|
+
if (delay === void 0) {
|
|
10693
|
+
delay = 0;
|
|
10694
|
+
}
|
|
10695
|
+
return operate(function(source8, subscriber3) {
|
|
10696
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
|
|
10697
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
10698
|
+
return subscriber3.next(value6);
|
|
10699
|
+
}, delay);
|
|
10700
|
+
}, function() {
|
|
10701
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
10702
|
+
return subscriber3.complete();
|
|
10703
|
+
}, delay);
|
|
10704
|
+
}, function(err) {
|
|
10705
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
10706
|
+
return subscriber3.error(err);
|
|
10707
|
+
}, delay);
|
|
10708
|
+
}));
|
|
10709
|
+
});
|
|
10710
|
+
}
|
|
10711
|
+
|
|
10712
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
|
|
10713
|
+
function subscribeOn(scheduler, delay) {
|
|
10714
|
+
if (delay === void 0) {
|
|
10715
|
+
delay = 0;
|
|
10716
|
+
}
|
|
10717
|
+
return operate(function(source8, subscriber3) {
|
|
10718
|
+
subscriber3.add(scheduler.schedule(function() {
|
|
10719
|
+
return source8.subscribe(subscriber3);
|
|
10720
|
+
}, delay));
|
|
10721
|
+
});
|
|
10722
|
+
}
|
|
10723
|
+
|
|
10724
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
|
|
10725
|
+
function scheduleObservable(input2, scheduler) {
|
|
10726
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
10727
|
+
}
|
|
10728
|
+
|
|
10729
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
|
|
10730
|
+
function schedulePromise(input2, scheduler) {
|
|
10731
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
10732
|
+
}
|
|
10733
|
+
|
|
10734
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
|
|
10735
|
+
function scheduleArray(input2, scheduler) {
|
|
10736
|
+
return new Observable(function(subscriber3) {
|
|
10737
|
+
var i = 0;
|
|
10738
|
+
return scheduler.schedule(function() {
|
|
10739
|
+
if (i === input2.length) {
|
|
10740
|
+
subscriber3.complete();
|
|
10741
|
+
} else {
|
|
10742
|
+
subscriber3.next(input2[i++]);
|
|
10743
|
+
if (!subscriber3.closed) {
|
|
10744
|
+
this.schedule();
|
|
10745
|
+
}
|
|
10746
|
+
}
|
|
10747
|
+
});
|
|
10748
|
+
});
|
|
10749
|
+
}
|
|
10750
|
+
|
|
10751
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
|
|
10752
|
+
function scheduleIterable(input2, scheduler) {
|
|
10753
|
+
return new Observable(function(subscriber3) {
|
|
10754
|
+
var iterator2;
|
|
10755
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
10756
|
+
iterator2 = input2[iterator]();
|
|
10757
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
10758
|
+
var _a;
|
|
10759
|
+
var value6;
|
|
10760
|
+
var done;
|
|
10761
|
+
try {
|
|
10762
|
+
_a = iterator2.next(), value6 = _a.value, done = _a.done;
|
|
10763
|
+
} catch (err) {
|
|
10764
|
+
subscriber3.error(err);
|
|
10765
|
+
return;
|
|
10766
|
+
}
|
|
10767
|
+
if (done) {
|
|
10768
|
+
subscriber3.complete();
|
|
10769
|
+
} else {
|
|
10770
|
+
subscriber3.next(value6);
|
|
10771
|
+
}
|
|
10772
|
+
}, 0, true);
|
|
10773
|
+
});
|
|
10774
|
+
return function() {
|
|
10775
|
+
return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
|
|
10776
|
+
};
|
|
10777
|
+
});
|
|
10778
|
+
}
|
|
10779
|
+
|
|
10780
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
|
|
10781
|
+
function scheduleAsyncIterable(input2, scheduler) {
|
|
10782
|
+
if (!input2) {
|
|
10783
|
+
throw new Error("Iterable cannot be null");
|
|
10784
|
+
}
|
|
10785
|
+
return new Observable(function(subscriber3) {
|
|
10786
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
10787
|
+
var iterator2 = input2[Symbol.asyncIterator]();
|
|
10788
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
10789
|
+
iterator2.next().then(function(result5) {
|
|
10790
|
+
if (result5.done) {
|
|
10791
|
+
subscriber3.complete();
|
|
10792
|
+
} else {
|
|
10793
|
+
subscriber3.next(result5.value);
|
|
10794
|
+
}
|
|
10795
|
+
});
|
|
10796
|
+
}, 0, true);
|
|
10797
|
+
});
|
|
10798
|
+
});
|
|
10799
|
+
}
|
|
10800
|
+
|
|
10801
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
|
|
10802
|
+
function scheduleReadableStreamLike(input2, scheduler) {
|
|
10803
|
+
return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input2), scheduler);
|
|
10804
|
+
}
|
|
10805
|
+
|
|
10806
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
|
|
10807
|
+
function scheduled(input2, scheduler) {
|
|
10808
|
+
if (input2 != null) {
|
|
10809
|
+
if (isInteropObservable(input2)) {
|
|
10810
|
+
return scheduleObservable(input2, scheduler);
|
|
10811
|
+
}
|
|
10812
|
+
if (isArrayLike(input2)) {
|
|
10813
|
+
return scheduleArray(input2, scheduler);
|
|
10814
|
+
}
|
|
10815
|
+
if (isPromise(input2)) {
|
|
10816
|
+
return schedulePromise(input2, scheduler);
|
|
10817
|
+
}
|
|
10818
|
+
if (isAsyncIterable(input2)) {
|
|
10819
|
+
return scheduleAsyncIterable(input2, scheduler);
|
|
10820
|
+
}
|
|
10821
|
+
if (isIterable(input2)) {
|
|
10822
|
+
return scheduleIterable(input2, scheduler);
|
|
10823
|
+
}
|
|
10824
|
+
if (isReadableStreamLike(input2)) {
|
|
10825
|
+
return scheduleReadableStreamLike(input2, scheduler);
|
|
10826
|
+
}
|
|
10827
|
+
}
|
|
10828
|
+
throw createInvalidObservableTypeError(input2);
|
|
10829
|
+
}
|
|
10830
|
+
|
|
10831
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/from.js
|
|
10832
|
+
function from(input2, scheduler) {
|
|
10833
|
+
return scheduler ? scheduled(input2, scheduler) : innerFrom(input2);
|
|
10834
|
+
}
|
|
10835
|
+
|
|
10836
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/map.js
|
|
10837
|
+
function map(project, thisArg) {
|
|
10838
|
+
return operate(function(source8, subscriber3) {
|
|
10839
|
+
var index2 = 0;
|
|
10840
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
|
|
10841
|
+
subscriber3.next(project.call(thisArg, value6, index2++));
|
|
10842
|
+
}));
|
|
10843
|
+
});
|
|
10844
|
+
}
|
|
10845
|
+
|
|
10846
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
|
|
10847
|
+
var isArray = Array.isArray;
|
|
10848
|
+
function callOrApply(fn2, args) {
|
|
10849
|
+
return isArray(args) ? fn2.apply(void 0, __spreadArray([], __read(args))) : fn2(args);
|
|
10850
|
+
}
|
|
10851
|
+
function mapOneOrManyArgs(fn2) {
|
|
10852
|
+
return map(function(args) {
|
|
10853
|
+
return callOrApply(fn2, args);
|
|
10854
|
+
});
|
|
10855
|
+
}
|
|
10856
|
+
|
|
10857
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
|
|
10858
|
+
function mergeInternals(source8, subscriber3, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
10859
|
+
var buffer = [];
|
|
10860
|
+
var active2 = 0;
|
|
10861
|
+
var index2 = 0;
|
|
10862
|
+
var isComplete = false;
|
|
10863
|
+
var checkComplete = function() {
|
|
10864
|
+
if (isComplete && !buffer.length && !active2) {
|
|
10865
|
+
subscriber3.complete();
|
|
10866
|
+
}
|
|
10867
|
+
};
|
|
10868
|
+
var outerNext = function(value6) {
|
|
10869
|
+
return active2 < concurrent ? doInnerSub(value6) : buffer.push(value6);
|
|
10870
|
+
};
|
|
10871
|
+
var doInnerSub = function(value6) {
|
|
10872
|
+
expand && subscriber3.next(value6);
|
|
10873
|
+
active2++;
|
|
10874
|
+
var innerComplete = false;
|
|
10875
|
+
innerFrom(project(value6, index2++)).subscribe(createOperatorSubscriber(subscriber3, function(innerValue) {
|
|
10876
|
+
onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
|
|
10877
|
+
if (expand) {
|
|
10878
|
+
outerNext(innerValue);
|
|
10879
|
+
} else {
|
|
10880
|
+
subscriber3.next(innerValue);
|
|
10881
|
+
}
|
|
10882
|
+
}, function() {
|
|
10883
|
+
innerComplete = true;
|
|
10884
|
+
}, void 0, function() {
|
|
10885
|
+
if (innerComplete) {
|
|
10886
|
+
try {
|
|
10887
|
+
active2--;
|
|
10888
|
+
var _loop_1 = function() {
|
|
10889
|
+
var bufferedValue = buffer.shift();
|
|
10890
|
+
if (innerSubScheduler) {
|
|
10891
|
+
executeSchedule(subscriber3, innerSubScheduler, function() {
|
|
10892
|
+
return doInnerSub(bufferedValue);
|
|
10893
|
+
});
|
|
10894
|
+
} else {
|
|
10895
|
+
doInnerSub(bufferedValue);
|
|
10896
|
+
}
|
|
10897
|
+
};
|
|
10898
|
+
while (buffer.length && active2 < concurrent) {
|
|
10899
|
+
_loop_1();
|
|
10900
|
+
}
|
|
10901
|
+
checkComplete();
|
|
10902
|
+
} catch (err) {
|
|
10903
|
+
subscriber3.error(err);
|
|
10904
|
+
}
|
|
10905
|
+
}
|
|
10906
|
+
}));
|
|
10907
|
+
};
|
|
10908
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, outerNext, function() {
|
|
10909
|
+
isComplete = true;
|
|
10910
|
+
checkComplete();
|
|
10911
|
+
}));
|
|
10912
|
+
return function() {
|
|
10913
|
+
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
10914
|
+
};
|
|
10915
|
+
}
|
|
10916
|
+
|
|
10917
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
|
|
10918
|
+
function mergeMap(project, resultSelector, concurrent) {
|
|
10919
|
+
if (concurrent === void 0) {
|
|
10920
|
+
concurrent = Infinity;
|
|
10921
|
+
}
|
|
10922
|
+
if (isFunction(resultSelector)) {
|
|
10923
|
+
return mergeMap(function(a, i) {
|
|
10924
|
+
return map(function(b, ii) {
|
|
10925
|
+
return resultSelector(a, b, i, ii);
|
|
10926
|
+
})(innerFrom(project(a, i)));
|
|
10927
|
+
}, concurrent);
|
|
10928
|
+
} else if (typeof resultSelector === "number") {
|
|
10929
|
+
concurrent = resultSelector;
|
|
10930
|
+
}
|
|
10931
|
+
return operate(function(source8, subscriber3) {
|
|
10932
|
+
return mergeInternals(source8, subscriber3, project, concurrent);
|
|
10933
|
+
});
|
|
10934
|
+
}
|
|
10935
|
+
|
|
10936
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
|
|
10937
|
+
function mergeAll(concurrent) {
|
|
10938
|
+
if (concurrent === void 0) {
|
|
10939
|
+
concurrent = Infinity;
|
|
10940
|
+
}
|
|
10941
|
+
return mergeMap(identity, concurrent);
|
|
10942
|
+
}
|
|
10943
|
+
|
|
10944
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
|
|
10945
|
+
var nodeEventEmitterMethods = ["addListener", "removeListener"];
|
|
10946
|
+
var eventTargetMethods = ["addEventListener", "removeEventListener"];
|
|
10947
|
+
var jqueryMethods = ["on", "off"];
|
|
10948
|
+
function fromEvent(target5, eventName, options, resultSelector) {
|
|
10949
|
+
if (isFunction(options)) {
|
|
10950
|
+
resultSelector = options;
|
|
10951
|
+
options = void 0;
|
|
10952
|
+
}
|
|
10953
|
+
if (resultSelector) {
|
|
10954
|
+
return fromEvent(target5, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
10955
|
+
}
|
|
10956
|
+
var _a = __read(isEventTarget(target5) ? eventTargetMethods.map(function(methodName) {
|
|
10957
|
+
return function(handler) {
|
|
10958
|
+
return target5[methodName](eventName, handler, options);
|
|
10959
|
+
};
|
|
10960
|
+
}) : isNodeStyleEventEmitter(target5) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target5, eventName)) : isJQueryStyleEventEmitter(target5) ? jqueryMethods.map(toCommonHandlerRegistry(target5, eventName)) : [], 2), add2 = _a[0], remove = _a[1];
|
|
10961
|
+
if (!add2) {
|
|
10962
|
+
if (isArrayLike(target5)) {
|
|
10963
|
+
return mergeMap(function(subTarget) {
|
|
10964
|
+
return fromEvent(subTarget, eventName, options);
|
|
10965
|
+
})(innerFrom(target5));
|
|
10966
|
+
}
|
|
10967
|
+
}
|
|
10968
|
+
if (!add2) {
|
|
10969
|
+
throw new TypeError("Invalid event target");
|
|
10970
|
+
}
|
|
10971
|
+
return new Observable(function(subscriber3) {
|
|
10972
|
+
var handler = function() {
|
|
10973
|
+
var args = [];
|
|
10974
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10975
|
+
args[_i] = arguments[_i];
|
|
10976
|
+
}
|
|
10977
|
+
return subscriber3.next(1 < args.length ? args : args[0]);
|
|
10978
|
+
};
|
|
10979
|
+
add2(handler);
|
|
10980
|
+
return function() {
|
|
10981
|
+
return remove(handler);
|
|
10982
|
+
};
|
|
10983
|
+
});
|
|
10984
|
+
}
|
|
10985
|
+
function toCommonHandlerRegistry(target5, eventName) {
|
|
10986
|
+
return function(methodName) {
|
|
10987
|
+
return function(handler) {
|
|
10988
|
+
return target5[methodName](eventName, handler);
|
|
10989
|
+
};
|
|
10990
|
+
};
|
|
10991
|
+
}
|
|
10992
|
+
function isNodeStyleEventEmitter(target5) {
|
|
10993
|
+
return isFunction(target5.addListener) && isFunction(target5.removeListener);
|
|
10994
|
+
}
|
|
10995
|
+
function isJQueryStyleEventEmitter(target5) {
|
|
10996
|
+
return isFunction(target5.on) && isFunction(target5.off);
|
|
10997
|
+
}
|
|
10998
|
+
function isEventTarget(target5) {
|
|
10999
|
+
return isFunction(target5.addEventListener) && isFunction(target5.removeEventListener);
|
|
11000
|
+
}
|
|
11001
|
+
|
|
11002
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/merge.js
|
|
11003
|
+
function merge() {
|
|
11004
|
+
var args = [];
|
|
11005
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
11006
|
+
args[_i] = arguments[_i];
|
|
11007
|
+
}
|
|
11008
|
+
var scheduler = popScheduler(args);
|
|
11009
|
+
var concurrent = popNumber(args, Infinity);
|
|
11010
|
+
var sources = args;
|
|
11011
|
+
return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));
|
|
11012
|
+
}
|
|
11013
|
+
|
|
11014
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/tap.js
|
|
11015
|
+
function tap(observerOrNext, error4, complete2) {
|
|
11016
|
+
var tapObserver = isFunction(observerOrNext) || error4 || complete2 ? { next: observerOrNext, error: error4, complete: complete2 } : observerOrNext;
|
|
11017
|
+
return tapObserver ? operate(function(source8, subscriber3) {
|
|
11018
|
+
var _a;
|
|
11019
|
+
(_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
|
11020
|
+
var isUnsub = true;
|
|
11021
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
|
|
11022
|
+
var _a2;
|
|
11023
|
+
(_a2 = tapObserver.next) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, value6);
|
|
11024
|
+
subscriber3.next(value6);
|
|
11025
|
+
}, function() {
|
|
11026
|
+
var _a2;
|
|
11027
|
+
isUnsub = false;
|
|
11028
|
+
(_a2 = tapObserver.complete) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
|
|
11029
|
+
subscriber3.complete();
|
|
11030
|
+
}, function(err) {
|
|
11031
|
+
var _a2;
|
|
11032
|
+
isUnsub = false;
|
|
11033
|
+
(_a2 = tapObserver.error) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, err);
|
|
11034
|
+
subscriber3.error(err);
|
|
11035
|
+
}, function() {
|
|
11036
|
+
var _a2, _b;
|
|
11037
|
+
if (isUnsub) {
|
|
11038
|
+
(_a2 = tapObserver.unsubscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
|
|
11039
|
+
}
|
|
11040
|
+
(_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
|
|
11041
|
+
}));
|
|
11042
|
+
}) : identity;
|
|
11043
|
+
}
|
|
11044
|
+
|
|
9377
11045
|
// ../node_modules/@inrupt/solid-client-authn-core/dist/index.mjs
|
|
9378
11046
|
var import_events = __toESM(require_events(), 1);
|
|
9379
11047
|
|
|
@@ -9548,8 +11216,8 @@ function checkUsage(key3, usages) {
|
|
|
9548
11216
|
if (usages.length && !usages.some((expected) => key3.usages.includes(expected))) {
|
|
9549
11217
|
let msg = "CryptoKey does not support this operation, its usages must include ";
|
|
9550
11218
|
if (usages.length > 2) {
|
|
9551
|
-
const
|
|
9552
|
-
msg += `one of ${usages.join(", ")}, or ${
|
|
11219
|
+
const last3 = usages.pop();
|
|
11220
|
+
msg += `one of ${usages.join(", ")}, or ${last3}.`;
|
|
9553
11221
|
} else if (usages.length === 2) {
|
|
9554
11222
|
msg += `one of ${usages[0]} or ${usages[1]}.`;
|
|
9555
11223
|
} else {
|
|
@@ -9619,8 +11287,8 @@ function checkSigCryptoKey(key3, alg, ...usages) {
|
|
|
9619
11287
|
// ../node_modules/jose/dist/browser/lib/invalid_key_input.js
|
|
9620
11288
|
function message(msg, actual2, ...types2) {
|
|
9621
11289
|
if (types2.length > 2) {
|
|
9622
|
-
const
|
|
9623
|
-
msg += `one of type ${types2.join(", ")}, or ${
|
|
11290
|
+
const last3 = types2.pop();
|
|
11291
|
+
msg += `one of type ${types2.join(", ")}, or ${last3}.`;
|
|
9624
11292
|
} else if (types2.length === 2) {
|
|
9625
11293
|
msg += `one of type ${types2[0]} or ${types2[1]}.`;
|
|
9626
11294
|
} else {
|
|
@@ -10594,6 +12262,54 @@ async function generateKeyPair2(alg, options) {
|
|
|
10594
12262
|
return generateKeyPair(alg, options);
|
|
10595
12263
|
}
|
|
10596
12264
|
|
|
12265
|
+
// ../node_modules/uuid/dist/esm-browser/rng.js
|
|
12266
|
+
var getRandomValues;
|
|
12267
|
+
var rnds8 = new Uint8Array(16);
|
|
12268
|
+
function rng() {
|
|
12269
|
+
if (!getRandomValues) {
|
|
12270
|
+
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
12271
|
+
if (!getRandomValues) {
|
|
12272
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
12273
|
+
}
|
|
12274
|
+
}
|
|
12275
|
+
return getRandomValues(rnds8);
|
|
12276
|
+
}
|
|
12277
|
+
|
|
12278
|
+
// ../node_modules/uuid/dist/esm-browser/stringify.js
|
|
12279
|
+
var byteToHex = [];
|
|
12280
|
+
for (let i = 0; i < 256; ++i) {
|
|
12281
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
12282
|
+
}
|
|
12283
|
+
function unsafeStringify(arr, offset3 = 0) {
|
|
12284
|
+
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]];
|
|
12285
|
+
}
|
|
12286
|
+
|
|
12287
|
+
// ../node_modules/uuid/dist/esm-browser/native.js
|
|
12288
|
+
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
12289
|
+
var native_default = {
|
|
12290
|
+
randomUUID
|
|
12291
|
+
};
|
|
12292
|
+
|
|
12293
|
+
// ../node_modules/uuid/dist/esm-browser/v4.js
|
|
12294
|
+
function v4(options, buf, offset3) {
|
|
12295
|
+
if (native_default.randomUUID && !buf && !options) {
|
|
12296
|
+
return native_default.randomUUID();
|
|
12297
|
+
}
|
|
12298
|
+
options = options || {};
|
|
12299
|
+
const rnds = options.random || (options.rng || rng)();
|
|
12300
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
12301
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
12302
|
+
if (buf) {
|
|
12303
|
+
offset3 = offset3 || 0;
|
|
12304
|
+
for (let i = 0; i < 16; ++i) {
|
|
12305
|
+
buf[offset3 + i] = rnds[i];
|
|
12306
|
+
}
|
|
12307
|
+
return buf;
|
|
12308
|
+
}
|
|
12309
|
+
return unsafeStringify(rnds);
|
|
12310
|
+
}
|
|
12311
|
+
var v4_default = v4;
|
|
12312
|
+
|
|
10597
12313
|
// ../node_modules/@inrupt/solid-client-authn-core/dist/index.mjs
|
|
10598
12314
|
var SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
|
|
10599
12315
|
var PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
|
|
@@ -11280,7 +12996,7 @@ async function registerClient(options, issuerConfig) {
|
|
|
11280
12996
|
throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");
|
|
11281
12997
|
}
|
|
11282
12998
|
const signingAlg = determineSigningAlg(issuerConfig.idTokenSigningAlgValuesSupported, PREFERRED_SIGNING_ALG);
|
|
11283
|
-
const
|
|
12999
|
+
const config2 = {
|
|
11284
13000
|
/* eslint-disable camelcase */
|
|
11285
13001
|
client_name: options.clientName,
|
|
11286
13002
|
application_type: "web",
|
|
@@ -11297,7 +13013,7 @@ async function registerClient(options, issuerConfig) {
|
|
|
11297
13013
|
const registerResponse = await fetch(issuerConfig.registrationEndpoint.toString(), {
|
|
11298
13014
|
method: "POST",
|
|
11299
13015
|
headers,
|
|
11300
|
-
body: JSON.stringify(
|
|
13016
|
+
body: JSON.stringify(config2)
|
|
11301
13017
|
});
|
|
11302
13018
|
if (registerResponse.ok) {
|
|
11303
13019
|
const responseBody = await registerResponse.json();
|
|
@@ -11794,11 +13510,11 @@ var issuerConfigKeyMap = {
|
|
|
11794
13510
|
convertToUrl: true
|
|
11795
13511
|
}
|
|
11796
13512
|
};
|
|
11797
|
-
function processConfig(
|
|
13513
|
+
function processConfig(config2) {
|
|
11798
13514
|
const parsedConfig = {};
|
|
11799
|
-
Object.keys(
|
|
13515
|
+
Object.keys(config2).forEach((key3) => {
|
|
11800
13516
|
if (issuerConfigKeyMap[key3]) {
|
|
11801
|
-
parsedConfig[issuerConfigKeyMap[key3].toKey] =
|
|
13517
|
+
parsedConfig[issuerConfigKeyMap[key3].toKey] = config2[key3];
|
|
11802
13518
|
}
|
|
11803
13519
|
});
|
|
11804
13520
|
if (!Array.isArray(parsedConfig.scopesSupported)) {
|
|
@@ -12340,6 +14056,16 @@ var Session = class _Session extends import_events2.default {
|
|
|
12340
14056
|
}
|
|
12341
14057
|
};
|
|
12342
14058
|
|
|
14059
|
+
// src/authentication/observeSession.ts
|
|
14060
|
+
function observeSession(session4) {
|
|
14061
|
+
const sessionInfoSubject = new BehaviorSubject(session4.info);
|
|
14062
|
+
const login = fromEvent(session4.events, EVENTS.LOGIN);
|
|
14063
|
+
const logout = fromEvent(session4.events, EVENTS.LOGOUT);
|
|
14064
|
+
const sessionRestored = fromEvent(session4.events, EVENTS.SESSION_RESTORED);
|
|
14065
|
+
merge(login, logout, sessionRestored).pipe(map(() => sessionInfoSubject.next(session4.info))).subscribe();
|
|
14066
|
+
return sessionInfoSubject;
|
|
14067
|
+
}
|
|
14068
|
+
|
|
12343
14069
|
// src/authentication/index.ts
|
|
12344
14070
|
var BrowserSession = class {
|
|
12345
14071
|
get authenticatedFetch() {
|
|
@@ -12347,13 +14073,12 @@ var BrowserSession = class {
|
|
|
12347
14073
|
}
|
|
12348
14074
|
constructor() {
|
|
12349
14075
|
this.session = new Session();
|
|
14076
|
+
this.sessionInfo$ = observeSession(this.session);
|
|
12350
14077
|
this._authenticatedFetch = this.session.fetch;
|
|
12351
14078
|
}
|
|
12352
|
-
async handleIncomingRedirect() {
|
|
14079
|
+
async handleIncomingRedirect(restorePreviousSession = false) {
|
|
12353
14080
|
return this.session.handleIncomingRedirect({
|
|
12354
|
-
|
|
12355
|
-
// https://github.com/inrupt/solid-client-authn-js/issues/1647
|
|
12356
|
-
restorePreviousSession: false
|
|
14081
|
+
restorePreviousSession
|
|
12357
14082
|
});
|
|
12358
14083
|
}
|
|
12359
14084
|
async login(oidcIssuer2) {
|
|
@@ -12366,12 +14091,21 @@ var BrowserSession = class {
|
|
|
12366
14091
|
async logout() {
|
|
12367
14092
|
return this.session.logout();
|
|
12368
14093
|
}
|
|
14094
|
+
/**
|
|
14095
|
+
* @deprecated use observeSession instead
|
|
14096
|
+
*/
|
|
12369
14097
|
trackSession(callback) {
|
|
12370
|
-
this.session.
|
|
12371
|
-
this.session.
|
|
12372
|
-
this.session.
|
|
14098
|
+
this.session.on(EVENTS.LOGIN, () => callback(this.session.info));
|
|
14099
|
+
this.session.on(EVENTS.LOGOUT, () => callback(this.session.info));
|
|
14100
|
+
this.session.on(EVENTS.SESSION_RESTORED, () => callback(this.session.info));
|
|
12373
14101
|
callback(this.session.info);
|
|
12374
14102
|
}
|
|
14103
|
+
observeSession() {
|
|
14104
|
+
return this.sessionInfo$;
|
|
14105
|
+
}
|
|
14106
|
+
onSessionRestore(callback) {
|
|
14107
|
+
this.session.on(EVENTS.SESSION_RESTORED, callback);
|
|
14108
|
+
}
|
|
12375
14109
|
};
|
|
12376
14110
|
|
|
12377
14111
|
// src/files/BinaryFile.ts
|
|
@@ -12431,7 +14165,7 @@ var FileFetcher = class {
|
|
|
12431
14165
|
|
|
12432
14166
|
// src/modules/contacts.ts
|
|
12433
14167
|
async function loadContactsModule(store) {
|
|
12434
|
-
const module2 = await import("./dist-
|
|
14168
|
+
const module2 = await import("./dist-762OQHAF.js");
|
|
12435
14169
|
return new module2.default({
|
|
12436
14170
|
store: store.graph,
|
|
12437
14171
|
fetcher: store.fetcher,
|
|
@@ -12642,6 +14376,52 @@ var WebIdProfile = class extends Thing {
|
|
|
12642
14376
|
}
|
|
12643
14377
|
};
|
|
12644
14378
|
|
|
14379
|
+
// src/search/SearchIndex.ts
|
|
14380
|
+
var import_lunr = __toESM(require_lunr());
|
|
14381
|
+
var SearchIndex = class {
|
|
14382
|
+
constructor(indexes) {
|
|
14383
|
+
this.index = (0, import_lunr.default)(function() {
|
|
14384
|
+
this.ref("uri");
|
|
14385
|
+
this.field("uri");
|
|
14386
|
+
this.field("label");
|
|
14387
|
+
this.metadataWhitelist = ["position"];
|
|
14388
|
+
const items2 = indexes.flatMap((it) => it.getIndexedItems());
|
|
14389
|
+
items2.forEach((item4) => {
|
|
14390
|
+
this.add({
|
|
14391
|
+
uri: item4.uri,
|
|
14392
|
+
label: item4.label
|
|
14393
|
+
});
|
|
14394
|
+
});
|
|
14395
|
+
});
|
|
14396
|
+
}
|
|
14397
|
+
/**
|
|
14398
|
+
* Search the index for a given term. It finds partial matches, but will rank exact matches higher.
|
|
14399
|
+
*
|
|
14400
|
+
* The rank order is:
|
|
14401
|
+
*
|
|
14402
|
+
* 1. exact matches
|
|
14403
|
+
* 2. prefix matches
|
|
14404
|
+
* 3. suffix matches
|
|
14405
|
+
* 4. any matches inside a literal
|
|
14406
|
+
*
|
|
14407
|
+
* @param term The (partial) term to search for
|
|
14408
|
+
* @param maxResults The maximum number of results to return (defaults to 10)
|
|
14409
|
+
*/
|
|
14410
|
+
search(term2, maxResults = 10) {
|
|
14411
|
+
const escapedTerm = term2.replace(/[~^+:]/g, (x) => `\\${x}`);
|
|
14412
|
+
return this.index.search(
|
|
14413
|
+
`${escapedTerm}^100 ${escapedTerm}*^20 *${escapedTerm}^10 *${escapedTerm}*^5`
|
|
14414
|
+
).slice(0, maxResults);
|
|
14415
|
+
}
|
|
14416
|
+
/**
|
|
14417
|
+
* Remove all data from the search index.
|
|
14418
|
+
*/
|
|
14419
|
+
clear() {
|
|
14420
|
+
this.index = (0, import_lunr.default)(() => {
|
|
14421
|
+
});
|
|
14422
|
+
}
|
|
14423
|
+
};
|
|
14424
|
+
|
|
12645
14425
|
// src/rdf-document/RdfDocument.ts
|
|
12646
14426
|
var RdfDocument = class extends Thing {
|
|
12647
14427
|
constructor(uri6, store, editable = false) {
|
|
@@ -12693,52 +14473,6 @@ var LabelIndex = class extends RdfDocument {
|
|
|
12693
14473
|
}
|
|
12694
14474
|
};
|
|
12695
14475
|
|
|
12696
|
-
// src/search/SearchIndex.ts
|
|
12697
|
-
var import_lunr = __toESM(require_lunr());
|
|
12698
|
-
var SearchIndex = class {
|
|
12699
|
-
constructor(indexes) {
|
|
12700
|
-
this.index = (0, import_lunr.default)(function() {
|
|
12701
|
-
this.ref("uri");
|
|
12702
|
-
this.field("uri");
|
|
12703
|
-
this.field("label");
|
|
12704
|
-
this.metadataWhitelist = ["position"];
|
|
12705
|
-
const items2 = indexes.flatMap((it) => it.getIndexedItems());
|
|
12706
|
-
items2.forEach((item4) => {
|
|
12707
|
-
this.add({
|
|
12708
|
-
uri: item4.uri,
|
|
12709
|
-
label: item4.label
|
|
12710
|
-
});
|
|
12711
|
-
});
|
|
12712
|
-
});
|
|
12713
|
-
}
|
|
12714
|
-
/**
|
|
12715
|
-
* Search the index for a given term. It finds partial matches, but will rank exact matches higher.
|
|
12716
|
-
*
|
|
12717
|
-
* The rank order is:
|
|
12718
|
-
*
|
|
12719
|
-
* 1. exact matches
|
|
12720
|
-
* 2. prefix matches
|
|
12721
|
-
* 3. suffix matches
|
|
12722
|
-
* 4. any matches inside a literal
|
|
12723
|
-
*
|
|
12724
|
-
* @param term The (partial) term to search for
|
|
12725
|
-
* @param maxResults The maximum number of results to return (defaults to 10)
|
|
12726
|
-
*/
|
|
12727
|
-
search(term2, maxResults = 10) {
|
|
12728
|
-
const escapedTerm = term2.replace(/[~^+:]/g, (x) => `\\${x}`);
|
|
12729
|
-
return this.index.search(
|
|
12730
|
-
`${escapedTerm}^100 ${escapedTerm}*^20 *${escapedTerm}^10 *${escapedTerm}*^5`
|
|
12731
|
-
).slice(0, maxResults);
|
|
12732
|
-
}
|
|
12733
|
-
/**
|
|
12734
|
-
* Remove all data from the search index.
|
|
12735
|
-
*/
|
|
12736
|
-
clear() {
|
|
12737
|
-
this.index = (0, import_lunr.default)(() => {
|
|
12738
|
-
});
|
|
12739
|
-
}
|
|
12740
|
-
};
|
|
12741
|
-
|
|
12742
14476
|
// src/Store.ts
|
|
12743
14477
|
var Store = class {
|
|
12744
14478
|
constructor(session4) {
|
|
@@ -12931,7 +14665,7 @@ var author = "http://www.w3.org/ns/activitystreams#author";
|
|
|
12931
14665
|
var bcc = "http://www.w3.org/ns/activitystreams#bcc";
|
|
12932
14666
|
var bto = "http://www.w3.org/ns/activitystreams#bto";
|
|
12933
14667
|
var cc = "http://www.w3.org/ns/activitystreams#cc";
|
|
12934
|
-
var
|
|
14668
|
+
var context2 = "http://www.w3.org/ns/activitystreams#context";
|
|
12935
14669
|
var generator = "http://www.w3.org/ns/activitystreams#generator";
|
|
12936
14670
|
var icon = "http://www.w3.org/ns/activitystreams#icon";
|
|
12937
14671
|
var image = "http://www.w3.org/ns/activitystreams#image";
|
|
@@ -13049,7 +14783,7 @@ var asImport = /* @__PURE__ */ Object.freeze({
|
|
|
13049
14783
|
bcc,
|
|
13050
14784
|
bto,
|
|
13051
14785
|
cc,
|
|
13052
|
-
context,
|
|
14786
|
+
context: context2,
|
|
13053
14787
|
generator,
|
|
13054
14788
|
icon,
|
|
13055
14789
|
image,
|
|
@@ -13693,7 +15427,7 @@ var testRun = "http://hl7.org/fhir/testRun";
|
|
|
13693
15427
|
var SubstanceProtein = "http://hl7.org/fhir/SubstanceProtein";
|
|
13694
15428
|
var _focalDevice = "http://hl7.org/fhir/_focalDevice";
|
|
13695
15429
|
var _operationType = "http://hl7.org/fhir/_operationType";
|
|
13696
|
-
var
|
|
15430
|
+
var context3 = "http://hl7.org/fhir/context";
|
|
13697
15431
|
var occurrenceDateTime = "http://hl7.org/fhir/occurrenceDateTime";
|
|
13698
15432
|
var DetectedIssueEvidenceComponent = "http://hl7.org/fhir/DetectedIssueEvidenceComponent";
|
|
13699
15433
|
var _ExplanationOfBenefit = "http://hl7.org/fhir/_ExplanationOfBenefit";
|
|
@@ -14038,7 +15772,7 @@ var _revenue = "http://hl7.org/fhir/_revenue";
|
|
|
14038
15772
|
var _returnedAmount = "http://hl7.org/fhir/_returnedAmount";
|
|
14039
15773
|
var MedicationKnowledgeDefinitionalIngredientComponent = "http://hl7.org/fhir/MedicationKnowledgeDefinitionalIngredientComponent";
|
|
14040
15774
|
var candidate = "http://hl7.org/fhir/candidate";
|
|
14041
|
-
var
|
|
15775
|
+
var Subscription2 = "http://hl7.org/fhir/Subscription";
|
|
14042
15776
|
var relatedAction = "http://hl7.org/fhir/relatedAction";
|
|
14043
15777
|
var textPresentation = "http://hl7.org/fhir/textPresentation";
|
|
14044
15778
|
var _supplements = "http://hl7.org/fhir/_supplements";
|
|
@@ -14639,7 +16373,7 @@ var rule = "http://hl7.org/fhir/rule";
|
|
|
14639
16373
|
var Specimen = "http://hl7.org/fhir/Specimen";
|
|
14640
16374
|
var _MedicinalProductDefinition = "http://hl7.org/fhir/_MedicinalProductDefinition";
|
|
14641
16375
|
var OperationDefinition = "http://hl7.org/fhir/OperationDefinition";
|
|
14642
|
-
var
|
|
16376
|
+
var process2 = "http://hl7.org/fhir/process";
|
|
14643
16377
|
var CitationCitedArtifactContributorshipEntryContributionInstanceComponent = "http://hl7.org/fhir/CitationCitedArtifactContributorshipEntryContributionInstanceComponent";
|
|
14644
16378
|
var EncounterAdmissionComponent = "http://hl7.org/fhir/EncounterAdmissionComponent";
|
|
14645
16379
|
var _MedicationDispense = "http://hl7.org/fhir/_MedicationDispense";
|
|
@@ -16050,7 +17784,7 @@ var Payee = "http://hl7.org/fhir/Payee";
|
|
|
16050
17784
|
var _measurementType = "http://hl7.org/fhir/_measurementType";
|
|
16051
17785
|
var RelatedArtifact = "http://hl7.org/fhir/RelatedArtifact";
|
|
16052
17786
|
var RequestOrchestrationActionDynamicValueComponent = "http://hl7.org/fhir/RequestOrchestrationActionDynamicValueComponent";
|
|
16053
|
-
var
|
|
17787
|
+
var identity2 = "http://hl7.org/fhir/identity";
|
|
16054
17788
|
var subType = "http://hl7.org/fhir/subType";
|
|
16055
17789
|
var ValueSetExpansionContainsComponent = "http://hl7.org/fhir/ValueSetExpansionContainsComponent";
|
|
16056
17790
|
var MedicationKnowledgePackagingComponent = "http://hl7.org/fhir/MedicationKnowledgePackagingComponent";
|
|
@@ -17238,7 +18972,7 @@ var freeToShare = "http://hl7.org/fhir/freeToShare";
|
|
|
17238
18972
|
var ElementDefinitionMappingComponent = "http://hl7.org/fhir/ElementDefinitionMappingComponent";
|
|
17239
18973
|
var copackagedIndicator = "http://hl7.org/fhir/copackagedIndicator";
|
|
17240
18974
|
var precheckBehavior = "http://hl7.org/fhir/precheckBehavior";
|
|
17241
|
-
var
|
|
18975
|
+
var map2 = "http://hl7.org/fhir/map";
|
|
17242
18976
|
var additionalInfo = "http://hl7.org/fhir/additionalInfo";
|
|
17243
18977
|
var preConditions = "http://hl7.org/fhir/preConditions";
|
|
17244
18978
|
var numberOfSubunits = "http://hl7.org/fhir/numberOfSubunits";
|
|
@@ -17926,7 +19660,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
|
|
|
17926
19660
|
SubstanceProtein,
|
|
17927
19661
|
_focalDevice,
|
|
17928
19662
|
_operationType,
|
|
17929
|
-
context:
|
|
19663
|
+
context: context3,
|
|
17930
19664
|
occurrenceDateTime,
|
|
17931
19665
|
DetectedIssueEvidenceComponent,
|
|
17932
19666
|
_ExplanationOfBenefit,
|
|
@@ -18271,7 +20005,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
|
|
|
18271
20005
|
_returnedAmount,
|
|
18272
20006
|
MedicationKnowledgeDefinitionalIngredientComponent,
|
|
18273
20007
|
candidate,
|
|
18274
|
-
Subscription,
|
|
20008
|
+
Subscription: Subscription2,
|
|
18275
20009
|
relatedAction,
|
|
18276
20010
|
textPresentation,
|
|
18277
20011
|
_supplements,
|
|
@@ -18872,7 +20606,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
|
|
|
18872
20606
|
Specimen,
|
|
18873
20607
|
_MedicinalProductDefinition,
|
|
18874
20608
|
OperationDefinition,
|
|
18875
|
-
process,
|
|
20609
|
+
process: process2,
|
|
18876
20610
|
CitationCitedArtifactContributorshipEntryContributionInstanceComponent,
|
|
18877
20611
|
EncounterAdmissionComponent,
|
|
18878
20612
|
_MedicationDispense,
|
|
@@ -20283,7 +22017,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
|
|
|
20283
22017
|
_measurementType,
|
|
20284
22018
|
RelatedArtifact,
|
|
20285
22019
|
RequestOrchestrationActionDynamicValueComponent,
|
|
20286
|
-
identity,
|
|
22020
|
+
identity: identity2,
|
|
20287
22021
|
subType,
|
|
20288
22022
|
ValueSetExpansionContainsComponent,
|
|
20289
22023
|
MedicationKnowledgePackagingComponent,
|
|
@@ -21471,7 +23205,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
|
|
|
21471
23205
|
ElementDefinitionMappingComponent,
|
|
21472
23206
|
copackagedIndicator,
|
|
21473
23207
|
precheckBehavior,
|
|
21474
|
-
map,
|
|
23208
|
+
map: map2,
|
|
21475
23209
|
additionalInfo,
|
|
21476
23210
|
preConditions,
|
|
21477
23211
|
numberOfSubunits,
|
|
@@ -22203,7 +23937,7 @@ var extension2 = "http://www.w3.org/ns/hydra/core#extension";
|
|
|
22203
23937
|
var first = "http://www.w3.org/ns/hydra/core#first";
|
|
22204
23938
|
var freetextQuery = "http://www.w3.org/ns/hydra/core#freetextQuery";
|
|
22205
23939
|
var headerName = "http://www.w3.org/ns/hydra/core#headerName";
|
|
22206
|
-
var
|
|
23940
|
+
var last2 = "http://www.w3.org/ns/hydra/core#last";
|
|
22207
23941
|
var limit2 = "http://www.w3.org/ns/hydra/core#limit";
|
|
22208
23942
|
var mapping2 = "http://www.w3.org/ns/hydra/core#mapping";
|
|
22209
23943
|
var member3 = "http://www.w3.org/ns/hydra/core#member";
|
|
@@ -22265,7 +23999,7 @@ var hydraImport = /* @__PURE__ */ Object.freeze({
|
|
|
22265
23999
|
first,
|
|
22266
24000
|
freetextQuery,
|
|
22267
24001
|
headerName,
|
|
22268
|
-
last,
|
|
24002
|
+
last: last2,
|
|
22269
24003
|
limit: limit2,
|
|
22270
24004
|
mapping: mapping2,
|
|
22271
24005
|
member: member3,
|
|
@@ -22353,7 +24087,7 @@ var Mailbox = "http://www.w3.org/2007/ont/link#Mailbox";
|
|
|
22353
24087
|
var ProtocolEvent = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
22354
24088
|
var RDFDocument = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
22355
24089
|
var Response2 = "http://www.w3.org/2007/ont/link#Response";
|
|
22356
|
-
var
|
|
24090
|
+
var Session3 = "http://www.w3.org/2007/ont/link#Session";
|
|
22357
24091
|
var isMentionedIn = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
22358
24092
|
var mentionsClass = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
22359
24093
|
var protocol2 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -22373,7 +24107,7 @@ var linkImport = /* @__PURE__ */ Object.freeze({
|
|
|
22373
24107
|
ProtocolEvent,
|
|
22374
24108
|
RDFDocument,
|
|
22375
24109
|
Response: Response2,
|
|
22376
|
-
Session:
|
|
24110
|
+
Session: Session3,
|
|
22377
24111
|
isMentionedIn,
|
|
22378
24112
|
mentionsClass,
|
|
22379
24113
|
protocol: protocol2,
|
|
@@ -24403,7 +26137,7 @@ var lyricist = "http://schema.org/lyricist";
|
|
|
24403
26137
|
var lyrics = "http://schema.org/lyrics";
|
|
24404
26138
|
var maintainer = "http://schema.org/maintainer";
|
|
24405
26139
|
var manufacturer2 = "http://schema.org/manufacturer";
|
|
24406
|
-
var
|
|
26140
|
+
var map3 = "http://schema.org/map";
|
|
24407
26141
|
var mapType = "http://schema.org/mapType";
|
|
24408
26142
|
var maps = "http://schema.org/maps";
|
|
24409
26143
|
var marginOfError = "http://schema.org/marginOfError";
|
|
@@ -26771,7 +28505,7 @@ var schemaImport = /* @__PURE__ */ Object.freeze({
|
|
|
26771
28505
|
lyrics,
|
|
26772
28506
|
maintainer,
|
|
26773
28507
|
manufacturer: manufacturer2,
|
|
26774
|
-
map:
|
|
28508
|
+
map: map3,
|
|
26775
28509
|
mapType,
|
|
26776
28510
|
maps,
|
|
26777
28511
|
marginOfError,
|
|
@@ -29141,7 +30875,7 @@ var lyricist2 = "https://schema.org/lyricist";
|
|
|
29141
30875
|
var lyrics2 = "https://schema.org/lyrics";
|
|
29142
30876
|
var maintainer2 = "https://schema.org/maintainer";
|
|
29143
30877
|
var manufacturer3 = "https://schema.org/manufacturer";
|
|
29144
|
-
var
|
|
30878
|
+
var map4 = "https://schema.org/map";
|
|
29145
30879
|
var mapType2 = "https://schema.org/mapType";
|
|
29146
30880
|
var maps2 = "https://schema.org/maps";
|
|
29147
30881
|
var marginOfError2 = "https://schema.org/marginOfError";
|
|
@@ -31509,7 +33243,7 @@ var schema_httpsImport = /* @__PURE__ */ Object.freeze({
|
|
|
31509
33243
|
lyrics: lyrics2,
|
|
31510
33244
|
maintainer: maintainer2,
|
|
31511
33245
|
manufacturer: manufacturer3,
|
|
31512
|
-
map:
|
|
33246
|
+
map: map4,
|
|
31513
33247
|
mapType: mapType2,
|
|
31514
33248
|
maps: maps2,
|
|
31515
33249
|
marginOfError: marginOfError2,
|
|
@@ -32639,7 +34373,7 @@ var Mailbox2 = "http://www.w3.org/2007/ont/link#Mailbox";
|
|
|
32639
34373
|
var ProtocolEvent2 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
32640
34374
|
var RDFDocument2 = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
32641
34375
|
var Response3 = "http://www.w3.org/2007/ont/link#Response";
|
|
32642
|
-
var
|
|
34376
|
+
var Session4 = "http://www.w3.org/2007/ont/link#Session";
|
|
32643
34377
|
var isMentionedIn2 = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
32644
34378
|
var mentionsClass2 = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
32645
34379
|
var protocol3 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -32659,7 +34393,7 @@ var tabImport = /* @__PURE__ */ Object.freeze({
|
|
|
32659
34393
|
ProtocolEvent: ProtocolEvent2,
|
|
32660
34394
|
RDFDocument: RDFDocument2,
|
|
32661
34395
|
Response: Response3,
|
|
32662
|
-
Session:
|
|
34396
|
+
Session: Session4,
|
|
32663
34397
|
isMentionedIn: isMentionedIn2,
|
|
32664
34398
|
mentionsClass: mentionsClass2,
|
|
32665
34399
|
protocol: protocol3,
|
|
@@ -32681,7 +34415,7 @@ var Mailbox3 = "http://www.w3.org/2007/ont/link#Mailbox";
|
|
|
32681
34415
|
var ProtocolEvent3 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
|
|
32682
34416
|
var RDFDocument3 = "http://www.w3.org/2007/ont/link#RDFDocument";
|
|
32683
34417
|
var Response4 = "http://www.w3.org/2007/ont/link#Response";
|
|
32684
|
-
var
|
|
34418
|
+
var Session5 = "http://www.w3.org/2007/ont/link#Session";
|
|
32685
34419
|
var isMentionedIn3 = "http://www.w3.org/2007/ont/link#isMentionedIn";
|
|
32686
34420
|
var mentionsClass3 = "http://www.w3.org/2007/ont/link#mentionsClass";
|
|
32687
34421
|
var protocol4 = "http://www.w3.org/2007/ont/link#protocol";
|
|
@@ -32701,7 +34435,7 @@ var tabontImport = /* @__PURE__ */ Object.freeze({
|
|
|
32701
34435
|
ProtocolEvent: ProtocolEvent3,
|
|
32702
34436
|
RDFDocument: RDFDocument3,
|
|
32703
34437
|
Response: Response4,
|
|
32704
|
-
Session:
|
|
34438
|
+
Session: Session5,
|
|
32705
34439
|
isMentionedIn: isMentionedIn3,
|
|
32706
34440
|
mentionsClass: mentionsClass3,
|
|
32707
34441
|
protocol: protocol4,
|
|
@@ -33175,11 +34909,26 @@ var PodOS = class {
|
|
|
33175
34909
|
constructor() {
|
|
33176
34910
|
this.session = new BrowserSession();
|
|
33177
34911
|
this.store = new Store(this.session);
|
|
34912
|
+
this.flagAuthorizationMetaDataOnSessionChange();
|
|
33178
34913
|
this.uriService = new UriService(this.store);
|
|
33179
34914
|
this.fileFetcher = new FileFetcher(this.session);
|
|
33180
34915
|
}
|
|
33181
|
-
|
|
33182
|
-
|
|
34916
|
+
/*
|
|
34917
|
+
Flagging authorization metadata is necessary every time the user
|
|
34918
|
+
logs in or out, so that metadata from previous requests is outdated
|
|
34919
|
+
and not considered to determine whether a resource is editable anymore.
|
|
34920
|
+
|
|
34921
|
+
See: https://github.com/linkeddata/rdflib.js/pull/512
|
|
34922
|
+
*/
|
|
34923
|
+
flagAuthorizationMetaDataOnSessionChange() {
|
|
34924
|
+
this.session.observeSession().pipe(
|
|
34925
|
+
tap(() => {
|
|
34926
|
+
this.store.updater.flagAuthorizationMetadata();
|
|
34927
|
+
})
|
|
34928
|
+
).subscribe();
|
|
34929
|
+
}
|
|
34930
|
+
handleIncomingRedirect(restorePreviousSession = false) {
|
|
34931
|
+
this.session.handleIncomingRedirect(restorePreviousSession);
|
|
33183
34932
|
}
|
|
33184
34933
|
fetch(uri6) {
|
|
33185
34934
|
return this.store.fetch(uri6);
|
|
@@ -33202,12 +34951,28 @@ var PodOS = class {
|
|
|
33202
34951
|
proposeUriForNewThing(referenceUri, name7) {
|
|
33203
34952
|
return this.uriService.proposeUriForNewThing(referenceUri, name7);
|
|
33204
34953
|
}
|
|
34954
|
+
/**
|
|
34955
|
+
* @deprecated use observeSession instead
|
|
34956
|
+
* @param callback
|
|
34957
|
+
*/
|
|
33205
34958
|
trackSession(callback) {
|
|
33206
34959
|
return this.session.trackSession((session4) => {
|
|
33207
|
-
this.store.updater.flagAuthorizationMetadata();
|
|
33208
34960
|
callback(session4);
|
|
33209
34961
|
});
|
|
33210
34962
|
}
|
|
34963
|
+
/**
|
|
34964
|
+
* returns a behavior subject that can be used to observe changes in the session state
|
|
34965
|
+
*/
|
|
34966
|
+
observeSession() {
|
|
34967
|
+
return this.session.observeSession();
|
|
34968
|
+
}
|
|
34969
|
+
/**
|
|
34970
|
+
* Calls the provided callback with the original URL that was open before the silent auth redirect
|
|
34971
|
+
* @param callback
|
|
34972
|
+
*/
|
|
34973
|
+
onSessionRestore(callback) {
|
|
34974
|
+
this.session.onSessionRestore(callback);
|
|
34975
|
+
}
|
|
33211
34976
|
/**
|
|
33212
34977
|
* Fetch the WebId profile and preferences file for the given WebID
|
|
33213
34978
|
* @param webId
|