@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.
Files changed (50) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/.vscode/launch.json +47 -0
  3. package/template-node-package/package.json +4 -4
  4. package/template-web/.jsenv/craft/main.js +1 -1
  5. package/template-web/.jsenv/shape/index.html +9 -2
  6. package/template-web/.jsenv/shape/main.js +1 -1
  7. package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
  8. package/template-web/.vscode/launch.json +47 -0
  9. package/template-web/dist/index.html +9 -2
  10. package/template-web/dist/js/main.nomodule.js +1 -1
  11. package/template-web/package.json +7 -7
  12. package/template-web/src/main.js +1 -1
  13. package/template-web-components/.jsenv/craft/app/app_custom_element.js +1 -1
  14. package/template-web-components/.jsenv/shape/index.html +9 -2
  15. package/template-web-components/.jsenv/shape/main.js +1 -1
  16. package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
  17. package/template-web-components/.vscode/launch.json +47 -0
  18. package/template-web-components/dist/index.html +9 -2
  19. package/template-web-components/dist/js/main.nomodule.js +1 -1
  20. package/template-web-components/package.json +7 -7
  21. package/template-web-components/src/app/app_custom_element.js +1 -1
  22. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +151 -154
  23. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +27 -23
  24. package/template-web-preact/.jsenv/craft/app/app.jsx +1 -1
  25. package/template-web-preact/.jsenv/craft/index.html +2 -2
  26. package/template-web-preact/.jsenv/shape/index.html +11 -3
  27. package/template-web-preact/.jsenv/shape/main.jsx +1 -1
  28. package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
  29. package/template-web-preact/.jsenv/shape/vendors.js +1 -1
  30. package/template-web-preact/.jsenv/shape/vendors.nomodule7js_module_fallback=.js +1 -1
  31. package/template-web-preact/.vscode/launch.json +47 -0
  32. package/template-web-preact/dist/index.html +10 -2
  33. package/template-web-preact/dist/js/main.nomodule.js +1 -1
  34. package/template-web-preact/dist/js/vendors.nomodule.js +1 -1
  35. package/template-web-preact/package.json +9 -9
  36. package/template-web-preact/src/app/app.jsx +1 -1
  37. package/template-web-react/.jsenv/craft/app/app.jsx +1 -1
  38. 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
  39. 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
  40. 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
  41. package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
  42. package/template-web-react/.jsenv/craft/index.html +2 -2
  43. package/template-web-react/.jsenv/shape/index.html +11 -3
  44. package/template-web-react/.jsenv/shape/main.jsx +1 -1
  45. package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
  46. package/template-web-react/.vscode/launch.json +47 -0
  47. package/template-web-react/dist/index.html +10 -2
  48. package/template-web-react/dist/js/main.nomodule.js +1 -1
  49. package/template-web-react/package.json +8 -8
  50. package/template-web-react/src/app/app.jsx +1 -1
