@openmrs/esm-primary-navigation-app 3.3.2-pre.64 → 3.3.2-pre.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
1
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mcache hit, replaying output [2m68b06f00cb61458f[0m
|
|
2
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m$ webpack --mode=production
|
|
3
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0massets by chunk 1.18 MiB (id hint: vendors)
|
|
4
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[33m322.js[39m[22m [1m[33m705 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m25.js[39m[22m 226 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m788.js[39m[22m 120 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m860.js[39m[22m 85.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
8
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m393.js[39m[22m 27.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m743.js[39m[22m 18.3 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
10
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m596.js[39m[22m 14 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
11
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m513.js[39m[22m 7.85 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
12
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m+ 11 assets
|
|
13
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0morphan modules 10 MiB [1m[33m[orphan][39m[22m 647 modules
|
|
14
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mruntime modules 19.7 KiB 14 modules
|
|
15
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mbuilt modules 7.7 MiB (javascript) 378 bytes (consume-shared) 336 bytes (share-init) [1m[33m[built][39m[22m
|
|
16
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m cacheable modules 7.7 MiB 84 modules
|
|
17
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m consume-shared-module modules 378 bytes
|
|
18
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
19
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m + 7 modules
|
|
20
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m provide-module modules 336 bytes
|
|
21
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m [1mprovide shared module (default) @openmrs/esm-framework/src/internal@3.3.2-pre.67 = ../../framework/esm-framework/src/internal.ts[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
22
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m [1mprovide shared module (default) carbon-components-react@7.31.0 = ../../../node_modules/carbon-components-react/es/index.js[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
23
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m + 6 modules
|
|
24
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m [1m./translations/ lazy nonrecursive .json$[39m[22m 160 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m
|
|
27
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
28
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mThis can impact web performance.
|
|
29
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mAssets:
|
|
30
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m 889.js (438 KiB)
|
|
31
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m 322.js (705 KiB)[39m[22m
|
|
32
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0m
|
|
33
|
+
[33m@openmrs/esm-primary-navigation-app:build: [0mwebpack 5.70.0 compiled with [1m[33m1 warning[39m[22m in 131064 ms
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-primary-navigation-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={6585:(a,b,c)=>{(0,c(7968).s)(1)},7968:(a,b,c)=>{const d=c(1577).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},8331:(a,b,c)=>{c(6585)},1577:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},7972:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:a=>{var b=function(j){function k(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function q(b,c,d,e){var g=c&&c.prototype instanceof f?c:f,j=Object.create(g.prototype),i=new A(e||[]);return j._invoke=function(b,d,f){var e=o;return function(g,j){if(e===p)throw new Error("Generator is already running");if(e===h){if("throw"===g)throw j;return x()}for(f.method=g,f.arg=j;;){var i=f.delegate;if(i){var a=y(i,f);if(a){if(a===m)continue;return a}}if("next"===f.method)f.sent=f._sent=f.arg;else if("throw"===f.method){if(e===o)throw e=h,f.arg;f.dispatchException(f.arg)}else"return"===f.method&&f.abrupt("return",f.arg);e=p;var k=z(b,d,f);if("normal"===k.type){if(e=f.done?h:l,k.arg===m)continue;return{value:k.arg,done:f.done}}"throw"===k.type&&(e=h,f.method="throw",f.arg=k.arg)}}}(b,d,i),j}function z(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function f(){}function s(){}function v(){}function t(a){["next","throw","return"].forEach(function(b){k(a,b,function(a){return this._invoke(b,a)})})}function w(b,d){function c(e,f,g,a){var h=z(b[e],b,f);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&G.call(j,"__await")?d.resolve(j.__await).then(function(b){c("next",b,g,a)},function(b){c("throw",b,g,a)}):d.resolve(j).then(function(a){i.value=a,g(i)},function(b){return c("throw",b,g,a)})}a(h.arg)}var a;this._invoke=function(b,e){function f(){return new d(function(a,d){c(b,e,a,d)})}return a=a?a.then(f,f):f()}}function y(a,b){var c=a.iterator[b.method];if(c===F){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=F,y(a,b),"throw"===b.method))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var d=z(c,a.iterator,b.arg);if("throw"===d.type)return b.method="throw",b.arg=d.arg,b.delegate=null,m;var e=d.arg;return e?e.done?(b[a.resultName]=e.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=F),b.delegate=null,m):e:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function B(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function C(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function A(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(B,this),this.reset(!0)}function D(b){if(b){var c=b[r];if(c)return c.call(b);if("function"==typeof b.next)return b;if(!isNaN(b.length)){var d=-1,e=function a(){for(;++d<b.length;)if(G.call(b,d))return a.value=b[d],a.done=!1,a;return a.value=F,a.done=!0,a};return e.next=e}}return{next:x}}function x(){return{value:F,done:!0}}var F,n=Object.prototype,G=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";try{k({},"")}catch(a){k=function(a,b,c){return a[b]=c}}j.wrap=q;var o="suspendedStart",l="suspendedYield",p="executing",h="completed",m={},d={};k(d,r,function(){return this});var u=Object.getPrototypeOf,E=u&&u(u(D([])));E&&E!==n&&G.call(E,r)&&(d=E);var b=v.prototype=f.prototype=Object.create(d);return s.prototype=v,k(b,"constructor",v),k(v,"constructor",s),s.displayName=k(v,a,"GeneratorFunction"),j.isGeneratorFunction=function(a){var b="function"==typeof a&&a.constructor;return!!b&&(b===s||"GeneratorFunction"===(b.displayName||b.name))},j.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,v):(c.__proto__=v,k(c,a,"GeneratorFunction")),c.prototype=Object.create(b),c},j.awrap=function(a){return{__await:a}},t(w.prototype),k(w.prototype,i,function(){return this}),j.AsyncIterator=w,j.async=function(b,c,d,e,f){void 0===f&&(f=Promise);var g=new w(q(b,c,d,e),f);return j.isGeneratorFunction(c)?g:g.next().then(function(a){return a.done?a.value:g.next()})},t(b),k(b,a,"Generator"),k(b,r,function(){return this}),k(b,"toString",function(){return"[object Generator]"}),j.keys=function(a){var b=[];for(var c in a)b.push(c);return b.reverse(),function c(){for(;b.length;){var d=b.pop();if(d in a)return c.value=d,c.done=!1,c}return c.done=!0,c}},j.values=D,A.prototype={constructor:A,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=F,this.done=!1,this.delegate=null,this.method="next",this.arg=F,this.tryEntries.forEach(C),!a)for(var b in this)"t"===b.charAt(0)&&G.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=F)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(b){function d(c,d){return a.type="throw",a.arg=b,f.next=c,d&&(f.method="next",f.arg=F),!!d}if(this.done)throw b;for(var f=this,e=this.tryEntries.length-1;0<=e;--e){var g=this.tryEntries[e],a=g.completion;if("root"===g.tryLoc)return d("end");if(g.tryLoc<=this.prev){var h=G.call(g,"catchLoc"),c=G.call(g,"finallyLoc");if(h&&c){if(this.prev<g.catchLoc)return d(g.catchLoc,!0);if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(!h){if(!c)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(this.prev<g.catchLoc)return d(g.catchLoc,!0)}}},abrupt:function(b,c){for(var d,f=this.tryEntries.length-1;0<=f;--f)if(d=this.tryEntries[f],d.tryLoc<=this.prev&&G.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var g=d;break}g&&("break"===b||"continue"===b)&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var h=g?g.completion:{};return h.type=b,h.arg=c,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(h)},complete:function(a,b){if("throw"===a.type)throw a.arg;return"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b),m},finish:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),C(b),m},catch:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.tryLoc===a){var d=b.completion;if("throw"===d.type){var f=d.arg;C(b)}return f}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:D(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=F),m}},j}(a.exports);try{regeneratorRuntime=b}catch(a){"object"==typeof globalThis?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},1217:(a,b,c)=>{c.d(b,{O:()=>d,e:()=>e});var d="user-property-change",e="@openmrs/esm-primary-navigation-app"},789:(k,t,n)=>{function e(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function c(b){return function(){var c=this,d=arguments;return new Promise(function(f,g){function h(b){e(j,f,g,h,a,"next",b)}function a(b){e(j,f,g,h,a,"throw",b)}var j=b.apply(c,d);h(void 0)})}}function s(){return f.apply(this,arguments)}function f(){return(f=c(Ma().mark(function d(a,b,c){var e,f;return Ma().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,i.getSessionLocation)();case 2:return e=d.sent,f=null==e?void 0:e.uuid,d.next=6,(0,i.openmrsFetch)("/ws/rest/v1/user/".concat(a),{method:"POST",body:{userProperties:b},headers:{"Content-Type":"application/json"},signal:c.signal});case 6:if(!f){d.next=9;break}return d.next=9,(0,i.setSessionLocation)(f,c);case 9:case"end":return d.stop();}},d)}))).apply(this,arguments)}function B(b,c){return(0,i.queueSynchronizationItemFor)(b,a.O,c,{displayName:"User Language Change"})}function p(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function m(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function d(b){return function(){var c=this,d=arguments;return new Promise(function(e,f){function g(b){m(h,e,f,g,a,"next",b)}function a(b){m(h,e,f,g,a,"throw",b)}var h=b.apply(c,d);g(void 0)})}}function v(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(b,c){var d=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=d){var f,g,h=[],i=!0,j=!1;try{for(d=d.call(b);!(i=(f=d.next()).done)&&(h.push(f.value),!c||h.length!==c);i=!0);}catch(a){j=!0,g=a}finally{try{i||null==d.return||d.return()}finally{if(j)throw g}}return h}}(a,b)||w(a,b)||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 y(a){return function(a){if(Array.isArray(a))return p(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||w(a)||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(a,b){if(a){if("string"==typeof a)return p(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?p(a,b):void 0}}function g(){return C.apply(this,arguments)}function C(){return C=d(Ma().mark(function d(a,b){var e,f,g,h;return Ma().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(0!==b.index){a.next=10;break}return a.next=4,(0,i.getLoggedInUser)();case 4:return f=a.sent,g=b.items.map(function(a){var b=v(a,2);return b[0],b[1]}),h=(e=Object).assign.apply(e,[{},f.userProperties].concat(y(g))),a.next=9,s(f.uuid,h,b.abort);case 9:(0,i.refetchCurrentUser)();case 10:case"end":return a.stop();}},d)})),C.apply(this,arguments)}function E(a){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function F(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function G(a,b,c){var d=j(a,b,c);S.length?S.forEach(function(a){return a(d)}):setTimeout(function(){throw d})}function I(a){if("function"!=typeof a)throw Error(L(28,!1));S.push(a)}function x(a){if("function"!=typeof a)throw Error(L(29,!1));var b=!1;return S=S.filter(function(c){var d=c===a;return b=b||d,!d}),b}function L(a,b){for(var c=arguments.length,d=Array(2<c?c-2:0),e=2;e<c;e++)d[e-2]=arguments[e];return"single-spa minified message #".concat(a,": ").concat(b?b+" ":"","See https://single-spa.js.org/error/?code=").concat(a).concat(d.length?"&arg=".concat(d.join("&arg=")):"")}function j(a,b,c){var d,e="".concat(N(b)," '").concat(z(b),"' died in status ").concat(b.status,": ");if(a instanceof Error){try{a.message=e+a.message}catch(a){}d=a}else{console.warn(L(30,!1,b.status,z(b)));try{d=Error(e+JSON.stringify(a))}catch(b){d=a}}return d.appOrParcelName=z(b),b.status=c,d}function M(a){return"MOUNTED"===a.status}function K(a){try{return a.activeWhen(window.location)}catch(b){return G(b,a,"SKIP_BECAUSE_BROKEN"),!1}}function z(a){return a.name}function J(a){return!!a.unmountThisParcel}function N(a){return J(a)?"parcel":"application"}function q(){for(var a=arguments.length-1;0<a;a--)for(var b in arguments[a])"__proto__"!=b&&(arguments[a-1][b]=arguments[a][b]);return arguments[0]}function H(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function Q(a){return a&&("function"==typeof a||(b=a,Array.isArray(b)&&!H(b,function(a){return"function"!=typeof a})));var b}function R(a,b){var c=a[b]||[];0===(c=Array.isArray(c)?c:[c]).length&&(c=[function(){return Promise.resolve()}]);var d=N(a),f=z(a);return function(g){return c.reduce(function(c,h,i){return c.then(function(){var a=h(g);return T(a)?a:Promise.reject(L(15,!1,d,f,b,i))})},Promise.resolve())}}function T(a){return a&&"function"==typeof a.then&&"function"==typeof a.catch}function U(a,b){function c(){return a.status="NOT_MOUNTED",a}return Promise.resolve().then(function(){return"NOT_BOOTSTRAPPED"===a.status?(a.status="BOOTSTRAPPING",a.bootstrap?ea(a,"bootstrap").then(c).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}):Promise.resolve().then(c)):a})}function V(a,b){return Promise.resolve().then(function(){function c(){return ea(a,"unmount").then(function(){a.status="NOT_MOUNTED"}).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}if("MOUNTED"!==a.status)return a;a.status="UNMOUNTING";var d=Object.keys(a.parcels).map(function(b){return a.parcels[b].unmountThisParcel()});return Promise.all(d).then(c,function(d){return c().then(function(){var c=Error(d.message);if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}).then(function(){return a})})}function W(a,b){return Promise.resolve().then(function(){return"NOT_MOUNTED"===a.status?(D||(window.dispatchEvent(new O("single-spa:before-first-mount")),D=!0),ea(a,"mount").then(function(){return a.status="MOUNTED",Na||(window.dispatchEvent(new O("single-spa:first-mount")),Na=!0),a}).catch(function(c){function d(){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}return a.status="MOUNTED",V(a,!0).then(d,d)})):a})}function X(){return Y.apply(Pa,arguments)}function Y(b,d){var g=this;if(!b||"object"!==E(b)&&"function"!=typeof b)throw Error(L(2,!1));if(b.name&&"string"!=typeof b.name)throw Error(L(3,!1,E(b.name)));if("object"!==E(d))throw Error(L(4,!1,name,E(d)));if(!d.domElement)throw Error(L(5,!1,name));var k,m=Oa++,e="function"==typeof b,i=e?b:function(){return Promise.resolve(b)},o={id:m,parcels:{},status:e?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:d,parentName:z(g),unmountThisParcel:function(){return l.then(function(){if("MOUNTED"!==o.status)throw Error(L(6,!1,name,o.status));return V(o,!0)}).then(function(a){return o.parentName&&delete g.parcels[o.id],a}).then(function(a){return q(a),a}).catch(function(a){throw o.status="SKIP_BECAUSE_BROKEN",u(a),a})}};g.parcels[m]=o;var a=i();if(!a||"function"!=typeof a.then)throw Error(L(7,!1));var q,u,n=(a=a.then(function(b){if(!b)throw Error(L(8,!1));var c=b.name||"parcel-".concat(m);if(Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap))throw Error(L(9,!1,c));if(!Q(b.mount))throw Error(L(10,!1,c));if(!Q(b.unmount))throw Error(L(11,!1,c));if(b.update&&!Q(b.update))throw Error(L(12,!1,c));var d=R(b,"bootstrap"),e=R(b,"mount"),f=R(b,"unmount");o.status="NOT_BOOTSTRAPPED",o.name=c,o.bootstrap=d,o.mount=e,o.unmount=f,o.timeouts=fa(b.timeouts),b.update&&(o.update=R(b,"update"),k.update=function(a){return o.customProps=a,Z(function(a){return Promise.resolve().then(function(){if("MOUNTED"!==a.status)throw Error(L(32,!1,z(a)));return a.status="UPDATING",ea(a,"update").then(function(){return a.status="MOUNTED",a}).catch(function(b){throw j(b,a,"SKIP_BECAUSE_BROKEN")})})}(o))})})).then(function(){return U(o,!0)}),l=n.then(function(){return W(o,!0)}),p=new Promise(function(a,b){q=a,u=b});return k={mount:function(){return Z(Promise.resolve().then(function(){if("NOT_MOUNTED"!==o.status)throw Error(L(13,!1,name,o.status));return g.parcels[m]=o,W(o)}))},unmount:function(){return Z(o.unmountThisParcel())},getStatus:function(){return o.status},loadPromise:Z(a),bootstrapPromise:Z(n),mountPromise:Z(l),unmountPromise:Z(p)}}function Z(a){return a.then(function(){return null})}function $(a){var b=z(a),c="function"==typeof a.customProps?a.customProps(b,window.location):a.customProps;("object"!==E(c)||null===c||Array.isArray(c))&&(c={},console.warn(L(40,!1),b,c));var d=q({},c,{name:b,mountParcel:Y.bind(a),singleSpa:h});return J(a)&&(d.unmountSelf=a.unmountThisParcel),d}function aa(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(16,!1));Qa.bootstrap={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ba(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(17,!1));Qa.mount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ca(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(18,!1));Qa.unmount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function da(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(19,!1));Qa.unload={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ea(b,d){var g=b.timeouts[d],e=g.warningMillis,h=N(b);return new Promise(function(j,i){function a(b){if(!f)if(!0===b)k=!0,g.dieOnTimeout?i(Error(l)):console.error(l);else if(!k){var c=b;console.warn(l),c*e+e<g.millis&&setTimeout(function(){return a(c+1)},e)}}var f=!1,k=!1;b[d]($(b)).then(function(a){f=!0,j(a)}).catch(function(a){f=!0,i(a)}),setTimeout(function(){return a(1)},e),setTimeout(function(){return a(!0)},g.millis);var l=L(31,!1,d,h,z(b),g.millis)})}function fa(a){var b={};for(var c in Qa)b[c]=q({},Qa[c],a&&a[c]||{});return b}function ga(a){return Promise.resolve().then(function(){return a.loadPromise?a.loadPromise:"NOT_LOADED"!==a.status&&"LOAD_ERROR"!==a.status?a:(a.status="LOADING_SOURCE_CODE",a.loadPromise=Promise.resolve().then(function(){var d=a.loadApp($(a));if(!T(d))throw c=!0,Error(L(33,!1,z(a)));return d.then(function(c){var d;a.loadErrorTime=null,"object"!==E(b=c)&&(d=34),Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap)&&(d=35),Q(b.mount)||(d=36),Q(b.unmount)||(d=37);var e=N(b);if(d){var f;try{f=JSON.stringify(b)}catch(a){}return console.error(L(d,!1,e,z(a),f),b),G(void 0,a,"SKIP_BECAUSE_BROKEN"),a}return b.devtools&&b.devtools.overlays&&(a.devtools.overlays=q({},a.devtools.overlays,b.devtools.overlays)),a.status="NOT_BOOTSTRAPPED",a.bootstrap=R(b,"bootstrap"),a.mount=R(b,"mount"),a.unmount=R(b,"unmount"),a.unload=R(b,"unload"),a.timeouts=fa(b.timeouts),delete a.loadPromise,a})}).catch(function(b){var d;return delete a.loadPromise,c?d="SKIP_BECAUSE_BROKEN":(d="LOAD_ERROR",a.loadErrorTime=new Date().getTime()),G(b,a,d),a}));var b,c})}function ha(a){var b;if("string"==typeof a)b=a;else if(this&&this.href)b=this.href;else{if(!(a&&a.currentTarget&&a.currentTarget.href&&a.preventDefault))throw Error(L(14,!1));b=a.currentTarget.href,a.preventDefault()}var c=ma(window.location.href),d=ma(b);0===b.indexOf("#")?window.location.hash=d.hash:c.host!==d.host&&d.host?window.location.href=b:d.pathname===c.pathname&&d.search===c.search?window.location.hash=d.hash:window.history.pushState(null,null,b)}function ia(a){var b=this;if(a){var c=a[0].type;0<=Ta.indexOf(c)&&Sa[c].forEach(function(c){try{c.apply(b,a)}catch(a){setTimeout(function(){throw a})}})}}function ja(){Fa([],arguments)}function ka(a,b){return function(){var c=window.location.href,d=a.apply(this,arguments),e=window.location.href;return Ka&&c===e||(Ia()?window.dispatchEvent(la(window.history.state,b)):Fa([])),d}}function la(a,b){var c;try{c=new PopStateEvent("popstate",{state:a})}catch(b){(c=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,a)}return c.singleSpa=!0,c.singleSpaTrigger=b,c}function ma(a){var b=document.createElement("a");return b.href=a,b}function na(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(a||window.$&&window.$.fn&&window.$.fn.jquery&&(a=window.$),a&&!Wa){var b=a.fn.on,c=a.fn.off;a.fn.on=function(a,c){return oa.call(this,b,window.addEventListener,a,c,arguments)},a.fn.off=function(a,b){return oa.call(this,c,window.removeEventListener,a,b,arguments)},Wa=!0}}function oa(a,b,c,d,f){return"string"==typeof c?(c.split(/\s+/).forEach(function(a){0<=Ta.indexOf(a)&&(b(a,d),c=c.replace(a,""))}),""===c.trim()?this:a.apply(this,f)):a.apply(this,f)}function pa(a){return Promise.resolve().then(function(){var b=Xa[z(a)];if(!b)return a;if("NOT_LOADED"===a.status)return qa(a,b),a;if("UNLOADING"===a.status)return b.promise.then(function(){return a});if("NOT_MOUNTED"!==a.status&&"LOAD_ERROR"!==a.status)return a;var c="LOAD_ERROR"===a.status?Promise.resolve():ea(a,"unload");return a.status="UNLOADING",c.then(function(){return qa(a,b),a}).catch(function(c){return function(a,b,c){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,G(c,a,"SKIP_BECAUSE_BROKEN"),b.reject(c)}(a,b,c),a})})}function qa(a,b){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,a.status="NOT_LOADED",b.resolve()}function ra(a,b,c,d){Xa[z(a)]={app:a,resolve:c,reject:d},Object.defineProperty(Xa[z(a)],"promise",{get:b})}function sa(a){return Xa[a]}function ta(){var b=[],c=[],d=[],e=[],f=new Date().getTime();return Ya.forEach(function(g){var h="SKIP_BECAUSE_BROKEN"!==g.status&&K(g);switch(g.status){case"LOAD_ERROR":h&&200<=f-g.loadErrorTime&&d.push(g);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":h&&d.push(g);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!h&&sa(z(g))?b.push(g):h&&e.push(g);break;case"MOUNTED":h||c.push(g);}}),{appsToUnload:b,appsToUnmount:c,appsToLoad:d,appsToMount:e}}function ua(){return Ya.filter(M).map(z)}function va(){return Ya.map(z)}function wa(a){var b=H(Ya,function(b){return z(b)===a});return b?b.status:null}function xa(a,b,c,d){var e=function(a,b,c,d){var e,f={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===E(a)?(function(a){if(Array.isArray(a)||null===a)throw Error(L(39,!1));var b=["name","app","activeWhen","customProps"],c=Object.keys(a).reduce(function(a,c){return 0<=b.indexOf(c)?a:a.concat(c)},[]);if(0!==c.length)throw Error(L(38,!1,b.join(", "),c.join(", ")));if("string"!=typeof a.name||0===a.name.length)throw Error(L(20,!1));if("object"!==E(a.app)&&"function"!=typeof a.app)throw Error(L(20,!1));var d=function(a){return"string"==typeof a||"function"==typeof a};if(!(d(a.activeWhen)||Array.isArray(a.activeWhen)&&a.activeWhen.every(d)))throw Error(L(24,!1));if(!Ca(a.customProps))throw Error(L(22,!1))}(a),f.name=a.name,f.loadApp=a.app,f.activeWhen=a.activeWhen,f.customProps=a.customProps):(function(a,b,c,d){if("string"!=typeof a||0===a.length)throw Error(L(20,!1));if(!b)throw Error(L(23,!1));if("function"!=typeof c)throw Error(L(24,!1));if(!Ca(d))throw Error(L(22,!1))}(a,b,c,d),f.name=a,f.loadApp=b,f.activeWhen=c,f.customProps=d),f.loadApp="function"==typeof(e=f.loadApp)?e:function(){return Promise.resolve(e)},f.customProps=function(a){return a||{}}(f.customProps),f.activeWhen=function(a){var b=Array.isArray(a)?a:[a];return b=b.map(function(a){return"function"==typeof a?a:Da(a)}),function(a){return b.some(function(b){return b(a)})}}(f.activeWhen),f}(a,b,c,d);if(-1!==va().indexOf(e.name))throw Error(L(21,!1,e.name));Ya.push(q({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},e)),Ra&&(na(),Fa())}function ya(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return Ya.filter(function(b){return b.activeWhen(a)}).map(z)}function za(a){if(0===Ya.filter(function(b){return z(b)===a}).length)throw Error(L(25,!1,a));return Aa(a).then(function(){var b=Ya.map(z).indexOf(a);Ya.splice(b,1)})}function Aa(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof a)throw Error(L(26,!1));var c=H(Ya,function(b){return z(b)===a});if(!c)throw Error(L(27,!1,a));var d,e=sa(z(c));if(b&&b.waitForUnmount){if(e)return e.promise;var f=new Promise(function(a,b){ra(c,function(){return f},a,b)});return f}return e?(d=e.promise,Ba(c,e.resolve,e.reject)):d=new Promise(function(a,b){ra(c,function(){return d},a,b),Ba(c,a,b)}),d}function Ba(a,b,c){V(a).then(pa).then(function(){b(),setTimeout(function(){Fa()})}).catch(c)}function Ca(a){return!a||"function"==typeof a||"object"===E(a)&&null!==a&&!Array.isArray(a)}function Da(a,b){var c=function(b,c){function d(d){var e=b.slice(f,d).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(h+=g?"[^/]+/?":e,d===b.length)if(g)c&&(h+="$");else{var a=c?"":".*";h="/"===h.charAt(h.length-1)?"".concat(h).concat(a,"$"):"".concat(h,"(/").concat(a,")?(#.*)?$")}g=!g,f=d}var f=0,g=!1,h="^";"/"!==b[0]&&(b="/"+b);for(var j,k=0;k<b.length;k++)j=b[k],(!g&&":"===j||g&&"/"===j)&&d(k);return d(b.length),new RegExp(h,"i")}(a,b);return function(a){var b=a.origin;b||(b="".concat(a.protocol,"//").concat(a.host));var d=a.href.replace(b,"").replace(a.search,"").split("?")[0];return c.test(d)}}function Ea(){return Fa()}function Fa(){function b(){u=!0}function g(){var a=ua();h.forEach(function(b){return b.resolve(a)});try{var b=0===v.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new O(b,d())),window.dispatchEvent(new O("single-spa:routing-event",d()))}catch(a){setTimeout(function(){throw a})}if(Za=!1,0<$a.length){var c=$a;$a=[],Fa(c)}return a}function j(){h.forEach(function(a){ia(a.eventArguments)}),ia(k)}function d(){function b(a,b){var c=z(a);b=b||wa(c),f[c]=b,(g[b]=g[b]||[]).push(c)}var c,d=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length?arguments[1]:void 0,f={},g=(F(c={},"MOUNTED",[]),F(c,"NOT_MOUNTED",[]),F(c,"NOT_LOADED",[]),F(c,"SKIP_BECAUSE_BROKEN",[]),c);d?(i.concat(a).forEach(function(a){b(a,"MOUNTED")}),w.forEach(function(a){b(a,"NOT_LOADED")}),o.forEach(function(a){b(a,"NOT_MOUNTED")})):v.forEach(function(a){b(a)});var h={detail:{newAppStatuses:f,appsByNewStatus:g,totalAppChanges:v.length,originalEvent:null==k?void 0:k[0],oldUrl:x,newUrl:n,navigationIsCanceled:u}};return e&&q(h.detail,e),h}var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],k=1<arguments.length?arguments[1]:void 0;if(Za)return new Promise(function(a,b){$a.push({resolve:a,reject:b,eventArguments:k})});var v,l=ta(),w=l.appsToUnload,o=l.appsToUnmount,i=l.appsToLoad,a=l.appsToMount,u=!1,x=_a,n=_a=window.location.href;return Ia()?(Za=!0,v=w.concat(i,o,a),function(){return Promise.resolve().then(function(){if(window.dispatchEvent(new O(0===v.length?"single-spa:before-no-app-change":"single-spa:before-app-change",d(!0))),window.dispatchEvent(new O("single-spa:before-routing-event",d(!0,{cancelNavigation:b}))),u)return window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0))),g(),void ha(x);var c=w.map(pa),e=o.map(V).map(function(a){return a.then(pa)}).concat(c),k=Promise.all(e);k.then(function(){window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0)))});var f=i.map(function(a){return ga(a).then(function(a){return Ga(a,k)})}),l=a.filter(function(a){return 0>i.indexOf(a)}).map(function(a){return Ga(a,k)});return k.catch(function(a){throw j(),a}).then(function(){return j(),Promise.all(f.concat(l)).catch(function(a){throw h.forEach(function(b){return b.reject(a)}),a}).then(g)})})}()):(v=i,function(){return Promise.resolve().then(function(){var a=i.map(ga);return Promise.all(a).then(j).then(function(){return[]}).catch(function(a){throw j(),a})})}())}function Ga(a,b){return K(a)?U(a).then(function(a){return b.then(function(){return K(a)?W(a):a})}):b.then(function(){return a})}function Ha(a){var b;ab=!0,a&&a.urlRerouteOnly&&(b=a.urlRerouteOnly,Ka=b),Ra&&Fa()}function Ia(){return ab}function Ja(){return(0,La.defineConfigSchema)(a.e,o),(0,La.setupOfflineSync)(a.O,[],g),{pages:[{load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(596),n.e(983),n.e(784),n.e(212)]).then(n.bind(n,3212))},db),route:function(a){return!a.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(ha(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(a){return a.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(983),n.e(784),n.e(540)]).then(n.bind(n,3540))},db),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(983),n.e(784),n.e(510)]).then(n.bind(n,510))},db),online:{postUserProperties:s},offline:{postUserProperties:B}}]}}n.r(t),n.d(t,{backendDependencies:()=>cb,importTranslation:()=>bb,setupOpenMRS:()=>Ja,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"]});var Ka,La=n(7644),r=n(1602),Ma=n.n(r),i=n(8478),a=n(1217),o={logo:{src:{_type:La.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:La.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:La.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:La.Type.Array,_elements:{title:{_type:La.Type.String,_description:"Title of the link"},redirect:{_type:La.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[La.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},h=Object.freeze({__proto__:null,get start(){return Ha},get ensureJQuerySupport(){return na},get setBootstrapMaxTime(){return aa},get setMountMaxTime(){return ba},get setUnmountMaxTime(){return ca},get setUnloadMaxTime(){return da},get registerApplication(){return xa},get unregisterApplication(){return za},get getMountedApps(){return ua},get getAppStatus(){return wa},get unloadApplication(){return Aa},get checkActivityFunctions(){return ya},get getAppNames(){return va},get pathToActiveWhen(){return Da},get navigateToUrl(){return ha},get triggerAppChange(){return Ea},get addErrorHandler(){return I},get removeErrorHandler(){return x},get mountRootParcel(){return X},get NOT_LOADED(){return _},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),u=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,O=function(){try{var a=new u("cat",{detail:{foo:"bar"}});return"cat"===a.type&&"bar"===a.detail.foo}catch(a){}return!1}()?u:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(a,b){var c=document.createEvent("CustomEvent");return b?c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail):c.initCustomEvent(a,!1,!1,void 0),c}:function(a,b){var c=document.createEventObject();return c.type=a,b?(c.bubbles=!!b.bubbles,c.cancelable=!!b.cancelable,c.detail=b.detail):(c.bubbles=!1,c.cancelable=!1,c.detail=void 0),c},S=[],_="NOT_LOADED",D=!1,Na=!1,Oa=0,Pa={parcels:{}},Qa={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}},Ra="undefined"!=typeof window,Sa={hashchange:[],popstate:[]},Ta=["hashchange","popstate"];if(Ra){window.addEventListener("hashchange",ja),window.addEventListener("popstate",ja);var Ua=window.addEventListener,Va=window.removeEventListener;window.addEventListener=function(a,b){return!("function"==typeof b&&0<=Ta.indexOf(a))||H(Sa[a],function(a){return a===b})?Ua.apply(this,arguments):void Sa[a].push(b)},window.removeEventListener=function(a,b){return"function"==typeof b&&0<=Ta.indexOf(a)?void(Sa[a]=Sa[a].filter(function(a){return a!==b})):Va.apply(this,arguments)},window.history.pushState=ka(window.history.pushState,"pushState"),window.history.replaceState=ka(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(L(41,!1)):window.singleSpaNavigate=ha}var Wa=!1,Xa={},Ya=[],Za=!1,$a=[],_a=Ra&&window.location.href,ab=!1;Ra&&setTimeout(function(){ab||console.warn(L(1,!1))},5e3);Ra&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ya)},reroute:Fa,NOT_LOADED:_,toLoadPromise:ga,toBootstrapPromise:U,unregisterApplication:za});var bb=n(3979),cb={"webservices.rest":"^2.2.0"},db={featureName:"primary navigation",moduleName:a.e}},3979:(a,b,c)=>{function d(a){if(!c.o(e,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=e[a],d=b[0];return c.e(b[1]).then(()=>c(d))}var e={"./en.json":[3574,574]};d.keys=()=>Object.keys(e),d.id=3979,a.exports=d}}]),b=f.e(789).then(()=>()=>f(789))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-primary-navigation-app:",k.l=(a,b,d)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==d)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+d){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+d),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.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];k.o(k.S,d)||(k.S[d]={});var g=k.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","3.3.2-pre.64",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),a("carbon-components-react","7.31.0",()=>Promise.all([k.e(322),k.e(983),k.e(69)]).then(()=>()=>k(7322))),a("carbon-components","10.31.0",()=>Promise.all([k.e(25),k.e(1)]).then(()=>()=>k(25))),a("carbon-icons","7.0.7",()=>k.e(860).then(()=>()=>k(4860))),a("react-dom","16.14.0",()=>Promise.all([k.e(788),k.e(983)]).then(()=>()=>k(2788))),a("react-i18next","11.16.2",()=>Promise.all([k.e(743),k.e(983)]).then(()=>()=>k(5743))),a("react-router-dom","5.3.0",()=>Promise.all([k.e(393),k.e(983),k.e(216)]).then(()=>()=>k(7393))),a("react","16.14.0",()=>k.e(735).then(()=>()=>k(2735)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=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},z=(b,c)=>{b=x(b),c=x(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++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<b.length;j++){var d=b[j];f.push(1==d?c()|c():2==d?c()&c():d?B(d,e):!c())}return!!c()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={7644:()=>I("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),8478:()=>H("default","@openmrs/esm-framework/src/internal",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),6983:()=>I("default","react",[1,16],()=>k.e(735).then(()=>()=>k(2735))),5412:()=>I("default","react-dom",[1,16],()=>k.e(788).then(()=>()=>k(2788))),6240:()=>I("default","carbon-icons",[1,7],()=>k.e(860).then(()=>()=>k(4860))),7569:()=>I("default","carbon-components",[1,10],()=>k.e(25).then(()=>()=>k(25))),9784:()=>I("default","carbon-components-react",[1,7],()=>Promise.all([k.e(322),k.e(69)]).then(()=>()=>k(7322))),2268:()=>I("default","react-router-dom",[1,5],()=>k.e(393).then(()=>()=>k(7393))),2680:()=>I("default","react-i18next",[1,11],()=>k.e(743).then(()=>()=>k(5743)))},L={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.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};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(69|784|983)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.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)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.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))})(),k(8331),k(7972)})())}}});
|
|
1
|
+
System.register("@openmrs/esm-primary-navigation-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={6585:(a,b,c)=>{(0,c(7968).s)(1)},7968:(a,b,c)=>{const d=c(1577).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},8331:(a,b,c)=>{c(6585)},1577:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},7972:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:a=>{var b=function(j){function k(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function q(b,c,d,e){var g=c&&c.prototype instanceof f?c:f,j=Object.create(g.prototype),i=new A(e||[]);return j._invoke=function(b,d,f){var e=o;return function(g,j){if(e===p)throw new Error("Generator is already running");if(e===h){if("throw"===g)throw j;return x()}for(f.method=g,f.arg=j;;){var i=f.delegate;if(i){var a=y(i,f);if(a){if(a===m)continue;return a}}if("next"===f.method)f.sent=f._sent=f.arg;else if("throw"===f.method){if(e===o)throw e=h,f.arg;f.dispatchException(f.arg)}else"return"===f.method&&f.abrupt("return",f.arg);e=p;var k=z(b,d,f);if("normal"===k.type){if(e=f.done?h:l,k.arg===m)continue;return{value:k.arg,done:f.done}}"throw"===k.type&&(e=h,f.method="throw",f.arg=k.arg)}}}(b,d,i),j}function z(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function f(){}function s(){}function v(){}function t(a){["next","throw","return"].forEach(function(b){k(a,b,function(a){return this._invoke(b,a)})})}function w(b,d){function c(e,f,g,a){var h=z(b[e],b,f);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&G.call(j,"__await")?d.resolve(j.__await).then(function(b){c("next",b,g,a)},function(b){c("throw",b,g,a)}):d.resolve(j).then(function(a){i.value=a,g(i)},function(b){return c("throw",b,g,a)})}a(h.arg)}var a;this._invoke=function(b,e){function f(){return new d(function(a,d){c(b,e,a,d)})}return a=a?a.then(f,f):f()}}function y(a,b){var c=a.iterator[b.method];if(c===F){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=F,y(a,b),"throw"===b.method))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var d=z(c,a.iterator,b.arg);if("throw"===d.type)return b.method="throw",b.arg=d.arg,b.delegate=null,m;var e=d.arg;return e?e.done?(b[a.resultName]=e.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=F),b.delegate=null,m):e:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function B(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function C(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function A(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(B,this),this.reset(!0)}function D(b){if(b){var c=b[r];if(c)return c.call(b);if("function"==typeof b.next)return b;if(!isNaN(b.length)){var d=-1,e=function a(){for(;++d<b.length;)if(G.call(b,d))return a.value=b[d],a.done=!1,a;return a.value=F,a.done=!0,a};return e.next=e}}return{next:x}}function x(){return{value:F,done:!0}}var F,n=Object.prototype,G=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";try{k({},"")}catch(a){k=function(a,b,c){return a[b]=c}}j.wrap=q;var o="suspendedStart",l="suspendedYield",p="executing",h="completed",m={},d={};k(d,r,function(){return this});var u=Object.getPrototypeOf,E=u&&u(u(D([])));E&&E!==n&&G.call(E,r)&&(d=E);var b=v.prototype=f.prototype=Object.create(d);return s.prototype=v,k(b,"constructor",v),k(v,"constructor",s),s.displayName=k(v,a,"GeneratorFunction"),j.isGeneratorFunction=function(a){var b="function"==typeof a&&a.constructor;return!!b&&(b===s||"GeneratorFunction"===(b.displayName||b.name))},j.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,v):(c.__proto__=v,k(c,a,"GeneratorFunction")),c.prototype=Object.create(b),c},j.awrap=function(a){return{__await:a}},t(w.prototype),k(w.prototype,i,function(){return this}),j.AsyncIterator=w,j.async=function(b,c,d,e,f){void 0===f&&(f=Promise);var g=new w(q(b,c,d,e),f);return j.isGeneratorFunction(c)?g:g.next().then(function(a){return a.done?a.value:g.next()})},t(b),k(b,a,"Generator"),k(b,r,function(){return this}),k(b,"toString",function(){return"[object Generator]"}),j.keys=function(a){var b=[];for(var c in a)b.push(c);return b.reverse(),function c(){for(;b.length;){var d=b.pop();if(d in a)return c.value=d,c.done=!1,c}return c.done=!0,c}},j.values=D,A.prototype={constructor:A,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=F,this.done=!1,this.delegate=null,this.method="next",this.arg=F,this.tryEntries.forEach(C),!a)for(var b in this)"t"===b.charAt(0)&&G.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=F)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(b){function d(c,d){return a.type="throw",a.arg=b,f.next=c,d&&(f.method="next",f.arg=F),!!d}if(this.done)throw b;for(var f=this,e=this.tryEntries.length-1;0<=e;--e){var g=this.tryEntries[e],a=g.completion;if("root"===g.tryLoc)return d("end");if(g.tryLoc<=this.prev){var h=G.call(g,"catchLoc"),c=G.call(g,"finallyLoc");if(h&&c){if(this.prev<g.catchLoc)return d(g.catchLoc,!0);if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(!h){if(!c)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(this.prev<g.catchLoc)return d(g.catchLoc,!0)}}},abrupt:function(b,c){for(var d,f=this.tryEntries.length-1;0<=f;--f)if(d=this.tryEntries[f],d.tryLoc<=this.prev&&G.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var g=d;break}g&&("break"===b||"continue"===b)&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var h=g?g.completion:{};return h.type=b,h.arg=c,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(h)},complete:function(a,b){if("throw"===a.type)throw a.arg;return"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b),m},finish:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),C(b),m},catch:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.tryLoc===a){var d=b.completion;if("throw"===d.type){var f=d.arg;C(b)}return f}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:D(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=F),m}},j}(a.exports);try{regeneratorRuntime=b}catch(a){"object"==typeof globalThis?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},1217:(a,b,c)=>{c.d(b,{O:()=>d,e:()=>e});var d="user-property-change",e="@openmrs/esm-primary-navigation-app"},789:(k,t,n)=>{function e(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function c(b){return function(){var c=this,d=arguments;return new Promise(function(f,g){function h(b){e(j,f,g,h,a,"next",b)}function a(b){e(j,f,g,h,a,"throw",b)}var j=b.apply(c,d);h(void 0)})}}function s(){return f.apply(this,arguments)}function f(){return(f=c(Ma().mark(function d(a,b,c){var e,f;return Ma().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,i.getSessionLocation)();case 2:return e=d.sent,f=null==e?void 0:e.uuid,d.next=6,(0,i.openmrsFetch)("/ws/rest/v1/user/".concat(a),{method:"POST",body:{userProperties:b},headers:{"Content-Type":"application/json"},signal:c.signal});case 6:if(!f){d.next=9;break}return d.next=9,(0,i.setSessionLocation)(f,c);case 9:case"end":return d.stop();}},d)}))).apply(this,arguments)}function B(b,c){return(0,i.queueSynchronizationItemFor)(b,a.O,c,{displayName:"User Language Change"})}function p(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function m(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function d(b){return function(){var c=this,d=arguments;return new Promise(function(e,f){function g(b){m(h,e,f,g,a,"next",b)}function a(b){m(h,e,f,g,a,"throw",b)}var h=b.apply(c,d);g(void 0)})}}function v(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(b,c){var d=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=d){var f,g,h=[],i=!0,j=!1;try{for(d=d.call(b);!(i=(f=d.next()).done)&&(h.push(f.value),!c||h.length!==c);i=!0);}catch(a){j=!0,g=a}finally{try{i||null==d.return||d.return()}finally{if(j)throw g}}return h}}(a,b)||w(a,b)||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 y(a){return function(a){if(Array.isArray(a))return p(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||w(a)||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(a,b){if(a){if("string"==typeof a)return p(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?p(a,b):void 0}}function g(){return C.apply(this,arguments)}function C(){return C=d(Ma().mark(function d(a,b){var e,f,g,h;return Ma().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(0!==b.index){a.next=10;break}return a.next=4,(0,i.getLoggedInUser)();case 4:return f=a.sent,g=b.items.map(function(a){var b=v(a,2);return b[0],b[1]}),h=(e=Object).assign.apply(e,[{},f.userProperties].concat(y(g))),a.next=9,s(f.uuid,h,b.abort);case 9:(0,i.refetchCurrentUser)();case 10:case"end":return a.stop();}},d)})),C.apply(this,arguments)}function E(a){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function F(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function G(a,b,c){var d=j(a,b,c);S.length?S.forEach(function(a){return a(d)}):setTimeout(function(){throw d})}function I(a){if("function"!=typeof a)throw Error(L(28,!1));S.push(a)}function x(a){if("function"!=typeof a)throw Error(L(29,!1));var b=!1;return S=S.filter(function(c){var d=c===a;return b=b||d,!d}),b}function L(a,b){for(var c=arguments.length,d=Array(2<c?c-2:0),e=2;e<c;e++)d[e-2]=arguments[e];return"single-spa minified message #".concat(a,": ").concat(b?b+" ":"","See https://single-spa.js.org/error/?code=").concat(a).concat(d.length?"&arg=".concat(d.join("&arg=")):"")}function j(a,b,c){var d,e="".concat(N(b)," '").concat(z(b),"' died in status ").concat(b.status,": ");if(a instanceof Error){try{a.message=e+a.message}catch(a){}d=a}else{console.warn(L(30,!1,b.status,z(b)));try{d=Error(e+JSON.stringify(a))}catch(b){d=a}}return d.appOrParcelName=z(b),b.status=c,d}function M(a){return"MOUNTED"===a.status}function K(a){try{return a.activeWhen(window.location)}catch(b){return G(b,a,"SKIP_BECAUSE_BROKEN"),!1}}function z(a){return a.name}function J(a){return!!a.unmountThisParcel}function N(a){return J(a)?"parcel":"application"}function q(){for(var a=arguments.length-1;0<a;a--)for(var b in arguments[a])"__proto__"!=b&&(arguments[a-1][b]=arguments[a][b]);return arguments[0]}function H(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function Q(a){return a&&("function"==typeof a||(b=a,Array.isArray(b)&&!H(b,function(a){return"function"!=typeof a})));var b}function R(a,b){var c=a[b]||[];0===(c=Array.isArray(c)?c:[c]).length&&(c=[function(){return Promise.resolve()}]);var d=N(a),f=z(a);return function(g){return c.reduce(function(c,h,i){return c.then(function(){var a=h(g);return T(a)?a:Promise.reject(L(15,!1,d,f,b,i))})},Promise.resolve())}}function T(a){return a&&"function"==typeof a.then&&"function"==typeof a.catch}function U(a,b){function c(){return a.status="NOT_MOUNTED",a}return Promise.resolve().then(function(){return"NOT_BOOTSTRAPPED"===a.status?(a.status="BOOTSTRAPPING",a.bootstrap?ea(a,"bootstrap").then(c).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}):Promise.resolve().then(c)):a})}function V(a,b){return Promise.resolve().then(function(){function c(){return ea(a,"unmount").then(function(){a.status="NOT_MOUNTED"}).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}if("MOUNTED"!==a.status)return a;a.status="UNMOUNTING";var d=Object.keys(a.parcels).map(function(b){return a.parcels[b].unmountThisParcel()});return Promise.all(d).then(c,function(d){return c().then(function(){var c=Error(d.message);if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}).then(function(){return a})})}function W(a,b){return Promise.resolve().then(function(){return"NOT_MOUNTED"===a.status?(D||(window.dispatchEvent(new O("single-spa:before-first-mount")),D=!0),ea(a,"mount").then(function(){return a.status="MOUNTED",Na||(window.dispatchEvent(new O("single-spa:first-mount")),Na=!0),a}).catch(function(c){function d(){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}return a.status="MOUNTED",V(a,!0).then(d,d)})):a})}function X(){return Y.apply(Pa,arguments)}function Y(b,d){var g=this;if(!b||"object"!==E(b)&&"function"!=typeof b)throw Error(L(2,!1));if(b.name&&"string"!=typeof b.name)throw Error(L(3,!1,E(b.name)));if("object"!==E(d))throw Error(L(4,!1,name,E(d)));if(!d.domElement)throw Error(L(5,!1,name));var k,m=Oa++,e="function"==typeof b,i=e?b:function(){return Promise.resolve(b)},o={id:m,parcels:{},status:e?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:d,parentName:z(g),unmountThisParcel:function(){return l.then(function(){if("MOUNTED"!==o.status)throw Error(L(6,!1,name,o.status));return V(o,!0)}).then(function(a){return o.parentName&&delete g.parcels[o.id],a}).then(function(a){return q(a),a}).catch(function(a){throw o.status="SKIP_BECAUSE_BROKEN",u(a),a})}};g.parcels[m]=o;var a=i();if(!a||"function"!=typeof a.then)throw Error(L(7,!1));var q,u,n=(a=a.then(function(b){if(!b)throw Error(L(8,!1));var c=b.name||"parcel-".concat(m);if(Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap))throw Error(L(9,!1,c));if(!Q(b.mount))throw Error(L(10,!1,c));if(!Q(b.unmount))throw Error(L(11,!1,c));if(b.update&&!Q(b.update))throw Error(L(12,!1,c));var d=R(b,"bootstrap"),e=R(b,"mount"),f=R(b,"unmount");o.status="NOT_BOOTSTRAPPED",o.name=c,o.bootstrap=d,o.mount=e,o.unmount=f,o.timeouts=fa(b.timeouts),b.update&&(o.update=R(b,"update"),k.update=function(a){return o.customProps=a,Z(function(a){return Promise.resolve().then(function(){if("MOUNTED"!==a.status)throw Error(L(32,!1,z(a)));return a.status="UPDATING",ea(a,"update").then(function(){return a.status="MOUNTED",a}).catch(function(b){throw j(b,a,"SKIP_BECAUSE_BROKEN")})})}(o))})})).then(function(){return U(o,!0)}),l=n.then(function(){return W(o,!0)}),p=new Promise(function(a,b){q=a,u=b});return k={mount:function(){return Z(Promise.resolve().then(function(){if("NOT_MOUNTED"!==o.status)throw Error(L(13,!1,name,o.status));return g.parcels[m]=o,W(o)}))},unmount:function(){return Z(o.unmountThisParcel())},getStatus:function(){return o.status},loadPromise:Z(a),bootstrapPromise:Z(n),mountPromise:Z(l),unmountPromise:Z(p)}}function Z(a){return a.then(function(){return null})}function $(a){var b=z(a),c="function"==typeof a.customProps?a.customProps(b,window.location):a.customProps;("object"!==E(c)||null===c||Array.isArray(c))&&(c={},console.warn(L(40,!1),b,c));var d=q({},c,{name:b,mountParcel:Y.bind(a),singleSpa:h});return J(a)&&(d.unmountSelf=a.unmountThisParcel),d}function aa(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(16,!1));Qa.bootstrap={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ba(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(17,!1));Qa.mount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ca(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(18,!1));Qa.unmount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function da(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(19,!1));Qa.unload={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ea(b,d){var g=b.timeouts[d],e=g.warningMillis,h=N(b);return new Promise(function(j,i){function a(b){if(!f)if(!0===b)k=!0,g.dieOnTimeout?i(Error(l)):console.error(l);else if(!k){var c=b;console.warn(l),c*e+e<g.millis&&setTimeout(function(){return a(c+1)},e)}}var f=!1,k=!1;b[d]($(b)).then(function(a){f=!0,j(a)}).catch(function(a){f=!0,i(a)}),setTimeout(function(){return a(1)},e),setTimeout(function(){return a(!0)},g.millis);var l=L(31,!1,d,h,z(b),g.millis)})}function fa(a){var b={};for(var c in Qa)b[c]=q({},Qa[c],a&&a[c]||{});return b}function ga(a){return Promise.resolve().then(function(){return a.loadPromise?a.loadPromise:"NOT_LOADED"!==a.status&&"LOAD_ERROR"!==a.status?a:(a.status="LOADING_SOURCE_CODE",a.loadPromise=Promise.resolve().then(function(){var d=a.loadApp($(a));if(!T(d))throw c=!0,Error(L(33,!1,z(a)));return d.then(function(c){var d;a.loadErrorTime=null,"object"!==E(b=c)&&(d=34),Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap)&&(d=35),Q(b.mount)||(d=36),Q(b.unmount)||(d=37);var e=N(b);if(d){var f;try{f=JSON.stringify(b)}catch(a){}return console.error(L(d,!1,e,z(a),f),b),G(void 0,a,"SKIP_BECAUSE_BROKEN"),a}return b.devtools&&b.devtools.overlays&&(a.devtools.overlays=q({},a.devtools.overlays,b.devtools.overlays)),a.status="NOT_BOOTSTRAPPED",a.bootstrap=R(b,"bootstrap"),a.mount=R(b,"mount"),a.unmount=R(b,"unmount"),a.unload=R(b,"unload"),a.timeouts=fa(b.timeouts),delete a.loadPromise,a})}).catch(function(b){var d;return delete a.loadPromise,c?d="SKIP_BECAUSE_BROKEN":(d="LOAD_ERROR",a.loadErrorTime=new Date().getTime()),G(b,a,d),a}));var b,c})}function ha(a){var b;if("string"==typeof a)b=a;else if(this&&this.href)b=this.href;else{if(!(a&&a.currentTarget&&a.currentTarget.href&&a.preventDefault))throw Error(L(14,!1));b=a.currentTarget.href,a.preventDefault()}var c=ma(window.location.href),d=ma(b);0===b.indexOf("#")?window.location.hash=d.hash:c.host!==d.host&&d.host?window.location.href=b:d.pathname===c.pathname&&d.search===c.search?window.location.hash=d.hash:window.history.pushState(null,null,b)}function ia(a){var b=this;if(a){var c=a[0].type;0<=Ta.indexOf(c)&&Sa[c].forEach(function(c){try{c.apply(b,a)}catch(a){setTimeout(function(){throw a})}})}}function ja(){Fa([],arguments)}function ka(a,b){return function(){var c=window.location.href,d=a.apply(this,arguments),e=window.location.href;return Ka&&c===e||(Ia()?window.dispatchEvent(la(window.history.state,b)):Fa([])),d}}function la(a,b){var c;try{c=new PopStateEvent("popstate",{state:a})}catch(b){(c=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,a)}return c.singleSpa=!0,c.singleSpaTrigger=b,c}function ma(a){var b=document.createElement("a");return b.href=a,b}function na(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(a||window.$&&window.$.fn&&window.$.fn.jquery&&(a=window.$),a&&!Wa){var b=a.fn.on,c=a.fn.off;a.fn.on=function(a,c){return oa.call(this,b,window.addEventListener,a,c,arguments)},a.fn.off=function(a,b){return oa.call(this,c,window.removeEventListener,a,b,arguments)},Wa=!0}}function oa(a,b,c,d,f){return"string"==typeof c?(c.split(/\s+/).forEach(function(a){0<=Ta.indexOf(a)&&(b(a,d),c=c.replace(a,""))}),""===c.trim()?this:a.apply(this,f)):a.apply(this,f)}function pa(a){return Promise.resolve().then(function(){var b=Xa[z(a)];if(!b)return a;if("NOT_LOADED"===a.status)return qa(a,b),a;if("UNLOADING"===a.status)return b.promise.then(function(){return a});if("NOT_MOUNTED"!==a.status&&"LOAD_ERROR"!==a.status)return a;var c="LOAD_ERROR"===a.status?Promise.resolve():ea(a,"unload");return a.status="UNLOADING",c.then(function(){return qa(a,b),a}).catch(function(c){return function(a,b,c){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,G(c,a,"SKIP_BECAUSE_BROKEN"),b.reject(c)}(a,b,c),a})})}function qa(a,b){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,a.status="NOT_LOADED",b.resolve()}function ra(a,b,c,d){Xa[z(a)]={app:a,resolve:c,reject:d},Object.defineProperty(Xa[z(a)],"promise",{get:b})}function sa(a){return Xa[a]}function ta(){var b=[],c=[],d=[],e=[],f=new Date().getTime();return Ya.forEach(function(g){var h="SKIP_BECAUSE_BROKEN"!==g.status&&K(g);switch(g.status){case"LOAD_ERROR":h&&200<=f-g.loadErrorTime&&d.push(g);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":h&&d.push(g);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!h&&sa(z(g))?b.push(g):h&&e.push(g);break;case"MOUNTED":h||c.push(g);}}),{appsToUnload:b,appsToUnmount:c,appsToLoad:d,appsToMount:e}}function ua(){return Ya.filter(M).map(z)}function va(){return Ya.map(z)}function wa(a){var b=H(Ya,function(b){return z(b)===a});return b?b.status:null}function xa(a,b,c,d){var e=function(a,b,c,d){var e,f={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===E(a)?(function(a){if(Array.isArray(a)||null===a)throw Error(L(39,!1));var b=["name","app","activeWhen","customProps"],c=Object.keys(a).reduce(function(a,c){return 0<=b.indexOf(c)?a:a.concat(c)},[]);if(0!==c.length)throw Error(L(38,!1,b.join(", "),c.join(", ")));if("string"!=typeof a.name||0===a.name.length)throw Error(L(20,!1));if("object"!==E(a.app)&&"function"!=typeof a.app)throw Error(L(20,!1));var d=function(a){return"string"==typeof a||"function"==typeof a};if(!(d(a.activeWhen)||Array.isArray(a.activeWhen)&&a.activeWhen.every(d)))throw Error(L(24,!1));if(!Ca(a.customProps))throw Error(L(22,!1))}(a),f.name=a.name,f.loadApp=a.app,f.activeWhen=a.activeWhen,f.customProps=a.customProps):(function(a,b,c,d){if("string"!=typeof a||0===a.length)throw Error(L(20,!1));if(!b)throw Error(L(23,!1));if("function"!=typeof c)throw Error(L(24,!1));if(!Ca(d))throw Error(L(22,!1))}(a,b,c,d),f.name=a,f.loadApp=b,f.activeWhen=c,f.customProps=d),f.loadApp="function"==typeof(e=f.loadApp)?e:function(){return Promise.resolve(e)},f.customProps=function(a){return a||{}}(f.customProps),f.activeWhen=function(a){var b=Array.isArray(a)?a:[a];return b=b.map(function(a){return"function"==typeof a?a:Da(a)}),function(a){return b.some(function(b){return b(a)})}}(f.activeWhen),f}(a,b,c,d);if(-1!==va().indexOf(e.name))throw Error(L(21,!1,e.name));Ya.push(q({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},e)),Ra&&(na(),Fa())}function ya(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return Ya.filter(function(b){return b.activeWhen(a)}).map(z)}function za(a){if(0===Ya.filter(function(b){return z(b)===a}).length)throw Error(L(25,!1,a));return Aa(a).then(function(){var b=Ya.map(z).indexOf(a);Ya.splice(b,1)})}function Aa(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof a)throw Error(L(26,!1));var c=H(Ya,function(b){return z(b)===a});if(!c)throw Error(L(27,!1,a));var d,e=sa(z(c));if(b&&b.waitForUnmount){if(e)return e.promise;var f=new Promise(function(a,b){ra(c,function(){return f},a,b)});return f}return e?(d=e.promise,Ba(c,e.resolve,e.reject)):d=new Promise(function(a,b){ra(c,function(){return d},a,b),Ba(c,a,b)}),d}function Ba(a,b,c){V(a).then(pa).then(function(){b(),setTimeout(function(){Fa()})}).catch(c)}function Ca(a){return!a||"function"==typeof a||"object"===E(a)&&null!==a&&!Array.isArray(a)}function Da(a,b){var c=function(b,c){function d(d){var e=b.slice(f,d).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(h+=g?"[^/]+/?":e,d===b.length)if(g)c&&(h+="$");else{var a=c?"":".*";h="/"===h.charAt(h.length-1)?"".concat(h).concat(a,"$"):"".concat(h,"(/").concat(a,")?(#.*)?$")}g=!g,f=d}var f=0,g=!1,h="^";"/"!==b[0]&&(b="/"+b);for(var j,k=0;k<b.length;k++)j=b[k],(!g&&":"===j||g&&"/"===j)&&d(k);return d(b.length),new RegExp(h,"i")}(a,b);return function(a){var b=a.origin;b||(b="".concat(a.protocol,"//").concat(a.host));var d=a.href.replace(b,"").replace(a.search,"").split("?")[0];return c.test(d)}}function Ea(){return Fa()}function Fa(){function b(){u=!0}function g(){var a=ua();h.forEach(function(b){return b.resolve(a)});try{var b=0===v.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new O(b,d())),window.dispatchEvent(new O("single-spa:routing-event",d()))}catch(a){setTimeout(function(){throw a})}if(Za=!1,0<$a.length){var c=$a;$a=[],Fa(c)}return a}function j(){h.forEach(function(a){ia(a.eventArguments)}),ia(k)}function d(){function b(a,b){var c=z(a);b=b||wa(c),f[c]=b,(g[b]=g[b]||[]).push(c)}var c,d=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length?arguments[1]:void 0,f={},g=(F(c={},"MOUNTED",[]),F(c,"NOT_MOUNTED",[]),F(c,"NOT_LOADED",[]),F(c,"SKIP_BECAUSE_BROKEN",[]),c);d?(i.concat(a).forEach(function(a){b(a,"MOUNTED")}),w.forEach(function(a){b(a,"NOT_LOADED")}),o.forEach(function(a){b(a,"NOT_MOUNTED")})):v.forEach(function(a){b(a)});var h={detail:{newAppStatuses:f,appsByNewStatus:g,totalAppChanges:v.length,originalEvent:null==k?void 0:k[0],oldUrl:x,newUrl:n,navigationIsCanceled:u}};return e&&q(h.detail,e),h}var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],k=1<arguments.length?arguments[1]:void 0;if(Za)return new Promise(function(a,b){$a.push({resolve:a,reject:b,eventArguments:k})});var v,l=ta(),w=l.appsToUnload,o=l.appsToUnmount,i=l.appsToLoad,a=l.appsToMount,u=!1,x=_a,n=_a=window.location.href;return Ia()?(Za=!0,v=w.concat(i,o,a),function(){return Promise.resolve().then(function(){if(window.dispatchEvent(new O(0===v.length?"single-spa:before-no-app-change":"single-spa:before-app-change",d(!0))),window.dispatchEvent(new O("single-spa:before-routing-event",d(!0,{cancelNavigation:b}))),u)return window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0))),g(),void ha(x);var c=w.map(pa),e=o.map(V).map(function(a){return a.then(pa)}).concat(c),k=Promise.all(e);k.then(function(){window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0)))});var f=i.map(function(a){return ga(a).then(function(a){return Ga(a,k)})}),l=a.filter(function(a){return 0>i.indexOf(a)}).map(function(a){return Ga(a,k)});return k.catch(function(a){throw j(),a}).then(function(){return j(),Promise.all(f.concat(l)).catch(function(a){throw h.forEach(function(b){return b.reject(a)}),a}).then(g)})})}()):(v=i,function(){return Promise.resolve().then(function(){var a=i.map(ga);return Promise.all(a).then(j).then(function(){return[]}).catch(function(a){throw j(),a})})}())}function Ga(a,b){return K(a)?U(a).then(function(a){return b.then(function(){return K(a)?W(a):a})}):b.then(function(){return a})}function Ha(a){var b;ab=!0,a&&a.urlRerouteOnly&&(b=a.urlRerouteOnly,Ka=b),Ra&&Fa()}function Ia(){return ab}function Ja(){return(0,La.defineConfigSchema)(a.e,o),(0,La.setupOfflineSync)(a.O,[],g),{pages:[{load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(596),n.e(983),n.e(784),n.e(212)]).then(n.bind(n,3212))},db),route:function(a){return!a.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(ha(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(a){return a.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(983),n.e(784),n.e(540)]).then(n.bind(n,3540))},db),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(983),n.e(784),n.e(510)]).then(n.bind(n,510))},db),online:{postUserProperties:s},offline:{postUserProperties:B}}]}}n.r(t),n.d(t,{backendDependencies:()=>cb,importTranslation:()=>bb,setupOpenMRS:()=>Ja,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"]});var Ka,La=n(7644),r=n(1602),Ma=n.n(r),i=n(8478),a=n(1217),o={logo:{src:{_type:La.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:La.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:La.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:La.Type.Array,_elements:{title:{_type:La.Type.String,_description:"Title of the link"},redirect:{_type:La.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[La.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},h=Object.freeze({__proto__:null,get start(){return Ha},get ensureJQuerySupport(){return na},get setBootstrapMaxTime(){return aa},get setMountMaxTime(){return ba},get setUnmountMaxTime(){return ca},get setUnloadMaxTime(){return da},get registerApplication(){return xa},get unregisterApplication(){return za},get getMountedApps(){return ua},get getAppStatus(){return wa},get unloadApplication(){return Aa},get checkActivityFunctions(){return ya},get getAppNames(){return va},get pathToActiveWhen(){return Da},get navigateToUrl(){return ha},get triggerAppChange(){return Ea},get addErrorHandler(){return I},get removeErrorHandler(){return x},get mountRootParcel(){return X},get NOT_LOADED(){return _},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),u=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,O=function(){try{var a=new u("cat",{detail:{foo:"bar"}});return"cat"===a.type&&"bar"===a.detail.foo}catch(a){}return!1}()?u:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(a,b){var c=document.createEvent("CustomEvent");return b?c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail):c.initCustomEvent(a,!1,!1,void 0),c}:function(a,b){var c=document.createEventObject();return c.type=a,b?(c.bubbles=!!b.bubbles,c.cancelable=!!b.cancelable,c.detail=b.detail):(c.bubbles=!1,c.cancelable=!1,c.detail=void 0),c},S=[],_="NOT_LOADED",D=!1,Na=!1,Oa=0,Pa={parcels:{}},Qa={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}},Ra="undefined"!=typeof window,Sa={hashchange:[],popstate:[]},Ta=["hashchange","popstate"];if(Ra){window.addEventListener("hashchange",ja),window.addEventListener("popstate",ja);var Ua=window.addEventListener,Va=window.removeEventListener;window.addEventListener=function(a,b){return!("function"==typeof b&&0<=Ta.indexOf(a))||H(Sa[a],function(a){return a===b})?Ua.apply(this,arguments):void Sa[a].push(b)},window.removeEventListener=function(a,b){return"function"==typeof b&&0<=Ta.indexOf(a)?void(Sa[a]=Sa[a].filter(function(a){return a!==b})):Va.apply(this,arguments)},window.history.pushState=ka(window.history.pushState,"pushState"),window.history.replaceState=ka(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(L(41,!1)):window.singleSpaNavigate=ha}var Wa=!1,Xa={},Ya=[],Za=!1,$a=[],_a=Ra&&window.location.href,ab=!1;Ra&&setTimeout(function(){ab||console.warn(L(1,!1))},5e3);Ra&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ya)},reroute:Fa,NOT_LOADED:_,toLoadPromise:ga,toBootstrapPromise:U,unregisterApplication:za});var bb=n(3979),cb={"webservices.rest":"^2.2.0"},db={featureName:"primary navigation",moduleName:a.e}},3979:(a,b,c)=>{function d(a){if(!c.o(e,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=e[a],d=b[0];return c.e(b[1]).then(()=>c(d))}var e={"./en.json":[3574,574]};d.keys=()=>Object.keys(e),d.id=3979,a.exports=d}}]),b=f.e(789).then(()=>()=>f(789))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-primary-navigation-app:",k.l=(a,b,d)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==d)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+d){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+d),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.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];k.o(k.S,d)||(k.S[d]={});var g=k.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","3.3.2-pre.67",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),a("carbon-components-react","7.31.0",()=>Promise.all([k.e(322),k.e(983),k.e(69)]).then(()=>()=>k(7322))),a("carbon-components","10.31.0",()=>Promise.all([k.e(25),k.e(1)]).then(()=>()=>k(25))),a("carbon-icons","7.0.7",()=>k.e(860).then(()=>()=>k(4860))),a("react-dom","16.14.0",()=>Promise.all([k.e(788),k.e(983)]).then(()=>()=>k(2788))),a("react-i18next","11.16.2",()=>Promise.all([k.e(743),k.e(983)]).then(()=>()=>k(5743))),a("react-router-dom","5.3.0",()=>Promise.all([k.e(393),k.e(983),k.e(216)]).then(()=>()=>k(7393))),a("react","16.14.0",()=>k.e(735).then(()=>()=>k(2735)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=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},z=(b,c)=>{b=x(b),c=x(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++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<b.length;j++){var d=b[j];f.push(1==d?c()|c():2==d?c()&c():d?B(d,e):!c())}return!!c()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={7644:()=>I("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),8478:()=>H("default","@openmrs/esm-framework/src/internal",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),6983:()=>I("default","react",[1,16],()=>k.e(735).then(()=>()=>k(2735))),5412:()=>I("default","react-dom",[1,16],()=>k.e(788).then(()=>()=>k(2788))),6240:()=>I("default","carbon-icons",[1,7],()=>k.e(860).then(()=>()=>k(4860))),7569:()=>I("default","carbon-components",[1,10],()=>k.e(25).then(()=>()=>k(25))),9784:()=>I("default","carbon-components-react",[1,7],()=>Promise.all([k.e(322),k.e(69)]).then(()=>()=>k(7322))),2268:()=>I("default","react-router-dom",[1,5],()=>k.e(393).then(()=>()=>k(7393))),2680:()=>I("default","react-i18next",[1,11],()=>k.e(743).then(()=>()=>k(5743)))},L={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.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};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(69|784|983)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.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)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.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))})(),k(8331),k(7972)})())}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>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})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=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),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.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];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.3.2-pre.
|
|
1
|
+
System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>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})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=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),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.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];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.3.2-pre.67",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),s("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),s("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),s("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=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},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=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,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(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 "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),m={},v={7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743)))))},g={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={115:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|784|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.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,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.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))})(),w(8331),w(7972)})())}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-primary-navigation-app",
|
|
3
|
-
"version": "3.3.2-pre.
|
|
3
|
+
"version": "3.3.2-pre.67",
|
|
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",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"rxjs": "6.x"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@openmrs/esm-framework": "^3.3.2-pre.
|
|
56
|
-
"@openmrs/webpack-config": "^3.3.2-pre.
|
|
55
|
+
"@openmrs/esm-framework": "^3.3.2-pre.67",
|
|
56
|
+
"@openmrs/webpack-config": "^3.3.2-pre.67",
|
|
57
57
|
"@types/carbon-components-react": "^7.24.0",
|
|
58
58
|
"@types/react-router-dom": "^5.1.7",
|
|
59
59
|
"jest": "^26.6.3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"react-dom": "^16.13.1",
|
|
62
62
|
"rxjs": "^6.5.3"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "78ec9e406873bf317c0a4dfd080c5c593ffd1737"
|
|
65
65
|
}
|