@jsenv/plugin-toolbar 1.5.53 → 1.5.54
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 +39 -39
- package/dist/jsenv_plugin_toolbar_node_modules.js +322 -289
- package/package.json +4 -4
package/dist/js/toolbar_core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a, x, O } from "../jsenv_plugin_toolbar_node_modules.js";
|
|
2
2
|
|
|
3
3
|
const paramsFromParentWindow = {};
|
|
4
4
|
const searchParams = new URLSearchParams(window.location.search);
|
|
@@ -9,9 +9,9 @@ const parentWindowReloader = window.parent.__reloader__;
|
|
|
9
9
|
|
|
10
10
|
const stateFromLocalStorage = localStorage.hasOwnProperty("jsenv_toolbar") ? JSON.parse(localStorage.getItem("jsenv_toolbar")) : {};
|
|
11
11
|
|
|
12
|
-
const animationsEnabledSignal =
|
|
12
|
+
const animationsEnabledSignal = a(typeof stateFromLocalStorage.animationsEnabled === "boolean" ? stateFromLocalStorage.animationsEnabled : typeof paramsFromParentWindow.animationsEnabled === "boolean" ? paramsFromParentWindow.animationsEnabled : false);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
x(() => {
|
|
15
15
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
16
16
|
if (animationsEnabled) {
|
|
17
17
|
document.documentElement.removeAttribute("data-animation-disabled");
|
|
@@ -20,11 +20,11 @@ j(() => {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const executionTooltipOpenedSignal =
|
|
24
|
-
const executionSignal =
|
|
23
|
+
const executionTooltipOpenedSignal = a(false);
|
|
24
|
+
const executionSignal = a({
|
|
25
25
|
status: "running"
|
|
26
26
|
});
|
|
27
|
-
const previousExecutionSignal =
|
|
27
|
+
const previousExecutionSignal = a(sessionStorage.hasOwnProperty(window.location.href) ? JSON.parse(sessionStorage.getItem(window.location.href)) : null);
|
|
28
28
|
window.parent.__supervisor__.getDocumentExecutionResult().then(({
|
|
29
29
|
status,
|
|
30
30
|
startTime,
|
|
@@ -39,8 +39,8 @@ window.parent.__supervisor__.getDocumentExecutionResult().then(({
|
|
|
39
39
|
|
|
40
40
|
const notificationAPIDetected = typeof window.Notification === "function";
|
|
41
41
|
|
|
42
|
-
const notificationsEnabledSignal =
|
|
43
|
-
const notificationPermissionSignal =
|
|
42
|
+
const notificationsEnabledSignal = a(typeof stateFromLocalStorage.notificationsEnabled === "boolean" ? stateFromLocalStorage.notificationsEnabled : typeof paramsFromParentWindow.notificationsEnabled === "boolean" ? paramsFromParentWindow.notificationsEnabled : false);
|
|
43
|
+
const notificationPermissionSignal = a(Notification.permission);
|
|
44
44
|
|
|
45
45
|
const enableNotifications = () => {
|
|
46
46
|
notificationsEnabledSignal.value = true;
|
|
@@ -146,13 +146,13 @@ const getFaviconHref = () => {
|
|
|
146
146
|
return link ? link.href : undefined;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
x(() => {
|
|
150
150
|
const execution = executionSignal.value;
|
|
151
151
|
if (execution) {
|
|
152
152
|
sessionStorage.setItem(window.location.href, JSON.stringify(execution));
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
x(() => {
|
|
156
156
|
const execution = executionSignal.value;
|
|
157
157
|
const previousExecution = previousExecutionSignal.value;
|
|
158
158
|
if (execution) {
|
|
@@ -160,14 +160,14 @@ j(() => {
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
x(() => {
|
|
164
164
|
const notificationsEnabled = notificationsEnabledSignal.value;
|
|
165
165
|
if (!notificationsEnabled) {
|
|
166
166
|
closeAllNotifications();
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
const changesTooltipOpenedSignal =
|
|
170
|
+
const changesTooltipOpenedSignal = a(false);
|
|
171
171
|
|
|
172
172
|
const openChangesToolip = () => {
|
|
173
173
|
changesTooltipOpenedSignal.value = true;
|
|
@@ -176,9 +176,9 @@ const closeChangesToolip = () => {
|
|
|
176
176
|
changesTooltipOpenedSignal.value = false;
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
const autoreloadEnabledSignal =
|
|
180
|
-
const reloaderStatusSignal =
|
|
181
|
-
const changesSignal =
|
|
179
|
+
const autoreloadEnabledSignal = a(false);
|
|
180
|
+
const reloaderStatusSignal = a("idle");
|
|
181
|
+
const changesSignal = a(0);
|
|
182
182
|
if (parentWindowReloader) {
|
|
183
183
|
autoreloadEnabledSignal.value = parentWindowReloader.autoreload.enabled;
|
|
184
184
|
parentWindowReloader.autoreload.onchange = () => {
|
|
@@ -252,7 +252,7 @@ const renameAttribute = (node, name, newName) => {
|
|
|
252
252
|
|
|
253
253
|
const changesIndicator = document.querySelector("#changes_indicator");
|
|
254
254
|
const renderChangesIndicator = () => {
|
|
255
|
-
|
|
255
|
+
x(() => {
|
|
256
256
|
const autoreloadEnabled = autoreloadEnabledSignal.value;
|
|
257
257
|
const changes = changesSignal.value;
|
|
258
258
|
const changeCount = changes.length;
|
|
@@ -274,7 +274,7 @@ const renderChangesIndicator = () => {
|
|
|
274
274
|
changesIndicator.querySelector(".tooltip_action").onclick = () => {
|
|
275
275
|
parentWindowReloader.reload();
|
|
276
276
|
};
|
|
277
|
-
|
|
277
|
+
x(() => {
|
|
278
278
|
const changesTooltipOpened = changesTooltipOpenedSignal.value;
|
|
279
279
|
if (changesTooltipOpened) {
|
|
280
280
|
changesIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -345,11 +345,11 @@ const deactivateToolbarSection = element => {
|
|
|
345
345
|
const executionIndicator = document.querySelector("#document_execution_indicator");
|
|
346
346
|
const renderDocumentExecutionIndicator = async () => {
|
|
347
347
|
removeForceHideElement(document.querySelector("#document_execution_indicator"));
|
|
348
|
-
|
|
348
|
+
x(() => {
|
|
349
349
|
const execution = executionSignal.value;
|
|
350
350
|
updateExecutionIndicator(execution);
|
|
351
351
|
});
|
|
352
|
-
|
|
352
|
+
x(() => {
|
|
353
353
|
const executionTooltipOpened = executionTooltipOpenedSignal.value;
|
|
354
354
|
if (executionTooltipOpened) {
|
|
355
355
|
executionIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -415,8 +415,8 @@ const renderDocumentIndexLink = () => {
|
|
|
415
415
|
setLinkHrefForParentWindow(document.querySelector("#document_index_link"), "/");
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
const serverTooltipOpenedSignal =
|
|
419
|
-
const serverConnectionSignal =
|
|
418
|
+
const serverTooltipOpenedSignal = a(false);
|
|
419
|
+
const serverConnectionSignal = a("default");
|
|
420
420
|
const serverEvents$1 = window.__server_events__;
|
|
421
421
|
if (serverEvents$1) {
|
|
422
422
|
serverEvents$1.readyState.onchange = () => {
|
|
@@ -437,11 +437,11 @@ const serverEvents = window.__server_events__;
|
|
|
437
437
|
const serverIndicator = document.querySelector("#server_indicator");
|
|
438
438
|
const renderServerIndicator = () => {
|
|
439
439
|
removeForceHideElement(document.querySelector("#server_indicator"));
|
|
440
|
-
|
|
440
|
+
x(() => {
|
|
441
441
|
const serverConnection = serverConnectionSignal.value;
|
|
442
442
|
updateServerIndicator(serverConnection);
|
|
443
443
|
});
|
|
444
|
-
|
|
444
|
+
x(() => {
|
|
445
445
|
const serverTooltipOpened = serverTooltipOpenedSignal.value;
|
|
446
446
|
if (serverTooltipOpened) {
|
|
447
447
|
serverIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -480,7 +480,7 @@ const updateServerIndicator = connectionState => {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
const openedSignal =
|
|
483
|
+
const openedSignal = a(typeof stateFromLocalStorage.opened === "boolean" ? stateFromLocalStorage.opened : typeof paramsFromParentWindow.opened === "boolean" ? paramsFromParentWindow.opened : false);
|
|
484
484
|
|
|
485
485
|
const openToolbar = () => {
|
|
486
486
|
openedSignal.value = true;
|
|
@@ -745,7 +745,7 @@ const startJavaScriptAnimation = ({
|
|
|
745
745
|
};
|
|
746
746
|
|
|
747
747
|
const initToolbarOpening = () => {
|
|
748
|
-
|
|
748
|
+
x(() => {
|
|
749
749
|
const opened = openedSignal.value;
|
|
750
750
|
if (opened) {
|
|
751
751
|
showToolbar();
|
|
@@ -803,7 +803,7 @@ const showToolbar = () => {
|
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
805
|
|
|
806
|
-
const settingsOpenedSignal =
|
|
806
|
+
const settingsOpenedSignal = a(false);
|
|
807
807
|
|
|
808
808
|
const openSettings = () => {
|
|
809
809
|
settingsOpenedSignal.value = true;
|
|
@@ -818,7 +818,7 @@ const renderToolbarOverlay = () => {
|
|
|
818
818
|
closeAllTooltips();
|
|
819
819
|
closeSettings();
|
|
820
820
|
};
|
|
821
|
-
|
|
821
|
+
x(() => {
|
|
822
822
|
const opened = openedSignal.value;
|
|
823
823
|
const settingsOpened = settingsOpenedSignal.value;
|
|
824
824
|
const executionTooltipOpened = executionTooltipOpenedSignal.value;
|
|
@@ -882,7 +882,7 @@ const disableAnimations = () => {
|
|
|
882
882
|
|
|
883
883
|
const renderToolbarAnimationSetting = () => {
|
|
884
884
|
const animCheckbox = document.querySelector("#toggle_anims");
|
|
885
|
-
|
|
885
|
+
x(() => {
|
|
886
886
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
887
887
|
animCheckbox.checked = animationsEnabled;
|
|
888
888
|
});
|
|
@@ -945,7 +945,7 @@ const renderToolbarAutoreloadSetting = () => {
|
|
|
945
945
|
return;
|
|
946
946
|
}
|
|
947
947
|
const autoreloadCheckbox = document.querySelector("#toggle_autoreload");
|
|
948
|
-
|
|
948
|
+
x(() => {
|
|
949
949
|
const autoreloadEnabled = autoreloadEnabledSignal.value;
|
|
950
950
|
if (autoreloadEnabled) {
|
|
951
951
|
autoreloadCheckbox.checked = true;
|
|
@@ -1005,11 +1005,11 @@ const disableAutoreloadSetting = () => {
|
|
|
1005
1005
|
|
|
1006
1006
|
const notifCheckbox = document.querySelector("#toggle_notifs");
|
|
1007
1007
|
const renderToolbarNotificationSetting = () => {
|
|
1008
|
-
|
|
1008
|
+
x(() => {
|
|
1009
1009
|
const notificationsEnabled = notificationsEnabledSignal.value;
|
|
1010
1010
|
notifCheckbox.checked = notificationsEnabled;
|
|
1011
1011
|
});
|
|
1012
|
-
|
|
1012
|
+
x(() => {
|
|
1013
1013
|
const notificationPermission = notificationPermissionSignal.value;
|
|
1014
1014
|
if (!notificationAPIDetected) {
|
|
1015
1015
|
applyNotificationNotAvailableEffects();
|
|
@@ -1071,7 +1071,7 @@ const applyNotificationNOTGrantedEffects = () => {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
|
-
const ribbonDisplayedSignal =
|
|
1074
|
+
const ribbonDisplayedSignal = a(typeof stateFromLocalStorage.ribbonDisplayed === "boolean" ? stateFromLocalStorage.ribbonDisplayed : true);
|
|
1075
1075
|
|
|
1076
1076
|
const ribbonBox = document.querySelector("#ribbon_box");
|
|
1077
1077
|
const ribbonCheckbox = ribbonBox.querySelector("input");
|
|
@@ -1079,7 +1079,7 @@ const renderToolbarRibbonSetting = () => {
|
|
|
1079
1079
|
const ribbonContainer = window.parent.document.querySelector("#jsenv_ribbon_container");
|
|
1080
1080
|
if (ribbonContainer) {
|
|
1081
1081
|
ribbonBox.style.display = "block";
|
|
1082
|
-
|
|
1082
|
+
x(() => {
|
|
1083
1083
|
const ribbonDisplayed = ribbonDisplayedSignal.value;
|
|
1084
1084
|
ribbonCheckbox.checked = ribbonDisplayed;
|
|
1085
1085
|
if (ribbonDisplayed) {
|
|
@@ -1098,7 +1098,7 @@ const renderToolbarRibbonSetting = () => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
1100
|
|
|
1101
|
-
const themeSignal =
|
|
1101
|
+
const themeSignal = a(typeof stateFromLocalStorage.theme === "string" ? stateFromLocalStorage.theme : typeof paramsFromParentWindow.theme === "string" ? paramsFromParentWindow.theme : "dark");
|
|
1102
1102
|
|
|
1103
1103
|
const switchToLightTheme = () => {
|
|
1104
1104
|
themeSignal.value = "light";
|
|
@@ -1128,7 +1128,7 @@ const renderToolbarSettings = () => {
|
|
|
1128
1128
|
renderToolbarNotificationSetting();
|
|
1129
1129
|
renderToolbarThemeSetting();
|
|
1130
1130
|
renderToolbarRibbonSetting();
|
|
1131
|
-
|
|
1131
|
+
x(() => {
|
|
1132
1132
|
const settingsOpened = settingsOpenedSignal.value;
|
|
1133
1133
|
if (settingsOpened) {
|
|
1134
1134
|
activateToolbarSection(document.querySelector("#settings"));
|
|
@@ -1176,14 +1176,14 @@ addExternalCommandCallback("initToolbar", () => {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
sendEventToParent("toolbar_ready");
|
|
1178
1178
|
|
|
1179
|
-
|
|
1179
|
+
x(() => {
|
|
1180
1180
|
const serverConnection = serverConnectionSignal.value;
|
|
1181
1181
|
if (serverConnection === "connecting" || serverConnection === "closed") {
|
|
1182
1182
|
openServerTooltip();
|
|
1183
1183
|
}
|
|
1184
1184
|
});
|
|
1185
1185
|
|
|
1186
|
-
|
|
1186
|
+
x(() => {
|
|
1187
1187
|
const theme = themeSignal.value;
|
|
1188
1188
|
document.querySelector("html").setAttribute("data-theme", theme);
|
|
1189
1189
|
});
|
|
@@ -1191,7 +1191,7 @@ j(() => {
|
|
|
1191
1191
|
addExternalCommandCallback("openToolbar", openToolbar);
|
|
1192
1192
|
addExternalCommandCallback("closeToolbar", closeToolbar);
|
|
1193
1193
|
|
|
1194
|
-
const toolbarStateSignal =
|
|
1194
|
+
const toolbarStateSignal = O(() => {
|
|
1195
1195
|
const opened = openedSignal.value;
|
|
1196
1196
|
const theme = themeSignal.value;
|
|
1197
1197
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
@@ -1206,7 +1206,7 @@ const toolbarStateSignal = g(() => {
|
|
|
1206
1206
|
};
|
|
1207
1207
|
});
|
|
1208
1208
|
|
|
1209
|
-
|
|
1209
|
+
x(() => {
|
|
1210
1210
|
const toolbarState = toolbarStateSignal.value;
|
|
1211
1211
|
localStorage.setItem("jsenv_toolbar", JSON.stringify(toolbarState));
|
|
1212
1212
|
sendEventToParent("toolbar_state_change", toolbarState);
|
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
var n$1,
|
|
2
|
+
t$2,
|
|
2
3
|
r$2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
h$2 = Symbol.for("pv"),
|
|
5
|
+
v$3 = [],
|
|
6
|
+
d$2 = v$3.slice;
|
|
7
|
+
function k$2(n, t, r) {
|
|
8
|
+
var i,
|
|
9
|
+
u,
|
|
10
|
+
f,
|
|
11
|
+
e = {},
|
|
12
|
+
o = arguments.length;
|
|
13
|
+
for (f in t) "key" == f ? i = t[f] : "ref" == f && "function" != typeof n ? u = t[f] : e[f] = t[f];
|
|
14
|
+
return o > 2 && (e.children = o > 3 ? d$2.call(arguments, 2) : r), m$2(n, e, i, u);
|
|
15
|
+
}
|
|
16
|
+
function m$2(r, i, u, f, e) {
|
|
17
|
+
var o = {
|
|
18
|
+
type: r,
|
|
19
|
+
props: i,
|
|
20
|
+
key: u,
|
|
21
|
+
ref: f,
|
|
22
|
+
__k: null,
|
|
23
|
+
__: null,
|
|
24
|
+
__b: 0,
|
|
25
|
+
__e: null,
|
|
26
|
+
__c: null,
|
|
27
|
+
constructor: h$2,
|
|
28
|
+
__v: ++t$2,
|
|
29
|
+
__i: -1,
|
|
30
|
+
__u: 0
|
|
31
|
+
};
|
|
32
|
+
return n$1.vnode && n$1.vnode(o), o;
|
|
33
|
+
}
|
|
34
|
+
function M$1(n) {
|
|
6
35
|
return n.children;
|
|
7
36
|
}
|
|
8
37
|
n$1 = {
|
|
9
38
|
__e: function (n, t, r, i) {
|
|
10
|
-
for (var
|
|
11
|
-
|
|
39
|
+
for (var u, e, o; t = t.__;) if ((u = t.__c) && !(1 & u.__g)) {
|
|
40
|
+
u.__g |= 4;
|
|
12
41
|
try {
|
|
13
|
-
if ((o =
|
|
42
|
+
if ((o = (e = u.constructor) && e.getDerivedStateFromError) && u.setState(e.getDerivedStateFromError(n)), u.componentDidCatch && (u.componentDidCatch(n, i || {}), o = 1), o && 8 & u.__g) return void (u.__g |= 2);
|
|
14
43
|
} catch (t) {
|
|
15
44
|
n = t;
|
|
16
45
|
}
|
|
17
46
|
}
|
|
18
47
|
throw n;
|
|
19
48
|
}
|
|
20
|
-
}, r$2 = function (n) {
|
|
21
|
-
return
|
|
49
|
+
}, t$2 = 0, r$2 = function (n) {
|
|
50
|
+
return null != n && n.constructor === h$2;
|
|
22
51
|
};
|
|
23
52
|
|
|
24
53
|
var t$1,
|
|
@@ -30,12 +59,12 @@ var t$1,
|
|
|
30
59
|
c$1 = [],
|
|
31
60
|
e$1 = [],
|
|
32
61
|
a$1 = n$1,
|
|
33
|
-
v$
|
|
62
|
+
v$2 = a$1.__b,
|
|
34
63
|
l$1 = a$1.__r,
|
|
35
|
-
m$
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
p$
|
|
64
|
+
m$1 = a$1.diffed,
|
|
65
|
+
h$1 = a$1.__c,
|
|
66
|
+
s$1 = a$1.unmount,
|
|
67
|
+
p$2 = a$1.__;
|
|
39
68
|
function y$2(n, t) {
|
|
40
69
|
a$1.__h && a$1.__h(r$1, n, f$1 || t), f$1 = 0;
|
|
41
70
|
var u = r$1.__H || (r$1.__H = {
|
|
@@ -44,9 +73,9 @@ function y$2(n, t) {
|
|
|
44
73
|
});
|
|
45
74
|
return n >= u.__.length && u.__.push({}), u.__[n];
|
|
46
75
|
}
|
|
47
|
-
function
|
|
76
|
+
function w$2(n, r) {
|
|
48
77
|
var u = y$2(t$1++, 7);
|
|
49
|
-
return E
|
|
78
|
+
return E(u.__H, r) && (u.__ = n(), u.__H = r), u.__;
|
|
50
79
|
}
|
|
51
80
|
function g$2() {
|
|
52
81
|
var n;
|
|
@@ -69,9 +98,9 @@ function g$2() {
|
|
|
69
98
|
} while (e$1.length);
|
|
70
99
|
}
|
|
71
100
|
a$1.__b = function (n) {
|
|
72
|
-
r$1 = null, v$
|
|
101
|
+
r$1 = null, v$2 && v$2(n);
|
|
73
102
|
}, a$1.__ = function (n, t) {
|
|
74
|
-
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), p$
|
|
103
|
+
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), p$2 && p$2(n, t);
|
|
75
104
|
}, a$1.__r = function (n) {
|
|
76
105
|
l$1 && l$1(n), t$1 = 0;
|
|
77
106
|
var i = (r$1 = n.__c).__H;
|
|
@@ -79,7 +108,7 @@ a$1.__b = function (n) {
|
|
|
79
108
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
80
109
|
})), u$1 = r$1;
|
|
81
110
|
}, a$1.diffed = function (n) {
|
|
82
|
-
m$
|
|
111
|
+
m$1 && m$1(n);
|
|
83
112
|
var t = n.__c;
|
|
84
113
|
t && t.__H && (t.__H.__h.length && B(c$1.push(t)), t.__H.__.some(function (n) {
|
|
85
114
|
n.u && (n.__H = n.u);
|
|
@@ -90,14 +119,14 @@ a$1.__b = function (n) {
|
|
|
90
119
|
n.__h.some(C), n.__h = n.__h.filter(function (n) {
|
|
91
120
|
return !n.__ || D(n);
|
|
92
121
|
});
|
|
93
|
-
} catch (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
122
|
+
} catch (t) {
|
|
123
|
+
n.__h = [function () {
|
|
124
|
+
throw t;
|
|
125
|
+
}];
|
|
97
126
|
}
|
|
98
|
-
}),
|
|
127
|
+
}), h$1 && h$1(n, t);
|
|
99
128
|
}, a$1.unmount = function (n) {
|
|
100
|
-
|
|
129
|
+
s$1 && s$1(n);
|
|
101
130
|
var t,
|
|
102
131
|
r,
|
|
103
132
|
u = n.__c;
|
|
@@ -115,14 +144,14 @@ a$1.__b = function (n) {
|
|
|
115
144
|
}
|
|
116
145
|
}), u.__H = void 0, t && a$1.__e(t, u.__v));
|
|
117
146
|
};
|
|
118
|
-
var k = "function" == typeof requestAnimationFrame;
|
|
147
|
+
var k$1 = "function" == typeof requestAnimationFrame;
|
|
119
148
|
function z(n) {
|
|
120
149
|
var t,
|
|
121
150
|
r = function () {
|
|
122
|
-
clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n);
|
|
151
|
+
clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
|
|
123
152
|
},
|
|
124
153
|
u = setTimeout(r, 35);
|
|
125
|
-
k && (t = requestAnimationFrame(r));
|
|
154
|
+
k$1 && (t = requestAnimationFrame(r));
|
|
126
155
|
}
|
|
127
156
|
function B(n) {
|
|
128
157
|
1 != n && i$1 == a$1.requestAnimationFrame || ((i$1 = a$1.requestAnimationFrame) || z)(g$2);
|
|
@@ -136,32 +165,32 @@ function D(n) {
|
|
|
136
165
|
var t = r$1;
|
|
137
166
|
n.__c = n.__(), r$1 = t;
|
|
138
167
|
}
|
|
139
|
-
function E
|
|
168
|
+
function E(n, t) {
|
|
140
169
|
return !n || n.length != t.length || t.some(function (t, r) {
|
|
141
170
|
return !o$1(t, n[r]);
|
|
142
171
|
});
|
|
143
172
|
}
|
|
144
173
|
|
|
145
|
-
const
|
|
146
|
-
function
|
|
174
|
+
const t = Symbol.for("preact-signals");
|
|
175
|
+
function i() {
|
|
147
176
|
if (e > 1) {
|
|
148
177
|
e--;
|
|
149
178
|
return;
|
|
150
179
|
}
|
|
151
|
-
let
|
|
152
|
-
|
|
180
|
+
let t,
|
|
181
|
+
i = false;
|
|
153
182
|
!function () {
|
|
154
|
-
let
|
|
155
|
-
|
|
156
|
-
while (void 0 !==
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
159
|
-
|
|
183
|
+
let t = h;
|
|
184
|
+
h = void 0;
|
|
185
|
+
while (void 0 !== t) {
|
|
186
|
+
const i = t.S;
|
|
187
|
+
if (i.v === t.v) for (let n = i.t; void 0 !== n; n = n.x) if (n.i === t.i) n.i = i.i;
|
|
188
|
+
t = t.o;
|
|
160
189
|
}
|
|
161
190
|
}();
|
|
162
|
-
while (void 0 !==
|
|
163
|
-
let n =
|
|
164
|
-
|
|
191
|
+
while (void 0 !== r) {
|
|
192
|
+
let n = r;
|
|
193
|
+
r = void 0;
|
|
165
194
|
c++;
|
|
166
195
|
while (void 0 !== n) {
|
|
167
196
|
const o = n.u;
|
|
@@ -170,9 +199,9 @@ function t() {
|
|
|
170
199
|
if (!(8 & n.f) && w$1(n)) try {
|
|
171
200
|
n.c();
|
|
172
201
|
} catch (n) {
|
|
173
|
-
if (!
|
|
174
|
-
|
|
175
|
-
|
|
202
|
+
if (!i) {
|
|
203
|
+
t = n;
|
|
204
|
+
i = true;
|
|
176
205
|
}
|
|
177
206
|
}
|
|
178
207
|
n = o;
|
|
@@ -180,430 +209,433 @@ function t() {
|
|
|
180
209
|
}
|
|
181
210
|
c = 0;
|
|
182
211
|
e--;
|
|
183
|
-
if (
|
|
212
|
+
if (i) throw t;
|
|
184
213
|
}
|
|
185
|
-
function n(
|
|
186
|
-
if (e > 0) return
|
|
214
|
+
function n(t) {
|
|
215
|
+
if (e > 0) return t();
|
|
187
216
|
d$1 = ++u;
|
|
188
217
|
e++;
|
|
189
218
|
try {
|
|
190
|
-
return
|
|
219
|
+
return t();
|
|
191
220
|
} finally {
|
|
192
|
-
|
|
221
|
+
i();
|
|
193
222
|
}
|
|
194
223
|
}
|
|
195
|
-
let o, s,
|
|
196
|
-
function
|
|
197
|
-
const
|
|
224
|
+
let o, s, r;
|
|
225
|
+
function f(t) {
|
|
226
|
+
const i = o,
|
|
198
227
|
n = s;
|
|
199
228
|
o = void 0;
|
|
200
229
|
s = void 0;
|
|
201
230
|
try {
|
|
202
|
-
return
|
|
231
|
+
return t();
|
|
203
232
|
} finally {
|
|
204
|
-
o =
|
|
233
|
+
o = i;
|
|
205
234
|
s = n;
|
|
206
235
|
}
|
|
207
236
|
}
|
|
208
|
-
let
|
|
237
|
+
let h,
|
|
209
238
|
e = 0,
|
|
210
239
|
c = 0,
|
|
211
240
|
u = 0,
|
|
212
241
|
d$1 = 0,
|
|
213
|
-
v = 0;
|
|
214
|
-
function l(
|
|
242
|
+
v$1 = 0;
|
|
243
|
+
function l(t) {
|
|
215
244
|
if (void 0 === o) return;
|
|
216
|
-
let
|
|
217
|
-
if (void 0 ===
|
|
218
|
-
|
|
245
|
+
let i = t.n;
|
|
246
|
+
if (void 0 === i || i.t !== o) {
|
|
247
|
+
i = {
|
|
219
248
|
i: 0,
|
|
220
|
-
S:
|
|
249
|
+
S: t,
|
|
221
250
|
p: o.s,
|
|
222
251
|
n: void 0,
|
|
223
252
|
t: o,
|
|
224
253
|
e: void 0,
|
|
225
254
|
x: void 0,
|
|
226
|
-
r:
|
|
255
|
+
r: i
|
|
227
256
|
};
|
|
228
|
-
if (void 0 !== o.s) o.s.n =
|
|
229
|
-
o.s =
|
|
230
|
-
|
|
231
|
-
if (32 & o.f)
|
|
232
|
-
return
|
|
233
|
-
} else if (-1 ===
|
|
234
|
-
|
|
235
|
-
if (void 0 !==
|
|
236
|
-
|
|
237
|
-
if (void 0 !==
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
o.s.n =
|
|
241
|
-
o.s =
|
|
257
|
+
if (void 0 !== o.s) o.s.n = i;
|
|
258
|
+
o.s = i;
|
|
259
|
+
t.n = i;
|
|
260
|
+
if (32 & o.f) t.S(i);
|
|
261
|
+
return i;
|
|
262
|
+
} else if (-1 === i.i) {
|
|
263
|
+
i.i = 0;
|
|
264
|
+
if (void 0 !== i.n) {
|
|
265
|
+
i.n.p = i.p;
|
|
266
|
+
if (void 0 !== i.p) i.p.n = i.n;
|
|
267
|
+
i.p = o.s;
|
|
268
|
+
i.n = void 0;
|
|
269
|
+
o.s.n = i;
|
|
270
|
+
o.s = i;
|
|
242
271
|
}
|
|
243
|
-
return
|
|
272
|
+
return i;
|
|
244
273
|
}
|
|
245
274
|
}
|
|
246
|
-
function
|
|
247
|
-
this.v =
|
|
275
|
+
function y$1(t, i) {
|
|
276
|
+
this.v = t;
|
|
248
277
|
this.i = 0;
|
|
249
278
|
this.n = void 0;
|
|
250
279
|
this.t = void 0;
|
|
251
280
|
this.l = 0;
|
|
252
|
-
this.W = null ==
|
|
253
|
-
this.Z = null ==
|
|
254
|
-
this.name = null ==
|
|
281
|
+
this.W = null == i ? void 0 : i.watched;
|
|
282
|
+
this.Z = null == i ? void 0 : i.unwatched;
|
|
283
|
+
this.name = null == i ? void 0 : i.name;
|
|
255
284
|
}
|
|
256
|
-
|
|
257
|
-
|
|
285
|
+
y$1.prototype.brand = t;
|
|
286
|
+
y$1.prototype.h = function () {
|
|
258
287
|
return true;
|
|
259
288
|
};
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
if (
|
|
263
|
-
|
|
264
|
-
this.t =
|
|
265
|
-
if (void 0 !==
|
|
266
|
-
var
|
|
267
|
-
null == (
|
|
289
|
+
y$1.prototype.S = function (t) {
|
|
290
|
+
const i = this.t;
|
|
291
|
+
if (i !== t && void 0 === t.e) {
|
|
292
|
+
t.x = i;
|
|
293
|
+
this.t = t;
|
|
294
|
+
if (void 0 !== i) i.e = t;else f(() => {
|
|
295
|
+
var t;
|
|
296
|
+
null == (t = this.W) || t.call(this);
|
|
268
297
|
});
|
|
269
298
|
}
|
|
270
299
|
};
|
|
271
|
-
|
|
300
|
+
y$1.prototype.U = function (t) {
|
|
272
301
|
if (void 0 !== this.t) {
|
|
273
|
-
const
|
|
274
|
-
n =
|
|
275
|
-
if (void 0 !==
|
|
276
|
-
|
|
277
|
-
|
|
302
|
+
const i = t.e,
|
|
303
|
+
n = t.x;
|
|
304
|
+
if (void 0 !== i) {
|
|
305
|
+
i.x = n;
|
|
306
|
+
t.e = void 0;
|
|
278
307
|
}
|
|
279
308
|
if (void 0 !== n) {
|
|
280
|
-
n.e =
|
|
281
|
-
|
|
309
|
+
n.e = i;
|
|
310
|
+
t.x = void 0;
|
|
282
311
|
}
|
|
283
|
-
if (
|
|
312
|
+
if (t === this.t) {
|
|
284
313
|
this.t = n;
|
|
285
|
-
if (void 0 === n)
|
|
286
|
-
var
|
|
287
|
-
null == (
|
|
314
|
+
if (void 0 === n) f(() => {
|
|
315
|
+
var t;
|
|
316
|
+
null == (t = this.Z) || t.call(this);
|
|
288
317
|
});
|
|
289
318
|
}
|
|
290
319
|
}
|
|
291
320
|
};
|
|
292
|
-
|
|
293
|
-
return
|
|
294
|
-
const
|
|
295
|
-
|
|
321
|
+
y$1.prototype.subscribe = function (t) {
|
|
322
|
+
return x(() => {
|
|
323
|
+
const i = this.value;
|
|
324
|
+
f(() => t(i));
|
|
296
325
|
}, {
|
|
297
326
|
name: "sub"
|
|
298
327
|
});
|
|
299
328
|
};
|
|
300
|
-
|
|
329
|
+
y$1.prototype.valueOf = function () {
|
|
301
330
|
return this.value;
|
|
302
331
|
};
|
|
303
|
-
|
|
332
|
+
y$1.prototype.toString = function () {
|
|
304
333
|
return this.value + "";
|
|
305
334
|
};
|
|
306
|
-
|
|
335
|
+
y$1.prototype.toJSON = function () {
|
|
307
336
|
return this.value;
|
|
308
337
|
};
|
|
309
|
-
|
|
310
|
-
return
|
|
338
|
+
y$1.prototype.peek = function () {
|
|
339
|
+
return f(() => this.value);
|
|
311
340
|
};
|
|
312
|
-
Object.defineProperty(
|
|
341
|
+
Object.defineProperty(y$1.prototype, "value", {
|
|
313
342
|
get() {
|
|
314
|
-
const
|
|
315
|
-
if (void 0 !==
|
|
343
|
+
const t = l(this);
|
|
344
|
+
if (void 0 !== t) t.i = this.i;
|
|
316
345
|
return this.v;
|
|
317
346
|
},
|
|
318
|
-
set(
|
|
319
|
-
if (
|
|
347
|
+
set(t) {
|
|
348
|
+
if (t !== this.v) {
|
|
320
349
|
if (c > 100) throw new Error("Cycle detected");
|
|
321
|
-
!function (
|
|
322
|
-
if (0 !== e && 0 === c) if (
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
S:
|
|
326
|
-
v:
|
|
327
|
-
i:
|
|
328
|
-
o:
|
|
350
|
+
!function (t) {
|
|
351
|
+
if (0 !== e && 0 === c) if (t.l !== d$1) {
|
|
352
|
+
t.l = d$1;
|
|
353
|
+
h = {
|
|
354
|
+
S: t,
|
|
355
|
+
v: t.v,
|
|
356
|
+
i: t.i,
|
|
357
|
+
o: h
|
|
329
358
|
};
|
|
330
359
|
}
|
|
331
360
|
}(this);
|
|
332
|
-
this.v =
|
|
361
|
+
this.v = t;
|
|
333
362
|
this.i++;
|
|
334
|
-
v++;
|
|
363
|
+
v$1++;
|
|
335
364
|
e++;
|
|
336
365
|
try {
|
|
337
|
-
for (let
|
|
366
|
+
for (let t = this.t; void 0 !== t; t = t.x) t.t.N();
|
|
338
367
|
} finally {
|
|
339
|
-
|
|
368
|
+
i();
|
|
340
369
|
}
|
|
341
370
|
}
|
|
342
371
|
}
|
|
343
372
|
});
|
|
344
|
-
function
|
|
345
|
-
return new
|
|
373
|
+
function a(t, i) {
|
|
374
|
+
return new y$1(t, i);
|
|
346
375
|
}
|
|
347
|
-
function w$1(
|
|
348
|
-
for (let
|
|
376
|
+
function w$1(t) {
|
|
377
|
+
for (let i = t.s; void 0 !== i; i = i.n) if (i.S.i !== i.i || !i.S.h() || i.S.i !== i.i) return true;
|
|
349
378
|
return false;
|
|
350
379
|
}
|
|
351
|
-
function
|
|
352
|
-
for (let
|
|
353
|
-
const n =
|
|
354
|
-
if (void 0 !== n)
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
if (void 0 ===
|
|
358
|
-
|
|
380
|
+
function b$1(t) {
|
|
381
|
+
for (let i = t.s; void 0 !== i; i = i.n) {
|
|
382
|
+
const n = i.S.n;
|
|
383
|
+
if (void 0 !== n) i.r = n;
|
|
384
|
+
i.S.n = i;
|
|
385
|
+
i.i = -1;
|
|
386
|
+
if (void 0 === i.n) {
|
|
387
|
+
t.s = i;
|
|
359
388
|
break;
|
|
360
389
|
}
|
|
361
390
|
}
|
|
362
391
|
}
|
|
363
|
-
function
|
|
364
|
-
let
|
|
365
|
-
n =
|
|
392
|
+
function _(t) {
|
|
393
|
+
let i,
|
|
394
|
+
n = t.s;
|
|
366
395
|
while (void 0 !== n) {
|
|
367
|
-
const
|
|
396
|
+
const t = n.p;
|
|
368
397
|
if (-1 === n.i) {
|
|
369
398
|
n.S.U(n);
|
|
370
|
-
if (void 0 !==
|
|
371
|
-
if (void 0 !== n.n) n.n.p =
|
|
372
|
-
} else
|
|
399
|
+
if (void 0 !== t) t.n = n.n;
|
|
400
|
+
if (void 0 !== n.n) n.n.p = t;
|
|
401
|
+
} else i = n;
|
|
373
402
|
n.S.n = n.r;
|
|
374
403
|
if (void 0 !== n.r) n.r = void 0;
|
|
375
|
-
n =
|
|
404
|
+
n = t;
|
|
376
405
|
}
|
|
377
|
-
|
|
406
|
+
t.s = i;
|
|
378
407
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
381
|
-
this.x =
|
|
408
|
+
function j(t, i) {
|
|
409
|
+
y$1.call(this, void 0, i);
|
|
410
|
+
this.x = t;
|
|
382
411
|
this.s = void 0;
|
|
383
|
-
this.g = v - 1;
|
|
412
|
+
this.g = v$1 - 1;
|
|
384
413
|
this.f = 4;
|
|
385
414
|
}
|
|
386
|
-
|
|
387
|
-
|
|
415
|
+
j.prototype = new y$1();
|
|
416
|
+
j.prototype.h = function () {
|
|
388
417
|
this.f &= -3;
|
|
389
418
|
if (1 & this.f) return false;
|
|
390
419
|
if (32 == (36 & this.f)) return true;
|
|
391
420
|
this.f &= -5;
|
|
392
|
-
if (this.g === v) return true;
|
|
393
|
-
this.g = v;
|
|
421
|
+
if (this.g === v$1) return true;
|
|
422
|
+
this.g = v$1;
|
|
394
423
|
this.f |= 1;
|
|
395
424
|
if (this.i > 0 && !w$1(this)) {
|
|
396
425
|
this.f &= -2;
|
|
397
426
|
return true;
|
|
398
427
|
}
|
|
399
|
-
const
|
|
428
|
+
const t = o;
|
|
400
429
|
try {
|
|
401
|
-
|
|
430
|
+
b$1(this);
|
|
402
431
|
o = this;
|
|
403
|
-
const
|
|
404
|
-
if (16 & this.f || this.v !==
|
|
405
|
-
this.v =
|
|
432
|
+
const t = this.x();
|
|
433
|
+
if (16 & this.f || this.v !== t || 0 === this.i) {
|
|
434
|
+
this.v = t;
|
|
406
435
|
this.f &= -17;
|
|
407
436
|
this.i++;
|
|
408
437
|
}
|
|
409
|
-
} catch (
|
|
410
|
-
this.v =
|
|
438
|
+
} catch (t) {
|
|
439
|
+
this.v = t;
|
|
411
440
|
this.f |= 16;
|
|
412
441
|
this.i++;
|
|
413
442
|
}
|
|
414
|
-
o =
|
|
415
|
-
|
|
443
|
+
o = t;
|
|
444
|
+
_(this);
|
|
416
445
|
this.f &= -2;
|
|
417
446
|
return true;
|
|
418
447
|
};
|
|
419
|
-
|
|
448
|
+
j.prototype.S = function (t) {
|
|
420
449
|
if (void 0 === this.t) {
|
|
421
450
|
this.f |= 36;
|
|
422
|
-
for (let
|
|
451
|
+
for (let t = this.s; void 0 !== t; t = t.n) t.S.S(t);
|
|
423
452
|
}
|
|
424
|
-
|
|
453
|
+
y$1.prototype.S.call(this, t);
|
|
425
454
|
};
|
|
426
|
-
|
|
455
|
+
j.prototype.U = function (t) {
|
|
427
456
|
if (void 0 !== this.t) {
|
|
428
|
-
|
|
457
|
+
y$1.prototype.U.call(this, t);
|
|
429
458
|
if (void 0 === this.t) {
|
|
430
459
|
this.f &= -33;
|
|
431
|
-
for (let
|
|
460
|
+
for (let t = this.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
432
461
|
}
|
|
433
462
|
}
|
|
434
463
|
};
|
|
435
|
-
|
|
464
|
+
j.prototype.N = function () {
|
|
436
465
|
if (!(2 & this.f)) {
|
|
437
466
|
this.f |= 6;
|
|
438
|
-
for (let
|
|
467
|
+
for (let t = this.t; void 0 !== t; t = t.x) t.t.N();
|
|
439
468
|
}
|
|
440
469
|
};
|
|
441
|
-
Object.defineProperty(
|
|
470
|
+
Object.defineProperty(j.prototype, "value", {
|
|
442
471
|
get() {
|
|
443
472
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
444
|
-
const
|
|
473
|
+
const t = l(this);
|
|
445
474
|
this.h();
|
|
446
|
-
if (void 0 !==
|
|
475
|
+
if (void 0 !== t) t.i = this.i;
|
|
447
476
|
if (16 & this.f) throw this.v;
|
|
448
477
|
return this.v;
|
|
449
478
|
}
|
|
450
479
|
});
|
|
451
|
-
function
|
|
452
|
-
return new
|
|
480
|
+
function O(t, i) {
|
|
481
|
+
return new j(t, i);
|
|
453
482
|
}
|
|
454
|
-
function
|
|
455
|
-
const n =
|
|
456
|
-
|
|
483
|
+
function p$1(t) {
|
|
484
|
+
const n = t.j;
|
|
485
|
+
t.j = void 0;
|
|
457
486
|
if ("function" == typeof n) {
|
|
458
487
|
e++;
|
|
459
488
|
const s = o;
|
|
460
489
|
o = void 0;
|
|
461
490
|
try {
|
|
462
491
|
n();
|
|
463
|
-
} catch (
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
throw
|
|
492
|
+
} catch (i) {
|
|
493
|
+
t.f &= -2;
|
|
494
|
+
t.f |= 8;
|
|
495
|
+
g$1(t);
|
|
496
|
+
throw i;
|
|
468
497
|
} finally {
|
|
469
498
|
o = s;
|
|
470
|
-
|
|
499
|
+
i();
|
|
471
500
|
}
|
|
472
501
|
}
|
|
473
502
|
}
|
|
474
|
-
function
|
|
475
|
-
for (let
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
503
|
+
function g$1(t) {
|
|
504
|
+
for (let i = t.s; void 0 !== i; i = i.n) i.S.U(i);
|
|
505
|
+
t.x = void 0;
|
|
506
|
+
t.s = void 0;
|
|
507
|
+
p$1(t);
|
|
479
508
|
}
|
|
480
|
-
function
|
|
509
|
+
function S(t) {
|
|
481
510
|
if (o !== this) throw new Error("Out-of-order effect");
|
|
482
|
-
|
|
483
|
-
o =
|
|
511
|
+
_(this);
|
|
512
|
+
o = t;
|
|
484
513
|
this.f &= -2;
|
|
485
|
-
|
|
486
|
-
|
|
514
|
+
try {
|
|
515
|
+
if (8 & this.f) g$1(this);
|
|
516
|
+
} finally {
|
|
517
|
+
i();
|
|
518
|
+
}
|
|
487
519
|
}
|
|
488
|
-
function
|
|
489
|
-
this.x =
|
|
490
|
-
this.
|
|
520
|
+
function m(t, i) {
|
|
521
|
+
this.x = t;
|
|
522
|
+
this.j = void 0;
|
|
491
523
|
this.s = void 0;
|
|
492
524
|
this.u = void 0;
|
|
493
525
|
this.f = 32;
|
|
494
|
-
this.name = null ==
|
|
526
|
+
this.name = null == i ? void 0 : i.name;
|
|
495
527
|
if (s) s.push(this);
|
|
496
528
|
}
|
|
497
|
-
|
|
498
|
-
const
|
|
529
|
+
m.prototype.c = function () {
|
|
530
|
+
const t = this.S();
|
|
499
531
|
try {
|
|
500
532
|
if (8 & this.f) return;
|
|
501
533
|
if (void 0 === this.x) return;
|
|
502
|
-
const
|
|
503
|
-
if ("function" == typeof
|
|
534
|
+
const i = this.x();
|
|
535
|
+
if ("function" == typeof i) this.j = i;
|
|
504
536
|
} finally {
|
|
505
|
-
|
|
537
|
+
t();
|
|
506
538
|
}
|
|
507
539
|
};
|
|
508
|
-
|
|
540
|
+
m.prototype.S = function () {
|
|
509
541
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
510
542
|
this.f |= 1;
|
|
511
543
|
this.f &= -9;
|
|
512
|
-
|
|
513
|
-
|
|
544
|
+
p$1(this);
|
|
545
|
+
b$1(this);
|
|
514
546
|
e++;
|
|
515
|
-
const
|
|
547
|
+
const t = o;
|
|
516
548
|
o = this;
|
|
517
|
-
return
|
|
549
|
+
return S.bind(this, t);
|
|
518
550
|
};
|
|
519
|
-
|
|
551
|
+
m.prototype.N = function () {
|
|
520
552
|
if (!(2 & this.f)) {
|
|
521
553
|
this.f |= 2;
|
|
522
|
-
this.u =
|
|
523
|
-
|
|
554
|
+
this.u = r;
|
|
555
|
+
r = this;
|
|
524
556
|
}
|
|
525
557
|
};
|
|
526
|
-
|
|
558
|
+
m.prototype.d = function () {
|
|
527
559
|
this.f |= 8;
|
|
528
|
-
if (!(1 & this.f))
|
|
560
|
+
if (!(1 & this.f)) g$1(this);
|
|
529
561
|
};
|
|
530
|
-
|
|
562
|
+
m.prototype.dispose = function () {
|
|
531
563
|
this.d();
|
|
532
564
|
};
|
|
533
|
-
function
|
|
534
|
-
const n = new
|
|
565
|
+
function x(t, i) {
|
|
566
|
+
const n = new m(t, i);
|
|
535
567
|
try {
|
|
536
568
|
n.c();
|
|
537
|
-
} catch (
|
|
569
|
+
} catch (t) {
|
|
538
570
|
n.d();
|
|
539
|
-
throw
|
|
571
|
+
throw t;
|
|
540
572
|
}
|
|
541
573
|
const o = n.d.bind(n);
|
|
542
574
|
o[Symbol.dispose] = o;
|
|
543
575
|
return o;
|
|
544
576
|
}
|
|
545
577
|
|
|
546
|
-
const
|
|
547
|
-
let
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
578
|
+
const d = "undefined" != typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__;
|
|
579
|
+
let p,
|
|
580
|
+
v,
|
|
581
|
+
g = [];
|
|
582
|
+
x(function () {
|
|
583
|
+
p = this.N;
|
|
552
584
|
})();
|
|
553
|
-
function
|
|
554
|
-
n$1[t] =
|
|
585
|
+
function b(t, i) {
|
|
586
|
+
n$1[t] = i.bind(null, n$1[t] || (() => {}));
|
|
555
587
|
}
|
|
556
|
-
function
|
|
557
|
-
if (
|
|
558
|
-
const t =
|
|
559
|
-
|
|
588
|
+
function y(t) {
|
|
589
|
+
if (v) {
|
|
590
|
+
const t = v;
|
|
591
|
+
v = void 0;
|
|
560
592
|
t();
|
|
561
593
|
}
|
|
562
|
-
|
|
594
|
+
v = t && t.S();
|
|
563
595
|
}
|
|
564
|
-
function
|
|
596
|
+
function w({
|
|
565
597
|
data: t
|
|
566
598
|
}) {
|
|
567
599
|
const i = useSignal(t);
|
|
568
600
|
i.name = "ReactiveDom";
|
|
569
601
|
i.value = t;
|
|
570
|
-
const [
|
|
602
|
+
const [n, e] = w$2(() => {
|
|
571
603
|
let t = this,
|
|
572
|
-
|
|
573
|
-
while (
|
|
574
|
-
|
|
604
|
+
n = this.__v;
|
|
605
|
+
while (n = n.__) if (n.__c) {
|
|
606
|
+
n.__c.__$f |= 4;
|
|
575
607
|
break;
|
|
576
608
|
}
|
|
577
|
-
const
|
|
609
|
+
const e = O(() => {
|
|
578
610
|
let t = i.value.value;
|
|
579
611
|
return 0 === t ? 0 : true === t ? "" : t || "";
|
|
580
612
|
}),
|
|
581
|
-
f =
|
|
582
|
-
r =
|
|
583
|
-
this.N =
|
|
613
|
+
f = O(() => !Array.isArray(e.value) && !r$2(e.value)),
|
|
614
|
+
r = x(function () {
|
|
615
|
+
this.N = M;
|
|
584
616
|
if (f.value) {
|
|
585
|
-
const i =
|
|
617
|
+
const i = e.value;
|
|
586
618
|
if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
|
|
587
619
|
}
|
|
588
620
|
}),
|
|
589
|
-
|
|
621
|
+
u = this.__$u.d;
|
|
590
622
|
this.__$u.d = function () {
|
|
591
623
|
r();
|
|
592
|
-
|
|
624
|
+
u.call(this);
|
|
593
625
|
};
|
|
594
|
-
return [f,
|
|
626
|
+
return [f, e];
|
|
595
627
|
}, []);
|
|
596
|
-
return
|
|
628
|
+
return n.value ? e.peek() : e.value;
|
|
597
629
|
}
|
|
598
|
-
|
|
599
|
-
Object.defineProperties(
|
|
630
|
+
w.displayName = "ReactiveTextNode";
|
|
631
|
+
Object.defineProperties(y$1.prototype, {
|
|
600
632
|
constructor: {
|
|
601
633
|
configurable: true,
|
|
602
|
-
value:
|
|
634
|
+
value: k$2(M$1, null).constructor
|
|
603
635
|
},
|
|
604
636
|
type: {
|
|
605
637
|
configurable: true,
|
|
606
|
-
value:
|
|
638
|
+
value: w
|
|
607
639
|
},
|
|
608
640
|
props: {
|
|
609
641
|
configurable: true,
|
|
@@ -623,15 +655,15 @@ Object.defineProperties(a.prototype, {
|
|
|
623
655
|
value: 1
|
|
624
656
|
}
|
|
625
657
|
});
|
|
626
|
-
|
|
627
|
-
|
|
658
|
+
b("__b", (t, i) => {
|
|
659
|
+
y();
|
|
628
660
|
if ("string" == typeof i.type) {
|
|
629
661
|
let t,
|
|
630
662
|
n = i.props;
|
|
631
663
|
for (let e in n) {
|
|
632
664
|
if ("children" === e) continue;
|
|
633
665
|
let o = n[e];
|
|
634
|
-
if (o instanceof
|
|
666
|
+
if (o instanceof y$1) {
|
|
635
667
|
if (!t) i.__np = t = {};
|
|
636
668
|
t[e] = o;
|
|
637
669
|
n[e] = o.peek();
|
|
@@ -640,18 +672,18 @@ g("__b", (t, i) => {
|
|
|
640
672
|
}
|
|
641
673
|
t(i);
|
|
642
674
|
});
|
|
643
|
-
|
|
644
|
-
t(
|
|
645
|
-
if (
|
|
646
|
-
|
|
675
|
+
b("__r", (t, n) => {
|
|
676
|
+
t(n);
|
|
677
|
+
if (n.type !== M$1) {
|
|
678
|
+
y();
|
|
647
679
|
let t,
|
|
648
|
-
|
|
649
|
-
if (
|
|
650
|
-
|
|
651
|
-
t =
|
|
652
|
-
if (void 0 === t)
|
|
680
|
+
i = n.__c;
|
|
681
|
+
if (i) {
|
|
682
|
+
i.__$f &= -2;
|
|
683
|
+
t = i.__$u;
|
|
684
|
+
if (void 0 === t) i.__$u = t = function (t, i) {
|
|
653
685
|
let n;
|
|
654
|
-
|
|
686
|
+
x(function () {
|
|
655
687
|
n = this;
|
|
656
688
|
}, {
|
|
657
689
|
name: i
|
|
@@ -661,21 +693,21 @@ g("__r", (t, i) => {
|
|
|
661
693
|
}(function (t) {
|
|
662
694
|
return function () {
|
|
663
695
|
var i;
|
|
664
|
-
if (
|
|
696
|
+
if (d) null == (i = this.y) || i.call(this);
|
|
665
697
|
t.__$f |= 1;
|
|
666
698
|
t.setState({});
|
|
667
699
|
};
|
|
668
|
-
}(
|
|
700
|
+
}(i), "function" == typeof n.type ? n.type.displayName || n.type.name : "");
|
|
669
701
|
}
|
|
670
|
-
|
|
702
|
+
y(t);
|
|
671
703
|
}
|
|
672
704
|
});
|
|
673
|
-
|
|
674
|
-
|
|
705
|
+
b("__e", (t, i, n, e) => {
|
|
706
|
+
y();
|
|
675
707
|
t(i, n, e);
|
|
676
708
|
});
|
|
677
|
-
|
|
678
|
-
|
|
709
|
+
b("diffed", (t, i) => {
|
|
710
|
+
y();
|
|
679
711
|
let n;
|
|
680
712
|
if ("string" == typeof i.type && (n = i.__e)) {
|
|
681
713
|
let t = i.__np,
|
|
@@ -697,7 +729,7 @@ g("diffed", (t, i) => {
|
|
|
697
729
|
let f = o[i],
|
|
698
730
|
r = t[i];
|
|
699
731
|
if (void 0 === f) {
|
|
700
|
-
f =
|
|
732
|
+
f = k(n, i, r, e);
|
|
701
733
|
o[i] = f;
|
|
702
734
|
} else f.o(r, e);
|
|
703
735
|
}
|
|
@@ -705,16 +737,16 @@ g("diffed", (t, i) => {
|
|
|
705
737
|
}
|
|
706
738
|
t(i);
|
|
707
739
|
});
|
|
708
|
-
function
|
|
740
|
+
function k(t, i, n, e) {
|
|
709
741
|
const o = i in t && void 0 === t.ownerSVGElement,
|
|
710
|
-
f =
|
|
742
|
+
f = a(n);
|
|
711
743
|
return {
|
|
712
744
|
o: (t, i) => {
|
|
713
745
|
f.value = t;
|
|
714
746
|
e = i;
|
|
715
747
|
},
|
|
716
|
-
d:
|
|
717
|
-
this.N =
|
|
748
|
+
d: x(function () {
|
|
749
|
+
this.N = M;
|
|
718
750
|
const n = f.value.value;
|
|
719
751
|
if (e[i] !== n) {
|
|
720
752
|
e[i] = n;
|
|
@@ -723,7 +755,7 @@ function w(t, i, n, e) {
|
|
|
723
755
|
})
|
|
724
756
|
};
|
|
725
757
|
}
|
|
726
|
-
|
|
758
|
+
b("unmount", (t, i) => {
|
|
727
759
|
if ("string" == typeof i.type) {
|
|
728
760
|
let t = i.__e;
|
|
729
761
|
if (t) {
|
|
@@ -745,6 +777,7 @@ g("unmount", (t, i) => {
|
|
|
745
777
|
} else {
|
|
746
778
|
let t = i.__c;
|
|
747
779
|
if (t) {
|
|
780
|
+
t.__$f |= 8;
|
|
748
781
|
const i = t.__$u;
|
|
749
782
|
if (i) {
|
|
750
783
|
t.__$u = void 0;
|
|
@@ -754,26 +787,26 @@ g("unmount", (t, i) => {
|
|
|
754
787
|
}
|
|
755
788
|
t(i);
|
|
756
789
|
});
|
|
757
|
-
|
|
790
|
+
b("__h", (t, i, n, e) => {
|
|
758
791
|
if (e < 3) i.__$f |= 2;
|
|
759
792
|
t(i, n, e);
|
|
760
793
|
});
|
|
761
794
|
function useSignal(t, i) {
|
|
762
|
-
return
|
|
795
|
+
return w$2(() => a(t, i), []);
|
|
763
796
|
}
|
|
764
|
-
const
|
|
797
|
+
const A = t => {
|
|
765
798
|
queueMicrotask(() => {
|
|
766
799
|
queueMicrotask(t);
|
|
767
800
|
});
|
|
768
801
|
};
|
|
769
|
-
function
|
|
802
|
+
function F() {
|
|
770
803
|
n(() => {
|
|
771
804
|
let t;
|
|
772
|
-
while (t =
|
|
805
|
+
while (t = g.shift()) p.call(t);
|
|
773
806
|
});
|
|
774
807
|
}
|
|
775
|
-
function
|
|
776
|
-
if (1 ===
|
|
808
|
+
function M() {
|
|
809
|
+
if (1 === g.push(this)) (n$1.requestAnimationFrame || A)(F);
|
|
777
810
|
}
|
|
778
811
|
|
|
779
|
-
export {
|
|
812
|
+
export { O, a, x };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@jsenv/ast": "6.10.
|
|
31
|
+
"@jsenv/ast": "6.10.16"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jsenv/core": "../../../",
|
|
35
35
|
"@jsenv/filesystem": "../../tooling/filesystem",
|
|
36
36
|
"@jsenv/plugin-toolbar": "./",
|
|
37
37
|
"@jsenv/utils": "../../tooling/utils",
|
|
38
|
-
"@preact/signals": "2.11.
|
|
39
|
-
"playwright": "1.
|
|
38
|
+
"@preact/signals": "2.11.4",
|
|
39
|
+
"playwright": "1.64.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|