@@ -1 +1 @@
1
- System.register([],(function(_,e){"use strict";var n,t,o,r,l,u,i,c,f,s,a,p,h,d,v,m,y,g,k,b,w,H,x,S,P,N,C,E,U,T;function D(_,e){for(var n in e)_[n]=e[n];return _}function F(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function A(_,e,n,r,l){var u={type:_,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++o:l,__i:-1,__u:0};return null==l&&null!=t.vnode&&t.vnode(u),u}function M(_){return _.children}function L(_,e){this.props=_,this.context=e}function W(_,e){if(null==e)return _.__?W(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?W(_):null}function I(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return I(_)}}function R(_){(!_.__d&&(_.__d=!0)&&r.push(_)&&!$.__r++||l!==t.debounceRendering)&&((l=t.debounceRendering)||u)($)}function $(){var _,e,n,o,l,u,c,f;for(r.sort(i);_=r.shift();)_.__d&&(e=r.length,o=void 0,u=(l=(n=_).__v).__e,c=[],f=[],n.__P&&((o=D({},l)).__v=l.__v+1,t.vnode&&t.vnode(o),G(n.__P,o,l,n.__n,n.__P.namespaceURI,32&l.__u?[u]:null,c,null==u?W(l):u,!!(32&l.__u),f),o.__v=l.__v,o.__.__k[o.__i]=o,J(c,o,f),o.__e!=u&&I(o)),r.length>e&&r.sort(i));$.__r=0}function q(_,e,n,t,o,r,l,u,i,c,f){var s,a,d,m,y,g,k=t&&t.__k||h,b=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,c,f=n.length,s=f,a=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+a,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?A(null,l,null,null,null):v(l)?A(M,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?A(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!==(c=l.__i=O(l,n,i,s))&&(s--,(u=n[c])&&(u.__u|=2)),null==u||null===u.__v?(-1==c&&a--,"function"!=typeof l.type&&(l.__u|=4)):c!=i&&(c==i-1?a--:c==i+1?a++:(c>i?a--:a++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=W(u)),X(u,u));return t}(n,e,k,i,b),s=0;s<b;s++)null!=(d=n.__k[s])&&(a=-1===d.__i?p:k[d.__i]||p,d.__i=s,g=G(_,d,a,o,r,l,u,i,c,f),m=d.__e,d.ref&&a.ref!=d.ref&&(a.ref&&Q(a.ref,null,d),f.push(d.ref,d.__c||m,d)),null==y&&null!=m&&(y=m),4&d.__u||a.__k===d.__k?i=B(d,i,_):"function"==typeof d.type&&void 0!==g?i=g:m&&(i=m.nextSibling),d.__u&=-7);return n.__e=y,i}function B(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=B(t[o],e,n));return e}_.__e!=e&&(e&&_.type&&!n.contains(e)&&(e=W(_)),n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function O(_,e,n,t){var o,r,l=_.key,u=_.type,i=e[n];if(null===i||i&&l==i.key&&u===i.type&&!(2&i.__u))return n;if(t>(null==i||2&i.__u?0:1))for(o=n-1,r=n+1;o>=0||r<e.length;){if(o>=0){if((i=e[o])&&!(2&i.__u)&&l==i.key&&u===i.type)return o;o--}if(r<e.length){if((i=e[r])&&!(2&i.__u)&&l==i.key&&u===i.type)return r;r++}}return-1}function j(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function z(_,e,n,t,o){var r;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||j(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||j(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(c,"$1")),e=e.toLowerCase()in _||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.u=t.u:(n.u=f,_.addEventListener(e,r?a:s,r)):_.removeEventListener(e,r?a:s,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function V(_){return function(e){if(this.l){var n=this.l[e.type+_];if(null==e.t)e.t=f++;else if(e.t<n.u)return;return n(t.event?t.event(e):e)}}}function G(_,e,n,o,r,l,u,i,c,f){var s,a,p,h,d,m,y,g,k,b,w,H,x,S,P,N,C,E=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),l=[i=e.__e=n.__e]),(s=t.__b)&&s(e);_:if("function"==typeof E)try{if(g=e.props,k="prototype"in E&&E.prototype.render,b=(s=E.contextType)&&o[s.__c],w=s?b?b.props.value:s.__:o,n.__c?y=(a=e.__c=n.__c).__=a.__E:(k?e.__c=a=new E(g,w):(e.__c=a=new L(g,w),a.constructor=E,a.render=Y),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=w,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),k&&null==a.__s&&(a.__s=a.state),k&&null!=E.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=D({},a.__s)),D(a.__s,E.getDerivedStateFromProps(g,a.__s))),h=a.props,d=a.state,a.__v=e,p)k&&null==E.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),k&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(k&&null==E.getDerivedStateFromProps&&g!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,w),!a.__e&&(null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,w)||e.__v==n.__v)){for(e.__v!=n.__v&&(a.props=g,a.state=a.__s,a.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some((function(_){_&&(_.__=e)})),H=0;H<a._sb.length;H++)a.__h.push(a._sb[H]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(g,a.__s,w),k&&null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,m)}))}if(a.context=w,a.props=g,a.__P=_,a.__e=!1,x=t.__r,S=0,k){for(a.state=a.__s,a.__d=!1,x&&x(e),s=a.render(a.props,a.state,a.context),P=0;P<a._sb.length;P++)a.__h.push(a._sb[P]);a._sb=[]}else do{a.__d=!1,x&&x(e),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++S<25);a.state=a.__s,null!=a.getChildContext&&(o=D(D({},o),a.getChildContext())),k&&!p&&null!=a.getSnapshotBeforeUpdate&&(m=a.getSnapshotBeforeUpdate(h,d)),i=q(_,v(N=null!=s&&s.type===M&&null==s.key?s.props.children:s)?N:[N],e,n,o,r,l,u,i,c,f),a.base=e.__e,e.__u&=-161,a.__h.length&&u.push(a),y&&(a.__E=a.__=null)}catch(_){if(e.__v=null,c||null!=l)if(_.then){for(e.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,e.__e=i}else for(C=l.length;C--;)F(l[C]);else e.__e=n.__e,e.__k=n.__k;t.__e(_,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):i=e.__e=K(n.__e,e,n,o,r,l,u,c,f);return(s=t.diffed)&&s(e),128&e.__u?void 0:i}function J(_,e,n){for(var o=0;o<n.length;o++)Q(n[o],n[++o],n[++o]);t.__c&&t.__c(e,_),_.some((function(e){try{_=e.__h,e.__h=[],_.some((function(_){_.call(e)}))}catch(_){t.__e(_,e.__v)}}))}function K(_,e,o,r,l,u,i,c,f){var s,a,h,d,m,y,g,k=o.props,b=e.props,w=e.type;if("svg"==w?l="http://www.w3.org/2000/svg":"math"==w?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(s=0;s<u.length;s++)if((m=u[s])&&"setAttribute"in m==!!w&&(w?m.localName==w:3==m.nodeType)){_=m,u[s]=null;break}if(null==_){if(null==w)return document.createTextNode(b);_=document.createElementNS(l,w,b.is&&b),c&&(t.__m&&t.__m(e,u),c=!1),u=null}if(null===w)k===b||c&&_.data===b||(_.data=b);else{if(u=u&&n.call(_.childNodes),k=o.props||p,!c&&null!=u)for(k={},s=0;s<_.attributes.length;s++)k[(m=_.attributes[s]).name]=m.value;for(s in k)if(m=k[s],"children"==s);else if("dangerouslySetInnerHTML"==s)h=m;else if(!(s in b)){if("value"==s&&"defaultValue"in b||"checked"==s&&"defaultChecked"in b)continue;z(_,s,null,m,l)}for(s in b)m=b[s],"children"==s?d=m:"dangerouslySetInnerHTML"==s?a=m:"value"==s?y=m:"checked"==s?g=m:c&&"function"!=typeof m||k[s]===m||z(_,s,m,k[s],l);if(a)c||h&&(a.__html===h.__html||a.__html===_.innerHTML)||(_.innerHTML=a.__html),e.__k=[];else if(h&&(_.innerHTML=""),q(_,v(d)?d:[d],e,o,r,"foreignObject"==w?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&W(o,0),c,f),null!=u)for(s=u.length;s--;)F(u[s]);c||(s="value","progress"==w&&null==y?_.removeAttribute("value"):void 0!==y&&(y!==_[s]||"progress"==w&&!y||"option"==w&&y!==k[s])&&z(_,s,y,k[s],l),s="checked",void 0!==g&&g!==_[s]&&z(_,s,g,k[s],l))}return _}function Q(_,e,n){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==e||(_.__u=_(e))}else _.current=e}catch(_){t.__e(_,n)}}function X(_,e,n){var o,r;if(t.unmount&&t.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||Q(o,null,e)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){t.__e(_,e)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&X(o[r],e,n||"function"!=typeof _.type);n||F(_.__e),_.__c=_.__=_.__e=void 0}function Y(_,e,n){return this.constructor(_,n)}function Z(_,e){H.__h&&H.__h(y,_,b||e),b=0;var n=y.__H||(y.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function __(){for(var _;_=w.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(n_),_.__H.__h.forEach(t_),_.__H.__h=[]}catch(e){_.__H.__h=[],H.__e(e,_.__v)}}function e_(_){var e,n=function(){clearTimeout(t),U&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);U&&(e=requestAnimationFrame(n))}function n_(_){var e=y,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),y=e}function t_(_){var e=y;_.__c=_.__(),y=e}function o_(_,e){return"function"==typeof e?e(_):e}return _({D:function(_,e,o){var r,l,u;e==document&&(e=document.documentElement),t.__&&t.__(_,e),r=e.__k,l=[],u=[],G(e,_=e.__k=function(_,e,t){var o,r,l,u={};for(l in e)"key"==l?o=e[l]:"ref"==l?r=e[l]:u[l]=e[l];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof _&&null!=_.defaultProps)for(l in _.defaultProps)void 0===u[l]&&(u[l]=_.defaultProps[l]);return A(_,u,o,r,null)}(M,null,[_]),r||p,p,e.namespaceURI,r?null:e.firstChild?n.call(e.childNodes):null,l,r?r.__e:e.firstChild,!1,u),J(l,_,u)},_:function(_,e){var n=Z(m++,4);!H.__s&&function(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}(n.__H,e)&&(n.__=_,n.i=e,y.__h.push(n))},h:function(_){return b=1,function(_,e){var n=Z(m++,2);if(n.t=_,!n.__c&&(n.__=[o_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter((function(_){return!!_.__c}));if(r.every((function(_){return!_.__N})))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),o&&o.call(this,_,e,t)||l};y.u=!0;var o=y.shouldComponentUpdate,r=y.componentWillUpdate;y.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},y.shouldComponentUpdate=t}return n.__N||n.__}(o_,_)},k:M,u:function(_,e,n,o,r,l){e||(e={});var u,i,c=e;if("ref"in c)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:_,props:c,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--T,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===c[i]&&(c[i]=u[i]);return t.vnode&&t.vnode(f),f}}),{setters:[],execute:function(){p={},h=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray,n=h.slice,t={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},o=0,L.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=D({},this.state),"function"==typeof _&&(_=_(D({},n),this.props)),_&&D(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),R(this))},L.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),R(this))},L.prototype.render=M,r=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=function(_,e){return _.__v.__b-e.__v.__b},$.__r=0,c=/(PointerCapture)$|Capture$/i,f=0,s=V(!1),a=V(!0),b=0,w=[],x=(H=t).__b,S=H.__r,P=H.diffed,N=H.__c,C=H.unmount,E=H.__,H.__b=function(_){y=null,x&&x(_)},H.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),E&&E(_,e)},H.__r=function(_){S&&S(_),m=0;var e=(y=_.__c).__H;e&&(g===y?(e.__h=[],y.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.i=_.__N=void 0}))):(e.__h.forEach(n_),e.__h.forEach(t_),e.__h=[],m=0)),g=y},H.diffed=function(_){P&&P(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==w.push(e)&&k===H.requestAnimationFrame||((k=H.requestAnimationFrame)||e_)(__)),e.__H.__.forEach((function(_){_.i&&(_.__H=_.i),_.i=void 0}))),g=y=null},H.__c=function(_,e){e.some((function(_){try{_.__h.forEach(n_),_.__h=_.__h.filter((function(_){return!_.__||t_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],H.__e(n,_.__v)}})),N&&N(_,e)},H.unmount=function(_){C&&C(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{n_(_)}catch(_){e=_}})),n.__H=void 0,e&&H.__e(e,n.__v))},U="function"==typeof requestAnimationFrame,T=0}}}));
1
+ System.register([],(function(_,e){"use strict";var n,t,o,r,l,u,i,c,f,s,p,a,h,d,v,m,y,g,k,b,w,H,x,S,P,E,N,C,U,T;function F(_,e){for(var n in e)_[n]=e[n];return _}function A(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function D(_,e,n,r,l){var u={type:_,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++o:l,__i:-1,__u:0};return null==l&&null!=t.vnode&&t.vnode(u),u}function M(_){return _.children}function L(_,e){this.props=_,this.context=e}function W(_,e){if(null==e)return _.__?W(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?W(_):null}function I(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return I(_)}}function R(_){(!_.__d&&(_.__d=!0)&&r.push(_)&&!$.__r++||l!==t.debounceRendering)&&((l=t.debounceRendering)||u)($)}function $(){for(var _,e,n,o,l,u,c,f=1;r.length;)r.length>f&&r.sort(i),_=r.shift(),f=r.length,_.__d&&(n=void 0,l=(o=(e=_).__v).__e,u=[],c=[],e.__P&&((n=F({},o)).__v=o.__v+1,t.vnode&&t.vnode(n),G(e.__P,n,o,e.__n,e.__P.namespaceURI,32&o.__u?[l]:null,u,null==l?W(o):l,!!(32&o.__u),c),n.__v=o.__v,n.__.__k[n.__i]=n,J(u,n,c),n.__e!=l&&I(n)));$.__r=0}function q(_,e,n,t,o,r,l,u,i,c,f){var s,p,d,m,y,g,k=t&&t.__k||h,b=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,c,f=n.length,s=f,p=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+p,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?D(null,l,null,null,null):v(l)?D(M,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?D(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!==(c=l.__i=O(l,n,i,s))&&(s--,(u=n[c])&&(u.__u|=2)),null==u||null===u.__v?(-1==c&&(o>f?p--:o<f&&p++),"function"!=typeof l.type&&(l.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=W(u)),Y(u,u));return t}(n,e,k,i,b),s=0;s<b;s++)null!=(d=n.__k[s])&&(p=-1===d.__i?a:k[d.__i]||a,d.__i=s,g=G(_,d,p,o,r,l,u,i,c,f),m=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&X(p.ref,null,d),f.push(d.ref,d.__c||m,d)),null==y&&null!=m&&(y=m),4&d.__u||p.__k===d.__k?i=B(d,i,_):"function"==typeof d.type&&void 0!==g?i=g:m&&(i=m.nextSibling),d.__u&=-7);return n.__e=y,i}function B(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=B(t[o],e,n));return e}_.__e!=e&&(e&&_.type&&!n.contains(e)&&(e=W(_)),n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function O(_,e,n,t){var o,r,l=_.key,u=_.type,i=e[n];if(null===i&&null==_.key||i&&l==i.key&&u===i.type&&!(2&i.__u))return n;if(t>(null==i||2&i.__u?0:1))for(o=n-1,r=n+1;o>=0||r<e.length;){if(o>=0){if((i=e[o])&&!(2&i.__u)&&l==i.key&&u===i.type)return o;o--}if(r<e.length){if((i=e[r])&&!(2&i.__u)&&l==i.key&&u===i.type)return r;r++}}return-1}function j(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function z(_,e,n,t,o){var r;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||j(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||j(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(c,"$1")),e=e.toLowerCase()in _||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.t=t.t:(n.t=f,_.addEventListener(e,r?p:s,r)):_.removeEventListener(e,r?p:s,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function V(_){return function(e){if(this.l){var n=this.l[e.type+_];if(null==e.u)e.u=f++;else if(e.u<n.t)return;return n(t.event?t.event(e):e)}}}function G(_,e,n,o,r,l,u,i,c,f){var s,p,a,h,d,m,y,g,k,b,w,H,x,S,P,E,N,C=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),l=[i=e.__e=n.__e]),(s=t.__b)&&s(e);_:if("function"==typeof C)try{if(g=e.props,k="prototype"in C&&C.prototype.render,b=(s=C.contextType)&&o[s.__c],w=s?b?b.props.value:s.__:o,n.__c?y=(p=e.__c=n.__c).__=p.__E:(k?e.__c=p=new C(g,w):(e.__c=p=new L(g,w),p.constructor=C,p.render=Z),b&&b.sub(p),p.props=g,p.state||(p.state={}),p.context=w,p.__n=o,a=p.__d=!0,p.__h=[],p._sb=[]),k&&null==p.__s&&(p.__s=p.state),k&&null!=C.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=F({},p.__s)),F(p.__s,C.getDerivedStateFromProps(g,p.__s))),h=p.props,d=p.state,p.__v=e,a)k&&null==C.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),k&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(k&&null==C.getDerivedStateFromProps&&g!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,w),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,w)||e.__v==n.__v)){for(e.__v!=n.__v&&(p.props=g,p.state=p.__s,p.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some((function(_){_&&(_.__=e)})),H=0;H<p._sb.length;H++)p.__h.push(p._sb[H]);p._sb=[],p.__h.length&&u.push(p);break _}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,w),k&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,d,m)}))}if(p.context=w,p.props=g,p.__P=_,p.__e=!1,x=t.__r,S=0,k){for(p.state=p.__s,p.__d=!1,x&&x(e),s=p.render(p.props,p.state,p.context),P=0;P<p._sb.length;P++)p.__h.push(p._sb[P]);p._sb=[]}else do{p.__d=!1,x&&x(e),s=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++S<25);p.state=p.__s,null!=p.getChildContext&&(o=F(F({},o),p.getChildContext())),k&&!a&&null!=p.getSnapshotBeforeUpdate&&(m=p.getSnapshotBeforeUpdate(h,d)),E=s,null!=s&&s.type===M&&null==s.key&&(E=K(s.props.children)),i=q(_,v(E)?E:[E],e,n,o,r,l,u,i,c,f),p.base=e.__e,e.__u&=-161,p.__h.length&&u.push(p),y&&(p.__E=p.__=null)}catch(_){if(e.__v=null,c||null!=l)if(_.then){for(e.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,e.__e=i}else for(N=l.length;N--;)A(l[N]);else e.__e=n.__e,e.__k=n.__k;t.__e(_,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):i=e.__e=Q(n.__e,e,n,o,r,l,u,c,f);return(s=t.diffed)&&s(e),128&e.__u?void 0:i}function J(_,e,n){for(var o=0;o<n.length;o++)X(n[o],n[++o],n[++o]);t.__c&&t.__c(e,_),_.some((function(e){try{_=e.__h,e.__h=[],_.some((function(_){_.call(e)}))}catch(_){t.__e(_,e.__v)}}))}function K(_){return"object"!=typeof _||null==_?_:v(_)?_.map(K):F({},_)}function Q(_,e,o,r,l,u,i,c,f){var s,p,h,d,m,y,g,k=o.props,b=e.props,w=e.type;if("svg"==w?l="http://www.w3.org/2000/svg":"math"==w?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(s=0;s<u.length;s++)if((m=u[s])&&"setAttribute"in m==!!w&&(w?m.localName==w:3==m.nodeType)){_=m,u[s]=null;break}if(null==_){if(null==w)return document.createTextNode(b);_=document.createElementNS(l,w,b.is&&b),c&&(t.__m&&t.__m(e,u),c=!1),u=null}if(null===w)k===b||c&&_.data===b||(_.data=b);else{if(u=u&&n.call(_.childNodes),k=o.props||a,!c&&null!=u)for(k={},s=0;s<_.attributes.length;s++)k[(m=_.attributes[s]).name]=m.value;for(s in k)if(m=k[s],"children"==s);else if("dangerouslySetInnerHTML"==s)h=m;else if(!(s in b)){if("value"==s&&"defaultValue"in b||"checked"==s&&"defaultChecked"in b)continue;z(_,s,null,m,l)}for(s in b)m=b[s],"children"==s?d=m:"dangerouslySetInnerHTML"==s?p=m:"value"==s?y=m:"checked"==s?g=m:c&&"function"!=typeof m||k[s]===m||z(_,s,m,k[s],l);if(p)c||h&&(p.__html===h.__html||p.__html===_.innerHTML)||(_.innerHTML=p.__html),e.__k=[];else if(h&&(_.innerHTML=""),q("template"===e.type?_.content:_,v(d)?d:[d],e,o,r,"foreignObject"==w?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&W(o,0),c,f),null!=u)for(s=u.length;s--;)A(u[s]);c||(s="value","progress"==w&&null==y?_.removeAttribute("value"):void 0!==y&&(y!==_[s]||"progress"==w&&!y||"option"==w&&y!==k[s])&&z(_,s,y,k[s],l),s="checked",void 0!==g&&g!==_[s]&&z(_,s,g,k[s],l))}return _}function X(_,e,n){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==e||(_.__u=_(e))}else _.current=e}catch(_){t.__e(_,n)}}function Y(_,e,n){var o,r;if(t.unmount&&t.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||X(o,null,e)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){t.__e(_,e)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&Y(o[r],e,n||"function"!=typeof _.type);n||A(_.__e),_.__c=_.__=_.__e=void 0}function Z(_,e,n){return this.constructor(_,n)}function __(_,e){H.__h&&H.__h(y,_,b||e),b=0;var n=y.__H||(y.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function e_(){for(var _;_=w.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(t_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(e){_.__H.__h=[],H.__e(e,_.__v)}}function n_(_){var e,n=function(){clearTimeout(t),U&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);U&&(e=requestAnimationFrame(n))}function t_(_){var e=y,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),y=e}function o_(_){var e=y;_.__c=_.__(),y=e}function r_(_,e){return"function"==typeof e?e(_):e}return _({E:function(_,e,o){var r,l,u;e==document&&(e=document.documentElement),t.__&&t.__(_,e),r=e.__k,l=[],u=[],G(e,_=e.__k=function(_,e,t){var o,r,l,u={};for(l in e)"key"==l?o=e[l]:"ref"==l?r=e[l]:u[l]=e[l];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof _&&null!=_.defaultProps)for(l in _.defaultProps)void 0===u[l]&&(u[l]=_.defaultProps[l]);return D(_,u,o,r,null)}(M,null,[_]),r||a,a,e.namespaceURI,r?null:e.firstChild?n.call(e.childNodes):null,l,r?r.__e:e.firstChild,!1,u),J(l,_,u)},_:function(_,e){var n=__(m++,4);!H.__s&&function(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}(n.__H,e)&&(n.__=_,n.u=e,y.__h.push(n))},d:function(_){return b=1,function(_,e){var n=__(m++,2);if(n.t=_,!n.__c&&(n.__=[r_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.__f)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter((function(_){return!!_.__c}));if(r.every((function(_){return!_.__N})))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),o&&o.call(this,_,e,t)||l};y.__f=!0;var o=y.shouldComponentUpdate,r=y.componentWillUpdate;y.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},y.shouldComponentUpdate=t}return n.__N||n.__}(r_,_)},k:M,u:function(_,e,n,o,r,l){e||(e={});var u,i,c=e;if("ref"in c)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:_,props:c,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--T,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===c[i]&&(c[i]=u[i]);return t.vnode&&t.vnode(f),f}}),{setters:[],execute:function(){a={},h=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray,n=h.slice,t={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},o=0,L.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=F({},this.state),"function"==typeof _&&(_=_(F({},n),this.props)),_&&F(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),R(this))},L.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),R(this))},L.prototype.render=M,r=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=function(_,e){return _.__v.__b-e.__v.__b},$.__r=0,c=/(PointerCapture)$|Capture$/i,f=0,s=V(!1),p=V(!0),b=0,w=[],x=(H=t).__b,S=H.__r,P=H.diffed,E=H.__c,N=H.unmount,C=H.__,H.__b=function(_){y=null,x&&x(_)},H.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),C&&C(_,e)},H.__r=function(_){S&&S(_),m=0;var e=(y=_.__c).__H;e&&(g===y?(e.__h=[],y.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0}))):(e.__h.forEach(t_),e.__h.forEach(o_),e.__h=[],m=0)),g=y},H.diffed=function(_){P&&P(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==w.push(e)&&k===H.requestAnimationFrame||((k=H.requestAnimationFrame)||n_)(e_)),e.__H.__.forEach((function(_){_.u&&(_.__H=_.u),_.u=void 0}))),g=y=null},H.__c=function(_,e){e.some((function(_){try{_.__h.forEach(t_),_.__h=_.__h.filter((function(_){return!_.__||o_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],H.__e(n,_.__v)}})),E&&E(_,e)},H.unmount=function(_){N&&N(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{t_(_)}catch(_){e=_}})),n.__H=void 0,e&&H.__e(e,n.__v))},U="function"==typeof requestAnimationFrame,T=0}}}));
@@ -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",
@@ -15,18 +15,18 @@
15
15
  "playwright:install": "npx playwright install-deps && npx playwright install"
