@openmrs/esm-primary-navigation-app 4.0.3-pre.360 → 4.0.3-pre.365
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +29 -29
- package/dist/789.js +1 -1
- package/dist/889.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js.buildmanifest.json +6 -6
- package/dist/openmrs-esm-primary-navigation-app.old +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var t,e,r={1602:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return x()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function m(){}function g(){}function w(){}var y={};c(y,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(L([])));b&&b!==r&&n.call(b,i)&&(y=b);var O=w.prototype=m.prototype=Object.create(y);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:x}}function x(){return{value:e,done:!0}}return g.prototype=w,c(O,"constructor",w),c(w,"constructor",g),g.displayName=c(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},T(P.prototype),c(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>u,genericLinkConfigSchema:()=>a});var n=r(5776),o=r.n(n),i=r(4610),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,e,r)=>{"use strict";r.d(e,{O:()=>n,e:()=>o});var n="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,r)=>{"use strict";var n=r(4610);r(1602),r(8478),n.Type.String,n.Type.String,n.Type.String,n.Type.Array,n.Type.String,n.Type.String,n.validators.isUrl;var o=r(1217),i=Object.freeze({__proto__:null,get start(){return $t},get ensureJQuerySupport(){return vt},get setBootstrapMaxTime(){return V},get setMountMaxTime(){return Y},get setUnmountMaxTime(){return z},get setUnloadMaxTime(){return X},get registerApplication(){return At},get unregisterApplication(){return Lt},get getMountedApps(){return Pt},get getAppStatus(){return _t},get unloadApplication(){return xt},get checkActivityFunctions(){return Nt},get getAppNames(){return St},get pathToActiveWhen(){return Ut},get navigateToUrl(){return at},get triggerAppChange(){return Ct},get addErrorHandler(){return p},get removeErrorHandler(){return h},get mountRootParcel(){return K},get NOT_LOADED(){return m},get LOADING_SOURCE_CODE(){return g},get NOT_BOOTSTRAPPED(){return w},get BOOTSTRAPPING(){return y},get NOT_MOUNTED(){return E},get MOUNTING(){return b},get UPDATING(){return T},get LOAD_ERROR(){return S},get MOUNTED(){return O},get UNMOUNTING(){return P},get SKIP_BECAUSE_BROKEN(){return _}});function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).CustomEvent,s=function(){try{var t=new c("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?c:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var r=document.createEvent("CustomEvent");return e?r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):r.initCustomEvent(t,!1,!1,void 0),r}:function(t,e){var r=document.createEventObject();return r.type=t,e?(r.bubbles=Boolean(e.bubbles),r.cancelable=Boolean(e.cancelable),r.detail=e.detail):(r.bubbles=!1,r.cancelable=!1,r.detail=void 0),r},f=[];function l(t,e,r){var n=v(t,e,r);f.length?f.forEach((function(t){return t(n)})):setTimeout((function(){throw n}))}function p(t){if("function"!=typeof t)throw Error(d(28,!1));f.push(t)}function h(t){if("function"!=typeof t)throw Error(d(29,!1));var e=!1;return f=f.filter((function(r){var n=r===t;return e=e||n,!n})),e}function d(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(n.length?"&arg=".concat(n.join("&arg=")):"")}function v(t,e,r){var n,o="".concat(j(e)," '").concat(L(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}n=t}else{console.warn(d(30,!1,e.status,L(e)));try{n=Error(o+JSON.stringify(t))}catch(e){n=t}}return n.appOrParcelName=L(e),e.status=r,n}var m="NOT_LOADED",g="LOADING_SOURCE_CODE",w="NOT_BOOTSTRAPPED",y="BOOTSTRAPPING",E="NOT_MOUNTED",b="MOUNTING",O="MOUNTED",T="UPDATING",P="UNMOUNTING",S="LOAD_ERROR",_="SKIP_BECAUSE_BROKEN";function A(t){return t.status===O}function N(t){try{return t.activeWhen(window.location)}catch(e){return l(e,t,_),!1}}function L(t){return t.name}function x(t){return Boolean(t.unmountThisParcel)}function j(t){return x(t)?"parcel":"application"}function k(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function U(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!U(e,(function(t){return"function"!=typeof t}))));var e}function M(t,e){var r=t[e]||[];0===(r=Array.isArray(r)?r:[r]).length&&(r=[function(){return Promise.resolve()}]);var n=j(t),o=L(t);return function(t){return r.reduce((function(r,i,a){return r.then((function(){var r=i(t);return R(r)?r:Promise.reject(d(15,!1,n,o,e,a))}))}),Promise.resolve())}}function R(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function C(t,e){return Promise.resolve().then((function(){return t.status!==w?t:(t.status=y,t.bootstrap?Z(t,"bootstrap").then(r).catch((function(r){if(e)throw v(r,t,_);return l(r,t,_),t})):Promise.resolve().then(r))}));function r(){return t.status=E,t}}function G(t,e){return Promise.resolve().then((function(){if(t.status!==O)return t;t.status=P;var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw v(n,t,_);l(n,t,_)}))})).then((function(){return t}));function n(){return Z(t,"unmount").then((function(){t.status=E})).catch((function(r){if(e)throw v(r,t,_);l(r,t,_)}))}}))}var I=!1,B=!1;function $(t,e){return Promise.resolve().then((function(){return t.status!==E?t:(I||(window.dispatchEvent(new s("single-spa:before-first-mount")),I=!0),Z(t,"mount").then((function(){return t.status=O,B||(window.dispatchEvent(new s("single-spa:first-mount")),B=!0),t})).catch((function(r){return t.status=O,G(t,!0).then(n,n);function n(){if(e)throw v(r,t,_);return l(r,t,_),t}})))}))}var W=0,F={parcels:{}};function K(){return q.apply(F,arguments)}function q(t,e){var r=this;if(!t||"object"!==a(t)&&"function"!=typeof t)throw Error(d(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(d(3,!1,a(t.name)));if("object"!==a(e))throw Error(d(4,!1,name,a(e)));if(!e.domElement)throw Error(d(5,!1,name));var n,o=W++,i="function"==typeof t,u=i?t:function(){return Promise.resolve(t)},c={id:o,parcels:{},status:i?g:w,customProps:e,parentName:L(r),unmountThisParcel:function(){return h.then((function(){if(c.status!==O)throw Error(d(6,!1,name,c.status));return G(c,!0)})).then((function(t){return c.parentName&&delete r.parcels[c.id],t})).then((function(t){return f(t),t})).catch((function(t){throw c.status=_,l(t),t}))}};r.parcels[o]=c;var s=u();if(!s||"function"!=typeof s.then)throw Error(d(7,!1));var f,l,p=(s=s.then((function(t){if(!t)throw Error(d(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(d(9,!1,e));if(!D(t.mount))throw Error(d(10,!1,e));if(!D(t.unmount))throw Error(d(11,!1,e));if(t.update&&!D(t.update))throw Error(d(12,!1,e));var r=M(t,"bootstrap"),i=M(t,"mount"),a=M(t,"unmount");c.status=w,c.name=e,c.bootstrap=r,c.mount=i,c.unmount=a,c.timeouts=tt(t.timeouts),t.update&&(c.update=M(t,"update"),n.update=function(t){return c.customProps=t,J(function(t){return Promise.resolve().then((function(){if(t.status!==O)throw Error(d(32,!1,L(t)));return t.status=T,Z(t,"update").then((function(){return t.status=O,t})).catch((function(e){throw v(e,t,_)}))}))}(c))})}))).then((function(){return C(c,!0)})),h=p.then((function(){return $(c,!0)})),m=new Promise((function(t,e){f=t,l=e}));return n={mount:function(){return J(Promise.resolve().then((function(){if(c.status!==E)throw Error(d(13,!1,name,c.status));return r.parcels[o]=c,$(c)})))},unmount:function(){return J(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:J(s),bootstrapPromise:J(p),mountPromise:J(h),unmountPromise:J(m)}}function J(t){return t.then((function(){return null}))}function H(t){var e=L(t),r="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==a(r)||null===r||Array.isArray(r))&&(r={},console.warn(d(40,!1),e,r));var n=k({},r,{name:e,mountParcel:q.bind(t),singleSpa:i});return x(t)&&(n.unmountSelf=t.unmountThisParcel),n}var Q={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function V(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(16,!1));Q.bootstrap={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function Y(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(17,!1));Q.mount={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function z(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(18,!1));Q.unmount={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function X(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(19,!1));Q.unload={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function Z(t,e){var r=t.timeouts[e],n=r.warningMillis,o=j(t);return new Promise((function(i,a){var u=!1,c=!1;t[e](H(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),n),setTimeout((function(){return f(!0)}),r.millis);var s=d(31,!1,e,o,L(t),r.millis);function f(t){if(!u)if(!0===t)c=!0,r.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var e=t,o=e*n;console.warn(s),o+n<r.millis&&setTimeout((function(){return f(e+1)}),n)}}}))}function tt(t){var e={};for(var r in Q)e[r]=k({},Q[r],t&&t[r]||{});return e}function et(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==m&&t.status!==S?t:(t.status=g,t.loadPromise=Promise.resolve().then((function(){var n=t.loadApp(H(t));if(!R(n))throw r=!0,Error(d(33,!1,L(t)));return n.then((function(r){var n;t.loadErrorTime=null,"object"!==a(e=r)&&(n=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(n=35),D(e.mount)||(n=36),D(e.unmount)||(n=37);var o=j(e);if(n){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(d(n,!1,o,L(t),i),e),l(void 0,t,_),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=k({},t.devtools.overlays,e.devtools.overlays)),t.status=w,t.bootstrap=M(e,"bootstrap"),t.mount=M(e,"mount"),t.unmount=M(e,"unmount"),t.unload=M(e,"unload"),t.timeouts=tt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var n;return delete t.loadPromise,r?n=_:(n=S,t.loadErrorTime=(new Date).getTime()),l(e,t,n),t})));var e,r}))}var rt,nt="undefined"!=typeof window,ot={hashchange:[],popstate:[]},it=["hashchange","popstate"];function at(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(d(14,!1));e=t.currentTarget.href,t.preventDefault()}var r=ht(window.location.href),n=ht(e);0===e.indexOf("#")?window.location.hash=n.hash:r.host!==n.host&&n.host?window.location.href=e:n.pathname===r.pathname&&n.search===r.search?window.location.hash=n.hash:window.history.pushState(null,null,e)}function ut(t){var e=this;if(t){var r=t[0].type;it.indexOf(r)>=0&&ot[r].forEach((function(r){try{r.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function ct(){Gt([],arguments)}function st(t,e){return function(){var r=window.location.href,n=t.apply(this,arguments),o=window.location.href;return rt&&r===o||(Wt()?window.dispatchEvent(ft(window.history.state,e)):Gt([])),n}}function ft(t,e){var r;try{r=new PopStateEvent("popstate",{state:t})}catch(e){(r=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return r.singleSpa=!0,r.singleSpaTrigger=e,r}if(nt){window.addEventListener("hashchange",ct),window.addEventListener("popstate",ct);var lt=window.addEventListener,pt=window.removeEventListener;window.addEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0)||U(ot[t],(function(t){return t===e})))return lt.apply(this,arguments);ot[t].push(e)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0))return pt.apply(this,arguments);ot[t]=ot[t].filter((function(t){return t!==e}))},window.history.pushState=st(window.history.pushState,"pushState"),window.history.replaceState=st(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=at}function ht(t){var e=document.createElement("a");return e.href=t,e}var dt=!1;function vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!dt){var e=t.fn.on,r=t.fn.off;t.fn.on=function(t,r){return mt.call(this,e,window.addEventListener,t,r,arguments)},t.fn.off=function(t,e){return mt.call(this,r,window.removeEventListener,t,e,arguments)},dt=!0}}function mt(t,e,r,n,o){return"string"!=typeof r?t.apply(this,o):(r.split(/\s+/).forEach((function(t){it.indexOf(t)>=0&&(e(t,n),r=r.replace(t,""))})),""===r.trim()?this:t.apply(this,o))}var gt={};function wt(t){return Promise.resolve().then((function(){var e=gt[L(t)];if(!e)return t;if(t.status===m)return yt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if(t.status!==E&&t.status!==S)return t;var r=t.status===S?Promise.resolve():Z(t,"unload");return t.status="UNLOADING",r.then((function(){return yt(t,e),t})).catch((function(r){return function(t,e,r){delete gt[L(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,l(r,t,_),e.reject(r)}(t,e,r),t}))}))}function yt(t,e){delete gt[L(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=m,e.resolve()}function Et(t,e,r,n){gt[L(t)]={app:t,resolve:r,reject:n},Object.defineProperty(gt[L(t)],"promise",{get:e})}function bt(t){return gt[t]}var Ot=[];function Tt(){var t=[],e=[],r=[],n=[],o=(new Date).getTime();return Ot.forEach((function(i){var a=i.status!==_&&N(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&r.push(i);break;case m:case g:a&&r.push(i);break;case w:case E:!a&&bt(L(i))?t.push(i):a&&n.push(i);break;case O:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:r,appsToMount:n}}function Pt(){return Ot.filter(A).map(L)}function St(){return Ot.map(L)}function _t(t){var e=U(Ot,(function(e){return L(e)===t}));return e?e.status:null}function At(t,e,r,n){var o=function(t,e,r,n){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===a(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(d(39,!1));var e=["name","app","activeWhen","customProps"],r=Object.keys(t).reduce((function(t,r){return e.indexOf(r)>=0?t:t.concat(r)}),[]);if(0!==r.length)throw Error(d(38,!1,e.join(", "),r.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(d(20,!1));if("object"!==a(t.app)&&"function"!=typeof t.app)throw Error(d(20,!1));var n=function(t){return"string"==typeof t||"function"==typeof t};if(!(n(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(n)))throw Error(d(24,!1));if(!kt(t.customProps))throw Error(d(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,r,n){if("string"!=typeof t||0===t.length)throw Error(d(20,!1));if(!e)throw Error(d(23,!1));if("function"!=typeof r)throw Error(d(24,!1));if(!kt(n))throw Error(d(22,!1))}(t,e,r,n),i.name=t,i.loadApp=e,i.activeWhen=r,i.customProps=n),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:Ut(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,r,n);if(-1!==St().indexOf(o.name))throw Error(d(21,!1,o.name));Ot.push(k({loadErrorTime:null,status:m,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),nt&&(vt(),Gt())}function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Ot.filter((function(e){return e.activeWhen(t)})).map(L)}function Lt(t){if(0===Ot.filter((function(e){return L(e)===t})).length)throw Error(d(25,!1,t));return xt(t).then((function(){var e=Ot.map(L).indexOf(t);Ot.splice(e,1)}))}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(d(26,!1));var r=U(Ot,(function(e){return L(e)===t}));if(!r)throw Error(d(27,!1,t));var n,o=bt(L(r));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Et(r,(function(){return i}),t,e)}));return i}return o?(n=o.promise,jt(r,o.resolve,o.reject)):n=new Promise((function(t,e){Et(r,(function(){return n}),t,e),jt(r,t,e)})),n}function jt(t,e,r){G(t).then(wt).then((function(){e(),setTimeout((function(){Gt()}))})).catch(r)}function kt(t){return!t||"function"==typeof t||"object"===a(t)&&null!==t&&!Array.isArray(t)}function Ut(t,e){var r=function(t,e){var r=0,n=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!n&&":"===a||n&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(r,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=n?"[^/]+/?":a,i===t.length)if(n)e&&(o+="$");else{var u=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}n=!n,r=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var n=t.href.replace(e,"").replace(t.search,"").split("?")[0];return r.test(n)}}var Dt=!1,Mt=[],Rt=nt&&window.location.href;function Ct(){return Gt()}function Gt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(Dt)return new Promise((function(t,r){Mt.push({resolve:t,reject:r,eventArguments:e})}));var r,n=Tt(),o=n.appsToUnload,i=n.appsToUnmount,a=n.appsToLoad,c=n.appsToMount,f=!1,l=Rt,p=Rt=window.location.href;return Wt()?(Dt=!0,r=o.concat(a,i,c),v()):(r=a,d());function h(){f=!0}function d(){return Promise.resolve().then((function(){var t=a.map(et);return Promise.all(t).then(w).then((function(){return[]})).catch((function(t){throw w(),t}))}))}function v(){return Promise.resolve().then((function(){if(window.dispatchEvent(new s(0===r.length?"single-spa:before-no-app-change":"single-spa:before-app-change",y(!0))),window.dispatchEvent(new s("single-spa:before-routing-event",y(!0,{cancelNavigation:h}))),f)return window.dispatchEvent(new s("single-spa:before-mount-routing-event",y(!0))),g(),void at(l);var e=o.map(wt),n=i.map(G).map((function(t){return t.then(wt)})).concat(e),u=Promise.all(n);u.then((function(){window.dispatchEvent(new s("single-spa:before-mount-routing-event",y(!0)))}));var p=a.map((function(t){return et(t).then((function(t){return It(t,u)}))})),d=c.filter((function(t){return a.indexOf(t)<0})).map((function(t){return It(t,u)}));return u.catch((function(t){throw w(),t})).then((function(){return w(),Promise.all(p.concat(d)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(g)}))}))}function g(){var e=Pt();t.forEach((function(t){return t.resolve(e)}));try{var n=0===r.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new s(n,y())),window.dispatchEvent(new s("single-spa:routing-event",y()))}catch(t){setTimeout((function(){throw t}))}if(Dt=!1,Mt.length>0){var o=Mt;Mt=[],Gt(o)}return e}function w(){t.forEach((function(t){ut(t.eventArguments)})),ut(e)}function y(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0,h={},d=(u(t={},O,[]),u(t,E,[]),u(t,m,[]),u(t,_,[]),t);n?(a.concat(c).forEach((function(t,e){g(t,O)})),o.forEach((function(t){g(t,m)})),i.forEach((function(t){g(t,E)}))):r.forEach((function(t){g(t)}));var v={detail:{newAppStatuses:h,appsByNewStatus:d,totalAppChanges:r.length,originalEvent:null==e?void 0:e[0],oldUrl:l,newUrl:p,navigationIsCanceled:f}};return s&&k(v.detail,s),v;function g(t,e){var r=L(t);e=e||_t(r),h[r]=e,(d[e]=d[e]||[]).push(r)}}}function It(t,e){return N(t)?C(t).then((function(t){return e.then((function(){return N(t)?$(t):t}))})):e.then((function(){return t}))}var Bt=!1;function $t(t){var e;Bt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,rt=e),nt&&Gt()}function Wt(){return Bt}nt&&setTimeout((function(){Bt||console.warn(d(1,!1))}),5e3);var Ft={getRawAppData:function(){return[].concat(Ot)},reroute:Gt,NOT_LOADED:m,toLoadPromise:et,toBootstrapPromise:C,unregisterApplication:Lt};nt&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Ft),r(6639),r(3979),o.e},3979:(t,e,r)=>{var n={"./en.json":[3574,574]};function o(t){if(!r.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=3979,t.exports=o}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.c=n,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,r)=>(o.f[r](t,e),e)),[])),o.u=t=>t+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@openmrs/esm-primary-navigation-app:",o.l=(r,n,i,a)=>{if(t[r])t[r].push(n);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var l=s[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==e+i){u=l;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.setAttribute("data-webpack",e+i),u.src=r),t[r]=[n];var p=(e,n)=>{u.onerror=u.onload=null,clearTimeout(h);var o=t[r];if(delete t[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((t=>t(n))),e)return e(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),c&&document.head.appendChild(u)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{o.S={};var t={},e={};o.I=(r,n)=>{n||(n=[]);var i=e[r];if(i||(i=e[r]={}),!(n.indexOf(i)>=0)){if(n.push(i),t[r])return t[r];o.o(o.S,r)||(o.S[r]={});var a=o.S[r],u="@openmrs/esm-primary-navigation-app",c=(t,e,r,n)=>{var o=a[t]=a[t]||{},i=o[e];(!i||!i.loaded&&(!n!=!i.eager?n:u>i.from))&&(o[e]={get:r,from:u,eager:!!n})},s=[];return"default"===r&&(c("@openmrs/esm-framework/src/internal","4.0.3-pre.360",(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889))))),c("react-dom","18.2.0",(()=>Promise.all([o.e(788),o.e(776)]).then((()=>()=>o(2788))))),c("react-i18next","11.18.3",(()=>Promise.all([o.e(146),o.e(776)]).then((()=>()=>o(7146))))),c("react-router-dom","5.3.3",(()=>Promise.all([o.e(41),o.e(776),o.e(216)]).then((()=>()=>o(5041))))),c("react","18.2.0",(()=>o.e(735).then((()=>()=>o(2735)))))),t[r]=s.length?Promise.all(s).then((()=>t[r]=1)):1}}})(),(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),n=r[1]?e(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,e(r[2]))),r[3]&&(n.push([]),n.push.apply(n,e(r[3]))),n},e=t=>{var r=t[0],n="";if(1===t.length)return"*";if(r+.5){n+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,n+="u"==(typeof(u=t[i]))[0]?"-":(o>0?".":"")+(o=2,u);return n}var a=[];for(i=1;i<t.length;i++){var u=t[i];a.push(0===u?"not("+c()+")":1===u?"("+c()+" || "+c()+")":2===u?a.pop()+" "+a.pop():e(u))}return c();function c(){return a.pop().replace(/^\((.+)\)$/,"$1")}},r=(e,n)=>{if(0 in e){n=t(n);var o=e[0],i=o<0;i&&(o=-o-1);for(var a=0,u=1,c=!0;;u++,a++){var s,f,l=u<e.length?(typeof e[u])[0]:"";if(a>=n.length||"o"==(f=(typeof(s=n[a]))[0]))return!c||("u"==l?u>o&&!i:""==l!=i);if("u"==f){if(!c||"u"!=l)return!1}else if(c)if(l==f)if(u<=o){if(s!=e[u])return!1}else{if(i?s>e[u]:s<e[u])return!1;s!=e[u]&&(c=!1)}else if("s"!=l&&"n"!=l){if(i||u<=o)return!1;c=!1,u--}else{if(u<=o||f<l!=i)return!1;c=!1}else"s"!=l&&"n"!=l&&(c=!1,u--)}}var p=[],h=p.pop.bind(p);for(a=1;a<e.length;a++){var d=e[a];p.push(1==d?h()|h():2==d?h()&h():d?r(d,n):!h())}return!!h()},n=(e,r)=>{var n=e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&((e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],i=(typeof o)[0];if(n>=r.length)return"u"==i;var a=r[n],u=(typeof a)[0];if(i!=u)return"o"==i&&"n"==u||"s"==u||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;n++}})(e,r)?r:e),0)},i=(t,o,i,u)=>{var c=n(t,i);return r(u,c)||"undefined"!=typeof console&&console.warn&&console.warn(((t,r,n,o)=>"Unsatisfied version "+n+" from "+(n&&t[r][n].from)+" of shared singleton module "+r+" (required "+e(o)+")")(t,i,c,u)),a(t[i][c])},a=t=>(t.loaded=1,t.get()),u=t=>function(e,r,n,i){var a=o.I(e);return a&&a.then?a.then(t.bind(t,e,o.S[e],r,n,i)):t(e,o.S[e],r,n,i)},c=u(((t,e,r,i)=>e&&o.o(e,r)?((t,e,r,o)=>{var i=n(t,r);return a(t[r][i])})(e,0,r):i())),s=u(((t,e,r,n,a)=>e&&o.o(e,r)?i(e,0,r,n):a())),f={},l={2680:()=>s("default","react-i18next",[1,11],(()=>o.e(146).then((()=>()=>o(7146))))),7743:()=>s("default","react-router-dom",[1,6],(()=>o.e(41).then((()=>()=>o(5041))))),5776:()=>s("default","react",[1,18],(()=>o.e(735).then((()=>()=>o(2735))))),4610:()=>s("default","@openmrs/esm-framework",[0],(()=>o.e(889).then((()=>()=>o(4889))))),8478:()=>c("default","@openmrs/esm-framework/src/internal",(()=>o.e(889).then((()=>()=>o(4889)))))};[4610,8478,5776].forEach((t=>{o.m[t]=e=>{f[t]=0,delete o.c[t];var r=l[t]();if("function"!=typeof r)throw new Error("Shared module is not available for eager consumption: "+t);e.exports=r()}}));var p={656:[7743],680:[2680],776:[5776]};o.f.consumes=(t,e)=>{o.o(p,t)&&p[t].forEach((t=>{if(o.o(f,t))return e.push(f[t]);var r=e=>{f[t]=0,o.m[t]=r=>{delete o.c[t],r.exports=e()}},n=e=>{delete f[t],o.m[t]=r=>{throw delete o.c[t],e}};try{var i=l[t]();i.then?e.push(f[t]=i.then(r).catch(n)):r(i)}catch(t){n(t)}}))}})(),(()=>{var t={179:0,776:0,789:0};o.f.j=(e,r)=>{var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(680|776)$/.test(e))t[e]=0;else{var i=new Promise(((r,o)=>n=t[e]=[r,o]));r.push(n[2]=i);var a=o.p+o.u(e),u=new Error;o.l(a,(r=>{if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,n[1](u)}}),"chunk-"+e,e)}};var e=(e,r)=>{var n,i,[a,u,c]=r,s=0;if(a.some((e=>0!==t[e]))){for(n in u)o.o(u,n)&&(o.m[n]=u[n]);c&&c(o)}for(e&&e(r);s<a.length;s++)i=a[s],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),o.nc=void 0,o(789)})();
|
|
1
|
+
(()=>{var t,e,r={1602:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return x()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function m(){}function g(){}function w(){}var y={};c(y,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(L([])));b&&b!==r&&n.call(b,i)&&(y=b);var O=w.prototype=m.prototype=Object.create(y);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:x}}function x(){return{value:e,done:!0}}return g.prototype=w,c(O,"constructor",w),c(w,"constructor",g),g.displayName=c(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},T(P.prototype),c(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>u,genericLinkConfigSchema:()=>a});var n=r(5776),o=r.n(n),i=r(4610),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,e,r)=>{"use strict";r.d(e,{O:()=>n,e:()=>o});var n="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,r)=>{"use strict";var n=r(4610);r(1602),r(8478),n.Type.String,n.Type.String,n.Type.String,n.Type.Array,n.Type.String,n.Type.String,n.validators.isUrl;var o=r(1217),i=Object.freeze({__proto__:null,get start(){return $t},get ensureJQuerySupport(){return vt},get setBootstrapMaxTime(){return V},get setMountMaxTime(){return Y},get setUnmountMaxTime(){return z},get setUnloadMaxTime(){return X},get registerApplication(){return At},get unregisterApplication(){return Lt},get getMountedApps(){return Pt},get getAppStatus(){return _t},get unloadApplication(){return xt},get checkActivityFunctions(){return Nt},get getAppNames(){return St},get pathToActiveWhen(){return Ut},get navigateToUrl(){return at},get triggerAppChange(){return Ct},get addErrorHandler(){return p},get removeErrorHandler(){return h},get mountRootParcel(){return K},get NOT_LOADED(){return m},get LOADING_SOURCE_CODE(){return g},get NOT_BOOTSTRAPPED(){return w},get BOOTSTRAPPING(){return y},get NOT_MOUNTED(){return E},get MOUNTING(){return b},get UPDATING(){return T},get LOAD_ERROR(){return S},get MOUNTED(){return O},get UNMOUNTING(){return P},get SKIP_BECAUSE_BROKEN(){return _}});function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).CustomEvent,s=function(){try{var t=new c("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?c:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var r=document.createEvent("CustomEvent");return e?r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):r.initCustomEvent(t,!1,!1,void 0),r}:function(t,e){var r=document.createEventObject();return r.type=t,e?(r.bubbles=Boolean(e.bubbles),r.cancelable=Boolean(e.cancelable),r.detail=e.detail):(r.bubbles=!1,r.cancelable=!1,r.detail=void 0),r},f=[];function l(t,e,r){var n=v(t,e,r);f.length?f.forEach((function(t){return t(n)})):setTimeout((function(){throw n}))}function p(t){if("function"!=typeof t)throw Error(d(28,!1));f.push(t)}function h(t){if("function"!=typeof t)throw Error(d(29,!1));var e=!1;return f=f.filter((function(r){var n=r===t;return e=e||n,!n})),e}function d(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(n.length?"&arg=".concat(n.join("&arg=")):"")}function v(t,e,r){var n,o="".concat(j(e)," '").concat(L(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}n=t}else{console.warn(d(30,!1,e.status,L(e)));try{n=Error(o+JSON.stringify(t))}catch(e){n=t}}return n.appOrParcelName=L(e),e.status=r,n}var m="NOT_LOADED",g="LOADING_SOURCE_CODE",w="NOT_BOOTSTRAPPED",y="BOOTSTRAPPING",E="NOT_MOUNTED",b="MOUNTING",O="MOUNTED",T="UPDATING",P="UNMOUNTING",S="LOAD_ERROR",_="SKIP_BECAUSE_BROKEN";function A(t){return t.status===O}function N(t){try{return t.activeWhen(window.location)}catch(e){return l(e,t,_),!1}}function L(t){return t.name}function x(t){return Boolean(t.unmountThisParcel)}function j(t){return x(t)?"parcel":"application"}function k(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function U(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!U(e,(function(t){return"function"!=typeof t}))));var e}function M(t,e){var r=t[e]||[];0===(r=Array.isArray(r)?r:[r]).length&&(r=[function(){return Promise.resolve()}]);var n=j(t),o=L(t);return function(t){return r.reduce((function(r,i,a){return r.then((function(){var r=i(t);return R(r)?r:Promise.reject(d(15,!1,n,o,e,a))}))}),Promise.resolve())}}function R(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function C(t,e){return Promise.resolve().then((function(){return t.status!==w?t:(t.status=y,t.bootstrap?Z(t,"bootstrap").then(r).catch((function(r){if(e)throw v(r,t,_);return l(r,t,_),t})):Promise.resolve().then(r))}));function r(){return t.status=E,t}}function G(t,e){return Promise.resolve().then((function(){if(t.status!==O)return t;t.status=P;var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw v(n,t,_);l(n,t,_)}))})).then((function(){return t}));function n(){return Z(t,"unmount").then((function(){t.status=E})).catch((function(r){if(e)throw v(r,t,_);l(r,t,_)}))}}))}var I=!1,B=!1;function $(t,e){return Promise.resolve().then((function(){return t.status!==E?t:(I||(window.dispatchEvent(new s("single-spa:before-first-mount")),I=!0),Z(t,"mount").then((function(){return t.status=O,B||(window.dispatchEvent(new s("single-spa:first-mount")),B=!0),t})).catch((function(r){return t.status=O,G(t,!0).then(n,n);function n(){if(e)throw v(r,t,_);return l(r,t,_),t}})))}))}var W=0,F={parcels:{}};function K(){return q.apply(F,arguments)}function q(t,e){var r=this;if(!t||"object"!==a(t)&&"function"!=typeof t)throw Error(d(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(d(3,!1,a(t.name)));if("object"!==a(e))throw Error(d(4,!1,name,a(e)));if(!e.domElement)throw Error(d(5,!1,name));var n,o=W++,i="function"==typeof t,u=i?t:function(){return Promise.resolve(t)},c={id:o,parcels:{},status:i?g:w,customProps:e,parentName:L(r),unmountThisParcel:function(){return h.then((function(){if(c.status!==O)throw Error(d(6,!1,name,c.status));return G(c,!0)})).then((function(t){return c.parentName&&delete r.parcels[c.id],t})).then((function(t){return f(t),t})).catch((function(t){throw c.status=_,l(t),t}))}};r.parcels[o]=c;var s=u();if(!s||"function"!=typeof s.then)throw Error(d(7,!1));var f,l,p=(s=s.then((function(t){if(!t)throw Error(d(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(d(9,!1,e));if(!D(t.mount))throw Error(d(10,!1,e));if(!D(t.unmount))throw Error(d(11,!1,e));if(t.update&&!D(t.update))throw Error(d(12,!1,e));var r=M(t,"bootstrap"),i=M(t,"mount"),a=M(t,"unmount");c.status=w,c.name=e,c.bootstrap=r,c.mount=i,c.unmount=a,c.timeouts=tt(t.timeouts),t.update&&(c.update=M(t,"update"),n.update=function(t){return c.customProps=t,J(function(t){return Promise.resolve().then((function(){if(t.status!==O)throw Error(d(32,!1,L(t)));return t.status=T,Z(t,"update").then((function(){return t.status=O,t})).catch((function(e){throw v(e,t,_)}))}))}(c))})}))).then((function(){return C(c,!0)})),h=p.then((function(){return $(c,!0)})),m=new Promise((function(t,e){f=t,l=e}));return n={mount:function(){return J(Promise.resolve().then((function(){if(c.status!==E)throw Error(d(13,!1,name,c.status));return r.parcels[o]=c,$(c)})))},unmount:function(){return J(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:J(s),bootstrapPromise:J(p),mountPromise:J(h),unmountPromise:J(m)}}function J(t){return t.then((function(){return null}))}function H(t){var e=L(t),r="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==a(r)||null===r||Array.isArray(r))&&(r={},console.warn(d(40,!1),e,r));var n=k({},r,{name:e,mountParcel:q.bind(t),singleSpa:i});return x(t)&&(n.unmountSelf=t.unmountThisParcel),n}var Q={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function V(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(16,!1));Q.bootstrap={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function Y(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(17,!1));Q.mount={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function z(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(18,!1));Q.unmount={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function X(t,e,r){if("number"!=typeof t||t<=0)throw Error(d(19,!1));Q.unload={millis:t,dieOnTimeout:e,warningMillis:r||1e3}}function Z(t,e){var r=t.timeouts[e],n=r.warningMillis,o=j(t);return new Promise((function(i,a){var u=!1,c=!1;t[e](H(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),n),setTimeout((function(){return f(!0)}),r.millis);var s=d(31,!1,e,o,L(t),r.millis);function f(t){if(!u)if(!0===t)c=!0,r.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var e=t,o=e*n;console.warn(s),o+n<r.millis&&setTimeout((function(){return f(e+1)}),n)}}}))}function tt(t){var e={};for(var r in Q)e[r]=k({},Q[r],t&&t[r]||{});return e}function et(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==m&&t.status!==S?t:(t.status=g,t.loadPromise=Promise.resolve().then((function(){var n=t.loadApp(H(t));if(!R(n))throw r=!0,Error(d(33,!1,L(t)));return n.then((function(r){var n;t.loadErrorTime=null,"object"!==a(e=r)&&(n=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(n=35),D(e.mount)||(n=36),D(e.unmount)||(n=37);var o=j(e);if(n){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(d(n,!1,o,L(t),i),e),l(void 0,t,_),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=k({},t.devtools.overlays,e.devtools.overlays)),t.status=w,t.bootstrap=M(e,"bootstrap"),t.mount=M(e,"mount"),t.unmount=M(e,"unmount"),t.unload=M(e,"unload"),t.timeouts=tt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var n;return delete t.loadPromise,r?n=_:(n=S,t.loadErrorTime=(new Date).getTime()),l(e,t,n),t})));var e,r}))}var rt,nt="undefined"!=typeof window,ot={hashchange:[],popstate:[]},it=["hashchange","popstate"];function at(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(d(14,!1));e=t.currentTarget.href,t.preventDefault()}var r=ht(window.location.href),n=ht(e);0===e.indexOf("#")?window.location.hash=n.hash:r.host!==n.host&&n.host?window.location.href=e:n.pathname===r.pathname&&n.search===r.search?window.location.hash=n.hash:window.history.pushState(null,null,e)}function ut(t){var e=this;if(t){var r=t[0].type;it.indexOf(r)>=0&&ot[r].forEach((function(r){try{r.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function ct(){Gt([],arguments)}function st(t,e){return function(){var r=window.location.href,n=t.apply(this,arguments),o=window.location.href;return rt&&r===o||(Wt()?window.dispatchEvent(ft(window.history.state,e)):Gt([])),n}}function ft(t,e){var r;try{r=new PopStateEvent("popstate",{state:t})}catch(e){(r=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return r.singleSpa=!0,r.singleSpaTrigger=e,r}if(nt){window.addEventListener("hashchange",ct),window.addEventListener("popstate",ct);var lt=window.addEventListener,pt=window.removeEventListener;window.addEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0)||U(ot[t],(function(t){return t===e})))return lt.apply(this,arguments);ot[t].push(e)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0))return pt.apply(this,arguments);ot[t]=ot[t].filter((function(t){return t!==e}))},window.history.pushState=st(window.history.pushState,"pushState"),window.history.replaceState=st(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=at}function ht(t){var e=document.createElement("a");return e.href=t,e}var dt=!1;function vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!dt){var e=t.fn.on,r=t.fn.off;t.fn.on=function(t,r){return mt.call(this,e,window.addEventListener,t,r,arguments)},t.fn.off=function(t,e){return mt.call(this,r,window.removeEventListener,t,e,arguments)},dt=!0}}function mt(t,e,r,n,o){return"string"!=typeof r?t.apply(this,o):(r.split(/\s+/).forEach((function(t){it.indexOf(t)>=0&&(e(t,n),r=r.replace(t,""))})),""===r.trim()?this:t.apply(this,o))}var gt={};function wt(t){return Promise.resolve().then((function(){var e=gt[L(t)];if(!e)return t;if(t.status===m)return yt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if(t.status!==E&&t.status!==S)return t;var r=t.status===S?Promise.resolve():Z(t,"unload");return t.status="UNLOADING",r.then((function(){return yt(t,e),t})).catch((function(r){return function(t,e,r){delete gt[L(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,l(r,t,_),e.reject(r)}(t,e,r),t}))}))}function yt(t,e){delete gt[L(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=m,e.resolve()}function Et(t,e,r,n){gt[L(t)]={app:t,resolve:r,reject:n},Object.defineProperty(gt[L(t)],"promise",{get:e})}function bt(t){return gt[t]}var Ot=[];function Tt(){var t=[],e=[],r=[],n=[],o=(new Date).getTime();return Ot.forEach((function(i){var a=i.status!==_&&N(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&r.push(i);break;case m:case g:a&&r.push(i);break;case w:case E:!a&&bt(L(i))?t.push(i):a&&n.push(i);break;case O:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:r,appsToMount:n}}function Pt(){return Ot.filter(A).map(L)}function St(){return Ot.map(L)}function _t(t){var e=U(Ot,(function(e){return L(e)===t}));return e?e.status:null}function At(t,e,r,n){var o=function(t,e,r,n){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===a(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(d(39,!1));var e=["name","app","activeWhen","customProps"],r=Object.keys(t).reduce((function(t,r){return e.indexOf(r)>=0?t:t.concat(r)}),[]);if(0!==r.length)throw Error(d(38,!1,e.join(", "),r.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(d(20,!1));if("object"!==a(t.app)&&"function"!=typeof t.app)throw Error(d(20,!1));var n=function(t){return"string"==typeof t||"function"==typeof t};if(!(n(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(n)))throw Error(d(24,!1));if(!kt(t.customProps))throw Error(d(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,r,n){if("string"!=typeof t||0===t.length)throw Error(d(20,!1));if(!e)throw Error(d(23,!1));if("function"!=typeof r)throw Error(d(24,!1));if(!kt(n))throw Error(d(22,!1))}(t,e,r,n),i.name=t,i.loadApp=e,i.activeWhen=r,i.customProps=n),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:Ut(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,r,n);if(-1!==St().indexOf(o.name))throw Error(d(21,!1,o.name));Ot.push(k({loadErrorTime:null,status:m,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),nt&&(vt(),Gt())}function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Ot.filter((function(e){return e.activeWhen(t)})).map(L)}function Lt(t){if(0===Ot.filter((function(e){return L(e)===t})).length)throw Error(d(25,!1,t));return xt(t).then((function(){var e=Ot.map(L).indexOf(t);Ot.splice(e,1)}))}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(d(26,!1));var r=U(Ot,(function(e){return L(e)===t}));if(!r)throw Error(d(27,!1,t));var n,o=bt(L(r));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Et(r,(function(){return i}),t,e)}));return i}return o?(n=o.promise,jt(r,o.resolve,o.reject)):n=new Promise((function(t,e){Et(r,(function(){return n}),t,e),jt(r,t,e)})),n}function jt(t,e,r){G(t).then(wt).then((function(){e(),setTimeout((function(){Gt()}))})).catch(r)}function kt(t){return!t||"function"==typeof t||"object"===a(t)&&null!==t&&!Array.isArray(t)}function Ut(t,e){var r=function(t,e){var r=0,n=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!n&&":"===a||n&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(r,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=n?"[^/]+/?":a,i===t.length)if(n)e&&(o+="$");else{var u=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}n=!n,r=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var n=t.href.replace(e,"").replace(t.search,"").split("?")[0];return r.test(n)}}var Dt=!1,Mt=[],Rt=nt&&window.location.href;function Ct(){return Gt()}function Gt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(Dt)return new Promise((function(t,r){Mt.push({resolve:t,reject:r,eventArguments:e})}));var r,n=Tt(),o=n.appsToUnload,i=n.appsToUnmount,a=n.appsToLoad,c=n.appsToMount,f=!1,l=Rt,p=Rt=window.location.href;return Wt()?(Dt=!0,r=o.concat(a,i,c),v()):(r=a,d());function h(){f=!0}function d(){return Promise.resolve().then((function(){var t=a.map(et);return Promise.all(t).then(w).then((function(){return[]})).catch((function(t){throw w(),t}))}))}function v(){return Promise.resolve().then((function(){if(window.dispatchEvent(new s(0===r.length?"single-spa:before-no-app-change":"single-spa:before-app-change",y(!0))),window.dispatchEvent(new s("single-spa:before-routing-event",y(!0,{cancelNavigation:h}))),f)return window.dispatchEvent(new s("single-spa:before-mount-routing-event",y(!0))),g(),void at(l);var e=o.map(wt),n=i.map(G).map((function(t){return t.then(wt)})).concat(e),u=Promise.all(n);u.then((function(){window.dispatchEvent(new s("single-spa:before-mount-routing-event",y(!0)))}));var p=a.map((function(t){return et(t).then((function(t){return It(t,u)}))})),d=c.filter((function(t){return a.indexOf(t)<0})).map((function(t){return It(t,u)}));return u.catch((function(t){throw w(),t})).then((function(){return w(),Promise.all(p.concat(d)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(g)}))}))}function g(){var e=Pt();t.forEach((function(t){return t.resolve(e)}));try{var n=0===r.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new s(n,y())),window.dispatchEvent(new s("single-spa:routing-event",y()))}catch(t){setTimeout((function(){throw t}))}if(Dt=!1,Mt.length>0){var o=Mt;Mt=[],Gt(o)}return e}function w(){t.forEach((function(t){ut(t.eventArguments)})),ut(e)}function y(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0,h={},d=(u(t={},O,[]),u(t,E,[]),u(t,m,[]),u(t,_,[]),t);n?(a.concat(c).forEach((function(t,e){g(t,O)})),o.forEach((function(t){g(t,m)})),i.forEach((function(t){g(t,E)}))):r.forEach((function(t){g(t)}));var v={detail:{newAppStatuses:h,appsByNewStatus:d,totalAppChanges:r.length,originalEvent:null==e?void 0:e[0],oldUrl:l,newUrl:p,navigationIsCanceled:f}};return s&&k(v.detail,s),v;function g(t,e){var r=L(t);e=e||_t(r),h[r]=e,(d[e]=d[e]||[]).push(r)}}}function It(t,e){return N(t)?C(t).then((function(t){return e.then((function(){return N(t)?$(t):t}))})):e.then((function(){return t}))}var Bt=!1;function $t(t){var e;Bt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,rt=e),nt&&Gt()}function Wt(){return Bt}nt&&setTimeout((function(){Bt||console.warn(d(1,!1))}),5e3);var Ft={getRawAppData:function(){return[].concat(Ot)},reroute:Gt,NOT_LOADED:m,toLoadPromise:et,toBootstrapPromise:C,unregisterApplication:Lt};nt&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Ft),r(6639),r(3979),o.e},3979:(t,e,r)=>{var n={"./en.json":[3574,574]};function o(t){if(!r.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=3979,t.exports=o}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.c=n,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,r)=>(o.f[r](t,e),e)),[])),o.u=t=>t+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@openmrs/esm-primary-navigation-app:",o.l=(r,n,i,a)=>{if(t[r])t[r].push(n);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var l=s[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==e+i){u=l;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.setAttribute("data-webpack",e+i),u.src=r),t[r]=[n];var p=(e,n)=>{u.onerror=u.onload=null,clearTimeout(h);var o=t[r];if(delete t[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((t=>t(n))),e)return e(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),c&&document.head.appendChild(u)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{o.S={};var t={},e={};o.I=(r,n)=>{n||(n=[]);var i=e[r];if(i||(i=e[r]={}),!(n.indexOf(i)>=0)){if(n.push(i),t[r])return t[r];o.o(o.S,r)||(o.S[r]={});var a=o.S[r],u="@openmrs/esm-primary-navigation-app",c=(t,e,r,n)=>{var o=a[t]=a[t]||{},i=o[e];(!i||!i.loaded&&(!n!=!i.eager?n:u>i.from))&&(o[e]={get:r,from:u,eager:!!n})},s=[];return"default"===r&&(c("@openmrs/esm-framework/src/internal","4.0.3-pre.365",(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889))))),c("react-dom","18.2.0",(()=>Promise.all([o.e(788),o.e(776)]).then((()=>()=>o(2788))))),c("react-i18next","11.18.3",(()=>Promise.all([o.e(146),o.e(776)]).then((()=>()=>o(7146))))),c("react-router-dom","5.3.3",(()=>Promise.all([o.e(41),o.e(776),o.e(216)]).then((()=>()=>o(5041))))),c("react","18.2.0",(()=>o.e(735).then((()=>()=>o(2735)))))),t[r]=s.length?Promise.all(s).then((()=>t[r]=1)):1}}})(),(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),n=r[1]?e(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,e(r[2]))),r[3]&&(n.push([]),n.push.apply(n,e(r[3]))),n},e=t=>{var r=t[0],n="";if(1===t.length)return"*";if(r+.5){n+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,n+="u"==(typeof(u=t[i]))[0]?"-":(o>0?".":"")+(o=2,u);return n}var a=[];for(i=1;i<t.length;i++){var u=t[i];a.push(0===u?"not("+c()+")":1===u?"("+c()+" || "+c()+")":2===u?a.pop()+" "+a.pop():e(u))}return c();function c(){return a.pop().replace(/^\((.+)\)$/,"$1")}},r=(e,n)=>{if(0 in e){n=t(n);var o=e[0],i=o<0;i&&(o=-o-1);for(var a=0,u=1,c=!0;;u++,a++){var s,f,l=u<e.length?(typeof e[u])[0]:"";if(a>=n.length||"o"==(f=(typeof(s=n[a]))[0]))return!c||("u"==l?u>o&&!i:""==l!=i);if("u"==f){if(!c||"u"!=l)return!1}else if(c)if(l==f)if(u<=o){if(s!=e[u])return!1}else{if(i?s>e[u]:s<e[u])return!1;s!=e[u]&&(c=!1)}else if("s"!=l&&"n"!=l){if(i||u<=o)return!1;c=!1,u--}else{if(u<=o||f<l!=i)return!1;c=!1}else"s"!=l&&"n"!=l&&(c=!1,u--)}}var p=[],h=p.pop.bind(p);for(a=1;a<e.length;a++){var d=e[a];p.push(1==d?h()|h():2==d?h()&h():d?r(d,n):!h())}return!!h()},n=(e,r)=>{var n=e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&((e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],i=(typeof o)[0];if(n>=r.length)return"u"==i;var a=r[n],u=(typeof a)[0];if(i!=u)return"o"==i&&"n"==u||"s"==u||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;n++}})(e,r)?r:e),0)},i=(t,o,i,u)=>{var c=n(t,i);return r(u,c)||"undefined"!=typeof console&&console.warn&&console.warn(((t,r,n,o)=>"Unsatisfied version "+n+" from "+(n&&t[r][n].from)+" of shared singleton module "+r+" (required "+e(o)+")")(t,i,c,u)),a(t[i][c])},a=t=>(t.loaded=1,t.get()),u=t=>function(e,r,n,i){var a=o.I(e);return a&&a.then?a.then(t.bind(t,e,o.S[e],r,n,i)):t(e,o.S[e],r,n,i)},c=u(((t,e,r,i)=>e&&o.o(e,r)?((t,e,r,o)=>{var i=n(t,r);return a(t[r][i])})(e,0,r):i())),s=u(((t,e,r,n,a)=>e&&o.o(e,r)?i(e,0,r,n):a())),f={},l={2680:()=>s("default","react-i18next",[1,11],(()=>o.e(146).then((()=>()=>o(7146))))),7743:()=>s("default","react-router-dom",[1,6],(()=>o.e(41).then((()=>()=>o(5041))))),5776:()=>s("default","react",[1,18],(()=>o.e(735).then((()=>()=>o(2735))))),4610:()=>s("default","@openmrs/esm-framework",[0],(()=>o.e(889).then((()=>()=>o(4889))))),8478:()=>c("default","@openmrs/esm-framework/src/internal",(()=>o.e(889).then((()=>()=>o(4889)))))};[4610,8478,5776].forEach((t=>{o.m[t]=e=>{f[t]=0,delete o.c[t];var r=l[t]();if("function"!=typeof r)throw new Error("Shared module is not available for eager consumption: "+t);e.exports=r()}}));var p={656:[7743],680:[2680],776:[5776]};o.f.consumes=(t,e)=>{o.o(p,t)&&p[t].forEach((t=>{if(o.o(f,t))return e.push(f[t]);var r=e=>{f[t]=0,o.m[t]=r=>{delete o.c[t],r.exports=e()}},n=e=>{delete f[t],o.m[t]=r=>{throw delete o.c[t],e}};try{var i=l[t]();i.then?e.push(f[t]=i.then(r).catch(n)):r(i)}catch(t){n(t)}}))}})(),(()=>{var t={179:0,776:0,789:0};o.f.j=(e,r)=>{var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(680|776)$/.test(e))t[e]=0;else{var i=new Promise(((r,o)=>n=t[e]=[r,o]));r.push(n[2]=i);var a=o.p+o.u(e),u=new Error;o.l(a,(r=>{if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,n[1](u)}}),"chunk-"+e,e)}};var e=(e,r)=>{var n,i,[a,u,c]=r,s=0;if(a.some((e=>0!==t[e]))){for(n in u)o.o(u,n)&&(o.m[n]=u[n]);c&&c(o)}for(e&&e(r);s<a.length;s++)i=a[s],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),o.nc=void 0,o(789)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_primary_navigation_app;(()=>{function j(a){var b=g[a];if(void 0!==b)return b.exports;var c=g[a]={id:a,loaded:!1,exports:{}};return M[a](c,c.exports,j),c.loaded=!0,c.exports}var b,k,q,x,z,A,B,C,D,E,F,G,H,I,J,K,L,M={7130:(b,c,d)=>{var f={"./start":()=>Promise.all([d.e(776),d.e(789)]).then(()=>()=>d(789))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},g={};j.m=M,j.c=g,j.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return j.d(b,{a:b}),b},j.d=(a,b)=>{for(var c in b)j.o(b,c)&&!j.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},j.f={},j.e=a=>Promise.all(Object.keys(j.f).reduce((b,c)=>(j.f[c](a,b),b),[])),j.u=a=>a+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),j.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),b={},k="@openmrs/esm-primary-navigation-app:",j.l=(a,c,e)=>{if(b[a])b[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,j.nc&&g.setAttribute("nonce",j.nc),g.setAttribute("data-webpack",k+e),g.src=a),b[a]=[c];var q=(c,d)=>{g.onerror=g.onload=null,clearTimeout(f);var e=b[a];if(delete b[a],g.parentNode&&g.parentNode.removeChild(g),e&&e.forEach(a=>a(d)),c)return c(d)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},j.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},j.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{j.S={};var b={},c={};j.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];j.o(j.S,d)||(j.S[d]={});var g=j.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-primary-navigation-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-primary-navigation-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework/src/internal","4.0.3-pre.
|
|
1
|
+
var _openmrs_esm_primary_navigation_app;(()=>{function j(a){var b=g[a];if(void 0!==b)return b.exports;var c=g[a]={id:a,loaded:!1,exports:{}};return M[a](c,c.exports,j),c.loaded=!0,c.exports}var b,k,q,x,z,A,B,C,D,E,F,G,H,I,J,K,L,M={7130:(b,c,d)=>{var f={"./start":()=>Promise.all([d.e(776),d.e(789)]).then(()=>()=>d(789))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},g={};j.m=M,j.c=g,j.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return j.d(b,{a:b}),b},j.d=(a,b)=>{for(var c in b)j.o(b,c)&&!j.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},j.f={},j.e=a=>Promise.all(Object.keys(j.f).reduce((b,c)=>(j.f[c](a,b),b),[])),j.u=a=>a+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),j.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),b={},k="@openmrs/esm-primary-navigation-app:",j.l=(a,c,e)=>{if(b[a])b[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,j.nc&&g.setAttribute("nonce",j.nc),g.setAttribute("data-webpack",k+e),g.src=a),b[a]=[c];var q=(c,d)=>{g.onerror=g.onload=null,clearTimeout(f);var e=b[a];if(delete b[a],g.parentNode&&g.parentNode.removeChild(g),e&&e.forEach(a=>a(d)),c)return c(d)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},j.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},j.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{j.S={};var b={},c={};j.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];j.o(j.S,d)||(j.S[d]={});var g=j.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-primary-navigation-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-primary-navigation-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework/src/internal","4.0.3-pre.365",()=>Promise.all([j.e(776),j.e(889)]).then(()=>()=>j(4889))),a("react-dom","18.2.0",()=>Promise.all([j.e(788),j.e(776)]).then(()=>()=>j(2788))),a("react-i18next","11.18.3",()=>Promise.all([j.e(146),j.e(776)]).then(()=>()=>j(7146))),a("react-router-dom","5.3.3",()=>Promise.all([j.e(41),j.e(776),j.e(216)]).then(()=>()=>j(5041))),a("react","18.2.0",()=>j.e(735).then(()=>()=>j(2735)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),(()=>{var a;j.g.importScripts&&(a=j.g.location+"");var b=j.g.document;if(!a&&b&&(b.currentScript&&(a=b.currentScript.src),!a)){var c=b.getElementsByTagName("script");c.length&&(a=c[c.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=a})(),q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},x=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},z=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():z(i))}return c()},A=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var f=[],d=f.pop.bind(f);for(j=1;j<a.length;j++){var c=a[j];f.push(1==c?d()|d():2==c?d()&d():c?A(c,b):!d())}return!!d()},B=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!x(a,b))?a:b,0)},C=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+z(d)+")",D=(a,b,c)=>{var d=B(a,c);return F(a[c][d])},E=(a,b,c,d)=>{var e=B(a,c);return A(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(C(a,c,e,d)),F(a[c][e])},F=a=>(a.loaded=1,a.get()),H=(G=b=>function(c,d,e,f){var g=j.I(c);return g&&g.then?g.then(b.bind(b,c,j.S[c],d,e,f)):b(c,j.S[c],d,e,f)})((a,b,c,d)=>b&&j.o(b,c)?D(b,0,c):d()),I=G((a,b,c,d,e)=>b&&j.o(b,c)?E(b,0,c,d):e()),J={},K={5776:()=>I("default","react",[1,18],()=>j.e(735).then(()=>()=>j(2735))),4610:()=>I("default","@openmrs/esm-framework",[0],()=>j.e(889).then(()=>()=>j(4889))),8478:()=>H("default","@openmrs/esm-framework/src/internal",()=>j.e(889).then(()=>()=>j(4889))),2680:()=>I("default","react-i18next",[1,11],()=>j.e(146).then(()=>()=>j(7146))),7743:()=>I("default","react-router-dom",[1,6],()=>j.e(41).then(()=>()=>j(5041)))},L={656:[7743],680:[2680],776:[5776],789:[4610,8478]},j.f.consumes=(a,b)=>{j.o(L,a)&&L[a].forEach(a=>{if(j.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,j.m[a]=c=>{delete j.c[a],c.exports=b()}},d=b=>{delete J[a],j.m[a]=()=>{throw delete j.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={115:0};j.f.j=(c,d)=>{var e=j.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(680|776)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=j.p+j.u(c),h=new Error;j.l(g,d=>{if(j.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)j.o(a,e)&&(j.m[e]=a[e]);h&&h(j)}for(c&&c(d);i<g.length;i++)f=g[i],j.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),j.nc=void 0;var y=j(7130);_openmrs_esm_primary_navigation_app=y})();
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"openmrs-esm-primary-navigation-app.js"
|
|
70
70
|
],
|
|
71
71
|
"auxiliaryFiles": [],
|
|
72
|
-
"hash": "
|
|
72
|
+
"hash": "8fa58767f6ba794a0727",
|
|
73
73
|
"childrenByOrder": {}
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"main.js"
|
|
121
121
|
],
|
|
122
122
|
"auxiliaryFiles": [],
|
|
123
|
-
"hash": "
|
|
123
|
+
"hash": "56ac10fcc0d206953ad8",
|
|
124
124
|
"childrenByOrder": {}
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"789.js"
|
|
346
346
|
],
|
|
347
347
|
"auxiliaryFiles": [],
|
|
348
|
-
"hash": "
|
|
348
|
+
"hash": "ca064c7fc0c41e534273",
|
|
349
349
|
"childrenByOrder": {}
|
|
350
350
|
},
|
|
351
351
|
{
|
|
@@ -379,9 +379,9 @@
|
|
|
379
379
|
"entry": false,
|
|
380
380
|
"recorded": false,
|
|
381
381
|
"reason": "reused as split chunk (cache group: default)",
|
|
382
|
-
"size":
|
|
382
|
+
"size": 1124085,
|
|
383
383
|
"sizes": {
|
|
384
|
-
"javascript":
|
|
384
|
+
"javascript": 1124085
|
|
385
385
|
},
|
|
386
386
|
"names": [],
|
|
387
387
|
"idHints": [],
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
"889.js"
|
|
394
394
|
],
|
|
395
395
|
"auxiliaryFiles": [],
|
|
396
|
-
"hash": "
|
|
396
|
+
"hash": "7f461729c64434ce2369",
|
|
397
397
|
"childrenByOrder": {}
|
|
398
398
|
}
|
|
399
399
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_primary_navigation_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g={7130:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(776),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function b(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e](t,t.exports,b),t.loaded=!0,t.exports}b.m=g,b.c=y,b.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return b.d(r,{a:r}),r},b.d=(e,r)=>{for(var t in r)b.o(r,t)&&!b.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce(((r,t)=>(b.f[t](e,r),r)),[])),b.u=e=>e+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-primary-navigation-app:",b.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,b.nc&&i.setAttribute("nonce",b.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{b.S={};var e={},r={};b.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];b.o(b.S,t)||(b.S[t]={});var a=b.S[t],i="@openmrs/esm-primary-navigation-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework/src/internal","4.0.3-pre.
|
|
1
|
+
var _openmrs_esm_primary_navigation_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g={7130:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(776),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function b(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e](t,t.exports,b),t.loaded=!0,t.exports}b.m=g,b.c=y,b.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return b.d(r,{a:r}),r},b.d=(e,r)=>{for(var t in r)b.o(r,t)&&!b.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce(((r,t)=>(b.f[t](e,r),r)),[])),b.u=e=>e+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-primary-navigation-app:",b.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,b.nc&&i.setAttribute("nonce",b.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{b.S={};var e={},r={};b.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];b.o(b.S,t)||(b.S[t]={});var a=b.S[t],i="@openmrs/esm-primary-navigation-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework/src/internal","4.0.3-pre.365",(()=>Promise.all([b.e(776),b.e(889)]).then((()=>()=>b(4889))))),l("react-dom","18.2.0",(()=>Promise.all([b.e(788),b.e(776)]).then((()=>()=>b(2788))))),l("react-i18next","11.18.3",(()=>Promise.all([b.e(146),b.e(776)]).then((()=>()=>b(7146))))),l("react-router-dom","5.3.3",(()=>Promise.all([b.e(41),b.e(776),b.e(216)]).then((()=>()=>b(5041))))),l("react","18.2.0",(()=>b.e(735).then((()=>()=>b(2735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;b.g.importScripts&&(e=b.g.location+"");var r=b.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return p(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),d=(f=e=>function(r,t,n,o){var a=b.I(r);return a&&a.then?a.then(e.bind(e,r,b.S[r],t,n,o)):e(r,b.S[r],t,n,o)})(((e,r,t,n)=>r&&b.o(r,t)?s(r,0,t):n())),c=f(((e,r,t,n,o)=>r&&b.o(r,t)?u(r,0,t,n):o())),h={},m={5776:()=>c("default","react",[1,18],(()=>b.e(735).then((()=>()=>b(2735))))),4610:()=>c("default","@openmrs/esm-framework",[0],(()=>b.e(889).then((()=>()=>b(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>b.e(889).then((()=>()=>b(4889))))),2680:()=>c("default","react-i18next",[1,11],(()=>b.e(146).then((()=>()=>b(7146))))),7743:()=>c("default","react-router-dom",[1,6],(()=>b.e(41).then((()=>()=>b(5041)))))},v={656:[7743],680:[2680],776:[5776],789:[4610,8478]},b.f.consumes=(e,r)=>{b.o(v,e)&&v[e].forEach((e=>{if(b.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,b.m[e]=t=>{delete b.c[e],t.exports=r()}},n=r=>{delete h[e],b.m[e]=t=>{throw delete b.c[e],r}};try{var o=m[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={115:0};b.f.j=(r,t)=>{var n=b.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(680|776)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=b.p+b.u(r),i=new Error;b.l(a,(t=>{if(b.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)b.o(i,n)&&(b.m[n]=i[n]);l&&l(b)}for(r&&r(t);s<a.length;s++)o=a[s],b.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),b.nc=void 0;var w=b(7130);_openmrs_esm_primary_navigation_app=w})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-primary-navigation-app",
|
|
3
|
-
"version": "4.0.3-pre.
|
|
3
|
+
"version": "4.0.3-pre.365",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Main navbar microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-primary-navigation-app.js",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"rxjs": "6.x"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@openmrs/esm-framework": "^4.0.3-pre.
|
|
53
|
-
"@openmrs/webpack-config": "^4.0.3-pre.
|
|
52
|
+
"@openmrs/esm-framework": "^4.0.3-pre.365",
|
|
53
|
+
"@openmrs/webpack-config": "^4.0.3-pre.365",
|
|
54
54
|
"jest": "^28.1.0",
|
|
55
55
|
"react": "^18.1.0",
|
|
56
56
|
"react-dom": "^18.1.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"react-router-dom": "^5.3.1",
|
|
59
59
|
"rxjs": "^6.5.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a9fec7419126ebd2e9339889d982c7acf4a0de2c"
|
|
62
62
|
}
|