@jsenv/plugin-toolbar 1.4.27 → 1.4.29
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/js/toolbar_core.js +115 -77
- package/package.json +3 -3
package/dist/js/toolbar_core.js
CHANGED
|
@@ -2,8 +2,8 @@ var l$2,
|
|
|
2
2
|
t$2;
|
|
3
3
|
l$2 = {
|
|
4
4
|
__e: function (n, l, u, t) {
|
|
5
|
-
for (var i,
|
|
6
|
-
if ((
|
|
5
|
+
for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
|
|
6
|
+
if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o) return i.__E = i;
|
|
7
7
|
} catch (l) {
|
|
8
8
|
n = l;
|
|
9
9
|
}
|
|
@@ -17,17 +17,17 @@ var t$1,
|
|
|
17
17
|
r$1,
|
|
18
18
|
u$1,
|
|
19
19
|
i$1,
|
|
20
|
-
o = 0,
|
|
20
|
+
o$1 = 0,
|
|
21
21
|
f$1 = [],
|
|
22
|
-
c$
|
|
23
|
-
e$1 = c$
|
|
24
|
-
a$
|
|
25
|
-
v$2 = c$
|
|
26
|
-
l$1 = c$
|
|
27
|
-
m = c$
|
|
28
|
-
s$1 = c$
|
|
22
|
+
c$1 = l$2,
|
|
23
|
+
e$1 = c$1.__b,
|
|
24
|
+
a$2 = c$1.__r,
|
|
25
|
+
v$2 = c$1.diffed,
|
|
26
|
+
l$1 = c$1.__c,
|
|
27
|
+
m$1 = c$1.unmount,
|
|
28
|
+
s$1 = c$1.__;
|
|
29
29
|
function d$2(n, t) {
|
|
30
|
-
c$
|
|
30
|
+
c$1.__h && c$1.__h(r$1, n, o$1 || t), o$1 = 0;
|
|
31
31
|
var u = r$1.__H || (r$1.__H = {
|
|
32
32
|
__: [],
|
|
33
33
|
__h: []
|
|
@@ -42,26 +42,26 @@ function j() {
|
|
|
42
42
|
for (var n; n = f$1.shift();) if (n.__P && n.__H) try {
|
|
43
43
|
n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];
|
|
44
44
|
} catch (t) {
|
|
45
|
-
n.__H.__h = [], c$
|
|
45
|
+
n.__H.__h = [], c$1.__e(t, n.__v);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
c$
|
|
48
|
+
c$1.__b = function (n) {
|
|
49
49
|
r$1 = null, e$1 && e$1(n);
|
|
50
|
-
}, c$
|
|
50
|
+
}, c$1.__ = function (n, t) {
|
|
51
51
|
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
|
|
52
|
-
}, c$
|
|
53
|
-
a$
|
|
52
|
+
}, c$1.__r = function (n) {
|
|
53
|
+
a$2 && a$2(n), t$1 = 0;
|
|
54
54
|
var i = (r$1 = n.__c).__H;
|
|
55
55
|
i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
|
|
56
56
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
57
57
|
})) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$1 = r$1;
|
|
58
|
-
}, c$
|
|
58
|
+
}, c$1.diffed = function (n) {
|
|
59
59
|
v$2 && v$2(n);
|
|
60
60
|
var t = n.__c;
|
|
61
|
-
t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$
|
|
61
|
+
t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$1.requestAnimationFrame || ((i$1 = c$1.requestAnimationFrame) || w$1)(j)), t.__H.__.forEach(function (n) {
|
|
62
62
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
63
63
|
})), u$1 = r$1 = null;
|
|
64
|
-
}, c$
|
|
64
|
+
}, c$1.__c = function (n, t) {
|
|
65
65
|
t.some(function (n) {
|
|
66
66
|
try {
|
|
67
67
|
n.__h.forEach(z), n.__h = n.__h.filter(function (n) {
|
|
@@ -70,11 +70,11 @@ c$2.__b = function (n) {
|
|
|
70
70
|
} catch (r) {
|
|
71
71
|
t.some(function (n) {
|
|
72
72
|
n.__h && (n.__h = []);
|
|
73
|
-
}), t = [], c$
|
|
73
|
+
}), t = [], c$1.__e(r, n.__v);
|
|
74
74
|
}
|
|
75
75
|
}), l$1 && l$1(n, t);
|
|
76
|
-
}, c$
|
|
77
|
-
m && m(n);
|
|
76
|
+
}, c$1.unmount = function (n) {
|
|
77
|
+
m$1 && m$1(n);
|
|
78
78
|
var t,
|
|
79
79
|
r = n.__c;
|
|
80
80
|
r && r.__H && (r.__H.__.forEach(function (n) {
|
|
@@ -83,7 +83,7 @@ c$2.__b = function (n) {
|
|
|
83
83
|
} catch (n) {
|
|
84
84
|
t = n;
|
|
85
85
|
}
|
|
86
|
-
}), r.__H = void 0, t && c$
|
|
86
|
+
}), r.__H = void 0, t && c$1.__e(t, r.__v));
|
|
87
87
|
};
|
|
88
88
|
var k = "function" == typeof requestAnimationFrame;
|
|
89
89
|
function w$1(n) {
|
|
@@ -140,11 +140,20 @@ function t() {
|
|
|
140
140
|
r--;
|
|
141
141
|
if (t) throw i;
|
|
142
142
|
}
|
|
143
|
+
function o(i) {
|
|
144
|
+
if (r > 0) return i();
|
|
145
|
+
r++;
|
|
146
|
+
try {
|
|
147
|
+
return i();
|
|
148
|
+
} finally {
|
|
149
|
+
t();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
143
152
|
let n, s;
|
|
144
153
|
let r = 0,
|
|
145
154
|
f = 0,
|
|
146
155
|
e = 0;
|
|
147
|
-
function c
|
|
156
|
+
function c(i) {
|
|
148
157
|
if (void 0 === n) return;
|
|
149
158
|
let t = i.n;
|
|
150
159
|
if (void 0 === t || t.t !== n) {
|
|
@@ -240,7 +249,7 @@ u.prototype.peek = function () {
|
|
|
240
249
|
};
|
|
241
250
|
Object.defineProperty(u.prototype, "value", {
|
|
242
251
|
get() {
|
|
243
|
-
const i = c
|
|
252
|
+
const i = c(this);
|
|
244
253
|
if (void 0 !== i) i.i = this.i;
|
|
245
254
|
return this.v;
|
|
246
255
|
},
|
|
@@ -278,7 +287,7 @@ function l(i) {
|
|
|
278
287
|
}
|
|
279
288
|
}
|
|
280
289
|
}
|
|
281
|
-
function y(i) {
|
|
290
|
+
function y$1(i) {
|
|
282
291
|
let t,
|
|
283
292
|
o = i.s;
|
|
284
293
|
while (void 0 !== o) {
|
|
@@ -294,14 +303,14 @@ function y(i) {
|
|
|
294
303
|
}
|
|
295
304
|
i.s = t;
|
|
296
305
|
}
|
|
297
|
-
function a(i) {
|
|
306
|
+
function a$1(i) {
|
|
298
307
|
u.call(this, void 0);
|
|
299
308
|
this.x = i;
|
|
300
309
|
this.s = void 0;
|
|
301
310
|
this.g = e - 1;
|
|
302
311
|
this.f = 4;
|
|
303
312
|
}
|
|
304
|
-
(a.prototype = new u()).h = function () {
|
|
313
|
+
(a$1.prototype = new u()).h = function () {
|
|
305
314
|
this.f &= -3;
|
|
306
315
|
if (1 & this.f) return !1;
|
|
307
316
|
if (32 == (36 & this.f)) return !0;
|
|
@@ -329,18 +338,18 @@ function a(i) {
|
|
|
329
338
|
this.i++;
|
|
330
339
|
}
|
|
331
340
|
n = i;
|
|
332
|
-
y(this);
|
|
341
|
+
y$1(this);
|
|
333
342
|
this.f &= -2;
|
|
334
343
|
return !0;
|
|
335
344
|
};
|
|
336
|
-
a.prototype.S = function (i) {
|
|
345
|
+
a$1.prototype.S = function (i) {
|
|
337
346
|
if (void 0 === this.t) {
|
|
338
347
|
this.f |= 36;
|
|
339
348
|
for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
|
|
340
349
|
}
|
|
341
350
|
u.prototype.S.call(this, i);
|
|
342
351
|
};
|
|
343
|
-
a.prototype.U = function (i) {
|
|
352
|
+
a$1.prototype.U = function (i) {
|
|
344
353
|
if (void 0 !== this.t) {
|
|
345
354
|
u.prototype.U.call(this, i);
|
|
346
355
|
if (void 0 === this.t) {
|
|
@@ -349,16 +358,16 @@ a.prototype.U = function (i) {
|
|
|
349
358
|
}
|
|
350
359
|
}
|
|
351
360
|
};
|
|
352
|
-
a.prototype.N = function () {
|
|
361
|
+
a$1.prototype.N = function () {
|
|
353
362
|
if (!(2 & this.f)) {
|
|
354
363
|
this.f |= 6;
|
|
355
364
|
for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
|
|
356
365
|
}
|
|
357
366
|
};
|
|
358
|
-
Object.defineProperty(a.prototype, "value", {
|
|
367
|
+
Object.defineProperty(a$1.prototype, "value", {
|
|
359
368
|
get() {
|
|
360
369
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
361
|
-
const i = c
|
|
370
|
+
const i = c(this);
|
|
362
371
|
this.h();
|
|
363
372
|
if (void 0 !== i) i.i = this.i;
|
|
364
373
|
if (16 & this.f) throw this.v;
|
|
@@ -366,9 +375,9 @@ Object.defineProperty(a.prototype, "value", {
|
|
|
366
375
|
}
|
|
367
376
|
});
|
|
368
377
|
function w(i) {
|
|
369
|
-
return new a(i);
|
|
378
|
+
return new a$1(i);
|
|
370
379
|
}
|
|
371
|
-
function _(i) {
|
|
380
|
+
function _$1(i) {
|
|
372
381
|
const o = i.u;
|
|
373
382
|
i.u = void 0;
|
|
374
383
|
if ("function" == typeof o) {
|
|
@@ -392,24 +401,24 @@ function g(i) {
|
|
|
392
401
|
for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
393
402
|
i.x = void 0;
|
|
394
403
|
i.s = void 0;
|
|
395
|
-
_(i);
|
|
404
|
+
_$1(i);
|
|
396
405
|
}
|
|
397
406
|
function p$1(i) {
|
|
398
407
|
if (n !== this) throw new Error("Out-of-order effect");
|
|
399
|
-
y(this);
|
|
408
|
+
y$1(this);
|
|
400
409
|
n = i;
|
|
401
410
|
this.f &= -2;
|
|
402
411
|
if (8 & this.f) g(this);
|
|
403
412
|
t();
|
|
404
413
|
}
|
|
405
|
-
function b(i) {
|
|
414
|
+
function b$1(i) {
|
|
406
415
|
this.x = i;
|
|
407
416
|
this.u = void 0;
|
|
408
417
|
this.s = void 0;
|
|
409
418
|
this.o = void 0;
|
|
410
419
|
this.f = 32;
|
|
411
420
|
}
|
|
412
|
-
b.prototype.c = function () {
|
|
421
|
+
b$1.prototype.c = function () {
|
|
413
422
|
const i = this.S();
|
|
414
423
|
try {
|
|
415
424
|
if (8 & this.f) return;
|
|
@@ -420,30 +429,30 @@ b.prototype.c = function () {
|
|
|
420
429
|
i();
|
|
421
430
|
}
|
|
422
431
|
};
|
|
423
|
-
b.prototype.S = function () {
|
|
432
|
+
b$1.prototype.S = function () {
|
|
424
433
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
425
434
|
this.f |= 1;
|
|
426
435
|
this.f &= -9;
|
|
427
|
-
_(this);
|
|
436
|
+
_$1(this);
|
|
428
437
|
l(this);
|
|
429
438
|
r++;
|
|
430
439
|
const i = n;
|
|
431
440
|
n = this;
|
|
432
441
|
return p$1.bind(this, i);
|
|
433
442
|
};
|
|
434
|
-
b.prototype.N = function () {
|
|
443
|
+
b$1.prototype.N = function () {
|
|
435
444
|
if (!(2 & this.f)) {
|
|
436
445
|
this.f |= 2;
|
|
437
446
|
this.o = s;
|
|
438
447
|
s = this;
|
|
439
448
|
}
|
|
440
449
|
};
|
|
441
|
-
b.prototype.d = function () {
|
|
450
|
+
b$1.prototype.d = function () {
|
|
442
451
|
this.f |= 8;
|
|
443
452
|
if (!(1 & this.f)) g(this);
|
|
444
453
|
};
|
|
445
454
|
function E(i) {
|
|
446
|
-
const t = new b(i);
|
|
455
|
+
const t = new b$1(i);
|
|
447
456
|
try {
|
|
448
457
|
t.c();
|
|
449
458
|
} catch (i) {
|
|
@@ -453,25 +462,34 @@ function E(i) {
|
|
|
453
462
|
return t.d.bind(t);
|
|
454
463
|
}
|
|
455
464
|
|
|
456
|
-
function
|
|
465
|
+
function a(t, e) {
|
|
457
466
|
l$2[t] = e.bind(null, l$2[t] || (() => {}));
|
|
458
467
|
}
|
|
459
468
|
let d;
|
|
460
|
-
function
|
|
469
|
+
function p(t) {
|
|
461
470
|
if (d) d();
|
|
462
471
|
d = t && t.S();
|
|
463
472
|
}
|
|
464
|
-
function
|
|
473
|
+
function v({
|
|
465
474
|
data: t
|
|
466
475
|
}) {
|
|
467
476
|
const i = useSignal(t);
|
|
468
477
|
i.value = t;
|
|
469
478
|
const o = T(() => {
|
|
470
|
-
let t = this
|
|
471
|
-
|
|
472
|
-
|
|
479
|
+
let t = this,
|
|
480
|
+
n = this.__v;
|
|
481
|
+
while (n = n.__) if (n.__c) {
|
|
482
|
+
n.__c.__$f |= 4;
|
|
473
483
|
break;
|
|
474
484
|
}
|
|
485
|
+
const f = w(function () {
|
|
486
|
+
let t = i.value.value;
|
|
487
|
+
return 0 === t ? 0 : !0 === t ? "" : t || "";
|
|
488
|
+
}),
|
|
489
|
+
r = w(() => {
|
|
490
|
+
var t;
|
|
491
|
+
return t$2(f.value) || 3 !== (null == (t = this.base) ? void 0 : t.nodeType);
|
|
492
|
+
});
|
|
475
493
|
this.__$u.c = () => {
|
|
476
494
|
var t;
|
|
477
495
|
if (!t$2(o.peek()) && 3 === (null == (t = this.base) ? void 0 : t.nodeType)) this.base.data = o.peek();else {
|
|
@@ -479,14 +497,16 @@ function p({
|
|
|
479
497
|
this.setState({});
|
|
480
498
|
}
|
|
481
499
|
};
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
500
|
+
E(function () {
|
|
501
|
+
if (!m) m = this.N;
|
|
502
|
+
this.N = A;
|
|
503
|
+
if (r.value && t.base) t.base.data = f.value;
|
|
485
504
|
});
|
|
505
|
+
return f;
|
|
486
506
|
}, []);
|
|
487
507
|
return o.value;
|
|
488
508
|
}
|
|
489
|
-
|
|
509
|
+
v.displayName = "_st";
|
|
490
510
|
Object.defineProperties(u.prototype, {
|
|
491
511
|
constructor: {
|
|
492
512
|
configurable: !0,
|
|
@@ -494,7 +514,7 @@ Object.defineProperties(u.prototype, {
|
|
|
494
514
|
},
|
|
495
515
|
type: {
|
|
496
516
|
configurable: !0,
|
|
497
|
-
value:
|
|
517
|
+
value: v
|
|
498
518
|
},
|
|
499
519
|
props: {
|
|
500
520
|
configurable: !0,
|
|
@@ -509,7 +529,7 @@ Object.defineProperties(u.prototype, {
|
|
|
509
529
|
value: 1
|
|
510
530
|
}
|
|
511
531
|
});
|
|
512
|
-
|
|
532
|
+
a("__b", (t, i) => {
|
|
513
533
|
if ("string" == typeof i.type) {
|
|
514
534
|
let t,
|
|
515
535
|
e = i.props;
|
|
@@ -525,8 +545,8 @@ c("__b", (t, i) => {
|
|
|
525
545
|
}
|
|
526
546
|
t(i);
|
|
527
547
|
});
|
|
528
|
-
|
|
529
|
-
|
|
548
|
+
a("__r", (t, i) => {
|
|
549
|
+
p();
|
|
530
550
|
let e,
|
|
531
551
|
n = i.__c;
|
|
532
552
|
if (n) {
|
|
@@ -544,15 +564,15 @@ c("__r", (t, i) => {
|
|
|
544
564
|
return i;
|
|
545
565
|
}();
|
|
546
566
|
}
|
|
547
|
-
|
|
567
|
+
p(e);
|
|
548
568
|
t(i);
|
|
549
569
|
});
|
|
550
|
-
|
|
551
|
-
|
|
570
|
+
a("__e", (t, i, e, n) => {
|
|
571
|
+
p();
|
|
552
572
|
t(i, e, n);
|
|
553
573
|
});
|
|
554
|
-
|
|
555
|
-
|
|
574
|
+
a("diffed", (t, i) => {
|
|
575
|
+
p();
|
|
556
576
|
let e;
|
|
557
577
|
if ("string" == typeof i.type && (e = i.__e)) {
|
|
558
578
|
let t = i.__np,
|
|
@@ -570,27 +590,29 @@ c("diffed", (t, i) => {
|
|
|
570
590
|
e.U = i;
|
|
571
591
|
}
|
|
572
592
|
for (let o in t) {
|
|
573
|
-
let
|
|
574
|
-
|
|
575
|
-
if (void 0 ===
|
|
576
|
-
|
|
577
|
-
i[o] =
|
|
578
|
-
} else
|
|
593
|
+
let f = i[o],
|
|
594
|
+
r = t[o];
|
|
595
|
+
if (void 0 === f) {
|
|
596
|
+
f = _(e, o, r, n);
|
|
597
|
+
i[o] = f;
|
|
598
|
+
} else f.o(r, n);
|
|
579
599
|
}
|
|
580
600
|
}
|
|
581
601
|
}
|
|
582
602
|
t(i);
|
|
583
603
|
});
|
|
584
|
-
function
|
|
604
|
+
function _(t, i, e, n) {
|
|
585
605
|
const o = i in t && void 0 === t.ownerSVGElement,
|
|
586
|
-
|
|
606
|
+
f = d$1(e);
|
|
587
607
|
return {
|
|
588
608
|
o: (t, i) => {
|
|
589
|
-
|
|
609
|
+
f.value = t;
|
|
590
610
|
n = i;
|
|
591
611
|
},
|
|
592
|
-
d: E(()
|
|
593
|
-
|
|
612
|
+
d: E(function () {
|
|
613
|
+
if (!m) m = this.N;
|
|
614
|
+
this.N = A;
|
|
615
|
+
const e = f.value.value;
|
|
594
616
|
if (n[i] !== e) {
|
|
595
617
|
n[i] = e;
|
|
596
618
|
if (o) t[i] = e;else if (e) t.setAttribute(i, e);else t.removeAttribute(i);
|
|
@@ -598,7 +620,7 @@ function v(t, i, e, n) {
|
|
|
598
620
|
})
|
|
599
621
|
};
|
|
600
622
|
}
|
|
601
|
-
|
|
623
|
+
a("unmount", (t, i) => {
|
|
602
624
|
if ("string" == typeof i.type) {
|
|
603
625
|
let t = i.__e;
|
|
604
626
|
if (t) {
|
|
@@ -623,13 +645,29 @@ c("unmount", (t, i) => {
|
|
|
623
645
|
}
|
|
624
646
|
t(i);
|
|
625
647
|
});
|
|
626
|
-
|
|
648
|
+
a("__h", (t, i, e, n) => {
|
|
627
649
|
if (n < 3 || 9 === n) i.__$f |= 2;
|
|
628
650
|
t(i, e, n);
|
|
629
651
|
});
|
|
630
652
|
function useSignal(t) {
|
|
631
653
|
return T(() => d$1(t), []);
|
|
632
654
|
}
|
|
655
|
+
let m,
|
|
656
|
+
b = [];
|
|
657
|
+
const y = t => {
|
|
658
|
+
queueMicrotask(() => {
|
|
659
|
+
queueMicrotask(t);
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
function x() {
|
|
663
|
+
o(() => {
|
|
664
|
+
let t;
|
|
665
|
+
while (t = b.shift()) m.call(t);
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
function A() {
|
|
669
|
+
if (1 === b.push(this)) (l$2.requestAnimationFrame || y)(x);
|
|
670
|
+
}
|
|
633
671
|
|
|
634
672
|
const paramsFromParentWindow = {};
|
|
635
673
|
const searchParams = new URLSearchParams(window.location.search);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.29",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"/src/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.4.
|
|
30
|
-
"@preact/signals": "
|
|
29
|
+
"@jsenv/ast": "6.4.1",
|
|
30
|
+
"@preact/signals": "2.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
|