16
16
  },
17
17
  "dependencies": {
18
- "preact": "10.25.4"
18
+ "preact": "10.26.4"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/plugin-syntax-import-attributes": "7.26.0",
22
22
  "@babel/plugin-transform-react-jsx": "7.25.9",
23
- "@jsenv/assert": "4.4.2",
24
- "@jsenv/core": "39.14.2",
25
- "@jsenv/plugin-preact": "1.6.39",
26
- "@jsenv/plugin-bundling": "2.7.25",
27
- "@jsenv/plugin-minification": "1.5.13",
28
- "@jsenv/eslint-config-relax": "1.3.13",
29
- "@jsenv/test": "3.5.44",
23
+ "@jsenv/assert": "4.4.3",
24
+ "@jsenv/core": "40.0.0",
25
+ "@jsenv/plugin-preact": "1.7.0",
26
+ "@jsenv/plugin-bundling": "2.8.0",
27
+ "@jsenv/plugin-minification": "1.6.0",
28
+ "@jsenv/eslint-config-relax": "1.4.0",
29
+ "@jsenv/test": "3.6.0",
30
30
  "eslint": "9.18.0",
31
31
  "open": "10.1.0",
32
32
  "@playwright/browser-chromium": "1.49.1",
@@ -30,7 +30,7 @@ export const App = () => {
30
30
  <a
31
31
  className="app_link"
32
32
  // eslint-disable-next-line no-script-url
33
- href="javascript:window.fetch('/__open_in_editor__/app/app.jsx')"
33
+ href="javascript:window.fetch('/internal/open_file/app/app.jsx')"
34
34
  >
35
35
  app.jsx
36
36
  </a>{" "}
@@ -28,7 +28,7 @@ export const App = () => {
28
28
  className: "app_link",
29
29
  onClick: e => {
30
30
  e.preventDefault();
31
- window.fetch("/__open_in_editor__/app/app.jsx");
31
+ window.fetch("/.internal/open_file/app/app.jsx");
32
32
  },
33
33
  children: "app.jsx"
34
34
  }), " ", "and save to test HMR updates."]
