@appshell/react-shell 1.0.0-alpha.14 → 1.0.0-alpha.15

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.
@@ -5,7 +5,7 @@
5
5
  "name": "Appshell",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "1.0.0-alpha.14",
8
+ "buildVersion": "1.0.0-alpha.15",
9
9
  "buildName": "@appshell/react-shell"
10
10
  },
11
11
  "remoteEntry": {
@@ -24,6 +24,30 @@
24
24
  "publicPath": "auto"
25
25
  },
26
26
  "shared": [
27
+ {
28
+ "singleton": true,
29
+ "requiredVersion": "^1.0.0-alpha.15",
30
+ "shareScope": "default",
31
+ "name": "@appshell/runtime",
32
+ "version": "1.0.0-alpha.15",
33
+ "eager": false,
34
+ "id": "Appshell:@appshell/runtime",
35
+ "assets": {
36
+ "js": {
37
+ "async": [],
38
+ "sync": [
39
+ "877.js"
40
+ ]
41
+ },
42
+ "css": {
43
+ "async": [],
44
+ "sync": []
45
+ }
46
+ },
47
+ "usedIn": [],
48
+ "usedExports": [],
49
+ "fallback": ""
50
+ },
27
51
  {
28
52
  "singleton": true,
29
53
  "requiredVersion": "18.2.0",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@appshell/react-shell",
3
- "version": "1.0.0-alpha.14",
3
+ "version": "1.0.0-alpha.15",
4
4
  "description": "Appshell shell bundle for React",
5
5
  "main": "dist/main.js",
6
- "repository": "https://github.com/appshell-org/appshell.git",
6
+ "repository": "https://github.com/appshellhq/appshell.git",
7
7
  "publishConfig": {
8
8
  "access": "public",
9
9
  "registry": "https://registry.npmjs.org/"
@@ -13,9 +13,7 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "generate": "run-p generate:*",
16
- "generate:env": "appshell generate env -e .env --prefix $APPSHELL_ENV_PREFIX",
17
- "generate:global-config": "appshell generate global-config --validate-registry-ssl-cert $APPSHELL_VALIDATE_REGISTRY_SSL_CERT --registry $APPSHELL_BASE_REGISTRY $APPSHELL_REGISTRY --api-key $APPSHELL_API_KEY --api-key-header $APPSHELL_API_KEY_HEADER --proxy-url $APPSHELL_PROXY_URL",
18
- "start": "dotenv -- run-s generate:env start:bundle",
16
+ "start": "dotenv -- npm run start:bundle",
19
17
  "start:bundle": "webpack serve --mode development",
20
18
  "prebuild": "npm run clean",
21
19
  "build": "run-s build:prod build:dev",
@@ -45,5 +43,5 @@
45
43
  "appshell"
46
44
  ],
47
45
  "license": "MIT",
48
- "gitHead": "7dc77badfed56201b3e177f62e55609a360f7e0e"
46
+ "gitHead": "9f086dc6c3c9977c561e81509dea940faca6de90"
49
47
  }
package/dist/190.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[]).push([[190],{190(e,n,t){t.d(n,{getCLS:()=>S,getFCP:()=>b,getFID:()=>M,getLCP:()=>H,getTTFB:()=>R});var r,i,a,o,c=-1,u=function(e){addEventListener("pageshow",(function(n){n.persisted&&(c=n.timeStamp,e(n))}),!0)},s=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=s();return e&&e.activationStart||0},d=function(e,n){var t=s(),r="navigate";return c>=0?r="back-forward-cache":t&&(r=document.prerendering||f()>0?"prerender":document.wasDiscarded?"restore":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},l=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},v=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},m=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},h=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},g=-1,T=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(e){"hidden"===document.visibilityState&&g>-1&&(g="visibilitychange"===e.type?e.timeStamp:0,L())},E=function(){addEventListener("visibilitychange",y,!0),addEventListener("prerenderingchange",y,!0)},L=function(){removeEventListener("visibilitychange",y,!0),removeEventListener("prerenderingchange",y,!0)},w=function(){return g<0&&(g=T(),E(),u((function(){setTimeout((function(){g=T(),E()}),0)}))),{get firstHiddenTime(){return g}}},C=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},b=function(e,n){n=n||{},C((function(){var t,r=[1800,3e3],i=w(),a=d("FCP"),o=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-f(),0),a.entries.push(e),t(!0)))}))}));o&&(t=l(e,a,r,n.reportAllChanges),u((function(i){a=d("FCP"),t=l(e,a,r,n.reportAllChanges),v((function(){a.value=performance.now()-i.timeStamp,t(!0)}))})))}))},S=function(e,n){n=n||{},b(h((function(){var t,r=[.1,.25],i=d("CLS",0),a=0,o=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=o[0],t=o[o.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>i.value&&(i.value=a,i.entries=o,t())},s=p("layout-shift",c);s&&(t=l(e,i,r,n.reportAllChanges),m((function(){c(s.takeRecords()),t(!0)})),u((function(){a=0,i=d("CLS",0),t=l(e,i,r,n.reportAllChanges),v((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},k=new Date,F=function(e,n){r||(r=n,i=e,a=new Date,B(removeEventListener),P())},P=function(){if(i>=0&&i<a-k){var e={entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+i};o.forEach((function(n){n(e)})),o=[]}},D=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){F(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,A),removeEventListener("pointercancel",r,A)};addEventListener("pointerup",t,A),addEventListener("pointercancel",r,A)}(n,e):F(n,e)}},B=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,D,A)}))},M=function(e,n){n=n||{},C((function(){var t,a=[100,300],c=w(),s=d("FID"),f=function(e){e.startTime<c.firstHiddenTime&&(s.value=e.processingStart-e.startTime,s.entries.push(e),t(!0))},v=function(e){e.forEach(f)},g=p("first-input",v);t=l(e,s,a,n.reportAllChanges),g&&m(h((function(){v(g.takeRecords()),g.disconnect()}))),g&&u((function(){var c;s=d("FID"),t=l(e,s,a,n.reportAllChanges),o=[],i=-1,r=null,B(addEventListener),c=f,o.push(c),P()}))}))},_={},H=function(e,n){n=n||{},C((function(){var t,r=[2500,4e3],i=w(),a=d("LCP"),o=function(e){var n=e[e.length-1];if(n){var r=Math.max(n.startTime-f(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[n],t())}},c=p("largest-contentful-paint",o);if(c){t=l(e,a,r,n.reportAllChanges);var s=h((function(){_[a.id]||(o(c.takeRecords()),c.disconnect(),_[a.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,s,!0)})),m(s),u((function(i){a=d("LCP"),t=l(e,a,r,n.reportAllChanges),v((function(){a.value=performance.now()-i.timeStamp,_[a.id]=!0,t(!0)}))}))}}))},I=function e(n){document.prerendering?C((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)},R=function(e,n){n=n||{};var t=[800,1800],r=d("TTFB"),i=l(e,r,t,n.reportAllChanges);I((function(){var a=s();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-f(),0),r.entries=[a],i(!0),u((function(){r=d("TTFB",0),(i=l(e,r,t,n.reportAllChanges))(!0)}))}}))}}}]);
package/dist/279.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[]).push([[279],{279(e,t,n){const r=window.__appshell_env__??{},o=r.APPSHELL_PUBLIC_URL||"",a={APPSHELL_PUBLIC_URL:o,APPSHELL_ROOT:r.APPSHELL_ROOT,APPSHELL_ROOT_PROPS:r.APPSHELL_ROOT_PROPS||"{}",APPSHELL_CONFIG_URL:`${o}/appshell.config.json`,APPSHELL_PRIMARY_COLOR:r.APPSHELL_PRIMARY_COLOR||"#8ed6fb",APPSHELL_THEME_COLOR:r.APPSHELL_THEME_COLOR||"#282c34"};var c=n(650);let s=!1;const i=new Set,l=async(e,t,n,r="default")=>{console.debug(`loading Appshell component: { scope: ${e}, module: ${t}, shareScope: ${r} }`),s||(s=!0,(0,c.getInstance)()||(0,c.init)({name:"Appshell",remotes:[]})),i.has(e)||(i.add(e),(0,c.registerRemotes)([{name:e,entry:n}]));const o=t.replace(/^\.\//,""),a=await(0,c.loadRemote)(`${e}/${o}`);if(!a)throw new Error(`Failed to find module container ${e}`);return console.debug(`Appshell component loaded: { scope: ${e}, module: ${t}, shareScope: ${r} }`),a.default};(Object.getOwnPropertyDescriptor(l,"name")||{}).writable||Object.defineProperty(l,"name",{value:"default",configurable:!0});const u=(e,t)=>({remotes:t,environment:e.environment,modules:{}}),d=(e,t={})=>{const n=t.composition??("undefined"==typeof window?void 0:window.__appshell_config__),r=t.resolver??((...e)=>async t=>{for(const n of e){const e=await n(t);if(e)return e}})((e=>async t=>{const n=e?.remotes[t];if(e&&n)return{remote:n,environment:e.environment[n.scope]??{},manifest:u(e,e.remotes)}})(n),((e,t="")=>async n=>{if(!e)return;const r=`${t}/v1/environments/${e.environmentId}/remotes/${n}`,o=await fetch(r,{credentials:"include"});if(!o.ok)return;const a=await o.json();return{remote:a,environment:e.environment[a.scope]??{},manifest:u(e,{[n]:a})}})(n),(e=>{const t=new Map;return async n=>{const r=e.index?.[n];if(!r)return;const o=await(e=>{const n=t.get(e);if(n)return n;const r=fetch(e,{credentials:"include"}).then((async t=>{if(!t.ok)throw new Error(`Failed to get manifest from ${e}. ${await t.text()}`);return t.json()}));return t.set(e,r),r})(r),a=o?.remotes[n];return a?{remote:a,environment:{...o.environment[a.scope]??{},...e.overrides?.environment?.[a.scope]??{}},manifest:o}:void 0}})(e));return async e=>{const t=t=>new Error(`Failed to load component '${e}'. ${t?.toString()}`);let n;try{n=await r(e)}catch(e){throw t(e)}if(!n)throw new Error(`Remote resource not found in registry. Expected: ${e}`);const{remote:o,environment:a,manifest:c}=n;try{return window[`__appshell_env__${o.scope}`]=a,[await l(o.scope,o.module,o.remoteEntryUrl,o.shareScope),c]}catch(e){throw t(e)}}};(Object.getOwnPropertyDescriptor(d,"name")||{}).writable||Object.defineProperty(d,"name",{value:"default",configurable:!0});const p=d;var m=n(488),f=n.n(m);const v=(0,m.createContext)({remotes:{},modules:{},environment:{}}),h=({manifest:e,children:t})=>{const n=(0,m.useMemo)((()=>(e=>new Proxy(e,{get:(e,t,n)=>("modules"===t&&console.warn("useManifest().modules is deprecated and will be removed. It is build-time webpack config; use useRemote() for what the browser needs. Please open an issue at github.com/appshell-org/appshell if you rely on it."),Reflect.get(e,t,n))}))(e)),[e]);return f().createElement(v.Provider,{value:n},t)},g=(v.Consumer,(0,m.createContext)(void 0)),y=({remote:e,children:t})=>f().createElement(g.Provider,{value:e},t);y.defaultProps={remote:void 0},g.Consumer;const b=(0,m.createContext)({index:{}}),P=({config:e,children:t})=>f().createElement(b.Provider,{value:e},t),w=(b.Consumer,b),O=()=>f().useContext(w);(Object.getOwnPropertyDescriptor(O,"name")||{}).writable||Object.defineProperty(O,"name",{value:"default",configurable:!0});const _=({remote:e,reason:t})=>f().createElement("div",{style:{border:"3px solid red"}},f().createElement("h5",null,`Error loading Appshell component '${e}.'`),f().createElement("span",{style:{fontSize:"1rem"}},t)),E=({remote:e,fallback:t,...n})=>{const r=O(),[o,a]=(0,m.useState)();return(0,m.useEffect)((()=>{let t=!1;const o=p(r);return a(void 0),async function(){try{const[r,c]=await o(e);if(t||!r)return;a(f().createElement(h,{manifest:c},f().createElement(y,{remote:c.remotes[e]},f().createElement(r,n))))}catch(n){t||a(f().createElement(_,{remote:e,reason:`${n}`}))}}(),()=>{t=!0}}),[e,r,...Object.values(n)]),console.debug(`rendering AppshellComponent[${e}], loading=${!o}`),f().createElement(f().Fragment,null,o||t)};E.defaultProps={fallback:void 0};const L=E;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const S=()=>{const e="undefined"==typeof window?void 0:window.__appshell_config__;return e&&{index:e.index}},A=({configUrl:e,remote:t,fallback:n,...r})=>{const[o,a]=f().useState(S);return(0,m.useEffect)((()=>{o||(e?(async()=>{const t=await fetch(e);a(t.ok?await t.json():{index:{}})})():a({index:{}}))}),[o,e]),o?f().createElement(P,{config:o},f().createElement(L,x({remote:t,fallback:n},r))):null};A.defaultProps={configUrl:void 0,fallback:void 0};const j=A;(0,m.createContext)({}).Consumer;const C=()=>(void 0).useContext(void 0);(Object.getOwnPropertyDescriptor(C,"name")||{}).writable||Object.defineProperty(C,"name",{value:"default",configurable:!0});const R=()=>(void 0).useContext(void 0);(Object.getOwnPropertyDescriptor(R,"name")||{}).writable||Object.defineProperty(R,"name",{value:"default",configurable:!0});const M=()=>(void 0).useContext(void 0);(Object.getOwnPropertyDescriptor(M,"name")||{}).writable||Object.defineProperty(M,"name",{value:"default",configurable:!0});var $=n(873),H=n(686),T=n.n(H);const I=()=>f().createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexGrow:1,height:"100vh",backgroundColor:a.APPSHELL_THEME_COLOR}},f().createElement(T(),{color:a.APPSHELL_PRIMARY_COLOR,speedMultiplier:1.5,size:24})),X="appshell-overlay-badge",k=["position:fixed","bottom:12px","left:12px","z-index:2147483647","max-width:min(420px, calc(100vw - 24px))","padding:8px 12px","border-radius:6px","border:1px solid #f0b429","background:#3d3016","color:#f7e3a1","font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace","box-shadow:0 2px 8px rgba(0,0,0,.35)"].join(";"),F=e=>{const t=e?.overlay;if(!t||document.getElementById(X))return;const n=document.createElement("div");n.id=X,n.innerHTML=((e,t="prod")=>{const n=["dev"===t&&"development shell",e.length&&`${e.length} remote${1===e.length?"":"s"} redirected`].filter(Boolean),r=e.map((e=>{return`<li>${t=e,t.replace(/&/g,"&amp;").replace(/</g,"&lt;")}</li>`;var t})).join("");return[`<details style="${k}" open>`,`<summary style="cursor:pointer;font-weight:600;list-style:none">⚠ Development overlay — ${n.join(", ")}</summary>`,r?`<ul style="margin:6px 0 0;padding-left:16px">${r}</ul>`:"","</details>"].join("")})(t.remotes??[],t.shellFlavor),document.body.appendChild(n)};(Object.getOwnPropertyDescriptor(F,"name")||{}).writable||Object.defineProperty(F,"name",{value:"default",configurable:!0});var U=n(591),D=n.n(U),N=n(740),B=n.n(N),z=n(128),G=n.n(z),Y=n(855),J=n.n(Y),V=n(51),q=n.n(V),K=n(656),Q=n.n(K),W=n(97),Z={};function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}Z.styleTagTransform=Q(),Z.setAttributes=J(),Z.insert=G().bind(null,"head"),Z.domAPI=B(),Z.insertStyleElement=q(),D()(W.A,Z),W.A&&W.A.locals&&W.A.locals;const te=(0,$.H)(document.getElementById("root")),ne=window.__appshell_config__;F(ne);const re=ne?.root||a.APPSHELL_ROOT,oe=ne?.rootProps??JSON.parse(a.APPSHELL_ROOT_PROPS);if(!re)throw new Error("No root remote to mount. The registry supplies one; a standalone build needs APPSHELL_ROOT.");var ae;te.render(f().createElement(f().StrictMode,null,f().createElement(j,ee({configUrl:ne?void 0:a.APPSHELL_CONFIG_URL,remote:re,fallback:f().createElement(I,null)},oe)))),ae&&ae instanceof Function&&n.e(190).then(n.bind(n,190)).then((({getCLS:e,getFID:t,getFCP:n,getLCP:r,getTTFB:o})=>{e(ae),t(ae),n(ae),r(ae),o(ae)}))},97(e,t,n){n.d(t,{A:()=>s});var r=n(758),o=n.n(r),a=n(935),c=n.n(a)()(o());c.push([e.id,"body {\n margin: 0;\n font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n",""]);const s=c},935(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var c={};if(r)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(c[i]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&c[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},758(e){e.exports=function(e){return e[1]}},873(e,t,n){var r=n(536);t.H=r.createRoot,r.hydrateRoot},686(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=c(n(488)),l=n(970),u=n(314),d=[1,3,5],p=[(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(d[0],"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(d[1],"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(d[2],"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(d[0],"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(d[1],"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(d[1],"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(d[0],"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(d[0],"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(d[0],"rem) scale(0.75)}\n 75% {transform: translateX(").concat(d[0],"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(d[0],"rem) scale(0.75)}\n 50% {transform: translateX(").concat(d[1],"rem) scale(0.6)}\n 75% {transform: translateX(").concat(d[1],"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,u.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(d[0],"rem) scale(0.75)}\n 50% {transform: translateX(").concat(d[1],"rem) scale(0.6)}\n 75% {transform: translateX(").concat(d[2],"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=void 0===t||t,o=e.color,a=void 0===o?"#000000":o,c=e.speedMultiplier,u=void 0===c?1:c,d=e.cssOverride,m=void 0===d?{}:d,f=e.size,v=void 0===f?15:f,h=s(e,["loading","color","speedMultiplier","cssOverride","size"]),g=(0,l.parseLengthAndUnit)(v),y=g.value,b=g.unit,P=r({display:"inherit",position:"relative"},m),w=function(e){return{position:"absolute",fontSize:"".concat(y/3).concat(b),width:"".concat(y).concat(b),height:"".concat(y).concat(b),background:a,borderRadius:"50%",animation:"".concat(p[e]," ").concat(1.5/u,"s infinite"),animationFillMode:"forwards"}};return n?i.createElement("span",r({style:P},h),i.createElement("span",{style:w(0)}),i.createElement("span",{style:w(1)}),i.createElement("span",{style:w(2)}),i.createElement("span",{style:w(3)}),i.createElement("span",{style:w(4)}),i.createElement("span",{style:w(5)})):null}},314(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var a=o.sheet,c="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return a&&a.insertRule(c,0),r}},970(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var o=(e.match(/[^0-9]*$/)||"").toString();return n[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},591(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},c=[],s=0;s<e.length;s++){var i=e[s],l=r.base?i[0]+r.base:i[0],u=a[l]||0,d="".concat(l," ").concat(u);a[l]=u+1;var p=n(d),m={css:i[1],media:i[2],sourceMap:i[3],supports:i[4],layer:i[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var f=o(m,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}c.push(d)}return c}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var c=0;c<a.length;c++){var s=n(a[c]);t[s].references--}for(var i=r(e,o),l=0;l<a.length;l++){var u=n(a[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=i}}},128(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},51(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},740(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},656(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);
@@ -1,31 +0,0 @@
1
- "use strict";
2
- (globalThis["webpackChunkappshell_react_shell"] = globalThis["webpackChunkappshell_react_shell"] || []).push([["node_modules_web-vitals_dist_web-vitals_js"],{
3
-
4
- /***/ "../../node_modules/web-vitals/dist/web-vitals.js"
5
- /*!********************************************************!*\
6
- !*** ../../node_modules/web-vitals/dist/web-vitals.js ***!
7
- \********************************************************/
8
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
9
-
10
- __webpack_require__.r(__webpack_exports__);
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ getCLS: () => (/* binding */ b),
13
- /* harmony export */ getFCP: () => (/* binding */ L),
14
- /* harmony export */ getFID: () => (/* binding */ M),
15
- /* harmony export */ getINP: () => (/* binding */ z),
16
- /* harmony export */ getLCP: () => (/* binding */ J),
17
- /* harmony export */ getTTFB: () => (/* binding */ Q),
18
- /* harmony export */ onCLS: () => (/* binding */ b),
19
- /* harmony export */ onFCP: () => (/* binding */ L),
20
- /* harmony export */ onFID: () => (/* binding */ M),
21
- /* harmony export */ onINP: () => (/* binding */ z),
22
- /* harmony export */ onLCP: () => (/* binding */ J),
23
- /* harmony export */ onTTFB: () => (/* binding */ Q)
24
- /* harmony export */ });
25
- var e,n,t,r,i,a=-1,o=function(e){addEventListener("pageshow",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),r="navigate";return a>=0?r="back-forward-cache":t&&(r=document.prerendering||u()>0?"prerender":document.wasDiscarded?"restore":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},d=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},v=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},p=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){"hidden"===document.visibilityState&&m>-1&&(m="visibilitychange"===e.type?e.timeStamp:0,T())},y=function(){addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},T=function(){removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},L=function(e,n){n=n||{},C((function(){var t,r=[1800,3e3],i=E(),a=f("FCP"),c=s("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-u(),0),a.entries.push(e),t(!0)))}))}));c&&(t=d(e,a,r,n.reportAllChanges),o((function(i){a=f("FCP"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,t(!0)}))})))}))},b=function(e,n){n=n||{},L(p((function(){var t,r=[.1,.25],i=f("CLS",0),a=0,c=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e])}})),a>i.value&&(i.value=a,i.entries=c,t())},p=s("layout-shift",u);p&&(t=d(e,i,r,n.reportAllChanges),v((function(){u(p.takeRecords()),t(!0)})),o((function(){a=0,i=f("CLS",0),t=d(e,i,r,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},w={passive:!0,capture:!0},S=new Date,A=function(r,i){e||(e=i,n=r,t=new Date,F(removeEventListener),I())},I=function(){if(n>=0&&n<t-S){var i={entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n};r.forEach((function(e){e(i)})),r=[]}},P=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){A(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,w),removeEventListener("pointercancel",r,w)};addEventListener("pointerup",t,w),addEventListener("pointercancel",r,w)}(n,e):A(n,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,P,w)}))},M=function(t,i){i=i||{},C((function(){var a,c=[100,300],u=E(),l=f("FID"),m=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),a(!0))},h=function(e){e.forEach(m)},g=s("first-input",h);a=d(t,l,c,i.reportAllChanges),g&&v(p((function(){h(g.takeRecords()),g.disconnect()}))),g&&o((function(){var o;l=f("FID"),a=d(t,l,c,i.reportAllChanges),r=[],n=-1,e=null,F(addEventListener),o=m,r.push(o),I()}))}))},k=0,D=1/0,x=0,B=function(e){e.forEach((function(e){e.interactionId&&(D=Math.min(D,e.interactionId),x=Math.max(x,e.interactionId),k=x?(x-D)/7+1:0)}))},R=function(){return i?k:performance.interactionCount||0},H=function(){"interactionCount"in performance||i||(i=s("event",B,{type:"event",buffered:!0,durationThreshold:0}))},N=0,O=function(){return R()-N},q=[],j={},_=function(e){var n=q[q.length-1],t=j[e.interactionId];if(t||q.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};j[r.id]=r,q.push(r)}q.sort((function(e,n){return n.latency-e.latency})),q.splice(10).forEach((function(e){delete j[e.id]}))}},z=function(e,n){n=n||{},C((function(){var t=[200,500];H();var r,i=f("INP"),a=function(e){e.forEach((function(e){(e.interactionId&&_(e),"first-input"===e.entryType)&&(!q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&_(e))}));var n,t=(n=Math.min(q.length-1,Math.floor(O()/50)),q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},c=s("event",a,{durationThreshold:n.durationThreshold||40});r=d(e,i,t,n.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),v((function(){a(c.takeRecords()),i.value<0&&O()>0&&(i.value=0,i.entries=[]),r(!0)})),o((function(){q=[],N=R(),i=f("INP"),r=d(e,i,t,n.reportAllChanges)})))}))},G={},J=function(e,n){n=n||{},C((function(){var t,r=[2500,4e3],i=E(),a=f("LCP"),c=function(e){var n=e[e.length-1];if(n){var r=Math.max(n.startTime-u(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[n],t())}},m=s("largest-contentful-paint",c);if(m){t=d(e,a,r,n.reportAllChanges);var h=p((function(){G[a.id]||(c(m.takeRecords()),m.disconnect(),G[a.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,h,!0)})),v(h),o((function(i){a=f("LCP"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,G[a.id]=!0,t(!0)}))}))}}))},K=function e(n){document.prerendering?C((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)},Q=function(e,n){n=n||{};var t=[800,1800],r=f("TTFB"),i=d(e,r,t,n.reportAllChanges);K((function(){var a=c();if(a){var s=a.responseStart;if(s<=0||s>performance.now())return;r.value=Math.max(s-u(),0),r.entries=[a],i(!0),o((function(){r=f("TTFB",0),(i=d(e,r,t,n.reportAllChanges))(!0)}))}}))};
26
-
27
-
28
- /***/ }
29
-
30
- }]);
31
- //# sourceMappingURL=node_modules_web-vitals_dist_web-vitals_js.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node_modules_web-vitals_dist_web-vitals_js.js","mappings":";;;;;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AA2B,qCAAqC,eAAe,IAAI,iBAAiB,OAAO,eAAe,gBAAgB,IAAI,+BAA+B,uBAAuB,2EAA2E,mCAAmC,0DAA0D,GAAG,UAAU,GAAG,yDAAyD,oEAAoE,gBAAgB,0CAA0C,EAAE,6CAA6C,+BAA+B,gBAAgB,oEAAoE,iBAAiB,oDAAoD,IAAI,GAAG,KAAK,iBAAiB,OAAO,eAAe,kDAAkD,oBAAoB,MAAM,kCAAkC,oDAAoD,mCAAmC,MAAM,8BAA8B,oBAAoB,8DAA8D,GAAG,yCAAyC,yBAAyB,uBAAuB,uDAAuD,uDAAuD,GAAG,IAAI,GAAG,iBAAiB,oCAAoC,YAAY,wEAAwE,YAAY,sBAAsB,iBAAiB,QAAQ,2DAA2D,cAAc,UAAU,MAAM,sBAAsB,oCAAoC,4DAA4D,kDAAkD,IAAI,IAAwJ","sources":["webpack://appshell-react-shell/../../node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,n,t,r,i,a=-1,o=function(e){addEventListener(\"pageshow\",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),r=\"navigate\";return a>=0?r=\"back-forward-cache\":t&&(r=document.prerendering||u()>0?\"prerender\":document.wasDiscarded?\"restore\":t.type.replace(/_/g,\"-\")),{name:e,value:void 0===n?-1:n,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},d=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?\"poor\":e>n[0]?\"needs-improvement\":\"good\"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},v=function(e){var n=function(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||e(n)};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},p=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){\"hidden\"===document.visibilityState&&m>-1&&(m=\"visibilitychange\"===e.type?e.timeStamp:0,T())},y=function(){addEventListener(\"visibilitychange\",g,!0),addEventListener(\"prerenderingchange\",g,!0)},T=function(){removeEventListener(\"visibilitychange\",g,!0),removeEventListener(\"prerenderingchange\",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},L=function(e,n){n=n||{},C((function(){var t,r=[1800,3e3],i=E(),a=f(\"FCP\"),c=s(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(c.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-u(),0),a.entries.push(e),t(!0)))}))}));c&&(t=d(e,a,r,n.reportAllChanges),o((function(i){a=f(\"FCP\"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,t(!0)}))})))}))},b=function(e,n){n=n||{},L(p((function(){var t,r=[.1,.25],i=f(\"CLS\",0),a=0,c=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e])}})),a>i.value&&(i.value=a,i.entries=c,t())},p=s(\"layout-shift\",u);p&&(t=d(e,i,r,n.reportAllChanges),v((function(){u(p.takeRecords()),t(!0)})),o((function(){a=0,i=f(\"CLS\",0),t=d(e,i,r,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},w={passive:!0,capture:!0},S=new Date,A=function(r,i){e||(e=i,n=r,t=new Date,F(removeEventListener),I())},I=function(){if(n>=0&&n<t-S){var i={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n};r.forEach((function(e){e(i)})),r=[]}},P=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,n){var t=function(){A(e,n),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",t,w),removeEventListener(\"pointercancel\",r,w)};addEventListener(\"pointerup\",t,w),addEventListener(\"pointercancel\",r,w)}(n,e):A(n,e)}},F=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(n){return e(n,P,w)}))},M=function(t,i){i=i||{},C((function(){var a,c=[100,300],u=E(),l=f(\"FID\"),m=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),a(!0))},h=function(e){e.forEach(m)},g=s(\"first-input\",h);a=d(t,l,c,i.reportAllChanges),g&&v(p((function(){h(g.takeRecords()),g.disconnect()}))),g&&o((function(){var o;l=f(\"FID\"),a=d(t,l,c,i.reportAllChanges),r=[],n=-1,e=null,F(addEventListener),o=m,r.push(o),I()}))}))},k=0,D=1/0,x=0,B=function(e){e.forEach((function(e){e.interactionId&&(D=Math.min(D,e.interactionId),x=Math.max(x,e.interactionId),k=x?(x-D)/7+1:0)}))},R=function(){return i?k:performance.interactionCount||0},H=function(){\"interactionCount\"in performance||i||(i=s(\"event\",B,{type:\"event\",buffered:!0,durationThreshold:0}))},N=0,O=function(){return R()-N},q=[],j={},_=function(e){var n=q[q.length-1],t=j[e.interactionId];if(t||q.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};j[r.id]=r,q.push(r)}q.sort((function(e,n){return n.latency-e.latency})),q.splice(10).forEach((function(e){delete j[e.id]}))}},z=function(e,n){n=n||{},C((function(){var t=[200,500];H();var r,i=f(\"INP\"),a=function(e){e.forEach((function(e){(e.interactionId&&_(e),\"first-input\"===e.entryType)&&(!q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&_(e))}));var n,t=(n=Math.min(q.length-1,Math.floor(O()/50)),q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},c=s(\"event\",a,{durationThreshold:n.durationThreshold||40});r=d(e,i,t,n.reportAllChanges),c&&(c.observe({type:\"first-input\",buffered:!0}),v((function(){a(c.takeRecords()),i.value<0&&O()>0&&(i.value=0,i.entries=[]),r(!0)})),o((function(){q=[],N=R(),i=f(\"INP\"),r=d(e,i,t,n.reportAllChanges)})))}))},G={},J=function(e,n){n=n||{},C((function(){var t,r=[2500,4e3],i=E(),a=f(\"LCP\"),c=function(e){var n=e[e.length-1];if(n){var r=Math.max(n.startTime-u(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[n],t())}},m=s(\"largest-contentful-paint\",c);if(m){t=d(e,a,r,n.reportAllChanges);var h=p((function(){G[a.id]||(c(m.takeRecords()),m.disconnect(),G[a.id]=!0,t(!0))}));[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,h,!0)})),v(h),o((function(i){a=f(\"LCP\"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,G[a.id]=!0,t(!0)}))}))}}))},K=function e(n){document.prerendering?C((function(){return e(n)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(n)}),!0):setTimeout(n,0)},Q=function(e,n){n=n||{};var t=[800,1800],r=f(\"TTFB\"),i=d(e,r,t,n.reportAllChanges);K((function(){var a=c();if(a){var s=a.responseStart;if(s<=0||s>performance.now())return;r.value=Math.max(s-u(),0),r.entries=[a],i(!0),o((function(){r=f(\"TTFB\",0),(i=d(e,r,t,n.reportAllChanges))(!0)}))}}))};export{b as getCLS,L as getFCP,M as getFID,z as getINP,J as getLCP,Q as getTTFB,b as onCLS,L as onFCP,M as onFID,z as onINP,J as onLCP,Q as onTTFB};\n"],"names":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"src_bootstrap_tsx-webpack_sharing_consume_default_react-dom_react-dom.js","mappings":";;;;;;;;;;;;;AAAA;;AAQA;AACA,MAAMA,GAAG,GAAGC,MAAM,CAACC,gBAAgB,IAAI,CAAC,CAAC;AAEzC,MAAMC,mBAAmB,GAAGH,GAAG,CAACG,mBAAmB,IAAI,EAAE;AAEzD,iEAAe;EACbA,mBAAmB;EACnBC,aAAa,EAAEJ,GAAG,CAACI,aAAa;EAChCC,mBAAmB,EAAEL,GAAG,CAACK,mBAAmB,IAAI,IAAI;EACpDC,mBAAmB,EAAE,GAAGH,mBAAmB,uBAAuB;EAClEI,sBAAsB,EAAEP,GAAG,CAACO,sBAAsB,IAAI,SAAS;EAC/DC,oBAAoB,EAAER,GAAG,CAACQ,oBAAoB,IAAI;AACpD,CAAC,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEpByC;AAGd;AACJ;AAExB,iEAAeG,qDAAY,E;;;;;;;;;;;;;;;ACDkB;AAE7C,MAAMK,SAAS,GAAG,UAAU;;AAE5B;AACA,IAAIC,WAAW,GAAG,KAAK;AACvB,MAAMC,gBAAgB,GAAG,IAAIC,GAAG,CAAS,CAAC;AAE1C,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EAC9B,IAAIH,WAAW,EAAE;EACjBA,WAAW,GAAG,IAAI;;EAElB;EACA;EACA;EACA,IAAIL,gFAAW,CAAC,CAAC,EAAE;EAEnBC,yEAAI,CAAC;IAAEQ,IAAI,EAAEL,SAAS;IAAEM,OAAO,EAAE;EAAG,CAAC,CAAC;AACxC,CAAC;AAED,iEAAe,OACbC,KAAa,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../core/src/index.ts","webpack://appshell-react-shell/../loader/src/index.ts","webpack://appshell-react-shell/../loader/src/loadAppshellComponent.ts","webpack://appshell-react-shell/../loader/src/remoteLoader.ts","webpack://appshell-react-shell/../loader/src/resolvers.ts","webpack://appshell-react-shell/../loader/src/types.ts","webpack://appshell-react-shell/../react/src/components/AppshellComponent.tsx","webpack://appshell-react-shell/../react/src/components/LoadingError.tsx","webpack://appshell-react-shell/../react/src/components/ReactHost.tsx","webpack://appshell-react-shell/../react/src/contexts/GlobalConfigContext.tsx","webpack://appshell-react-shell/../react/src/contexts/ManifestContext.tsx","webpack://appshell-react-shell/../react/src/contexts/MetadataContext.tsx","webpack://appshell-react-shell/../react/src/contexts/RemoteContext.tsx","webpack://appshell-react-shell/../react/src/hooks/useGlobalConfig.ts","webpack://appshell-react-shell/../react/src/hooks/useManifest.ts","webpack://appshell-react-shell/../react/src/hooks/useMetadata.ts","webpack://appshell-react-shell/../react/src/hooks/useRemote.ts","webpack://appshell-react-shell/../react/src/index.ts","webpack://appshell-react-shell/../react/src/resources/jsonResource.ts","webpack://appshell-react-shell/./src/bootstrap.tsx","webpack://appshell-react-shell/./src/components/Splash.tsx","webpack://appshell-react-shell/./src/overlayBadge.ts","webpack://appshell-react-shell/./src/reportWebVitals.ts","webpack://appshell-react-shell/./src/reset.css","webpack://appshell-react-shell/./src/reset.css?5a04"],"sourcesContent":["/* eslint-disable no-underscore-dangle */\ndeclare global {\n interface Window {\n // eslint-disable-next-line import/prefer-default-export, @typescript-eslint/naming-convention\n __appshell_env__?: Record<string, string | undefined>;\n }\n}\n\n// Absent when the registry served the page — it inlines the composition instead.\nconst env = window.__appshell_env__ ?? {};\n\nconst APPSHELL_PUBLIC_URL = env.APPSHELL_PUBLIC_URL || '';\n\nexport default {\n APPSHELL_PUBLIC_URL,\n APPSHELL_ROOT: env.APPSHELL_ROOT,\n APPSHELL_ROOT_PROPS: env.APPSHELL_ROOT_PROPS || '{}',\n APPSHELL_CONFIG_URL: `${APPSHELL_PUBLIC_URL}/appshell.config.json`,\n APPSHELL_PRIMARY_COLOR: env.APPSHELL_PRIMARY_COLOR || '#8ed6fb',\n APPSHELL_THEME_COLOR: env.APPSHELL_THEME_COLOR || '#282c34',\n};\n","export {\n type AppshellIndex,\n type AppshellManifest,\n type AppshellRemote,\n type Metadata,\n} from '@appshell/config';\nexport { default as APPSHELL_ENV } from './appshell.env';\n","import remoteLoader from './remoteLoader';\n\nexport type { RemoteLoaderOptions } from './remoteLoader';\nexport * from './resolvers';\nexport * from './types';\n\nexport default remoteLoader;\n","import {\n getInstance,\n init,\n loadRemote,\n registerRemotes,\n} from '@module-federation/enhanced/runtime';\n\nconst HOST_NAME = 'Appshell';\n\n// The runtime instance and each remote's registration only need to happen once per page load.\nlet initialized = false;\nconst registeredScopes = new Set<string>();\n\nconst ensureInitialized = () => {\n if (initialized) return;\n initialized = true;\n\n // A host that ships its own ModuleFederationPlugin (e.g. @appshell/react-shell) already\n // created the global federation instance during its own bootstrap. Re-calling `init()`\n // with a different name throws (#RUNTIME-010), so reuse whatever instance already exists.\n if (getInstance()) return;\n\n init({ name: HOST_NAME, remotes: [] });\n};\n\nexport default async <TComponent>(\n scope: string,\n module: string,\n remoteEntryUrl: string,\n shareScope = 'default',\n) => {\n // eslint-disable-next-line no-console\n console.debug(\n `loading Appshell component: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,\n );\n\n ensureInitialized();\n\n // Registered exactly once, and never re-registered or cache-busted afterwards.\n //\n // A remote served by a dev server updates itself: its `remoteEntry` already carries\n // webpack's HMR runtime and a dev-server client, so an edit is applied in place\n // behind a container identity that does not move. Re-registering the same scope, or\n // appending a cache-busting query to its entry, changes that identity and the\n // `publicPath` derived from it mid-flight, which strands the `*.hot-update.json` and\n // `*.hot-update.js` requests the remote is midway through making.\n if (!registeredScopes.has(scope)) {\n registeredScopes.add(scope);\n registerRemotes([{ name: scope, entry: remoteEntryUrl }]);\n }\n\n // Federation ids drop the leading `./` that `exposes` keys use.\n const exposed = module.replace(/^\\.\\//, '');\n const Module = await loadRemote<{ default: TComponent }>(`${scope}/${exposed}`);\n\n if (!Module) {\n throw new Error(`Failed to find module container ${scope}`);\n }\n\n // eslint-disable-next-line no-console\n console.debug(\n `Appshell component loaded: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,\n );\n\n return Module.default;\n};\n","/* eslint-disable no-underscore-dangle */\nimport type { AppshellComposition, AppshellGlobalConfig } from '@appshell/config';\nimport loadAppshellComponent from './loadAppshellComponent';\nimport {\n chainResolvers,\n inlineResolver,\n legacyManifestResolver,\n registryResolver,\n type RemoteResolver,\n} from './resolvers';\n\ndeclare global {\n interface Window {\n [key: string]: unknown;\n __appshell_config__?: AppshellComposition;\n }\n}\n\nexport type RemoteLoaderOptions = {\n composition?: AppshellComposition;\n /** Replaces the resolver chain outright; a seam for tests and embedders. */\n resolver?: RemoteResolver;\n};\n\nexport default (config: AppshellGlobalConfig, options: RemoteLoaderOptions = {}) => {\n const composition =\n options.composition ?? (typeof window === 'undefined' ? undefined : window.__appshell_config__);\n\n const resolve =\n options.resolver ??\n chainResolvers(\n inlineResolver(composition),\n registryResolver(composition),\n legacyManifestResolver(config),\n );\n\n return async <TComponent>(key: string) => {\n const failed = (err: unknown) =>\n new Error(`Failed to load component '${key}'. ${err?.toString()}`);\n\n let resolution;\n try {\n resolution = await resolve(key);\n } catch (err) {\n throw failed(err);\n }\n\n if (!resolution) {\n throw new Error(`Remote resource not found in registry. Expected: ${key}`);\n }\n\n const { remote, environment, manifest } = resolution;\n\n try {\n window[`__appshell_env__${remote.scope}`] = environment;\n\n const Component = await loadAppshellComponent<TComponent>(\n remote.scope,\n remote.module,\n remote.remoteEntryUrl,\n remote.shareScope,\n );\n\n return [Component, manifest] as const;\n } catch (err) {\n throw failed(err);\n }\n };\n};\n","import type {\n AppshellComposition,\n AppshellGlobalConfig,\n AppshellManifest,\n ResolvedRemote,\n} from '@appshell/config';\n\nexport type RemoteResolution = {\n remote: ResolvedRemote;\n /** Already merged with the environment's overrides — nothing left for the browser to layer on. */\n environment: Record<string, string | number | undefined>;\n /** Back-compat payload for `ManifestProvider`; synthesized when the source was a composition. */\n manifest: AppshellManifest;\n};\n\nexport type RemoteResolver = (key: string) => Promise<RemoteResolution | undefined>;\n\nconst manifestOf = (composition: AppshellComposition, remotes: AppshellManifest['remotes']) => ({\n remotes,\n environment: composition.environment,\n modules: {},\n});\n\n/** The registry inlined the composition into the page, so no network call is needed. */\nexport const inlineResolver =\n (composition?: AppshellComposition): RemoteResolver =>\n async (key) => {\n const remote = composition?.remotes[key];\n if (!composition || !remote) return undefined;\n\n return {\n remote,\n environment: composition.environment[remote.scope] ?? {},\n manifest: manifestOf(composition, composition.remotes),\n };\n };\n\n/** Fetch-on-miss: covers an app activated after this page was served. */\nexport const registryResolver =\n (composition?: AppshellComposition, origin = ''): RemoteResolver =>\n async (key) => {\n if (!composition) return undefined;\n\n const url = `${origin}/v1/environments/${composition.environmentId}/remotes/${key}`;\n const response = await fetch(url, { credentials: 'include' });\n if (!response.ok) return undefined;\n\n const remote: ResolvedRemote = await response.json();\n\n return {\n remote,\n environment: composition.environment[remote.scope] ?? {},\n manifest: manifestOf(composition, { [key]: remote }),\n };\n };\n\n/**\n * Pre-registry hosts: follow `index[key]` to the app's own manifest. The override\n * merge stays here because in this mode no server has done it.\n */\nexport const legacyManifestResolver = (config: AppshellGlobalConfig): RemoteResolver => {\n const cache = new Map<string, Promise<AppshellManifest>>();\n\n const fetchManifest = (url: string) => {\n const cached = cache.get(url);\n if (cached) return cached;\n\n const pending = fetch(url, { credentials: 'include' }).then(async (response) => {\n if (!response.ok) {\n throw new Error(`Failed to get manifest from ${url}. ${await response.text()}`);\n }\n return response.json() as Promise<AppshellManifest>;\n });\n\n cache.set(url, pending);\n\n return pending;\n };\n\n return async (key) => {\n const manifestUrl = config.index?.[key];\n if (!manifestUrl) return undefined;\n\n const manifest = await fetchManifest(manifestUrl);\n const remote = manifest?.remotes[key];\n if (!remote) return undefined;\n\n return {\n remote,\n environment: {\n ...(manifest.environment[remote.scope] ?? {}),\n ...(config.overrides?.environment?.[remote.scope] ?? {}),\n },\n manifest,\n };\n };\n};\n\nexport const chainResolvers =\n (...resolvers: RemoteResolver[]): RemoteResolver =>\n async (key) => {\n // eslint-disable-next-line no-restricted-syntax\n for (const resolve of resolvers) {\n // eslint-disable-next-line no-await-in-loop\n const resolution = await resolve(key);\n if (resolution) return resolution;\n }\n\n return undefined;\n };\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ShareScope<TComponent = any> = Record<\n string,\n Record<string, { loaded?: 1; get: () => Promise<TComponent>; from: string; eager: boolean }>\n>;\n\nexport interface ModuleContainer<TComponent> {\n init(shareScope: ShareScope<TComponent>): Promise<void>;\n get(module: string): Promise<() => Record<string, TComponent>>;\n}\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { AppshellIndex } from '@appshell/config';\nimport remoteLoader from '@appshell/loader';\nimport React, { ComponentType, ReactElement, ReactNode, useEffect, useState } from 'react';\nimport { ManifestProvider } from '../contexts/ManifestContext';\nimport { RemoteProvider } from '../contexts/RemoteContext';\nimport useGlobalConfig from '../hooks/useGlobalConfig';\nimport LoadingError from './LoadingError';\n\nexport type ExtendedProps = Record<string, unknown>;\n\ndeclare global {\n interface Window {\n __appshell_index__: AppshellIndex;\n }\n}\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint\nexport type AppshellComponentProps<TProps extends ExtendedProps = ExtendedProps> = {\n remote: string;\n fallback?: ReactNode;\n} & TProps;\n\n/**\n * Loads a remote once and leaves it alone.\n *\n * Keeping a remote current while it is being developed is not this component's job.\n * A remote served by a dev server ships webpack's HMR runtime and a dev-server client\n * inside its own `remoteEntry`, so it applies its own edits in place and React Fast\n * Refresh swaps the component implementations underneath this tree — no reload, and no\n * remount that would discard state this component never owned.\n *\n * Watching the remote's socket from here and reloading the page was strictly worse: it\n * raced the remote's own update, and it threw away the entire composed app to deliver a\n * change to one subtree. When webpack genuinely cannot apply an update, the remote's own\n * client still falls back to a full reload — which is the right place for that decision,\n * because it is the only side that knows whether the update applied.\n */\nconst AppshellComponent = <TProps extends ExtendedProps>({\n remote,\n fallback,\n ...rest\n}: AppshellComponentProps<TProps>): ReactElement<TProps> => {\n const config = useGlobalConfig();\n const [element, setElement] = useState<ReactElement>();\n\n useEffect(() => {\n let disposed = false;\n const loadComponent = remoteLoader(config);\n\n async function load() {\n try {\n const [Component, manifest] = await loadComponent<ComponentType>(remote);\n\n if (disposed || !Component) {\n return;\n }\n\n setElement(\n <ManifestProvider manifest={manifest}>\n <RemoteProvider remote={manifest.remotes[remote]}>\n <Component {...rest} />\n </RemoteProvider>\n </ManifestProvider>,\n );\n } catch (err) {\n if (!disposed) {\n setElement(<LoadingError remote={remote} reason={`${err}`} />);\n }\n }\n }\n\n setElement(undefined);\n load();\n\n return () => {\n disposed = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [remote, config, ...Object.values(rest)]);\n\n // eslint-disable-next-line no-console\n console.debug(`rendering AppshellComponent[${remote}], loading=${!element}`);\n // eslint-disable-next-line react/jsx-no-useless-fragment\n return <>{element || fallback}</>;\n};\n\nAppshellComponent.defaultProps = {\n fallback: undefined,\n};\n\nexport default AppshellComponent;\n\n/**\n * @deprecated This component is deprecated and will be removed in future versions.\n * Please use AppshellComponent instead.\n */\nexport const FederatedComponent = AppshellComponent;\n","import React, { FC } from 'react';\n\ntype ErrorProps = {\n remote: string;\n reason: string;\n};\n\nconst LoadingError: FC<ErrorProps> = ({ remote, reason }) => (\n <div style={{ border: '3px solid red' }}>\n <h5>{`Error loading Appshell component '${remote}.'`}</h5>\n <span style={{ fontSize: '1rem' }}>{reason}</span>\n </div>\n);\n\nexport default LoadingError;\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { AppshellGlobalConfig } from 'packages/config/src/types';\nimport React, { FC, ReactNode, useEffect } from 'react';\nimport { GlobalConfigProvider } from '../contexts/GlobalConfigContext';\nimport AppshellComponent from './AppshellComponent';\n\n/** The registry inlines the composition, so a shell it served needs no config fetch. */\nconst inlinedConfig = (): AppshellGlobalConfig | undefined => {\n const composition = typeof window === 'undefined' ? undefined : window.__appshell_config__;\n return composition && { index: composition.index };\n};\n\nconst ReactHost: FC<{\n configUrl?: string;\n remote: string;\n fallback?: ReactNode;\n [x: string]: unknown;\n}> = ({ configUrl, remote, fallback, ...rest }) => {\n const [config, setGlobalConfig] = React.useState<AppshellGlobalConfig | undefined>(inlinedConfig);\n\n useEffect(() => {\n if (config) {\n return;\n }\n\n if (!configUrl) {\n setGlobalConfig({ index: {} });\n return;\n }\n\n const fetchGlobalConfig = async () => {\n const res = await fetch(configUrl);\n setGlobalConfig(res.ok ? await res.json() : { index: {} });\n };\n\n fetchGlobalConfig();\n }, [config, configUrl]);\n\n if (!config) {\n return null;\n }\n\n return (\n <GlobalConfigProvider config={config}>\n <AppshellComponent remote={remote} fallback={fallback} {...rest} />\n </GlobalConfigProvider>\n );\n};\n\nReactHost.defaultProps = {\n configUrl: undefined,\n fallback: undefined,\n};\n\nexport default ReactHost;\n","import { AppshellGlobalConfig } from 'packages/config/src/types';\nimport React, { createContext, FC, ReactNode } from 'react';\n\ninterface GlobalConfigProviderProps {\n config: AppshellGlobalConfig;\n children: ReactNode;\n}\n\nexport const GlobalConfigContext = createContext<AppshellGlobalConfig>({ index: {} });\n\nexport const GlobalConfigProvider: FC<GlobalConfigProviderProps> = ({ config, children }) => (\n <GlobalConfigContext.Provider value={config}>{children}</GlobalConfigContext.Provider>\n);\n\nexport const GlobalConfigConsumer = GlobalConfigContext.Consumer;\n\nexport default GlobalConfigContext;\n","import { AppshellManifest } from '@appshell/config';\nimport type { FC, ReactNode } from 'react';\nimport React, { createContext, useMemo } from 'react';\n\ninterface ManifestProviderProps {\n manifest: AppshellManifest;\n children: ReactNode;\n}\n\nexport const ManifestContext = createContext<AppshellManifest>({\n remotes: {},\n modules: {},\n environment: {},\n});\n\n// `modules` is build-time webpack config that the browser has no use for, and it is\n// the bulkiest field to inline. Warn for one release to find any consumer still on it.\nconst deprecateModules = (manifest: AppshellManifest): AppshellManifest =>\n new Proxy(manifest, {\n get(target, property, receiver) {\n if (property === 'modules') {\n // eslint-disable-next-line no-console\n console.warn(\n 'useManifest().modules is deprecated and will be removed. It is build-time webpack config; use useRemote() for what the browser needs. Please open an issue at github.com/appshell-org/appshell if you rely on it.',\n );\n }\n\n return Reflect.get(target, property, receiver);\n },\n });\n\nexport const ManifestProvider: FC<ManifestProviderProps> = ({ manifest, children }) => {\n const value = useMemo(() => deprecateModules(manifest), [manifest]);\n\n return <ManifestContext.Provider value={value}>{children}</ManifestContext.Provider>;\n};\n\nexport const ManifestConsumer = ManifestContext.Consumer;\n\nexport default ManifestContext;\n","import { Metadata } from '@appshell/config';\nimport React, { createContext, FC, ReactNode } from 'react';\n\ninterface MetadataProviderProps {\n metata: Metadata;\n children: ReactNode;\n}\n\nexport const MetadataContext = createContext<Metadata>({});\n\nexport const MetadataProvider: FC<MetadataProviderProps> = ({ metata, children }) => (\n <MetadataContext.Provider value={metata}>{children}</MetadataContext.Provider>\n);\n\nexport const MetadataConsumer = MetadataContext.Consumer;\n\nexport default MetadataContext;\n","import { AppshellRemote } from '@appshell/config';\nimport type { FC, ReactNode } from 'react';\nimport React, { createContext } from 'react';\n\ninterface RemoteProviderProps {\n remote?: AppshellRemote;\n children: ReactNode;\n}\n\nexport const RemoteContext = createContext<AppshellRemote | undefined>(undefined);\n\nexport const RemoteProvider: FC<RemoteProviderProps> = ({ remote, children }) => (\n <RemoteContext.Provider value={remote}>{children}</RemoteContext.Provider>\n);\n\nRemoteProvider.defaultProps = {\n remote: undefined,\n};\n\nexport const RemoteConsumer = RemoteContext.Consumer;\n\nexport default RemoteContext;\n","import { AppshellGlobalConfig } from 'packages/config/src/types';\nimport React from 'react';\n// eslint-disable-next-line import/no-named-as-default\nimport GlobalConfigContext from '../contexts/GlobalConfigContext';\n\nexport default (): AppshellGlobalConfig =>\n React.useContext<AppshellGlobalConfig>(GlobalConfigContext);\n","import { AppshellManifest } from '@appshell/config';\nimport React from 'react';\n\n// eslint-disable-next-line import/no-named-as-default\nimport ManifestContext from '../contexts/ManifestContext';\n\nexport default (): AppshellManifest => React.useContext<AppshellManifest>(ManifestContext);\n","import { Metadata } from '@appshell/config';\nimport React from 'react';\n// eslint-disable-next-line import/no-named-as-default\nimport MetadataContext from '../contexts/MetadataContext';\n\nexport default (): Metadata => React.useContext<Metadata>(MetadataContext);\n","import { AppshellRemote } from '@appshell/config';\nimport React from 'react';\n// eslint-disable-next-line import/no-named-as-default\nimport RemoteContext from '../contexts/RemoteContext';\n\n/** The remote backing the nearest `AppshellComponent` — it already knows its own key. */\nexport default (): AppshellRemote | undefined => React.useContext(RemoteContext);\n","export { default as AppshellComponent, FederatedComponent } from './components/AppshellComponent';\nexport { default as ReactHost } from './components/ReactHost';\nexport { GlobalConfigProvider } from './contexts/GlobalConfigContext';\nexport { ManifestProvider } from './contexts/ManifestContext';\nexport { MetadataProvider } from './contexts/MetadataContext';\nexport { RemoteProvider } from './contexts/RemoteContext';\nexport { default as useGlobalConfig } from './hooks/useGlobalConfig';\nexport { default as useManifest } from './hooks/useManifest';\nexport { default as useMetadata } from './hooks/useMetadata';\nexport { default as useRemote } from './hooks/useRemote';\nexport { default as jsonResource } from './resources/jsonResource';\n","export default <TResource>(url: string) => {\n let status = 'pending';\n let result: TResource | Error;\n const suspender = fetch(url, {\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n // eslint-disable-next-line consistent-return\n }).then((response) => {\n if (response.ok) {\n return response.json().then((data) => {\n status = 'success';\n result = data;\n });\n }\n status = 'error';\n result = new Error(`${response.status} ${response.statusText} ${response.url}`);\n });\n\n return {\n read() {\n if (status === 'pending') {\n // eslint-disable-next-line @typescript-eslint/no-throw-literal\n throw suspender as Promise<TResource>;\n } else if (status === 'error') {\n throw result as Error;\n } else if (status === 'success') {\n return result;\n }\n\n return undefined;\n },\n };\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { APPSHELL_ENV } from '@appshell/core';\nimport { ReactHost } from '@appshell/react';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Splash from './components/Splash';\nimport mountOverlayBadge from './overlayBadge';\nimport reportWebVitals from './reportWebVitals';\nimport './reset.css';\n\nconst root = createRoot(document.getElementById('root') as HTMLElement);\n\n// A registry-served shell inlines these; the build-time env is the standalone fallback.\nconst composition = window.__appshell_config__;\n\n// Outside the React root on purpose, so it outlives a crash in the composed app.\nmountOverlayBadge(composition);\n\nconst remote = composition?.root || APPSHELL_ENV.APPSHELL_ROOT;\nconst props = composition?.rootProps ?? JSON.parse(APPSHELL_ENV.APPSHELL_ROOT_PROPS);\n\nif (!remote) {\n throw new Error(\n `No root remote to mount. The registry supplies one; a standalone build needs APPSHELL_ROOT.`,\n );\n}\n\nroot.render(\n <React.StrictMode>\n <ReactHost\n configUrl={composition ? undefined : APPSHELL_ENV.APPSHELL_CONFIG_URL}\n remote={remote}\n fallback={<Splash />}\n {...props}\n />\n </React.StrictMode>,\n);\n\nreportWebVitals();\n","import { APPSHELL_ENV } from '@appshell/core';\nimport React from 'react';\nimport Loading from 'react-spinners/PropagateLoader';\n\nconst Splash = () => (\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexGrow: 1,\n height: '100vh',\n backgroundColor: APPSHELL_ENV.APPSHELL_THEME_COLOR,\n }}\n >\n <Loading color={APPSHELL_ENV.APPSHELL_PRIMARY_COLOR} speedMultiplier={1.5} size={24} />\n </div>\n);\n\nexport default Splash;\n","import type { AppshellComposition } from '@appshell/config';\n\n/**\n * Marks a page whose remotes have been redirected by a per-developer overlay.\n *\n * Deliberately plain DOM in its own element rather than a component inside the React\n * tree, for two reasons. It has to survive a crash in the composed app — the moment\n * the page misbehaves is exactly when knowing your remotes are not the published ones\n * matters most — and nothing about it is React-specific, so it lifts into a shared\n * package unchanged the day a second shell implementation exists.\n *\n * Styles are inline: the badge renders alongside whatever CSS the remotes ship, and a\n * stylesheet of its own would be one more thing for them to override.\n */\n\nconst CONTAINER_ID = 'appshell-overlay-badge';\n\nconst styles = {\n container: [\n 'position:fixed',\n 'bottom:12px',\n 'left:12px',\n 'z-index:2147483647',\n 'max-width:min(420px, calc(100vw - 24px))',\n 'padding:8px 12px',\n 'border-radius:6px',\n 'border:1px solid #f0b429',\n 'background:#3d3016',\n 'color:#f7e3a1',\n 'font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace',\n 'box-shadow:0 2px 8px rgba(0,0,0,.35)',\n ].join(';'),\n summary: 'cursor:pointer;font-weight:600;list-style:none',\n list: 'margin:6px 0 0;padding-left:16px',\n};\n\nconst escape = (value: string) => value.replace(/&/g, '&amp;').replace(/</g, '&lt;');\n\nexport const overlayBadgeMarkup = (\n remotes: string[],\n shellFlavor: 'prod' | 'dev' = 'prod',\n): string => {\n const changes = [\n shellFlavor === 'dev' && 'development shell',\n remotes.length && `${remotes.length} remote${remotes.length === 1 ? '' : 's'} redirected`,\n ].filter(Boolean);\n\n const items = remotes\n // The keys come from the registry's own composition, but this string is written\n // straight into innerHTML, so it is escaped rather than trusted by provenance.\n .map((key) => `<li>${escape(key)}</li>`)\n .join('');\n\n return [\n `<details style=\"${styles.container}\" open>`,\n `<summary style=\"${styles.summary}\">⚠ Development overlay — ${changes.join(', ')}</summary>`,\n items ? `<ul style=\"${styles.list}\">${items}</ul>` : '',\n '</details>',\n ].join('');\n};\n\nexport default (composition?: AppshellComposition): void => {\n const overlay = composition?.overlay;\n\n // The registry only emits the block when an overlay changed something, so its mere\n // presence is the signal. A shell-only overlay has no remotes and still has to show.\n if (!overlay || document.getElementById(CONTAINER_ID)) return;\n\n const container = document.createElement('div');\n container.id = CONTAINER_ID;\n container.innerHTML = overlayBadgeMarkup(overlay.remotes ?? [], overlay.shellFlavor);\n\n document.body.appendChild(container);\n};\n","// eslint-disable-next-line import/named\nimport { ReportCallback } from 'web-vitals';\n\nconst reportWebVitals = (onPerfEntry?: ReportCallback) => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"body {\\n margin: 0;\\n font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',\\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\\n sans-serif;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/reset.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,SAAS;EACT;;cAEY;EACZ,mCAAmC;EACnC,kCAAkC;AACpC\",\"sourcesContent\":[\"body {\\n margin: 0;\\n font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',\\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\\n sans-serif;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./reset.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./reset.css\";\n export default content && content.locals ? content.locals : undefined;\n"],"names":["env","window","__appshell_env__","APPSHELL_PUBLIC_URL","APPSHELL_ROOT","APPSHELL_ROOT_PROPS","APPSHELL_CONFIG_URL","APPSHELL_PRIMARY_COLOR","APPSHELL_THEME_COLOR","default","APPSHELL_ENV","remoteLoader","getInstance","init","loadRemote","registerRemotes","HOST_NAME","initialized","registeredScopes","Set","ensureInitialized","name","remotes","scope","module","remoteEntryUrl","shareScope","console","debug","has","add","entry","exposed","replace","Module","Error","loadAppshellComponent","chainResolvers","inlineResolver","legacyManifestResolver","registryResolver","config","options","composition","undefined","__appshell_config__","resolve","resolver","key","failed","err","toString","resolution","remote","environment","manifest","Component","manifestOf","modules","origin","url","environmentId","response","fetch","credentials","ok","json","cache","Map","fetchManifest","cached","get","pending","then","text","set","manifestUrl","index","overrides","resolvers","React","useEffect","useState","ManifestProvider","RemoteProvider","useGlobalConfig","LoadingError","AppshellComponent","fallback","rest","element","setElement","disposed","loadComponent","load","createElement","reason","Object","values","Fragment","defaultProps","FederatedComponent","style","border","fontSize","GlobalConfigProvider","inlinedConfig","ReactHost","configUrl","setGlobalConfig","fetchGlobalConfig","res","_extends","createContext","GlobalConfigContext","children","Provider","value","GlobalConfigConsumer","Consumer","useMemo","ManifestContext","deprecateModules","Proxy","target","property","receiver","warn","Reflect","ManifestConsumer","MetadataContext","MetadataProvider","metata","MetadataConsumer","RemoteContext","RemoteConsumer","useContext","useManifest","useMetadata","useRemote","jsonResource","status","result","suspender","headers","Accept","data","statusText","read","createRoot","Splash","mountOverlayBadge","reportWebVitals","root","document","getElementById","props","rootProps","JSON","parse","render","StrictMode","Loading","display","alignItems","justifyContent","flexGrow","height","backgroundColor","color","speedMultiplier","size","CONTAINER_ID","styles","container","join","summary","list","escape","overlayBadgeMarkup","shellFlavor","changes","length","filter","Boolean","items","map","overlay","id","innerHTML","body","appendChild","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB"],"sourceRoot":""}