@openmrs/esm-primary-navigation-app 4.0.2-pre.339 → 4.0.2

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.
@@ -1,29 +1,29 @@
1
- @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 24f92461b84ba5d8
2
- @openmrs/esm-primary-navigation-app:build: assets by chunk 229 KiB (id hint: vendors)
3
- @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
- @openmrs/esm-primary-navigation-app:build:  asset 857.js 38.3 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
- @openmrs/esm-primary-navigation-app:build:  asset 41.js 27.6 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
- @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
7
- @openmrs/esm-primary-navigation-app:build:  asset 218.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
- @openmrs/esm-primary-navigation-app:build: + 11 assets
9
- @openmrs/esm-primary-navigation-app:build: orphan modules 3.64 MiB (javascript) 42 bytes (consume-shared) [orphan] 580 modules
10
- @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
11
- @openmrs/esm-primary-navigation-app:build: built modules 2.5 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
12
- @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.5 MiB
13
- @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.33 MiB 44 modules
14
- @openmrs/esm-primary-navigation-app:build:  modules by path ./ 174 KiB 18 modules
15
- @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
16
- @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.2-pre.339 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
17
- @openmrs/esm-primary-navigation-app:build:  + 4 modules
18
- @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
19
- @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
20
- @openmrs/esm-primary-navigation-app:build:  + 3 modules
21
- @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
22
- @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
23
- @openmrs/esm-primary-navigation-app:build: 
24
- @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
25
- @openmrs/esm-primary-navigation-app:build: This can impact web performance.
26
- @openmrs/esm-primary-navigation-app:build: Assets:
27
- @openmrs/esm-primary-navigation-app:build:  889.js (430 KiB)
28
- @openmrs/esm-primary-navigation-app:build: 
29
- @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 109383 ms
1
+ @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 09822cbc699e69b4
2
+ @openmrs/esm-primary-navigation-app:build: assets by chunk 229 KiB (id hint: vendors)
3
+ @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
+ @openmrs/esm-primary-navigation-app:build:  asset 857.js 38.3 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-primary-navigation-app:build:  asset 41.js 27.6 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
7
+ @openmrs/esm-primary-navigation-app:build:  asset 218.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ @openmrs/esm-primary-navigation-app:build: + 11 assets
9
+ @openmrs/esm-primary-navigation-app:build: orphan modules 3.64 MiB (javascript) 42 bytes (consume-shared) [orphan] 580 modules
10
+ @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
11
+ @openmrs/esm-primary-navigation-app:build: built modules 2.5 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
12
+ @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.5 MiB
13
+ @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.33 MiB 44 modules
14
+ @openmrs/esm-primary-navigation-app:build:  modules by path ./ 174 KiB 18 modules
15
+ @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
16
+ @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.2 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
17
+ @openmrs/esm-primary-navigation-app:build:  + 4 modules
18
+ @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
19
+ @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
20
+ @openmrs/esm-primary-navigation-app:build:  + 3 modules
21
+ @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
22
+ @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
23
+ @openmrs/esm-primary-navigation-app:build: 
24
+ @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
25
+ @openmrs/esm-primary-navigation-app:build: This can impact web performance.
26
+ @openmrs/esm-primary-navigation-app:build: Assets:
27
+ @openmrs/esm-primary-navigation-app:build:  889.js (430 KiB)
28
+ @openmrs/esm-primary-navigation-app:build: 
29
+ @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 86223 ms
package/dist/789.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(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&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!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=r.call(a,"catchLoc"),s=r.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,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){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&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(5776),o=e.n(r),i=e(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,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>ln,importTranslation:()=>fn,setupOpenMRS:()=>hn,version:()=>sn});var r=e(4610),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="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 T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={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 pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(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(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,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 n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn="4.0.2-pre.339",fn=e(3979),ln={"webservices.rest":"^2.2.0"},pn={featureName:"primary navigation",moduleName:u.e};function hn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(218),e.e(680),e.e(656)]).then(e.bind(e,3656))}),pn),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(473)]).then(e.bind(e,3473))}),pn),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(680),e.e(98)]).then(e.bind(e,5098))}),pn),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
1
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(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&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!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=r.call(a,"catchLoc"),s=r.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,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){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&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(5776),o=e.n(r),i=e(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,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>ln,importTranslation:()=>fn,setupOpenMRS:()=>hn,version:()=>sn});var r=e(4610),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="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 T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={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 pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(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(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,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 n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn="4.0.2",fn=e(3979),ln={"webservices.rest":"^2.2.0"},pn={featureName:"primary navigation",moduleName:u.e};function hn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(218),e.e(680),e.e(656)]).then(e.bind(e,3656))}),pn),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(473)]).then(e.bind(e,3473))}),pn),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(857),e.e(680),e.e(98)]).then(e.bind(e,5098))}),pn),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
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.2-pre.339",(()=>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.2",(()=>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.2-pre.339",()=>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})();
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.2",()=>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})();
@@ -52,11 +52,11 @@
52
52
  "initial": true,
53
53
  "entry": true,
54
54
  "recorded": false,
55
- "size": 19893,
55
+ "size": 19885,
56
56
  "sizes": {
57
57
  "javascript": 42,
58
58
  "share-init": 210,
59
- "runtime": 19641
59
+ "runtime": 19633
60
60
  },
61
61
  "names": [
62
62
  "@openmrs/esm-primary-navigation-app"
@@ -69,7 +69,7 @@
69
69
  "openmrs-esm-primary-navigation-app.js"
70
70
  ],
71
71
  "auxiliaryFiles": [],
72
- "hash": "bd73ddb15b4d321a981d",
72
+ "hash": "2154e05df656dd17fe6a",
73
73
  "childrenByOrder": {}
74
74
  },
75
75
  {
@@ -102,12 +102,12 @@
102
102
  "initial": true,
103
103
  "entry": true,
104
104
  "recorded": false,
105
- "size": 79444,
105
+ "size": 79436,
106
106
  "sizes": {
107
107
  "consume-shared": 126,
108
108
  "javascript": 59089,
109
109
  "share-init": 210,
110
- "runtime": 20019
110
+ "runtime": 20011
111
111
  },
112
112
  "names": [
113
113
  "main"
@@ -120,7 +120,7 @@
120
120
  "main.js"
121
121
  ],
122
122
  "auxiliaryFiles": [],
123
- "hash": "34654d6bc807724509cb",
123
+ "hash": "1066a888a811f6cea778",
124
124
  "childrenByOrder": {}
125
125
  },
126
126
  {
@@ -345,7 +345,7 @@
345
345
  "789.js"
346
346
  ],
347
347
  "auxiliaryFiles": [],
348
- "hash": "b69be1bd02123eeb0595",
348
+ "hash": "8d782d96bd05c9df0f98",
349
349
  "childrenByOrder": {}
350
350
  },
351
351
  {
@@ -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.2-pre.339",(()=>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})();
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.2",(()=>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.2-pre.339",
3
+ "version": "4.0.2",
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.2-pre.339",
53
- "@openmrs/webpack-config": "^4.0.2-pre.339",
52
+ "@openmrs/esm-framework": "^4.0.2",
53
+ "@openmrs/webpack-config": "^4.0.2",
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": "bbe44bdf99722ba1b0b5653d1e06315596414e1a"
61
+ "gitHead": "cfd4f3a1a3746bff9ef8bc369033b77a0587be5c"
62
62
  }