@@ -21,6 +21,6 @@
21
21
  "etag": "\"b385-WbC1Mluh+mNFPvUSYMN59XpMt8k\""
22
22
  }
23
23
  },
24
- "createdMs": 1739436998813,
25
- "lastModifiedMs": 1739436998813
24
+ "createdMs": 1741723149807,
25
+ "lastModifiedMs": 1741723149807
26
26
  }
@@ -13,6 +13,6 @@
13
13
  "etag": "\"9aa-V9JtRVZ8s5edvIHLDOmva57apkM\""
14
14
  }
15
15
  },
16
- "createdMs": 1739436998766,
17
- "lastModifiedMs": 1739436998766
16
+ "createdMs": 1741723149767,
17
+ "lastModifiedMs": 1741723149767
18
18
  }
@@ -37,6 +37,6 @@
37
37
  "etag": "\"f18b8-TaT/xS8BK4WCEDuQUDIPl4PQjZM\""
38
38
  }
39
39
  },
40
- "createdMs": 1739436999341,
41
- "lastModifiedMs": 1739436999341
40
+ "createdMs": 1741723150250,
41
+ "lastModifiedMs": 1741723150250
42
42
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "2.9.16"
2
+ "version": "2.9.17"
3
3
  }
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/react_logo.svg" original-href-position="5:43;5:65">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <style original-position="7:5;21:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body {
7
+ <style original-position="7:5;22:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body {
8
8
  -webkit-font-smoothing: antialiased;
9
9
  -moz-osx-font-smoothing: grayscale;
10
10
  margin: 0;
@@ -19,6 +19,6 @@ code {
19
19
  </head>
20
20
  <body>
21
21
  <div id="root"></div>
22
- <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/main.jsx" original-src-position="26:27;26:43"></script>
22
+ <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/main.jsx" original-src-position="27:27;27:43"></script>
23
23
  </body>
24
24
  </html>
@@ -5,16 +5,24 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/react_logo.svg?v=11dbc9cc" original-href-position="5:43;5:65">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
- ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=2efd8733","/other/react_logo.svg":"/other/react_logo.svg?v=11dbc9cc"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/js/vendors.nomodule.js": "/js/vendors.nomodule.js?v=2efd8733",
11
+ "/other/react_logo.svg": "/other/react_logo.svg?v=11dbc9cc"
12
+ };
13
+ window.__v__ = function (specifier) {
14
+ return __versionMappings__[specifier] || specifier
15
+ };
16
+ })();
9
17
  </script>
