@openmrs/esm-primary-navigation-app 4.0.3-pre.371 → 4.0.3-pre.389

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/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t,e,n={6639:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a,genericLinkConfigSchema:()=>u});var r=n(5776),o=n.n(r),i=n(4610),u={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 a(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,e,n)=>{"use strict";n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{"use strict";var r=n(4610);n(8478),r.Type.String,r.Type.String,r.Type.String,r.Type.Array,r.Type.String,r.Type.String,r.validators.isUrl;var o=n(1217),i=Object.freeze({__proto__:null,get start(){return Gt},get ensureJQuerySupport(){return mt},get setBootstrapMaxTime(){return V},get setMountMaxTime(){return z},get setUnmountMaxTime(){return X},get setUnloadMaxTime(){return Y},get registerApplication(){return _t},get unregisterApplication(){return jt},get getMountedApps(){return Ot},get getAppStatus(){return At},get unloadApplication(){return Ut},get checkActivityFunctions(){return Nt},get getAppNames(){return St},get pathToActiveWhen(){return Mt},get navigateToUrl(){return ut},get triggerAppChange(){return Rt},get addErrorHandler(){return p},get removeErrorHandler(){return h},get mountRootParcel(){return K},get NOT_LOADED(){return v},get LOADING_SOURCE_CODE(){return w},get NOT_BOOTSTRAPPED(){return g},get BOOTSTRAPPING(){return y},get NOT_MOUNTED(){return E},get MOUNTING(){return b},get UPDATING(){return P},get LOAD_ERROR(){return S},get MOUNTED(){return T},get UNMOUNTING(){return O},get SKIP_BECAUSE_BROKEN(){return A}});function u(t){return(u="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 a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,c=function(){try{var t=new s("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?s:"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},f=[];function l(t,e,n){var r=m(t,e,n);f.length?f.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}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(n){var r=n===t;return e=e||r,!r})),e}function d(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[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(r.length?"&arg=".concat(r.join("&arg=")):"")}function m(t,e,n){var r,o="".concat(D(e)," '").concat(j(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(d(30,!1,e.status,j(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=j(e),e.status=n,r}var v="NOT_LOADED",w="LOADING_SOURCE_CODE",g="NOT_BOOTSTRAPPED",y="BOOTSTRAPPING",E="NOT_MOUNTED",b="MOUNTING",T="MOUNTED",P="UPDATING",O="UNMOUNTING",S="LOAD_ERROR",A="SKIP_BECAUSE_BROKEN";function _(t){return t.status===T}function N(t){try{return t.activeWhen(window.location)}catch(e){return l(e,t,A),!1}}function j(t){return t.name}function U(t){return Boolean(t.unmountThisParcel)}function D(t){return U(t)?"parcel":"application"}function L(){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 M(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function k(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!M(e,(function(t){return"function"!=typeof t}))));var e}function x(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=D(t),o=j(t);return function(t){return n.reduce((function(n,i,u){return n.then((function(){var n=i(t);return C(n)?n:Promise.reject(d(15,!1,r,o,e,u))}))}),Promise.resolve())}}function C(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function R(t,e){return Promise.resolve().then((function(){return t.status!==g?t:(t.status=y,t.bootstrap?Z(t,"bootstrap").then(n).catch((function(n){if(e)throw m(n,t,A);return l(n,t,A),t})):Promise.resolve().then(n))}));function n(){return t.status=E,t}}function I(t,e){return Promise.resolve().then((function(){if(t.status!==T)return t;t.status=O;var n=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(e)throw m(r,t,A);l(r,t,A)}))})).then((function(){return t}));function r(){return Z(t,"unmount").then((function(){t.status=E})).catch((function(n){if(e)throw m(n,t,A);l(n,t,A)}))}}))}var B=!1,$=!1;function G(t,e){return Promise.resolve().then((function(){return t.status!==E?t:(B||(window.dispatchEvent(new c("single-spa:before-first-mount")),B=!0),Z(t,"mount").then((function(){return t.status=T,$||(window.dispatchEvent(new c("single-spa:first-mount")),$=!0),t})).catch((function(n){return t.status=T,I(t,!0).then(r,r);function r(){if(e)throw m(n,t,A);return l(n,t,A),t}})))}))}var W=0,F={parcels:{}};function K(){return q.apply(F,arguments)}function q(t,e){var n=this;if(!t||"object"!==u(t)&&"function"!=typeof t)throw Error(d(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(d(3,!1,u(t.name)));if("object"!==u(e))throw Error(d(4,!1,name,u(e)));if(!e.domElement)throw Error(d(5,!1,name));var r,o=W++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},s={id:o,parcels:{},status:i?w:g,customProps:e,parentName:j(n),unmountThisParcel:function(){return h.then((function(){if(s.status!==T)throw Error(d(6,!1,name,s.status));return I(s,!0)})).then((function(t){return s.parentName&&delete n.parcels[s.id],t})).then((function(t){return f(t),t})).catch((function(t){throw s.status=A,l(t),t}))}};n.parcels[o]=s;var c=a();if(!c||"function"!=typeof c.then)throw Error(d(7,!1));var f,l,p=(c=c.then((function(t){if(!t)throw Error(d(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!k(t.bootstrap))throw Error(d(9,!1,e));if(!k(t.mount))throw Error(d(10,!1,e));if(!k(t.unmount))throw Error(d(11,!1,e));if(t.update&&!k(t.update))throw Error(d(12,!1,e));var n=x(t,"bootstrap"),i=x(t,"mount"),u=x(t,"unmount");s.status=g,s.name=e,s.bootstrap=n,s.mount=i,s.unmount=u,s.timeouts=tt(t.timeouts),t.update&&(s.update=x(t,"update"),r.update=function(t){return s.customProps=t,J(function(t){return Promise.resolve().then((function(){if(t.status!==T)throw Error(d(32,!1,j(t)));return t.status=P,Z(t,"update").then((function(){return t.status=T,t})).catch((function(e){throw m(e,t,A)}))}))}(s))})}))).then((function(){return R(s,!0)})),h=p.then((function(){return G(s,!0)})),v=new Promise((function(t,e){f=t,l=e}));return r={mount:function(){return J(Promise.resolve().then((function(){if(s.status!==E)throw Error(d(13,!1,name,s.status));return n.parcels[o]=s,G(s)})))},unmount:function(){return J(s.unmountThisParcel())},getStatus:function(){return s.status},loadPromise:J(c),bootstrapPromise:J(p),mountPromise:J(h),unmountPromise:J(v)}}function J(t){return t.then((function(){return null}))}function H(t){var e=j(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==u(n)||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),e,n));var r=L({},n,{name:e,mountParcel:q.bind(t),singleSpa:i});return U(t)&&(r.unmountSelf=t.unmountThisParcel),r}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,n){if("number"!=typeof t||t<=0)throw Error(d(16,!1));Q.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function z(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(17,!1));Q.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function X(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(18,!1));Q.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function Y(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(19,!1));Q.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function Z(t,e){var n=t.timeouts[e],r=n.warningMillis,o=D(t);return new Promise((function(i,u){var a=!1,s=!1;t[e](H(t)).then((function(t){a=!0,i(t)})).catch((function(t){a=!0,u(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),n.millis);var c=d(31,!1,e,o,j(t),n.millis);function f(t){if(!a)if(!0===t)s=!0,n.dieOnTimeout?u(Error(c)):console.error(c);else if(!s){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return f(e+1)}),r)}}}))}function tt(t){var e={};for(var n in Q)e[n]=L({},Q[n],t&&t[n]||{});return e}function et(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==v&&t.status!==S?t:(t.status=w,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(H(t));if(!C(r))throw n=!0,Error(d(33,!1,j(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==u(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!k(e.bootstrap)&&(r=35),k(e.mount)||(r=36),k(e.unmount)||(r=37);var o=D(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(d(r,!1,o,j(t),i),e),l(void 0,t,A),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=L({},t.devtools.overlays,e.devtools.overlays)),t.status=g,t.bootstrap=x(e,"bootstrap"),t.mount=x(e,"mount"),t.unmount=x(e,"unmount"),t.unload=x(e,"unload"),t.timeouts=tt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=A:(r=S,t.loadErrorTime=(new Date).getTime()),l(e,t,r),t})));var e,n}))}var nt,rt="undefined"!=typeof window,ot={hashchange:[],popstate:[]},it=["hashchange","popstate"];function ut(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 n=ht(window.location.href),r=ht(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function at(t){var e=this;if(t){var n=t[0].type;it.indexOf(n)>=0&&ot[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function st(){It([],arguments)}function ct(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return nt&&n===o||(Wt()?window.dispatchEvent(ft(window.history.state,e)):It([])),r}}function ft(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}if(rt){window.addEventListener("hashchange",st),window.addEventListener("popstate",st);var lt=window.addEventListener,pt=window.removeEventListener;window.addEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0)||M(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=ct(window.history.pushState,"pushState"),window.history.replaceState=ct(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=ut}function ht(t){var e=document.createElement("a");return e.href=t,e}var dt=!1;function mt(){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,n=t.fn.off;t.fn.on=function(t,n){return vt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return vt.call(this,n,window.removeEventListener,t,e,arguments)},dt=!0}}function vt(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){it.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var wt={};function gt(t){return Promise.resolve().then((function(){var e=wt[j(t)];if(!e)return t;if(t.status===v)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 n=t.status===S?Promise.resolve():Z(t,"unload");return t.status="UNLOADING",n.then((function(){return yt(t,e),t})).catch((function(n){return function(t,e,n){delete wt[j(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,l(n,t,A),e.reject(n)}(t,e,n),t}))}))}function yt(t,e){delete wt[j(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=v,e.resolve()}function Et(t,e,n,r){wt[j(t)]={app:t,resolve:n,reject:r},Object.defineProperty(wt[j(t)],"promise",{get:e})}function bt(t){return wt[t]}var Tt=[];function Pt(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Tt.forEach((function(i){var u=i.status!==A&&N(i);switch(i.status){case S:u&&o-i.loadErrorTime>=200&&n.push(i);break;case v:case w:u&&n.push(i);break;case g:case E:!u&&bt(j(i))?t.push(i):u&&r.push(i);break;case T:u||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function Ot(){return Tt.filter(_).map(j)}function St(){return Tt.map(j)}function At(t){var e=M(Tt,(function(e){return j(e)===t}));return e?e.status:null}function _t(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===u(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(d(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(d(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(d(20,!1));if("object"!==u(t.app)&&"function"!=typeof t.app)throw Error(d(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(d(24,!1));if(!Lt(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,n,r){if("string"!=typeof t||0===t.length)throw Error(d(20,!1));if(!e)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!Lt(r))throw Error(d(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),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:Mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==St().indexOf(o.name))throw Error(d(21,!1,o.name));Tt.push(L({loadErrorTime:null,status:v,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),rt&&(mt(),It())}function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Tt.filter((function(e){return e.activeWhen(t)})).map(j)}function jt(t){if(0===Tt.filter((function(e){return j(e)===t})).length)throw Error(d(25,!1,t));return Ut(t).then((function(){var e=Tt.map(j).indexOf(t);Tt.splice(e,1)}))}function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(d(26,!1));var n=M(Tt,(function(e){return j(e)===t}));if(!n)throw Error(d(27,!1,t));var r,o=bt(j(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Et(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,Dt(n,o.resolve,o.reject)):r=new Promise((function(t,e){Et(n,(function(){return r}),t,e),Dt(n,t,e)})),r}function Dt(t,e,n){I(t).then(gt).then((function(){e(),setTimeout((function(){It()}))})).catch(n)}function Lt(t){return!t||"function"==typeof t||"object"===u(t)&&null!==t&&!Array.isArray(t)}function Mt(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var u=t[i];(!r&&":"===u||r&&"/"===u)&&a(i)}return a(t.length),new RegExp(o,"i");function a(i){var u=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":u,i===t.length)if(r)e&&(o+="$");else{var a=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(a,"$"):"".concat(o,"(/").concat(a,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var kt=!1,xt=[],Ct=rt&&window.location.href;function Rt(){return It()}function It(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(kt)return new Promise((function(t,n){xt.push({resolve:t,reject:n,eventArguments:e})}));var n,r=Pt(),o=r.appsToUnload,i=r.appsToUnmount,u=r.appsToLoad,s=r.appsToMount,f=!1,l=Ct,p=Ct=window.location.href;return Wt()?(kt=!0,n=o.concat(u,i,s),m()):(n=u,d());function h(){f=!0}function d(){return Promise.resolve().then((function(){var t=u.map(et);return Promise.all(t).then(g).then((function(){return[]})).catch((function(t){throw g(),t}))}))}function m(){return Promise.resolve().then((function(){if(window.dispatchEvent(new c(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",y(!0))),window.dispatchEvent(new c("single-spa:before-routing-event",y(!0,{cancelNavigation:h}))),f)return window.dispatchEvent(new c("single-spa:before-mount-routing-event",y(!0))),w(),void ut(l);var e=o.map(gt),r=i.map(I).map((function(t){return t.then(gt)})).concat(e),a=Promise.all(r);a.then((function(){window.dispatchEvent(new c("single-spa:before-mount-routing-event",y(!0)))}));var p=u.map((function(t){return et(t).then((function(t){return Bt(t,a)}))})),d=s.filter((function(t){return u.indexOf(t)<0})).map((function(t){return Bt(t,a)}));return a.catch((function(t){throw g(),t})).then((function(){return g(),Promise.all(p.concat(d)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(w)}))}))}function w(){var e=Ot();t.forEach((function(t){return t.resolve(e)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new c(r,y())),window.dispatchEvent(new c("single-spa:routing-event",y()))}catch(t){setTimeout((function(){throw t}))}if(kt=!1,xt.length>0){var o=xt;xt=[],It(o)}return e}function g(){t.forEach((function(t){at(t.eventArguments)})),at(e)}function y(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=arguments.length>1?arguments[1]:void 0,h={},d=(a(t={},T,[]),a(t,E,[]),a(t,v,[]),a(t,A,[]),t);r?(u.concat(s).forEach((function(t,e){w(t,T)})),o.forEach((function(t){w(t,v)})),i.forEach((function(t){w(t,E)}))):n.forEach((function(t){w(t)}));var m={detail:{newAppStatuses:h,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==e?void 0:e[0],oldUrl:l,newUrl:p,navigationIsCanceled:f}};return c&&L(m.detail,c),m;function w(t,e){var n=j(t);e=e||At(n),h[n]=e,(d[e]=d[e]||[]).push(n)}}}function Bt(t,e){return N(t)?R(t).then((function(t){return e.then((function(){return N(t)?G(t):t}))})):e.then((function(){return t}))}var $t=!1;function Gt(t){var e;$t=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,nt=e),rt&&It()}function Wt(){return $t}rt&&setTimeout((function(){$t||console.warn(d(1,!1))}),5e3);var Ft={getRawAppData:function(){return[].concat(Tt)},reroute:It,NOT_LOADED:v,toLoadPromise:et,toBootstrapPromise:R,unregisterApplication:jt};rt&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Ft),n(6639),n(3979),o.e},3979:(t,e,n)=>{var r={"./en.json":[3574,574]};function o(t){if(!n.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.c=r,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](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=(n,r,i,u)=>{if(t[n])t[n].push(r);else{var a,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==n||l.getAttribute("data-webpack")==e+i){a=l;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",e+i),a.src=n),t[n]=[r];var p=(e,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(r))),e)return e(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},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=(n,r)=>{r||(r=[]);var i=e[n];if(i||(i=e[n]={}),!(r.indexOf(i)>=0)){if(r.push(i),t[n])return t[n];o.o(o.S,n)||(o.S[n]={});var u=o.S[n],a="@openmrs/esm-primary-navigation-app",s=(t,e,n,r)=>{var o=u[t]=u[t]||{},i=o[e];(!i||!i.loaded&&(!r!=!i.eager?r:a>i.from))&&(o[e]={get:n,from:a,eager:!!r})},c=[];return"default"===n&&(s("@openmrs/esm-framework/src/internal","4.0.3-pre.371",(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889))))),s("react-dom","18.2.0",(()=>Promise.all([o.e(788),o.e(776)]).then((()=>()=>o(2788))))),s("react-i18next","11.18.6",(()=>Promise.all([o.e(146),o.e(776)]).then((()=>()=>o(7146))))),s("react-router-dom","5.3.4",(()=>Promise.all([o.e(787),o.e(776),o.e(216)]).then((()=>()=>o(9787))))),s("react","18.2.0",(()=>o.e(735).then((()=>()=>o(2735)))))),t[n]=c.length?Promise.all(c).then((()=>t[n]=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 n=e.getElementsByTagName("script");n.length&&(t=n[n.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)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},e=t=>{var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(a=t[i]))[0]?"-":(o>0?".":"")+(o=2,a);return r}var u=[];for(i=1;i<t.length;i++){var a=t[i];u.push(0===a?"not("+s()+")":1===a?"("+s()+" || "+s()+")":2===a?u.pop()+" "+u.pop():e(a))}return s();function s(){return u.pop().replace(/^\((.+)\)$/,"$1")}},n=(e,r)=>{if(0 in e){r=t(r);var o=e[0],i=o<0;i&&(o=-o-1);for(var u=0,a=1,s=!0;;a++,u++){var c,f,l=a<e.length?(typeof e[a])[0]:"";if(u>=r.length||"o"==(f=(typeof(c=r[u]))[0]))return!s||("u"==l?a>o&&!i:""==l!=i);if("u"==f){if(!s||"u"!=l)return!1}else if(s)if(l==f)if(a<=o){if(c!=e[a])return!1}else{if(i?c>e[a]:c<e[a])return!1;c!=e[a]&&(s=!1)}else if("s"!=l&&"n"!=l){if(i||a<=o)return!1;s=!1,a--}else{if(a<=o||f<l!=i)return!1;s=!1}else"s"!=l&&"n"!=l&&(s=!1,a--)}}var p=[],h=p.pop.bind(p);for(u=1;u<e.length;u++){var d=e[u];p.push(1==d?h()|h():2==d?h()&h():d?n(d,r):!h())}return!!h()},r=(e,n)=>{var r=e[n];return Object.keys(r).reduce(((e,n)=>!e||!r[e].loaded&&((e,n)=>{e=t(e),n=t(n);for(var r=0;;){if(r>=e.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=e[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var u=n[r],a=(typeof u)[0];if(i!=a)return"o"==i&&"n"==a||"s"==a||"u"==i;if("o"!=i&&"u"!=i&&o!=u)return o<u;r++}})(e,n)?n:e),0)},i=(t,o,i,a)=>{var s=r(t,i);return n(a,s)||"undefined"!=typeof console&&console.warn&&console.warn(((t,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&t[n][r].from)+" of shared singleton module "+n+" (required "+e(o)+")")(t,i,s,a)),u(t[i][s])},u=t=>(t.loaded=1,t.get()),a=t=>function(e,n,r,i){var u=o.I(e);return u&&u.then?u.then(t.bind(t,e,o.S[e],n,r,i)):t(e,o.S[e],n,r,i)},s=a(((t,e,n,i)=>e&&o.o(e,n)?((t,e,n,o)=>{var i=r(t,n);return u(t[n][i])})(e,0,n):i())),c=a(((t,e,n,r,u)=>e&&o.o(e,n)?i(e,0,n,r):u())),f={},l={2680:()=>c("default","react-i18next",[1,11],(()=>o.e(146).then((()=>()=>o(7146))))),7743:()=>c("default","react-router-dom",[1,6],(()=>o.e(787).then((()=>()=>o(9787))))),5776:()=>c("default","react",[1,18],(()=>o.e(735).then((()=>()=>o(2735))))),4610:()=>c("default","@openmrs/esm-framework",[0],(()=>o.e(889).then((()=>()=>o(4889))))),8478:()=>s("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 n=l[t]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+t);e.exports=n()}}));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 n=e=>{f[t]=0,o.m[t]=n=>{delete o.c[t],n.exports=e()}},r=e=>{delete f[t],o.m[t]=n=>{throw delete o.c[t],e}};try{var i=l[t]();i.then?e.push(f[t]=i.then(n).catch(r)):n(i)}catch(t){r(t)}}))}})(),(()=>{var t={179:0,776:0,789:0};o.f.j=(e,n)=>{var r=o.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(680|776)$/.test(e))t[e]=0;else{var i=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=i);var u=o.p+o.u(e),a=new Error;o.l(u,(n=>{if(o.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,r[1](a)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[u,a,s]=n,c=0;if(u.some((e=>0!==t[e]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);s&&s(o)}for(e&&e(n);c<u.length;c++)i=u[c],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},n=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),o.nc=void 0,o(789)})();
1
+ (()=>{var t,e,n={6639:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a,genericLinkConfigSchema:()=>u});var r=n(5776),o=n.n(r),i=n(4610),u={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 a(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,e,n)=>{"use strict";n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{"use strict";var r=n(4610);n(8478),r.Type.String,r.Type.String,r.Type.String,r.Type.Array,r.Type.String,r.Type.String,r.validators.isUrl;var o=n(1217),i=Object.freeze({__proto__:null,get start(){return Gt},get ensureJQuerySupport(){return mt},get setBootstrapMaxTime(){return V},get setMountMaxTime(){return z},get setUnmountMaxTime(){return X},get setUnloadMaxTime(){return Y},get registerApplication(){return _t},get unregisterApplication(){return jt},get getMountedApps(){return Ot},get getAppStatus(){return At},get unloadApplication(){return Ut},get checkActivityFunctions(){return Nt},get getAppNames(){return St},get pathToActiveWhen(){return Mt},get navigateToUrl(){return ut},get triggerAppChange(){return Rt},get addErrorHandler(){return p},get removeErrorHandler(){return h},get mountRootParcel(){return K},get NOT_LOADED(){return v},get LOADING_SOURCE_CODE(){return w},get NOT_BOOTSTRAPPED(){return g},get BOOTSTRAPPING(){return y},get NOT_MOUNTED(){return E},get MOUNTING(){return b},get UPDATING(){return P},get LOAD_ERROR(){return S},get MOUNTED(){return T},get UNMOUNTING(){return O},get SKIP_BECAUSE_BROKEN(){return A}});function u(t){return(u="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 a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,c=function(){try{var t=new s("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?s:"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},f=[];function l(t,e,n){var r=m(t,e,n);f.length?f.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}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(n){var r=n===t;return e=e||r,!r})),e}function d(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[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(r.length?"&arg=".concat(r.join("&arg=")):"")}function m(t,e,n){var r,o="".concat(D(e)," '").concat(j(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(d(30,!1,e.status,j(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=j(e),e.status=n,r}var v="NOT_LOADED",w="LOADING_SOURCE_CODE",g="NOT_BOOTSTRAPPED",y="BOOTSTRAPPING",E="NOT_MOUNTED",b="MOUNTING",T="MOUNTED",P="UPDATING",O="UNMOUNTING",S="LOAD_ERROR",A="SKIP_BECAUSE_BROKEN";function _(t){return t.status===T}function N(t){try{return t.activeWhen(window.location)}catch(e){return l(e,t,A),!1}}function j(t){return t.name}function U(t){return Boolean(t.unmountThisParcel)}function D(t){return U(t)?"parcel":"application"}function L(){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 M(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function k(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!M(e,(function(t){return"function"!=typeof t}))));var e}function x(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=D(t),o=j(t);return function(t){return n.reduce((function(n,i,u){return n.then((function(){var n=i(t);return C(n)?n:Promise.reject(d(15,!1,r,o,e,u))}))}),Promise.resolve())}}function C(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function R(t,e){return Promise.resolve().then((function(){return t.status!==g?t:(t.status=y,t.bootstrap?Z(t,"bootstrap").then(n).catch((function(n){if(e)throw m(n,t,A);return l(n,t,A),t})):Promise.resolve().then(n))}));function n(){return t.status=E,t}}function I(t,e){return Promise.resolve().then((function(){if(t.status!==T)return t;t.status=O;var n=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(e)throw m(r,t,A);l(r,t,A)}))})).then((function(){return t}));function r(){return Z(t,"unmount").then((function(){t.status=E})).catch((function(n){if(e)throw m(n,t,A);l(n,t,A)}))}}))}var B=!1,$=!1;function G(t,e){return Promise.resolve().then((function(){return t.status!==E?t:(B||(window.dispatchEvent(new c("single-spa:before-first-mount")),B=!0),Z(t,"mount").then((function(){return t.status=T,$||(window.dispatchEvent(new c("single-spa:first-mount")),$=!0),t})).catch((function(n){return t.status=T,I(t,!0).then(r,r);function r(){if(e)throw m(n,t,A);return l(n,t,A),t}})))}))}var W=0,F={parcels:{}};function K(){return q.apply(F,arguments)}function q(t,e){var n=this;if(!t||"object"!==u(t)&&"function"!=typeof t)throw Error(d(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(d(3,!1,u(t.name)));if("object"!==u(e))throw Error(d(4,!1,name,u(e)));if(!e.domElement)throw Error(d(5,!1,name));var r,o=W++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},s={id:o,parcels:{},status:i?w:g,customProps:e,parentName:j(n),unmountThisParcel:function(){return h.then((function(){if(s.status!==T)throw Error(d(6,!1,name,s.status));return I(s,!0)})).then((function(t){return s.parentName&&delete n.parcels[s.id],t})).then((function(t){return f(t),t})).catch((function(t){throw s.status=A,l(t),t}))}};n.parcels[o]=s;var c=a();if(!c||"function"!=typeof c.then)throw Error(d(7,!1));var f,l,p=(c=c.then((function(t){if(!t)throw Error(d(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!k(t.bootstrap))throw Error(d(9,!1,e));if(!k(t.mount))throw Error(d(10,!1,e));if(!k(t.unmount))throw Error(d(11,!1,e));if(t.update&&!k(t.update))throw Error(d(12,!1,e));var n=x(t,"bootstrap"),i=x(t,"mount"),u=x(t,"unmount");s.status=g,s.name=e,s.bootstrap=n,s.mount=i,s.unmount=u,s.timeouts=tt(t.timeouts),t.update&&(s.update=x(t,"update"),r.update=function(t){return s.customProps=t,J(function(t){return Promise.resolve().then((function(){if(t.status!==T)throw Error(d(32,!1,j(t)));return t.status=P,Z(t,"update").then((function(){return t.status=T,t})).catch((function(e){throw m(e,t,A)}))}))}(s))})}))).then((function(){return R(s,!0)})),h=p.then((function(){return G(s,!0)})),v=new Promise((function(t,e){f=t,l=e}));return r={mount:function(){return J(Promise.resolve().then((function(){if(s.status!==E)throw Error(d(13,!1,name,s.status));return n.parcels[o]=s,G(s)})))},unmount:function(){return J(s.unmountThisParcel())},getStatus:function(){return s.status},loadPromise:J(c),bootstrapPromise:J(p),mountPromise:J(h),unmountPromise:J(v)}}function J(t){return t.then((function(){return null}))}function H(t){var e=j(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==u(n)||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),e,n));var r=L({},n,{name:e,mountParcel:q.bind(t),singleSpa:i});return U(t)&&(r.unmountSelf=t.unmountThisParcel),r}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,n){if("number"!=typeof t||t<=0)throw Error(d(16,!1));Q.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function z(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(17,!1));Q.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function X(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(18,!1));Q.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function Y(t,e,n){if("number"!=typeof t||t<=0)throw Error(d(19,!1));Q.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function Z(t,e){var n=t.timeouts[e],r=n.warningMillis,o=D(t);return new Promise((function(i,u){var a=!1,s=!1;t[e](H(t)).then((function(t){a=!0,i(t)})).catch((function(t){a=!0,u(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),n.millis);var c=d(31,!1,e,o,j(t),n.millis);function f(t){if(!a)if(!0===t)s=!0,n.dieOnTimeout?u(Error(c)):console.error(c);else if(!s){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return f(e+1)}),r)}}}))}function tt(t){var e={};for(var n in Q)e[n]=L({},Q[n],t&&t[n]||{});return e}function et(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==v&&t.status!==S?t:(t.status=w,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(H(t));if(!C(r))throw n=!0,Error(d(33,!1,j(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==u(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!k(e.bootstrap)&&(r=35),k(e.mount)||(r=36),k(e.unmount)||(r=37);var o=D(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(d(r,!1,o,j(t),i),e),l(void 0,t,A),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=L({},t.devtools.overlays,e.devtools.overlays)),t.status=g,t.bootstrap=x(e,"bootstrap"),t.mount=x(e,"mount"),t.unmount=x(e,"unmount"),t.unload=x(e,"unload"),t.timeouts=tt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=A:(r=S,t.loadErrorTime=(new Date).getTime()),l(e,t,r),t})));var e,n}))}var nt,rt="undefined"!=typeof window,ot={hashchange:[],popstate:[]},it=["hashchange","popstate"];function ut(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 n=ht(window.location.href),r=ht(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function at(t){var e=this;if(t){var n=t[0].type;it.indexOf(n)>=0&&ot[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function st(){It([],arguments)}function ct(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return nt&&n===o||(Wt()?window.dispatchEvent(ft(window.history.state,e)):It([])),r}}function ft(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}if(rt){window.addEventListener("hashchange",st),window.addEventListener("popstate",st);var lt=window.addEventListener,pt=window.removeEventListener;window.addEventListener=function(t,e){if(!("function"==typeof e&&it.indexOf(t)>=0)||M(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=ct(window.history.pushState,"pushState"),window.history.replaceState=ct(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=ut}function ht(t){var e=document.createElement("a");return e.href=t,e}var dt=!1;function mt(){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,n=t.fn.off;t.fn.on=function(t,n){return vt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return vt.call(this,n,window.removeEventListener,t,e,arguments)},dt=!0}}function vt(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){it.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var wt={};function gt(t){return Promise.resolve().then((function(){var e=wt[j(t)];if(!e)return t;if(t.status===v)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 n=t.status===S?Promise.resolve():Z(t,"unload");return t.status="UNLOADING",n.then((function(){return yt(t,e),t})).catch((function(n){return function(t,e,n){delete wt[j(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,l(n,t,A),e.reject(n)}(t,e,n),t}))}))}function yt(t,e){delete wt[j(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=v,e.resolve()}function Et(t,e,n,r){wt[j(t)]={app:t,resolve:n,reject:r},Object.defineProperty(wt[j(t)],"promise",{get:e})}function bt(t){return wt[t]}var Tt=[];function Pt(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Tt.forEach((function(i){var u=i.status!==A&&N(i);switch(i.status){case S:u&&o-i.loadErrorTime>=200&&n.push(i);break;case v:case w:u&&n.push(i);break;case g:case E:!u&&bt(j(i))?t.push(i):u&&r.push(i);break;case T:u||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function Ot(){return Tt.filter(_).map(j)}function St(){return Tt.map(j)}function At(t){var e=M(Tt,(function(e){return j(e)===t}));return e?e.status:null}function _t(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===u(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(d(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(d(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(d(20,!1));if("object"!==u(t.app)&&"function"!=typeof t.app)throw Error(d(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(d(24,!1));if(!Lt(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,n,r){if("string"!=typeof t||0===t.length)throw Error(d(20,!1));if(!e)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!Lt(r))throw Error(d(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),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:Mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==St().indexOf(o.name))throw Error(d(21,!1,o.name));Tt.push(L({loadErrorTime:null,status:v,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),rt&&(mt(),It())}function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Tt.filter((function(e){return e.activeWhen(t)})).map(j)}function jt(t){if(0===Tt.filter((function(e){return j(e)===t})).length)throw Error(d(25,!1,t));return Ut(t).then((function(){var e=Tt.map(j).indexOf(t);Tt.splice(e,1)}))}function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(d(26,!1));var n=M(Tt,(function(e){return j(e)===t}));if(!n)throw Error(d(27,!1,t));var r,o=bt(j(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Et(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,Dt(n,o.resolve,o.reject)):r=new Promise((function(t,e){Et(n,(function(){return r}),t,e),Dt(n,t,e)})),r}function Dt(t,e,n){I(t).then(gt).then((function(){e(),setTimeout((function(){It()}))})).catch(n)}function Lt(t){return!t||"function"==typeof t||"object"===u(t)&&null!==t&&!Array.isArray(t)}function Mt(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var u=t[i];(!r&&":"===u||r&&"/"===u)&&a(i)}return a(t.length),new RegExp(o,"i");function a(i){var u=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":u,i===t.length)if(r)e&&(o+="$");else{var a=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(a,"$"):"".concat(o,"(/").concat(a,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var kt=!1,xt=[],Ct=rt&&window.location.href;function Rt(){return It()}function It(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(kt)return new Promise((function(t,n){xt.push({resolve:t,reject:n,eventArguments:e})}));var n,r=Pt(),o=r.appsToUnload,i=r.appsToUnmount,u=r.appsToLoad,s=r.appsToMount,f=!1,l=Ct,p=Ct=window.location.href;return Wt()?(kt=!0,n=o.concat(u,i,s),m()):(n=u,d());function h(){f=!0}function d(){return Promise.resolve().then((function(){var t=u.map(et);return Promise.all(t).then(g).then((function(){return[]})).catch((function(t){throw g(),t}))}))}function m(){return Promise.resolve().then((function(){if(window.dispatchEvent(new c(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",y(!0))),window.dispatchEvent(new c("single-spa:before-routing-event",y(!0,{cancelNavigation:h}))),f)return window.dispatchEvent(new c("single-spa:before-mount-routing-event",y(!0))),w(),void ut(l);var e=o.map(gt),r=i.map(I).map((function(t){return t.then(gt)})).concat(e),a=Promise.all(r);a.then((function(){window.dispatchEvent(new c("single-spa:before-mount-routing-event",y(!0)))}));var p=u.map((function(t){return et(t).then((function(t){return Bt(t,a)}))})),d=s.filter((function(t){return u.indexOf(t)<0})).map((function(t){return Bt(t,a)}));return a.catch((function(t){throw g(),t})).then((function(){return g(),Promise.all(p.concat(d)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(w)}))}))}function w(){var e=Ot();t.forEach((function(t){return t.resolve(e)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new c(r,y())),window.dispatchEvent(new c("single-spa:routing-event",y()))}catch(t){setTimeout((function(){throw t}))}if(kt=!1,xt.length>0){var o=xt;xt=[],It(o)}return e}function g(){t.forEach((function(t){at(t.eventArguments)})),at(e)}function y(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=arguments.length>1?arguments[1]:void 0,h={},d=(a(t={},T,[]),a(t,E,[]),a(t,v,[]),a(t,A,[]),t);r?(u.concat(s).forEach((function(t,e){w(t,T)})),o.forEach((function(t){w(t,v)})),i.forEach((function(t){w(t,E)}))):n.forEach((function(t){w(t)}));var m={detail:{newAppStatuses:h,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==e?void 0:e[0],oldUrl:l,newUrl:p,navigationIsCanceled:f}};return c&&L(m.detail,c),m;function w(t,e){var n=j(t);e=e||At(n),h[n]=e,(d[e]=d[e]||[]).push(n)}}}function Bt(t,e){return N(t)?R(t).then((function(t){return e.then((function(){return N(t)?G(t):t}))})):e.then((function(){return t}))}var $t=!1;function Gt(t){var e;$t=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,nt=e),rt&&It()}function Wt(){return $t}rt&&setTimeout((function(){$t||console.warn(d(1,!1))}),5e3);var Ft={getRawAppData:function(){return[].concat(Tt)},reroute:It,NOT_LOADED:v,toLoadPromise:et,toBootstrapPromise:R,unregisterApplication:jt};rt&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Ft),n(6639),n(3979),o.e},3979:(t,e,n)=>{var r={"./en.json":[3574,574]};function o(t){if(!n.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.c=r,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](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=(n,r,i,u)=>{if(t[n])t[n].push(r);else{var a,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==n||l.getAttribute("data-webpack")==e+i){a=l;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",e+i),a.src=n),t[n]=[r];var p=(e,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(r))),e)return e(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},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=(n,r)=>{r||(r=[]);var i=e[n];if(i||(i=e[n]={}),!(r.indexOf(i)>=0)){if(r.push(i),t[n])return t[n];o.o(o.S,n)||(o.S[n]={});var u=o.S[n],a="@openmrs/esm-primary-navigation-app",s=(t,e,n,r)=>{var o=u[t]=u[t]||{},i=o[e];(!i||!i.loaded&&(!r!=!i.eager?r:a>i.from))&&(o[e]={get:n,from:a,eager:!!r})},c=[];return"default"===n&&(s("@openmrs/esm-framework/src/internal","4.0.3-pre.389",(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889))))),s("react-dom","18.2.0",(()=>Promise.all([o.e(788),o.e(776)]).then((()=>()=>o(2788))))),s("react-i18next","11.18.6",(()=>Promise.all([o.e(146),o.e(776)]).then((()=>()=>o(7146))))),s("react-router-dom","5.3.4",(()=>Promise.all([o.e(787),o.e(776),o.e(216)]).then((()=>()=>o(9787))))),s("react","18.2.0",(()=>o.e(735).then((()=>()=>o(2735)))))),t[n]=c.length?Promise.all(c).then((()=>t[n]=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 n=e.getElementsByTagName("script");n.length&&(t=n[n.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)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},e=t=>{var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(a=t[i]))[0]?"-":(o>0?".":"")+(o=2,a);return r}var u=[];for(i=1;i<t.length;i++){var a=t[i];u.push(0===a?"not("+s()+")":1===a?"("+s()+" || "+s()+")":2===a?u.pop()+" "+u.pop():e(a))}return s();function s(){return u.pop().replace(/^\((.+)\)$/,"$1")}},n=(e,r)=>{if(0 in e){r=t(r);var o=e[0],i=o<0;i&&(o=-o-1);for(var u=0,a=1,s=!0;;a++,u++){var c,f,l=a<e.length?(typeof e[a])[0]:"";if(u>=r.length||"o"==(f=(typeof(c=r[u]))[0]))return!s||("u"==l?a>o&&!i:""==l!=i);if("u"==f){if(!s||"u"!=l)return!1}else if(s)if(l==f)if(a<=o){if(c!=e[a])return!1}else{if(i?c>e[a]:c<e[a])return!1;c!=e[a]&&(s=!1)}else if("s"!=l&&"n"!=l){if(i||a<=o)return!1;s=!1,a--}else{if(a<=o||f<l!=i)return!1;s=!1}else"s"!=l&&"n"!=l&&(s=!1,a--)}}var p=[],h=p.pop.bind(p);for(u=1;u<e.length;u++){var d=e[u];p.push(1==d?h()|h():2==d?h()&h():d?n(d,r):!h())}return!!h()},r=(e,n)=>{var r=e[n];return Object.keys(r).reduce(((e,n)=>!e||!r[e].loaded&&((e,n)=>{e=t(e),n=t(n);for(var r=0;;){if(r>=e.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=e[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var u=n[r],a=(typeof u)[0];if(i!=a)return"o"==i&&"n"==a||"s"==a||"u"==i;if("o"!=i&&"u"!=i&&o!=u)return o<u;r++}})(e,n)?n:e),0)},i=(t,o,i,a)=>{var s=r(t,i);return n(a,s)||"undefined"!=typeof console&&console.warn&&console.warn(((t,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&t[n][r].from)+" of shared singleton module "+n+" (required "+e(o)+")")(t,i,s,a)),u(t[i][s])},u=t=>(t.loaded=1,t.get()),a=t=>function(e,n,r,i){var u=o.I(e);return u&&u.then?u.then(t.bind(t,e,o.S[e],n,r,i)):t(e,o.S[e],n,r,i)},s=a(((t,e,n,i)=>e&&o.o(e,n)?((t,e,n,o)=>{var i=r(t,n);return u(t[n][i])})(e,0,n):i())),c=a(((t,e,n,r,u)=>e&&o.o(e,n)?i(e,0,n,r):u())),f={},l={2680:()=>c("default","react-i18next",[1,11],(()=>o.e(146).then((()=>()=>o(7146))))),7743:()=>c("default","react-router-dom",[1,6],(()=>o.e(787).then((()=>()=>o(9787))))),5776:()=>c("default","react",[1,18],(()=>o.e(735).then((()=>()=>o(2735))))),4610:()=>c("default","@openmrs/esm-framework",[0],(()=>o.e(889).then((()=>()=>o(4889))))),8478:()=>s("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 n=l[t]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+t);e.exports=n()}}));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 n=e=>{f[t]=0,o.m[t]=n=>{delete o.c[t],n.exports=e()}},r=e=>{delete f[t],o.m[t]=n=>{throw delete o.c[t],e}};try{var i=l[t]();i.then?e.push(f[t]=i.then(n).catch(r)):n(i)}catch(t){r(t)}}))}})(),(()=>{var t={179:0,776:0,789:0};o.f.j=(e,n)=>{var r=o.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(680|776)$/.test(e))t[e]=0;else{var i=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=i);var u=o.p+o.u(e),a=new Error;o.l(u,(n=>{if(o.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,r[1](a)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[u,a,s]=n,c=0;if(u.some((e=>0!==t[e]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);s&&s(o)}for(e&&e(n);c<u.length;c++)i=u[c],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},n=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),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.371",()=>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.6",()=>Promise.all([j.e(146),j.e(776)]).then(()=>()=>j(7146))),a("react-router-dom","5.3.4",()=>Promise.all([j.e(787),j.e(776),j.e(216)]).then(()=>()=>j(9787))),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 h=c[d],j=(typeof h)[0];if(g!=j)return"o"==g&&"n"==j||"s"==j||"u"==g;if("o"!=g&&"u"!=g&&f!=h)return f<h;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 w=[],d=w.pop.bind(w);for(j=1;j<a.length;j++){var c=a[j];w.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(787).then(()=>()=>j(9787)))},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})();
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.389",()=>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.6",()=>Promise.all([j.e(146),j.e(776)]).then(()=>()=>j(7146))),a("react-router-dom","5.3.4",()=>Promise.all([j.e(787),j.e(776),j.e(216)]).then(()=>()=>j(9787))),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 h=c[d],j=(typeof h)[0];if(g!=j)return"o"==g&&"n"==j||"s"==j||"u"==g;if("o"!=g&&"u"!=g&&f!=h)return f<h;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 w=[],d=w.pop.bind(w);for(j=1;j<a.length;j++){var c=a[j];w.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(787).then(()=>()=>j(9787)))},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})();
@@ -44,7 +44,7 @@
44
44
  "openmrs-esm-primary-navigation-app.js"
45
45
  ],
46
46
  "auxiliaryFiles": [],
47
- "hash": "95a5cc8879fb53b427c0",
47
+ "hash": "e17d8fb03112835bc759",
48
48
  "childrenByOrder": {}
49
49
  },
50
50
  {
@@ -95,7 +95,7 @@
95
95
  "main.js"
96
96
  ],
97
97
  "auxiliaryFiles": [],
98
- "hash": "6d92949030ae22fd09e0",
98
+ "hash": "a2e0af31625ae052c600",
99
99
  "childrenByOrder": {}
100
100
  },
101
101
  {
@@ -395,7 +395,7 @@
395
395
  "789.js"
396
396
  ],
397
397
  "auxiliaryFiles": [],
398
- "hash": "eb4458536277828cceaa",
398
+ "hash": "fbf66fb1ec9c85d2909d",
399
399
  "childrenByOrder": {}
400
400
  },
401
401
  {
@@ -404,9 +404,9 @@
404
404
  "entry": false,
405
405
  "recorded": false,
406
406
  "reason": "reused as split chunk (cache group: default)",
407
- "size": 1117368,
407
+ "size": 1118265,
408
408
  "sizes": {
409
- "javascript": 1117368
409
+ "javascript": 1118265
410
410
  },
411
411
  "names": [],
412
412
  "idHints": [],
@@ -418,7 +418,7 @@
418
418
  "889.js"
419
419
  ],
420
420
  "auxiliaryFiles": [],
421
- "hash": "b56822871d3abb7d62f5",
421
+ "hash": "0777fff8870be5282ad7",
422
422
  "childrenByOrder": {}
423
423
  }
424
424
  ]
@@ -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.371",(()=>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.6",(()=>Promise.all([b.e(146),b.e(776)]).then((()=>()=>b(7146))))),l("react-router-dom","5.3.4",(()=>Promise.all([b.e(787),b.e(776),b.e(216)]).then((()=>()=>b(9787))))),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(787).then((()=>()=>b(9787)))))},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})();
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.389",(()=>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.6",(()=>Promise.all([b.e(146),b.e(776)]).then((()=>()=>b(7146))))),l("react-router-dom","5.3.4",(()=>Promise.all([b.e(787),b.e(776),b.e(216)]).then((()=>()=>b(9787))))),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(787).then((()=>()=>b(9787)))))},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.371",
3
+ "version": "4.0.3-pre.389",
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.371",
53
- "@openmrs/webpack-config": "^4.0.3-pre.371",
52
+ "@openmrs/esm-framework": "^4.0.3-pre.389",
53
+ "@openmrs/webpack-config": "^4.0.3-pre.389",
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": "ad139e1b9853124a8328b443b309ad3a869fe9f3"
61
+ "gitHead": "4261ef4b3d40829a76b4ef82f77c169006322910"
62
62
  }