@jsenv/cli 0.2.55 → 0.3.1
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/package.json +3 -3
- package/template-node-package/.vscode/launch.json +47 -0
- package/template-node-package/package.json +4 -4
- package/template-web/.jsenv/craft/main.js +1 -1
- package/template-web/.jsenv/shape/index.html +9 -2
- package/template-web/.jsenv/shape/main.js +1 -1
- package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
- package/template-web/.vscode/launch.json +47 -0
- package/template-web/dist/index.html +9 -2
- package/template-web/dist/js/main.nomodule.js +1 -1
- package/template-web/package.json +7 -7
- package/template-web/src/main.js +1 -1
- package/template-web-components/.jsenv/craft/app/app_custom_element.js +1 -1
- package/template-web-components/.jsenv/shape/index.html +9 -2
- package/template-web-components/.jsenv/shape/main.js +1 -1
- package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
- package/template-web-components/.vscode/launch.json +47 -0
- package/template-web-components/dist/index.html +9 -2
- package/template-web-components/dist/js/main.nomodule.js +1 -1
- package/template-web-components/package.json +7 -7
- package/template-web-components/src/app/app_custom_element.js +1 -1
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +151 -154
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +27 -23
- package/template-web-preact/.jsenv/craft/app/app.jsx +1 -1
- package/template-web-preact/.jsenv/craft/index.html +2 -2
- package/template-web-preact/.jsenv/shape/index.html +11 -3
- package/template-web-preact/.jsenv/shape/main.jsx +1 -1
- package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-preact/.jsenv/shape/vendors.js +1 -1
- package/template-web-preact/.jsenv/shape/vendors.nomodule7js_module_fallback=.js +1 -1
- package/template-web-preact/.vscode/launch.json +47 -0
- package/template-web-preact/dist/index.html +10 -2
- package/template-web-preact/dist/js/main.nomodule.js +1 -1
- package/template-web-preact/dist/js/vendors.nomodule.js +1 -1
- package/template-web-preact/package.json +9 -9
- package/template-web-preact/src/app/app.jsx +1 -1
- package/template-web-react/.jsenv/craft/app/app.jsx +1 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/.jsenv/craft/index.html +2 -2
- package/template-web-react/.jsenv/shape/index.html +11 -3
- package/template-web-react/.jsenv/shape/main.jsx +1 -1
- package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-react/.vscode/launch.json +47 -0
- package/template-web-react/dist/index.html +10 -2
- package/template-web-react/dist/js/main.nomodule.js +1 -1
- package/template-web-react/package.json +8 -8
- package/template-web-react/src/app/app.jsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=x.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&
|
|
1
|
+
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=x.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;T(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(x,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);m.get(this).observe(e,f),S.get(this).length>0&&W(this),L(e,(function(e){R(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=x,k(Document),"ShadowRoot"in window){k(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function T(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function x(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new j(e),h.set(e,t)),t}function k(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||L(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},o=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(r=new CSSStyleSheet).replaceSync(o.text),c=0,i=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),n=class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(i,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),n=e.querySelector("#counter_output");n.innerHTML=c,t.onclick=()=>{c++,n.innerHTML=c}})(e)}},customElements.define("my-app",n),document.querySelector("#root").innerHTML="<my-app></my-app>"}}}));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "npm run dev -- --open",
|
|
8
|
-
"dev": "node ./scripts/dev.mjs",
|
|
8
|
+
"dev": "node --watch ./scripts/dev.mjs",
|
|
9
9
|
"test": "node ./scripts/test.mjs",
|
|
10
10
|
"test:coverage": "npm run test -- --coverage",
|
|
11
11
|
"build": "node ./scripts/build.mjs",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
19
19
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
20
|
-
"@jsenv/assert": "4.4.
|
|
21
|
-
"@jsenv/core": "
|
|
22
|
-
"@jsenv/plugin-bundling": "2.
|
|
23
|
-
"@jsenv/plugin-minification": "1.
|
|
24
|
-
"@jsenv/eslint-config-relax": "1.
|
|
25
|
-
"@jsenv/test": "3.
|
|
20
|
+
"@jsenv/assert": "4.4.3",
|
|
21
|
+
"@jsenv/core": "40.0.0",
|
|
22
|
+
"@jsenv/plugin-bundling": "2.8.0",
|
|
23
|
+
"@jsenv/plugin-minification": "1.6.0",
|
|
24
|
+
"@jsenv/eslint-config-relax": "1.4.0",
|
|
25
|
+
"@jsenv/test": "3.6.0",
|
|
26
26
|
"eslint": "9.18.0",
|
|
27
27
|
"open": "10.1.0",
|
|
28
28
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -21,7 +21,7 @@ class AppCustomElement extends HTMLElement {
|
|
|
21
21
|
</p>
|
|
22
22
|
</p>
|
|
23
23
|
<p>
|
|
24
|
-
Edit <a href="javascript:window.fetch('/
|
|
24
|
+
Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.
|
|
25
25
|
</p>
|
|
26
26
|
<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`;
|
|
27
27
|
initCounter(shadow);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var n,
|
|
2
2
|
l,
|
|
3
|
-
u,
|
|
4
3
|
t,
|
|
4
|
+
u,
|
|
5
5
|
i,
|
|
6
6
|
r,
|
|
7
7
|
o,
|
|
@@ -16,25 +16,25 @@ var n,
|
|
|
16
16
|
y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
|
|
17
17
|
d = Array.isArray;
|
|
18
18
|
function w(n, l) {
|
|
19
|
-
for (var
|
|
19
|
+
for (var t in l) n[t] = l[t];
|
|
20
20
|
return n;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function g(n) {
|
|
23
23
|
n && n.parentNode && n.parentNode.removeChild(n);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function _(l, t, u) {
|
|
26
26
|
var i,
|
|
27
27
|
r,
|
|
28
28
|
o,
|
|
29
29
|
e = {};
|
|
30
|
-
for (o in
|
|
31
|
-
if (arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) :
|
|
30
|
+
for (o in t) "key" == o ? i = t[o] : "ref" == o ? r = t[o] : e[o] = t[o];
|
|
31
|
+
if (arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) : u), "function" == typeof l && null != l.defaultProps) for (o in l.defaultProps) void 0 === e[o] && (e[o] = l.defaultProps[o]);
|
|
32
32
|
return m(l, e, i, r, null);
|
|
33
33
|
}
|
|
34
|
-
function m(n,
|
|
34
|
+
function m(n, u, i, r, o) {
|
|
35
35
|
var e = {
|
|
36
36
|
type: n,
|
|
37
|
-
props:
|
|
37
|
+
props: u,
|
|
38
38
|
key: i,
|
|
39
39
|
ref: r,
|
|
40
40
|
__k: null,
|
|
@@ -43,7 +43,7 @@ function m(n, t, i, r, o) {
|
|
|
43
43
|
__e: null,
|
|
44
44
|
__c: null,
|
|
45
45
|
constructor: void 0,
|
|
46
|
-
__v: null == o ? ++
|
|
46
|
+
__v: null == o ? ++t : o,
|
|
47
47
|
__i: -1,
|
|
48
48
|
__u: 0
|
|
49
49
|
};
|
|
@@ -60,63 +60,62 @@ function k(n) {
|
|
|
60
60
|
function x(n, l) {
|
|
61
61
|
this.props = n, this.context = l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
if (null == l) return n.__ ?
|
|
65
|
-
for (var
|
|
66
|
-
return "function" == typeof n.type ?
|
|
63
|
+
function S(n, l) {
|
|
64
|
+
if (null == l) return n.__ ? S(n.__, n.__i + 1) : null;
|
|
65
|
+
for (var t; l < n.__k.length; l++) if (null != (t = n.__k[l]) && null != t.__e) return t.__e;
|
|
66
|
+
return "function" == typeof n.type ? S(n) : null;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
var l,
|
|
68
|
+
function C(n) {
|
|
69
|
+
var l, t;
|
|
70
70
|
if (null != (n = n.__) && null != n.__c) {
|
|
71
|
-
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (
|
|
72
|
-
n.__e = n.__c.base =
|
|
71
|
+
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (t = n.__k[l]) && null != t.__e) {
|
|
72
|
+
n.__e = n.__c.base = t.__e;
|
|
73
73
|
break;
|
|
74
74
|
}
|
|
75
|
-
return
|
|
75
|
+
return C(n);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function M(n) {
|
|
79
|
-
(!n.__d && (n.__d = !0) && i.push(n) &&
|
|
79
|
+
(!n.__d && (n.__d = !0) && i.push(n) && !$.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)($);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
var n, u, t, r, o, f, c,
|
|
83
|
-
|
|
84
|
-
P.__r = 0;
|
|
81
|
+
function $() {
|
|
82
|
+
for (var n, t, u, r, o, f, c, s = 1; i.length;) i.length > s && i.sort(e), n = i.shift(), s = i.length, n.__d && (u = void 0, o = (r = (t = n).__v).__e, f = [], c = [], t.__P && ((u = w({}, r)).__v = r.__v + 1, l.vnode && l.vnode(u), O(t.__P, u, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, f, null == o ? S(r) : o, !!(32 & r.__u), c), u.__v = r.__v, u.__.__k[u.__i] = u, z(f, u, c), u.__e != o && C(u)));
|
|
83
|
+
$.__r = 0;
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function I(n, l, t, u, i, r, o, e, f, c, s) {
|
|
87
86
|
var a,
|
|
88
87
|
h,
|
|
89
88
|
y,
|
|
90
89
|
d,
|
|
91
90
|
w,
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
g,
|
|
92
|
+
_ = u && u.__k || v,
|
|
94
93
|
m = l.length;
|
|
95
|
-
for (f =
|
|
96
|
-
return
|
|
94
|
+
for (f = P(t, l, _, f, m), a = 0; a < m; a++) null != (y = t.__k[a]) && (h = -1 === y.__i ? p : _[y.__i] || p, y.__i = a, g = O(n, y, h, i, r, o, e, f, c, s), d = y.__e, y.ref && h.ref != y.ref && (h.ref && q(h.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 4 & y.__u || h.__k === y.__k ? f = A(y, f, n) : "function" == typeof y.type && void 0 !== g ? f = g : d && (f = d.nextSibling), y.__u &= -7);
|
|
95
|
+
return t.__e = w, f;
|
|
97
96
|
}
|
|
98
|
-
function
|
|
97
|
+
function P(n, l, t, u, i) {
|
|
99
98
|
var r,
|
|
100
99
|
o,
|
|
101
100
|
e,
|
|
102
101
|
f,
|
|
103
102
|
c,
|
|
104
|
-
s =
|
|
103
|
+
s = t.length,
|
|
105
104
|
a = s,
|
|
106
105
|
h = 0;
|
|
107
106
|
for (n.__k = new Array(i), r = 0; r < i; r++) null != (o = l[r]) && "boolean" != typeof o && "function" != typeof o ? (f = r + h, (o = n.__k[r] = "string" == typeof o || "number" == typeof o || "bigint" == typeof o || o.constructor == String ? m(null, o, null, null, null) : d(o) ? m(k, {
|
|
108
107
|
children: o
|
|
109
|
-
}, null, null, null) : void 0 === o.constructor && o.__b > 0 ? m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 !== (c = o.__i = L(o,
|
|
110
|
-
if (a) for (r = 0; r < s; r++) null != (e =
|
|
111
|
-
return
|
|
108
|
+
}, null, null, null) : void 0 === o.constructor && o.__b > 0 ? m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 !== (c = o.__i = L(o, t, f, a)) && (a--, (e = t[c]) && (e.__u |= 2)), null == e || null === e.__v ? (-1 == c && (i > s ? h-- : i < s && h++), "function" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;
|
|
109
|
+
if (a) for (r = 0; r < s; r++) null != (e = t[r]) && 0 == (2 & e.__u) && (e.__e == u && (u = S(e)), B(e, e));
|
|
110
|
+
return u;
|
|
112
111
|
}
|
|
113
|
-
function A(n, l,
|
|
114
|
-
var
|
|
112
|
+
function A(n, l, t) {
|
|
113
|
+
var u, i;
|
|
115
114
|
if ("function" == typeof n.type) {
|
|
116
|
-
for (
|
|
115
|
+
for (u = n.__k, i = 0; u && i < u.length; i++) u[i] && (u[i].__ = n, l = A(u[i], l, t));
|
|
117
116
|
return l;
|
|
118
117
|
}
|
|
119
|
-
n.__e != l && (l && n.type && !
|
|
118
|
+
n.__e != l && (l && n.type && !t.contains(l) && (l = S(n)), t.insertBefore(n.__e, l || null), l = n.__e);
|
|
120
119
|
do {
|
|
121
120
|
l = l && l.nextSibling;
|
|
122
121
|
} while (null != l && 8 == l.nodeType);
|
|
@@ -127,14 +126,14 @@ function H(n, l) {
|
|
|
127
126
|
H(n, l);
|
|
128
127
|
}) : l.push(n)), l;
|
|
129
128
|
}
|
|
130
|
-
function L(n, l,
|
|
129
|
+
function L(n, l, t, u) {
|
|
131
130
|
var i,
|
|
132
131
|
r,
|
|
133
132
|
o = n.key,
|
|
134
133
|
e = n.type,
|
|
135
|
-
f = l[
|
|
136
|
-
if (null === f || f && o == f.key && e === f.type && 0 == (2 & f.__u)) return
|
|
137
|
-
if (
|
|
134
|
+
f = l[t];
|
|
135
|
+
if (null === f && null == n.key || f && o == f.key && e === f.type && 0 == (2 & f.__u)) return t;
|
|
136
|
+
if (u > (null != f && 0 == (2 & f.__u) ? 1 : 0)) for (i = t - 1, r = t + 1; i >= 0 || r < l.length;) {
|
|
138
137
|
if (i >= 0) {
|
|
139
138
|
if ((f = l[i]) && 0 == (2 & f.__u) && o == f.key && e === f.type) return i;
|
|
140
139
|
i--;
|
|
@@ -146,215 +145,213 @@ function L(n, l, u, t) {
|
|
|
146
145
|
}
|
|
147
146
|
return -1;
|
|
148
147
|
}
|
|
149
|
-
function T(n, l,
|
|
150
|
-
"-" == l[0] ? n.setProperty(l, null ==
|
|
148
|
+
function T(n, l, t) {
|
|
149
|
+
"-" == l[0] ? n.setProperty(l, null == t ? "" : t) : n[l] = null == t ? "" : "number" != typeof t || y.test(l) ? t : t + "px";
|
|
151
150
|
}
|
|
152
|
-
function
|
|
151
|
+
function j(n, l, t, u, i) {
|
|
153
152
|
var r;
|
|
154
153
|
n: if ("style" == l) {
|
|
155
|
-
if ("string" == typeof
|
|
156
|
-
if ("string" == typeof
|
|
157
|
-
if (
|
|
154
|
+
if ("string" == typeof t) n.style.cssText = t;else {
|
|
155
|
+
if ("string" == typeof u && (n.style.cssText = u = ""), u) for (l in u) t && l in t || T(n.style, l, "");
|
|
156
|
+
if (t) for (l in t) u && t[l] === u[l] || T(n.style, l, t[l]);
|
|
158
157
|
}
|
|
159
|
-
} else if ("o" == l[0] && "n" == l[1]) r = l != (l = l.replace(f, "$1")), l = l.toLowerCase() in n || "onFocusOut" == l || "onFocusIn" == l ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] =
|
|
158
|
+
} else if ("o" == l[0] && "n" == l[1]) r = l != (l = l.replace(f, "$1")), l = l.toLowerCase() in n || "onFocusOut" == l || "onFocusIn" == l ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = t, t ? u ? t.t = u.t : (t.t = c, n.addEventListener(l, r ? a : s, r)) : n.removeEventListener(l, r ? a : s, r);else {
|
|
160
159
|
if ("http://www.w3.org/2000/svg" == i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" != l && "height" != l && "href" != l && "list" != l && "form" != l && "tabIndex" != l && "download" != l && "rowSpan" != l && "colSpan" != l && "role" != l && "popover" != l && l in n) try {
|
|
161
|
-
n[l] = null ==
|
|
160
|
+
n[l] = null == t ? "" : t;
|
|
162
161
|
break n;
|
|
163
162
|
} catch (n) {}
|
|
164
|
-
"function" == typeof
|
|
163
|
+
"function" == typeof t || (null == t || !1 === t && "-" != l[4] ? n.removeAttribute(l) : n.setAttribute(l, "popover" == l && 1 == t ? "" : t));
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
|
-
function
|
|
168
|
-
return function (
|
|
166
|
+
function F(n) {
|
|
167
|
+
return function (t) {
|
|
169
168
|
if (this.l) {
|
|
170
|
-
var
|
|
171
|
-
if (null == u
|
|
172
|
-
return
|
|
169
|
+
var u = this.l[t.type + n];
|
|
170
|
+
if (null == t.u) t.u = c++;else if (t.u < u.t) return;
|
|
171
|
+
return u(l.event ? l.event(t) : t);
|
|
173
172
|
}
|
|
174
173
|
};
|
|
175
174
|
}
|
|
176
|
-
function
|
|
175
|
+
function O(n, t, u, i, r, o, e, f, c, s) {
|
|
177
176
|
var a,
|
|
178
177
|
h,
|
|
179
178
|
p,
|
|
180
179
|
v,
|
|
181
180
|
y,
|
|
182
|
-
|
|
181
|
+
_,
|
|
183
182
|
m,
|
|
184
183
|
b,
|
|
185
|
-
C,
|
|
186
184
|
S,
|
|
185
|
+
C,
|
|
187
186
|
M,
|
|
187
|
+
$,
|
|
188
188
|
P,
|
|
189
|
-
I,
|
|
190
189
|
A,
|
|
191
190
|
H,
|
|
192
191
|
L,
|
|
193
192
|
T,
|
|
194
|
-
|
|
195
|
-
if (void 0 !==
|
|
196
|
-
128 &
|
|
197
|
-
n: if ("function" == typeof
|
|
198
|
-
if (b =
|
|
199
|
-
if (
|
|
200
|
-
for (
|
|
201
|
-
n && (n.__ =
|
|
202
|
-
}),
|
|
193
|
+
j = t.type;
|
|
194
|
+
if (void 0 !== t.constructor) return null;
|
|
195
|
+
128 & u.__u && (c = !!(32 & u.__u), o = [f = t.__e = u.__e]), (a = l.__b) && a(t);
|
|
196
|
+
n: if ("function" == typeof j) try {
|
|
197
|
+
if (b = t.props, S = "prototype" in j && j.prototype.render, C = (a = j.contextType) && i[a.__c], M = a ? C ? C.props.value : a.__ : i, u.__c ? m = (h = t.__c = u.__c).__ = h.__E : (S ? t.__c = h = new j(b, M) : (t.__c = h = new x(b, M), h.constructor = j, h.render = D), C && C.sub(h), h.props = b, h.state || (h.state = {}), h.context = M, h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), S && null == h.__s && (h.__s = h.state), S && null != j.getDerivedStateFromProps && (h.__s == h.state && (h.__s = w({}, h.__s)), w(h.__s, j.getDerivedStateFromProps(b, h.__s))), v = h.props, y = h.state, h.__v = t, p) S && null == j.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), S && null != h.componentDidMount && h.__h.push(h.componentDidMount);else {
|
|
198
|
+
if (S && null == j.getDerivedStateFromProps && b !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(b, M), !h.__e && (null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(b, h.__s, M) || t.__v == u.__v)) {
|
|
199
|
+
for (t.__v != u.__v && (h.props = b, h.state = h.__s, h.__d = !1), t.__e = u.__e, t.__k = u.__k, t.__k.some(function (n) {
|
|
200
|
+
n && (n.__ = t);
|
|
201
|
+
}), $ = 0; $ < h._sb.length; $++) h.__h.push(h._sb[$]);
|
|
203
202
|
h._sb = [], h.__h.length && e.push(h);
|
|
204
203
|
break n;
|
|
205
204
|
}
|
|
206
|
-
null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M),
|
|
207
|
-
h.componentDidUpdate(v, y,
|
|
205
|
+
null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M), S && null != h.componentDidUpdate && h.__h.push(function () {
|
|
206
|
+
h.componentDidUpdate(v, y, _);
|
|
208
207
|
});
|
|
209
208
|
}
|
|
210
|
-
if (h.context = M, h.props = b, h.__P = n, h.__e = !1,
|
|
211
|
-
for (h.state = h.__s, h.__d = !1,
|
|
209
|
+
if (h.context = M, h.props = b, h.__P = n, h.__e = !1, P = l.__r, A = 0, S) {
|
|
210
|
+
for (h.state = h.__s, h.__d = !1, P && P(t), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++) h.__h.push(h._sb[H]);
|
|
212
211
|
h._sb = [];
|
|
213
212
|
} else do {
|
|
214
|
-
h.__d = !1,
|
|
213
|
+
h.__d = !1, P && P(t), a = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
215
214
|
} while (h.__d && ++A < 25);
|
|
216
|
-
h.state = h.__s, null != h.getChildContext && (i = w(w({}, i), h.getChildContext())),
|
|
215
|
+
h.state = h.__s, null != h.getChildContext && (i = w(w({}, i), h.getChildContext())), S && !p && null != h.getSnapshotBeforeUpdate && (_ = h.getSnapshotBeforeUpdate(v, y)), L = a, null != a && a.type === k && null == a.key && (L = N(a.props.children)), f = I(n, d(L) ? L : [L], t, u, i, r, o, e, f, c, s), h.base = t.__e, t.__u &= -161, h.__h.length && e.push(h), m && (h.__E = h.__ = null);
|
|
217
216
|
} catch (n) {
|
|
218
|
-
if (
|
|
217
|
+
if (t.__v = null, c || null != o) {
|
|
219
218
|
if (n.then) {
|
|
220
|
-
for (
|
|
221
|
-
o[o.indexOf(f)] = null,
|
|
222
|
-
} else for (T = o.length; T--;)
|
|
223
|
-
} else
|
|
224
|
-
l.__e(n,
|
|
225
|
-
} else null == o &&
|
|
226
|
-
return (a = l.diffed) && a(
|
|
219
|
+
for (t.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;) f = f.nextSibling;
|
|
220
|
+
o[o.indexOf(f)] = null, t.__e = f;
|
|
221
|
+
} else for (T = o.length; T--;) g(o[T]);
|
|
222
|
+
} else t.__e = u.__e, t.__k = u.__k;
|
|
223
|
+
l.__e(n, t, u);
|
|
224
|
+
} else null == o && t.__v == u.__v ? (t.__k = u.__k, t.__e = u.__e) : f = t.__e = V(u.__e, t, u, i, r, o, e, c, s);
|
|
225
|
+
return (a = l.diffed) && a(t), 128 & t.__u ? void 0 : f;
|
|
227
226
|
}
|
|
228
|
-
function z(n,
|
|
229
|
-
for (var i = 0; i <
|
|
230
|
-
l.__c && l.__c(
|
|
227
|
+
function z(n, t, u) {
|
|
228
|
+
for (var i = 0; i < u.length; i++) q(u[i], u[++i], u[++i]);
|
|
229
|
+
l.__c && l.__c(t, n), n.some(function (t) {
|
|
231
230
|
try {
|
|
232
|
-
n =
|
|
233
|
-
n.call(
|
|
231
|
+
n = t.__h, t.__h = [], n.some(function (n) {
|
|
232
|
+
n.call(t);
|
|
234
233
|
});
|
|
235
234
|
} catch (n) {
|
|
236
|
-
l.__e(n,
|
|
235
|
+
l.__e(n, t.__v);
|
|
237
236
|
}
|
|
238
237
|
});
|
|
239
238
|
}
|
|
240
|
-
function N(
|
|
239
|
+
function N(n) {
|
|
240
|
+
return "object" != typeof n || null == n ? n : d(n) ? n.map(N) : w({}, n);
|
|
241
|
+
}
|
|
242
|
+
function V(t, u, i, r, o, e, f, c, s) {
|
|
241
243
|
var a,
|
|
242
244
|
h,
|
|
243
245
|
v,
|
|
244
246
|
y,
|
|
245
247
|
w,
|
|
246
|
-
|
|
248
|
+
_,
|
|
247
249
|
m,
|
|
248
250
|
b = i.props,
|
|
249
|
-
k =
|
|
250
|
-
x =
|
|
251
|
+
k = u.props,
|
|
252
|
+
x = u.type;
|
|
251
253
|
if ("svg" == x ? o = "http://www.w3.org/2000/svg" : "math" == x ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), null != e) for (a = 0; a < e.length; a++) if ((w = e[a]) && "setAttribute" in w == !!x && (x ? w.localName == x : 3 == w.nodeType)) {
|
|
252
|
-
|
|
254
|
+
t = w, e[a] = null;
|
|
253
255
|
break;
|
|
254
256
|
}
|
|
255
|
-
if (null ==
|
|
257
|
+
if (null == t) {
|
|
256
258
|
if (null == x) return document.createTextNode(k);
|
|
257
|
-
|
|
259
|
+
t = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(u, e), c = !1), e = null;
|
|
258
260
|
}
|
|
259
|
-
if (null === x) b === k || c &&
|
|
260
|
-
if (e = e && n.call(
|
|
261
|
+
if (null === x) b === k || c && t.data === k || (t.data = k);else {
|
|
262
|
+
if (e = e && n.call(t.childNodes), b = i.props || p, !c && null != e) for (b = {}, a = 0; a < t.attributes.length; a++) b[(w = t.attributes[a]).name] = w.value;
|
|
261
263
|
for (a in b) if (w = b[a], "children" == a) ;else if ("dangerouslySetInnerHTML" == a) v = w;else if (!(a in k)) {
|
|
262
264
|
if ("value" == a && "defaultValue" in k || "checked" == a && "defaultChecked" in k) continue;
|
|
263
|
-
|
|
265
|
+
j(t, a, null, w, o);
|
|
264
266
|
}
|
|
265
|
-
for (a in k) w = k[a], "children" == a ? y = w : "dangerouslySetInnerHTML" == a ? h = w : "value" == a ?
|
|
266
|
-
if (h) c || v && (h.__html === v.__html || h.__html ===
|
|
267
|
-
c || (a = "value", "progress" == x && null ==
|
|
267
|
+
for (a in k) w = k[a], "children" == a ? y = w : "dangerouslySetInnerHTML" == a ? h = w : "value" == a ? _ = w : "checked" == a ? m = w : c && "function" != typeof w || b[a] === w || j(t, a, w, b[a], o);
|
|
268
|
+
if (h) c || v && (h.__html === v.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), u.__k = [];else if (v && (t.innerHTML = ""), I("template" === u.type ? t.content : t, d(y) ? y : [y], u, i, r, "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && S(i, 0), c, s), null != e) for (a = e.length; a--;) g(e[a]);
|
|
269
|
+
c || (a = "value", "progress" == x && null == _ ? t.removeAttribute("value") : void 0 !== _ && (_ !== t[a] || "progress" == x && !_ || "option" == x && _ !== b[a]) && j(t, a, _, b[a], o), a = "checked", void 0 !== m && m !== t[a] && j(t, a, m, b[a], o));
|
|
268
270
|
}
|
|
269
|
-
return
|
|
271
|
+
return t;
|
|
270
272
|
}
|
|
271
|
-
function
|
|
273
|
+
function q(n, t, u) {
|
|
272
274
|
try {
|
|
273
275
|
if ("function" == typeof n) {
|
|
274
276
|
var i = "function" == typeof n.__u;
|
|
275
|
-
i && n.__u(), i && null ==
|
|
276
|
-
} else n.current =
|
|
277
|
+
i && n.__u(), i && null == t || (n.__u = n(t));
|
|
278
|
+
} else n.current = t;
|
|
277
279
|
} catch (n) {
|
|
278
|
-
l.__e(n,
|
|
280
|
+
l.__e(n, u);
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
|
-
function
|
|
283
|
+
function B(n, t, u) {
|
|
282
284
|
var i, r;
|
|
283
|
-
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e ||
|
|
285
|
+
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || q(i, null, t)), null != (i = n.__c)) {
|
|
284
286
|
if (i.componentWillUnmount) try {
|
|
285
287
|
i.componentWillUnmount();
|
|
286
288
|
} catch (n) {
|
|
287
|
-
l.__e(n,
|
|
289
|
+
l.__e(n, t);
|
|
288
290
|
}
|
|
289
291
|
i.base = i.__P = null;
|
|
290
292
|
}
|
|
291
|
-
if (i = n.__k) for (r = 0; r < i.length; r++) i[r] &&
|
|
292
|
-
|
|
293
|
+
if (i = n.__k) for (r = 0; r < i.length; r++) i[r] && B(i[r], t, u || "function" != typeof n.type);
|
|
294
|
+
u || g(n.__e), n.__c = n.__ = n.__e = void 0;
|
|
293
295
|
}
|
|
294
|
-
function
|
|
295
|
-
return this.constructor(n,
|
|
296
|
+
function D(n, l, t) {
|
|
297
|
+
return this.constructor(n, t);
|
|
296
298
|
}
|
|
297
|
-
function
|
|
299
|
+
function E(t, u, i) {
|
|
298
300
|
var r, o, e, f;
|
|
299
|
-
|
|
301
|
+
u == document && (u = document.documentElement), l.__ && l.__(t, u), o = (r = "function" == typeof i) ? null : i && i.__k || u.__k, e = [], f = [], O(u, t = (!r && i || u).__k = _(k, null, [t]), o || p, p, u.namespaceURI, !r && i ? [i] : o ? null : u.firstChild ? n.call(u.childNodes) : null, e, !r && i ? i : o ? o.__e : u.firstChild, r, f), z(e, t, f);
|
|
300
302
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
+
function G(n, l) {
|
|
304
|
+
E(n, l, G);
|
|
303
305
|
}
|
|
304
|
-
function
|
|
306
|
+
function J(l, t, u) {
|
|
305
307
|
var i,
|
|
306
308
|
r,
|
|
307
309
|
o,
|
|
308
310
|
e,
|
|
309
311
|
f = w({}, l.props);
|
|
310
|
-
for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps),
|
|
311
|
-
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) :
|
|
312
|
+
for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps), t) "key" == o ? i = t[o] : "ref" == o ? r = t[o] : f[o] = void 0 === t[o] && void 0 !== e ? e[o] : t[o];
|
|
313
|
+
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : u), m(l.type, f, i || l.key, r || l.ref, null);
|
|
312
314
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
};
|
|
336
|
-
}), n.children;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
return u.Provider.__ = u.Consumer.contextType = u;
|
|
315
|
+
function K(n) {
|
|
316
|
+
function l(n) {
|
|
317
|
+
var t, u;
|
|
318
|
+
return this.getChildContext || (t = new Set(), (u = {})[l.__c] = this, this.getChildContext = function () {
|
|
319
|
+
return u;
|
|
320
|
+
}, this.componentWillUnmount = function () {
|
|
321
|
+
t = null;
|
|
322
|
+
}, this.shouldComponentUpdate = function (n) {
|
|
323
|
+
this.props.value !== n.value && t.forEach(function (n) {
|
|
324
|
+
n.__e = !0, M(n);
|
|
325
|
+
});
|
|
326
|
+
}, this.sub = function (n) {
|
|
327
|
+
t.add(n);
|
|
328
|
+
var l = n.componentWillUnmount;
|
|
329
|
+
n.componentWillUnmount = function () {
|
|
330
|
+
t && t.delete(n), l && l.call(n);
|
|
331
|
+
};
|
|
332
|
+
}), n.children;
|
|
333
|
+
}
|
|
334
|
+
return l.__c = "__cC" + h++, l.__ = n, l.Provider = l.__l = (l.Consumer = function (n, l) {
|
|
335
|
+
return n.children(l);
|
|
336
|
+
}).contextType = l, l;
|
|
340
337
|
}
|
|
341
338
|
n = v.slice, l = {
|
|
342
|
-
__e: function (n, l,
|
|
339
|
+
__e: function (n, l, t, u) {
|
|
343
340
|
for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
|
|
344
|
-
if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n,
|
|
341
|
+
if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, u || {}), o = i.__d), o) return i.__E = i;
|
|
345
342
|
} catch (l) {
|
|
346
343
|
n = l;
|
|
347
344
|
}
|
|
348
345
|
throw n;
|
|
349
346
|
}
|
|
350
|
-
},
|
|
347
|
+
}, t = 0, u = function (n) {
|
|
351
348
|
return null != n && null == n.constructor;
|
|
352
349
|
}, x.prototype.setState = function (n, l) {
|
|
353
|
-
var
|
|
354
|
-
|
|
350
|
+
var t;
|
|
351
|
+
t = null != this.__s && this.__s !== this.state ? this.__s : this.__s = w({}, this.state), "function" == typeof n && (n = n(w({}, t), this.props)), n && w(t, n), null != n && this.__v && (l && this._sb.push(l), M(this));
|
|
355
352
|
}, x.prototype.forceUpdate = function (n) {
|
|
356
353
|
this.__v && (this.__e = !0, n && this.__h.push(n), M(this));
|
|
357
354
|
}, x.prototype.render = k, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function (n, l) {
|
|
358
355
|
return n.__v.__b - l.__v.__b;
|
|
359
|
-
},
|
|
360
|
-
export { x as Component, k as Fragment,
|
|
356
|
+
}, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(!1), a = F(!0), h = 0;
|
|
357
|
+
export { x as Component, k as Fragment, J as cloneElement, K as createContext, _ as createElement, b as createRef, _ as h, G as hydrate, u as isValidElement, l as options, E as render, H as toChildArray };
|