10
18
  <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
19
  !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
20
  </script>
13
- <style original-position="7:5;21:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
21
+ <style original-position="7:5;22:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
14
22
  <title>Jsenv App</title>
15
23
  </head>
16
24
  <body>
17
25
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=5ed64bf2" original-src-position="26:27;26:43"></script>
26
+ <script src="/js/main.nomodule.js?v=62b7e773" original-src-position="27:27;27:43"></script>
19
27
  </body>
20
28
  </html>
@@ -1 +1 @@
1
- import{u as e,j as t,F as n,a as o,b as r,_ as c,c as i}from"!~{005}~";!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,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(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,[]),l.get(t).forEach((function(e){e.isConnected()&&k(t,E(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),l.get(t).forEach((function(o){if(o.isConnected()){var r=E(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=E(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),l.set(e,l.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function _(e){return"object"==typeof e&&a.isPrototypeOf(e)}function E(e,t){return u.get(e).get(t)}function k(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 x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),l.set(e,[]),u.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(E(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),l.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,E(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return E(t,e)}))}(n,t)&&W(n),e||j(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};const a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),s=new CSSStyleSheet;s.replaceSync(a.text);const l=()=>{const[r,c]=e(0);return t(n,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>c((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:r})]})},u=new URL("!~{007}~",import.meta.url),d=()=>(r((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:t("header",{className:"app_header",children:[o("img",{src:u,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + React!"}),o("p",{children:o(l,{})}),t("p",{children:["Edit"," ",o("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/__open_in_editor__/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}));c.createRoot(document.querySelector("#root")).render(o(i.StrictMode,{children:o(d,{})}));
1
+ import{u as e,j as t,F as n,a as o,b as r,_ as c,c as i}from"!~{005}~";!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,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(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,[]),l.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),l.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=_(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),l.set(e,l.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return u.get(e).get(t)}function k(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 x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),l.set(e,[]),u.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),l.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(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};const a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),s=new CSSStyleSheet;s.replaceSync(a.text);const l=()=>{const[r,c]=e(0);return t(n,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>c((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:r})]})},u=new URL("!~{007}~",import.meta.url),d=()=>(r((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:t("header",{className:"app_header",children:[o("img",{src:u,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + React!"}),o("p",{children:o(l,{})}),t("p",{children:["Edit"," ",o("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/.internal/open_file/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}));c.createRoot(document.querySelector("#root")).render(o(i.StrictMode,{children:o(d,{})}));
@@ -1 +1 @@
1
- System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],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=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(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()&&x(t,E(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=E(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=E(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)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function _(e){return"object"==typeof e&&a.isPrototypeOf(e)}function E(e,t){return l.get(e).get(t)}function x(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 k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){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 O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(E(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){x(t,E(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return E(t,e)}))}(n,t)&&W(n),e||j(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},u=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/__open_in_editor__/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
1
+ System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],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=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(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()&&x(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=_(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)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function x(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 k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){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 O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(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){x(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(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},u=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/.internal/open_file/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
@@ -0,0 +1,47 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "node",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "runtimeArgs": ["--inspect"],
10
+ "console": "integratedTerminal",
11
+ "autoAttachChildProcesses": true,
12
+ "sourceMaps": true,
13
+ "smartStep": true,
14
+ "skipFiles": [
15
+ // force-array-multiline
16
+ // "node_modules/**",
17
+ "node_modules/playwright/**",
18
+ "node_modules/playwright-chromium/**",
19
+ "node_modules/playwright-webkit/**",
20
+ "node_modules/playwright-firefox/**",
21
+ "node_modules/playwright-core/**",
22
+ "<node_internals>/**"
23
+ ]
24
+ },
25
+ {
26
+ "name": "node watch",
27
+ "type": "node",
28
+ "request": "launch",
29
+ "program": "${file}",
30
+ "runtimeArgs": ["--inspect", "--watch"],
31
+ "console": "integratedTerminal",
32
+ "autoAttachChildProcesses": true,
33
+ "sourceMaps": true,
34
+ "smartStep": true,
35
+ "skipFiles": [
36
+ // force-array-multiline
37
+ // "node_modules/**",
38
+ "node_modules/playwright/**",
39
+ "node_modules/playwright-chromium/**",
40
+ "node_modules/playwright-webkit/**",
41
+ "node_modules/playwright-firefox/**",
42
+ "node_modules/playwright-core/**",
43
+ "<node_internals>/**"
44
+ ]
45
+ }
46
+ ]
47
+ }
@@ -5,7 +5,15 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/react_logo.svg?v=11dbc9cc">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script>
8
- ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=2efd8733","/other/react_logo.svg":"/other/react_logo.svg?v=11dbc9cc"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/js/vendors.nomodule.js": "/js/vendors.nomodule.js?v=2efd8733",
11
+ "/other/react_logo.svg": "/other/react_logo.svg?v=11dbc9cc"
12
+ };
13
+ window.__v__ = function (specifier) {
14
+ return __versionMappings__[specifier] || specifier
15
+ };
16
+ })();
9
17
  </script>
10
18
  <script>
11
19
  !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
@@ -15,6 +23,6 @@
15
23
  </head>
16
24
  <body>
17
25
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=5ed64bf2"></script>
26
+ <script src="/js/main.nomodule.js?v=62b7e773"></script>
19
27
  </body>
20
28
  </html>
@@ -1 +1 @@
1
- System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],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=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(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()&&x(t,E(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=E(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=E(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)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function _(e){return"object"==typeof e&&a.isPrototypeOf(e)}function E(e,t){return l.get(e).get(t)}function x(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 k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){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 O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(E(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){x(t,E(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return E(t,e)}))}(n,t)&&W(n),e||j(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},u=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/__open_in_editor__/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
1
+ System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],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=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(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()&&x(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.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);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.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(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.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=_(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)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(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 C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function x(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 k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){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 O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(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){x(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(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},u=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/.internal/open_file/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
@@ -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",
@@ -21,13 +21,13 @@
21
21
  "devDependencies": {
22
22
  "@babel/plugin-syntax-import-attributes": "7.26.0",
23
23
  "@babel/plugin-transform-react-jsx": "7.25.9",
24
- "@jsenv/assert": "4.4.2",
25
- "@jsenv/core": "39.14.2",
26
- "@jsenv/plugin-react": "1.5.62",
27
- "@jsenv/plugin-bundling": "2.7.25",
28
- "@jsenv/plugin-minification": "1.5.13",
29
- "@jsenv/eslint-config-relax": "1.3.13",
30
- "@jsenv/test": "3.5.44",
24
+ "@jsenv/assert": "4.4.3",
25
+ "@jsenv/core": "40.0.0",
26
+ "@jsenv/plugin-react": "1.7.0",
27
+ "@jsenv/plugin-bundling": "2.8.0",
28
+ "@jsenv/plugin-minification": "1.6.0",
29
+ "@jsenv/eslint-config-relax": "1.4.0",
30
+ "@jsenv/test": "3.6.0",
31
31
  "eslint": "9.18.0",
32
32
  "open": "10.1.0",
33
33
  "@playwright/browser-chromium": "1.49.1",
@@ -31,7 +31,7 @@ export const App = () => {
31
31
  className="app_link"
32
32
  onClick={(e) => {
33
33
  e.preventDefault();
34
- window.fetch("/__open_in_editor__/app/app.jsx");
34
+ window.fetch("/.internal/open_file/app/app.jsx");
35
35
  }}
36
36
  >
37
37
  app.jsx