@runmedev/react-console 3.14.0 → 3.14.2
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/components/Console.d.ts +1 -1
- package/dist/components/Console.d.ts.map +1 -1
- package/dist/react-console.cjs +6 -6
- package/dist/react-console.mjs +2357 -2357
- package/dist/streams.d.ts +1 -1
- package/dist/streams.d.ts.map +1 -1
- package/package.json +35 -35
package/dist/react-console.mjs
CHANGED
|
@@ -3251,1777 +3251,248 @@ function Ji(u, e) {
|
|
|
3251
3251
|
Yn(l, t), u.values.push(l);
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3254
|
+
var cc = {
|
|
3255
|
+
/***/
|
|
3256
|
+
"./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/google/protobuf/wrappers_pb.js": (
|
|
3257
|
+
/*!*********************************************************************************************************!*\
|
|
3258
|
+
!*** ./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/google/protobuf/wrappers_pb.js ***!
|
|
3259
|
+
\*********************************************************************************************************/
|
|
3260
|
+
/***/
|
|
3261
|
+
(u, e, t) => {
|
|
3262
|
+
t.r(e), t.d(e, {
|
|
3263
|
+
/* harmony export */
|
|
3264
|
+
BoolValue: () => (
|
|
3265
|
+
/* binding */
|
|
3266
|
+
_
|
|
3267
|
+
),
|
|
3268
|
+
/* harmony export */
|
|
3269
|
+
BytesValue: () => (
|
|
3270
|
+
/* binding */
|
|
3271
|
+
S
|
|
3272
|
+
),
|
|
3273
|
+
/* harmony export */
|
|
3274
|
+
DoubleValue: () => (
|
|
3275
|
+
/* binding */
|
|
3276
|
+
o
|
|
3277
|
+
),
|
|
3278
|
+
/* harmony export */
|
|
3279
|
+
FloatValue: () => (
|
|
3280
|
+
/* binding */
|
|
3281
|
+
a
|
|
3282
|
+
),
|
|
3283
|
+
/* harmony export */
|
|
3284
|
+
Int32Value: () => (
|
|
3285
|
+
/* binding */
|
|
3286
|
+
m
|
|
3287
|
+
),
|
|
3288
|
+
/* harmony export */
|
|
3289
|
+
Int64Value: () => (
|
|
3290
|
+
/* binding */
|
|
3291
|
+
s
|
|
3292
|
+
),
|
|
3293
|
+
/* harmony export */
|
|
3294
|
+
StringValue: () => (
|
|
3295
|
+
/* binding */
|
|
3296
|
+
y
|
|
3297
|
+
),
|
|
3298
|
+
/* harmony export */
|
|
3299
|
+
UInt32Value: () => (
|
|
3300
|
+
/* binding */
|
|
3301
|
+
f
|
|
3302
|
+
),
|
|
3303
|
+
/* harmony export */
|
|
3304
|
+
UInt64Value: () => (
|
|
3305
|
+
/* binding */
|
|
3306
|
+
d
|
|
3307
|
+
)
|
|
3308
|
+
/* harmony export */
|
|
3309
|
+
});
|
|
3310
|
+
var l = t(
|
|
3311
|
+
/*! @protobuf-ts/runtime */
|
|
3312
|
+
"./node_modules/@protobuf-ts/runtime/build/es2015/reflection-info.js"
|
|
3313
|
+
), h = t(
|
|
3314
|
+
/*! @protobuf-ts/runtime */
|
|
3315
|
+
"./node_modules/@protobuf-ts/runtime/build/es2015/message-type.js"
|
|
3316
|
+
);
|
|
3317
|
+
class v extends h.MessageType {
|
|
3318
|
+
constructor() {
|
|
3319
|
+
super("google.protobuf.DoubleValue", [
|
|
3320
|
+
{
|
|
3321
|
+
no: 1,
|
|
3322
|
+
name: "value",
|
|
3323
|
+
kind: "scalar",
|
|
3324
|
+
T: 1
|
|
3325
|
+
/*ScalarType.DOUBLE*/
|
|
3326
|
+
}
|
|
3327
|
+
]);
|
|
3328
|
+
}
|
|
3329
|
+
/**
|
|
3330
|
+
* Encode `DoubleValue` to JSON number.
|
|
3331
|
+
*/
|
|
3332
|
+
internalJsonWrite(j, O) {
|
|
3333
|
+
return this.refJsonWriter.scalar(2, j.value, "value", !1, !0);
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* Decode `DoubleValue` from JSON number.
|
|
3337
|
+
*/
|
|
3338
|
+
internalJsonRead(j, O, I) {
|
|
3339
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 1, void 0, "value"), I;
|
|
3340
|
+
}
|
|
3282
3341
|
}
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3342
|
+
const o = new v();
|
|
3343
|
+
class r extends h.MessageType {
|
|
3344
|
+
constructor() {
|
|
3345
|
+
super("google.protobuf.FloatValue", [
|
|
3346
|
+
{
|
|
3347
|
+
no: 1,
|
|
3348
|
+
name: "value",
|
|
3349
|
+
kind: "scalar",
|
|
3350
|
+
T: 2
|
|
3351
|
+
/*ScalarType.FLOAT*/
|
|
3352
|
+
}
|
|
3353
|
+
]);
|
|
3354
|
+
}
|
|
3355
|
+
/**
|
|
3356
|
+
* Encode `FloatValue` to JSON number.
|
|
3357
|
+
*/
|
|
3358
|
+
internalJsonWrite(j, O) {
|
|
3359
|
+
return this.refJsonWriter.scalar(1, j.value, "value", !1, !0);
|
|
3360
|
+
}
|
|
3361
|
+
/**
|
|
3362
|
+
* Decode `FloatValue` from JSON number.
|
|
3363
|
+
*/
|
|
3364
|
+
internalJsonRead(j, O, I) {
|
|
3365
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 1, void 0, "value"), I;
|
|
3366
|
+
}
|
|
3289
3367
|
}
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
case 0:
|
|
3316
|
-
case 1:
|
|
3317
|
-
v = n;
|
|
3318
|
-
break;
|
|
3319
|
-
case 4:
|
|
3320
|
-
return t.label++, { value: n[1], done: !1 };
|
|
3321
|
-
case 5:
|
|
3322
|
-
t.label++, h = n[1], n = [0];
|
|
3323
|
-
continue;
|
|
3324
|
-
case 7:
|
|
3325
|
-
n = t.ops.pop(), t.trys.pop();
|
|
3326
|
-
continue;
|
|
3327
|
-
default:
|
|
3328
|
-
if (v = t.trys, !(v = v.length > 0 && v[v.length - 1]) && (n[0] === 6 || n[0] === 2)) {
|
|
3329
|
-
t = 0;
|
|
3330
|
-
continue;
|
|
3331
|
-
}
|
|
3332
|
-
if (n[0] === 3 && (!v || n[1] > v[0] && n[1] < v[3])) {
|
|
3333
|
-
t.label = n[1];
|
|
3334
|
-
break;
|
|
3335
|
-
}
|
|
3336
|
-
if (n[0] === 6 && t.label < v[1]) {
|
|
3337
|
-
t.label = v[1], v = n;
|
|
3338
|
-
break;
|
|
3339
|
-
}
|
|
3340
|
-
if (v && t.label < v[2]) {
|
|
3341
|
-
t.label = v[2], t.ops.push(n);
|
|
3342
|
-
break;
|
|
3343
|
-
}
|
|
3344
|
-
v[2] && t.ops.pop(), t.trys.pop();
|
|
3345
|
-
continue;
|
|
3368
|
+
const a = new r();
|
|
3369
|
+
class n extends h.MessageType {
|
|
3370
|
+
constructor() {
|
|
3371
|
+
super("google.protobuf.Int64Value", [
|
|
3372
|
+
{
|
|
3373
|
+
no: 1,
|
|
3374
|
+
name: "value",
|
|
3375
|
+
kind: "scalar",
|
|
3376
|
+
T: 3
|
|
3377
|
+
/*ScalarType.INT64*/
|
|
3378
|
+
}
|
|
3379
|
+
]);
|
|
3380
|
+
}
|
|
3381
|
+
/**
|
|
3382
|
+
* Encode `Int64Value` to JSON string.
|
|
3383
|
+
*/
|
|
3384
|
+
internalJsonWrite(j, O) {
|
|
3385
|
+
return this.refJsonWriter.scalar(l.ScalarType.INT64, j.value, "value", !1, !0);
|
|
3386
|
+
}
|
|
3387
|
+
/**
|
|
3388
|
+
* Decode `Int64Value` from JSON string.
|
|
3389
|
+
*/
|
|
3390
|
+
internalJsonRead(j, O, I) {
|
|
3391
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, l.ScalarType.INT64, l.LongType.STRING, "value"), I;
|
|
3392
|
+
}
|
|
3346
3393
|
}
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
function cs(u) {
|
|
3358
|
-
var e = typeof Symbol == "function" && Symbol.iterator, t = e && u[e], l = 0;
|
|
3359
|
-
if (t) return t.call(u);
|
|
3360
|
-
if (u && typeof u.length == "number") return {
|
|
3361
|
-
next: function() {
|
|
3362
|
-
return u && l >= u.length && (u = void 0), { value: u && u[l++], done: !u };
|
|
3363
|
-
}
|
|
3364
|
-
};
|
|
3365
|
-
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3366
|
-
}
|
|
3367
|
-
function gt(u, e) {
|
|
3368
|
-
var t = typeof Symbol == "function" && u[Symbol.iterator];
|
|
3369
|
-
if (!t) return u;
|
|
3370
|
-
var l = t.call(u), h, v = [], o;
|
|
3371
|
-
try {
|
|
3372
|
-
for (; (e === void 0 || e-- > 0) && !(h = l.next()).done; ) v.push(h.value);
|
|
3373
|
-
} catch (r) {
|
|
3374
|
-
o = { error: r };
|
|
3375
|
-
} finally {
|
|
3376
|
-
try {
|
|
3377
|
-
h && !h.done && (t = l.return) && t.call(l);
|
|
3378
|
-
} finally {
|
|
3379
|
-
if (o) throw o.error;
|
|
3380
|
-
}
|
|
3381
|
-
}
|
|
3382
|
-
return v;
|
|
3383
|
-
}
|
|
3384
|
-
function Ct(u, e, t) {
|
|
3385
|
-
if (t || arguments.length === 2) for (var l = 0, h = e.length, v; l < h; l++)
|
|
3386
|
-
(v || !(l in e)) && (v || (v = Array.prototype.slice.call(e, 0, l)), v[l] = e[l]);
|
|
3387
|
-
return u.concat(v || Array.prototype.slice.call(e));
|
|
3388
|
-
}
|
|
3389
|
-
function is(u) {
|
|
3390
|
-
return this instanceof is ? (this.v = u, this) : new is(u);
|
|
3391
|
-
}
|
|
3392
|
-
function dc(u, e, t) {
|
|
3393
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3394
|
-
var l = t.apply(u, e || []), h, v = [];
|
|
3395
|
-
return h = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), r("next"), r("throw"), r("return", o), h[Symbol.asyncIterator] = function() {
|
|
3396
|
-
return this;
|
|
3397
|
-
}, h;
|
|
3398
|
-
function o(p) {
|
|
3399
|
-
return function(m) {
|
|
3400
|
-
return Promise.resolve(m).then(p, i);
|
|
3401
|
-
};
|
|
3402
|
-
}
|
|
3403
|
-
function r(p, m) {
|
|
3404
|
-
l[p] && (h[p] = function(c) {
|
|
3405
|
-
return new Promise(function(f, g) {
|
|
3406
|
-
v.push([p, c, f, g]) > 1 || a(p, c);
|
|
3407
|
-
});
|
|
3408
|
-
}, m && (h[p] = m(h[p])));
|
|
3409
|
-
}
|
|
3410
|
-
function a(p, m) {
|
|
3411
|
-
try {
|
|
3412
|
-
n(l[p](m));
|
|
3413
|
-
} catch (c) {
|
|
3414
|
-
d(v[0][3], c);
|
|
3415
|
-
}
|
|
3416
|
-
}
|
|
3417
|
-
function n(p) {
|
|
3418
|
-
p.value instanceof is ? Promise.resolve(p.value.v).then(s, i) : d(v[0][2], p);
|
|
3419
|
-
}
|
|
3420
|
-
function s(p) {
|
|
3421
|
-
a("next", p);
|
|
3422
|
-
}
|
|
3423
|
-
function i(p) {
|
|
3424
|
-
a("throw", p);
|
|
3425
|
-
}
|
|
3426
|
-
function d(p, m) {
|
|
3427
|
-
p(m), v.shift(), v.length && a(v[0][0], v[0][1]);
|
|
3428
|
-
}
|
|
3429
|
-
}
|
|
3430
|
-
function uc(u) {
|
|
3431
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3432
|
-
var e = u[Symbol.asyncIterator], t;
|
|
3433
|
-
return e ? e.call(u) : (u = typeof cs == "function" ? cs(u) : u[Symbol.iterator](), t = {}, l("next"), l("throw"), l("return"), t[Symbol.asyncIterator] = function() {
|
|
3434
|
-
return this;
|
|
3435
|
-
}, t);
|
|
3436
|
-
function l(v) {
|
|
3437
|
-
t[v] = u[v] && function(o) {
|
|
3438
|
-
return new Promise(function(r, a) {
|
|
3439
|
-
o = u[v](o), h(r, a, o.done, o.value);
|
|
3440
|
-
});
|
|
3441
|
-
};
|
|
3442
|
-
}
|
|
3443
|
-
function h(v, o, r, a) {
|
|
3444
|
-
Promise.resolve(a).then(function(n) {
|
|
3445
|
-
v({ value: n, done: r });
|
|
3446
|
-
}, o);
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
function Ne(u) {
|
|
3450
|
-
return typeof u == "function";
|
|
3451
|
-
}
|
|
3452
|
-
function qi(u) {
|
|
3453
|
-
var e = function(l) {
|
|
3454
|
-
Error.call(l), l.stack = new Error().stack;
|
|
3455
|
-
}, t = u(e);
|
|
3456
|
-
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
3457
|
-
}
|
|
3458
|
-
var vn = qi(function(u) {
|
|
3459
|
-
return function(t) {
|
|
3460
|
-
u(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
3461
|
-
` + t.map(function(l, h) {
|
|
3462
|
-
return h + 1 + ") " + l.toString();
|
|
3463
|
-
}).join(`
|
|
3464
|
-
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
3465
|
-
};
|
|
3466
|
-
});
|
|
3467
|
-
function Hs(u, e) {
|
|
3468
|
-
if (u) {
|
|
3469
|
-
var t = u.indexOf(e);
|
|
3470
|
-
0 <= t && u.splice(t, 1);
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
var Ps = function() {
|
|
3474
|
-
function u(e) {
|
|
3475
|
-
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3476
|
-
}
|
|
3477
|
-
return u.prototype.unsubscribe = function() {
|
|
3478
|
-
var e, t, l, h, v;
|
|
3479
|
-
if (!this.closed) {
|
|
3480
|
-
this.closed = !0;
|
|
3481
|
-
var o = this._parentage;
|
|
3482
|
-
if (o)
|
|
3483
|
-
if (this._parentage = null, Array.isArray(o))
|
|
3484
|
-
try {
|
|
3485
|
-
for (var r = cs(o), a = r.next(); !a.done; a = r.next()) {
|
|
3486
|
-
var n = a.value;
|
|
3487
|
-
n.remove(this);
|
|
3394
|
+
const s = new n();
|
|
3395
|
+
class i extends h.MessageType {
|
|
3396
|
+
constructor() {
|
|
3397
|
+
super("google.protobuf.UInt64Value", [
|
|
3398
|
+
{
|
|
3399
|
+
no: 1,
|
|
3400
|
+
name: "value",
|
|
3401
|
+
kind: "scalar",
|
|
3402
|
+
T: 4
|
|
3403
|
+
/*ScalarType.UINT64*/
|
|
3488
3404
|
}
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3405
|
+
]);
|
|
3406
|
+
}
|
|
3407
|
+
/**
|
|
3408
|
+
* Encode `UInt64Value` to JSON string.
|
|
3409
|
+
*/
|
|
3410
|
+
internalJsonWrite(j, O) {
|
|
3411
|
+
return this.refJsonWriter.scalar(l.ScalarType.UINT64, j.value, "value", !1, !0);
|
|
3412
|
+
}
|
|
3413
|
+
/**
|
|
3414
|
+
* Decode `UInt64Value` from JSON string.
|
|
3415
|
+
*/
|
|
3416
|
+
internalJsonRead(j, O, I) {
|
|
3417
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, l.ScalarType.UINT64, l.LongType.STRING, "value"), I;
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
const d = new i();
|
|
3421
|
+
class p extends h.MessageType {
|
|
3422
|
+
constructor() {
|
|
3423
|
+
super("google.protobuf.Int32Value", [
|
|
3424
|
+
{
|
|
3425
|
+
no: 1,
|
|
3426
|
+
name: "value",
|
|
3427
|
+
kind: "scalar",
|
|
3428
|
+
T: 5
|
|
3429
|
+
/*ScalarType.INT32*/
|
|
3496
3430
|
}
|
|
3497
|
-
|
|
3498
|
-
else
|
|
3499
|
-
o.remove(this);
|
|
3500
|
-
var s = this.initialTeardown;
|
|
3501
|
-
if (Ne(s))
|
|
3502
|
-
try {
|
|
3503
|
-
s();
|
|
3504
|
-
} catch (c) {
|
|
3505
|
-
v = c instanceof vn ? c.errors : [c];
|
|
3431
|
+
]);
|
|
3506
3432
|
}
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3433
|
+
/**
|
|
3434
|
+
* Encode `Int32Value` to JSON string.
|
|
3435
|
+
*/
|
|
3436
|
+
internalJsonWrite(j, O) {
|
|
3437
|
+
return this.refJsonWriter.scalar(5, j.value, "value", !1, !0);
|
|
3438
|
+
}
|
|
3439
|
+
/**
|
|
3440
|
+
* Decode `Int32Value` from JSON string.
|
|
3441
|
+
*/
|
|
3442
|
+
internalJsonRead(j, O, I) {
|
|
3443
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 5, void 0, "value"), I;
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3446
|
+
const m = new p();
|
|
3447
|
+
class c extends h.MessageType {
|
|
3448
|
+
constructor() {
|
|
3449
|
+
super("google.protobuf.UInt32Value", [
|
|
3450
|
+
{
|
|
3451
|
+
no: 1,
|
|
3452
|
+
name: "value",
|
|
3453
|
+
kind: "scalar",
|
|
3454
|
+
T: 13
|
|
3455
|
+
/*ScalarType.UINT32*/
|
|
3517
3456
|
}
|
|
3518
|
-
|
|
3519
|
-
}
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3457
|
+
]);
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* Encode `UInt32Value` to JSON string.
|
|
3461
|
+
*/
|
|
3462
|
+
internalJsonWrite(j, O) {
|
|
3463
|
+
return this.refJsonWriter.scalar(13, j.value, "value", !1, !0);
|
|
3464
|
+
}
|
|
3465
|
+
/**
|
|
3466
|
+
* Decode `UInt32Value` from JSON string.
|
|
3467
|
+
*/
|
|
3468
|
+
internalJsonRead(j, O, I) {
|
|
3469
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 13, void 0, "value"), I;
|
|
3527
3470
|
}
|
|
3528
3471
|
}
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
t === e ? this._parentage = null : Array.isArray(t) && Hs(t, e);
|
|
3554
|
-
}, u.prototype.remove = function(e) {
|
|
3555
|
-
var t = this._finalizers;
|
|
3556
|
-
t && Hs(t, e), e instanceof u && e._removeParent(this);
|
|
3557
|
-
}, u.EMPTY = function() {
|
|
3558
|
-
var e = new u();
|
|
3559
|
-
return e.closed = !0, e;
|
|
3560
|
-
}(), u;
|
|
3561
|
-
}(), eo = Ps.EMPTY;
|
|
3562
|
-
function to(u) {
|
|
3563
|
-
return u instanceof Ps || u && "closed" in u && Ne(u.remove) && Ne(u.add) && Ne(u.unsubscribe);
|
|
3564
|
-
}
|
|
3565
|
-
function Wr(u) {
|
|
3566
|
-
Ne(u) ? u() : u.unsubscribe();
|
|
3567
|
-
}
|
|
3568
|
-
var hc = {
|
|
3569
|
-
Promise: void 0
|
|
3570
|
-
}, fc = {
|
|
3571
|
-
setTimeout: function(u, e) {
|
|
3572
|
-
for (var t = [], l = 2; l < arguments.length; l++)
|
|
3573
|
-
t[l - 2] = arguments[l];
|
|
3574
|
-
return setTimeout.apply(void 0, Ct([u, e], gt(t)));
|
|
3575
|
-
},
|
|
3576
|
-
clearTimeout: function(u) {
|
|
3577
|
-
return clearTimeout(u);
|
|
3578
|
-
},
|
|
3579
|
-
delegate: void 0
|
|
3580
|
-
};
|
|
3581
|
-
function so(u) {
|
|
3582
|
-
fc.setTimeout(function() {
|
|
3583
|
-
throw u;
|
|
3584
|
-
});
|
|
3585
|
-
}
|
|
3586
|
-
function ws() {
|
|
3587
|
-
}
|
|
3588
|
-
function Us(u) {
|
|
3589
|
-
u();
|
|
3590
|
-
}
|
|
3591
|
-
var Jn = function(u) {
|
|
3592
|
-
St(e, u);
|
|
3593
|
-
function e(t) {
|
|
3594
|
-
var l = u.call(this) || this;
|
|
3595
|
-
return l.isStopped = !1, t ? (l.destination = t, to(t) && t.add(l)) : l.destination = vc, l;
|
|
3596
|
-
}
|
|
3597
|
-
return e.create = function(t, l, h) {
|
|
3598
|
-
return new Os(t, l, h);
|
|
3599
|
-
}, e.prototype.next = function(t) {
|
|
3600
|
-
this.isStopped || this._next(t);
|
|
3601
|
-
}, e.prototype.error = function(t) {
|
|
3602
|
-
this.isStopped || (this.isStopped = !0, this._error(t));
|
|
3603
|
-
}, e.prototype.complete = function() {
|
|
3604
|
-
this.isStopped || (this.isStopped = !0, this._complete());
|
|
3605
|
-
}, e.prototype.unsubscribe = function() {
|
|
3606
|
-
this.closed || (this.isStopped = !0, u.prototype.unsubscribe.call(this), this.destination = null);
|
|
3607
|
-
}, e.prototype._next = function(t) {
|
|
3608
|
-
this.destination.next(t);
|
|
3609
|
-
}, e.prototype._error = function(t) {
|
|
3610
|
-
try {
|
|
3611
|
-
this.destination.error(t);
|
|
3612
|
-
} finally {
|
|
3613
|
-
this.unsubscribe();
|
|
3614
|
-
}
|
|
3615
|
-
}, e.prototype._complete = function() {
|
|
3616
|
-
try {
|
|
3617
|
-
this.destination.complete();
|
|
3618
|
-
} finally {
|
|
3619
|
-
this.unsubscribe();
|
|
3620
|
-
}
|
|
3621
|
-
}, e;
|
|
3622
|
-
}(Ps), mc = function() {
|
|
3623
|
-
function u(e) {
|
|
3624
|
-
this.partialObserver = e;
|
|
3625
|
-
}
|
|
3626
|
-
return u.prototype.next = function(e) {
|
|
3627
|
-
var t = this.partialObserver;
|
|
3628
|
-
if (t.next)
|
|
3629
|
-
try {
|
|
3630
|
-
t.next(e);
|
|
3631
|
-
} catch (l) {
|
|
3632
|
-
Ls(l);
|
|
3633
|
-
}
|
|
3634
|
-
}, u.prototype.error = function(e) {
|
|
3635
|
-
var t = this.partialObserver;
|
|
3636
|
-
if (t.error)
|
|
3637
|
-
try {
|
|
3638
|
-
t.error(e);
|
|
3639
|
-
} catch (l) {
|
|
3640
|
-
Ls(l);
|
|
3641
|
-
}
|
|
3642
|
-
else
|
|
3643
|
-
Ls(e);
|
|
3644
|
-
}, u.prototype.complete = function() {
|
|
3645
|
-
var e = this.partialObserver;
|
|
3646
|
-
if (e.complete)
|
|
3647
|
-
try {
|
|
3648
|
-
e.complete();
|
|
3649
|
-
} catch (t) {
|
|
3650
|
-
Ls(t);
|
|
3651
|
-
}
|
|
3652
|
-
}, u;
|
|
3653
|
-
}(), Os = function(u) {
|
|
3654
|
-
St(e, u);
|
|
3655
|
-
function e(t, l, h) {
|
|
3656
|
-
var v = u.call(this) || this, o;
|
|
3657
|
-
return Ne(t) || !t ? o = {
|
|
3658
|
-
next: t ?? void 0,
|
|
3659
|
-
error: l ?? void 0,
|
|
3660
|
-
complete: h ?? void 0
|
|
3661
|
-
} : o = t, v.destination = new mc(o), v;
|
|
3662
|
-
}
|
|
3663
|
-
return e;
|
|
3664
|
-
}(Jn);
|
|
3665
|
-
function Ls(u) {
|
|
3666
|
-
so(u);
|
|
3667
|
-
}
|
|
3668
|
-
function pc(u) {
|
|
3669
|
-
throw u;
|
|
3670
|
-
}
|
|
3671
|
-
var vc = {
|
|
3672
|
-
closed: !0,
|
|
3673
|
-
next: ws,
|
|
3674
|
-
error: pc,
|
|
3675
|
-
complete: ws
|
|
3676
|
-
}, Qn = function() {
|
|
3677
|
-
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3678
|
-
}();
|
|
3679
|
-
function en(u) {
|
|
3680
|
-
return u;
|
|
3681
|
-
}
|
|
3682
|
-
function gc(u) {
|
|
3683
|
-
return u.length === 0 ? en : u.length === 1 ? u[0] : function(t) {
|
|
3684
|
-
return u.reduce(function(l, h) {
|
|
3685
|
-
return h(l);
|
|
3686
|
-
}, t);
|
|
3687
|
-
};
|
|
3688
|
-
}
|
|
3689
|
-
var Xe = function() {
|
|
3690
|
-
function u(e) {
|
|
3691
|
-
e && (this._subscribe = e);
|
|
3692
|
-
}
|
|
3693
|
-
return u.prototype.lift = function(e) {
|
|
3694
|
-
var t = new u();
|
|
3695
|
-
return t.source = this, t.operator = e, t;
|
|
3696
|
-
}, u.prototype.subscribe = function(e, t, l) {
|
|
3697
|
-
var h = this, v = bc(e) ? e : new Os(e, t, l);
|
|
3698
|
-
return Us(function() {
|
|
3699
|
-
var o = h, r = o.operator, a = o.source;
|
|
3700
|
-
v.add(r ? r.call(v, a) : a ? h._subscribe(v) : h._trySubscribe(v));
|
|
3701
|
-
}), v;
|
|
3702
|
-
}, u.prototype._trySubscribe = function(e) {
|
|
3703
|
-
try {
|
|
3704
|
-
return this._subscribe(e);
|
|
3705
|
-
} catch (t) {
|
|
3706
|
-
e.error(t);
|
|
3707
|
-
}
|
|
3708
|
-
}, u.prototype.forEach = function(e, t) {
|
|
3709
|
-
var l = this;
|
|
3710
|
-
return t = Hr(t), new t(function(h, v) {
|
|
3711
|
-
var o = new Os({
|
|
3712
|
-
next: function(r) {
|
|
3713
|
-
try {
|
|
3714
|
-
e(r);
|
|
3715
|
-
} catch (a) {
|
|
3716
|
-
v(a), o.unsubscribe();
|
|
3717
|
-
}
|
|
3718
|
-
},
|
|
3719
|
-
error: v,
|
|
3720
|
-
complete: h
|
|
3721
|
-
});
|
|
3722
|
-
l.subscribe(o);
|
|
3723
|
-
});
|
|
3724
|
-
}, u.prototype._subscribe = function(e) {
|
|
3725
|
-
var t;
|
|
3726
|
-
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
|
3727
|
-
}, u.prototype[Qn] = function() {
|
|
3728
|
-
return this;
|
|
3729
|
-
}, u.prototype.pipe = function() {
|
|
3730
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
3731
|
-
e[t] = arguments[t];
|
|
3732
|
-
return gc(e)(this);
|
|
3733
|
-
}, u.prototype.toPromise = function(e) {
|
|
3734
|
-
var t = this;
|
|
3735
|
-
return e = Hr(e), new e(function(l, h) {
|
|
3736
|
-
var v;
|
|
3737
|
-
t.subscribe(function(o) {
|
|
3738
|
-
return v = o;
|
|
3739
|
-
}, function(o) {
|
|
3740
|
-
return h(o);
|
|
3741
|
-
}, function() {
|
|
3742
|
-
return l(v);
|
|
3743
|
-
});
|
|
3744
|
-
});
|
|
3745
|
-
}, u.create = function(e) {
|
|
3746
|
-
return new u(e);
|
|
3747
|
-
}, u;
|
|
3748
|
-
}();
|
|
3749
|
-
function Hr(u) {
|
|
3750
|
-
var e;
|
|
3751
|
-
return (e = u ?? hc.Promise) !== null && e !== void 0 ? e : Promise;
|
|
3752
|
-
}
|
|
3753
|
-
function _c(u) {
|
|
3754
|
-
return u && Ne(u.next) && Ne(u.error) && Ne(u.complete);
|
|
3755
|
-
}
|
|
3756
|
-
function bc(u) {
|
|
3757
|
-
return u && u instanceof Jn || _c(u) && to(u);
|
|
3758
|
-
}
|
|
3759
|
-
function yc(u) {
|
|
3760
|
-
return Ne(u == null ? void 0 : u.lift);
|
|
3761
|
-
}
|
|
3762
|
-
function st(u) {
|
|
3763
|
-
return function(e) {
|
|
3764
|
-
if (yc(e))
|
|
3765
|
-
return e.lift(function(t) {
|
|
3766
|
-
try {
|
|
3767
|
-
return u(t, this);
|
|
3768
|
-
} catch (l) {
|
|
3769
|
-
this.error(l);
|
|
3770
|
-
}
|
|
3771
|
-
});
|
|
3772
|
-
throw new TypeError("Unable to lift unknown Observable type");
|
|
3773
|
-
};
|
|
3774
|
-
}
|
|
3775
|
-
function ze(u, e, t, l, h) {
|
|
3776
|
-
return new Cc(u, e, t, l, h);
|
|
3777
|
-
}
|
|
3778
|
-
var Cc = function(u) {
|
|
3779
|
-
St(e, u);
|
|
3780
|
-
function e(t, l, h, v, o, r) {
|
|
3781
|
-
var a = u.call(this, t) || this;
|
|
3782
|
-
return a.onFinalize = o, a.shouldUnsubscribe = r, a._next = l ? function(n) {
|
|
3783
|
-
try {
|
|
3784
|
-
l(n);
|
|
3785
|
-
} catch (s) {
|
|
3786
|
-
t.error(s);
|
|
3787
|
-
}
|
|
3788
|
-
} : u.prototype._next, a._error = v ? function(n) {
|
|
3789
|
-
try {
|
|
3790
|
-
v(n);
|
|
3791
|
-
} catch (s) {
|
|
3792
|
-
t.error(s);
|
|
3793
|
-
} finally {
|
|
3794
|
-
this.unsubscribe();
|
|
3795
|
-
}
|
|
3796
|
-
} : u.prototype._error, a._complete = h ? function() {
|
|
3797
|
-
try {
|
|
3798
|
-
h();
|
|
3799
|
-
} catch (n) {
|
|
3800
|
-
t.error(n);
|
|
3801
|
-
} finally {
|
|
3802
|
-
this.unsubscribe();
|
|
3803
|
-
}
|
|
3804
|
-
} : u.prototype._complete, a;
|
|
3805
|
-
}
|
|
3806
|
-
return e.prototype.unsubscribe = function() {
|
|
3807
|
-
var t;
|
|
3808
|
-
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
3809
|
-
var l = this.closed;
|
|
3810
|
-
u.prototype.unsubscribe.call(this), !l && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3811
|
-
}
|
|
3812
|
-
}, e;
|
|
3813
|
-
}(Jn), Ec = qi(function(u) {
|
|
3814
|
-
return function() {
|
|
3815
|
-
u(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
3816
|
-
};
|
|
3817
|
-
}), dt = function(u) {
|
|
3818
|
-
St(e, u);
|
|
3819
|
-
function e() {
|
|
3820
|
-
var t = u.call(this) || this;
|
|
3821
|
-
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
3822
|
-
}
|
|
3823
|
-
return e.prototype.lift = function(t) {
|
|
3824
|
-
var l = new Kr(this, this);
|
|
3825
|
-
return l.operator = t, l;
|
|
3826
|
-
}, e.prototype._throwIfClosed = function() {
|
|
3827
|
-
if (this.closed)
|
|
3828
|
-
throw new Ec();
|
|
3829
|
-
}, e.prototype.next = function(t) {
|
|
3830
|
-
var l = this;
|
|
3831
|
-
Us(function() {
|
|
3832
|
-
var h, v;
|
|
3833
|
-
if (l._throwIfClosed(), !l.isStopped) {
|
|
3834
|
-
l.currentObservers || (l.currentObservers = Array.from(l.observers));
|
|
3835
|
-
try {
|
|
3836
|
-
for (var o = cs(l.currentObservers), r = o.next(); !r.done; r = o.next()) {
|
|
3837
|
-
var a = r.value;
|
|
3838
|
-
a.next(t);
|
|
3839
|
-
}
|
|
3840
|
-
} catch (n) {
|
|
3841
|
-
h = { error: n };
|
|
3842
|
-
} finally {
|
|
3843
|
-
try {
|
|
3844
|
-
r && !r.done && (v = o.return) && v.call(o);
|
|
3845
|
-
} finally {
|
|
3846
|
-
if (h) throw h.error;
|
|
3847
|
-
}
|
|
3848
|
-
}
|
|
3849
|
-
}
|
|
3850
|
-
});
|
|
3851
|
-
}, e.prototype.error = function(t) {
|
|
3852
|
-
var l = this;
|
|
3853
|
-
Us(function() {
|
|
3854
|
-
if (l._throwIfClosed(), !l.isStopped) {
|
|
3855
|
-
l.hasError = l.isStopped = !0, l.thrownError = t;
|
|
3856
|
-
for (var h = l.observers; h.length; )
|
|
3857
|
-
h.shift().error(t);
|
|
3858
|
-
}
|
|
3859
|
-
});
|
|
3860
|
-
}, e.prototype.complete = function() {
|
|
3861
|
-
var t = this;
|
|
3862
|
-
Us(function() {
|
|
3863
|
-
if (t._throwIfClosed(), !t.isStopped) {
|
|
3864
|
-
t.isStopped = !0;
|
|
3865
|
-
for (var l = t.observers; l.length; )
|
|
3866
|
-
l.shift().complete();
|
|
3867
|
-
}
|
|
3868
|
-
});
|
|
3869
|
-
}, e.prototype.unsubscribe = function() {
|
|
3870
|
-
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
3871
|
-
}, Object.defineProperty(e.prototype, "observed", {
|
|
3872
|
-
get: function() {
|
|
3873
|
-
var t;
|
|
3874
|
-
return ((t = this.observers) === null || t === void 0 ? void 0 : t.length) > 0;
|
|
3875
|
-
},
|
|
3876
|
-
enumerable: !1,
|
|
3877
|
-
configurable: !0
|
|
3878
|
-
}), e.prototype._trySubscribe = function(t) {
|
|
3879
|
-
return this._throwIfClosed(), u.prototype._trySubscribe.call(this, t);
|
|
3880
|
-
}, e.prototype._subscribe = function(t) {
|
|
3881
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
3882
|
-
}, e.prototype._innerSubscribe = function(t) {
|
|
3883
|
-
var l = this, h = this, v = h.hasError, o = h.isStopped, r = h.observers;
|
|
3884
|
-
return v || o ? eo : (this.currentObservers = null, r.push(t), new Ps(function() {
|
|
3885
|
-
l.currentObservers = null, Hs(r, t);
|
|
3886
|
-
}));
|
|
3887
|
-
}, e.prototype._checkFinalizedStatuses = function(t) {
|
|
3888
|
-
var l = this, h = l.hasError, v = l.thrownError, o = l.isStopped;
|
|
3889
|
-
h ? t.error(v) : o && t.complete();
|
|
3890
|
-
}, e.prototype.asObservable = function() {
|
|
3891
|
-
var t = new Xe();
|
|
3892
|
-
return t.source = this, t;
|
|
3893
|
-
}, e.create = function(t, l) {
|
|
3894
|
-
return new Kr(t, l);
|
|
3895
|
-
}, e;
|
|
3896
|
-
}(Xe), Kr = function(u) {
|
|
3897
|
-
St(e, u);
|
|
3898
|
-
function e(t, l) {
|
|
3899
|
-
var h = u.call(this) || this;
|
|
3900
|
-
return h.destination = t, h.source = l, h;
|
|
3901
|
-
}
|
|
3902
|
-
return e.prototype.next = function(t) {
|
|
3903
|
-
var l, h;
|
|
3904
|
-
(h = (l = this.destination) === null || l === void 0 ? void 0 : l.next) === null || h === void 0 || h.call(l, t);
|
|
3905
|
-
}, e.prototype.error = function(t) {
|
|
3906
|
-
var l, h;
|
|
3907
|
-
(h = (l = this.destination) === null || l === void 0 ? void 0 : l.error) === null || h === void 0 || h.call(l, t);
|
|
3908
|
-
}, e.prototype.complete = function() {
|
|
3909
|
-
var t, l;
|
|
3910
|
-
(l = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || l === void 0 || l.call(t);
|
|
3911
|
-
}, e.prototype._subscribe = function(t) {
|
|
3912
|
-
var l, h;
|
|
3913
|
-
return (h = (l = this.source) === null || l === void 0 ? void 0 : l.subscribe(t)) !== null && h !== void 0 ? h : eo;
|
|
3914
|
-
}, e;
|
|
3915
|
-
}(dt), Sc = {
|
|
3916
|
-
now: function() {
|
|
3917
|
-
return Date.now();
|
|
3918
|
-
}
|
|
3919
|
-
}, jc = function(u) {
|
|
3920
|
-
St(e, u);
|
|
3921
|
-
function e(t, l) {
|
|
3922
|
-
return u.call(this) || this;
|
|
3923
|
-
}
|
|
3924
|
-
return e.prototype.schedule = function(t, l) {
|
|
3925
|
-
return this;
|
|
3926
|
-
}, e;
|
|
3927
|
-
}(Ps), Gr = {
|
|
3928
|
-
setInterval: function(u, e) {
|
|
3929
|
-
for (var t = [], l = 2; l < arguments.length; l++)
|
|
3930
|
-
t[l - 2] = arguments[l];
|
|
3931
|
-
return setInterval.apply(void 0, Ct([u, e], gt(t)));
|
|
3932
|
-
},
|
|
3933
|
-
clearInterval: function(u) {
|
|
3934
|
-
return clearInterval(u);
|
|
3935
|
-
},
|
|
3936
|
-
delegate: void 0
|
|
3937
|
-
}, wc = function(u) {
|
|
3938
|
-
St(e, u);
|
|
3939
|
-
function e(t, l) {
|
|
3940
|
-
var h = u.call(this, t, l) || this;
|
|
3941
|
-
return h.scheduler = t, h.work = l, h.pending = !1, h;
|
|
3942
|
-
}
|
|
3943
|
-
return e.prototype.schedule = function(t, l) {
|
|
3944
|
-
var h;
|
|
3945
|
-
if (l === void 0 && (l = 0), this.closed)
|
|
3946
|
-
return this;
|
|
3947
|
-
this.state = t;
|
|
3948
|
-
var v = this.id, o = this.scheduler;
|
|
3949
|
-
return v != null && (this.id = this.recycleAsyncId(o, v, l)), this.pending = !0, this.delay = l, this.id = (h = this.id) !== null && h !== void 0 ? h : this.requestAsyncId(o, this.id, l), this;
|
|
3950
|
-
}, e.prototype.requestAsyncId = function(t, l, h) {
|
|
3951
|
-
return h === void 0 && (h = 0), Gr.setInterval(t.flush.bind(t, this), h);
|
|
3952
|
-
}, e.prototype.recycleAsyncId = function(t, l, h) {
|
|
3953
|
-
if (h === void 0 && (h = 0), h != null && this.delay === h && this.pending === !1)
|
|
3954
|
-
return l;
|
|
3955
|
-
l != null && Gr.clearInterval(l);
|
|
3956
|
-
}, e.prototype.execute = function(t, l) {
|
|
3957
|
-
if (this.closed)
|
|
3958
|
-
return new Error("executing a cancelled action");
|
|
3959
|
-
this.pending = !1;
|
|
3960
|
-
var h = this._execute(t, l);
|
|
3961
|
-
if (h)
|
|
3962
|
-
return h;
|
|
3963
|
-
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
3964
|
-
}, e.prototype._execute = function(t, l) {
|
|
3965
|
-
var h = !1, v;
|
|
3966
|
-
try {
|
|
3967
|
-
this.work(t);
|
|
3968
|
-
} catch (o) {
|
|
3969
|
-
h = !0, v = o || new Error("Scheduled action threw falsy error");
|
|
3970
|
-
}
|
|
3971
|
-
if (h)
|
|
3972
|
-
return this.unsubscribe(), v;
|
|
3973
|
-
}, e.prototype.unsubscribe = function() {
|
|
3974
|
-
if (!this.closed) {
|
|
3975
|
-
var t = this, l = t.id, h = t.scheduler, v = h.actions;
|
|
3976
|
-
this.work = this.state = this.scheduler = null, this.pending = !1, Hs(v, this), l != null && (this.id = this.recycleAsyncId(h, l, null)), this.delay = null, u.prototype.unsubscribe.call(this);
|
|
3977
|
-
}
|
|
3978
|
-
}, e;
|
|
3979
|
-
}(jc), zr = function() {
|
|
3980
|
-
function u(e, t) {
|
|
3981
|
-
t === void 0 && (t = u.now), this.schedulerActionCtor = e, this.now = t;
|
|
3982
|
-
}
|
|
3983
|
-
return u.prototype.schedule = function(e, t, l) {
|
|
3984
|
-
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(l, t);
|
|
3985
|
-
}, u.now = Sc.now, u;
|
|
3986
|
-
}(), Oc = function(u) {
|
|
3987
|
-
St(e, u);
|
|
3988
|
-
function e(t, l) {
|
|
3989
|
-
l === void 0 && (l = zr.now);
|
|
3990
|
-
var h = u.call(this, t, l) || this;
|
|
3991
|
-
return h.actions = [], h._active = !1, h;
|
|
3992
|
-
}
|
|
3993
|
-
return e.prototype.flush = function(t) {
|
|
3994
|
-
var l = this.actions;
|
|
3995
|
-
if (this._active) {
|
|
3996
|
-
l.push(t);
|
|
3997
|
-
return;
|
|
3998
|
-
}
|
|
3999
|
-
var h;
|
|
4000
|
-
this._active = !0;
|
|
4001
|
-
do
|
|
4002
|
-
if (h = t.execute(t.state, t.delay))
|
|
4003
|
-
break;
|
|
4004
|
-
while (t = l.shift());
|
|
4005
|
-
if (this._active = !1, h) {
|
|
4006
|
-
for (; t = l.shift(); )
|
|
4007
|
-
t.unsubscribe();
|
|
4008
|
-
throw h;
|
|
4009
|
-
}
|
|
4010
|
-
}, e;
|
|
4011
|
-
}(zr), tn = new Oc(wc), Ic = tn, no = new Xe(function(u) {
|
|
4012
|
-
return u.complete();
|
|
4013
|
-
});
|
|
4014
|
-
function ro(u) {
|
|
4015
|
-
return u && Ne(u.schedule);
|
|
4016
|
-
}
|
|
4017
|
-
function qn(u) {
|
|
4018
|
-
return u[u.length - 1];
|
|
4019
|
-
}
|
|
4020
|
-
function Tc(u) {
|
|
4021
|
-
return Ne(qn(u)) ? u.pop() : void 0;
|
|
4022
|
-
}
|
|
4023
|
-
function io(u) {
|
|
4024
|
-
return ro(qn(u)) ? u.pop() : void 0;
|
|
4025
|
-
}
|
|
4026
|
-
function xc(u, e) {
|
|
4027
|
-
return typeof qn(u) == "number" ? u.pop() : e;
|
|
4028
|
-
}
|
|
4029
|
-
var er = function(u) {
|
|
4030
|
-
return u && typeof u.length == "number" && typeof u != "function";
|
|
4031
|
-
};
|
|
4032
|
-
function oo(u) {
|
|
4033
|
-
return Ne(u == null ? void 0 : u.then);
|
|
4034
|
-
}
|
|
4035
|
-
function ao(u) {
|
|
4036
|
-
return Ne(u[Qn]);
|
|
4037
|
-
}
|
|
4038
|
-
function lo(u) {
|
|
4039
|
-
return Symbol.asyncIterator && Ne(u == null ? void 0 : u[Symbol.asyncIterator]);
|
|
4040
|
-
}
|
|
4041
|
-
function co(u) {
|
|
4042
|
-
return new TypeError("You provided " + (u !== null && typeof u == "object" ? "an invalid object" : "'" + u + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
4043
|
-
}
|
|
4044
|
-
function Ac() {
|
|
4045
|
-
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
4046
|
-
}
|
|
4047
|
-
var uo = Ac();
|
|
4048
|
-
function ho(u) {
|
|
4049
|
-
return Ne(u == null ? void 0 : u[uo]);
|
|
4050
|
-
}
|
|
4051
|
-
function fo(u) {
|
|
4052
|
-
return dc(this, arguments, function() {
|
|
4053
|
-
var t, l, h, v;
|
|
4054
|
-
return Qi(this, function(o) {
|
|
4055
|
-
switch (o.label) {
|
|
4056
|
-
case 0:
|
|
4057
|
-
t = u.getReader(), o.label = 1;
|
|
4058
|
-
case 1:
|
|
4059
|
-
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
4060
|
-
case 2:
|
|
4061
|
-
return [4, is(t.read())];
|
|
4062
|
-
case 3:
|
|
4063
|
-
return l = o.sent(), h = l.value, v = l.done, v ? [4, is(void 0)] : [3, 5];
|
|
4064
|
-
case 4:
|
|
4065
|
-
return [2, o.sent()];
|
|
4066
|
-
case 5:
|
|
4067
|
-
return [4, is(h)];
|
|
4068
|
-
case 6:
|
|
4069
|
-
return [4, o.sent()];
|
|
4070
|
-
case 7:
|
|
4071
|
-
return o.sent(), [3, 2];
|
|
4072
|
-
case 8:
|
|
4073
|
-
return [3, 10];
|
|
4074
|
-
case 9:
|
|
4075
|
-
return t.releaseLock(), [7];
|
|
4076
|
-
case 10:
|
|
4077
|
-
return [2];
|
|
4078
|
-
}
|
|
4079
|
-
});
|
|
4080
|
-
});
|
|
4081
|
-
}
|
|
4082
|
-
function mo(u) {
|
|
4083
|
-
return Ne(u == null ? void 0 : u.getReader);
|
|
4084
|
-
}
|
|
4085
|
-
function qe(u) {
|
|
4086
|
-
if (u instanceof Xe)
|
|
4087
|
-
return u;
|
|
4088
|
-
if (u != null) {
|
|
4089
|
-
if (ao(u))
|
|
4090
|
-
return Pc(u);
|
|
4091
|
-
if (er(u))
|
|
4092
|
-
return Rc(u);
|
|
4093
|
-
if (oo(u))
|
|
4094
|
-
return Dc(u);
|
|
4095
|
-
if (lo(u))
|
|
4096
|
-
return po(u);
|
|
4097
|
-
if (ho(u))
|
|
4098
|
-
return Mc(u);
|
|
4099
|
-
if (mo(u))
|
|
4100
|
-
return Lc(u);
|
|
4101
|
-
}
|
|
4102
|
-
throw co(u);
|
|
4103
|
-
}
|
|
4104
|
-
function Pc(u) {
|
|
4105
|
-
return new Xe(function(e) {
|
|
4106
|
-
var t = u[Qn]();
|
|
4107
|
-
if (Ne(t.subscribe))
|
|
4108
|
-
return t.subscribe(e);
|
|
4109
|
-
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
4110
|
-
});
|
|
4111
|
-
}
|
|
4112
|
-
function Rc(u) {
|
|
4113
|
-
return new Xe(function(e) {
|
|
4114
|
-
for (var t = 0; t < u.length && !e.closed; t++)
|
|
4115
|
-
e.next(u[t]);
|
|
4116
|
-
e.complete();
|
|
4117
|
-
});
|
|
4118
|
-
}
|
|
4119
|
-
function Dc(u) {
|
|
4120
|
-
return new Xe(function(e) {
|
|
4121
|
-
u.then(function(t) {
|
|
4122
|
-
e.closed || (e.next(t), e.complete());
|
|
4123
|
-
}, function(t) {
|
|
4124
|
-
return e.error(t);
|
|
4125
|
-
}).then(null, so);
|
|
4126
|
-
});
|
|
4127
|
-
}
|
|
4128
|
-
function Mc(u) {
|
|
4129
|
-
return new Xe(function(e) {
|
|
4130
|
-
var t, l;
|
|
4131
|
-
try {
|
|
4132
|
-
for (var h = cs(u), v = h.next(); !v.done; v = h.next()) {
|
|
4133
|
-
var o = v.value;
|
|
4134
|
-
if (e.next(o), e.closed)
|
|
4135
|
-
return;
|
|
4136
|
-
}
|
|
4137
|
-
} catch (r) {
|
|
4138
|
-
t = { error: r };
|
|
4139
|
-
} finally {
|
|
4140
|
-
try {
|
|
4141
|
-
v && !v.done && (l = h.return) && l.call(h);
|
|
4142
|
-
} finally {
|
|
4143
|
-
if (t) throw t.error;
|
|
4144
|
-
}
|
|
4145
|
-
}
|
|
4146
|
-
e.complete();
|
|
4147
|
-
});
|
|
4148
|
-
}
|
|
4149
|
-
function po(u) {
|
|
4150
|
-
return new Xe(function(e) {
|
|
4151
|
-
kc(u, e).catch(function(t) {
|
|
4152
|
-
return e.error(t);
|
|
4153
|
-
});
|
|
4154
|
-
});
|
|
4155
|
-
}
|
|
4156
|
-
function Lc(u) {
|
|
4157
|
-
return po(fo(u));
|
|
4158
|
-
}
|
|
4159
|
-
function kc(u, e) {
|
|
4160
|
-
var t, l, h, v;
|
|
4161
|
-
return cc(this, void 0, void 0, function() {
|
|
4162
|
-
var o, r;
|
|
4163
|
-
return Qi(this, function(a) {
|
|
4164
|
-
switch (a.label) {
|
|
4165
|
-
case 0:
|
|
4166
|
-
a.trys.push([0, 5, 6, 11]), t = uc(u), a.label = 1;
|
|
4167
|
-
case 1:
|
|
4168
|
-
return [4, t.next()];
|
|
4169
|
-
case 2:
|
|
4170
|
-
if (l = a.sent(), !!l.done) return [3, 4];
|
|
4171
|
-
if (o = l.value, e.next(o), e.closed)
|
|
4172
|
-
return [2];
|
|
4173
|
-
a.label = 3;
|
|
4174
|
-
case 3:
|
|
4175
|
-
return [3, 1];
|
|
4176
|
-
case 4:
|
|
4177
|
-
return [3, 11];
|
|
4178
|
-
case 5:
|
|
4179
|
-
return r = a.sent(), h = { error: r }, [3, 11];
|
|
4180
|
-
case 6:
|
|
4181
|
-
return a.trys.push([6, , 9, 10]), l && !l.done && (v = t.return) ? [4, v.call(t)] : [3, 8];
|
|
4182
|
-
case 7:
|
|
4183
|
-
a.sent(), a.label = 8;
|
|
4184
|
-
case 8:
|
|
4185
|
-
return [3, 10];
|
|
4186
|
-
case 9:
|
|
4187
|
-
if (h) throw h.error;
|
|
4188
|
-
return [7];
|
|
4189
|
-
case 10:
|
|
4190
|
-
return [7];
|
|
4191
|
-
case 11:
|
|
4192
|
-
return e.complete(), [2];
|
|
4193
|
-
}
|
|
4194
|
-
});
|
|
4195
|
-
});
|
|
4196
|
-
}
|
|
4197
|
-
function qt(u, e, t, l, h) {
|
|
4198
|
-
l === void 0 && (l = 0), h === void 0 && (h = !1);
|
|
4199
|
-
var v = e.schedule(function() {
|
|
4200
|
-
t(), h ? u.add(this.schedule(null, l)) : this.unsubscribe();
|
|
4201
|
-
}, l);
|
|
4202
|
-
if (u.add(v), !h)
|
|
4203
|
-
return v;
|
|
4204
|
-
}
|
|
4205
|
-
function vo(u, e) {
|
|
4206
|
-
return e === void 0 && (e = 0), st(function(t, l) {
|
|
4207
|
-
t.subscribe(ze(l, function(h) {
|
|
4208
|
-
return qt(l, u, function() {
|
|
4209
|
-
return l.next(h);
|
|
4210
|
-
}, e);
|
|
4211
|
-
}, function() {
|
|
4212
|
-
return qt(l, u, function() {
|
|
4213
|
-
return l.complete();
|
|
4214
|
-
}, e);
|
|
4215
|
-
}, function(h) {
|
|
4216
|
-
return qt(l, u, function() {
|
|
4217
|
-
return l.error(h);
|
|
4218
|
-
}, e);
|
|
4219
|
-
}));
|
|
4220
|
-
});
|
|
4221
|
-
}
|
|
4222
|
-
function go(u, e) {
|
|
4223
|
-
return e === void 0 && (e = 0), st(function(t, l) {
|
|
4224
|
-
l.add(u.schedule(function() {
|
|
4225
|
-
return t.subscribe(l);
|
|
4226
|
-
}, e));
|
|
4227
|
-
});
|
|
4228
|
-
}
|
|
4229
|
-
function Bc(u, e) {
|
|
4230
|
-
return qe(u).pipe(go(e), vo(e));
|
|
4231
|
-
}
|
|
4232
|
-
function Nc(u, e) {
|
|
4233
|
-
return qe(u).pipe(go(e), vo(e));
|
|
4234
|
-
}
|
|
4235
|
-
function $c(u, e) {
|
|
4236
|
-
return new Xe(function(t) {
|
|
4237
|
-
var l = 0;
|
|
4238
|
-
return e.schedule(function() {
|
|
4239
|
-
l === u.length ? t.complete() : (t.next(u[l++]), t.closed || this.schedule());
|
|
4240
|
-
});
|
|
4241
|
-
});
|
|
4242
|
-
}
|
|
4243
|
-
function Uc(u, e) {
|
|
4244
|
-
return new Xe(function(t) {
|
|
4245
|
-
var l;
|
|
4246
|
-
return qt(t, e, function() {
|
|
4247
|
-
l = u[uo](), qt(t, e, function() {
|
|
4248
|
-
var h, v, o;
|
|
4249
|
-
try {
|
|
4250
|
-
h = l.next(), v = h.value, o = h.done;
|
|
4251
|
-
} catch (r) {
|
|
4252
|
-
t.error(r);
|
|
4253
|
-
return;
|
|
4254
|
-
}
|
|
4255
|
-
o ? t.complete() : t.next(v);
|
|
4256
|
-
}, 0, !0);
|
|
4257
|
-
}), function() {
|
|
4258
|
-
return Ne(l == null ? void 0 : l.return) && l.return();
|
|
4259
|
-
};
|
|
4260
|
-
});
|
|
4261
|
-
}
|
|
4262
|
-
function _o(u, e) {
|
|
4263
|
-
if (!u)
|
|
4264
|
-
throw new Error("Iterable cannot be null");
|
|
4265
|
-
return new Xe(function(t) {
|
|
4266
|
-
qt(t, e, function() {
|
|
4267
|
-
var l = u[Symbol.asyncIterator]();
|
|
4268
|
-
qt(t, e, function() {
|
|
4269
|
-
l.next().then(function(h) {
|
|
4270
|
-
h.done ? t.complete() : t.next(h.value);
|
|
4271
|
-
});
|
|
4272
|
-
}, 0, !0);
|
|
4273
|
-
});
|
|
4274
|
-
});
|
|
4275
|
-
}
|
|
4276
|
-
function Fc(u, e) {
|
|
4277
|
-
return _o(fo(u), e);
|
|
4278
|
-
}
|
|
4279
|
-
function Vc(u, e) {
|
|
4280
|
-
if (u != null) {
|
|
4281
|
-
if (ao(u))
|
|
4282
|
-
return Bc(u, e);
|
|
4283
|
-
if (er(u))
|
|
4284
|
-
return $c(u, e);
|
|
4285
|
-
if (oo(u))
|
|
4286
|
-
return Nc(u, e);
|
|
4287
|
-
if (lo(u))
|
|
4288
|
-
return _o(u, e);
|
|
4289
|
-
if (ho(u))
|
|
4290
|
-
return Uc(u, e);
|
|
4291
|
-
if (mo(u))
|
|
4292
|
-
return Fc(u, e);
|
|
4293
|
-
}
|
|
4294
|
-
throw co(u);
|
|
4295
|
-
}
|
|
4296
|
-
function bo(u, e) {
|
|
4297
|
-
return e ? Vc(u, e) : qe(u);
|
|
4298
|
-
}
|
|
4299
|
-
function Wc() {
|
|
4300
|
-
for (var u = [], e = 0; e < arguments.length; e++)
|
|
4301
|
-
u[e] = arguments[e];
|
|
4302
|
-
var t = io(u);
|
|
4303
|
-
return bo(u, t);
|
|
4304
|
-
}
|
|
4305
|
-
function Hc(u) {
|
|
4306
|
-
return u instanceof Date && !isNaN(u);
|
|
4307
|
-
}
|
|
4308
|
-
function at(u, e) {
|
|
4309
|
-
return st(function(t, l) {
|
|
4310
|
-
var h = 0;
|
|
4311
|
-
t.subscribe(ze(l, function(v) {
|
|
4312
|
-
l.next(u.call(e, v, h++));
|
|
4313
|
-
}));
|
|
4314
|
-
});
|
|
4315
|
-
}
|
|
4316
|
-
var Kc = Array.isArray;
|
|
4317
|
-
function Gc(u, e) {
|
|
4318
|
-
return Kc(e) ? u.apply(void 0, Ct([], gt(e))) : u(e);
|
|
4319
|
-
}
|
|
4320
|
-
function zc(u) {
|
|
4321
|
-
return at(function(e) {
|
|
4322
|
-
return Gc(u, e);
|
|
4323
|
-
});
|
|
4324
|
-
}
|
|
4325
|
-
function Zc(u, e, t, l, h, v, o, r) {
|
|
4326
|
-
var a = [], n = 0, s = 0, i = !1, d = function() {
|
|
4327
|
-
i && !a.length && !n && e.complete();
|
|
4328
|
-
}, p = function(c) {
|
|
4329
|
-
return n < l ? m(c) : a.push(c);
|
|
4330
|
-
}, m = function(c) {
|
|
4331
|
-
n++;
|
|
4332
|
-
var f = !1;
|
|
4333
|
-
qe(t(c, s++)).subscribe(ze(e, function(g) {
|
|
4334
|
-
e.next(g);
|
|
4335
|
-
}, function() {
|
|
4336
|
-
f = !0;
|
|
4337
|
-
}, void 0, function() {
|
|
4338
|
-
if (f)
|
|
4339
|
-
try {
|
|
4340
|
-
n--;
|
|
4341
|
-
for (var g = function() {
|
|
4342
|
-
var _ = a.shift();
|
|
4343
|
-
o || m(_);
|
|
4344
|
-
}; a.length && n < l; )
|
|
4345
|
-
g();
|
|
4346
|
-
d();
|
|
4347
|
-
} catch (_) {
|
|
4348
|
-
e.error(_);
|
|
4349
|
-
}
|
|
4350
|
-
}));
|
|
4351
|
-
};
|
|
4352
|
-
return u.subscribe(ze(e, p, function() {
|
|
4353
|
-
i = !0, d();
|
|
4354
|
-
})), function() {
|
|
4355
|
-
};
|
|
4356
|
-
}
|
|
4357
|
-
function Is(u, e, t) {
|
|
4358
|
-
return t === void 0 && (t = 1 / 0), Ne(e) ? Is(function(l, h) {
|
|
4359
|
-
return at(function(v, o) {
|
|
4360
|
-
return e(l, v, h, o);
|
|
4361
|
-
})(qe(u(l, h)));
|
|
4362
|
-
}, t) : (typeof e == "number" && (t = e), st(function(l, h) {
|
|
4363
|
-
return Zc(l, h, u, t);
|
|
4364
|
-
}));
|
|
4365
|
-
}
|
|
4366
|
-
function Xc(u) {
|
|
4367
|
-
return u === void 0 && (u = 1 / 0), Is(en, u);
|
|
4368
|
-
}
|
|
4369
|
-
function Yc(u) {
|
|
4370
|
-
return new Xe(function(e) {
|
|
4371
|
-
qe(u()).subscribe(e);
|
|
4372
|
-
});
|
|
4373
|
-
}
|
|
4374
|
-
var Jc = {
|
|
4375
|
-
connector: function() {
|
|
4376
|
-
return new dt();
|
|
4377
|
-
},
|
|
4378
|
-
resetOnDisconnect: !0
|
|
4379
|
-
};
|
|
4380
|
-
function Yt(u, e) {
|
|
4381
|
-
e === void 0 && (e = Jc);
|
|
4382
|
-
var t = null, l = e.connector, h = e.resetOnDisconnect, v = h === void 0 ? !0 : h, o = l(), r = new Xe(function(a) {
|
|
4383
|
-
return o.subscribe(a);
|
|
4384
|
-
});
|
|
4385
|
-
return r.connect = function() {
|
|
4386
|
-
return (!t || t.closed) && (t = Yc(function() {
|
|
4387
|
-
return u;
|
|
4388
|
-
}).subscribe(o), v && t.add(function() {
|
|
4389
|
-
return o = l();
|
|
4390
|
-
})), t;
|
|
4391
|
-
}, r;
|
|
4392
|
-
}
|
|
4393
|
-
var Qc = ["addListener", "removeListener"], qc = ["addEventListener", "removeEventListener"], ed = ["on", "off"];
|
|
4394
|
-
function On(u, e, t, l) {
|
|
4395
|
-
if (Ne(t) && (l = t, t = void 0), l)
|
|
4396
|
-
return On(u, e, t).pipe(zc(l));
|
|
4397
|
-
var h = gt(nd(u) ? qc.map(function(r) {
|
|
4398
|
-
return function(a) {
|
|
4399
|
-
return u[r](e, a, t);
|
|
4400
|
-
};
|
|
4401
|
-
}) : td(u) ? Qc.map(Zr(u, e)) : sd(u) ? ed.map(Zr(u, e)) : [], 2), v = h[0], o = h[1];
|
|
4402
|
-
if (!v && er(u))
|
|
4403
|
-
return Is(function(r) {
|
|
4404
|
-
return On(r, e, t);
|
|
4405
|
-
})(qe(u));
|
|
4406
|
-
if (!v)
|
|
4407
|
-
throw new TypeError("Invalid event target");
|
|
4408
|
-
return new Xe(function(r) {
|
|
4409
|
-
var a = function() {
|
|
4410
|
-
for (var n = [], s = 0; s < arguments.length; s++)
|
|
4411
|
-
n[s] = arguments[s];
|
|
4412
|
-
return r.next(1 < n.length ? n : n[0]);
|
|
4413
|
-
};
|
|
4414
|
-
return v(a), function() {
|
|
4415
|
-
return o(a);
|
|
4416
|
-
};
|
|
4417
|
-
});
|
|
4418
|
-
}
|
|
4419
|
-
function Zr(u, e) {
|
|
4420
|
-
return function(t) {
|
|
4421
|
-
return function(l) {
|
|
4422
|
-
return u[t](e, l);
|
|
4423
|
-
};
|
|
4424
|
-
};
|
|
4425
|
-
}
|
|
4426
|
-
function td(u) {
|
|
4427
|
-
return Ne(u.addListener) && Ne(u.removeListener);
|
|
4428
|
-
}
|
|
4429
|
-
function sd(u) {
|
|
4430
|
-
return Ne(u.on) && Ne(u.off);
|
|
4431
|
-
}
|
|
4432
|
-
function nd(u) {
|
|
4433
|
-
return Ne(u.addEventListener) && Ne(u.removeEventListener);
|
|
4434
|
-
}
|
|
4435
|
-
function bs(u, e, t) {
|
|
4436
|
-
u === void 0 && (u = 0), t === void 0 && (t = Ic);
|
|
4437
|
-
var l = -1;
|
|
4438
|
-
return e != null && (ro(e) ? t = e : l = e), new Xe(function(h) {
|
|
4439
|
-
var v = Hc(u) ? +u - t.now() : u;
|
|
4440
|
-
v < 0 && (v = 0);
|
|
4441
|
-
var o = 0;
|
|
4442
|
-
return t.schedule(function() {
|
|
4443
|
-
h.closed || (h.next(o++), 0 <= l ? this.schedule(void 0, l) : h.complete());
|
|
4444
|
-
}, v);
|
|
4445
|
-
});
|
|
4446
|
-
}
|
|
4447
|
-
function rd(u, e) {
|
|
4448
|
-
return e === void 0 && (e = tn), bs(u, u, e);
|
|
4449
|
-
}
|
|
4450
|
-
function id() {
|
|
4451
|
-
for (var u = [], e = 0; e < arguments.length; e++)
|
|
4452
|
-
u[e] = arguments[e];
|
|
4453
|
-
var t = io(u), l = xc(u, 1 / 0), h = u;
|
|
4454
|
-
return h.length ? h.length === 1 ? qe(h[0]) : Xc(l)(bo(h, t)) : no;
|
|
4455
|
-
}
|
|
4456
|
-
var od = Array.isArray;
|
|
4457
|
-
function ad(u) {
|
|
4458
|
-
return u.length === 1 && od(u[0]) ? u[0] : u;
|
|
4459
|
-
}
|
|
4460
|
-
function bt(u, e) {
|
|
4461
|
-
return st(function(t, l) {
|
|
4462
|
-
var h = 0;
|
|
4463
|
-
t.subscribe(ze(l, function(v) {
|
|
4464
|
-
return u.call(e, v, h++) && l.next(v);
|
|
4465
|
-
}));
|
|
4466
|
-
});
|
|
4467
|
-
}
|
|
4468
|
-
function ld() {
|
|
4469
|
-
for (var u = [], e = 0; e < arguments.length; e++)
|
|
4470
|
-
u[e] = arguments[e];
|
|
4471
|
-
return u = ad(u), u.length === 1 ? qe(u[0]) : new Xe(cd(u));
|
|
4472
|
-
}
|
|
4473
|
-
function cd(u) {
|
|
4474
|
-
return function(e) {
|
|
4475
|
-
for (var t = [], l = function(v) {
|
|
4476
|
-
t.push(qe(u[v]).subscribe(ze(e, function(o) {
|
|
4477
|
-
if (t) {
|
|
4478
|
-
for (var r = 0; r < t.length; r++)
|
|
4479
|
-
r !== v && t[r].unsubscribe();
|
|
4480
|
-
t = null;
|
|
4481
|
-
}
|
|
4482
|
-
e.next(o);
|
|
4483
|
-
})));
|
|
4484
|
-
}, h = 0; t && !e.closed && h < u.length; h++)
|
|
4485
|
-
l(h);
|
|
4486
|
-
};
|
|
4487
|
-
}
|
|
4488
|
-
function dd(u) {
|
|
4489
|
-
return st(function(e, t) {
|
|
4490
|
-
var l = null, h = null, v = function() {
|
|
4491
|
-
h == null || h.unsubscribe();
|
|
4492
|
-
var o = l;
|
|
4493
|
-
l = [], o && t.next(o), qe(u()).subscribe(h = ze(t, v, ws));
|
|
4494
|
-
};
|
|
4495
|
-
v(), e.subscribe(ze(t, function(o) {
|
|
4496
|
-
return l == null ? void 0 : l.push(o);
|
|
4497
|
-
}, function() {
|
|
4498
|
-
l && t.next(l), t.complete();
|
|
4499
|
-
}, void 0, function() {
|
|
4500
|
-
return l = h = null;
|
|
4501
|
-
}));
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
|
-
function yo(u) {
|
|
4505
|
-
return st(function(e, t) {
|
|
4506
|
-
var l = null, h = !1, v;
|
|
4507
|
-
l = e.subscribe(ze(t, void 0, void 0, function(o) {
|
|
4508
|
-
v = qe(u(o, yo(u)(e))), l ? (l.unsubscribe(), l = null, v.subscribe(t)) : h = !0;
|
|
4509
|
-
})), h && (l.unsubscribe(), l = null, v.subscribe(t));
|
|
4510
|
-
});
|
|
4511
|
-
}
|
|
4512
|
-
function ud(u, e, t, l, h) {
|
|
4513
|
-
return function(v, o) {
|
|
4514
|
-
var r = t, a = e, n = 0;
|
|
4515
|
-
v.subscribe(ze(o, function(s) {
|
|
4516
|
-
var i = n++;
|
|
4517
|
-
a = r ? u(a, s, i) : (r = !0, s), o.next(a);
|
|
4518
|
-
}, h));
|
|
4519
|
-
};
|
|
4520
|
-
}
|
|
4521
|
-
function Xr(u) {
|
|
4522
|
-
return u <= 0 ? function() {
|
|
4523
|
-
return no;
|
|
4524
|
-
} : st(function(e, t) {
|
|
4525
|
-
var l = 0;
|
|
4526
|
-
e.subscribe(ze(t, function(h) {
|
|
4527
|
-
++l <= u && (t.next(h), u <= l && t.complete());
|
|
4528
|
-
}));
|
|
4529
|
-
});
|
|
4530
|
-
}
|
|
4531
|
-
function hd(u) {
|
|
4532
|
-
return st(function(e, t) {
|
|
4533
|
-
try {
|
|
4534
|
-
e.subscribe(t);
|
|
4535
|
-
} finally {
|
|
4536
|
-
t.add(u);
|
|
4537
|
-
}
|
|
4538
|
-
});
|
|
4539
|
-
}
|
|
4540
|
-
function fd(u, e) {
|
|
4541
|
-
return st(ud(u, e, arguments.length >= 2, !0));
|
|
4542
|
-
}
|
|
4543
|
-
function md(u) {
|
|
4544
|
-
u === void 0 && (u = {});
|
|
4545
|
-
var e = u.connector, t = e === void 0 ? function() {
|
|
4546
|
-
return new dt();
|
|
4547
|
-
} : e, l = u.resetOnError, h = l === void 0 ? !0 : l, v = u.resetOnComplete, o = v === void 0 ? !0 : v, r = u.resetOnRefCountZero, a = r === void 0 ? !0 : r;
|
|
4548
|
-
return function(n) {
|
|
4549
|
-
var s, i, d, p = 0, m = !1, c = !1, f = function() {
|
|
4550
|
-
i == null || i.unsubscribe(), i = void 0;
|
|
4551
|
-
}, g = function() {
|
|
4552
|
-
f(), s = d = void 0, m = c = !1;
|
|
4553
|
-
}, _ = function() {
|
|
4554
|
-
var b = s;
|
|
4555
|
-
g(), b == null || b.unsubscribe();
|
|
4556
|
-
};
|
|
4557
|
-
return st(function(b, y) {
|
|
4558
|
-
p++, !c && !m && f();
|
|
4559
|
-
var C = d = d ?? t();
|
|
4560
|
-
y.add(function() {
|
|
4561
|
-
p--, p === 0 && !c && !m && (i = gn(_, a));
|
|
4562
|
-
}), C.subscribe(y), !s && p > 0 && (s = new Os({
|
|
4563
|
-
next: function(S) {
|
|
4564
|
-
return C.next(S);
|
|
4565
|
-
},
|
|
4566
|
-
error: function(S) {
|
|
4567
|
-
c = !0, f(), i = gn(g, h, S), C.error(S);
|
|
4568
|
-
},
|
|
4569
|
-
complete: function() {
|
|
4570
|
-
m = !0, f(), i = gn(g, o), C.complete();
|
|
4571
|
-
}
|
|
4572
|
-
}), qe(b).subscribe(s));
|
|
4573
|
-
})(n);
|
|
4574
|
-
};
|
|
4575
|
-
}
|
|
4576
|
-
function gn(u, e) {
|
|
4577
|
-
for (var t = [], l = 2; l < arguments.length; l++)
|
|
4578
|
-
t[l - 2] = arguments[l];
|
|
4579
|
-
if (e === !0) {
|
|
4580
|
-
u();
|
|
4581
|
-
return;
|
|
4582
|
-
}
|
|
4583
|
-
if (e !== !1) {
|
|
4584
|
-
var h = new Os({
|
|
4585
|
-
next: function() {
|
|
4586
|
-
h.unsubscribe(), u();
|
|
4587
|
-
}
|
|
4588
|
-
});
|
|
4589
|
-
return qe(e.apply(void 0, Ct([], gt(t)))).subscribe(h);
|
|
4590
|
-
}
|
|
4591
|
-
}
|
|
4592
|
-
function pd(u) {
|
|
4593
|
-
return st(function(e, t) {
|
|
4594
|
-
var l = !1, h = ze(t, function() {
|
|
4595
|
-
h == null || h.unsubscribe(), l = !0;
|
|
4596
|
-
}, ws);
|
|
4597
|
-
qe(u).subscribe(h), e.subscribe(ze(t, function(v) {
|
|
4598
|
-
return l && t.next(v);
|
|
4599
|
-
}));
|
|
4600
|
-
});
|
|
4601
|
-
}
|
|
4602
|
-
function Yr(u, e) {
|
|
4603
|
-
return st(function(t, l) {
|
|
4604
|
-
var h = null, v = 0, o = !1, r = function() {
|
|
4605
|
-
return o && !h && l.complete();
|
|
4606
|
-
};
|
|
4607
|
-
t.subscribe(ze(l, function(a) {
|
|
4608
|
-
h == null || h.unsubscribe();
|
|
4609
|
-
var n = 0, s = v++;
|
|
4610
|
-
qe(u(a, s)).subscribe(h = ze(l, function(i) {
|
|
4611
|
-
return l.next(e ? e(a, i, s, n++) : i);
|
|
4612
|
-
}, function() {
|
|
4613
|
-
h = null, r();
|
|
4614
|
-
}));
|
|
4615
|
-
}, function() {
|
|
4616
|
-
o = !0, r();
|
|
4617
|
-
}));
|
|
4618
|
-
});
|
|
4619
|
-
}
|
|
4620
|
-
function ks(u, e) {
|
|
4621
|
-
return e === void 0 && (e = !1), st(function(t, l) {
|
|
4622
|
-
var h = 0;
|
|
4623
|
-
t.subscribe(ze(l, function(v) {
|
|
4624
|
-
var o = u(v, h++);
|
|
4625
|
-
(o || e) && l.next(v), !o && l.complete();
|
|
4626
|
-
}));
|
|
4627
|
-
});
|
|
4628
|
-
}
|
|
4629
|
-
function Jr(u, e, t) {
|
|
4630
|
-
var l = Ne(u) || e || t ? { next: u, error: e, complete: t } : u;
|
|
4631
|
-
return l ? st(function(h, v) {
|
|
4632
|
-
var o;
|
|
4633
|
-
(o = l.subscribe) === null || o === void 0 || o.call(l);
|
|
4634
|
-
var r = !0;
|
|
4635
|
-
h.subscribe(ze(v, function(a) {
|
|
4636
|
-
var n;
|
|
4637
|
-
(n = l.next) === null || n === void 0 || n.call(l, a), v.next(a);
|
|
4638
|
-
}, function() {
|
|
4639
|
-
var a;
|
|
4640
|
-
r = !1, (a = l.complete) === null || a === void 0 || a.call(l), v.complete();
|
|
4641
|
-
}, function(a) {
|
|
4642
|
-
var n;
|
|
4643
|
-
r = !1, (n = l.error) === null || n === void 0 || n.call(l, a), v.error(a);
|
|
4644
|
-
}, function() {
|
|
4645
|
-
var a, n;
|
|
4646
|
-
r && ((a = l.unsubscribe) === null || a === void 0 || a.call(l)), (n = l.finalize) === null || n === void 0 || n.call(l);
|
|
4647
|
-
}));
|
|
4648
|
-
}) : en;
|
|
4649
|
-
}
|
|
4650
|
-
function vd(u, e) {
|
|
4651
|
-
return st(function(t, l) {
|
|
4652
|
-
var h = e ?? {}, v = h.leading, o = v === void 0 ? !0 : v, r = h.trailing, a = r === void 0 ? !1 : r, n = !1, s = null, i = null, d = !1, p = function() {
|
|
4653
|
-
i == null || i.unsubscribe(), i = null, a && (f(), d && l.complete());
|
|
4654
|
-
}, m = function() {
|
|
4655
|
-
i = null, d && l.complete();
|
|
4656
|
-
}, c = function(g) {
|
|
4657
|
-
return i = qe(u(g)).subscribe(ze(l, p, m));
|
|
4658
|
-
}, f = function() {
|
|
4659
|
-
if (n) {
|
|
4660
|
-
n = !1;
|
|
4661
|
-
var g = s;
|
|
4662
|
-
s = null, l.next(g), !d && c(g);
|
|
4663
|
-
}
|
|
4664
|
-
};
|
|
4665
|
-
t.subscribe(ze(l, function(g) {
|
|
4666
|
-
n = !0, s = g, !(i && !i.closed) && (o ? f() : c(g));
|
|
4667
|
-
}, function() {
|
|
4668
|
-
d = !0, !(a && n && i && !i.closed) && l.complete();
|
|
4669
|
-
}));
|
|
4670
|
-
});
|
|
4671
|
-
}
|
|
4672
|
-
function Qr(u, e, t) {
|
|
4673
|
-
e === void 0 && (e = tn);
|
|
4674
|
-
var l = bs(u, e);
|
|
4675
|
-
return vd(function() {
|
|
4676
|
-
return l;
|
|
4677
|
-
}, t);
|
|
4678
|
-
}
|
|
4679
|
-
function _n() {
|
|
4680
|
-
for (var u = [], e = 0; e < arguments.length; e++)
|
|
4681
|
-
u[e] = arguments[e];
|
|
4682
|
-
var t = Tc(u);
|
|
4683
|
-
return st(function(l, h) {
|
|
4684
|
-
for (var v = u.length, o = new Array(v), r = u.map(function() {
|
|
4685
|
-
return !1;
|
|
4686
|
-
}), a = !1, n = function(i) {
|
|
4687
|
-
qe(u[i]).subscribe(ze(h, function(d) {
|
|
4688
|
-
o[i] = d, !a && !r[i] && (r[i] = !0, (a = r.every(en)) && (r = null));
|
|
4689
|
-
}, ws));
|
|
4690
|
-
}, s = 0; s < v; s++)
|
|
4691
|
-
n(s);
|
|
4692
|
-
l.subscribe(ze(h, function(i) {
|
|
4693
|
-
if (a) {
|
|
4694
|
-
var d = Ct([i], gt(o));
|
|
4695
|
-
h.next(t ? t.apply(void 0, Ct([], gt(d))) : d);
|
|
4696
|
-
}
|
|
4697
|
-
}));
|
|
4698
|
-
});
|
|
4699
|
-
}
|
|
4700
|
-
const Co = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Ks = 32, gd = 16, Eo = 10, qr = 281474976710655;
|
|
4701
|
-
var Qt;
|
|
4702
|
-
(function(u) {
|
|
4703
|
-
u.Base32IncorrectEncoding = "B32_ENC_INVALID", u.DecodeTimeInvalidCharacter = "DEC_TIME_CHAR", u.DecodeTimeValueMalformed = "DEC_TIME_MALFORMED", u.EncodeTimeNegative = "ENC_TIME_NEG", u.EncodeTimeSizeExceeded = "ENC_TIME_SIZE_EXCEED", u.EncodeTimeValueMalformed = "ENC_TIME_MALFORMED", u.PRNGDetectFailure = "PRNG_DETECT", u.ULIDInvalid = "ULID_INVALID", u.Unexpected = "UNEXPECTED", u.UUIDInvalid = "UUID_INVALID";
|
|
4704
|
-
})(Qt || (Qt = {}));
|
|
4705
|
-
class gs extends Error {
|
|
4706
|
-
constructor(e, t) {
|
|
4707
|
-
super(`${t} (${e})`), this.name = "ULIDError", this.code = e;
|
|
4708
|
-
}
|
|
4709
|
-
}
|
|
4710
|
-
function _d(u) {
|
|
4711
|
-
const e = Math.floor(u() * Ks) % Ks;
|
|
4712
|
-
return Co.charAt(e);
|
|
4713
|
-
}
|
|
4714
|
-
function bd(u) {
|
|
4715
|
-
const e = yd(), t = e && (e.crypto || e.msCrypto) || null;
|
|
4716
|
-
if (typeof (t == null ? void 0 : t.getRandomValues) == "function")
|
|
4717
|
-
return () => {
|
|
4718
|
-
const l = new Uint8Array(1);
|
|
4719
|
-
return t.getRandomValues(l), l[0] / 255;
|
|
4720
|
-
};
|
|
4721
|
-
if (typeof (t == null ? void 0 : t.randomBytes) == "function")
|
|
4722
|
-
return () => t.randomBytes(1).readUInt8() / 255;
|
|
4723
|
-
throw new gs(Qt.PRNGDetectFailure, "Failed to find a reliable PRNG");
|
|
4724
|
-
}
|
|
4725
|
-
function yd() {
|
|
4726
|
-
return Sd() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
4727
|
-
}
|
|
4728
|
-
function Cd(u, e) {
|
|
4729
|
-
let t = "";
|
|
4730
|
-
for (; u > 0; u--)
|
|
4731
|
-
t = _d(e) + t;
|
|
4732
|
-
return t;
|
|
4733
|
-
}
|
|
4734
|
-
function Ed(u, e = Eo) {
|
|
4735
|
-
if (isNaN(u))
|
|
4736
|
-
throw new gs(Qt.EncodeTimeValueMalformed, `Time must be a number: ${u}`);
|
|
4737
|
-
if (u > qr)
|
|
4738
|
-
throw new gs(Qt.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${qr}: ${u}`);
|
|
4739
|
-
if (u < 0)
|
|
4740
|
-
throw new gs(Qt.EncodeTimeNegative, `Time must be positive: ${u}`);
|
|
4741
|
-
if (Number.isInteger(u) === !1)
|
|
4742
|
-
throw new gs(Qt.EncodeTimeValueMalformed, `Time must be an integer: ${u}`);
|
|
4743
|
-
let t, l = "";
|
|
4744
|
-
for (let h = e; h > 0; h--)
|
|
4745
|
-
t = u % Ks, l = Co.charAt(t) + l, u = (u - t) / Ks;
|
|
4746
|
-
return l;
|
|
4747
|
-
}
|
|
4748
|
-
function Sd() {
|
|
4749
|
-
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
4750
|
-
}
|
|
4751
|
-
function jd(u, e) {
|
|
4752
|
-
const t = bd(), l = Date.now();
|
|
4753
|
-
return Ed(l, Eo) + Cd(gd, t);
|
|
4754
|
-
}
|
|
4755
|
-
const tt = [];
|
|
4756
|
-
for (let u = 0; u < 256; ++u)
|
|
4757
|
-
tt.push((u + 256).toString(16).slice(1));
|
|
4758
|
-
function wd(u, e = 0) {
|
|
4759
|
-
return (tt[u[e + 0]] + tt[u[e + 1]] + tt[u[e + 2]] + tt[u[e + 3]] + "-" + tt[u[e + 4]] + tt[u[e + 5]] + "-" + tt[u[e + 6]] + tt[u[e + 7]] + "-" + tt[u[e + 8]] + tt[u[e + 9]] + "-" + tt[u[e + 10]] + tt[u[e + 11]] + tt[u[e + 12]] + tt[u[e + 13]] + tt[u[e + 14]] + tt[u[e + 15]]).toLowerCase();
|
|
4760
|
-
}
|
|
4761
|
-
let bn;
|
|
4762
|
-
const Od = new Uint8Array(16);
|
|
4763
|
-
function Id() {
|
|
4764
|
-
if (!bn) {
|
|
4765
|
-
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4766
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4767
|
-
bn = crypto.getRandomValues.bind(crypto);
|
|
4768
|
-
}
|
|
4769
|
-
return bn(Od);
|
|
4770
|
-
}
|
|
4771
|
-
const Td = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ei = { randomUUID: Td };
|
|
4772
|
-
function xd(u, e, t) {
|
|
4773
|
-
var h;
|
|
4774
|
-
if (ei.randomUUID && !u)
|
|
4775
|
-
return ei.randomUUID();
|
|
4776
|
-
u = u || {};
|
|
4777
|
-
const l = u.random ?? ((h = u.rng) == null ? void 0 : h.call(u)) ?? Id();
|
|
4778
|
-
if (l.length < 16)
|
|
4779
|
-
throw new Error("Random bytes length must be >= 16");
|
|
4780
|
-
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, wd(l);
|
|
4781
|
-
}
|
|
4782
|
-
const Ad = /* @__PURE__ */ Et("ChVnb29nbGUvcnBjL2NvZGUucHJvdG8SCmdvb2dsZS5ycGMqtwIKBENvZGUSBgoCT0sQABINCglDQU5DRUxMRUQQARILCgdVTktOT1dOEAISFAoQSU5WQUxJRF9BUkdVTUVOVBADEhUKEURFQURMSU5FX0VYQ0VFREVEEAQSDQoJTk9UX0ZPVU5EEAUSEgoOQUxSRUFEWV9FWElTVFMQBhIVChFQRVJNSVNTSU9OX0RFTklFRBAHEhMKD1VOQVVUSEVOVElDQVRFRBAQEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhcKE0ZBSUxFRF9QUkVDT05ESVRJT04QCRILCgdBQk9SVEVEEAoSEAoMT1VUX09GX1JBTkdFEAsSEQoNVU5JTVBMRU1FTlRFRBAMEgwKCElOVEVSTkFMEA0SDwoLVU5BVkFJTEFCTEUQDhINCglEQVRBX0xPU1MQD0JYCg5jb20uZ29vZ2xlLnJwY0IJQ29kZVByb3RvUAFaM2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2NvZGU7Y29kZaICA1JQQ2IGcHJvdG8z"), Pd = /* @__PURE__ */ vl(Ad, 0), Rd = /* @__PURE__ */ Hn(Pd), Dd = /* @__PURE__ */ Et("ChVnb29nbGUvcnBjL2NvZGUucHJvdG8SCmdvb2dsZS5ycGMqtwIKBENvZGUSBgoCT0sQABINCglDQU5DRUxMRUQQARILCgdVTktOT1dOEAISFAoQSU5WQUxJRF9BUkdVTUVOVBADEhUKEURFQURMSU5FX0VYQ0VFREVEEAQSDQoJTk9UX0ZPVU5EEAUSEgoOQUxSRUFEWV9FWElTVFMQBhIVChFQRVJNSVNTSU9OX0RFTklFRBAHEhMKD1VOQVVUSEVOVElDQVRFRBAQEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhcKE0ZBSUxFRF9QUkVDT05ESVRJT04QCRILCgdBQk9SVEVEEAoSEAoMT1VUX09GX1JBTkdFEAsSEQoNVU5JTVBMRU1FTlRFRBAMEgwKCElOVEVSTkFMEA0SDwoLVU5BVkFJTEFCTEUQDhINCglEQVRBX0xPU1MQD0JYCg5jb20uZ29vZ2xlLnJwY0IJQ29kZVByb3RvUAFaM2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2NvZGU7Y29kZaICA1JQQ2IGcHJvdG8z"), So = /* @__PURE__ */ Et("CiBydW5tZS9zdHJlYW0vdjEvd2Vic29ja2V0cy5wcm90bxIPcnVubWUuc3RyZWFtLnYxIkIKD1dlYnNvY2tldFN0YXR1cxIeCgRjb2RlGAEgASgOMhAuZ29vZ2xlLnJwYy5Db2RlEg8KB21lc3NhZ2UYAiABKAkiGQoEUGluZxIRCgl0aW1lc3RhbXAYASABKAMiGQoEUG9uZxIRCgl0aW1lc3RhbXAYASABKAMiugEKEFdlYnNvY2tldFJlcXVlc3QSOgoPZXhlY3V0ZV9yZXF1ZXN0GAEgASgLMh8ucnVubWUucnVubmVyLnYyLkV4ZWN1dGVSZXF1ZXN0SAASIwoEcGluZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5QaW5nEhYKDWF1dGhvcml6YXRpb24YyAEgASgJEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWQi2AEKEVdlYnNvY2tldFJlc3BvbnNlEjwKEGV4ZWN1dGVfcmVzcG9uc2UYASABKAsyIC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlSAASIwoEcG9uZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5Qb25nEjEKBnN0YXR1cxjIASABKAsyIC5ydW5tZS5zdHJlYW0udjEuV2Vic29ja2V0U3RhdHVzEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWRCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3N0cmVhbS92MTtzdHJlYW12MWIGcHJvdG8z", [Dd, Zs]), In = /* @__PURE__ */ zs(So, 3), Md = /* @__PURE__ */ zs(So, 4);
|
|
4783
|
-
var Ld = {
|
|
4784
|
-
/***/
|
|
4785
|
-
"./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/google/protobuf/wrappers_pb.js": (
|
|
4786
|
-
/*!*********************************************************************************************************!*\
|
|
4787
|
-
!*** ./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/google/protobuf/wrappers_pb.js ***!
|
|
4788
|
-
\*********************************************************************************************************/
|
|
4789
|
-
/***/
|
|
4790
|
-
(u, e, t) => {
|
|
4791
|
-
t.r(e), t.d(e, {
|
|
4792
|
-
/* harmony export */
|
|
4793
|
-
BoolValue: () => (
|
|
4794
|
-
/* binding */
|
|
4795
|
-
_
|
|
4796
|
-
),
|
|
4797
|
-
/* harmony export */
|
|
4798
|
-
BytesValue: () => (
|
|
4799
|
-
/* binding */
|
|
4800
|
-
S
|
|
4801
|
-
),
|
|
4802
|
-
/* harmony export */
|
|
4803
|
-
DoubleValue: () => (
|
|
4804
|
-
/* binding */
|
|
4805
|
-
o
|
|
4806
|
-
),
|
|
4807
|
-
/* harmony export */
|
|
4808
|
-
FloatValue: () => (
|
|
4809
|
-
/* binding */
|
|
4810
|
-
a
|
|
4811
|
-
),
|
|
4812
|
-
/* harmony export */
|
|
4813
|
-
Int32Value: () => (
|
|
4814
|
-
/* binding */
|
|
4815
|
-
m
|
|
4816
|
-
),
|
|
4817
|
-
/* harmony export */
|
|
4818
|
-
Int64Value: () => (
|
|
4819
|
-
/* binding */
|
|
4820
|
-
s
|
|
4821
|
-
),
|
|
4822
|
-
/* harmony export */
|
|
4823
|
-
StringValue: () => (
|
|
4824
|
-
/* binding */
|
|
4825
|
-
y
|
|
4826
|
-
),
|
|
4827
|
-
/* harmony export */
|
|
4828
|
-
UInt32Value: () => (
|
|
4829
|
-
/* binding */
|
|
4830
|
-
f
|
|
4831
|
-
),
|
|
4832
|
-
/* harmony export */
|
|
4833
|
-
UInt64Value: () => (
|
|
4834
|
-
/* binding */
|
|
4835
|
-
d
|
|
4836
|
-
)
|
|
4837
|
-
/* harmony export */
|
|
4838
|
-
});
|
|
4839
|
-
var l = t(
|
|
4840
|
-
/*! @protobuf-ts/runtime */
|
|
4841
|
-
"./node_modules/@protobuf-ts/runtime/build/es2015/reflection-info.js"
|
|
4842
|
-
), h = t(
|
|
4843
|
-
/*! @protobuf-ts/runtime */
|
|
4844
|
-
"./node_modules/@protobuf-ts/runtime/build/es2015/message-type.js"
|
|
4845
|
-
);
|
|
4846
|
-
class v extends h.MessageType {
|
|
4847
|
-
constructor() {
|
|
4848
|
-
super("google.protobuf.DoubleValue", [
|
|
4849
|
-
{
|
|
4850
|
-
no: 1,
|
|
4851
|
-
name: "value",
|
|
4852
|
-
kind: "scalar",
|
|
4853
|
-
T: 1
|
|
4854
|
-
/*ScalarType.DOUBLE*/
|
|
4855
|
-
}
|
|
4856
|
-
]);
|
|
4857
|
-
}
|
|
4858
|
-
/**
|
|
4859
|
-
* Encode `DoubleValue` to JSON number.
|
|
4860
|
-
*/
|
|
4861
|
-
internalJsonWrite(j, O) {
|
|
4862
|
-
return this.refJsonWriter.scalar(2, j.value, "value", !1, !0);
|
|
4863
|
-
}
|
|
4864
|
-
/**
|
|
4865
|
-
* Decode `DoubleValue` from JSON number.
|
|
4866
|
-
*/
|
|
4867
|
-
internalJsonRead(j, O, I) {
|
|
4868
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 1, void 0, "value"), I;
|
|
4869
|
-
}
|
|
4870
|
-
}
|
|
4871
|
-
const o = new v();
|
|
4872
|
-
class r extends h.MessageType {
|
|
4873
|
-
constructor() {
|
|
4874
|
-
super("google.protobuf.FloatValue", [
|
|
4875
|
-
{
|
|
4876
|
-
no: 1,
|
|
4877
|
-
name: "value",
|
|
4878
|
-
kind: "scalar",
|
|
4879
|
-
T: 2
|
|
4880
|
-
/*ScalarType.FLOAT*/
|
|
4881
|
-
}
|
|
4882
|
-
]);
|
|
4883
|
-
}
|
|
4884
|
-
/**
|
|
4885
|
-
* Encode `FloatValue` to JSON number.
|
|
4886
|
-
*/
|
|
4887
|
-
internalJsonWrite(j, O) {
|
|
4888
|
-
return this.refJsonWriter.scalar(1, j.value, "value", !1, !0);
|
|
4889
|
-
}
|
|
4890
|
-
/**
|
|
4891
|
-
* Decode `FloatValue` from JSON number.
|
|
4892
|
-
*/
|
|
4893
|
-
internalJsonRead(j, O, I) {
|
|
4894
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 1, void 0, "value"), I;
|
|
4895
|
-
}
|
|
4896
|
-
}
|
|
4897
|
-
const a = new r();
|
|
4898
|
-
class n extends h.MessageType {
|
|
4899
|
-
constructor() {
|
|
4900
|
-
super("google.protobuf.Int64Value", [
|
|
4901
|
-
{
|
|
4902
|
-
no: 1,
|
|
4903
|
-
name: "value",
|
|
4904
|
-
kind: "scalar",
|
|
4905
|
-
T: 3
|
|
4906
|
-
/*ScalarType.INT64*/
|
|
4907
|
-
}
|
|
4908
|
-
]);
|
|
4909
|
-
}
|
|
4910
|
-
/**
|
|
4911
|
-
* Encode `Int64Value` to JSON string.
|
|
4912
|
-
*/
|
|
4913
|
-
internalJsonWrite(j, O) {
|
|
4914
|
-
return this.refJsonWriter.scalar(l.ScalarType.INT64, j.value, "value", !1, !0);
|
|
4915
|
-
}
|
|
4916
|
-
/**
|
|
4917
|
-
* Decode `Int64Value` from JSON string.
|
|
4918
|
-
*/
|
|
4919
|
-
internalJsonRead(j, O, I) {
|
|
4920
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, l.ScalarType.INT64, l.LongType.STRING, "value"), I;
|
|
4921
|
-
}
|
|
4922
|
-
}
|
|
4923
|
-
const s = new n();
|
|
4924
|
-
class i extends h.MessageType {
|
|
4925
|
-
constructor() {
|
|
4926
|
-
super("google.protobuf.UInt64Value", [
|
|
4927
|
-
{
|
|
4928
|
-
no: 1,
|
|
4929
|
-
name: "value",
|
|
4930
|
-
kind: "scalar",
|
|
4931
|
-
T: 4
|
|
4932
|
-
/*ScalarType.UINT64*/
|
|
4933
|
-
}
|
|
4934
|
-
]);
|
|
4935
|
-
}
|
|
4936
|
-
/**
|
|
4937
|
-
* Encode `UInt64Value` to JSON string.
|
|
4938
|
-
*/
|
|
4939
|
-
internalJsonWrite(j, O) {
|
|
4940
|
-
return this.refJsonWriter.scalar(l.ScalarType.UINT64, j.value, "value", !1, !0);
|
|
4941
|
-
}
|
|
4942
|
-
/**
|
|
4943
|
-
* Decode `UInt64Value` from JSON string.
|
|
4944
|
-
*/
|
|
4945
|
-
internalJsonRead(j, O, I) {
|
|
4946
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, l.ScalarType.UINT64, l.LongType.STRING, "value"), I;
|
|
4947
|
-
}
|
|
4948
|
-
}
|
|
4949
|
-
const d = new i();
|
|
4950
|
-
class p extends h.MessageType {
|
|
4951
|
-
constructor() {
|
|
4952
|
-
super("google.protobuf.Int32Value", [
|
|
4953
|
-
{
|
|
4954
|
-
no: 1,
|
|
4955
|
-
name: "value",
|
|
4956
|
-
kind: "scalar",
|
|
4957
|
-
T: 5
|
|
4958
|
-
/*ScalarType.INT32*/
|
|
4959
|
-
}
|
|
4960
|
-
]);
|
|
4961
|
-
}
|
|
4962
|
-
/**
|
|
4963
|
-
* Encode `Int32Value` to JSON string.
|
|
4964
|
-
*/
|
|
4965
|
-
internalJsonWrite(j, O) {
|
|
4966
|
-
return this.refJsonWriter.scalar(5, j.value, "value", !1, !0);
|
|
4967
|
-
}
|
|
4968
|
-
/**
|
|
4969
|
-
* Decode `Int32Value` from JSON string.
|
|
4970
|
-
*/
|
|
4971
|
-
internalJsonRead(j, O, I) {
|
|
4972
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 5, void 0, "value"), I;
|
|
4973
|
-
}
|
|
4974
|
-
}
|
|
4975
|
-
const m = new p();
|
|
4976
|
-
class c extends h.MessageType {
|
|
4977
|
-
constructor() {
|
|
4978
|
-
super("google.protobuf.UInt32Value", [
|
|
4979
|
-
{
|
|
4980
|
-
no: 1,
|
|
4981
|
-
name: "value",
|
|
4982
|
-
kind: "scalar",
|
|
4983
|
-
T: 13
|
|
4984
|
-
/*ScalarType.UINT32*/
|
|
4985
|
-
}
|
|
4986
|
-
]);
|
|
4987
|
-
}
|
|
4988
|
-
/**
|
|
4989
|
-
* Encode `UInt32Value` to JSON string.
|
|
4990
|
-
*/
|
|
4991
|
-
internalJsonWrite(j, O) {
|
|
4992
|
-
return this.refJsonWriter.scalar(13, j.value, "value", !1, !0);
|
|
4993
|
-
}
|
|
4994
|
-
/**
|
|
4995
|
-
* Decode `UInt32Value` from JSON string.
|
|
4996
|
-
*/
|
|
4997
|
-
internalJsonRead(j, O, I) {
|
|
4998
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 13, void 0, "value"), I;
|
|
4999
|
-
}
|
|
5000
|
-
}
|
|
5001
|
-
const f = new c();
|
|
5002
|
-
class g extends h.MessageType {
|
|
5003
|
-
constructor() {
|
|
5004
|
-
super("google.protobuf.BoolValue", [
|
|
5005
|
-
{
|
|
5006
|
-
no: 1,
|
|
5007
|
-
name: "value",
|
|
5008
|
-
kind: "scalar",
|
|
5009
|
-
T: 8
|
|
5010
|
-
/*ScalarType.BOOL*/
|
|
5011
|
-
}
|
|
5012
|
-
]);
|
|
5013
|
-
}
|
|
5014
|
-
/**
|
|
5015
|
-
* Encode `BoolValue` to JSON bool.
|
|
5016
|
-
*/
|
|
5017
|
-
internalJsonWrite(j, O) {
|
|
5018
|
-
return j.value;
|
|
5019
|
-
}
|
|
5020
|
-
/**
|
|
5021
|
-
* Decode `BoolValue` from JSON bool.
|
|
5022
|
-
*/
|
|
5023
|
-
internalJsonRead(j, O, I) {
|
|
5024
|
-
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 8, void 0, "value"), I;
|
|
3472
|
+
const f = new c();
|
|
3473
|
+
class g extends h.MessageType {
|
|
3474
|
+
constructor() {
|
|
3475
|
+
super("google.protobuf.BoolValue", [
|
|
3476
|
+
{
|
|
3477
|
+
no: 1,
|
|
3478
|
+
name: "value",
|
|
3479
|
+
kind: "scalar",
|
|
3480
|
+
T: 8
|
|
3481
|
+
/*ScalarType.BOOL*/
|
|
3482
|
+
}
|
|
3483
|
+
]);
|
|
3484
|
+
}
|
|
3485
|
+
/**
|
|
3486
|
+
* Encode `BoolValue` to JSON bool.
|
|
3487
|
+
*/
|
|
3488
|
+
internalJsonWrite(j, O) {
|
|
3489
|
+
return j.value;
|
|
3490
|
+
}
|
|
3491
|
+
/**
|
|
3492
|
+
* Decode `BoolValue` from JSON bool.
|
|
3493
|
+
*/
|
|
3494
|
+
internalJsonRead(j, O, I) {
|
|
3495
|
+
return I || (I = this.create()), I.value = this.refJsonReader.scalar(j, 8, void 0, "value"), I;
|
|
5025
3496
|
}
|
|
5026
3497
|
}
|
|
5027
3498
|
const _ = new g();
|
|
@@ -27986,7 +26457,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
27986
26457
|
}
|
|
27987
26458
|
}
|
|
27988
26459
|
o.JoinedCellData = m;
|
|
27989
|
-
let c = o.CharacterJoinerService = class
|
|
26460
|
+
let c = o.CharacterJoinerService = class Qi {
|
|
27990
26461
|
constructor(g) {
|
|
27991
26462
|
this._bufferService = g, this._characterJoiners = [], this._nextCharacterJoinerId = 0, this._workCell = new d.CellData();
|
|
27992
26463
|
}
|
|
@@ -28030,7 +26501,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
28030
26501
|
}
|
|
28031
26502
|
for (let j = 1; j < this._characterJoiners.length; j++) try {
|
|
28032
26503
|
const O = this._characterJoiners[j].handler(S);
|
|
28033
|
-
for (let I = 0; I < O.length; I++)
|
|
26504
|
+
for (let I = 0; I < O.length; I++) Qi._mergeRanges(E, O[I]);
|
|
28034
26505
|
} catch (O) {
|
|
28035
26506
|
console.error(O);
|
|
28036
26507
|
}
|
|
@@ -61838,603 +60309,2132 @@ Open Dashboard to configure it`);
|
|
|
61838
60309
|
...Object.keys(e.LANGUAGE_PREFIXES)
|
|
61839
60310
|
], e.EXTENSION_NAME = "stateful.runme";
|
|
61840
60311
|
var r;
|
|
61841
|
-
(function(n) {
|
|
61842
|
-
n.RecommendExtension = "runme.recommendExtension", n.NotebookGist = "runme.notebookGist", n.CellGist = "runme.cellGist", n.ShellWarning = "extension.shellWarning", n.OpenWorkspace = "cloud.OpenWorkspace";
|
|
61843
|
-
})(r || (e.TELEMETRY_EVENTS = r = {}));
|
|
60312
|
+
(function(n) {
|
|
60313
|
+
n.RecommendExtension = "runme.recommendExtension", n.NotebookGist = "runme.notebookGist", n.CellGist = "runme.cellGist", n.ShellWarning = "extension.shellWarning", n.OpenWorkspace = "cloud.OpenWorkspace";
|
|
60314
|
+
})(r || (e.TELEMETRY_EVENTS = r = {}));
|
|
60315
|
+
var a;
|
|
60316
|
+
(function(n) {
|
|
60317
|
+
n.RunmeCloud = "runme.cloud", n.RunmeChat = "runme.chat", n.RunmeSearch = "runme.search", n.NotebookEnvStore = "runme.notebook.envStore";
|
|
60318
|
+
})(a || (e.WebViews = a = {})), e.CATEGORY_SEPARATOR = ",", e.FOCUS_CELL_STORAGE_KEY = "focusCell", e.EXECUTION_CELL_STORAGE_KEY = "executionCell", e.CELL_CREATION_DATE_STORAGE_KEY = "cellCreationDate", e.SAVE_CELL_LOGIN_CONSENT_STORAGE_KEY = "loginConsent", e.GITHUB_USER_SIGNED_IN = "userSignedIn", e.PLATFORM_USER_SIGNED_IN = "platformUserSignedIn", e.RUNME_FRONTMATTER_PARSED = "runme.dev/frontmatterParsed";
|
|
60319
|
+
}
|
|
60320
|
+
),
|
|
60321
|
+
/***/
|
|
60322
|
+
"./src/extension/grpc/runner/v1.ts": (
|
|
60323
|
+
/*!*****************************************!*\
|
|
60324
|
+
!*** ./src/extension/grpc/runner/v1.ts ***!
|
|
60325
|
+
\*****************************************/
|
|
60326
|
+
/***/
|
|
60327
|
+
function(u, e, t) {
|
|
60328
|
+
var l = this && this.__createBinding || (Object.create ? function(v, o, r, a) {
|
|
60329
|
+
a === void 0 && (a = r);
|
|
60330
|
+
var n = Object.getOwnPropertyDescriptor(o, r);
|
|
60331
|
+
(!n || ("get" in n ? !o.__esModule : n.writable || n.configurable)) && (n = { enumerable: !0, get: function() {
|
|
60332
|
+
return o[r];
|
|
60333
|
+
} }), Object.defineProperty(v, a, n);
|
|
60334
|
+
} : function(v, o, r, a) {
|
|
60335
|
+
a === void 0 && (a = r), v[a] = o[r];
|
|
60336
|
+
}), h = this && this.__exportStar || function(v, o) {
|
|
60337
|
+
for (var r in v) r !== "default" && !Object.prototype.hasOwnProperty.call(o, r) && l(o, v, r);
|
|
60338
|
+
};
|
|
60339
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), h(t(
|
|
60340
|
+
/*! @buf/stateful_runme.community_timostamm-protobuf-ts/runme/runner/v1/runner_pb */
|
|
60341
|
+
"./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/runme/runner/v1/runner_pb.js"
|
|
60342
|
+
), e);
|
|
60343
|
+
}
|
|
60344
|
+
),
|
|
60345
|
+
/***/
|
|
60346
|
+
"./src/extension/resolvers/awsResolver.ts": (
|
|
60347
|
+
/*!************************************************!*\
|
|
60348
|
+
!*** ./src/extension/resolvers/awsResolver.ts ***!
|
|
60349
|
+
\************************************************/
|
|
60350
|
+
/***/
|
|
60351
|
+
(u, e) => {
|
|
60352
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.AWSResolver = e.AWSSupportedView = void 0;
|
|
60353
|
+
var t;
|
|
60354
|
+
(function(h) {
|
|
60355
|
+
h.EC2Instances = "ec2Instances", h.EC2InstanceDetails = "ec2InstanceDetails", h.EKSClusters = "eksClusters";
|
|
60356
|
+
})(t || (e.AWSSupportedView = t = {}));
|
|
60357
|
+
class l {
|
|
60358
|
+
constructor(v) {
|
|
60359
|
+
var r;
|
|
60360
|
+
this.cellText = v, this.supportedFeatures = /* @__PURE__ */ new Map(), this.supportedFeatures.set("/ec2/details", {
|
|
60361
|
+
view: t.EC2InstanceDetails,
|
|
60362
|
+
data: {
|
|
60363
|
+
urlRegex: /ec2\/home[?]?region=[^#]+#InstanceDetails:instanceId=([^\s&]+)/,
|
|
60364
|
+
region: "",
|
|
60365
|
+
instanceId: ""
|
|
60366
|
+
}
|
|
60367
|
+
}), this.supportedFeatures.set("/ec2/home", {
|
|
60368
|
+
view: t.EC2Instances,
|
|
60369
|
+
data: {
|
|
60370
|
+
region: ""
|
|
60371
|
+
}
|
|
60372
|
+
}), this.supportedFeatures.set("/eks/home", {
|
|
60373
|
+
view: t.EKSClusters,
|
|
60374
|
+
data: {
|
|
60375
|
+
region: ""
|
|
60376
|
+
}
|
|
60377
|
+
});
|
|
60378
|
+
const o = this.cellText;
|
|
60379
|
+
if (o.includes("console.aws.amazon.com")) {
|
|
60380
|
+
const a = new URL(o);
|
|
60381
|
+
let n = null;
|
|
60382
|
+
for (const [s, i] of this.supportedFeatures)
|
|
60383
|
+
if ((r = i.data.urlRegex) != null && r.test(o) || s === a.pathname) {
|
|
60384
|
+
n = i;
|
|
60385
|
+
break;
|
|
60386
|
+
}
|
|
60387
|
+
if (n) {
|
|
60388
|
+
if (n.data.urlRegex && n.data) {
|
|
60389
|
+
if (n.view === t.EC2InstanceDetails) {
|
|
60390
|
+
const i = /instanceId=([^&]+)/.exec(a.toString());
|
|
60391
|
+
i && (n.data.instanceId = i[0].split("=")[1]);
|
|
60392
|
+
const d = /region=([^&]+)/.exec(a.toString());
|
|
60393
|
+
d && (n.data.region = d[1].split("#")[0]);
|
|
60394
|
+
}
|
|
60395
|
+
const s = n.data.urlRegex.exec(a.pathname);
|
|
60396
|
+
if (s) {
|
|
60397
|
+
const [, ...i] = s;
|
|
60398
|
+
Object.keys(n.data).forEach((d, p) => {
|
|
60399
|
+
n.data[d] = i[p];
|
|
60400
|
+
});
|
|
60401
|
+
}
|
|
60402
|
+
}
|
|
60403
|
+
if (n.view === t.EKSClusters) {
|
|
60404
|
+
const s = /clusters\/([^&]+)/.exec(a.toString());
|
|
60405
|
+
if (s) {
|
|
60406
|
+
const [, i] = s;
|
|
60407
|
+
n.data.cluster = i;
|
|
60408
|
+
}
|
|
60409
|
+
}
|
|
60410
|
+
n.data.region = a.searchParams.get("region"), this.resolvedFeature = {
|
|
60411
|
+
...n
|
|
60412
|
+
};
|
|
60413
|
+
}
|
|
60414
|
+
}
|
|
60415
|
+
}
|
|
60416
|
+
match() {
|
|
60417
|
+
return !!this.resolvedFeature;
|
|
60418
|
+
}
|
|
60419
|
+
get() {
|
|
60420
|
+
return this.resolvedFeature;
|
|
60421
|
+
}
|
|
60422
|
+
dispose() {
|
|
60423
|
+
this.supportedFeatures.clear();
|
|
60424
|
+
}
|
|
60425
|
+
}
|
|
60426
|
+
e.AWSResolver = l;
|
|
60427
|
+
}
|
|
60428
|
+
),
|
|
60429
|
+
/***/
|
|
60430
|
+
"./src/extension/resolvers/gcpResolver.ts": (
|
|
60431
|
+
/*!************************************************!*\
|
|
60432
|
+
!*** ./src/extension/resolvers/gcpResolver.ts ***!
|
|
60433
|
+
\************************************************/
|
|
60434
|
+
/***/
|
|
60435
|
+
(u, e) => {
|
|
60436
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.GCPResolver = e.GCPSupportedView = void 0;
|
|
60437
|
+
var t;
|
|
60438
|
+
(function(h) {
|
|
60439
|
+
h.CLUSTERS = "clusters", h.CLUSTER = "cluster", h.VM_INSTANCES = "vm_instances", h.VM_INSTANCE = "vm_instance", h.CLOUD_RUN_SERVICES = "cloud_run_services", h.CLOUD_RUN_REVISIONS = "cloud_run_revisions";
|
|
60440
|
+
})(t || (e.GCPSupportedView = t = {}));
|
|
60441
|
+
class l {
|
|
60442
|
+
constructor(v) {
|
|
60443
|
+
var r;
|
|
60444
|
+
this.cellText = v, this.supportedFeatures = /* @__PURE__ */ new Map(), this.supportedFeatures.set("/kubernetes/list/overview", {
|
|
60445
|
+
view: t.CLUSTERS,
|
|
60446
|
+
data: {
|
|
60447
|
+
project: ""
|
|
60448
|
+
}
|
|
60449
|
+
}), this.supportedFeatures.set("/kubernetes/clusters/details", {
|
|
60450
|
+
view: t.CLUSTER,
|
|
60451
|
+
data: {
|
|
60452
|
+
location: "",
|
|
60453
|
+
cluster: "",
|
|
60454
|
+
urlRegex: /kubernetes\/clusters\/details\/([^/]+)\/([^/]+)\/details/,
|
|
60455
|
+
project: ""
|
|
60456
|
+
}
|
|
60457
|
+
}), this.supportedFeatures.set("/compute/instances", {
|
|
60458
|
+
view: t.VM_INSTANCES,
|
|
60459
|
+
data: {
|
|
60460
|
+
urlRegex: /compute\/instances[?]project=.+/,
|
|
60461
|
+
project: ""
|
|
60462
|
+
}
|
|
60463
|
+
}), this.supportedFeatures.set("/compute/instancesDetail", {
|
|
60464
|
+
view: t.VM_INSTANCE,
|
|
60465
|
+
data: {
|
|
60466
|
+
urlRegex: /compute\/instancesDetail\/zones\/([^/]+)\/instances\/([^/]+)(\?project=(.+))?/,
|
|
60467
|
+
location: "",
|
|
60468
|
+
instance: "",
|
|
60469
|
+
project: ""
|
|
60470
|
+
}
|
|
60471
|
+
}), this.supportedFeatures.set("/run", {
|
|
60472
|
+
view: t.CLOUD_RUN_SERVICES,
|
|
60473
|
+
data: {
|
|
60474
|
+
urlRegex: /run[?]project=.+/,
|
|
60475
|
+
project: ""
|
|
60476
|
+
}
|
|
60477
|
+
}), this.supportedFeatures.set("/revisions", {
|
|
60478
|
+
view: t.CLOUD_RUN_REVISIONS,
|
|
60479
|
+
data: {
|
|
60480
|
+
urlRegex: /^\/run\/detail\/([^/]+)\/([^/]+)\/revisions$/,
|
|
60481
|
+
region: "",
|
|
60482
|
+
service: ""
|
|
60483
|
+
}
|
|
60484
|
+
});
|
|
60485
|
+
const o = this.cellText;
|
|
60486
|
+
if (o.startsWith("https://console.cloud.google.com")) {
|
|
60487
|
+
const a = new URL(o);
|
|
60488
|
+
let n = null;
|
|
60489
|
+
for (const [s, i] of this.supportedFeatures)
|
|
60490
|
+
if ((r = i.data.urlRegex) != null && r.test(a.pathname) || s === a.pathname) {
|
|
60491
|
+
n = i;
|
|
60492
|
+
break;
|
|
60493
|
+
}
|
|
60494
|
+
if (n) {
|
|
60495
|
+
if (n.data.urlRegex && n.data) {
|
|
60496
|
+
const s = n.data.urlRegex.exec(a.pathname);
|
|
60497
|
+
if (s) {
|
|
60498
|
+
const [, ...i] = s;
|
|
60499
|
+
Object.keys(n.data).filter((d) => d !== "urlRegex").forEach((d, p) => {
|
|
60500
|
+
n.data[d] = i[p];
|
|
60501
|
+
});
|
|
60502
|
+
}
|
|
60503
|
+
}
|
|
60504
|
+
n.data.project = a.searchParams.get("project"), this.resolvedFeature = {
|
|
60505
|
+
...n
|
|
60506
|
+
};
|
|
60507
|
+
}
|
|
60508
|
+
}
|
|
60509
|
+
}
|
|
60510
|
+
match() {
|
|
60511
|
+
return !!this.resolvedFeature;
|
|
60512
|
+
}
|
|
60513
|
+
get() {
|
|
60514
|
+
return this.resolvedFeature;
|
|
60515
|
+
}
|
|
60516
|
+
dispose() {
|
|
60517
|
+
this.supportedFeatures.clear();
|
|
60518
|
+
}
|
|
60519
|
+
}
|
|
60520
|
+
e.GCPResolver = l;
|
|
60521
|
+
}
|
|
60522
|
+
),
|
|
60523
|
+
/***/
|
|
60524
|
+
"./src/features.ts": (
|
|
60525
|
+
/*!*************************!*\
|
|
60526
|
+
!*** ./src/features.ts ***!
|
|
60527
|
+
\*************************/
|
|
60528
|
+
/***/
|
|
60529
|
+
(u, e, t) => {
|
|
60530
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.FEATURES_CONTEXT_STATE_KEY = void 0;
|
|
60531
|
+
const l = t(
|
|
60532
|
+
/*! rxjs */
|
|
60533
|
+
"./node_modules/rxjs/dist/cjs/index.js"
|
|
60534
|
+
), h = t(
|
|
60535
|
+
/*! semver */
|
|
60536
|
+
"./node_modules/semver/index.js"
|
|
60537
|
+
);
|
|
60538
|
+
e.FEATURES_CONTEXT_STATE_KEY = "features";
|
|
60539
|
+
function v(_) {
|
|
60540
|
+
var y;
|
|
60541
|
+
return ((y = _ == null ? void 0 : _.runme) == null ? void 0 : y.features) || {};
|
|
60542
|
+
}
|
|
60543
|
+
function o(_, b, y = /* @__PURE__ */ new Map()) {
|
|
60544
|
+
const C = v(_), S = new l.BehaviorSubject({
|
|
60545
|
+
features: C,
|
|
60546
|
+
context: b
|
|
60547
|
+
});
|
|
60548
|
+
return p(S, b, y), S;
|
|
60549
|
+
}
|
|
60550
|
+
function r(_, b) {
|
|
60551
|
+
return b !== void 0 ? b === !0 : _ === !0;
|
|
60552
|
+
}
|
|
60553
|
+
function a(_, b) {
|
|
60554
|
+
return !_ || _ === "All" || b === _;
|
|
60555
|
+
}
|
|
60556
|
+
function n(_, b) {
|
|
60557
|
+
return !_ || !b ? !0 : (0, h.satisfies)(b, _);
|
|
60558
|
+
}
|
|
60559
|
+
function s(_, b) {
|
|
60560
|
+
return _ ? !!b : !0;
|
|
60561
|
+
}
|
|
60562
|
+
function i(_, b) {
|
|
60563
|
+
return _ ? b ? _[b] === !0 : !1 : !0;
|
|
60564
|
+
}
|
|
60565
|
+
function d(_, b, y, C = /* @__PURE__ */ new Map()) {
|
|
60566
|
+
const { os: S, vsCodeVersion: E, runmeVersion: j, extensionVersion: O, githubAuthRequired: I, statefulAuthRequired: T, enabledForExtensions: x } = b.conditions;
|
|
60567
|
+
return !(!r(b.enabled, C.get(_)) || !a(S, y == null ? void 0 : y.os) || !n(E, y == null ? void 0 : y.vsCodeVersion) || !n(j, y == null ? void 0 : y.runmeVersion) || !n(O, y == null ? void 0 : y.extensionVersion) || !s(I, y == null ? void 0 : y.githubAuth) || !s(T, y == null ? void 0 : y.statefulAuth) || !i(x, y == null ? void 0 : y.extensionId));
|
|
60568
|
+
}
|
|
60569
|
+
function p(_, b, y = /* @__PURE__ */ new Map()) {
|
|
60570
|
+
const C = _.getValue(), S = Object.entries(C.features).reduce((E, [j, O]) => ({
|
|
60571
|
+
...E,
|
|
60572
|
+
[j]: {
|
|
60573
|
+
...O,
|
|
60574
|
+
on: d(j, O, b, y)
|
|
60575
|
+
}
|
|
60576
|
+
}), {});
|
|
60577
|
+
return _.next({ features: S, context: b }), _;
|
|
60578
|
+
}
|
|
60579
|
+
function m(_, b, y, C) {
|
|
60580
|
+
var j;
|
|
60581
|
+
if (!_)
|
|
60582
|
+
return;
|
|
60583
|
+
const S = _.getValue(), E = { ...S.context || {}, [b]: y };
|
|
60584
|
+
E[b] !== ((j = S == null ? void 0 : S.context) == null ? void 0 : j[b]) && p(_, E, C);
|
|
60585
|
+
}
|
|
60586
|
+
function c(_) {
|
|
60587
|
+
return _ ? JSON.stringify(_.getValue()) : "";
|
|
60588
|
+
}
|
|
60589
|
+
function f(_) {
|
|
60590
|
+
const { features: b, context: y } = JSON.parse(_), C = new l.BehaviorSubject({
|
|
60591
|
+
features: b,
|
|
60592
|
+
context: y
|
|
60593
|
+
});
|
|
60594
|
+
return C.next({ features: b, context: C.getValue().context }), C;
|
|
60595
|
+
}
|
|
60596
|
+
function g(_, b) {
|
|
60597
|
+
if (!b)
|
|
60598
|
+
return !1;
|
|
60599
|
+
const y = b.getValue().features[_];
|
|
60600
|
+
return (y == null ? void 0 : y.on) ?? !1;
|
|
60601
|
+
}
|
|
60602
|
+
e.default = {
|
|
60603
|
+
loadState: o,
|
|
60604
|
+
updateState: p,
|
|
60605
|
+
updateContext: m,
|
|
60606
|
+
getSnapshot: c,
|
|
60607
|
+
loadSnapshot: f,
|
|
60608
|
+
isOn: g
|
|
60609
|
+
};
|
|
60610
|
+
}
|
|
60611
|
+
),
|
|
60612
|
+
/***/
|
|
60613
|
+
"./src/schema.ts": (
|
|
60614
|
+
/*!***********************!*\
|
|
60615
|
+
!*** ./src/schema.ts ***!
|
|
60616
|
+
\***********************/
|
|
60617
|
+
/***/
|
|
60618
|
+
(u, e, t) => {
|
|
60619
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CellAnnotationsSchema = e.SafeNotebookAnnotationsSchema = e.SafeCellAnnotationsSchema = e.AnnotationSchema = void 0;
|
|
60620
|
+
const l = t(
|
|
60621
|
+
/*! zod */
|
|
60622
|
+
"./node_modules/zod/dist/cjs/index.js"
|
|
60623
|
+
), h = t(
|
|
60624
|
+
/*! ./extension/grpc/runner/v1 */
|
|
60625
|
+
"./src/extension/grpc/runner/v1.ts"
|
|
60626
|
+
), v = (a, n) => a.trim().replaceAll(/[ ]{2,}/g, "").replaceAll(n, ""), o = (a) => l.z.preprocess((n) => (typeof n == "string" && (n = v(n, ",")), typeof n == "boolean" ? n : typeof n == "string" && n.toLowerCase() === "false" ? !1 : typeof n == "string" && n.toLowerCase() === "true" ? !0 : a), l.z.boolean()), r = (a, n = "expected a boolean value") => l.z.preprocess((s) => s ? (typeof s == "string" && (s = v(s, ",")), typeof s == "string" && s.toLowerCase() === "false" ? !1 : typeof s == "string" && s.toLowerCase() === "true" ? !0 : s) : a, l.z.boolean({ invalid_type_error: n }));
|
|
60627
|
+
e.AnnotationSchema = {
|
|
60628
|
+
"runme.dev/id": l.z.string().optional(),
|
|
60629
|
+
"runme.dev/name": l.z.string().optional(),
|
|
60630
|
+
"runme.dev/nameGenerated": r(!0).optional(),
|
|
60631
|
+
"runme.dev/fenced": r(!0).optional(),
|
|
60632
|
+
id: l.z.string().optional(),
|
|
60633
|
+
background: r(!1),
|
|
60634
|
+
interactive: r(!0),
|
|
60635
|
+
closeTerminalOnSuccess: r(!0),
|
|
60636
|
+
openTerminalOnError: r(!0),
|
|
60637
|
+
promptEnv: l.z.preprocess((a) => {
|
|
60638
|
+
if (typeof a == "string" && (a = v(a, ",")), typeof a == "boolean" && !a)
|
|
60639
|
+
return h.ResolveProgramRequest_Mode.SKIP_ALL;
|
|
60640
|
+
if (typeof a == "boolean" && a)
|
|
60641
|
+
return h.ResolveProgramRequest_Mode.UNSPECIFIED;
|
|
60642
|
+
if (typeof a == "string" && ["false", "no", "never"].includes(a.toLowerCase()))
|
|
60643
|
+
return h.ResolveProgramRequest_Mode.SKIP_ALL;
|
|
60644
|
+
if (typeof a == "string" && ["true", "yes", "always"].includes(a.toLowerCase()))
|
|
60645
|
+
return h.ResolveProgramRequest_Mode.PROMPT_ALL;
|
|
60646
|
+
if (typeof a == "string" && ["", "auto"].includes(a.toLowerCase()))
|
|
60647
|
+
return h.ResolveProgramRequest_Mode.UNSPECIFIED;
|
|
60648
|
+
if (typeof a == "string" && a) {
|
|
60649
|
+
const n = Number(a);
|
|
60650
|
+
if (Number.isFinite(n))
|
|
60651
|
+
return n;
|
|
60652
|
+
}
|
|
60653
|
+
}, l.z.nativeEnum(h.ResolveProgramRequest_Mode).default(h.ResolveProgramRequest_Mode.UNSPECIFIED)),
|
|
60654
|
+
excludeFromRunAll: r(!1),
|
|
60655
|
+
terminalRows: l.z.preprocess((a) => {
|
|
60656
|
+
if (typeof a == "string" && a) {
|
|
60657
|
+
const n = Number(a);
|
|
60658
|
+
if (Number.isFinite(n))
|
|
60659
|
+
return n;
|
|
60660
|
+
}
|
|
60661
|
+
if (typeof a == "number" && Number.isFinite(a))
|
|
60662
|
+
return a;
|
|
60663
|
+
}, l.z.number().int().positive().optional()),
|
|
60664
|
+
name: l.z.preprocess((a) => typeof a == "string" ? v(a, ",") : a, l.z.string().default("")),
|
|
60665
|
+
mimeType: l.z.string().optional().refine((a) => {
|
|
60666
|
+
if (a) {
|
|
60667
|
+
const [n, s, ...i] = a.split("/");
|
|
60668
|
+
if (!n || !s || i.length)
|
|
60669
|
+
return !1;
|
|
60670
|
+
}
|
|
60671
|
+
return !0;
|
|
60672
|
+
}, "mime type specification invalid format"),
|
|
60673
|
+
interpreter: l.z.string().optional().default(""),
|
|
60674
|
+
cwd: l.z.string().optional().default(""),
|
|
60675
|
+
category: l.z.string().default("")
|
|
60676
|
+
}, e.SafeCellAnnotationsSchema = l.z.object({
|
|
60677
|
+
...e.AnnotationSchema,
|
|
60678
|
+
background: o(!1),
|
|
60679
|
+
interactive: o(!0),
|
|
60680
|
+
closeTerminalOnSuccess: o(!0),
|
|
60681
|
+
openTerminalOnError: o(!0)
|
|
60682
|
+
}), e.SafeNotebookAnnotationsSchema = l.z.object({
|
|
60683
|
+
id: l.z.string(),
|
|
60684
|
+
version: l.z.string()
|
|
60685
|
+
}), e.CellAnnotationsSchema = l.z.object({
|
|
60686
|
+
...e.AnnotationSchema
|
|
60687
|
+
});
|
|
60688
|
+
}
|
|
60689
|
+
),
|
|
60690
|
+
/***/
|
|
60691
|
+
"./src/types.ts": (
|
|
60692
|
+
/*!**********************!*\
|
|
60693
|
+
!*** ./src/types.ts ***!
|
|
60694
|
+
\**********************/
|
|
60695
|
+
/***/
|
|
60696
|
+
(u, e, t) => {
|
|
60697
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.FeatureName = e.ExtensionName = e.EnvVarMode = e.NotebookAutoSaveSetting = e.APIMethod = e.GCPCloudRunActionType = e.AWSActionType = e.InstanceStatusType = e.GceActionType = e.Serializer = void 0, t(
|
|
60698
|
+
/*! ./constants */
|
|
60699
|
+
"./src/constants.ts"
|
|
60700
|
+
);
|
|
60701
|
+
var l;
|
|
60702
|
+
(function(p) {
|
|
60703
|
+
(function(m) {
|
|
60704
|
+
m[m.UNSPECIFIED = 0] = "UNSPECIFIED", m[m.ALL = 1] = "ALL", m[m.DOCUMENT = 2] = "DOCUMENT", m[m.CELL = 3] = "CELL";
|
|
60705
|
+
})(p.LifecycleIdentity || (p.LifecycleIdentity = {}));
|
|
60706
|
+
})(l || (e.Serializer = l = {}));
|
|
60707
|
+
var h;
|
|
60708
|
+
(function(p) {
|
|
60709
|
+
p.StopVMInstance = "stopVmInstance", p.StartVMInstance = "startVmInstance", p.SuspendVMInstance = "suspendVmInstance", p.ConnectViaSSH = "connectViaSsh";
|
|
60710
|
+
})(h || (e.GceActionType = h = {}));
|
|
60711
|
+
var v;
|
|
60712
|
+
(function(p) {
|
|
60713
|
+
p.Stopping = "STOPPING", p.Suspending = "SUSPENDING", p.Staging = "STAGING", p.Repairing = "REPAIRING", p.Provisioning = "PROVISIONING", p.Suspended = "SUSPENDED", p.Terminated = "TERMINATED", p.Running = "RUNNING";
|
|
60714
|
+
})(v || (e.InstanceStatusType = v = {}));
|
|
60715
|
+
var o;
|
|
60716
|
+
(function(p) {
|
|
60717
|
+
p.ConnectViaSSH = "connectViaSsh", p.EC2InstanceDetails = "aws:ec2InstanceDetails", p.EKSClusterDetails = "aws:eksClusterDetails";
|
|
60718
|
+
})(o || (e.AWSActionType = o = {}));
|
|
60719
|
+
var r;
|
|
60720
|
+
(function(p) {
|
|
60721
|
+
p.DescribeYAML = "describeYAML", p.DownloadYAML = "downloadYAML", p.ViewRevisions = "viewRevisions";
|
|
60722
|
+
})(r || (e.GCPCloudRunActionType = r = {}));
|
|
61844
60723
|
var a;
|
|
61845
|
-
(function(
|
|
61846
|
-
|
|
61847
|
-
})(a || (e.
|
|
60724
|
+
(function(p) {
|
|
60725
|
+
p.CreateCellExecution = "createCellExecution", p.UpdateCellExecution = "updateCellExecution", p.CreateEscalation = "createEscalation", p.TrackRunmeEvent = "trackRunmeEvent";
|
|
60726
|
+
})(a || (e.APIMethod = a = {}));
|
|
60727
|
+
var n;
|
|
60728
|
+
(function(p) {
|
|
60729
|
+
p.Yes = "yes", p.No = "no";
|
|
60730
|
+
})(n || (e.NotebookAutoSaveSetting = n = {}));
|
|
60731
|
+
var s;
|
|
60732
|
+
(function(p) {
|
|
60733
|
+
p.Docs = "docs", p.Shell = "shell";
|
|
60734
|
+
})(s || (e.EnvVarMode = s = {}));
|
|
60735
|
+
var i;
|
|
60736
|
+
(function(p) {
|
|
60737
|
+
p.StatefulRunme = "stateful.runme", p.StatefulPlatform = "stateful.platform";
|
|
60738
|
+
})(i || (e.ExtensionName = i = {}));
|
|
60739
|
+
var d;
|
|
60740
|
+
(function(p) {
|
|
60741
|
+
p.Gist = "Gist", p.Share = "Share", p.Escalate = "Escalate", p.ForceLogin = "ForceLogin", p.SignedIn = "SignedIn", p.RequireStatefulAuth = "RequireStatefulAuth", p.CopySelectionToClipboard = "CopySelectionToClipboard", p.NewTreeProvider = "NewTreeProvider", p.OpenTerminalOnStartup = "OpenTerminalOnStartup", p.HostedPlayground = "HostedPlayground", p.RecommendExtension = "RecommendExtension", p.ReporterAPI = "ReporterAPI", p.RemoteNotebooks = "RemoteNotebooks", p.AIProgress = "AIProgress";
|
|
60742
|
+
})(d || (e.FeatureName = d = {}));
|
|
61848
60743
|
}
|
|
61849
60744
|
),
|
|
61850
60745
|
/***/
|
|
61851
|
-
"./src/
|
|
61852
|
-
|
|
61853
|
-
!*** ./src/
|
|
61854
|
-
|
|
60746
|
+
"./src/utils/ansi.ts": (
|
|
60747
|
+
/*!***************************!*\
|
|
60748
|
+
!*** ./src/utils/ansi.ts ***!
|
|
60749
|
+
\***************************/
|
|
61855
60750
|
/***/
|
|
61856
|
-
|
|
61857
|
-
|
|
61858
|
-
|
|
61859
|
-
|
|
61860
|
-
|
|
61861
|
-
return o[r];
|
|
61862
|
-
} }), Object.defineProperty(v, a, n);
|
|
61863
|
-
} : function(v, o, r, a) {
|
|
61864
|
-
a === void 0 && (a = r), v[a] = o[r];
|
|
61865
|
-
}), h = this && this.__exportStar || function(v, o) {
|
|
61866
|
-
for (var r in v) r !== "default" && !Object.prototype.hasOwnProperty.call(o, r) && l(o, v, r);
|
|
61867
|
-
};
|
|
61868
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), h(t(
|
|
61869
|
-
/*! @buf/stateful_runme.community_timostamm-protobuf-ts/runme/runner/v1/runner_pb */
|
|
61870
|
-
"./node_modules/@buf/stateful_runme.community_timostamm-protobuf-ts/runme/runner/v1/runner_pb.js"
|
|
61871
|
-
), e);
|
|
60751
|
+
(u, e) => {
|
|
60752
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.stripANSI = t;
|
|
60753
|
+
function t(l) {
|
|
60754
|
+
return l.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, "");
|
|
60755
|
+
}
|
|
61872
60756
|
}
|
|
61873
60757
|
),
|
|
61874
60758
|
/***/
|
|
61875
|
-
"./src/
|
|
61876
|
-
|
|
61877
|
-
!*** ./src/
|
|
61878
|
-
|
|
60759
|
+
"./src/utils/messaging.ts": (
|
|
60760
|
+
/*!********************************!*\
|
|
60761
|
+
!*** ./src/utils/messaging.ts ***!
|
|
60762
|
+
\********************************/
|
|
61879
60763
|
/***/
|
|
61880
60764
|
(u, e) => {
|
|
61881
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.
|
|
61882
|
-
|
|
61883
|
-
|
|
61884
|
-
|
|
61885
|
-
|
|
61886
|
-
|
|
61887
|
-
|
|
61888
|
-
|
|
61889
|
-
|
|
61890
|
-
|
|
61891
|
-
|
|
61892
|
-
|
|
61893
|
-
|
|
61894
|
-
|
|
60765
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.postClientMessage = t, e.onClientMessage = l;
|
|
60766
|
+
async function t(h, v, o) {
|
|
60767
|
+
var a;
|
|
60768
|
+
const r = {
|
|
60769
|
+
type: v,
|
|
60770
|
+
output: o
|
|
60771
|
+
};
|
|
60772
|
+
return await ((a = h.postMessage) == null ? void 0 : a.call(h, r));
|
|
60773
|
+
}
|
|
60774
|
+
function l(h, v) {
|
|
60775
|
+
var o;
|
|
60776
|
+
return ((o = h.onDidReceiveMessage) == null ? void 0 : o.call(h, v)) ?? { dispose: () => {
|
|
60777
|
+
} };
|
|
60778
|
+
}
|
|
60779
|
+
}
|
|
60780
|
+
)
|
|
60781
|
+
/******/
|
|
60782
|
+
}, Wr = {};
|
|
60783
|
+
function vt(u) {
|
|
60784
|
+
var e = Wr[u];
|
|
60785
|
+
if (e !== void 0)
|
|
60786
|
+
return e.exports;
|
|
60787
|
+
var t = Wr[u] = {
|
|
60788
|
+
/******/
|
|
60789
|
+
// no module.id needed
|
|
60790
|
+
/******/
|
|
60791
|
+
// no module.loaded needed
|
|
60792
|
+
/******/
|
|
60793
|
+
exports: {}
|
|
60794
|
+
/******/
|
|
60795
|
+
};
|
|
60796
|
+
return cc[u].call(t.exports, t, t.exports, vt), t.exports;
|
|
60797
|
+
}
|
|
60798
|
+
vt.d = (u, e) => {
|
|
60799
|
+
for (var t in e)
|
|
60800
|
+
vt.o(e, t) && !vt.o(u, t) && Object.defineProperty(u, t, { enumerable: !0, get: e[t] });
|
|
60801
|
+
};
|
|
60802
|
+
vt.o = (u, e) => Object.prototype.hasOwnProperty.call(u, e);
|
|
60803
|
+
vt.r = (u) => {
|
|
60804
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(u, "__esModule", { value: !0 });
|
|
60805
|
+
};
|
|
60806
|
+
var Ps = {};
|
|
60807
|
+
(() => {
|
|
60808
|
+
var u = Ps;
|
|
60809
|
+
/*!*****************************!*\
|
|
60810
|
+
!*** ./src/client/index.ts ***!
|
|
60811
|
+
\*****************************/
|
|
60812
|
+
Object.defineProperty(u, "__esModule", { value: !0 }), u.ClientMessages = u.setContext = u.activate = void 0;
|
|
60813
|
+
const e = vt(
|
|
60814
|
+
/*! ../constants */
|
|
60815
|
+
"./src/constants.ts"
|
|
60816
|
+
);
|
|
60817
|
+
Object.defineProperty(u, "ClientMessages", { enumerable: !0, get: function() {
|
|
60818
|
+
return e.ClientMessages;
|
|
60819
|
+
} });
|
|
60820
|
+
const t = vt(
|
|
60821
|
+
/*! ./utils */
|
|
60822
|
+
"./src/client/utils.ts"
|
|
60823
|
+
);
|
|
60824
|
+
Object.defineProperty(u, "setContext", { enumerable: !0, get: function() {
|
|
60825
|
+
return t.setContext;
|
|
60826
|
+
} }), vt(
|
|
60827
|
+
/*! ./components */
|
|
60828
|
+
"./src/client/components/index.ts"
|
|
60829
|
+
);
|
|
60830
|
+
const l = (h) => ((0, t.setContext)(h), {
|
|
60831
|
+
renderOutputItem(v, o) {
|
|
60832
|
+
var n, s, i;
|
|
60833
|
+
const r = v.json();
|
|
60834
|
+
switch (r.type) {
|
|
60835
|
+
case e.OutputType.vercel:
|
|
60836
|
+
if (r.output.error) {
|
|
60837
|
+
a(r.output.error);
|
|
60838
|
+
break;
|
|
60839
|
+
}
|
|
60840
|
+
const d = document.createElement(e.RENDERERS.VercelOutput);
|
|
60841
|
+
d.setAttribute("content", JSON.stringify(r.output)), o.appendChild(d);
|
|
60842
|
+
break;
|
|
60843
|
+
case e.OutputType.daggerCall:
|
|
60844
|
+
if (!((n = r.output) != null && n.cellId))
|
|
60845
|
+
return;
|
|
60846
|
+
const p = document.createElement(e.RENDERERS.DaggerCli);
|
|
60847
|
+
p.setAttribute("cellId", r.output.cellId);
|
|
60848
|
+
const m = {
|
|
60849
|
+
...r.output,
|
|
60850
|
+
cli: {
|
|
60851
|
+
status: "active"
|
|
61895
60852
|
}
|
|
61896
|
-
}
|
|
61897
|
-
|
|
61898
|
-
|
|
61899
|
-
|
|
60853
|
+
};
|
|
60854
|
+
p.setAttribute("state", JSON.stringify(m)), o.appendChild(p);
|
|
60855
|
+
break;
|
|
60856
|
+
case e.OutputType.deno:
|
|
60857
|
+
if ((s = r.output) != null && s.error) {
|
|
60858
|
+
a(r.output.error);
|
|
60859
|
+
break;
|
|
60860
|
+
}
|
|
60861
|
+
const c = r.output || {}, f = document.createElement(e.RENDERERS.DenoOutput);
|
|
60862
|
+
f.setAttribute("state", JSON.stringify(c)), o.appendChild(f);
|
|
60863
|
+
break;
|
|
60864
|
+
case e.OutputType.outputItems:
|
|
60865
|
+
const g = decodeURIComponent(escape(window.atob(r.output.content))), _ = document.createElement(e.RENDERERS.ShellOutput);
|
|
60866
|
+
_.innerHTML = g, o.appendChild(_);
|
|
60867
|
+
const b = document.createElement(e.RENDERERS.ShellOutputItems);
|
|
60868
|
+
b.setAttribute("id", r.output.id), b.setAttribute("content", g), o.appendChild(b);
|
|
60869
|
+
break;
|
|
60870
|
+
case e.OutputType.annotations:
|
|
60871
|
+
const y = document.createElement(e.RENDERERS.EditAnnotations);
|
|
60872
|
+
y.setAttribute("annotations", JSON.stringify(r.output.annotations ?? [])), y.setAttribute("validationErrors", JSON.stringify(r.output.validationErrors ?? [])), y.setAttribute("settings", JSON.stringify(r.output.settings)), o.appendChild(y);
|
|
60873
|
+
break;
|
|
60874
|
+
case e.OutputType.terminal:
|
|
60875
|
+
const C = document.createElement(e.RENDERERS.TerminalView);
|
|
60876
|
+
C.setAttribute("id", r.output["runme.dev/id"]), C.setAttribute("fontFamily", r.output.fontFamily), typeof r.output.fontSize == "number" && C.setAttribute("fontSize", r.output.fontSize.toString()), r.output.cursorStyle && C.setAttribute("cursorStyle", r.output.cursorStyle), typeof r.output.cursorBlink == "boolean" && C.setAttribute("cursorBlink", r.output.cursorBlink ? "true" : "false"), typeof r.output.cursorWidth == "number" && C.setAttribute("cursorWidth", r.output.cursorWidth.toString()), typeof r.output.smoothScrollDuration == "number" && C.setAttribute("smoothScrollDuration", r.output.smoothScrollDuration.toString()), typeof r.output.scrollback == "number" && C.setAttribute("scrollback", r.output.scrollback.toString()), r.output.initialRows !== void 0 && C.setAttribute("initialRows", r.output.initialRows.toString()), r.output.content !== void 0 && C.setAttribute("initialContent", r.output.content), r.output.isAutoSaveEnabled && C.setAttribute("isAutoSaveEnabled", r.output.isAutoSaveEnabled.toString()), r.output.isPlatformAuthEnabled && C.setAttribute("isPlatformAuthEnabled", r.output.isPlatformAuthEnabled.toString()), r.output.isDaggerOutput && C.setAttribute("isDaggerOutput", r.output.isDaggerOutput.toString()), o.appendChild(C);
|
|
60877
|
+
break;
|
|
60878
|
+
case e.OutputType.error:
|
|
60879
|
+
a(r.output);
|
|
60880
|
+
break;
|
|
60881
|
+
case e.OutputType.github:
|
|
60882
|
+
const S = document.createElement(e.RENDERERS.GitHubWorkflowViewer);
|
|
60883
|
+
(i = r.output) != null && i.content && S.setAttribute("state", JSON.stringify(r.output)), o.appendChild(S);
|
|
60884
|
+
break;
|
|
60885
|
+
case e.OutputType.gcp:
|
|
60886
|
+
const E = document.createElement(e.RENDERERS.GCPView);
|
|
60887
|
+
r.output && E.setAttribute("state", JSON.stringify(r.output)), o.appendChild(E);
|
|
60888
|
+
break;
|
|
60889
|
+
case e.OutputType.aws:
|
|
60890
|
+
const j = document.createElement(e.RENDERERS.AWSView);
|
|
60891
|
+
r.output && j.setAttribute("state", JSON.stringify(r.output)), o.appendChild(j);
|
|
60892
|
+
break;
|
|
60893
|
+
default:
|
|
60894
|
+
o.innerHTML = "No renderer found!";
|
|
60895
|
+
}
|
|
60896
|
+
function a(d) {
|
|
60897
|
+
o.innerHTML = `⚠️ ${d}`;
|
|
60898
|
+
}
|
|
60899
|
+
},
|
|
60900
|
+
disposeOutputItem() {
|
|
60901
|
+
}
|
|
60902
|
+
});
|
|
60903
|
+
u.activate = l;
|
|
60904
|
+
})();
|
|
60905
|
+
const bs = Ps.ClientMessages;
|
|
60906
|
+
Ps.__esModule;
|
|
60907
|
+
Ps.activate;
|
|
60908
|
+
const dc = Ps.setContext, uc = /* @__PURE__ */ Et("ChVnb29nbGUvcnBjL2NvZGUucHJvdG8SCmdvb2dsZS5ycGMqtwIKBENvZGUSBgoCT0sQABINCglDQU5DRUxMRUQQARILCgdVTktOT1dOEAISFAoQSU5WQUxJRF9BUkdVTUVOVBADEhUKEURFQURMSU5FX0VYQ0VFREVEEAQSDQoJTk9UX0ZPVU5EEAUSEgoOQUxSRUFEWV9FWElTVFMQBhIVChFQRVJNSVNTSU9OX0RFTklFRBAHEhMKD1VOQVVUSEVOVElDQVRFRBAQEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhcKE0ZBSUxFRF9QUkVDT05ESVRJT04QCRILCgdBQk9SVEVEEAoSEAoMT1VUX09GX1JBTkdFEAsSEQoNVU5JTVBMRU1FTlRFRBAMEgwKCElOVEVSTkFMEA0SDwoLVU5BVkFJTEFCTEUQDhINCglEQVRBX0xPU1MQD0JYCg5jb20uZ29vZ2xlLnJwY0IJQ29kZVByb3RvUAFaM2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2NvZGU7Y29kZaICA1JQQ2IGcHJvdG8z"), hc = /* @__PURE__ */ vl(uc, 0), fc = /* @__PURE__ */ Hn(hc), mc = /* @__PURE__ */ Et("ChVnb29nbGUvcnBjL2NvZGUucHJvdG8SCmdvb2dsZS5ycGMqtwIKBENvZGUSBgoCT0sQABINCglDQU5DRUxMRUQQARILCgdVTktOT1dOEAISFAoQSU5WQUxJRF9BUkdVTUVOVBADEhUKEURFQURMSU5FX0VYQ0VFREVEEAQSDQoJTk9UX0ZPVU5EEAUSEgoOQUxSRUFEWV9FWElTVFMQBhIVChFQRVJNSVNTSU9OX0RFTklFRBAHEhMKD1VOQVVUSEVOVElDQVRFRBAQEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhcKE0ZBSUxFRF9QUkVDT05ESVRJT04QCRILCgdBQk9SVEVEEAoSEAoMT1VUX09GX1JBTkdFEAsSEQoNVU5JTVBMRU1FTlRFRBAMEgwKCElOVEVSTkFMEA0SDwoLVU5BVkFJTEFCTEUQDhINCglEQVRBX0xPU1MQD0JYCg5jb20uZ29vZ2xlLnJwY0IJQ29kZVByb3RvUAFaM2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2NvZGU7Y29kZaICA1JQQ2IGcHJvdG8z"), qi = /* @__PURE__ */ Et("CiBydW5tZS9zdHJlYW0vdjEvd2Vic29ja2V0cy5wcm90bxIPcnVubWUuc3RyZWFtLnYxIkIKD1dlYnNvY2tldFN0YXR1cxIeCgRjb2RlGAEgASgOMhAuZ29vZ2xlLnJwYy5Db2RlEg8KB21lc3NhZ2UYAiABKAkiGQoEUGluZxIRCgl0aW1lc3RhbXAYASABKAMiGQoEUG9uZxIRCgl0aW1lc3RhbXAYASABKAMiugEKEFdlYnNvY2tldFJlcXVlc3QSOgoPZXhlY3V0ZV9yZXF1ZXN0GAEgASgLMh8ucnVubWUucnVubmVyLnYyLkV4ZWN1dGVSZXF1ZXN0SAASIwoEcGluZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5QaW5nEhYKDWF1dGhvcml6YXRpb24YyAEgASgJEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWQi2AEKEVdlYnNvY2tldFJlc3BvbnNlEjwKEGV4ZWN1dGVfcmVzcG9uc2UYASABKAsyIC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlSAASIwoEcG9uZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5Qb25nEjEKBnN0YXR1cxjIASABKAsyIC5ydW5tZS5zdHJlYW0udjEuV2Vic29ja2V0U3RhdHVzEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWRCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3N0cmVhbS92MTtzdHJlYW12MWIGcHJvdG8z", [mc, Zs]), wn = /* @__PURE__ */ zs(qi, 3), pc = /* @__PURE__ */ zs(qi, 4);
|
|
60909
|
+
var On = function(u, e) {
|
|
60910
|
+
return On = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, l) {
|
|
60911
|
+
t.__proto__ = l;
|
|
60912
|
+
} || function(t, l) {
|
|
60913
|
+
for (var h in l) Object.prototype.hasOwnProperty.call(l, h) && (t[h] = l[h]);
|
|
60914
|
+
}, On(u, e);
|
|
60915
|
+
};
|
|
60916
|
+
function St(u, e) {
|
|
60917
|
+
if (typeof e != "function" && e !== null)
|
|
60918
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
60919
|
+
On(u, e);
|
|
60920
|
+
function t() {
|
|
60921
|
+
this.constructor = u;
|
|
60922
|
+
}
|
|
60923
|
+
u.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
60924
|
+
}
|
|
60925
|
+
function vc(u, e, t, l) {
|
|
60926
|
+
function h(v) {
|
|
60927
|
+
return v instanceof t ? v : new t(function(o) {
|
|
60928
|
+
o(v);
|
|
60929
|
+
});
|
|
60930
|
+
}
|
|
60931
|
+
return new (t || (t = Promise))(function(v, o) {
|
|
60932
|
+
function r(s) {
|
|
60933
|
+
try {
|
|
60934
|
+
n(l.next(s));
|
|
60935
|
+
} catch (i) {
|
|
60936
|
+
o(i);
|
|
60937
|
+
}
|
|
60938
|
+
}
|
|
60939
|
+
function a(s) {
|
|
60940
|
+
try {
|
|
60941
|
+
n(l.throw(s));
|
|
60942
|
+
} catch (i) {
|
|
60943
|
+
o(i);
|
|
60944
|
+
}
|
|
60945
|
+
}
|
|
60946
|
+
function n(s) {
|
|
60947
|
+
s.done ? v(s.value) : h(s.value).then(r, a);
|
|
60948
|
+
}
|
|
60949
|
+
n((l = l.apply(u, e || [])).next());
|
|
60950
|
+
});
|
|
60951
|
+
}
|
|
60952
|
+
function eo(u, e) {
|
|
60953
|
+
var t = { label: 0, sent: function() {
|
|
60954
|
+
if (v[0] & 1) throw v[1];
|
|
60955
|
+
return v[1];
|
|
60956
|
+
}, trys: [], ops: [] }, l, h, v, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
60957
|
+
return o.next = r(0), o.throw = r(1), o.return = r(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
60958
|
+
return this;
|
|
60959
|
+
}), o;
|
|
60960
|
+
function r(n) {
|
|
60961
|
+
return function(s) {
|
|
60962
|
+
return a([n, s]);
|
|
60963
|
+
};
|
|
60964
|
+
}
|
|
60965
|
+
function a(n) {
|
|
60966
|
+
if (l) throw new TypeError("Generator is already executing.");
|
|
60967
|
+
for (; o && (o = 0, n[0] && (t = 0)), t; ) try {
|
|
60968
|
+
if (l = 1, h && (v = n[0] & 2 ? h.return : n[0] ? h.throw || ((v = h.return) && v.call(h), 0) : h.next) && !(v = v.call(h, n[1])).done) return v;
|
|
60969
|
+
switch (h = 0, v && (n = [n[0] & 2, v.value]), n[0]) {
|
|
60970
|
+
case 0:
|
|
60971
|
+
case 1:
|
|
60972
|
+
v = n;
|
|
60973
|
+
break;
|
|
60974
|
+
case 4:
|
|
60975
|
+
return t.label++, { value: n[1], done: !1 };
|
|
60976
|
+
case 5:
|
|
60977
|
+
t.label++, h = n[1], n = [0];
|
|
60978
|
+
continue;
|
|
60979
|
+
case 7:
|
|
60980
|
+
n = t.ops.pop(), t.trys.pop();
|
|
60981
|
+
continue;
|
|
60982
|
+
default:
|
|
60983
|
+
if (v = t.trys, !(v = v.length > 0 && v[v.length - 1]) && (n[0] === 6 || n[0] === 2)) {
|
|
60984
|
+
t = 0;
|
|
60985
|
+
continue;
|
|
60986
|
+
}
|
|
60987
|
+
if (n[0] === 3 && (!v || n[1] > v[0] && n[1] < v[3])) {
|
|
60988
|
+
t.label = n[1];
|
|
60989
|
+
break;
|
|
60990
|
+
}
|
|
60991
|
+
if (n[0] === 6 && t.label < v[1]) {
|
|
60992
|
+
t.label = v[1], v = n;
|
|
60993
|
+
break;
|
|
60994
|
+
}
|
|
60995
|
+
if (v && t.label < v[2]) {
|
|
60996
|
+
t.label = v[2], t.ops.push(n);
|
|
60997
|
+
break;
|
|
60998
|
+
}
|
|
60999
|
+
v[2] && t.ops.pop(), t.trys.pop();
|
|
61000
|
+
continue;
|
|
61001
|
+
}
|
|
61002
|
+
n = e.call(u, t);
|
|
61003
|
+
} catch (s) {
|
|
61004
|
+
n = [6, s], h = 0;
|
|
61005
|
+
} finally {
|
|
61006
|
+
l = v = 0;
|
|
61007
|
+
}
|
|
61008
|
+
if (n[0] & 5) throw n[1];
|
|
61009
|
+
return { value: n[0] ? n[1] : void 0, done: !0 };
|
|
61010
|
+
}
|
|
61011
|
+
}
|
|
61012
|
+
function cs(u) {
|
|
61013
|
+
var e = typeof Symbol == "function" && Symbol.iterator, t = e && u[e], l = 0;
|
|
61014
|
+
if (t) return t.call(u);
|
|
61015
|
+
if (u && typeof u.length == "number") return {
|
|
61016
|
+
next: function() {
|
|
61017
|
+
return u && l >= u.length && (u = void 0), { value: u && u[l++], done: !u };
|
|
61018
|
+
}
|
|
61019
|
+
};
|
|
61020
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
61021
|
+
}
|
|
61022
|
+
function gt(u, e) {
|
|
61023
|
+
var t = typeof Symbol == "function" && u[Symbol.iterator];
|
|
61024
|
+
if (!t) return u;
|
|
61025
|
+
var l = t.call(u), h, v = [], o;
|
|
61026
|
+
try {
|
|
61027
|
+
for (; (e === void 0 || e-- > 0) && !(h = l.next()).done; ) v.push(h.value);
|
|
61028
|
+
} catch (r) {
|
|
61029
|
+
o = { error: r };
|
|
61030
|
+
} finally {
|
|
61031
|
+
try {
|
|
61032
|
+
h && !h.done && (t = l.return) && t.call(l);
|
|
61033
|
+
} finally {
|
|
61034
|
+
if (o) throw o.error;
|
|
61035
|
+
}
|
|
61036
|
+
}
|
|
61037
|
+
return v;
|
|
61038
|
+
}
|
|
61039
|
+
function Ct(u, e, t) {
|
|
61040
|
+
if (t || arguments.length === 2) for (var l = 0, h = e.length, v; l < h; l++)
|
|
61041
|
+
(v || !(l in e)) && (v || (v = Array.prototype.slice.call(e, 0, l)), v[l] = e[l]);
|
|
61042
|
+
return u.concat(v || Array.prototype.slice.call(e));
|
|
61043
|
+
}
|
|
61044
|
+
function is(u) {
|
|
61045
|
+
return this instanceof is ? (this.v = u, this) : new is(u);
|
|
61046
|
+
}
|
|
61047
|
+
function gc(u, e, t) {
|
|
61048
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
61049
|
+
var l = t.apply(u, e || []), h, v = [];
|
|
61050
|
+
return h = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), r("next"), r("throw"), r("return", o), h[Symbol.asyncIterator] = function() {
|
|
61051
|
+
return this;
|
|
61052
|
+
}, h;
|
|
61053
|
+
function o(p) {
|
|
61054
|
+
return function(m) {
|
|
61055
|
+
return Promise.resolve(m).then(p, i);
|
|
61056
|
+
};
|
|
61057
|
+
}
|
|
61058
|
+
function r(p, m) {
|
|
61059
|
+
l[p] && (h[p] = function(c) {
|
|
61060
|
+
return new Promise(function(f, g) {
|
|
61061
|
+
v.push([p, c, f, g]) > 1 || a(p, c);
|
|
61062
|
+
});
|
|
61063
|
+
}, m && (h[p] = m(h[p])));
|
|
61064
|
+
}
|
|
61065
|
+
function a(p, m) {
|
|
61066
|
+
try {
|
|
61067
|
+
n(l[p](m));
|
|
61068
|
+
} catch (c) {
|
|
61069
|
+
d(v[0][3], c);
|
|
61070
|
+
}
|
|
61071
|
+
}
|
|
61072
|
+
function n(p) {
|
|
61073
|
+
p.value instanceof is ? Promise.resolve(p.value.v).then(s, i) : d(v[0][2], p);
|
|
61074
|
+
}
|
|
61075
|
+
function s(p) {
|
|
61076
|
+
a("next", p);
|
|
61077
|
+
}
|
|
61078
|
+
function i(p) {
|
|
61079
|
+
a("throw", p);
|
|
61080
|
+
}
|
|
61081
|
+
function d(p, m) {
|
|
61082
|
+
p(m), v.shift(), v.length && a(v[0][0], v[0][1]);
|
|
61083
|
+
}
|
|
61084
|
+
}
|
|
61085
|
+
function _c(u) {
|
|
61086
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
61087
|
+
var e = u[Symbol.asyncIterator], t;
|
|
61088
|
+
return e ? e.call(u) : (u = typeof cs == "function" ? cs(u) : u[Symbol.iterator](), t = {}, l("next"), l("throw"), l("return"), t[Symbol.asyncIterator] = function() {
|
|
61089
|
+
return this;
|
|
61090
|
+
}, t);
|
|
61091
|
+
function l(v) {
|
|
61092
|
+
t[v] = u[v] && function(o) {
|
|
61093
|
+
return new Promise(function(r, a) {
|
|
61094
|
+
o = u[v](o), h(r, a, o.done, o.value);
|
|
61095
|
+
});
|
|
61096
|
+
};
|
|
61097
|
+
}
|
|
61098
|
+
function h(v, o, r, a) {
|
|
61099
|
+
Promise.resolve(a).then(function(n) {
|
|
61100
|
+
v({ value: n, done: r });
|
|
61101
|
+
}, o);
|
|
61102
|
+
}
|
|
61103
|
+
}
|
|
61104
|
+
function Ne(u) {
|
|
61105
|
+
return typeof u == "function";
|
|
61106
|
+
}
|
|
61107
|
+
function to(u) {
|
|
61108
|
+
var e = function(l) {
|
|
61109
|
+
Error.call(l), l.stack = new Error().stack;
|
|
61110
|
+
}, t = u(e);
|
|
61111
|
+
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
61112
|
+
}
|
|
61113
|
+
var vn = to(function(u) {
|
|
61114
|
+
return function(t) {
|
|
61115
|
+
u(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
61116
|
+
` + t.map(function(l, h) {
|
|
61117
|
+
return h + 1 + ") " + l.toString();
|
|
61118
|
+
}).join(`
|
|
61119
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
61120
|
+
};
|
|
61121
|
+
});
|
|
61122
|
+
function Hs(u, e) {
|
|
61123
|
+
if (u) {
|
|
61124
|
+
var t = u.indexOf(e);
|
|
61125
|
+
0 <= t && u.splice(t, 1);
|
|
61126
|
+
}
|
|
61127
|
+
}
|
|
61128
|
+
var Rs = function() {
|
|
61129
|
+
function u(e) {
|
|
61130
|
+
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
61131
|
+
}
|
|
61132
|
+
return u.prototype.unsubscribe = function() {
|
|
61133
|
+
var e, t, l, h, v;
|
|
61134
|
+
if (!this.closed) {
|
|
61135
|
+
this.closed = !0;
|
|
61136
|
+
var o = this._parentage;
|
|
61137
|
+
if (o)
|
|
61138
|
+
if (this._parentage = null, Array.isArray(o))
|
|
61139
|
+
try {
|
|
61140
|
+
for (var r = cs(o), a = r.next(); !a.done; a = r.next()) {
|
|
61141
|
+
var n = a.value;
|
|
61142
|
+
n.remove(this);
|
|
61900
61143
|
}
|
|
61901
|
-
}
|
|
61902
|
-
|
|
61903
|
-
|
|
61904
|
-
|
|
61144
|
+
} catch (c) {
|
|
61145
|
+
e = { error: c };
|
|
61146
|
+
} finally {
|
|
61147
|
+
try {
|
|
61148
|
+
a && !a.done && (t = r.return) && t.call(r);
|
|
61149
|
+
} finally {
|
|
61150
|
+
if (e) throw e.error;
|
|
61905
61151
|
}
|
|
61906
|
-
}
|
|
61907
|
-
|
|
61908
|
-
|
|
61909
|
-
|
|
61910
|
-
|
|
61911
|
-
|
|
61912
|
-
|
|
61913
|
-
|
|
61914
|
-
|
|
61915
|
-
|
|
61916
|
-
|
|
61917
|
-
|
|
61918
|
-
|
|
61919
|
-
|
|
61920
|
-
|
|
61921
|
-
|
|
61922
|
-
|
|
61923
|
-
|
|
61924
|
-
|
|
61925
|
-
|
|
61926
|
-
const [, ...i] = s;
|
|
61927
|
-
Object.keys(n.data).forEach((d, p) => {
|
|
61928
|
-
n.data[d] = i[p];
|
|
61929
|
-
});
|
|
61930
|
-
}
|
|
61931
|
-
}
|
|
61932
|
-
if (n.view === t.EKSClusters) {
|
|
61933
|
-
const s = /clusters\/([^&]+)/.exec(a.toString());
|
|
61934
|
-
if (s) {
|
|
61935
|
-
const [, i] = s;
|
|
61936
|
-
n.data.cluster = i;
|
|
61937
|
-
}
|
|
61938
|
-
}
|
|
61939
|
-
n.data.region = a.searchParams.get("region"), this.resolvedFeature = {
|
|
61940
|
-
...n
|
|
61941
|
-
};
|
|
61152
|
+
}
|
|
61153
|
+
else
|
|
61154
|
+
o.remove(this);
|
|
61155
|
+
var s = this.initialTeardown;
|
|
61156
|
+
if (Ne(s))
|
|
61157
|
+
try {
|
|
61158
|
+
s();
|
|
61159
|
+
} catch (c) {
|
|
61160
|
+
v = c instanceof vn ? c.errors : [c];
|
|
61161
|
+
}
|
|
61162
|
+
var i = this._finalizers;
|
|
61163
|
+
if (i) {
|
|
61164
|
+
this._finalizers = null;
|
|
61165
|
+
try {
|
|
61166
|
+
for (var d = cs(i), p = d.next(); !p.done; p = d.next()) {
|
|
61167
|
+
var m = p.value;
|
|
61168
|
+
try {
|
|
61169
|
+
Hr(m);
|
|
61170
|
+
} catch (c) {
|
|
61171
|
+
v = v ?? [], c instanceof vn ? v = Ct(Ct([], gt(v)), gt(c.errors)) : v.push(c);
|
|
61942
61172
|
}
|
|
61943
61173
|
}
|
|
61174
|
+
} catch (c) {
|
|
61175
|
+
l = { error: c };
|
|
61176
|
+
} finally {
|
|
61177
|
+
try {
|
|
61178
|
+
p && !p.done && (h = d.return) && h.call(d);
|
|
61179
|
+
} finally {
|
|
61180
|
+
if (l) throw l.error;
|
|
61181
|
+
}
|
|
61944
61182
|
}
|
|
61945
|
-
|
|
61946
|
-
|
|
61947
|
-
|
|
61948
|
-
|
|
61949
|
-
|
|
61950
|
-
|
|
61951
|
-
|
|
61952
|
-
|
|
61183
|
+
}
|
|
61184
|
+
if (v)
|
|
61185
|
+
throw new vn(v);
|
|
61186
|
+
}
|
|
61187
|
+
}, u.prototype.add = function(e) {
|
|
61188
|
+
var t;
|
|
61189
|
+
if (e && e !== this)
|
|
61190
|
+
if (this.closed)
|
|
61191
|
+
Hr(e);
|
|
61192
|
+
else {
|
|
61193
|
+
if (e instanceof u) {
|
|
61194
|
+
if (e.closed || e._hasParent(this))
|
|
61195
|
+
return;
|
|
61196
|
+
e._addParent(this);
|
|
61953
61197
|
}
|
|
61198
|
+
(this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
|
|
61954
61199
|
}
|
|
61955
|
-
|
|
61200
|
+
}, u.prototype._hasParent = function(e) {
|
|
61201
|
+
var t = this._parentage;
|
|
61202
|
+
return t === e || Array.isArray(t) && t.includes(e);
|
|
61203
|
+
}, u.prototype._addParent = function(e) {
|
|
61204
|
+
var t = this._parentage;
|
|
61205
|
+
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
61206
|
+
}, u.prototype._removeParent = function(e) {
|
|
61207
|
+
var t = this._parentage;
|
|
61208
|
+
t === e ? this._parentage = null : Array.isArray(t) && Hs(t, e);
|
|
61209
|
+
}, u.prototype.remove = function(e) {
|
|
61210
|
+
var t = this._finalizers;
|
|
61211
|
+
t && Hs(t, e), e instanceof u && e._removeParent(this);
|
|
61212
|
+
}, u.EMPTY = function() {
|
|
61213
|
+
var e = new u();
|
|
61214
|
+
return e.closed = !0, e;
|
|
61215
|
+
}(), u;
|
|
61216
|
+
}(), so = Rs.EMPTY;
|
|
61217
|
+
function no(u) {
|
|
61218
|
+
return u instanceof Rs || u && "closed" in u && Ne(u.remove) && Ne(u.add) && Ne(u.unsubscribe);
|
|
61219
|
+
}
|
|
61220
|
+
function Hr(u) {
|
|
61221
|
+
Ne(u) ? u() : u.unsubscribe();
|
|
61222
|
+
}
|
|
61223
|
+
var bc = {
|
|
61224
|
+
Promise: void 0
|
|
61225
|
+
}, yc = {
|
|
61226
|
+
setTimeout: function(u, e) {
|
|
61227
|
+
for (var t = [], l = 2; l < arguments.length; l++)
|
|
61228
|
+
t[l - 2] = arguments[l];
|
|
61229
|
+
return setTimeout.apply(void 0, Ct([u, e], gt(t)));
|
|
61230
|
+
},
|
|
61231
|
+
clearTimeout: function(u) {
|
|
61232
|
+
return clearTimeout(u);
|
|
61233
|
+
},
|
|
61234
|
+
delegate: void 0
|
|
61235
|
+
};
|
|
61236
|
+
function ro(u) {
|
|
61237
|
+
yc.setTimeout(function() {
|
|
61238
|
+
throw u;
|
|
61239
|
+
});
|
|
61240
|
+
}
|
|
61241
|
+
function ws() {
|
|
61242
|
+
}
|
|
61243
|
+
function Us(u) {
|
|
61244
|
+
u();
|
|
61245
|
+
}
|
|
61246
|
+
var Jn = function(u) {
|
|
61247
|
+
St(e, u);
|
|
61248
|
+
function e(t) {
|
|
61249
|
+
var l = u.call(this) || this;
|
|
61250
|
+
return l.isStopped = !1, t ? (l.destination = t, no(t) && t.add(l)) : l.destination = Sc, l;
|
|
61251
|
+
}
|
|
61252
|
+
return e.create = function(t, l, h) {
|
|
61253
|
+
return new Os(t, l, h);
|
|
61254
|
+
}, e.prototype.next = function(t) {
|
|
61255
|
+
this.isStopped || this._next(t);
|
|
61256
|
+
}, e.prototype.error = function(t) {
|
|
61257
|
+
this.isStopped || (this.isStopped = !0, this._error(t));
|
|
61258
|
+
}, e.prototype.complete = function() {
|
|
61259
|
+
this.isStopped || (this.isStopped = !0, this._complete());
|
|
61260
|
+
}, e.prototype.unsubscribe = function() {
|
|
61261
|
+
this.closed || (this.isStopped = !0, u.prototype.unsubscribe.call(this), this.destination = null);
|
|
61262
|
+
}, e.prototype._next = function(t) {
|
|
61263
|
+
this.destination.next(t);
|
|
61264
|
+
}, e.prototype._error = function(t) {
|
|
61265
|
+
try {
|
|
61266
|
+
this.destination.error(t);
|
|
61267
|
+
} finally {
|
|
61268
|
+
this.unsubscribe();
|
|
61956
61269
|
}
|
|
61957
|
-
)
|
|
61958
|
-
|
|
61959
|
-
|
|
61960
|
-
|
|
61961
|
-
|
|
61962
|
-
|
|
61963
|
-
|
|
61964
|
-
|
|
61965
|
-
|
|
61966
|
-
|
|
61967
|
-
|
|
61968
|
-
|
|
61969
|
-
|
|
61970
|
-
|
|
61971
|
-
|
|
61972
|
-
|
|
61973
|
-
|
|
61974
|
-
|
|
61975
|
-
|
|
61976
|
-
|
|
61977
|
-
|
|
61978
|
-
|
|
61979
|
-
|
|
61980
|
-
|
|
61981
|
-
|
|
61982
|
-
|
|
61983
|
-
|
|
61984
|
-
|
|
61985
|
-
|
|
61986
|
-
|
|
61987
|
-
|
|
61988
|
-
|
|
61989
|
-
|
|
61990
|
-
|
|
61991
|
-
|
|
61992
|
-
|
|
61993
|
-
|
|
61994
|
-
|
|
61995
|
-
|
|
61996
|
-
|
|
61997
|
-
|
|
61998
|
-
|
|
61999
|
-
|
|
62000
|
-
|
|
62001
|
-
|
|
62002
|
-
|
|
62003
|
-
|
|
62004
|
-
|
|
62005
|
-
|
|
62006
|
-
|
|
62007
|
-
|
|
62008
|
-
|
|
62009
|
-
|
|
62010
|
-
|
|
62011
|
-
|
|
62012
|
-
|
|
62013
|
-
|
|
62014
|
-
|
|
62015
|
-
|
|
62016
|
-
|
|
62017
|
-
|
|
62018
|
-
|
|
62019
|
-
|
|
62020
|
-
|
|
62021
|
-
|
|
62022
|
-
|
|
62023
|
-
|
|
62024
|
-
|
|
62025
|
-
|
|
62026
|
-
|
|
62027
|
-
|
|
62028
|
-
|
|
62029
|
-
|
|
62030
|
-
|
|
62031
|
-
|
|
62032
|
-
|
|
62033
|
-
|
|
62034
|
-
|
|
62035
|
-
|
|
62036
|
-
|
|
61270
|
+
}, e.prototype._complete = function() {
|
|
61271
|
+
try {
|
|
61272
|
+
this.destination.complete();
|
|
61273
|
+
} finally {
|
|
61274
|
+
this.unsubscribe();
|
|
61275
|
+
}
|
|
61276
|
+
}, e;
|
|
61277
|
+
}(Rs), Cc = function() {
|
|
61278
|
+
function u(e) {
|
|
61279
|
+
this.partialObserver = e;
|
|
61280
|
+
}
|
|
61281
|
+
return u.prototype.next = function(e) {
|
|
61282
|
+
var t = this.partialObserver;
|
|
61283
|
+
if (t.next)
|
|
61284
|
+
try {
|
|
61285
|
+
t.next(e);
|
|
61286
|
+
} catch (l) {
|
|
61287
|
+
Ls(l);
|
|
61288
|
+
}
|
|
61289
|
+
}, u.prototype.error = function(e) {
|
|
61290
|
+
var t = this.partialObserver;
|
|
61291
|
+
if (t.error)
|
|
61292
|
+
try {
|
|
61293
|
+
t.error(e);
|
|
61294
|
+
} catch (l) {
|
|
61295
|
+
Ls(l);
|
|
61296
|
+
}
|
|
61297
|
+
else
|
|
61298
|
+
Ls(e);
|
|
61299
|
+
}, u.prototype.complete = function() {
|
|
61300
|
+
var e = this.partialObserver;
|
|
61301
|
+
if (e.complete)
|
|
61302
|
+
try {
|
|
61303
|
+
e.complete();
|
|
61304
|
+
} catch (t) {
|
|
61305
|
+
Ls(t);
|
|
61306
|
+
}
|
|
61307
|
+
}, u;
|
|
61308
|
+
}(), Os = function(u) {
|
|
61309
|
+
St(e, u);
|
|
61310
|
+
function e(t, l, h) {
|
|
61311
|
+
var v = u.call(this) || this, o;
|
|
61312
|
+
return Ne(t) || !t ? o = {
|
|
61313
|
+
next: t ?? void 0,
|
|
61314
|
+
error: l ?? void 0,
|
|
61315
|
+
complete: h ?? void 0
|
|
61316
|
+
} : o = t, v.destination = new Cc(o), v;
|
|
61317
|
+
}
|
|
61318
|
+
return e;
|
|
61319
|
+
}(Jn);
|
|
61320
|
+
function Ls(u) {
|
|
61321
|
+
ro(u);
|
|
61322
|
+
}
|
|
61323
|
+
function Ec(u) {
|
|
61324
|
+
throw u;
|
|
61325
|
+
}
|
|
61326
|
+
var Sc = {
|
|
61327
|
+
closed: !0,
|
|
61328
|
+
next: ws,
|
|
61329
|
+
error: Ec,
|
|
61330
|
+
complete: ws
|
|
61331
|
+
}, Qn = function() {
|
|
61332
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
61333
|
+
}();
|
|
61334
|
+
function en(u) {
|
|
61335
|
+
return u;
|
|
61336
|
+
}
|
|
61337
|
+
function jc(u) {
|
|
61338
|
+
return u.length === 0 ? en : u.length === 1 ? u[0] : function(t) {
|
|
61339
|
+
return u.reduce(function(l, h) {
|
|
61340
|
+
return h(l);
|
|
61341
|
+
}, t);
|
|
61342
|
+
};
|
|
61343
|
+
}
|
|
61344
|
+
var Xe = function() {
|
|
61345
|
+
function u(e) {
|
|
61346
|
+
e && (this._subscribe = e);
|
|
61347
|
+
}
|
|
61348
|
+
return u.prototype.lift = function(e) {
|
|
61349
|
+
var t = new u();
|
|
61350
|
+
return t.source = this, t.operator = e, t;
|
|
61351
|
+
}, u.prototype.subscribe = function(e, t, l) {
|
|
61352
|
+
var h = this, v = Oc(e) ? e : new Os(e, t, l);
|
|
61353
|
+
return Us(function() {
|
|
61354
|
+
var o = h, r = o.operator, a = o.source;
|
|
61355
|
+
v.add(r ? r.call(v, a) : a ? h._subscribe(v) : h._trySubscribe(v));
|
|
61356
|
+
}), v;
|
|
61357
|
+
}, u.prototype._trySubscribe = function(e) {
|
|
61358
|
+
try {
|
|
61359
|
+
return this._subscribe(e);
|
|
61360
|
+
} catch (t) {
|
|
61361
|
+
e.error(t);
|
|
61362
|
+
}
|
|
61363
|
+
}, u.prototype.forEach = function(e, t) {
|
|
61364
|
+
var l = this;
|
|
61365
|
+
return t = Kr(t), new t(function(h, v) {
|
|
61366
|
+
var o = new Os({
|
|
61367
|
+
next: function(r) {
|
|
61368
|
+
try {
|
|
61369
|
+
e(r);
|
|
61370
|
+
} catch (a) {
|
|
61371
|
+
v(a), o.unsubscribe();
|
|
62037
61372
|
}
|
|
61373
|
+
},
|
|
61374
|
+
error: v,
|
|
61375
|
+
complete: h
|
|
61376
|
+
});
|
|
61377
|
+
l.subscribe(o);
|
|
61378
|
+
});
|
|
61379
|
+
}, u.prototype._subscribe = function(e) {
|
|
61380
|
+
var t;
|
|
61381
|
+
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
|
61382
|
+
}, u.prototype[Qn] = function() {
|
|
61383
|
+
return this;
|
|
61384
|
+
}, u.prototype.pipe = function() {
|
|
61385
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
61386
|
+
e[t] = arguments[t];
|
|
61387
|
+
return jc(e)(this);
|
|
61388
|
+
}, u.prototype.toPromise = function(e) {
|
|
61389
|
+
var t = this;
|
|
61390
|
+
return e = Kr(e), new e(function(l, h) {
|
|
61391
|
+
var v;
|
|
61392
|
+
t.subscribe(function(o) {
|
|
61393
|
+
return v = o;
|
|
61394
|
+
}, function(o) {
|
|
61395
|
+
return h(o);
|
|
61396
|
+
}, function() {
|
|
61397
|
+
return l(v);
|
|
61398
|
+
});
|
|
61399
|
+
});
|
|
61400
|
+
}, u.create = function(e) {
|
|
61401
|
+
return new u(e);
|
|
61402
|
+
}, u;
|
|
61403
|
+
}();
|
|
61404
|
+
function Kr(u) {
|
|
61405
|
+
var e;
|
|
61406
|
+
return (e = u ?? bc.Promise) !== null && e !== void 0 ? e : Promise;
|
|
61407
|
+
}
|
|
61408
|
+
function wc(u) {
|
|
61409
|
+
return u && Ne(u.next) && Ne(u.error) && Ne(u.complete);
|
|
61410
|
+
}
|
|
61411
|
+
function Oc(u) {
|
|
61412
|
+
return u && u instanceof Jn || wc(u) && no(u);
|
|
61413
|
+
}
|
|
61414
|
+
function Ic(u) {
|
|
61415
|
+
return Ne(u == null ? void 0 : u.lift);
|
|
61416
|
+
}
|
|
61417
|
+
function st(u) {
|
|
61418
|
+
return function(e) {
|
|
61419
|
+
if (Ic(e))
|
|
61420
|
+
return e.lift(function(t) {
|
|
61421
|
+
try {
|
|
61422
|
+
return u(t, this);
|
|
61423
|
+
} catch (l) {
|
|
61424
|
+
this.error(l);
|
|
62038
61425
|
}
|
|
62039
|
-
|
|
62040
|
-
|
|
62041
|
-
|
|
62042
|
-
|
|
62043
|
-
|
|
62044
|
-
|
|
62045
|
-
|
|
62046
|
-
|
|
61426
|
+
});
|
|
61427
|
+
throw new TypeError("Unable to lift unknown Observable type");
|
|
61428
|
+
};
|
|
61429
|
+
}
|
|
61430
|
+
function ze(u, e, t, l, h) {
|
|
61431
|
+
return new Tc(u, e, t, l, h);
|
|
61432
|
+
}
|
|
61433
|
+
var Tc = function(u) {
|
|
61434
|
+
St(e, u);
|
|
61435
|
+
function e(t, l, h, v, o, r) {
|
|
61436
|
+
var a = u.call(this, t) || this;
|
|
61437
|
+
return a.onFinalize = o, a.shouldUnsubscribe = r, a._next = l ? function(n) {
|
|
61438
|
+
try {
|
|
61439
|
+
l(n);
|
|
61440
|
+
} catch (s) {
|
|
61441
|
+
t.error(s);
|
|
61442
|
+
}
|
|
61443
|
+
} : u.prototype._next, a._error = v ? function(n) {
|
|
61444
|
+
try {
|
|
61445
|
+
v(n);
|
|
61446
|
+
} catch (s) {
|
|
61447
|
+
t.error(s);
|
|
61448
|
+
} finally {
|
|
61449
|
+
this.unsubscribe();
|
|
61450
|
+
}
|
|
61451
|
+
} : u.prototype._error, a._complete = h ? function() {
|
|
61452
|
+
try {
|
|
61453
|
+
h();
|
|
61454
|
+
} catch (n) {
|
|
61455
|
+
t.error(n);
|
|
61456
|
+
} finally {
|
|
61457
|
+
this.unsubscribe();
|
|
61458
|
+
}
|
|
61459
|
+
} : u.prototype._complete, a;
|
|
61460
|
+
}
|
|
61461
|
+
return e.prototype.unsubscribe = function() {
|
|
61462
|
+
var t;
|
|
61463
|
+
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
61464
|
+
var l = this.closed;
|
|
61465
|
+
u.prototype.unsubscribe.call(this), !l && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
61466
|
+
}
|
|
61467
|
+
}, e;
|
|
61468
|
+
}(Jn), xc = to(function(u) {
|
|
61469
|
+
return function() {
|
|
61470
|
+
u(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
61471
|
+
};
|
|
61472
|
+
}), dt = function(u) {
|
|
61473
|
+
St(e, u);
|
|
61474
|
+
function e() {
|
|
61475
|
+
var t = u.call(this) || this;
|
|
61476
|
+
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
61477
|
+
}
|
|
61478
|
+
return e.prototype.lift = function(t) {
|
|
61479
|
+
var l = new Gr(this, this);
|
|
61480
|
+
return l.operator = t, l;
|
|
61481
|
+
}, e.prototype._throwIfClosed = function() {
|
|
61482
|
+
if (this.closed)
|
|
61483
|
+
throw new xc();
|
|
61484
|
+
}, e.prototype.next = function(t) {
|
|
61485
|
+
var l = this;
|
|
61486
|
+
Us(function() {
|
|
61487
|
+
var h, v;
|
|
61488
|
+
if (l._throwIfClosed(), !l.isStopped) {
|
|
61489
|
+
l.currentObservers || (l.currentObservers = Array.from(l.observers));
|
|
61490
|
+
try {
|
|
61491
|
+
for (var o = cs(l.currentObservers), r = o.next(); !r.done; r = o.next()) {
|
|
61492
|
+
var a = r.value;
|
|
61493
|
+
a.next(t);
|
|
61494
|
+
}
|
|
61495
|
+
} catch (n) {
|
|
61496
|
+
h = { error: n };
|
|
61497
|
+
} finally {
|
|
61498
|
+
try {
|
|
61499
|
+
r && !r.done && (v = o.return) && v.call(o);
|
|
61500
|
+
} finally {
|
|
61501
|
+
if (h) throw h.error;
|
|
61502
|
+
}
|
|
62047
61503
|
}
|
|
62048
61504
|
}
|
|
62049
|
-
|
|
61505
|
+
});
|
|
61506
|
+
}, e.prototype.error = function(t) {
|
|
61507
|
+
var l = this;
|
|
61508
|
+
Us(function() {
|
|
61509
|
+
if (l._throwIfClosed(), !l.isStopped) {
|
|
61510
|
+
l.hasError = l.isStopped = !0, l.thrownError = t;
|
|
61511
|
+
for (var h = l.observers; h.length; )
|
|
61512
|
+
h.shift().error(t);
|
|
61513
|
+
}
|
|
61514
|
+
});
|
|
61515
|
+
}, e.prototype.complete = function() {
|
|
61516
|
+
var t = this;
|
|
61517
|
+
Us(function() {
|
|
61518
|
+
if (t._throwIfClosed(), !t.isStopped) {
|
|
61519
|
+
t.isStopped = !0;
|
|
61520
|
+
for (var l = t.observers; l.length; )
|
|
61521
|
+
l.shift().complete();
|
|
61522
|
+
}
|
|
61523
|
+
});
|
|
61524
|
+
}, e.prototype.unsubscribe = function() {
|
|
61525
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
61526
|
+
}, Object.defineProperty(e.prototype, "observed", {
|
|
61527
|
+
get: function() {
|
|
61528
|
+
var t;
|
|
61529
|
+
return ((t = this.observers) === null || t === void 0 ? void 0 : t.length) > 0;
|
|
61530
|
+
},
|
|
61531
|
+
enumerable: !1,
|
|
61532
|
+
configurable: !0
|
|
61533
|
+
}), e.prototype._trySubscribe = function(t) {
|
|
61534
|
+
return this._throwIfClosed(), u.prototype._trySubscribe.call(this, t);
|
|
61535
|
+
}, e.prototype._subscribe = function(t) {
|
|
61536
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
61537
|
+
}, e.prototype._innerSubscribe = function(t) {
|
|
61538
|
+
var l = this, h = this, v = h.hasError, o = h.isStopped, r = h.observers;
|
|
61539
|
+
return v || o ? so : (this.currentObservers = null, r.push(t), new Rs(function() {
|
|
61540
|
+
l.currentObservers = null, Hs(r, t);
|
|
61541
|
+
}));
|
|
61542
|
+
}, e.prototype._checkFinalizedStatuses = function(t) {
|
|
61543
|
+
var l = this, h = l.hasError, v = l.thrownError, o = l.isStopped;
|
|
61544
|
+
h ? t.error(v) : o && t.complete();
|
|
61545
|
+
}, e.prototype.asObservable = function() {
|
|
61546
|
+
var t = new Xe();
|
|
61547
|
+
return t.source = this, t;
|
|
61548
|
+
}, e.create = function(t, l) {
|
|
61549
|
+
return new Gr(t, l);
|
|
61550
|
+
}, e;
|
|
61551
|
+
}(Xe), Gr = function(u) {
|
|
61552
|
+
St(e, u);
|
|
61553
|
+
function e(t, l) {
|
|
61554
|
+
var h = u.call(this) || this;
|
|
61555
|
+
return h.destination = t, h.source = l, h;
|
|
61556
|
+
}
|
|
61557
|
+
return e.prototype.next = function(t) {
|
|
61558
|
+
var l, h;
|
|
61559
|
+
(h = (l = this.destination) === null || l === void 0 ? void 0 : l.next) === null || h === void 0 || h.call(l, t);
|
|
61560
|
+
}, e.prototype.error = function(t) {
|
|
61561
|
+
var l, h;
|
|
61562
|
+
(h = (l = this.destination) === null || l === void 0 ? void 0 : l.error) === null || h === void 0 || h.call(l, t);
|
|
61563
|
+
}, e.prototype.complete = function() {
|
|
61564
|
+
var t, l;
|
|
61565
|
+
(l = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || l === void 0 || l.call(t);
|
|
61566
|
+
}, e.prototype._subscribe = function(t) {
|
|
61567
|
+
var l, h;
|
|
61568
|
+
return (h = (l = this.source) === null || l === void 0 ? void 0 : l.subscribe(t)) !== null && h !== void 0 ? h : so;
|
|
61569
|
+
}, e;
|
|
61570
|
+
}(dt), Ac = {
|
|
61571
|
+
now: function() {
|
|
61572
|
+
return Date.now();
|
|
61573
|
+
}
|
|
61574
|
+
}, Pc = function(u) {
|
|
61575
|
+
St(e, u);
|
|
61576
|
+
function e(t, l) {
|
|
61577
|
+
return u.call(this) || this;
|
|
61578
|
+
}
|
|
61579
|
+
return e.prototype.schedule = function(t, l) {
|
|
61580
|
+
return this;
|
|
61581
|
+
}, e;
|
|
61582
|
+
}(Rs), zr = {
|
|
61583
|
+
setInterval: function(u, e) {
|
|
61584
|
+
for (var t = [], l = 2; l < arguments.length; l++)
|
|
61585
|
+
t[l - 2] = arguments[l];
|
|
61586
|
+
return setInterval.apply(void 0, Ct([u, e], gt(t)));
|
|
61587
|
+
},
|
|
61588
|
+
clearInterval: function(u) {
|
|
61589
|
+
return clearInterval(u);
|
|
61590
|
+
},
|
|
61591
|
+
delegate: void 0
|
|
61592
|
+
}, Rc = function(u) {
|
|
61593
|
+
St(e, u);
|
|
61594
|
+
function e(t, l) {
|
|
61595
|
+
var h = u.call(this, t, l) || this;
|
|
61596
|
+
return h.scheduler = t, h.work = l, h.pending = !1, h;
|
|
61597
|
+
}
|
|
61598
|
+
return e.prototype.schedule = function(t, l) {
|
|
61599
|
+
var h;
|
|
61600
|
+
if (l === void 0 && (l = 0), this.closed)
|
|
61601
|
+
return this;
|
|
61602
|
+
this.state = t;
|
|
61603
|
+
var v = this.id, o = this.scheduler;
|
|
61604
|
+
return v != null && (this.id = this.recycleAsyncId(o, v, l)), this.pending = !0, this.delay = l, this.id = (h = this.id) !== null && h !== void 0 ? h : this.requestAsyncId(o, this.id, l), this;
|
|
61605
|
+
}, e.prototype.requestAsyncId = function(t, l, h) {
|
|
61606
|
+
return h === void 0 && (h = 0), zr.setInterval(t.flush.bind(t, this), h);
|
|
61607
|
+
}, e.prototype.recycleAsyncId = function(t, l, h) {
|
|
61608
|
+
if (h === void 0 && (h = 0), h != null && this.delay === h && this.pending === !1)
|
|
61609
|
+
return l;
|
|
61610
|
+
l != null && zr.clearInterval(l);
|
|
61611
|
+
}, e.prototype.execute = function(t, l) {
|
|
61612
|
+
if (this.closed)
|
|
61613
|
+
return new Error("executing a cancelled action");
|
|
61614
|
+
this.pending = !1;
|
|
61615
|
+
var h = this._execute(t, l);
|
|
61616
|
+
if (h)
|
|
61617
|
+
return h;
|
|
61618
|
+
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
61619
|
+
}, e.prototype._execute = function(t, l) {
|
|
61620
|
+
var h = !1, v;
|
|
61621
|
+
try {
|
|
61622
|
+
this.work(t);
|
|
61623
|
+
} catch (o) {
|
|
61624
|
+
h = !0, v = o || new Error("Scheduled action threw falsy error");
|
|
61625
|
+
}
|
|
61626
|
+
if (h)
|
|
61627
|
+
return this.unsubscribe(), v;
|
|
61628
|
+
}, e.prototype.unsubscribe = function() {
|
|
61629
|
+
if (!this.closed) {
|
|
61630
|
+
var t = this, l = t.id, h = t.scheduler, v = h.actions;
|
|
61631
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, Hs(v, this), l != null && (this.id = this.recycleAsyncId(h, l, null)), this.delay = null, u.prototype.unsubscribe.call(this);
|
|
62050
61632
|
}
|
|
62051
|
-
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
-
|
|
62055
|
-
|
|
62056
|
-
|
|
62057
|
-
|
|
62058
|
-
|
|
62059
|
-
|
|
62060
|
-
|
|
62061
|
-
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62066
|
-
|
|
62067
|
-
|
|
62068
|
-
|
|
62069
|
-
|
|
62070
|
-
|
|
62071
|
-
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
62075
|
-
|
|
62076
|
-
|
|
62077
|
-
|
|
62078
|
-
|
|
62079
|
-
|
|
62080
|
-
|
|
62081
|
-
|
|
62082
|
-
|
|
62083
|
-
|
|
62084
|
-
|
|
62085
|
-
|
|
62086
|
-
|
|
62087
|
-
|
|
62088
|
-
|
|
62089
|
-
|
|
61633
|
+
}, e;
|
|
61634
|
+
}(Pc), Zr = function() {
|
|
61635
|
+
function u(e, t) {
|
|
61636
|
+
t === void 0 && (t = u.now), this.schedulerActionCtor = e, this.now = t;
|
|
61637
|
+
}
|
|
61638
|
+
return u.prototype.schedule = function(e, t, l) {
|
|
61639
|
+
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(l, t);
|
|
61640
|
+
}, u.now = Ac.now, u;
|
|
61641
|
+
}(), Dc = function(u) {
|
|
61642
|
+
St(e, u);
|
|
61643
|
+
function e(t, l) {
|
|
61644
|
+
l === void 0 && (l = Zr.now);
|
|
61645
|
+
var h = u.call(this, t, l) || this;
|
|
61646
|
+
return h.actions = [], h._active = !1, h;
|
|
61647
|
+
}
|
|
61648
|
+
return e.prototype.flush = function(t) {
|
|
61649
|
+
var l = this.actions;
|
|
61650
|
+
if (this._active) {
|
|
61651
|
+
l.push(t);
|
|
61652
|
+
return;
|
|
61653
|
+
}
|
|
61654
|
+
var h;
|
|
61655
|
+
this._active = !0;
|
|
61656
|
+
do
|
|
61657
|
+
if (h = t.execute(t.state, t.delay))
|
|
61658
|
+
break;
|
|
61659
|
+
while (t = l.shift());
|
|
61660
|
+
if (this._active = !1, h) {
|
|
61661
|
+
for (; t = l.shift(); )
|
|
61662
|
+
t.unsubscribe();
|
|
61663
|
+
throw h;
|
|
61664
|
+
}
|
|
61665
|
+
}, e;
|
|
61666
|
+
}(Zr), tn = new Dc(Rc), Mc = tn, io = new Xe(function(u) {
|
|
61667
|
+
return u.complete();
|
|
61668
|
+
});
|
|
61669
|
+
function oo(u) {
|
|
61670
|
+
return u && Ne(u.schedule);
|
|
61671
|
+
}
|
|
61672
|
+
function qn(u) {
|
|
61673
|
+
return u[u.length - 1];
|
|
61674
|
+
}
|
|
61675
|
+
function Lc(u) {
|
|
61676
|
+
return Ne(qn(u)) ? u.pop() : void 0;
|
|
61677
|
+
}
|
|
61678
|
+
function ao(u) {
|
|
61679
|
+
return oo(qn(u)) ? u.pop() : void 0;
|
|
61680
|
+
}
|
|
61681
|
+
function kc(u, e) {
|
|
61682
|
+
return typeof qn(u) == "number" ? u.pop() : e;
|
|
61683
|
+
}
|
|
61684
|
+
var er = function(u) {
|
|
61685
|
+
return u && typeof u.length == "number" && typeof u != "function";
|
|
61686
|
+
};
|
|
61687
|
+
function lo(u) {
|
|
61688
|
+
return Ne(u == null ? void 0 : u.then);
|
|
61689
|
+
}
|
|
61690
|
+
function co(u) {
|
|
61691
|
+
return Ne(u[Qn]);
|
|
61692
|
+
}
|
|
61693
|
+
function uo(u) {
|
|
61694
|
+
return Symbol.asyncIterator && Ne(u == null ? void 0 : u[Symbol.asyncIterator]);
|
|
61695
|
+
}
|
|
61696
|
+
function ho(u) {
|
|
61697
|
+
return new TypeError("You provided " + (u !== null && typeof u == "object" ? "an invalid object" : "'" + u + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
61698
|
+
}
|
|
61699
|
+
function Bc() {
|
|
61700
|
+
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
61701
|
+
}
|
|
61702
|
+
var fo = Bc();
|
|
61703
|
+
function mo(u) {
|
|
61704
|
+
return Ne(u == null ? void 0 : u[fo]);
|
|
61705
|
+
}
|
|
61706
|
+
function po(u) {
|
|
61707
|
+
return gc(this, arguments, function() {
|
|
61708
|
+
var t, l, h, v;
|
|
61709
|
+
return eo(this, function(o) {
|
|
61710
|
+
switch (o.label) {
|
|
61711
|
+
case 0:
|
|
61712
|
+
t = u.getReader(), o.label = 1;
|
|
61713
|
+
case 1:
|
|
61714
|
+
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
61715
|
+
case 2:
|
|
61716
|
+
return [4, is(t.read())];
|
|
61717
|
+
case 3:
|
|
61718
|
+
return l = o.sent(), h = l.value, v = l.done, v ? [4, is(void 0)] : [3, 5];
|
|
61719
|
+
case 4:
|
|
61720
|
+
return [2, o.sent()];
|
|
61721
|
+
case 5:
|
|
61722
|
+
return [4, is(h)];
|
|
61723
|
+
case 6:
|
|
61724
|
+
return [4, o.sent()];
|
|
61725
|
+
case 7:
|
|
61726
|
+
return o.sent(), [3, 2];
|
|
61727
|
+
case 8:
|
|
61728
|
+
return [3, 10];
|
|
61729
|
+
case 9:
|
|
61730
|
+
return t.releaseLock(), [7];
|
|
61731
|
+
case 10:
|
|
61732
|
+
return [2];
|
|
62090
61733
|
}
|
|
62091
|
-
|
|
62092
|
-
|
|
61734
|
+
});
|
|
61735
|
+
});
|
|
61736
|
+
}
|
|
61737
|
+
function vo(u) {
|
|
61738
|
+
return Ne(u == null ? void 0 : u.getReader);
|
|
61739
|
+
}
|
|
61740
|
+
function qe(u) {
|
|
61741
|
+
if (u instanceof Xe)
|
|
61742
|
+
return u;
|
|
61743
|
+
if (u != null) {
|
|
61744
|
+
if (co(u))
|
|
61745
|
+
return Nc(u);
|
|
61746
|
+
if (er(u))
|
|
61747
|
+
return $c(u);
|
|
61748
|
+
if (lo(u))
|
|
61749
|
+
return Uc(u);
|
|
61750
|
+
if (uo(u))
|
|
61751
|
+
return go(u);
|
|
61752
|
+
if (mo(u))
|
|
61753
|
+
return Fc(u);
|
|
61754
|
+
if (vo(u))
|
|
61755
|
+
return Vc(u);
|
|
61756
|
+
}
|
|
61757
|
+
throw ho(u);
|
|
61758
|
+
}
|
|
61759
|
+
function Nc(u) {
|
|
61760
|
+
return new Xe(function(e) {
|
|
61761
|
+
var t = u[Qn]();
|
|
61762
|
+
if (Ne(t.subscribe))
|
|
61763
|
+
return t.subscribe(e);
|
|
61764
|
+
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
61765
|
+
});
|
|
61766
|
+
}
|
|
61767
|
+
function $c(u) {
|
|
61768
|
+
return new Xe(function(e) {
|
|
61769
|
+
for (var t = 0; t < u.length && !e.closed; t++)
|
|
61770
|
+
e.next(u[t]);
|
|
61771
|
+
e.complete();
|
|
61772
|
+
});
|
|
61773
|
+
}
|
|
61774
|
+
function Uc(u) {
|
|
61775
|
+
return new Xe(function(e) {
|
|
61776
|
+
u.then(function(t) {
|
|
61777
|
+
e.closed || (e.next(t), e.complete());
|
|
61778
|
+
}, function(t) {
|
|
61779
|
+
return e.error(t);
|
|
61780
|
+
}).then(null, ro);
|
|
61781
|
+
});
|
|
61782
|
+
}
|
|
61783
|
+
function Fc(u) {
|
|
61784
|
+
return new Xe(function(e) {
|
|
61785
|
+
var t, l;
|
|
61786
|
+
try {
|
|
61787
|
+
for (var h = cs(u), v = h.next(); !v.done; v = h.next()) {
|
|
61788
|
+
var o = v.value;
|
|
61789
|
+
if (e.next(o), e.closed)
|
|
61790
|
+
return;
|
|
62093
61791
|
}
|
|
62094
|
-
|
|
62095
|
-
|
|
62096
|
-
|
|
61792
|
+
} catch (r) {
|
|
61793
|
+
t = { error: r };
|
|
61794
|
+
} finally {
|
|
61795
|
+
try {
|
|
61796
|
+
v && !v.done && (l = h.return) && l.call(h);
|
|
61797
|
+
} finally {
|
|
61798
|
+
if (t) throw t.error;
|
|
62097
61799
|
}
|
|
62098
|
-
|
|
62099
|
-
|
|
62100
|
-
|
|
62101
|
-
|
|
62102
|
-
|
|
62103
|
-
|
|
62104
|
-
|
|
62105
|
-
|
|
62106
|
-
|
|
61800
|
+
}
|
|
61801
|
+
e.complete();
|
|
61802
|
+
});
|
|
61803
|
+
}
|
|
61804
|
+
function go(u) {
|
|
61805
|
+
return new Xe(function(e) {
|
|
61806
|
+
Wc(u, e).catch(function(t) {
|
|
61807
|
+
return e.error(t);
|
|
61808
|
+
});
|
|
61809
|
+
});
|
|
61810
|
+
}
|
|
61811
|
+
function Vc(u) {
|
|
61812
|
+
return go(po(u));
|
|
61813
|
+
}
|
|
61814
|
+
function Wc(u, e) {
|
|
61815
|
+
var t, l, h, v;
|
|
61816
|
+
return vc(this, void 0, void 0, function() {
|
|
61817
|
+
var o, r;
|
|
61818
|
+
return eo(this, function(a) {
|
|
61819
|
+
switch (a.label) {
|
|
61820
|
+
case 0:
|
|
61821
|
+
a.trys.push([0, 5, 6, 11]), t = _c(u), a.label = 1;
|
|
61822
|
+
case 1:
|
|
61823
|
+
return [4, t.next()];
|
|
61824
|
+
case 2:
|
|
61825
|
+
if (l = a.sent(), !!l.done) return [3, 4];
|
|
61826
|
+
if (o = l.value, e.next(o), e.closed)
|
|
61827
|
+
return [2];
|
|
61828
|
+
a.label = 3;
|
|
61829
|
+
case 3:
|
|
61830
|
+
return [3, 1];
|
|
61831
|
+
case 4:
|
|
61832
|
+
return [3, 11];
|
|
61833
|
+
case 5:
|
|
61834
|
+
return r = a.sent(), h = { error: r }, [3, 11];
|
|
61835
|
+
case 6:
|
|
61836
|
+
return a.trys.push([6, , 9, 10]), l && !l.done && (v = t.return) ? [4, v.call(t)] : [3, 8];
|
|
61837
|
+
case 7:
|
|
61838
|
+
a.sent(), a.label = 8;
|
|
61839
|
+
case 8:
|
|
61840
|
+
return [3, 10];
|
|
61841
|
+
case 9:
|
|
61842
|
+
if (h) throw h.error;
|
|
61843
|
+
return [7];
|
|
61844
|
+
case 10:
|
|
61845
|
+
return [7];
|
|
61846
|
+
case 11:
|
|
61847
|
+
return e.complete(), [2];
|
|
62107
61848
|
}
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
61849
|
+
});
|
|
61850
|
+
});
|
|
61851
|
+
}
|
|
61852
|
+
function qt(u, e, t, l, h) {
|
|
61853
|
+
l === void 0 && (l = 0), h === void 0 && (h = !1);
|
|
61854
|
+
var v = e.schedule(function() {
|
|
61855
|
+
t(), h ? u.add(this.schedule(null, l)) : this.unsubscribe();
|
|
61856
|
+
}, l);
|
|
61857
|
+
if (u.add(v), !h)
|
|
61858
|
+
return v;
|
|
61859
|
+
}
|
|
61860
|
+
function _o(u, e) {
|
|
61861
|
+
return e === void 0 && (e = 0), st(function(t, l) {
|
|
61862
|
+
t.subscribe(ze(l, function(h) {
|
|
61863
|
+
return qt(l, u, function() {
|
|
61864
|
+
return l.next(h);
|
|
61865
|
+
}, e);
|
|
61866
|
+
}, function() {
|
|
61867
|
+
return qt(l, u, function() {
|
|
61868
|
+
return l.complete();
|
|
61869
|
+
}, e);
|
|
61870
|
+
}, function(h) {
|
|
61871
|
+
return qt(l, u, function() {
|
|
61872
|
+
return l.error(h);
|
|
61873
|
+
}, e);
|
|
61874
|
+
}));
|
|
61875
|
+
});
|
|
61876
|
+
}
|
|
61877
|
+
function bo(u, e) {
|
|
61878
|
+
return e === void 0 && (e = 0), st(function(t, l) {
|
|
61879
|
+
l.add(u.schedule(function() {
|
|
61880
|
+
return t.subscribe(l);
|
|
61881
|
+
}, e));
|
|
61882
|
+
});
|
|
61883
|
+
}
|
|
61884
|
+
function Hc(u, e) {
|
|
61885
|
+
return qe(u).pipe(bo(e), _o(e));
|
|
61886
|
+
}
|
|
61887
|
+
function Kc(u, e) {
|
|
61888
|
+
return qe(u).pipe(bo(e), _o(e));
|
|
61889
|
+
}
|
|
61890
|
+
function Gc(u, e) {
|
|
61891
|
+
return new Xe(function(t) {
|
|
61892
|
+
var l = 0;
|
|
61893
|
+
return e.schedule(function() {
|
|
61894
|
+
l === u.length ? t.complete() : (t.next(u[l++]), t.closed || this.schedule());
|
|
61895
|
+
});
|
|
61896
|
+
});
|
|
61897
|
+
}
|
|
61898
|
+
function zc(u, e) {
|
|
61899
|
+
return new Xe(function(t) {
|
|
61900
|
+
var l;
|
|
61901
|
+
return qt(t, e, function() {
|
|
61902
|
+
l = u[fo](), qt(t, e, function() {
|
|
61903
|
+
var h, v, o;
|
|
61904
|
+
try {
|
|
61905
|
+
h = l.next(), v = h.value, o = h.done;
|
|
61906
|
+
} catch (r) {
|
|
61907
|
+
t.error(r);
|
|
62111
61908
|
return;
|
|
62112
|
-
|
|
62113
|
-
|
|
62114
|
-
}
|
|
62115
|
-
|
|
62116
|
-
|
|
62117
|
-
|
|
62118
|
-
|
|
62119
|
-
|
|
62120
|
-
|
|
62121
|
-
|
|
61909
|
+
}
|
|
61910
|
+
o ? t.complete() : t.next(v);
|
|
61911
|
+
}, 0, !0);
|
|
61912
|
+
}), function() {
|
|
61913
|
+
return Ne(l == null ? void 0 : l.return) && l.return();
|
|
61914
|
+
};
|
|
61915
|
+
});
|
|
61916
|
+
}
|
|
61917
|
+
function yo(u, e) {
|
|
61918
|
+
if (!u)
|
|
61919
|
+
throw new Error("Iterable cannot be null");
|
|
61920
|
+
return new Xe(function(t) {
|
|
61921
|
+
qt(t, e, function() {
|
|
61922
|
+
var l = u[Symbol.asyncIterator]();
|
|
61923
|
+
qt(t, e, function() {
|
|
61924
|
+
l.next().then(function(h) {
|
|
61925
|
+
h.done ? t.complete() : t.next(h.value);
|
|
62122
61926
|
});
|
|
62123
|
-
|
|
62124
|
-
|
|
62125
|
-
|
|
62126
|
-
|
|
62127
|
-
|
|
62128
|
-
|
|
62129
|
-
|
|
62130
|
-
|
|
62131
|
-
|
|
62132
|
-
|
|
62133
|
-
|
|
62134
|
-
|
|
62135
|
-
|
|
62136
|
-
|
|
62137
|
-
|
|
62138
|
-
|
|
62139
|
-
|
|
62140
|
-
|
|
62141
|
-
|
|
62142
|
-
|
|
62143
|
-
|
|
62144
|
-
|
|
62145
|
-
|
|
62146
|
-
|
|
62147
|
-
|
|
62148
|
-
|
|
62149
|
-
|
|
62150
|
-
|
|
62151
|
-
|
|
62152
|
-
|
|
62153
|
-
|
|
62154
|
-
|
|
62155
|
-
|
|
62156
|
-
|
|
62157
|
-
|
|
62158
|
-
|
|
62159
|
-
|
|
62160
|
-
|
|
62161
|
-
|
|
62162
|
-
|
|
62163
|
-
|
|
62164
|
-
|
|
62165
|
-
|
|
62166
|
-
|
|
62167
|
-
|
|
62168
|
-
|
|
62169
|
-
|
|
62170
|
-
|
|
62171
|
-
|
|
62172
|
-
|
|
62173
|
-
|
|
62174
|
-
|
|
62175
|
-
|
|
62176
|
-
|
|
62177
|
-
|
|
62178
|
-
|
|
62179
|
-
|
|
62180
|
-
|
|
62181
|
-
|
|
62182
|
-
|
|
62183
|
-
|
|
62184
|
-
|
|
62185
|
-
|
|
62186
|
-
|
|
62187
|
-
|
|
62188
|
-
|
|
62189
|
-
|
|
62190
|
-
|
|
62191
|
-
|
|
62192
|
-
|
|
62193
|
-
|
|
62194
|
-
|
|
62195
|
-
|
|
62196
|
-
|
|
62197
|
-
|
|
62198
|
-
|
|
62199
|
-
|
|
62200
|
-
|
|
62201
|
-
|
|
62202
|
-
|
|
62203
|
-
|
|
62204
|
-
|
|
62205
|
-
|
|
62206
|
-
|
|
62207
|
-
|
|
62208
|
-
|
|
62209
|
-
|
|
62210
|
-
|
|
62211
|
-
|
|
62212
|
-
|
|
62213
|
-
|
|
62214
|
-
|
|
62215
|
-
|
|
62216
|
-
|
|
61927
|
+
}, 0, !0);
|
|
61928
|
+
});
|
|
61929
|
+
});
|
|
61930
|
+
}
|
|
61931
|
+
function Zc(u, e) {
|
|
61932
|
+
return yo(po(u), e);
|
|
61933
|
+
}
|
|
61934
|
+
function Xc(u, e) {
|
|
61935
|
+
if (u != null) {
|
|
61936
|
+
if (co(u))
|
|
61937
|
+
return Hc(u, e);
|
|
61938
|
+
if (er(u))
|
|
61939
|
+
return Gc(u, e);
|
|
61940
|
+
if (lo(u))
|
|
61941
|
+
return Kc(u, e);
|
|
61942
|
+
if (uo(u))
|
|
61943
|
+
return yo(u, e);
|
|
61944
|
+
if (mo(u))
|
|
61945
|
+
return zc(u, e);
|
|
61946
|
+
if (vo(u))
|
|
61947
|
+
return Zc(u, e);
|
|
61948
|
+
}
|
|
61949
|
+
throw ho(u);
|
|
61950
|
+
}
|
|
61951
|
+
function Co(u, e) {
|
|
61952
|
+
return e ? Xc(u, e) : qe(u);
|
|
61953
|
+
}
|
|
61954
|
+
function Yc() {
|
|
61955
|
+
for (var u = [], e = 0; e < arguments.length; e++)
|
|
61956
|
+
u[e] = arguments[e];
|
|
61957
|
+
var t = ao(u);
|
|
61958
|
+
return Co(u, t);
|
|
61959
|
+
}
|
|
61960
|
+
function Jc(u) {
|
|
61961
|
+
return u instanceof Date && !isNaN(u);
|
|
61962
|
+
}
|
|
61963
|
+
function at(u, e) {
|
|
61964
|
+
return st(function(t, l) {
|
|
61965
|
+
var h = 0;
|
|
61966
|
+
t.subscribe(ze(l, function(v) {
|
|
61967
|
+
l.next(u.call(e, v, h++));
|
|
61968
|
+
}));
|
|
61969
|
+
});
|
|
61970
|
+
}
|
|
61971
|
+
var Qc = Array.isArray;
|
|
61972
|
+
function qc(u, e) {
|
|
61973
|
+
return Qc(e) ? u.apply(void 0, Ct([], gt(e))) : u(e);
|
|
61974
|
+
}
|
|
61975
|
+
function ed(u) {
|
|
61976
|
+
return at(function(e) {
|
|
61977
|
+
return qc(u, e);
|
|
61978
|
+
});
|
|
61979
|
+
}
|
|
61980
|
+
function td(u, e, t, l, h, v, o, r) {
|
|
61981
|
+
var a = [], n = 0, s = 0, i = !1, d = function() {
|
|
61982
|
+
i && !a.length && !n && e.complete();
|
|
61983
|
+
}, p = function(c) {
|
|
61984
|
+
return n < l ? m(c) : a.push(c);
|
|
61985
|
+
}, m = function(c) {
|
|
61986
|
+
n++;
|
|
61987
|
+
var f = !1;
|
|
61988
|
+
qe(t(c, s++)).subscribe(ze(e, function(g) {
|
|
61989
|
+
e.next(g);
|
|
61990
|
+
}, function() {
|
|
61991
|
+
f = !0;
|
|
61992
|
+
}, void 0, function() {
|
|
61993
|
+
if (f)
|
|
61994
|
+
try {
|
|
61995
|
+
n--;
|
|
61996
|
+
for (var g = function() {
|
|
61997
|
+
var _ = a.shift();
|
|
61998
|
+
o || m(_);
|
|
61999
|
+
}; a.length && n < l; )
|
|
62000
|
+
g();
|
|
62001
|
+
d();
|
|
62002
|
+
} catch (_) {
|
|
62003
|
+
e.error(_);
|
|
62004
|
+
}
|
|
62005
|
+
}));
|
|
62006
|
+
};
|
|
62007
|
+
return u.subscribe(ze(e, p, function() {
|
|
62008
|
+
i = !0, d();
|
|
62009
|
+
})), function() {
|
|
62010
|
+
};
|
|
62011
|
+
}
|
|
62012
|
+
function Is(u, e, t) {
|
|
62013
|
+
return t === void 0 && (t = 1 / 0), Ne(e) ? Is(function(l, h) {
|
|
62014
|
+
return at(function(v, o) {
|
|
62015
|
+
return e(l, v, h, o);
|
|
62016
|
+
})(qe(u(l, h)));
|
|
62017
|
+
}, t) : (typeof e == "number" && (t = e), st(function(l, h) {
|
|
62018
|
+
return td(l, h, u, t);
|
|
62019
|
+
}));
|
|
62020
|
+
}
|
|
62021
|
+
function sd(u) {
|
|
62022
|
+
return u === void 0 && (u = 1 / 0), Is(en, u);
|
|
62023
|
+
}
|
|
62024
|
+
function nd(u) {
|
|
62025
|
+
return new Xe(function(e) {
|
|
62026
|
+
qe(u()).subscribe(e);
|
|
62027
|
+
});
|
|
62028
|
+
}
|
|
62029
|
+
var rd = {
|
|
62030
|
+
connector: function() {
|
|
62031
|
+
return new dt();
|
|
62032
|
+
},
|
|
62033
|
+
resetOnDisconnect: !0
|
|
62034
|
+
};
|
|
62035
|
+
function Yt(u, e) {
|
|
62036
|
+
e === void 0 && (e = rd);
|
|
62037
|
+
var t = null, l = e.connector, h = e.resetOnDisconnect, v = h === void 0 ? !0 : h, o = l(), r = new Xe(function(a) {
|
|
62038
|
+
return o.subscribe(a);
|
|
62039
|
+
});
|
|
62040
|
+
return r.connect = function() {
|
|
62041
|
+
return (!t || t.closed) && (t = nd(function() {
|
|
62042
|
+
return u;
|
|
62043
|
+
}).subscribe(o), v && t.add(function() {
|
|
62044
|
+
return o = l();
|
|
62045
|
+
})), t;
|
|
62046
|
+
}, r;
|
|
62047
|
+
}
|
|
62048
|
+
var id = ["addListener", "removeListener"], od = ["addEventListener", "removeEventListener"], ad = ["on", "off"];
|
|
62049
|
+
function In(u, e, t, l) {
|
|
62050
|
+
if (Ne(t) && (l = t, t = void 0), l)
|
|
62051
|
+
return In(u, e, t).pipe(ed(l));
|
|
62052
|
+
var h = gt(dd(u) ? od.map(function(r) {
|
|
62053
|
+
return function(a) {
|
|
62054
|
+
return u[r](e, a, t);
|
|
62055
|
+
};
|
|
62056
|
+
}) : ld(u) ? id.map(Xr(u, e)) : cd(u) ? ad.map(Xr(u, e)) : [], 2), v = h[0], o = h[1];
|
|
62057
|
+
if (!v && er(u))
|
|
62058
|
+
return Is(function(r) {
|
|
62059
|
+
return In(r, e, t);
|
|
62060
|
+
})(qe(u));
|
|
62061
|
+
if (!v)
|
|
62062
|
+
throw new TypeError("Invalid event target");
|
|
62063
|
+
return new Xe(function(r) {
|
|
62064
|
+
var a = function() {
|
|
62065
|
+
for (var n = [], s = 0; s < arguments.length; s++)
|
|
62066
|
+
n[s] = arguments[s];
|
|
62067
|
+
return r.next(1 < n.length ? n : n[0]);
|
|
62068
|
+
};
|
|
62069
|
+
return v(a), function() {
|
|
62070
|
+
return o(a);
|
|
62071
|
+
};
|
|
62072
|
+
});
|
|
62073
|
+
}
|
|
62074
|
+
function Xr(u, e) {
|
|
62075
|
+
return function(t) {
|
|
62076
|
+
return function(l) {
|
|
62077
|
+
return u[t](e, l);
|
|
62078
|
+
};
|
|
62079
|
+
};
|
|
62080
|
+
}
|
|
62081
|
+
function ld(u) {
|
|
62082
|
+
return Ne(u.addListener) && Ne(u.removeListener);
|
|
62083
|
+
}
|
|
62084
|
+
function cd(u) {
|
|
62085
|
+
return Ne(u.on) && Ne(u.off);
|
|
62086
|
+
}
|
|
62087
|
+
function dd(u) {
|
|
62088
|
+
return Ne(u.addEventListener) && Ne(u.removeEventListener);
|
|
62089
|
+
}
|
|
62090
|
+
function ys(u, e, t) {
|
|
62091
|
+
u === void 0 && (u = 0), t === void 0 && (t = Mc);
|
|
62092
|
+
var l = -1;
|
|
62093
|
+
return e != null && (oo(e) ? t = e : l = e), new Xe(function(h) {
|
|
62094
|
+
var v = Jc(u) ? +u - t.now() : u;
|
|
62095
|
+
v < 0 && (v = 0);
|
|
62096
|
+
var o = 0;
|
|
62097
|
+
return t.schedule(function() {
|
|
62098
|
+
h.closed || (h.next(o++), 0 <= l ? this.schedule(void 0, l) : h.complete());
|
|
62099
|
+
}, v);
|
|
62100
|
+
});
|
|
62101
|
+
}
|
|
62102
|
+
function ud(u, e) {
|
|
62103
|
+
return e === void 0 && (e = tn), ys(u, u, e);
|
|
62104
|
+
}
|
|
62105
|
+
function hd() {
|
|
62106
|
+
for (var u = [], e = 0; e < arguments.length; e++)
|
|
62107
|
+
u[e] = arguments[e];
|
|
62108
|
+
var t = ao(u), l = kc(u, 1 / 0), h = u;
|
|
62109
|
+
return h.length ? h.length === 1 ? qe(h[0]) : sd(l)(Co(h, t)) : io;
|
|
62110
|
+
}
|
|
62111
|
+
var fd = Array.isArray;
|
|
62112
|
+
function md(u) {
|
|
62113
|
+
return u.length === 1 && fd(u[0]) ? u[0] : u;
|
|
62114
|
+
}
|
|
62115
|
+
function bt(u, e) {
|
|
62116
|
+
return st(function(t, l) {
|
|
62117
|
+
var h = 0;
|
|
62118
|
+
t.subscribe(ze(l, function(v) {
|
|
62119
|
+
return u.call(e, v, h++) && l.next(v);
|
|
62120
|
+
}));
|
|
62121
|
+
});
|
|
62122
|
+
}
|
|
62123
|
+
function pd() {
|
|
62124
|
+
for (var u = [], e = 0; e < arguments.length; e++)
|
|
62125
|
+
u[e] = arguments[e];
|
|
62126
|
+
return u = md(u), u.length === 1 ? qe(u[0]) : new Xe(vd(u));
|
|
62127
|
+
}
|
|
62128
|
+
function vd(u) {
|
|
62129
|
+
return function(e) {
|
|
62130
|
+
for (var t = [], l = function(v) {
|
|
62131
|
+
t.push(qe(u[v]).subscribe(ze(e, function(o) {
|
|
62132
|
+
if (t) {
|
|
62133
|
+
for (var r = 0; r < t.length; r++)
|
|
62134
|
+
r !== v && t[r].unsubscribe();
|
|
62135
|
+
t = null;
|
|
62136
|
+
}
|
|
62137
|
+
e.next(o);
|
|
62138
|
+
})));
|
|
62139
|
+
}, h = 0; t && !e.closed && h < u.length; h++)
|
|
62140
|
+
l(h);
|
|
62141
|
+
};
|
|
62142
|
+
}
|
|
62143
|
+
function gd(u) {
|
|
62144
|
+
return st(function(e, t) {
|
|
62145
|
+
var l = null, h = null, v = function() {
|
|
62146
|
+
h == null || h.unsubscribe();
|
|
62147
|
+
var o = l;
|
|
62148
|
+
l = [], o && t.next(o), qe(u()).subscribe(h = ze(t, v, ws));
|
|
62149
|
+
};
|
|
62150
|
+
v(), e.subscribe(ze(t, function(o) {
|
|
62151
|
+
return l == null ? void 0 : l.push(o);
|
|
62152
|
+
}, function() {
|
|
62153
|
+
l && t.next(l), t.complete();
|
|
62154
|
+
}, void 0, function() {
|
|
62155
|
+
return l = h = null;
|
|
62156
|
+
}));
|
|
62157
|
+
});
|
|
62158
|
+
}
|
|
62159
|
+
function Eo(u) {
|
|
62160
|
+
return st(function(e, t) {
|
|
62161
|
+
var l = null, h = !1, v;
|
|
62162
|
+
l = e.subscribe(ze(t, void 0, void 0, function(o) {
|
|
62163
|
+
v = qe(u(o, Eo(u)(e))), l ? (l.unsubscribe(), l = null, v.subscribe(t)) : h = !0;
|
|
62164
|
+
})), h && (l.unsubscribe(), l = null, v.subscribe(t));
|
|
62165
|
+
});
|
|
62166
|
+
}
|
|
62167
|
+
function _d(u, e, t, l, h) {
|
|
62168
|
+
return function(v, o) {
|
|
62169
|
+
var r = t, a = e, n = 0;
|
|
62170
|
+
v.subscribe(ze(o, function(s) {
|
|
62171
|
+
var i = n++;
|
|
62172
|
+
a = r ? u(a, s, i) : (r = !0, s), o.next(a);
|
|
62173
|
+
}, h));
|
|
62174
|
+
};
|
|
62175
|
+
}
|
|
62176
|
+
function Yr(u) {
|
|
62177
|
+
return u <= 0 ? function() {
|
|
62178
|
+
return io;
|
|
62179
|
+
} : st(function(e, t) {
|
|
62180
|
+
var l = 0;
|
|
62181
|
+
e.subscribe(ze(t, function(h) {
|
|
62182
|
+
++l <= u && (t.next(h), u <= l && t.complete());
|
|
62183
|
+
}));
|
|
62184
|
+
});
|
|
62185
|
+
}
|
|
62186
|
+
function bd(u) {
|
|
62187
|
+
return st(function(e, t) {
|
|
62188
|
+
try {
|
|
62189
|
+
e.subscribe(t);
|
|
62190
|
+
} finally {
|
|
62191
|
+
t.add(u);
|
|
62217
62192
|
}
|
|
62218
|
-
)
|
|
62219
|
-
|
|
62220
|
-
|
|
62221
|
-
|
|
62222
|
-
|
|
62223
|
-
|
|
62224
|
-
|
|
62225
|
-
|
|
62226
|
-
|
|
62227
|
-
|
|
62228
|
-
|
|
62229
|
-
|
|
62230
|
-
|
|
62231
|
-
|
|
62232
|
-
|
|
62233
|
-
|
|
62234
|
-
|
|
62235
|
-
|
|
62236
|
-
|
|
62237
|
-
|
|
62238
|
-
|
|
62239
|
-
|
|
62240
|
-
|
|
62241
|
-
|
|
62242
|
-
|
|
62243
|
-
|
|
62244
|
-
|
|
62245
|
-
|
|
62246
|
-
|
|
62247
|
-
|
|
62248
|
-
|
|
62249
|
-
|
|
62250
|
-
|
|
62251
|
-
|
|
62193
|
+
});
|
|
62194
|
+
}
|
|
62195
|
+
function yd(u, e) {
|
|
62196
|
+
return st(_d(u, e, arguments.length >= 2, !0));
|
|
62197
|
+
}
|
|
62198
|
+
function Cd(u) {
|
|
62199
|
+
u === void 0 && (u = {});
|
|
62200
|
+
var e = u.connector, t = e === void 0 ? function() {
|
|
62201
|
+
return new dt();
|
|
62202
|
+
} : e, l = u.resetOnError, h = l === void 0 ? !0 : l, v = u.resetOnComplete, o = v === void 0 ? !0 : v, r = u.resetOnRefCountZero, a = r === void 0 ? !0 : r;
|
|
62203
|
+
return function(n) {
|
|
62204
|
+
var s, i, d, p = 0, m = !1, c = !1, f = function() {
|
|
62205
|
+
i == null || i.unsubscribe(), i = void 0;
|
|
62206
|
+
}, g = function() {
|
|
62207
|
+
f(), s = d = void 0, m = c = !1;
|
|
62208
|
+
}, _ = function() {
|
|
62209
|
+
var b = s;
|
|
62210
|
+
g(), b == null || b.unsubscribe();
|
|
62211
|
+
};
|
|
62212
|
+
return st(function(b, y) {
|
|
62213
|
+
p++, !c && !m && f();
|
|
62214
|
+
var C = d = d ?? t();
|
|
62215
|
+
y.add(function() {
|
|
62216
|
+
p--, p === 0 && !c && !m && (i = gn(_, a));
|
|
62217
|
+
}), C.subscribe(y), !s && p > 0 && (s = new Os({
|
|
62218
|
+
next: function(S) {
|
|
62219
|
+
return C.next(S);
|
|
62220
|
+
},
|
|
62221
|
+
error: function(S) {
|
|
62222
|
+
c = !0, f(), i = gn(g, h, S), C.error(S);
|
|
62223
|
+
},
|
|
62224
|
+
complete: function() {
|
|
62225
|
+
m = !0, f(), i = gn(g, o), C.complete();
|
|
62226
|
+
}
|
|
62227
|
+
}), qe(b).subscribe(s));
|
|
62228
|
+
})(n);
|
|
62229
|
+
};
|
|
62230
|
+
}
|
|
62231
|
+
function gn(u, e) {
|
|
62232
|
+
for (var t = [], l = 2; l < arguments.length; l++)
|
|
62233
|
+
t[l - 2] = arguments[l];
|
|
62234
|
+
if (e === !0) {
|
|
62235
|
+
u();
|
|
62236
|
+
return;
|
|
62237
|
+
}
|
|
62238
|
+
if (e !== !1) {
|
|
62239
|
+
var h = new Os({
|
|
62240
|
+
next: function() {
|
|
62241
|
+
h.unsubscribe(), u();
|
|
62242
|
+
}
|
|
62243
|
+
});
|
|
62244
|
+
return qe(e.apply(void 0, Ct([], gt(t)))).subscribe(h);
|
|
62245
|
+
}
|
|
62246
|
+
}
|
|
62247
|
+
function Ed(u) {
|
|
62248
|
+
return st(function(e, t) {
|
|
62249
|
+
var l = !1, h = ze(t, function() {
|
|
62250
|
+
h == null || h.unsubscribe(), l = !0;
|
|
62251
|
+
}, ws);
|
|
62252
|
+
qe(u).subscribe(h), e.subscribe(ze(t, function(v) {
|
|
62253
|
+
return l && t.next(v);
|
|
62254
|
+
}));
|
|
62255
|
+
});
|
|
62256
|
+
}
|
|
62257
|
+
function Jr(u, e) {
|
|
62258
|
+
return st(function(t, l) {
|
|
62259
|
+
var h = null, v = 0, o = !1, r = function() {
|
|
62260
|
+
return o && !h && l.complete();
|
|
62261
|
+
};
|
|
62262
|
+
t.subscribe(ze(l, function(a) {
|
|
62263
|
+
h == null || h.unsubscribe();
|
|
62264
|
+
var n = 0, s = v++;
|
|
62265
|
+
qe(u(a, s)).subscribe(h = ze(l, function(i) {
|
|
62266
|
+
return l.next(e ? e(a, i, s, n++) : i);
|
|
62267
|
+
}, function() {
|
|
62268
|
+
h = null, r();
|
|
62269
|
+
}));
|
|
62270
|
+
}, function() {
|
|
62271
|
+
o = !0, r();
|
|
62272
|
+
}));
|
|
62273
|
+
});
|
|
62274
|
+
}
|
|
62275
|
+
function ks(u, e) {
|
|
62276
|
+
return e === void 0 && (e = !1), st(function(t, l) {
|
|
62277
|
+
var h = 0;
|
|
62278
|
+
t.subscribe(ze(l, function(v) {
|
|
62279
|
+
var o = u(v, h++);
|
|
62280
|
+
(o || e) && l.next(v), !o && l.complete();
|
|
62281
|
+
}));
|
|
62282
|
+
});
|
|
62283
|
+
}
|
|
62284
|
+
function Qr(u, e, t) {
|
|
62285
|
+
var l = Ne(u) || e || t ? { next: u, error: e, complete: t } : u;
|
|
62286
|
+
return l ? st(function(h, v) {
|
|
62287
|
+
var o;
|
|
62288
|
+
(o = l.subscribe) === null || o === void 0 || o.call(l);
|
|
62289
|
+
var r = !0;
|
|
62290
|
+
h.subscribe(ze(v, function(a) {
|
|
62291
|
+
var n;
|
|
62292
|
+
(n = l.next) === null || n === void 0 || n.call(l, a), v.next(a);
|
|
62293
|
+
}, function() {
|
|
62252
62294
|
var a;
|
|
62253
|
-
(
|
|
62254
|
-
|
|
62255
|
-
})(a || (e.APIMethod = a = {}));
|
|
62295
|
+
r = !1, (a = l.complete) === null || a === void 0 || a.call(l), v.complete();
|
|
62296
|
+
}, function(a) {
|
|
62256
62297
|
var n;
|
|
62257
|
-
(
|
|
62258
|
-
|
|
62259
|
-
|
|
62260
|
-
|
|
62261
|
-
|
|
62262
|
-
|
|
62263
|
-
})(s || (e.EnvVarMode = s = {}));
|
|
62264
|
-
var i;
|
|
62265
|
-
(function(p) {
|
|
62266
|
-
p.StatefulRunme = "stateful.runme", p.StatefulPlatform = "stateful.platform";
|
|
62267
|
-
})(i || (e.ExtensionName = i = {}));
|
|
62268
|
-
var d;
|
|
62269
|
-
(function(p) {
|
|
62270
|
-
p.Gist = "Gist", p.Share = "Share", p.Escalate = "Escalate", p.ForceLogin = "ForceLogin", p.SignedIn = "SignedIn", p.RequireStatefulAuth = "RequireStatefulAuth", p.CopySelectionToClipboard = "CopySelectionToClipboard", p.NewTreeProvider = "NewTreeProvider", p.OpenTerminalOnStartup = "OpenTerminalOnStartup", p.HostedPlayground = "HostedPlayground", p.RecommendExtension = "RecommendExtension", p.ReporterAPI = "ReporterAPI", p.RemoteNotebooks = "RemoteNotebooks", p.AIProgress = "AIProgress";
|
|
62271
|
-
})(d || (e.FeatureName = d = {}));
|
|
62272
|
-
}
|
|
62273
|
-
),
|
|
62274
|
-
/***/
|
|
62275
|
-
"./src/utils/ansi.ts": (
|
|
62276
|
-
/*!***************************!*\
|
|
62277
|
-
!*** ./src/utils/ansi.ts ***!
|
|
62278
|
-
\***************************/
|
|
62279
|
-
/***/
|
|
62280
|
-
(u, e) => {
|
|
62281
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.stripANSI = t;
|
|
62282
|
-
function t(l) {
|
|
62283
|
-
return l.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, "");
|
|
62284
|
-
}
|
|
62285
|
-
}
|
|
62286
|
-
),
|
|
62287
|
-
/***/
|
|
62288
|
-
"./src/utils/messaging.ts": (
|
|
62289
|
-
/*!********************************!*\
|
|
62290
|
-
!*** ./src/utils/messaging.ts ***!
|
|
62291
|
-
\********************************/
|
|
62292
|
-
/***/
|
|
62293
|
-
(u, e) => {
|
|
62294
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.postClientMessage = t, e.onClientMessage = l;
|
|
62295
|
-
async function t(h, v, o) {
|
|
62296
|
-
var a;
|
|
62297
|
-
const r = {
|
|
62298
|
-
type: v,
|
|
62299
|
-
output: o
|
|
62300
|
-
};
|
|
62301
|
-
return await ((a = h.postMessage) == null ? void 0 : a.call(h, r));
|
|
62302
|
-
}
|
|
62303
|
-
function l(h, v) {
|
|
62304
|
-
var o;
|
|
62305
|
-
return ((o = h.onDidReceiveMessage) == null ? void 0 : o.call(h, v)) ?? { dispose: () => {
|
|
62306
|
-
} };
|
|
62307
|
-
}
|
|
62308
|
-
}
|
|
62309
|
-
)
|
|
62310
|
-
/******/
|
|
62311
|
-
}, ti = {};
|
|
62312
|
-
function vt(u) {
|
|
62313
|
-
var e = ti[u];
|
|
62314
|
-
if (e !== void 0)
|
|
62315
|
-
return e.exports;
|
|
62316
|
-
var t = ti[u] = {
|
|
62317
|
-
/******/
|
|
62318
|
-
// no module.id needed
|
|
62319
|
-
/******/
|
|
62320
|
-
// no module.loaded needed
|
|
62321
|
-
/******/
|
|
62322
|
-
exports: {}
|
|
62323
|
-
/******/
|
|
62324
|
-
};
|
|
62325
|
-
return Ld[u].call(t.exports, t, t.exports, vt), t.exports;
|
|
62298
|
+
r = !1, (n = l.error) === null || n === void 0 || n.call(l, a), v.error(a);
|
|
62299
|
+
}, function() {
|
|
62300
|
+
var a, n;
|
|
62301
|
+
r && ((a = l.unsubscribe) === null || a === void 0 || a.call(l)), (n = l.finalize) === null || n === void 0 || n.call(l);
|
|
62302
|
+
}));
|
|
62303
|
+
}) : en;
|
|
62326
62304
|
}
|
|
62327
|
-
|
|
62328
|
-
|
|
62329
|
-
|
|
62330
|
-
|
|
62331
|
-
|
|
62332
|
-
|
|
62333
|
-
|
|
62334
|
-
|
|
62335
|
-
|
|
62336
|
-
(
|
|
62337
|
-
|
|
62338
|
-
|
|
62339
|
-
|
|
62340
|
-
\*****************************/
|
|
62341
|
-
Object.defineProperty(u, "__esModule", { value: !0 }), u.ClientMessages = u.setContext = u.activate = void 0;
|
|
62342
|
-
const e = vt(
|
|
62343
|
-
/*! ../constants */
|
|
62344
|
-
"./src/constants.ts"
|
|
62345
|
-
);
|
|
62346
|
-
Object.defineProperty(u, "ClientMessages", { enumerable: !0, get: function() {
|
|
62347
|
-
return e.ClientMessages;
|
|
62348
|
-
} });
|
|
62349
|
-
const t = vt(
|
|
62350
|
-
/*! ./utils */
|
|
62351
|
-
"./src/client/utils.ts"
|
|
62352
|
-
);
|
|
62353
|
-
Object.defineProperty(u, "setContext", { enumerable: !0, get: function() {
|
|
62354
|
-
return t.setContext;
|
|
62355
|
-
} }), vt(
|
|
62356
|
-
/*! ./components */
|
|
62357
|
-
"./src/client/components/index.ts"
|
|
62358
|
-
);
|
|
62359
|
-
const l = (h) => ((0, t.setContext)(h), {
|
|
62360
|
-
renderOutputItem(v, o) {
|
|
62361
|
-
var n, s, i;
|
|
62362
|
-
const r = v.json();
|
|
62363
|
-
switch (r.type) {
|
|
62364
|
-
case e.OutputType.vercel:
|
|
62365
|
-
if (r.output.error) {
|
|
62366
|
-
a(r.output.error);
|
|
62367
|
-
break;
|
|
62368
|
-
}
|
|
62369
|
-
const d = document.createElement(e.RENDERERS.VercelOutput);
|
|
62370
|
-
d.setAttribute("content", JSON.stringify(r.output)), o.appendChild(d);
|
|
62371
|
-
break;
|
|
62372
|
-
case e.OutputType.daggerCall:
|
|
62373
|
-
if (!((n = r.output) != null && n.cellId))
|
|
62374
|
-
return;
|
|
62375
|
-
const p = document.createElement(e.RENDERERS.DaggerCli);
|
|
62376
|
-
p.setAttribute("cellId", r.output.cellId);
|
|
62377
|
-
const m = {
|
|
62378
|
-
...r.output,
|
|
62379
|
-
cli: {
|
|
62380
|
-
status: "active"
|
|
62381
|
-
}
|
|
62382
|
-
};
|
|
62383
|
-
p.setAttribute("state", JSON.stringify(m)), o.appendChild(p);
|
|
62384
|
-
break;
|
|
62385
|
-
case e.OutputType.deno:
|
|
62386
|
-
if ((s = r.output) != null && s.error) {
|
|
62387
|
-
a(r.output.error);
|
|
62388
|
-
break;
|
|
62389
|
-
}
|
|
62390
|
-
const c = r.output || {}, f = document.createElement(e.RENDERERS.DenoOutput);
|
|
62391
|
-
f.setAttribute("state", JSON.stringify(c)), o.appendChild(f);
|
|
62392
|
-
break;
|
|
62393
|
-
case e.OutputType.outputItems:
|
|
62394
|
-
const g = decodeURIComponent(escape(window.atob(r.output.content))), _ = document.createElement(e.RENDERERS.ShellOutput);
|
|
62395
|
-
_.innerHTML = g, o.appendChild(_);
|
|
62396
|
-
const b = document.createElement(e.RENDERERS.ShellOutputItems);
|
|
62397
|
-
b.setAttribute("id", r.output.id), b.setAttribute("content", g), o.appendChild(b);
|
|
62398
|
-
break;
|
|
62399
|
-
case e.OutputType.annotations:
|
|
62400
|
-
const y = document.createElement(e.RENDERERS.EditAnnotations);
|
|
62401
|
-
y.setAttribute("annotations", JSON.stringify(r.output.annotations ?? [])), y.setAttribute("validationErrors", JSON.stringify(r.output.validationErrors ?? [])), y.setAttribute("settings", JSON.stringify(r.output.settings)), o.appendChild(y);
|
|
62402
|
-
break;
|
|
62403
|
-
case e.OutputType.terminal:
|
|
62404
|
-
const C = document.createElement(e.RENDERERS.TerminalView);
|
|
62405
|
-
C.setAttribute("id", r.output["runme.dev/id"]), C.setAttribute("fontFamily", r.output.fontFamily), typeof r.output.fontSize == "number" && C.setAttribute("fontSize", r.output.fontSize.toString()), r.output.cursorStyle && C.setAttribute("cursorStyle", r.output.cursorStyle), typeof r.output.cursorBlink == "boolean" && C.setAttribute("cursorBlink", r.output.cursorBlink ? "true" : "false"), typeof r.output.cursorWidth == "number" && C.setAttribute("cursorWidth", r.output.cursorWidth.toString()), typeof r.output.smoothScrollDuration == "number" && C.setAttribute("smoothScrollDuration", r.output.smoothScrollDuration.toString()), typeof r.output.scrollback == "number" && C.setAttribute("scrollback", r.output.scrollback.toString()), r.output.initialRows !== void 0 && C.setAttribute("initialRows", r.output.initialRows.toString()), r.output.content !== void 0 && C.setAttribute("initialContent", r.output.content), r.output.isAutoSaveEnabled && C.setAttribute("isAutoSaveEnabled", r.output.isAutoSaveEnabled.toString()), r.output.isPlatformAuthEnabled && C.setAttribute("isPlatformAuthEnabled", r.output.isPlatformAuthEnabled.toString()), r.output.isDaggerOutput && C.setAttribute("isDaggerOutput", r.output.isDaggerOutput.toString()), o.appendChild(C);
|
|
62406
|
-
break;
|
|
62407
|
-
case e.OutputType.error:
|
|
62408
|
-
a(r.output);
|
|
62409
|
-
break;
|
|
62410
|
-
case e.OutputType.github:
|
|
62411
|
-
const S = document.createElement(e.RENDERERS.GitHubWorkflowViewer);
|
|
62412
|
-
(i = r.output) != null && i.content && S.setAttribute("state", JSON.stringify(r.output)), o.appendChild(S);
|
|
62413
|
-
break;
|
|
62414
|
-
case e.OutputType.gcp:
|
|
62415
|
-
const E = document.createElement(e.RENDERERS.GCPView);
|
|
62416
|
-
r.output && E.setAttribute("state", JSON.stringify(r.output)), o.appendChild(E);
|
|
62417
|
-
break;
|
|
62418
|
-
case e.OutputType.aws:
|
|
62419
|
-
const j = document.createElement(e.RENDERERS.AWSView);
|
|
62420
|
-
r.output && j.setAttribute("state", JSON.stringify(r.output)), o.appendChild(j);
|
|
62421
|
-
break;
|
|
62422
|
-
default:
|
|
62423
|
-
o.innerHTML = "No renderer found!";
|
|
62305
|
+
function Sd(u, e) {
|
|
62306
|
+
return st(function(t, l) {
|
|
62307
|
+
var h = e ?? {}, v = h.leading, o = v === void 0 ? !0 : v, r = h.trailing, a = r === void 0 ? !1 : r, n = !1, s = null, i = null, d = !1, p = function() {
|
|
62308
|
+
i == null || i.unsubscribe(), i = null, a && (f(), d && l.complete());
|
|
62309
|
+
}, m = function() {
|
|
62310
|
+
i = null, d && l.complete();
|
|
62311
|
+
}, c = function(g) {
|
|
62312
|
+
return i = qe(u(g)).subscribe(ze(l, p, m));
|
|
62313
|
+
}, f = function() {
|
|
62314
|
+
if (n) {
|
|
62315
|
+
n = !1;
|
|
62316
|
+
var g = s;
|
|
62317
|
+
s = null, l.next(g), !d && c(g);
|
|
62424
62318
|
}
|
|
62425
|
-
|
|
62426
|
-
|
|
62319
|
+
};
|
|
62320
|
+
t.subscribe(ze(l, function(g) {
|
|
62321
|
+
n = !0, s = g, !(i && !i.closed) && (o ? f() : c(g));
|
|
62322
|
+
}, function() {
|
|
62323
|
+
d = !0, !(a && n && i && !i.closed) && l.complete();
|
|
62324
|
+
}));
|
|
62325
|
+
});
|
|
62326
|
+
}
|
|
62327
|
+
function qr(u, e, t) {
|
|
62328
|
+
e === void 0 && (e = tn);
|
|
62329
|
+
var l = ys(u, e);
|
|
62330
|
+
return Sd(function() {
|
|
62331
|
+
return l;
|
|
62332
|
+
}, t);
|
|
62333
|
+
}
|
|
62334
|
+
function _n() {
|
|
62335
|
+
for (var u = [], e = 0; e < arguments.length; e++)
|
|
62336
|
+
u[e] = arguments[e];
|
|
62337
|
+
var t = Lc(u);
|
|
62338
|
+
return st(function(l, h) {
|
|
62339
|
+
for (var v = u.length, o = new Array(v), r = u.map(function() {
|
|
62340
|
+
return !1;
|
|
62341
|
+
}), a = !1, n = function(i) {
|
|
62342
|
+
qe(u[i]).subscribe(ze(h, function(d) {
|
|
62343
|
+
o[i] = d, !a && !r[i] && (r[i] = !0, (a = r.every(en)) && (r = null));
|
|
62344
|
+
}, ws));
|
|
62345
|
+
}, s = 0; s < v; s++)
|
|
62346
|
+
n(s);
|
|
62347
|
+
l.subscribe(ze(h, function(i) {
|
|
62348
|
+
if (a) {
|
|
62349
|
+
var d = Ct([i], gt(o));
|
|
62350
|
+
h.next(t ? t.apply(void 0, Ct([], gt(d))) : d);
|
|
62427
62351
|
}
|
|
62428
|
-
}
|
|
62429
|
-
disposeOutputItem() {
|
|
62430
|
-
}
|
|
62352
|
+
}));
|
|
62431
62353
|
});
|
|
62432
|
-
|
|
62433
|
-
|
|
62434
|
-
|
|
62435
|
-
|
|
62436
|
-
|
|
62437
|
-
|
|
62354
|
+
}
|
|
62355
|
+
const So = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Ks = 32, jd = 16, jo = 10, ei = 281474976710655;
|
|
62356
|
+
var Qt;
|
|
62357
|
+
(function(u) {
|
|
62358
|
+
u.Base32IncorrectEncoding = "B32_ENC_INVALID", u.DecodeTimeInvalidCharacter = "DEC_TIME_CHAR", u.DecodeTimeValueMalformed = "DEC_TIME_MALFORMED", u.EncodeTimeNegative = "ENC_TIME_NEG", u.EncodeTimeSizeExceeded = "ENC_TIME_SIZE_EXCEED", u.EncodeTimeValueMalformed = "ENC_TIME_MALFORMED", u.PRNGDetectFailure = "PRNG_DETECT", u.ULIDInvalid = "ULID_INVALID", u.Unexpected = "UNEXPECTED", u.UUIDInvalid = "UUID_INVALID";
|
|
62359
|
+
})(Qt || (Qt = {}));
|
|
62360
|
+
class gs extends Error {
|
|
62361
|
+
constructor(e, t) {
|
|
62362
|
+
super(`${t} (${e})`), this.name = "ULIDError", this.code = e;
|
|
62363
|
+
}
|
|
62364
|
+
}
|
|
62365
|
+
function wd(u) {
|
|
62366
|
+
const e = Math.floor(u() * Ks) % Ks;
|
|
62367
|
+
return So.charAt(e);
|
|
62368
|
+
}
|
|
62369
|
+
function Od(u) {
|
|
62370
|
+
const e = Id(), t = e && (e.crypto || e.msCrypto) || null;
|
|
62371
|
+
if (typeof (t == null ? void 0 : t.getRandomValues) == "function")
|
|
62372
|
+
return () => {
|
|
62373
|
+
const l = new Uint8Array(1);
|
|
62374
|
+
return t.getRandomValues(l), l[0] / 255;
|
|
62375
|
+
};
|
|
62376
|
+
if (typeof (t == null ? void 0 : t.randomBytes) == "function")
|
|
62377
|
+
return () => t.randomBytes(1).readUInt8() / 255;
|
|
62378
|
+
throw new gs(Qt.PRNGDetectFailure, "Failed to find a reliable PRNG");
|
|
62379
|
+
}
|
|
62380
|
+
function Id() {
|
|
62381
|
+
return Ad() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
62382
|
+
}
|
|
62383
|
+
function Td(u, e) {
|
|
62384
|
+
let t = "";
|
|
62385
|
+
for (; u > 0; u--)
|
|
62386
|
+
t = wd(e) + t;
|
|
62387
|
+
return t;
|
|
62388
|
+
}
|
|
62389
|
+
function xd(u, e = jo) {
|
|
62390
|
+
if (isNaN(u))
|
|
62391
|
+
throw new gs(Qt.EncodeTimeValueMalformed, `Time must be a number: ${u}`);
|
|
62392
|
+
if (u > ei)
|
|
62393
|
+
throw new gs(Qt.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${ei}: ${u}`);
|
|
62394
|
+
if (u < 0)
|
|
62395
|
+
throw new gs(Qt.EncodeTimeNegative, `Time must be positive: ${u}`);
|
|
62396
|
+
if (Number.isInteger(u) === !1)
|
|
62397
|
+
throw new gs(Qt.EncodeTimeValueMalformed, `Time must be an integer: ${u}`);
|
|
62398
|
+
let t, l = "";
|
|
62399
|
+
for (let h = e; h > 0; h--)
|
|
62400
|
+
t = u % Ks, l = So.charAt(t) + l, u = (u - t) / Ks;
|
|
62401
|
+
return l;
|
|
62402
|
+
}
|
|
62403
|
+
function Ad() {
|
|
62404
|
+
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
62405
|
+
}
|
|
62406
|
+
function Pd(u, e) {
|
|
62407
|
+
const t = Od(), l = Date.now();
|
|
62408
|
+
return xd(l, jo) + Td(jd, t);
|
|
62409
|
+
}
|
|
62410
|
+
const tt = [];
|
|
62411
|
+
for (let u = 0; u < 256; ++u)
|
|
62412
|
+
tt.push((u + 256).toString(16).slice(1));
|
|
62413
|
+
function Rd(u, e = 0) {
|
|
62414
|
+
return (tt[u[e + 0]] + tt[u[e + 1]] + tt[u[e + 2]] + tt[u[e + 3]] + "-" + tt[u[e + 4]] + tt[u[e + 5]] + "-" + tt[u[e + 6]] + tt[u[e + 7]] + "-" + tt[u[e + 8]] + tt[u[e + 9]] + "-" + tt[u[e + 10]] + tt[u[e + 11]] + tt[u[e + 12]] + tt[u[e + 13]] + tt[u[e + 14]] + tt[u[e + 15]]).toLowerCase();
|
|
62415
|
+
}
|
|
62416
|
+
let bn;
|
|
62417
|
+
const Dd = new Uint8Array(16);
|
|
62418
|
+
function Md() {
|
|
62419
|
+
if (!bn) {
|
|
62420
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
62421
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
62422
|
+
bn = crypto.getRandomValues.bind(crypto);
|
|
62423
|
+
}
|
|
62424
|
+
return bn(Dd);
|
|
62425
|
+
}
|
|
62426
|
+
const Ld = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ti = { randomUUID: Ld };
|
|
62427
|
+
function kd(u, e, t) {
|
|
62428
|
+
var h;
|
|
62429
|
+
if (ti.randomUUID && !u)
|
|
62430
|
+
return ti.randomUUID();
|
|
62431
|
+
u = u || {};
|
|
62432
|
+
const l = u.random ?? ((h = u.rng) == null ? void 0 : h.call(u)) ?? Md();
|
|
62433
|
+
if (l.length < 16)
|
|
62434
|
+
throw new Error("Random bytes length must be >= 16");
|
|
62435
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Rd(l);
|
|
62436
|
+
}
|
|
62437
|
+
const Bd = 5e3, Nd = 1e3, Bs = 4e3, si = 1e3;
|
|
62438
62438
|
var $d = /* @__PURE__ */ ((u) => (u.CONTINUOUS = "CONTINUOUS", u.INITIAL = "INITIAL", u))($d || {});
|
|
62439
62439
|
class Ud {
|
|
62440
62440
|
constructor({
|
|
@@ -62456,7 +62456,7 @@ class Ud {
|
|
|
62456
62456
|
Ue(this, "_latencies", new dt());
|
|
62457
62457
|
Ue(this, "_latenciesConnectable", Yt(
|
|
62458
62458
|
this._latencies.asObservable().pipe(
|
|
62459
|
-
|
|
62459
|
+
yd((e, t) => {
|
|
62460
62460
|
if (t.latency < 0) {
|
|
62461
62461
|
const l = e.get(t.streamID);
|
|
62462
62462
|
l && e.set(t.streamID, {
|
|
@@ -62494,15 +62494,15 @@ class Ud {
|
|
|
62494
62494
|
Ue(this, "autoReconnect");
|
|
62495
62495
|
this.knownID = e, this.runID = t, this.sequence = l, this.runnerEndpoint = h, this.authorization = v, this.autoReconnect = o, this._latenciesConnectable.connect(), this._errorsConnectable.connect(), this._stdoutConnectable.connect(), this._stderrConnectable.connect(), this._exitCodeConnectable.connect(), this._pidConnectable.connect(), this._mimeTypeConnectable.connect(), this.client = this.reconnect.pipe(
|
|
62496
62496
|
// Smartly throttle the reconnects to avoid overwhelming the server
|
|
62497
|
-
|
|
62497
|
+
qr(si, tn, {
|
|
62498
62498
|
leading: !0,
|
|
62499
62499
|
trailing: !0
|
|
62500
62500
|
}),
|
|
62501
62501
|
// switchMap avoids overlapping socket clients; mergeMap would allow overlapping
|
|
62502
|
-
|
|
62503
|
-
|
|
62502
|
+
Jr((r) => this.useSocketClient(r.streamID).pipe(
|
|
62503
|
+
Jr((a) => this.useHeartbeat(a, r))
|
|
62504
62504
|
))
|
|
62505
|
-
).pipe(
|
|
62505
|
+
).pipe(Cd()), this.subscriptions.push(this.monitor()), this.subscriptions.push(this.process());
|
|
62506
62506
|
}
|
|
62507
62507
|
// Returns an observable that emits the latencies for all streams.
|
|
62508
62508
|
get latencies() {
|
|
@@ -62527,7 +62527,7 @@ class Ud {
|
|
|
62527
62527
|
return this._mimeTypeConnectable;
|
|
62528
62528
|
}
|
|
62529
62529
|
monitor() {
|
|
62530
|
-
return
|
|
62530
|
+
return ud(Nd).pipe(
|
|
62531
62531
|
bt(() => this.autoReconnect),
|
|
62532
62532
|
_n(this.reconnect),
|
|
62533
62533
|
bt(
|
|
@@ -62543,7 +62543,7 @@ class Ud {
|
|
|
62543
62543
|
bt((t) => t.length > 0),
|
|
62544
62544
|
// tap((latencies) => console.log('Monitor latencies', latencies)),
|
|
62545
62545
|
// Throttle the reconnects to avoid overwhelming the server
|
|
62546
|
-
|
|
62546
|
+
qr(si)
|
|
62547
62547
|
).subscribe({
|
|
62548
62548
|
next: (t) => {
|
|
62549
62549
|
console.log(/* @__PURE__ */ new Date(), "Triggering reconnect", t), this.connect();
|
|
@@ -62559,9 +62559,9 @@ class Ud {
|
|
|
62559
62559
|
process() {
|
|
62560
62560
|
const e = this.client.pipe(
|
|
62561
62561
|
bt((o) => (o == null ? void 0 : o.readyState) === WebSocket.OPEN),
|
|
62562
|
-
|
|
62562
|
+
Yr(1)
|
|
62563
62563
|
), t = this.queue.pipe(
|
|
62564
|
-
|
|
62564
|
+
gd(() => e),
|
|
62565
62565
|
bt((o) => o.length > 0),
|
|
62566
62566
|
at((o) => o.sort((r, a) => {
|
|
62567
62567
|
const n = (s) => {
|
|
@@ -62570,8 +62570,8 @@ class Ud {
|
|
|
62570
62570
|
};
|
|
62571
62571
|
return n(a) ? 1 : n(r) ? -1 : 0;
|
|
62572
62572
|
}))
|
|
62573
|
-
), l = this.queue.pipe(
|
|
62574
|
-
return
|
|
62573
|
+
), l = this.queue.pipe(Ed(e));
|
|
62574
|
+
return hd(
|
|
62575
62575
|
// Flatten buffered arrays
|
|
62576
62576
|
t.pipe(
|
|
62577
62577
|
// Use mergeMap to flatten
|
|
@@ -62627,7 +62627,7 @@ class Ud {
|
|
|
62627
62627
|
console.error("Failed to parse WebsocketResponse:", c);
|
|
62628
62628
|
}
|
|
62629
62629
|
const i = s.status;
|
|
62630
|
-
if (i && i.code !==
|
|
62630
|
+
if (i && i.code !== fc.OK) {
|
|
62631
62631
|
t.error(i);
|
|
62632
62632
|
return;
|
|
62633
62633
|
}
|
|
@@ -62635,13 +62635,13 @@ class Ud {
|
|
|
62635
62635
|
return;
|
|
62636
62636
|
const d = s.payload.value;
|
|
62637
62637
|
if (d.stdoutData && d.stdoutData.length > 0 && ((p = this.callback) == null || p.call(this, {
|
|
62638
|
-
type:
|
|
62638
|
+
type: bs.terminalStdout,
|
|
62639
62639
|
output: {
|
|
62640
62640
|
"runme.dev/id": this.knownID,
|
|
62641
62641
|
data: d.stdoutData
|
|
62642
62642
|
}
|
|
62643
62643
|
}), this._stdout.next(d.stdoutData)), d.stderrData && d.stderrData.length > 0 && ((m = this.callback) == null || m.call(this, {
|
|
62644
|
-
type:
|
|
62644
|
+
type: bs.terminalStderr,
|
|
62645
62645
|
output: {
|
|
62646
62646
|
"runme.dev/id": this.knownID,
|
|
62647
62647
|
data: d.stderrData
|
|
@@ -62669,7 +62669,7 @@ class Ud {
|
|
|
62669
62669
|
}
|
|
62670
62670
|
sendExecuteRequest(e) {
|
|
62671
62671
|
this.queue.next(
|
|
62672
|
-
it(
|
|
62672
|
+
it(wn, {
|
|
62673
62673
|
payload: {
|
|
62674
62674
|
value: e,
|
|
62675
62675
|
case: "executeRequest"
|
|
@@ -62682,7 +62682,7 @@ class Ud {
|
|
|
62682
62682
|
// If heartbeat is Heartbeat.INITIAL, sends only a single immediate ping.
|
|
62683
62683
|
useHeartbeat(e, { streamID: t, heartbeat: l }) {
|
|
62684
62684
|
return new Xe((h) => {
|
|
62685
|
-
const v =
|
|
62685
|
+
const v = In(e, "message").pipe(
|
|
62686
62686
|
ks(() => e.readyState === WebSocket.OPEN),
|
|
62687
62687
|
at((s) => ni(s.data)),
|
|
62688
62688
|
at((s) => s.pong),
|
|
@@ -62691,13 +62691,13 @@ class Ud {
|
|
|
62691
62691
|
receivedAt: BigInt(Date.now()),
|
|
62692
62692
|
pong: s
|
|
62693
62693
|
}))
|
|
62694
|
-
), a = (l === "INITIAL" ?
|
|
62694
|
+
), a = (l === "INITIAL" ? ys(0) : ys(0, Bd)).pipe(
|
|
62695
62695
|
ks(() => e.readyState === WebSocket.OPEN),
|
|
62696
62696
|
at(() => {
|
|
62697
62697
|
const s = { timestamp: BigInt(Date.now()) };
|
|
62698
|
-
return it(
|
|
62698
|
+
return it(wn, { ping: s });
|
|
62699
62699
|
}),
|
|
62700
|
-
|
|
62700
|
+
Qr((s) => {
|
|
62701
62701
|
ri({
|
|
62702
62702
|
req: s,
|
|
62703
62703
|
authorization: this.authorization,
|
|
@@ -62711,18 +62711,18 @@ class Ud {
|
|
|
62711
62711
|
).pipe(
|
|
62712
62712
|
bt((s) => (s == null ? void 0 : s.timestamp) !== void 0),
|
|
62713
62713
|
Is(
|
|
62714
|
-
(s) =>
|
|
62714
|
+
(s) => pd(
|
|
62715
62715
|
v.pipe(
|
|
62716
62716
|
bt(
|
|
62717
62717
|
(i) => i.pong.timestamp === s.timestamp
|
|
62718
62718
|
),
|
|
62719
|
-
|
|
62719
|
+
Yr(1),
|
|
62720
62720
|
at((i) => {
|
|
62721
62721
|
const d = s.timestamp, p = i.receivedAt;
|
|
62722
62722
|
return Number(p - d);
|
|
62723
62723
|
})
|
|
62724
62724
|
),
|
|
62725
|
-
|
|
62725
|
+
ys(Bs).pipe(
|
|
62726
62726
|
at(() => {
|
|
62727
62727
|
throw new Error(
|
|
62728
62728
|
`Pong not received within ${Bs}ms for stream ${t}`
|
|
@@ -62730,15 +62730,15 @@ class Ud {
|
|
|
62730
62730
|
})
|
|
62731
62731
|
)
|
|
62732
62732
|
).pipe(
|
|
62733
|
-
|
|
62733
|
+
Eo((i) => (this._latencies.next({
|
|
62734
62734
|
streamID: t,
|
|
62735
62735
|
latency: Bs,
|
|
62736
62736
|
readyState: e.readyState,
|
|
62737
62737
|
updatedAt: BigInt(Date.now())
|
|
62738
|
-
}), console.log(/* @__PURE__ */ new Date(), "Ping deadline exceeded", i.message),
|
|
62738
|
+
}), console.log(/* @__PURE__ */ new Date(), "Ping deadline exceeded", i.message), Yc(null)))
|
|
62739
62739
|
)
|
|
62740
62740
|
),
|
|
62741
|
-
|
|
62741
|
+
bd(() => {
|
|
62742
62742
|
this._latencies.next({
|
|
62743
62743
|
streamID: t,
|
|
62744
62744
|
latency: -1,
|
|
@@ -62746,7 +62746,7 @@ class Ud {
|
|
|
62746
62746
|
updatedAt: BigInt(Date.now())
|
|
62747
62747
|
});
|
|
62748
62748
|
}),
|
|
62749
|
-
|
|
62749
|
+
Qr((s) => {
|
|
62750
62750
|
s !== null && this._latencies.next({
|
|
62751
62751
|
streamID: t,
|
|
62752
62752
|
latency: s,
|
|
@@ -62785,7 +62785,7 @@ class Ud {
|
|
|
62785
62785
|
}
|
|
62786
62786
|
function ni(u) {
|
|
62787
62787
|
const e = JSON.parse(u);
|
|
62788
|
-
return Jl(
|
|
62788
|
+
return Jl(pc, e);
|
|
62789
62789
|
}
|
|
62790
62790
|
function ri({
|
|
62791
62791
|
req: u,
|
|
@@ -62796,13 +62796,13 @@ function ri({
|
|
|
62796
62796
|
}) {
|
|
62797
62797
|
l && (u.knownId = l), h && (u.runId = h);
|
|
62798
62798
|
const { bearerToken: v } = e;
|
|
62799
|
-
v && u && (u.authorization = `Bearer ${v}`), t.send(JSON.stringify(Fl(
|
|
62799
|
+
v && u && (u.authorization = `Bearer ${v}`), t.send(JSON.stringify(Fl(wn, u)));
|
|
62800
62800
|
}
|
|
62801
62801
|
function Fd() {
|
|
62802
|
-
return
|
|
62802
|
+
return kd().replace(/-/g, "");
|
|
62803
62803
|
}
|
|
62804
62804
|
function Nu() {
|
|
62805
|
-
return `run_${
|
|
62805
|
+
return `run_${Pd()}`;
|
|
62806
62806
|
}
|
|
62807
62807
|
function $u({
|
|
62808
62808
|
blockID: u,
|
|
@@ -62905,9 +62905,9 @@ function $u({
|
|
|
62905
62905
|
f
|
|
62906
62906
|
]
|
|
62907
62907
|
), C = new TextEncoder();
|
|
62908
|
-
return
|
|
62908
|
+
return dc({
|
|
62909
62909
|
postMessage: (E) => {
|
|
62910
|
-
if (E.type ===
|
|
62910
|
+
if (E.type === bs.terminalOpen || E.type === bs.terminalResize) {
|
|
62911
62911
|
const j = Number(E.output.terminalDimensions.columns), O = Number(E.output.terminalDimensions.rows);
|
|
62912
62912
|
if (Number.isFinite(j) && Number.isFinite(O)) {
|
|
62913
62913
|
if (_.cols === j && _.rows === O)
|
|
@@ -62924,7 +62924,7 @@ function $u({
|
|
|
62924
62924
|
g == null || g.sendExecuteRequest(I);
|
|
62925
62925
|
}
|
|
62926
62926
|
}
|
|
62927
|
-
if (E.type ===
|
|
62927
|
+
if (E.type === bs.terminalStdin) {
|
|
62928
62928
|
const j = C.encode(E.output.input), O = it(pn, { inputData: j });
|
|
62929
62929
|
g == null || g.sendExecuteRequest(O);
|
|
62930
62930
|
}
|