4 lines
18 KiB
JavaScript
4 lines
18 KiB
JavaScript
![]() |
/* single-spa@5.9.4 - ES2015 - prod */
|
||
|
var t=Object.freeze({__proto__:null,get start(){return Mt},get ensureJQuerySupport(){return st},get setBootstrapMaxTime(){return k},get setMountMaxTime(){return K},get setUnmountMaxTime(){return F},get setUnloadMaxTime(){return J},get registerApplication(){return gt},get unregisterApplication(){return vt},get getMountedApps(){return mt},get getAppStatus(){return wt},get unloadApplication(){return yt},get checkActivityFunctions(){return Et},get getAppNames(){return dt},get pathToActiveWhen(){return Tt},get navigateToUrl(){return Y},get triggerAppChange(){return St},get addErrorHandler(){return i},get removeErrorHandler(){return s},get mountRootParcel(){return x},get NOT_LOADED(){return c},get LOADING_SOURCE_CODE(){return l},get NOT_BOOTSTRAPPED(){return f},get BOOTSTRAPPING(){return p},get NOT_MOUNTED(){return h},get MOUNTING(){return m},get UPDATING(){return w},get LOAD_ERROR(){return E},get MOUNTED(){return d},get UNMOUNTING(){return g},get SKIP_BECAUSE_BROKEN(){return v}}),e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,n=function(){try{var t=new e("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?e:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n};let r=[];function o(t,e,n){const o=a(t,e,n);r.length?r.forEach(t=>t(o)):setTimeout(()=>{throw o})}function i(t){if("function"!=typeof t)throw Error(u(28,!1));r.push(t)}function s(t){if("function"!=typeof t)throw Error(u(29,!1));let e=!1;return r=r.filter(n=>{const r=n===t;return e=e||r,!r}),e}function u(t,e,...n){return`single-spa minified message #${t}: ${e?e+" ":""}See https://single-spa.js.org/error/?code=${t}${n.length?`&arg=${n.join("&arg=")}`:""}`}function a(t,e,n){const r=`${b(e)} '${O(e)}' died in status ${e.status}: `;let o;if(t instanceof Error){try{t.message=r+t.message}catch(t){}o=t}else{console.warn(u(30,!1,e.status,O(e)));try{o=Error(r+JSON.stringify(t))}catch(e){o=t}}return o.appOrParcelName=O(e),e.status=n,o}const c="NOT_LOADED",l="LOADING_SOURCE_CODE",f="NOT_BOOTSTRAPPED",p="BOOTSTRAPPING",h="NOT_MOUNTED",m="MOUNTING",d="MOUNTED",w="UPDATING",g="UNMOUNTING",E="LOAD_ERROR",v="SKIP_BECAUSE_BROKEN";function y(t){return t.status===d}function P(t){try{return t.activeWhen(window.location)}catch(e){return o(e,t,v),!1}}function O(t){return t.name}function T(t){return Boolean(t.unmountThisParcel)}function b(t){return T(t)?"parcel":"application"}function A(){for(let t=arguments.length-1;t>0;t--)for(let e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function N(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function S(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!N(e,t=>"function"!=typeof t)));var e}function _(t,e){let n=t[e]||[];n=Array.isArray(n)?n:[n],0===n.length&&(n=[()=>Promise.resolve()]);const r=b(t),o=O(t);return function(t){return n.reduce((n,i,s)=>n.then(()=>{const n=i(t);return D(n)?n:Promise.reject(u(15,!1,r,o,e,s))}),Promise.resolve())}}function D(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function U(t,e){return Promise.resolve().then(()=>t.status!==f?t:(t.status=p,t.bootstrap?H(t,"bootstrap").then(n).catch(n=>{if(e)throw a(n,t,v);return o(n,t,v),t}):Promise.resolve().then(n)));function n(){return t.status=h,t}}function M(t,e){return Promise.resolve().then(()=>{if(t.status!==d)return t;t.status=g;const n=Object.keys(t.parcels).map(e=>t.parcels[e].unmountThisParcel());return Promise.all(n).then(r,n=>r().then(()=>{const r=Error(n.message);if(e)throw a(r,t,v);o(r,t,v)})).then(()=>t);function r(){return H(t,"unmount").then(()=>{t.status=h}
|
||
|
//# sourceMappingURL=single-spa.min.js.map
|