@jsenv/core 41.5.48 → 41.5.49
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/browserslist_index/browserslist_index.js +127 -134
- package/dist/build/build.js +2 -2
- package/dist/build/jsenv_core_node_modules.js +14 -5
- package/dist/client/directory_listing/js/directory_listing.js +56 -56
- package/dist/client/directory_listing/jsenv_core_node_modules.js +5 -5
- package/dist/start_build_server/start_build_server.js +1 -1
- package/package.json +17 -17
package/dist/build/build.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseHtml, injectHtmlNodeAsEarlyAsPossible, createHtmlNode, stringifyHtmlAst, applyBabelPlugins, generateUrlForInlineContent, injectJsenvScript, parseJsWithAcorn, visitHtmlNodes, analyzeScriptNode, getHtmlNodeText, getHtmlNodeAttribute, getHtmlNodePosition, getUrlForContentInsideHtml, setHtmlNodeAttributes, setHtmlNodeText, parseCssUrls, getHtmlNodeAttributePosition, parseSrcSet, removeHtmlNodeText, parseJsUrls, hasCssOpaqueDirective, getUrlForContentInsideJs, renderCssTemplateLiteral, visitJsAst, getImportMetaPropertyName, visitJsAstUntil, analyzeLinkNode, findHtmlNode, removeHtmlNode, insertHtmlNodeAfter } from "@jsenv/ast";
|
|
2
|
-
import { lookupPackageDirectory, urlIsOrIsInsideOf, registerDirectoryLifecycle, urlToRelativeUrl, createDetailedMessage, stringifyUrlSite, generateContentFrame, validateResponseIntegrity, ensureWindowsDriveLetter, setUrlFilename, moveUrl, getCallerPosition, urlToBasename, urlToExtension, asSpecifierWithoutSearch, asUrlWithoutSearch, injectQueryParamsIntoSpecifier, bufferToEtag, isFileSystemPath, urlToPathname, setUrlBasename, urlToFileSystemPath, writeFileSync, createLogger, URL_META, applyNodeEsmResolution, normalizeUrl, ANSI, RUNTIME_COMPAT, CONTENT_TYPE, readPackageAtOrNull, urlToFilename, DATA_URL, errorToHTML, normalizeImportMap, composeTwoImportMaps, resolveImport, UNICODE, JS_QUOTES, readCustomConditionsFromProcessArgs, collectFiles, readEntryStatSync, applyFileSystemMagicResolution, getExtensionsToTry, ensurePathnameTrailingSlash, compareFileUrls, setUrlExtension, isSpecifierForNodeBuiltin, injectQueryParams, renderDetails, humanizeDuration, humanizeFileSize, renderTable, renderBigSection, distributePercentages, humanizeMemory, comparePathnames, escapeRegexpSpecialChars, injectQueryParamIntoSpecifierWithoutEncoding, renderUrlOrRelativeUrlFilename, assertAndNormalizeDirectoryUrl, Abort,
|
|
2
|
+
import { lookupPackageDirectory, urlIsOrIsInsideOf, registerDirectoryLifecycle, urlToRelativeUrl, createDetailedMessage, stringifyUrlSite, generateContentFrame, validateResponseIntegrity, ensureWindowsDriveLetter, setUrlFilename, moveUrl, getCallerPosition, urlToBasename, urlToExtension, asSpecifierWithoutSearch, asUrlWithoutSearch, injectQueryParamsIntoSpecifier, bufferToEtag, isFileSystemPath, urlToPathname, setUrlBasename, urlToFileSystemPath, writeFileSync, createLogger, URL_META, applyNodeEsmResolution, normalizeUrl, ANSI, RUNTIME_COMPAT, CONTENT_TYPE, readPackageAtOrNull, urlToFilename, DATA_URL, errorToHTML, normalizeImportMap, composeTwoImportMaps, resolveImport, UNICODE, JS_QUOTES, readCustomConditionsFromProcessArgs, collectFiles, readEntryStatSync, applyFileSystemMagicResolution, getExtensionsToTry, ensurePathnameTrailingSlash, compareFileUrls, setUrlExtension, isSpecifierForNodeBuiltin, injectQueryParams, renderDetails, humanizeDuration, humanizeFileSize, renderTable, renderBigSection, distributePercentages, humanizeMemory, comparePathnames, escapeRegexpSpecialChars, injectQueryParamIntoSpecifierWithoutEncoding, renderUrlOrRelativeUrlFilename, assertAndNormalizeDirectoryUrl, Abort, startMonitoringMemoryUsage, inferRuntimeCompatFromClosestPackage, browserDefaultRuntimeCompat, nodeDefaultRuntimeCompat, clearDirectorySync, createTaskLog, createLookupPackageDirectory, ensureEmptyDirectory, updateJsonFileSync, raceProcessTeardownEvents, createDynamicLog } from "./jsenv_core_packages.js";
|
|
3
3
|
import { bundleJsModules, jsenvPluginBundling } from "@jsenv/plugin-bundling";
|
|
4
4
|
import { jsenvPluginMinification } from "@jsenv/plugin-minification";
|
|
5
5
|
import { jsenvPluginTranspilation, jsenvPluginJsModuleFallback } from "@jsenv/plugin-transpilation";
|
|
@@ -14032,7 +14032,7 @@ const prepareEntryPointBuild = async (
|
|
|
14032
14032
|
: []),
|
|
14033
14033
|
jsenvPluginJsModuleFallback({
|
|
14034
14034
|
remapImportSpecifier: (specifier, parentUrl) => {
|
|
14035
|
-
return buildSpecifierManager.remapPlaceholder(specifier
|
|
14035
|
+
return buildSpecifierManager.remapPlaceholder(specifier);
|
|
14036
14036
|
},
|
|
14037
14037
|
}),
|
|
14038
14038
|
jsenvPluginInlining(),
|
|
@@ -231,16 +231,25 @@ function isUnicodeSupported() {
|
|
|
231
231
|
|
|
232
232
|
function ansiRegex({onlyFirst = false} = {}) {
|
|
233
233
|
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
|
234
|
-
const ST =
|
|
234
|
+
const ST = String.raw`(?:\u0007|\u001B\u005C|\u009C)`;
|
|
235
235
|
|
|
236
236
|
// OSC sequences only: ESC ] ... ST (or the C1 introducer 0x9d ... ST)
|
|
237
237
|
// The payload stops at the first terminator character rather than scanning ahead for one, so an unterminated `ESC ]` cannot rescan the rest of the input. Terminals likewise abort a control string on an unexpected ESC. The payload also stops at 0x9d so an unterminated C1 OSC cannot swallow the next one.
|
|
238
|
-
const osc = `(?:(
|
|
238
|
+
const osc = String.raw`(?:(?:\u001B\]|\u009D)[^\u0007\u001B\u009C\u009D]*${ST})`;
|
|
239
239
|
|
|
240
240
|
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
// The final byte class is deliberately narrow, so that ESC followed by an arbitrary character is not read as a sequence. It must
|
|
242
|
+
// not include the parameter digits though: when the real final byte is outside the class the engine backtracks and takes the last
|
|
243
|
+
// parameter digit as the final byte instead, leaving the real one behind as visible text. `ESC [ 5 d` stripped to a bare `d`.
|
|
244
|
+
const csi = String.raw`[\u001B\u009B][[\]()#;?]*(?:\d{1,4}(?:[;:]\d{0,4})*)?[A-PR-TZcf-nq-uy=><~]`;
|
|
245
|
+
|
|
246
|
+
// `= < >` are final bytes in the two byte VT52 escapes (`ESC >`) but parameter bytes in a CSI
|
|
247
|
+
// (`ESC [ > 0 ; 276 ; 0 c`, the device attributes reply). Matching them as a final byte always
|
|
248
|
+
// wins and leaves the rest of the reply behind as visible text, so the private parameter form is
|
|
249
|
+
// matched first, where the `[` makes the two unambiguous.
|
|
250
|
+
const csiPrivate = String.raw`(?:\u001B\[|\u009B)[<=>][0-9;:]*[A-PR-TZcf-nq-uy~]`;
|
|
251
|
+
|
|
252
|
+
const pattern = `${osc}|${csiPrivate}|${csi}`;
|
|
244
253
|
|
|
245
254
|
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
246
255
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K, a, Z, M } from "../jsenv_core_node_modules.js";
|
|
2
2
|
|
|
3
3
|
const directoryIconUrl = new URL("../other/dir.png", import.meta.url).href;
|
|
4
4
|
const fileIconUrl = new URL("../other/file.png", import.meta.url).href;
|
|
@@ -30,15 +30,15 @@ const updateDirectoryContentItems = value => {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
const DirectoryListing = () => {
|
|
33
|
-
const directoryItems =
|
|
33
|
+
const directoryItems = Z(callback => {
|
|
34
34
|
directoryItemsChangeCallbackSet.add(callback);
|
|
35
35
|
}, () => {
|
|
36
36
|
return directoryContentItems;
|
|
37
37
|
});
|
|
38
|
-
return
|
|
39
|
-
children: [enoentDetails ?
|
|
38
|
+
return a(M, {
|
|
39
|
+
children: [enoentDetails ? a(ErrorMessage, {}) : null, a(Breadcrumb, {
|
|
40
40
|
items: breadcrumb
|
|
41
|
-
}),
|
|
41
|
+
}), a(DirectoryContent, {
|
|
42
42
|
items: directoryItems
|
|
43
43
|
})]
|
|
44
44
|
});
|
|
@@ -53,54 +53,54 @@ const ErrorMessage = () => {
|
|
|
53
53
|
let errorSuggestion;
|
|
54
54
|
let spaExplanation = null;
|
|
55
55
|
if (spaFallbackFilePaths) {
|
|
56
|
-
spaExplanation =
|
|
57
|
-
children: [
|
|
56
|
+
spaExplanation = a(M, {
|
|
57
|
+
children: [a("strong", {
|
|
58
58
|
children: "SPA mode:"
|
|
59
|
-
}), " a url without extension is a route, served with the closest html file. None of these exists:",
|
|
59
|
+
}), " a url without extension is a route, served with the closest html file. None of these exists:", a("ul", {
|
|
60
60
|
className: "spa_fallback_list",
|
|
61
61
|
style: "margin: 6px 0 0; padding-left: 20px;",
|
|
62
|
-
children: spaFallbackFilePaths.map(filePath =>
|
|
63
|
-
children: [
|
|
62
|
+
children: spaFallbackFilePaths.map(filePath => a("li", {
|
|
63
|
+
children: [a("code", {
|
|
64
64
|
children: filePath
|
|
65
65
|
}), filePath === `/${mainFilePath}` ? " (main file)" : ""]
|
|
66
66
|
}, filePath))
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
errorText =
|
|
71
|
-
children: [
|
|
70
|
+
errorText = a(M, {
|
|
71
|
+
children: [a("strong", {
|
|
72
72
|
children: "File not found:"
|
|
73
|
-
}), "\xA0",
|
|
74
|
-
children: [
|
|
75
|
-
children: [
|
|
73
|
+
}), "\xA0", a(Overflow, {
|
|
74
|
+
children: [a("code", {
|
|
75
|
+
children: [a("span", {
|
|
76
76
|
className: "file_path_good",
|
|
77
77
|
children: filePathExisting
|
|
78
|
-
}),
|
|
78
|
+
}), a("span", {
|
|
79
79
|
className: "file_path_bad",
|
|
80
80
|
children: filePathNotFound
|
|
81
81
|
})]
|
|
82
82
|
}), " ", "does not exist on the server."]
|
|
83
83
|
})]
|
|
84
84
|
});
|
|
85
|
-
errorSuggestion =
|
|
86
|
-
children: [
|
|
85
|
+
errorSuggestion = a(M, {
|
|
86
|
+
children: [a("span", {
|
|
87
87
|
className: "icon",
|
|
88
88
|
children: "🔍"
|
|
89
|
-
}), " Check available routes in", " ",
|
|
89
|
+
}), " Check available routes in", " ", a("a", {
|
|
90
90
|
href: "/.internal/route_inspector",
|
|
91
91
|
children: "route inspector"
|
|
92
92
|
})]
|
|
93
93
|
});
|
|
94
|
-
return
|
|
94
|
+
return a("div", {
|
|
95
95
|
className: "error_message",
|
|
96
|
-
children: [
|
|
96
|
+
children: [a("p", {
|
|
97
97
|
className: "error_text",
|
|
98
98
|
children: errorText
|
|
99
|
-
}), spaExplanation ?
|
|
99
|
+
}), spaExplanation ? a("p", {
|
|
100
100
|
className: "error_spa",
|
|
101
101
|
style: "margin-top: 10px;",
|
|
102
102
|
children: spaExplanation
|
|
103
|
-
}) : null,
|
|
103
|
+
}) : null, a("p", {
|
|
104
104
|
className: "error_suggestion",
|
|
105
105
|
style: "font-size: 0.8em; margin-top: 10px;",
|
|
106
106
|
children: errorSuggestion
|
|
@@ -111,11 +111,11 @@ const Overflow = ({
|
|
|
111
111
|
children,
|
|
112
112
|
afterContent
|
|
113
113
|
}) => {
|
|
114
|
-
return
|
|
114
|
+
return a("div", {
|
|
115
115
|
style: "display: flex; flex-wrap: wrap; overflow: hidden; width: 100%; box-sizing: border-box; white-space: nowrap; text-overflow: ellipsis;",
|
|
116
|
-
children:
|
|
116
|
+
children: a("div", {
|
|
117
117
|
style: "display: flex; flex-grow: 1; width: 0;",
|
|
118
|
-
children: [
|
|
118
|
+
children: [a("div", {
|
|
119
119
|
style: "overflow: hidden; max-width: 100%; text-overflow: ellipsis;",
|
|
120
120
|
children: children
|
|
121
121
|
}), afterContent]
|
|
@@ -125,7 +125,7 @@ const Overflow = ({
|
|
|
125
125
|
const Breadcrumb = ({
|
|
126
126
|
items
|
|
127
127
|
}) => {
|
|
128
|
-
return
|
|
128
|
+
return a("h1", {
|
|
129
129
|
className: "nav",
|
|
130
130
|
children: items.map(navItem => {
|
|
131
131
|
const {
|
|
@@ -136,14 +136,14 @@ const Breadcrumb = ({
|
|
|
136
136
|
isServerRootDirectory
|
|
137
137
|
} = navItem;
|
|
138
138
|
const isDirectory = new URL(url).pathname.endsWith("/");
|
|
139
|
-
return
|
|
140
|
-
children: [
|
|
139
|
+
return a(M, {
|
|
140
|
+
children: [a(BreadcrumbItem, {
|
|
141
141
|
url: urlRelativeToServer,
|
|
142
142
|
isCurrent: isCurrent,
|
|
143
143
|
iconImageUrl: isServerRootDirectory ? homeIconUrl : "",
|
|
144
144
|
iconLinkUrl: isServerRootDirectory ? `/${mainFilePath}` : "",
|
|
145
145
|
children: name
|
|
146
|
-
}, url), isDirectory ?
|
|
146
|
+
}, url), isDirectory ? a("span", {
|
|
147
147
|
className: "directory_separator",
|
|
148
148
|
children: "/"
|
|
149
149
|
}) : null]
|
|
@@ -158,28 +158,28 @@ const BreadcrumbItem = ({
|
|
|
158
158
|
isCurrent,
|
|
159
159
|
children
|
|
160
160
|
}) => {
|
|
161
|
-
return
|
|
161
|
+
return a("span", {
|
|
162
162
|
className: "nav_item",
|
|
163
163
|
"data-current": isCurrent ? "" : undefined,
|
|
164
|
-
children: [iconLinkUrl ?
|
|
164
|
+
children: [iconLinkUrl ? a("a", {
|
|
165
165
|
className: "nav_item_icon"
|
|
166
166
|
// eslint-disable-next-line react/no-unknown-property
|
|
167
167
|
,
|
|
168
168
|
"hot-decline": true,
|
|
169
169
|
href: iconLinkUrl,
|
|
170
|
-
children:
|
|
170
|
+
children: a(Icon, {
|
|
171
171
|
url: iconImageUrl
|
|
172
172
|
})
|
|
173
|
-
}) : iconImageUrl ?
|
|
173
|
+
}) : iconImageUrl ? a("span", {
|
|
174
174
|
className: "nav_item_icon",
|
|
175
|
-
children:
|
|
175
|
+
children: a(Icon, {
|
|
176
176
|
url: iconImageUrl
|
|
177
177
|
})
|
|
178
|
-
}) : null, url ?
|
|
178
|
+
}) : null, url ? a("a", {
|
|
179
179
|
className: "nav_item_text",
|
|
180
180
|
href: url,
|
|
181
181
|
children: children
|
|
182
|
-
}) :
|
|
182
|
+
}) : a("span", {
|
|
183
183
|
className: "nav_item_text",
|
|
184
184
|
children: children
|
|
185
185
|
})]
|
|
@@ -189,15 +189,15 @@ const DirectoryContent = ({
|
|
|
189
189
|
items
|
|
190
190
|
}) => {
|
|
191
191
|
if (items.length === 0) {
|
|
192
|
-
return
|
|
192
|
+
return a("p", {
|
|
193
193
|
className: "directory_empty_message",
|
|
194
194
|
children: "Directory is empty"
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
return
|
|
197
|
+
return a("ul", {
|
|
198
198
|
className: "directory_content",
|
|
199
199
|
children: items.map(directoryItem => {
|
|
200
|
-
return
|
|
200
|
+
return a(DirectoryContentItem, {
|
|
201
201
|
url: directoryItem.urlRelativeToServer,
|
|
202
202
|
isDirectory: directoryItem.url.endsWith("/"),
|
|
203
203
|
isMainFile: directoryItem.isMainFile,
|
|
@@ -212,31 +212,31 @@ const DirectoryContentItem = ({
|
|
|
212
212
|
isMainFile,
|
|
213
213
|
children
|
|
214
214
|
}) => {
|
|
215
|
-
return
|
|
215
|
+
return a("li", {
|
|
216
216
|
className: "directory_content_item",
|
|
217
217
|
"data-directory": isDirectory ? "" : undefined,
|
|
218
218
|
"data-file": isDirectory ? undefined : "",
|
|
219
|
-
children:
|
|
219
|
+
children: a("a", {
|
|
220
220
|
className: "directory_content_item_link",
|
|
221
221
|
href: url
|
|
222
222
|
// eslint-disable-next-line react/no-unknown-property
|
|
223
223
|
,
|
|
224
224
|
"hot-decline": isMainFile ? true : undefined,
|
|
225
|
-
children: [
|
|
225
|
+
children: [a("span", {
|
|
226
226
|
className: "directory_content_item_icon",
|
|
227
|
-
children:
|
|
227
|
+
children: a(Icon, {
|
|
228
228
|
url: isMainFile ? homeIconUrl : isDirectory ? directoryIconUrl : fileIconUrl
|
|
229
229
|
})
|
|
230
|
-
}),
|
|
230
|
+
}), a("span", {
|
|
231
231
|
className: "directory_content_item_text",
|
|
232
|
-
children: [
|
|
232
|
+
children: [a(Overflow, {
|
|
233
233
|
children: children
|
|
234
|
-
}), isDirectory ?
|
|
235
|
-
children: [
|
|
234
|
+
}), isDirectory ? a(M, {
|
|
235
|
+
children: [a("span", {
|
|
236
236
|
style: "flex:1"
|
|
237
|
-
}),
|
|
237
|
+
}), a("span", {
|
|
238
238
|
className: "directory_content_item_arrow",
|
|
239
|
-
children:
|
|
239
|
+
children: a(RightArrowSvg, {})
|
|
240
240
|
})]
|
|
241
241
|
}) : null]
|
|
242
242
|
})]
|
|
@@ -244,10 +244,10 @@ const DirectoryContentItem = ({
|
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
246
|
const RightArrowSvg = () => {
|
|
247
|
-
return
|
|
247
|
+
return a("svg", {
|
|
248
248
|
fill: "currentColor",
|
|
249
249
|
viewBox: "0 0 330 330",
|
|
250
|
-
children:
|
|
250
|
+
children: a("path", {
|
|
251
251
|
stroke: "currentColor",
|
|
252
252
|
d: "M250.606,154.389l-150-149.996c-5.857-5.858-15.355-5.858-21.213,0.001 c-5.857,5.858-5.857,15.355,0.001,21.213l139.393,139.39L79.393,304.394c-5.857,5.858-5.857,15.355,0.001,21.213 C82.322,328.536,86.161,330,90,330s7.678-1.464,10.607-4.394l149.999-150.004c2.814-2.813,4.394-6.628,4.394-10.606 C255,161.018,253.42,157.202,250.606,154.389z"
|
|
253
253
|
})
|
|
@@ -257,13 +257,13 @@ const Icon = ({
|
|
|
257
257
|
url
|
|
258
258
|
}) => {
|
|
259
259
|
if (urlToFilename(url).endsWith(".svg")) {
|
|
260
|
-
return
|
|
261
|
-
children:
|
|
260
|
+
return a("svg", {
|
|
261
|
+
children: a("use", {
|
|
262
262
|
href: url
|
|
263
263
|
})
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
|
-
return
|
|
266
|
+
return a("img", {
|
|
267
267
|
src: url
|
|
268
268
|
});
|
|
269
269
|
};
|
|
@@ -296,4 +296,4 @@ if (autoreload) {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
K(a(DirectoryListing, {}), document.querySelector("#root"));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var n,t$1,i$1,f$1,e$1,o$2,u$2,c$1,s$1,a$1,h$1,l$1,y$1=32,v$1="http://www.w3.org/2000/svg",_$1="http://www.w3.org/1999/xhtml",d$1="http://www.w3.org/1998/Math/MathML",w$1=null,b=void 0,k$1={},g$1=[],m$1=/^m(i|n|o|s|text|space)$/,$$1=typeof Element<"u"&&"moveBefore"in Element.prototype,S=Array.isArray,x$1=g$1.slice,M=Object.assign;function C$1(n){n&&n.parentNode&&n.remove();}function I$1(r,i,f,e,o){var u={type:r,props:i,key:f,ref:e,__k:w$1,__:w$1,__b:0,__e:w$1,__c:w$1,constructor:b,__v:o||++t$1,__i:-1,__u:0};return !o&&n.vnode&&n.vnode(u),u}function A$1(n){return n.children}function E$1(n,t){this.props=n,this.context=t,this.__g=0;}function O(n,t){if(t==w$1)return n.__?O(n.__,n.__i+1):w$1;for(var r;t<n.__k.length;t++)if((r=n.__k[t])&&r.__e)return r.__e;return "function"!=typeof n.type||n.props.__P?w$1:O(n)}function P$1(t){var r,i=t.__v,f=i.__e,e=[],o=[],u=t.__P;u&&((r=M({constructor:b},i)).__v=i.__v+1,n.vnode&&n.vnode(r),Q$1(u,r,i,t.__n,u.namespaceURI,i.__u&y$1?[f]:w$1,e,f||O(i),i.__u&y$1,o),r.__v=i.__v,r.__.__k[r.__i]=r,U(e,r,o),i.__=i.__e=w$1,r.__e!=f&&T$1(r));}function T$1(n){if((n=n.__)&&n.__c&&!n.props.__P)return n.__e=w$1,n.__k.some(function(t){return t&&(n.__e=t.__e)}),T$1(n)}function q(t){(8&t.__g||!(t.__g|=8)||!i$1.push(t)||e$1++)&&f$1==n.debounceRendering||((f$1=n.debounceRendering)||queueMicrotask)(B$2);}function B$2(){try{for(var n,t=1;i$1.length;)i$1.length>t&&i$1.sort(o$2),n=i$1.shift(),t=i$1.length,8&n.__g&&P$1(n);}finally{i$1.length=e$1=0;}}function N(n,t,r,i,f,e,o,u,c,s,a){var h,l,p,y,v,_,d=i.__k||g$1,m=t.length;for(c=V$1(r,t,d,c,m),h=0;h<m;h++)(p=r.__k[h])!=w$1&&(l=~p.__i&&d[p.__i]||k$1,p.__i=h,_=Q$1(n,p,l,f,e,o,u,c,s,a),y=p.__e,p.ref&&l.ref!=p.ref&&(l.ref&&Y(l.ref,w$1,p),a.push(p.ref,p.__c||y,p)),v=v||y,4&p.__u?(c=z$2(p,c,n,!l.__v),l.__e&&(l.__e=w$1)):"function"==typeof p.type&&_!==b?c=_:y&&(c=y.nextSibling),p.__u&=-7);return r.__e=v,c}function V$1(n,t,r,i,f){var e,o,u,c,s,a,h,l,p,y,v=r.length,_=v,d=0,k=false,g=n.__k=Array(f);for(e=0;e<f;e++)(o=t[e])!=w$1&&"boolean"!=typeof o&&"function"!=typeof o?("object"!=typeof o||o.constructor==String?o=g[e]=I$1(w$1,o):S(o)?o=g[e]=I$1(A$1,{children:o}):o.constructor===b&&o.__b?o=g[e]=I$1(o.type,o.props,o.key,o.ref,o.__v):g[e]=o,c=e+d,o.__=n,o.__b=n.__b+1,s=o.__i=F$1(o,r,c,_),u=w$1,~s&&(_--,(u=r[s])&&(u.__u|=2)),u&&u.__v?(o.__u|=2,s==c-1?d--:s==c+1?d++:s!=c&&(s>c?d--:d++,k=true)):(~s||(f>v?d--:f<v&&d++),"function"!=typeof o.type&&(o.__u|=4))):g[e]=w$1;if(k){for(a=[],h=[],e=0;e<f;e++)if((o=g[e])&&2&o.__u){for(l=0,p=a.length;l<p;)a[y=l+p>>1]<o.__i?l=y+1:p=y;a[l]=o.__i,h[e]=l+1;}for(d=a.length;e--;)h[e]&&(h[e]==d?d--:g[e].__u|=4);}if(_)for(e=0;e<v;e++)!(u=r[e])||2&u.__u||(u.__e==i&&(i=O(u)),Z$1(u,u));return i}function z$2(n,t,r,i){var f,e;if("function"==typeof n.type){if(n.props.__P)return t;if(f=n.__k)for(e=0;e<f.length;e++)f[e]&&(f[e].__=n,t=z$2(f[e],t,r,false));return t}for(n.__e!=t&&(t&&n.type&&!t.parentNode&&(t=O(n)),$$1&&!i&&n.__e.parentNode?r.moveBefore(n.__e,t):r.insertBefore(n.__e,t||w$1),t=n.__e);(t=t&&t.nextSibling)&&8==t.nodeType;);return t}function D$1(n,t){return t=t||[],n!=w$1&&"boolean"!=typeof n&&(S(n)?n.some(function(n){D$1(n,t);}):t.push(n)),t}function F$1(n,t,r,i){var f,e,o,u=n.key,c=n.type,s=t[r],a=s&&!(2&s.__u);if(s===w$1&&u==w$1||a&&u==s.key&&c==s.type)return r;if(i>(a?1:0))for(f=r-1,e=r+1;f>=0||e<t.length;)if((s=t[o=f>=0?f--:e++])&&!(2&s.__u)&&u==s.key&&c==s.type)return o;return -1}function G$2(n,t,r){r==w$1&&(r=""),"-"==t[0]?n.setProperty(t,r):n[t]=r;}function J$1(n,t,r,i,f){var e;n:if("style"==t)if("string"==typeof r)n.style.cssText=r;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(t in i)r&&t in r||G$2(n.style,t,"");if(r)for(t in r)i&&r[t]==i[t]||G$2(n.style,t,r[t]);}else if("o"==t[0]&&"n"==t[1])e=t!=(t=t.replace(s$1,"$1")),t=t.slice(2).toLowerCase(),(n.__e||(n.__e={}))[t+e]=r,r?i?r[c$1]=i[c$1]:(r[c$1]=a$1,n.addEventListener(t,e?l$1:h$1,e)):n.removeEventListener(t,e?l$1:h$1,e);else {if(f==v$1)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{n[t]=r==w$1?"":r;break n}catch(n){}"function"==typeof r||(r==w$1||false===r&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==r?"":r));}}function K$1(t){return function(r){if(this.__e){var i=this.__e[r.type+t];if(r[u$2]==w$1)r[u$2]=a$1++;else if(r[u$2]<i[c$1])return;return i(n.event?n.event(r):r)}}}function Q$1(t,r,i,f,e,o,u,c,s,a){var h,l,p,v,_,d,k,m,$,x,j,H,I,L,P,T,q,B,V,z=r.type;if(r.constructor!==b)return w$1;if(128&i.__u&&(s=i.__u&y$1)&&(h=i.__c.__z)){if(r.__u|=y$1,o=[],8==h.nodeType)for(l=1,p=h.nextSibling;p;p=p.nextSibling){if(8==p.nodeType)if(p.data.startsWith("$s"))l++;else if(p.data.startsWith("/$s")&&! --l)break;o.push(p);}else o.push(h);c=o[0],i.__c.__z=w$1;}(h=n.__b)&&h(r);n:if("function"==typeof z){v=u.length;try{if($=r.props,x=(h=z.prototype)&&h.render,j=(h=z.contextType)&&f[h.__c],H=h?j?j.props.value:h.__:f,i.__c?2&(_=r.__c=i.__c).__g&&(_.__g|=1):(x?r.__c=_=new z($,H):(r.__c=_=new E$1($,H),_.constructor=z,_.render=nn),j&&j.sub(_),_.state||(_.state={}),_.__n=f,_.__g|=8,_.__h=[],_.__k=[]),x&&(_.__s||(_.__s=_.state),z.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=M({},_.__s)),M(_.__s,z.getDerivedStateFromProps($,_.__s)))),d=_.props,k=_.state,_.__v=r,i.__c){if(x&&!z.getDerivedStateFromProps&&$!==d&&_.componentWillReceiveProps&&_.componentWillReceiveProps($,H),r.__v==i.__v&&!(8&_.__g)||!(4&_.__g)&&_.shouldComponentUpdate&&!1===_.shouldComponentUpdate($,_.__s,H)){r.__v!=i.__v&&(_.props=$,_.state=_.__s,_.__g&=-9),r.__e=i.__e,r.__k=i.__k,r.__k.some(function(n){n&&(n.__=r);}),g$1.push.apply(_.__h,_.__k),_.__k=[],_.__h.length&&u.push(_),c=O(i);break n}_.componentWillUpdate&&_.componentWillUpdate($,_.__s,H),x&&_.componentDidUpdate&&_.__h.push(function(){_.componentDidUpdate(d,k,m);});}else x&&!z.getDerivedStateFromProps&&_.componentWillMount&&_.componentWillMount(),x&&_.componentDidMount&&_.__h.push(_.componentDidMount);if(_.context=H,_.props=$,_.__P=t,_.__g&=-5,I=n.__r,L=0,x)_.state=_.__s,_.__g&=-9,I&&I(r),h=_.render(_.props,_.state,_.context),g$1.push.apply(_.__h,_.__k),_.__k=[];else do{_.__g&=-9,I&&I(r),h=_.render(_.props,_.state,_.context),_.state=_.__s;}while(8&_.__g&&++L<25);_.state=_.__s,_.getChildContext&&(f=M({},f,_.getChildContext())),x&&i.__c&&_.getSnapshotBeforeUpdate&&(m=_.getSnapshotBeforeUpdate(d,k)),P=h&&h.type===A$1&&h.key==w$1?W$1(h.props.children):h,$.__P&&(h=c,e=(t=$.__P).namespaceURI,i.props&&i.props.__P!=t&&(i.__k.some(function(n){n&&Z$1(n,n);}),i.__k=w$1),c=i.__k?O(i,0):w$1),c=N(t,S(P)?P:[P],r,i,f,e,o,u,c,s,a),$.__P&&(r.__e=w$1,c=h),r.__u&=-161,_.__h.length&&u.push(_),1&_.__g&&(_.__g&=-4);}catch(t){if(u.length=v,r.__v=w$1,s||o)if(t.then){if(T=0,r.__u|=s?160:128,o)for(B=0;B<o.length;B++)if(V=o[B])if(8==V.nodeType){if(o[B]=w$1,V.data.startsWith("$s"))T++||(q=V);else if(V.data.startsWith("/$s")&&! --T){c=V;break}}else T&&(o[B]=w$1);if(!q){for(;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;o&&(o[o.indexOf(c)]=w$1),q=c;}r.__c.__z=q,r.__e=c;}else o&&o.some(C$1);else r.__e=i.__e;r.__k||(r.__k=i.__k||[]),t.then||R$1(r),n.__e(t,r,i);}}else c=r.__e=X(i.__e,r,i,f,e,o,u,s,a,t);return (h=n.diffed)&&h(r),128&r.__u?b:c}function R$1(n){n&&(n.__c&&(n.__c.__g|=4),n.__k&&n.__k.some(R$1));}function U(t,r,i){for(var f=0;f<i.length;)Y(i[f++],i[f++],i[f++]);n.__c&&n.__c(r,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r);});}catch(t){n.__e(t,r.__v);}});}function W$1(n){return "object"!=typeof n||n==w$1||n.__b?n:S(n)?n.map(W$1):n.constructor!==b?w$1:M({constructor:b},n)}function X(t,r,i,f,e,o,u,c,s,a){var h,l,p,y,g,$,M,j,H,I=i.props||k$1,L=r.props,A=r.type;if("svg"==A?e=v$1:"math"==A?e=d$1:e||(e=_$1),o)for(h=0;h<o.length;h++)if((g=o[h])&&(A?g.localName==A:3==g.nodeType)){t=g,o[h]=w$1;break}if(!t){if(j=a.ownerDocument,!A)return j.createTextNode(L);t=j.createElementNS(e,A,L.is&&L),c&&(n.__m&&n.__m(r,o),c=false),o=w$1;}if(A){if(a="template"==A?t.content:t,o="textarea"==A&&L.defaultValue!=w$1?w$1:o&&x$1.call(a.childNodes),!c&&o)for(I={},h=0;h<t.attributes.length;h++)I[(g=t.attributes[h]).name]=g.value;for(h in I)g=I[h],"dangerouslySetInnerHTML"==h?p=g:"children"==h||h in L||"value"==h&&"defaultValue"in L||"checked"==h&&"defaultChecked"in L||J$1(t,h,w$1,g,e);for(h in H=1&i.__u,L)g=L[h],"children"==h?y=g:"dangerouslySetInnerHTML"==h?l=g:"value"==h?$=g:"checked"==h?M=g:c&&"function"!=typeof g||!(I[h]!==g||H&&g!=w$1)||J$1(t,h,g,I[h],e);l?(c||p&&(l.__html==p.__html||l.__html==t.innerHTML)||(t.innerHTML=l.__html),r.__k=[]):(p&&(t.textContent=""),("foreignObject"==A||e==d$1&&m$1.test(A))&&(e=_$1),N(a,S(y)?y:[y],r,i,f,e,o,u,o?o[0]:i.__k&&O(i,0),c,s),o&&o.some(C$1)),c&&"textarea"!=A||(h="value","progress"==A&&$==w$1?t.removeAttribute(h):$==b||$===t[h]&&("progress"!=A||$)||J$1(t,h,$,I[h],e),h="checked",M!=b&&M!=t[h]&&J$1(t,h,M,I[h],e));}else I===L||c&&t.data==L||(t.data=L);return t}function Y(t,r,i){try{"function"==typeof t?("function"==typeof t.__u&&t.__u(),("function"!=typeof t.__u||r)&&(t.__u=t(r))):t.current=r;}catch(t){n.__e(t,i);}}function Z$1(t,r,i){var f,e;if(n.unmount&&n.unmount(t),!(f=t.ref)||f.current&&f.current!=t.__e||Y(f,w$1,r),f=t.__c){if(f.componentWillUnmount)try{f.componentWillUnmount();}catch(t){n.__e(t,r);}f.__P=f.__n=w$1;}if(f=t.__k)for(e=0;e<f.length;e++)f[e]&&Z$1(f[e],r,"function"!=typeof t.type||i&&!t.props.__P);(f=t.__e)&&(i||C$1(f),f.__e&&(f.__e=w$1)),t.__e=t.__c=t.__=w$1;}function nn(n,t,r){return this.constructor(n,r)}function tn(t,r){var i,f,e,o;n.__&&n.__(t,r),9==r.nodeType&&(r=r.documentElement),f=(i=t&&t.__u&y$1)?w$1:r.__k,r.__k=I$1(A$1,{children:[t]}),e=[],o=[],Q$1(r,r.__k,f||k$1,k$1,r.namespaceURI,f?w$1:r.firstChild?x$1.call(r.childNodes):w$1,e,f?f.__e:r.firstChild,i,o),U(e,r.__k,o),r.__k.props.children=w$1;}n={__e:function(n,t,r,i){for(var f,o,u;t=t.__;)if((f=t.__c)&&!(1&f.__g)){f.__g|=4;try{if((o=f.constructor)&&o.getDerivedStateFromError&&(f.setState(o.getDerivedStateFromError(n)),u=8&f.__g),f.componentDidCatch&&(f.componentDidCatch(n,i||{}),u=8&f.__g),u)return void(f.__g|=2)}catch(t){n=t;}}throw e$1=0,n}},t$1=0,E$1.prototype.setState=function(n,t){var r=this.__s;r&&r!=this.state||(r=this.__s=M({},this.state)),"function"==typeof n&&(n=n(M({},r),this.props)),n&&(M(r,n),this.__v&&(t&&this.__k.push(t),q(this)));},E$1.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),q(this));},E$1.prototype.render=A$1,i$1=[],e$1=0,o$2=function(n,t){return n.__v.__b-t.__v.__b},u$2=Symbol(),c$1=Symbol(),s$1=/(PointerCapture)$|Capture$/i,a$1=0,h$1=K$1(false),l$1=K$1(true);
|
|
1
|
+
var n,t$1,i$1,u$1,f$2,e$1,o$2,l$1,c$1,a$2,h$1=Symbol.for("pv"),p$1={},v$1=[],y$1=/^m(i|n|o|s|text|space)$/,w$1=Array.isArray,d$1=v$1.slice,_$1=Object.assign;function g$1(n){n&&n.parentNode&&n.remove();}function m$1(r,i,u,f,e){var o={type:r,props:i,key:u,ref:f,__k:null,__:null,__b:0,__e:null,__c:null,constructor:h$1,__v:e||++t$1,__i:-1,__u:0};return !e&&n.vnode&&n.vnode(o),o}function M(n){return n.children}function x$1(n,t){this.props=n,this.context=t,this.__g=0;}function S(n,t){if(null==t)return n.__&&S(n.__,n.__i+1);for(var r;t<n.__k.length;t++)if((r=n.__k[t])&&r.__e)return r.__e;return "function"!=typeof n.type||n.props.__P?null:S(n)}function C$1(n){if((n=n.__)&&n.__c&&!n.props.__P)return n.__e=null,n.__k.some(function(t){return t&&(n.__e=t.__e)}),C$1(n)}function j(t){(8&t.__g||(t.__g|=8,i$1.push(t),f$2++))&&u$1==n.debounceRendering||((u$1=n.debounceRendering)||queueMicrotask)(L);}function L(){var t,r,o,l,c,a,s,p,v;try{for(r=1;i$1.length;)i$1.length>r&&i$1.sort(e$1),t=i$1.shift(),r=i$1.length,8&t.__g&&(l=void 0,c=void 0,a=(c=(o=t).__v).__e,s=[],p=[],(v=o.__P)&&((l=_$1({constructor:h$1},c)).__v=c.__v+1,n.vnode&&n.vnode(l),V(v,l,c,o.__n,v.namespaceURI,32&c.__u?[a]:null,s,a||S(c),32&c.__u,p),l.__v=c.__v,l.__.__k[l.__i]=l,D$1(s,l,p),c.__=c.__e=null,l.__e!=a&&C$1(l)));}finally{(f$2=i$1.length)&&(u$1||queueMicrotask)(L);}}function H$1(n,t,r,i,u,f,e,o,l,c,a){var s,h,y,w,d,_,g=i.__k||v$1,k=t.length;for(l=I(r,t,g,l,k),s=0;s<k;s++)null!=(y=r.__k[s])&&(h=~y.__i&&g[y.__i]||p$1,y.__i=s,_=V(n,y,h,u,f,e,o,l,c,a),w=y.__e,(h.ref!=y.ref||8&h.__u)&&(h.ref&&F$1(h.ref,null,y,h),y.ref&&a.push(y.ref,y.__c||w,y)),d=d||w,4&y.__u?(l=q(y,l,n,!h.__v),h.__e&&(h.__e=null)):"function"==typeof y.type&&void 0!==_?l=_:w&&(l=w.nextSibling),y.__u&=-21);return r.__e=d,l}function I(n,t,r,i,u){var f,e,o,l,c,a,s,p,v,y=r.length,d=y,_=0,g=0,k=n.__k=Array(u);for(f=0;f<u;f++)null!=(e=t[f])&&"boolean"!=typeof e&&"function"!=typeof e?("object"!=typeof e||e.constructor===String?e=k[f]=m$1(null,e):w$1(e)?e=k[f]=m$1(M,{children:e}):e.constructor===h$1&&e.__b?e=k[f]=m$1(e.type,e.props,e.key,e.ref,e.__v):k[f]=e,l=f+_,e.__=n,e.__b=n.__b+1,o=null,~(c=e.__i=O(e,r,l,d))&&(d--,(o=r[c])&&(o.__u|=2)),o&&o.__v?(e.__u|=16,c==l-1?_--:c==l+1?_++:c!=l&&(c>l?_--:_++,g=1)):(~c||(u>y?_--:u<y&&_++),"function"!=typeof e.type&&(e.__u|=4))):k[f]=null;if(g){for(a=[],s=[],f=0;f<u;f++)if((e=k[f])&&16&e.__u){for(_=0,p=a.length;_<p;)a[v=_+p>>1]<e.__i?_=v+1:p=v;a[_]=e.__i,s[f]=_+1;}for(_=a.length;f--;)s[f]&&(s[f]==_?_--:k[f].__u|=4);}if(d)for(f=0;f<y;f++)!(o=r[f])||2&o.__u||(o.__e==i&&(i=S(o)),G$1(o,o));return i}function q(n,t,r,i){var u,f,e,o;if("function"==typeof n.type){if(n.props.__P)return t;if(u=n.__k)for(f=0;f<u.length;f++)u[f]&&(u[f].__=n,t=q(u[f],t,r,false));return t}for(t&&!t.parentNode&&(t=S(n))&&!t.parentNode&&(t=null),e=n.__e,o=t;o&&8==o.nodeType;)o=o.nextSibling;for(e!=o&&(!i&&r.moveBefore&&e.parentNode?r.moveBefore(e,t):r.insertBefore(e,t||null)),t=e;(t=t&&t.nextSibling)&&8==t.nodeType&&!t.data.startsWith("$s"););return t}function A$1(n,t){return t=t||[],null!=n&&"boolean"!=typeof n&&(w$1(n)?n.some(function(n){A$1(n,t);}):t.push(n)),t}function O(n,t,r,i){var u,f=n.key,e=n.type,o=t[r],l=o&&!(2&o.__u);if(null===o&&null==f||l&&f==o.key&&e==o.type)return r;if(i>(l?1:0)){for(u=r-1;u>=0;u--)if((o=t[u])&&!(2&o.__u)&&f==o.key&&e==o.type)return u;for(u=r+1;u<t.length;u++)if((o=t[u])&&!(2&o.__u)&&f==o.key&&e==o.type)return u}return -1}function P$1(n,t,r){null==r&&(r=""),"-"==t[0]?n.setProperty(t,r):n[t]=r;}function T$1(n,t,r,i,u){var f,e;if("style"==t)if("string"==typeof r)n.style.cssText=r;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(t in i)r&&t in r||P$1(n.style,t);if(r)for(t in r)i&&r[t]==i[t]||P$1(n.style,t,r[t]);}else if("o"==t[0]&&"n"==t[1])(n.__e||(n.__e={}))[t]=r,r&&i||(e=a$2[t]||(a$2[t]=N(t)),(n.__a||(n.__a={}))[t]=c$1,f=t!=(t=t.replace(l$1,"$1")),(t=t.slice(2))[0]<"a"&&(t=t.toLowerCase()),r?n.addEventListener(t,e,f):n.removeEventListener(t,e,f));else {if("http://www.w3.org/2000/svg"==u)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{return void(n[t]=null==r?"":r)}catch(n){}if("function"==typeof r)return;null==r||false===r&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==r?"":r);}}function N(t){return function(r){var i=this.__e;if(i){if(i=i[t],null==r[o$2])r[o$2]=c$1++;else if(r[o$2]<this.__a[t])return;return i(n.event?n.event(r):r)}}}function V(t,r,i,u,f,e,o,l,c,a){var s,p,y,d,k,b,m,$,C,j,L,I,q,A,O,P,T,N,V=r.type;if(r.constructor!==h$1)return null;128&i.__u&&(c=32&i.__u,s=i.__c.__z)&&(r.__u|=c,p=e=[],8==s.nodeType?l=z$2(s,e):e.push(s),l=e[0]||l),(s=n.__b)&&s(r);n:if("function"==typeof V){y=o.length;try{if($=r.props,C=(s=V.prototype)&&s.render,j=(s=V.contextType)&&u[s.__c],L=s?j?j.props.value:s.__:u,(d=i.__c)?(r.__c=d,2&d.__g&&(d.__g|=1)):(C?r.__c=d=new V($,L):(r.__c=d=new x$1($,L),d.constructor=V,d.render=J$1),j&&j.sub(d),d.state||(d.state={}),d.__n=u,d.__g|=8,d.__h=[],d.__k=[]),C&&(d.__s||(d.__s=d.state),V.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=_$1({},d.__s)),_$1(d.__s,V.getDerivedStateFromProps($,d.__s)))),k=d.props,b=d.state,d.__v=r,i.__c){if($!==k&&C&&!V.getDerivedStateFromProps&&d.componentWillReceiveProps&&d.componentWillReceiveProps($,L),r.__v==i.__v&&!(8&d.__g)||!(4&d.__g)&&d.shouldComponentUpdate&&!1===d.shouldComponentUpdate($,d.__s,L)){r.__v!=i.__v&&(d.props=$,d.state=d.__s,d.__g&=-9),r.__e=i.__e,r.__k=i.__k,r.__k.some(function(n){n&&(n.__=r);}),v$1.push.apply(d.__h,d.__k),d.__k=[],d.__h.length&&o.push(d),l=S(i);break n}d.componentWillUpdate&&d.componentWillUpdate($,d.__s,L),C&&d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(k,b,m);});}else C&&!V.getDerivedStateFromProps&&d.componentWillMount&&d.componentWillMount(),C&&d.componentDidMount&&d.__h.push(d.componentDidMount);if(d.context=L,d.props=$,d.__P=t,d.__g&=-5,I=n.__r,q=0,C)d.state=d.__s,d.__g&=-9,I&&I(r),s=d.render(d.props,d.state,d.context),v$1.push.apply(d.__h,d.__k),d.__k=[];else do{d.__g&=-9,I&&I(r),s=d.render(d.props,d.state,d.context),d.state=d.__s;}while(8&d.__g&&++q<25);d.state=d.__s,d.getChildContext&&(u=_$1({},u,d.getChildContext())),C&&i.__c&&d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(k,b)),A=s&&s.type===M&&null==s.key?s.props.children:s,$.__P&&(s=l,f=(t=$.__P).namespaceURI,c=e=null,i.props&&i.props.__P!=t&&(i.__k.some(function(n){n&&G$1(n,n);}),i.__k=null),l=i.__k?S(i,0):null),l=H$1(t,w$1(A)?A:[A],r,i,u,f,e,o,l,c,a),$.__P&&(r.__e=null,l=s),r.__u&=-161,p&&p.some(g$1),d.__h.length&&o.push(d),1&d.__g&&(d.__g&=-4);}catch(t){if(o.length=y,r.__v=null,c||e)if(t.then){if(O=0,r.__u|=128|c,e){for(~(T=e.indexOf(l||void 0))||(T=e.length);(N=e[T-1])&&8==N.nodeType;)T--;for(;T<e.length;T++)if(N=e[T])if(e[T]=null,8==N.nodeType){if(N.data.startsWith("$s"))O++||(P=N);else if(O&&N.data.startsWith("/$s")&&!--O)break}else if(!O)break}if(!P){for(;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;P=l;}(s=z$2(P=r.__c.__z||(r.__c.__z=P)))?(r.__e=P,l=s):r.__e=l,l=l&&l.nextSibling;}else e&&e.some(g$1);else r.__e=i.__e;r.__k||(r.__k=i.__k||[]),t.then||B$2(r),n.__e(t,r,i);}}else l=r.__e=E$1(i.__e,r,i,u,f,e,o,c,a,t);return (s=n.diffed)&&s(r),l}function z$2(n,t){if(n&&8==n.nodeType&&n.data.startsWith("$s"))for(var r=1;n=n.nextSibling;){if(8==n.nodeType)if(n.data.startsWith("$s"))r++;else if(n.data.startsWith("/$s")&&!--r)return n;t&&t.push(n);}}function B$2(n){n&&(n.__c&&(n.__c.__g|=4),n.__k&&n.__k.some(B$2));}function D$1(t,r,i){for(var u=0;u<i.length;)F$1(i[u++],i[u++],i[u++]);n.__c&&n.__c(r,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r);});}catch(t){n.__e(t,r.__v);}});}function E$1(t,r,i,u,f,e,o,l,c,a){var s,h,v,_,k,b,m,$,M,x=i.props||p$1,C=r.props,j=r.type;if("svg"==j?f="http://www.w3.org/2000/svg":"math"==j?f="http://www.w3.org/1998/Math/MathML":f||(f="http://www.w3.org/1999/xhtml"),e)for(s=0;s<e.length;s++)if((k=e[s])&&(j?k.localName==j:3==k.nodeType)){t=k,e[s]=null;break}if(!t){if($=a.ownerDocument||document,!j)return $.createTextNode(C);t=$.createElementNS(f,j,C.is&&C),l&&(n.__m&&n.__m(r,e),l=false),e=null;}if(j){if(a="template"==j&&t.content||t,e="textarea"==j&&null!=C.defaultValue?null:e&&d$1.call(a.childNodes),!l&&e)for(x={},s=0;s<t.attributes.length;s++)x[(k=t.attributes[s]).name]=k.value;for(s in x)k=x[s],"dangerouslySetInnerHTML"==s?v=k:"children"==s||s in C||"value"==s&&"defaultValue"in C||"checked"==s&&"defaultChecked"in C||T$1(t,s,null,k,f);for(s in M=1&i.__u,C)k=C[s],"children"==s?_=k:"dangerouslySetInnerHTML"==s?h=k:"value"==s?b=k:"checked"==s?m=k:l&&"function"!=typeof k||!(x[s]!==k||M&&null!=k)||T$1(t,s,k,x[s],f);h?(l||v&&(h.__html==v.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),r.__k=[]):(v&&(t.textContent=""),("foreignObject"==j||"http://www.w3.org/1998/Math/MathML"==f&&y$1.test(j))&&(f="http://www.w3.org/1999/xhtml"),H$1(a,w$1(_)?_:[_],r,i,u,f,e,o,e?e[0]:i.__k&&S(i,0),l,c),e&&e.some(g$1)),l&&"textarea"!=j||(s="value","progress"==j&&null==b?t.removeAttribute(s):null==b||b===t[s]&&("progress"!=j||b)||T$1(t,s,b,x[s],f),s="checked",null!=m&&m!=t[s]&&T$1(t,s,m,x[s],f));}else x===C||l&&t.data==C||(t.data=C);return t}function F$1(t,r,i,u){try{"function"==typeof t?r?r.__x=t(r)||1:u&&(u=u.__c||u.__e)&&(r=u.__x)&&(u.__x=null,"function"==typeof r?r():t(null)):t.current=r;}catch(t){n.__e(t,i);}}function G$1(t,r,i){var u,f,e,o;if(n.unmount&&n.unmount(t),!(u=t.ref)||u.current&&u.current!=t.__e||F$1(u,null,r,t),u=t.__c){if(u.componentWillUnmount)try{u.componentWillUnmount();}catch(t){n.__e(t,r);}u.__P=u.__n=null;}if(u=t.__k)for(o=0;o<u.length;o++)u[o]&&G$1(u[o],r,"function"!=typeof t.type||i&&!t.props.__P);!i&&(u=t.__c)&&(u=u.__z)&&(f=z$2(u,e=[]))&&(u==t.__e&&e.some(g$1),g$1(f),g$1(u)),(u=t.__e)&&(i||g$1(u),u.__e&&(u.__e=null)),t.__e=t.__c=t.__=null;}function J$1(n,t,r){return this.constructor(n,r)}function K$1(t,r){var i,u,f,e;n.__&&n.__(t,r),9==r.nodeType&&(r=r.documentElement),u=(i=t&&32&t.__u)?null:r.__k,r.__k=m$1(M,{children:[t]}),f=[],e=[],V(r,r.__k,u||p$1,p$1,r.namespaceURI,u?null:r.firstChild?d$1.call(r.childNodes):null,f,u?u.__e:r.firstChild,i,e),D$1(f,r.__k,e),r.__k.props.children=null;}n={__e:function(n,t,r,i){for(var u,e,o;t=t.__;)if((u=t.__c)&&!(1&u.__g)){u.__g|=4;try{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)}catch(t){n=t;}}throw f$2=0,n}},t$1=0,x$1.prototype.setState=function(n,t){var r=this.__s;r&&r!=this.state||(r=this.__s=_$1({},this.state)),"function"==typeof n&&(n=n(_$1({},r),this.props)),n&&(_$1(r,n),this.__v&&(t&&this.__k.push(t),j(this)));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),j(this));},x$1.prototype.render=M,i$1=[],f$2=0,e$1=function(n,t){return n.__v.__b-t.__v.__b},o$2=Symbol(),l$1=/(PointerCapture)$|Capture$/i,c$1=0,a$2={};
|
|
2
2
|
|
|
3
|
-
var t,r,u
|
|
3
|
+
var t,r,u,i,o$1=Object.is,f$1=0,c=[],e=[],a$1=n,v=a$1.__b,l=a$1.__r,m=a$1.diffed,h=a$1.__c,s=a$1.unmount,p=a$1.__;function y(n,t){a$1.__h&&a$1.__h(r,n,f$1||t),f$1=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return f$1=1,_(G,n)}function _(n,u,i){var f=y(t++,2);if(f.t=n,!f.__c&&(f.__=[i?i(u):G(void 0,u),function(n){var t=f.__N?f.__N[0]:f.__[0],r=f.t(t,n);o$1(t,r)||(f.__N=[r,f.__[1]],f.__c.setState({}));}],f.__c=r,!r.__f)){r.__f=true;var c=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){var u=this.__H;if(!u)return true;var i=false,f=this.props!=n;if(u.__.some(function(n){n.__N&&(i=true,o$1(n.__[0],n.__N[0])||(f=true));}),c){var e=c.call(this,n,t,r);return i?e||f:e}return !i||f};}return f.__}function A(n,u){var i=y(t++,3);!a$1.__s&&E(i.__H,u)&&(i.__P=true,i.__=n,i.u=u,r.__H.__h.push(i));}function F(n,u){var i=y(t++,4);!a$1.__s&&E(i.__H,u)&&(i.__P=false,i.__=n,i.u=u,r.__h.push(i));}function g(){var n;do{for(;n=e.shift();)try{C(n);}catch(t){a$1.__e(t,{__:(n=n.__P)&&n.__v});}for(;n=c.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(C),t.__h.some(D),t.__h=[];}catch(r){t.__h=[],a$1.__e(r,n.__v);}}}while(e.length)}a$1.__b=function(n){r=null,v&&v(n);},a$1.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t);},a$1.__r=function(n){l&&l(n),t=0;var i=(r=n.__c).__H;i&&(u==r?r.__h=[]:(i.__h.some(C),i.__h.some(D),t=0),i.__h=[],i.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})),u=r;},a$1.diffed=function(n){m&&m(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&B$1(c.push(t)),t.__H.__.some(function(n){n.u&&(n.__H=n.u);})),u=r=null;},a$1.__c=function(n,t){t.some(function(n){try{n.__h.some(C),n.__h=n.__h.filter(function(n){return !n.__||D(n)});}catch(t){n.__h=[function(){throw t}];}}),h&&h(n,t);},a$1.unmount=function(n){s&&s(n);var t,r,u=n.__c;u&&u.__H&&(u.__H.__.some(function(u){try{if(u.__P&&u.__c){if(void 0===r){for(r=n.__;r&&(!r.__c||!r.__c.__P);)r=r.__;r=r&&r.__c;}u.__P=r,B$1(e.push(u));}else C(u);}catch(n){t=n;}}),u.__H=void 0,t&&a$1.__e(t,u.__v));};var k="function"==typeof requestAnimationFrame;function z$1(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r));}function B$1(n){1!=n&&i==a$1.requestAnimationFrame||((i=a$1.requestAnimationFrame)||z$1)(g);}function C(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function D(n){var t=r;n.__c=n.__(),r=t;}function E(n,t){return !n||n.length!=t.length||t.some(function(t,r){return !o$1(t,n[r])})}function G(n,t){return "function"==typeof t?t(n):t}
|
|
4
4
|
|
|
5
|
-
var w=Object.assign;
|
|
5
|
+
var w=Object.assign;var x=/^(-|f[lo].*[^se]$|g.{5,}[^ps]$|z|o[pr]|(W.{5})?[lL]i.*(t|mp)$|an|(bo|s).{4}Im|sca|m.{6}[ds]|ta|c.*[st]$|wido|ini|asp|fill|st)/;var T,W,P=Symbol.for("react.element"),$=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(?!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,z=/[A-Z0-9]/g,H=typeof document<"u",Z=/* @__PURE__ */X(function(n$1,t,e){var r=n.__s||T?(e||t)():t(),i=d({t:{__:r,u:t}}),o=i[0].t,f=i[1];return F(function(){o.__=r,o.u=t,B(o)&&f({t:o});},[n$1,r,t]),A(function(){return B(o)&&f({t:o}),n$1(function(){B(o)&&f({t:o});})},[n$1]),r});function B(n){try{return !Object.is(n.__,n.u())}catch(n){return true}}var Y=function(n){return /fil|che|rad/.test(n)};x$1.prototype.isReactComponent=true,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(x$1.prototype,n,{configurable:true,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:true,writable:true,value:t});}});});var J=n.event;n.event=function(n){return J&&(n=J(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var K={configurable:true,get:function(){return this.class}},Q=n.vnode;function X(n$1){if(!W){W=true;var t=n.__r;n.__r=function(n){t&&t(n),32&n.__u&&(T=n),n.__c;};var e=n.diffed;n.diffed=function(n){e&&e(n),T==n&&(T=null);};}return n$1}n.vnode=function(t){if("string"==typeof t.type)!function(t){var e=t.props,r=t.type,u={},i=-1==r.indexOf("-");for(var o in e){var f=e[o];if(!("value"==o&&"defaultValue"in e&&null==f||H&&"children"==o&&"noscript"==r||"class"==o||"className"==o)){if("style"==o&&f&&f.constructor==Object){var a=void 0;for(var c in f)"number"!=typeof f[c]||x.test(c)||(a||(a=f=w({},f)),f[c]+="px");}else if("defaultValue"==o&&"value"in e&&null==e.value)o="value";else if("download"==o&&true===f)f="";else if("translate"==o&&"no"===f)f=false;else if("o"==o[0]&&"n"==o[1]){var l=o.toLowerCase();"ondoubleclick"==l?o="ondblclick":"onchange"!=l||"input"!=r&&"textarea"!=r||Y(e.type)?"onfocus"==l?o="onfocusin":"onblur"==l&&(o="onfocusout"):l=o="oninput","oninput"==l&&u[o=l]&&(o="oninputCapture");}else i&&$.test(o)?o=o.replace(z,"-$&").toLowerCase():null===f&&(f=void 0);u[o]=f;}}"select"==r&&(u.multiple&&Array.isArray(u.value)&&(u.value=A$1(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),null!=u.defaultValue&&(u.value=A$1(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;}))),e.class&&!e.className?(u.class=e.class,Object.defineProperty(u,"className",K)):e.className&&(u.class=u.className=e.className),t.props=u;}(t);else if("function"==typeof t.type&&("ref"in t.props&&"prototype"in t.type&&t.type.prototype.render&&(t.ref=t.props.ref,delete t.props.ref),t.type.defaultProps)){var e=w({},t.props);for(var r in t.type.defaultProps) void 0===e[r]&&(e[r]=t.type.defaultProps[r]);t.props=e;}t.ref&&!("ref"in t.props)&&Object.defineProperty(t.props,"ref",{value:t.ref,configurable:true,writable:true}),t.$$typeof=P,Q&&Q(t);};
|
|
6
6
|
|
|
7
|
-
var o=0;function
|
|
7
|
+
var f=Symbol.for("pv"),o=0;function a(t,e,n$1,u,a,i){e||(e={});var c,l,p=e;if("ref"in p&&"function"!=typeof t)for(l in p={},e)"ref"==l?c=e[l]:p[l]=e[l];var s={type:t,props:p,key:n$1,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:f,__v:--o,__i:-1,__u:0};return n.vnode&&n.vnode(s),s}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { K$1 as K, M, Z, a };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createFileSystemFetch, startServer, serverPluginCORS, jsenvAccessControlAllowedHeaders, serverPluginErrorHandler } from "@jsenv/server";
|
|
2
2
|
import { parseHtml, injectJsenvScript, stringifyHtmlAst } from "@jsenv/ast";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
|
-
import { createLogger, Abort,
|
|
4
|
+
import { createLogger, Abort, createTaskLog, raceProcessTeardownEvents } from "./jsenv_core_packages.js";
|
|
5
5
|
import "./jsenv_core_node_modules.js";
|
|
6
6
|
import "node:process";
|
|
7
7
|
import "node:os";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "41.5.
|
|
3
|
+
"version": "41.5.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tool to develop, test and build js projects",
|
|
6
6
|
"repository": {
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"test:snapshot_clear": "npx @jsenv/filesystem clear **/tests/**/side_effects/"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@jsenv/ast": "6.10.
|
|
78
|
-
"@jsenv/js-module-fallback": "1.6.
|
|
79
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
80
|
-
"@jsenv/plugin-minification": "1.7.
|
|
81
|
-
"@jsenv/plugin-supervisor": "1.8.
|
|
82
|
-
"@jsenv/plugin-transpilation": "1.7.
|
|
77
|
+
"@jsenv/ast": "6.10.16",
|
|
78
|
+
"@jsenv/js-module-fallback": "1.6.20",
|
|
79
|
+
"@jsenv/plugin-bundling": "2.10.38",
|
|
80
|
+
"@jsenv/plugin-minification": "1.7.33",
|
|
81
|
+
"@jsenv/plugin-supervisor": "1.8.35",
|
|
82
|
+
"@jsenv/plugin-transpilation": "1.7.20",
|
|
83
83
|
"@jsenv/server": "17.7.2",
|
|
84
|
-
"@jsenv/sourcemap": "1.4.
|
|
84
|
+
"@jsenv/sourcemap": "1.4.19",
|
|
85
85
|
"react-table": "7.8.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
@@ -114,20 +114,20 @@
|
|
|
114
114
|
"@jsenv/url-meta": "workspace:*",
|
|
115
115
|
"@jsenv/urls": "workspace:*",
|
|
116
116
|
"@jsenv/utils": "workspace:*",
|
|
117
|
-
"@playwright/browser-chromium": "1.
|
|
118
|
-
"@playwright/browser-firefox": "1.
|
|
119
|
-
"@playwright/browser-webkit": "1.
|
|
117
|
+
"@playwright/browser-chromium": "1.64.1",
|
|
118
|
+
"@playwright/browser-firefox": "1.64.1",
|
|
119
|
+
"@playwright/browser-webkit": "1.64.1",
|
|
120
120
|
"eslint": "10.10.0",
|
|
121
121
|
"eslint-plugin-import-x": "4.17.1",
|
|
122
122
|
"eslint-plugin-react": "7.37.5",
|
|
123
123
|
"eslint-plugin-regexp": "3.3.0",
|
|
124
|
-
"globals": "17.
|
|
125
|
-
"open": "11.0.
|
|
126
|
-
"playwright": "1.
|
|
127
|
-
"preact": "11.
|
|
128
|
-
"prettier": "3.9.
|
|
124
|
+
"globals": "17.13.0",
|
|
125
|
+
"open": "11.0.4",
|
|
126
|
+
"playwright": "1.64.1",
|
|
127
|
+
"preact": "11.1.1",
|
|
128
|
+
"prettier": "3.9.10",
|
|
129
129
|
"prettier-plugin-css-order": "git+https://github.com/dmail-fork/prettier-plugin-css-order.git",
|
|
130
|
-
"prettier-plugin-embed": "0.
|
|
130
|
+
"prettier-plugin-embed": "0.8.1",
|
|
131
131
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
132
132
|
"prettier-plugin-pkg": "0.22.1",
|
|
133
133
|
"prettier-plugin-sql": "0.20.0",
|