@openmrs/esm-app-shell 3.4.1-pre.171 → 3.4.1-pre.174
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 +60 -60
- package/dist/{f716411357c947311561.js → 71367f5d233560f85dfa.js} +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.old +1 -1
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +1 -1
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
- package/dist/openmrs.js +1 -1
- package/dist/service-worker.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.old +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
- package/lib/openmrs.js +38 -14
- package/lib/service-worker.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-primary-navigation-app",[],(function(t,e){var n=void 0;return{execute:function(){t((()=>{function t(e){var n=O[e];if(void 0!==n)return n.exports;var r=O[e]={id:e,loaded:!1,exports:{}};return E[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var r,o,i,a,u,s,c,f,l,p,h,d,m,v,y,g,w,E={6585:(t,e,n)=>{(0,n(7968).s)(1)},7968:(t,e,n)=>{const r=n(1577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},8331:(t,e,n)=>{n(6585)},1577:(t,e)=>{e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&0<=i;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},7972:(t,e,r)=>{var o={app:()=>(n||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var e=function(t){function e(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function n(t,e,n,i){var a=e&&e.prototype instanceof o?e:o,u=Object.create(a.prototype),s=new p(i||[]);return u._invoke=function(t,e,n){var o=b;return function(i,a){if(o===T)throw new Error("Generator is already running");if(o===P){if("throw"===i)throw a;return d()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=c(u,n);if(s){if(s===S)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===b)throw o=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=T;var f=r(t,e,n);if("normal"===f.type){if(o=n.done?P:_,f.arg===S)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=P,n.method="throw",n.arg=f.arg)}}}(t,n,s),u}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach((function(n){e(t,n,(function(t){return this._invoke(n,t)}))}))}function s(t,e){function n(o,i,a,u){var s=r(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&y.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return S;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,S;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,S):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,S)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:d}}function d(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},w=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",O=g.toStringTag||"@@toStringTag";try{e({},"")}catch(O){e=function(t,e,n){return t[e]=n}}t.wrap=n;var b="suspendedStart",_="suspendedYield",T="executing",P="completed",S={},N={};e(N,w,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(h([])));L&&L!==v&&y.call(L,w)&&(N=L);var D=a.prototype=o.prototype=Object.create(N);return i.prototype=a,e(D,"constructor",a),e(a,"constructor",i),i.displayName=e(a,O,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,O,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(s.prototype),e(s.prototype,E,(function(){return this})),t.AsyncIterator=s,t.async=function(e,r,o,i,a){void 0===a&&(a=Promise);var u=new s(n(e,r,o,i),a);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},u(D),e(D,O,"Generator"),e(D,w,(function(){return this})),e(D,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),u=y.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n,r=this.tryEntries.length-1;0<=r;--r)if((n=this.tryEntries[r]).tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),l(e),S},catch:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;l(e)}return o}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),S}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,n)=>{function r(){var t=(0,a.useConfig)();return i().createElement(a.ConfigurableLink,{to:t.target},t.title)}n.r(e),n.d(e,{default:()=>r,genericLinkConfigSchema:()=>u});var o=n(6983),i=n.n(o),a=n(7644),u={title:{_default:"New Link",_type:a.Type.String},target:{_default:"#",_type:a.Type.String,_description:"The URL to link to.",_validators:[a.validators.isUrl]}}},1217:(t,e,n)=>{n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){function a(t){r(s,o,i,a,u,"next",t)}function u(t){r(s,o,i,a,u,"throw",t)}var s=t.apply(e,n);a(void 0)}))}}function i(){return a.apply(this,arguments)}function a(){return(a=o(Pt().mark((function t(e,n,r){var o,i;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,St.getSessionLocation)();case 2:return o=t.sent,i=null==o?void 0:o.uuid,t.next=6,(0,St.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!i){t.next=9;break}return t.next=9,(0,St.setSessionLocation)(i,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t,e){return(0,St.queueSynchronizationItemFor)(t,Nt.O,e,{displayName:"User Language Change"})}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){function i(t){c(u,r,o,i,a,"next",t)}function a(t){c(u,r,o,i,a,"throw",t)}var u=t.apply(e,n);i(void 0)}))}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||h(t,e)||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 p(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function d(){return m.apply(this,arguments)}function m(){return m=f(Pt().mark((function t(e,n){var r,o,a,u;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n.index){t.next=10;break}return t.next=4,(0,St.getLoggedInUser)();case 4:return o=t.sent,a=n.items.map((function(t){var e=l(t,2);return e[0],e[1]})),u=(r=Object).assign.apply(r,[{},o.userProperties].concat(p(a))),t.next=9,i(o.uuid,u,n.abort);case 9:(0,St.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n){var r=b(t,e,n);xt.length?xt.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function w(t){if("function"!=typeof t)throw Error(O(28,!1));xt.push(t)}function E(t){if("function"!=typeof t)throw Error(O(29,!1));var e=!1;return xt=xt.filter((function(n){var r=n===t;return e=e||r,!r})),e}function O(t,e){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function b(t,e,n){var r,o="".concat(N(e)," '").concat(P(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(O(30,!1,e.status,P(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=P(e),e.status=n,r}function _(t){return"MOUNTED"===t.status}function T(t){try{return t.activeWhen(window.location)}catch(e){return g(e,t,"SKIP_BECAUSE_BROKEN"),!1}}function P(t){return t.name}function S(t){return!!t.unmountThisParcel}function N(t){return S(t)?"parcel":"application"}function A(){for(var t=arguments.length-1;0<t;t--)for(var e in arguments[t])"__proto__"!=e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function L(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!L(e,(function(t){return"function"!=typeof t}))));var e}function U(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(t),o=P(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return x(n)?n:Promise.reject(O(15,!1,r,o,e,a))}))}),Promise.resolve())}}function x(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t,e){function n(){return t.status="NOT_MOUNTED",t}return Promise.resolve().then((function(){return"NOT_BOOTSTRAPPED"===t.status?(t.status="BOOTSTRAPPING",t.bootstrap?F(t,"bootstrap").then(n).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t})):Promise.resolve().then(n)):t}))}function R(t,e){return Promise.resolve().then((function(){function n(){return F(t,"unmount").then((function(){t.status="NOT_MOUNTED"})).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))}if("MOUNTED"!==t.status)return t;t.status="UNMOUNTING";var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))})).then((function(){return t}))}))}function k(t,e){return Promise.resolve().then((function(){return"NOT_MOUNTED"===t.status?(Rt||(window.dispatchEvent(new Ut("single-spa:before-first-mount")),Rt=!0),F(t,"mount").then((function(){return t.status="MOUNTED",kt||(window.dispatchEvent(new Ut("single-spa:first-mount")),kt=!0),t})).catch((function(n){function r(){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t}return t.status="MOUNTED",R(t,!0).then(r,r)}))):t}))}function C(){return M.apply(Mt,arguments)}function M(t,e){var n=this;if(!t||"object"!==v(t)&&"function"!=typeof t)throw Error(O(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(O(3,!1,v(t.name)));if("object"!==v(e))throw Error(O(4,!1,name,v(e)));if(!e.domElement)throw Error(O(5,!1,name));var r,o=Ct++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:e,parentName:P(n),unmountThisParcel:function(){return p.then((function(){if("MOUNTED"!==u.status)throw Error(O(6,!1,name,u.status));return R(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return c(t),t})).catch((function(t){throw u.status="SKIP_BECAUSE_BROKEN",f(t),t}))}};n.parcels[o]=u;var s=a();if(!s||"function"!=typeof s.then)throw Error(O(7,!1));var c,f,l=(s=s.then((function(t){if(!t)throw Error(O(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(O(9,!1,e));if(!D(t.mount))throw Error(O(10,!1,e));if(!D(t.unmount))throw Error(O(11,!1,e));if(t.update&&!D(t.update))throw Error(O(12,!1,e));var n=U(t,"bootstrap"),i=U(t,"mount"),a=U(t,"unmount");u.status="NOT_BOOTSTRAPPED",u.name=e,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=z(t.timeouts),t.update&&(u.update=U(t,"update"),r.update=function(t){return u.customProps=t,B(function(t){return Promise.resolve().then((function(){if("MOUNTED"!==t.status)throw Error(O(32,!1,P(t)));return t.status="UPDATING",F(t,"update").then((function(){return t.status="MOUNTED",t})).catch((function(e){throw b(e,t,"SKIP_BECAUSE_BROKEN")}))}))}(u))})}))).then((function(){return j(u,!0)})),p=l.then((function(){return k(u,!0)})),h=new Promise((function(t,e){c=t,f=e}));return r={mount:function(){return B(Promise.resolve().then((function(){if("NOT_MOUNTED"!==u.status)throw Error(O(13,!1,name,u.status));return n.parcels[o]=u,k(u)})))},unmount:function(){return B(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:B(s),bootstrapPromise:B(l),mountPromise:B(p),unmountPromise:B(h)}}function B(t){return t.then((function(){return null}))}function I(t){var e=P(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==v(n)||null===n||Array.isArray(n))&&(n={},console.warn(O(40,!1),e,n));var r=A({},n,{name:e,mountParcel:M.bind(t),singleSpa:Lt});return S(t)&&(r.unmountSelf=t.unmountThisParcel),r}function K(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(16,!1));Bt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function G(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(17,!1));Bt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function W(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(18,!1));Bt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function $(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(19,!1));Bt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function F(t,e){var n=t.timeouts[e],r=n.warningMillis,o=N(t);return new Promise((function(i,a){function u(t){if(!s)if(!0===t)c=!0,n.dieOnTimeout?a(Error(f)):console.error(f);else if(!c){var e=t;console.warn(f),e*r+r<n.millis&&setTimeout((function(){return u(e+1)}),r)}}var s=!1,c=!1;t[e](I(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return u(1)}),r),setTimeout((function(){return u(!0)}),n.millis);var f=O(31,!1,e,o,P(t),n.millis)}))}function z(t){var e={};for(var n in Bt)e[n]=A({},Bt[n],t&&t[n]||{});return e}function q(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:"NOT_LOADED"!==t.status&&"LOAD_ERROR"!==t.status?t:(t.status="LOADING_SOURCE_CODE",t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(I(t));if(!x(r))throw n=!0,Error(O(33,!1,P(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==v(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(r=35),D(e.mount)||(r=36),D(e.unmount)||(r=37);var o=N(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(O(r,!1,o,P(t),i),e),g(void 0,t,"SKIP_BECAUSE_BROKEN"),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status="NOT_BOOTSTRAPPED",t.bootstrap=U(e,"bootstrap"),t.mount=U(e,"mount"),t.unmount=U(e,"unmount"),t.unload=U(e,"unload"),t.timeouts=z(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r="SKIP_BECAUSE_BROKEN":(r="LOAD_ERROR",t.loadErrorTime=(new Date).getTime()),g(e,t,r),t})));var e,n}))}function J(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(O(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=X(window.location.href),r=X(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function V(t){var e=this;if(t){var n=t[0].type;0<=Gt.indexOf(n)&&Kt[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function H(){yt([],arguments)}function Q(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return bt&&n===o||(Et()?window.dispatchEvent(Y(window.history.state,e)):yt([])),r}}function Y(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}function X(t){var e=document.createElement("a");return e.href=t,e}function Z(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Ft){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return tt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return tt.call(this,n,window.removeEventListener,t,e,arguments)},Ft=!0}}function tt(t,e,n,r,o){return"string"==typeof n?(n.split(/\s+/).forEach((function(t){0<=Gt.indexOf(t)&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o)):t.apply(this,o)}function et(t){return Promise.resolve().then((function(){var e=zt[P(t)];if(!e)return t;if("NOT_LOADED"===t.status)return nt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if("NOT_MOUNTED"!==t.status&&"LOAD_ERROR"!==t.status)return t;var n="LOAD_ERROR"===t.status?Promise.resolve():F(t,"unload");return t.status="UNLOADING",n.then((function(){return nt(t,e),t})).catch((function(n){return function(t,e,n){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,g(n,t,"SKIP_BECAUSE_BROKEN"),e.reject(n)}(t,e,n),t}))}))}function nt(t,e){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status="NOT_LOADED",e.resolve()}function rt(t,e,n,r){zt[P(t)]={app:t,resolve:n,reject:r},Object.defineProperty(zt[P(t)],"promise",{get:e})}function ot(t){return zt[t]}function it(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return qt.forEach((function(i){var a="SKIP_BECAUSE_BROKEN"!==i.status&&T(i);switch(i.status){case"LOAD_ERROR":a&&200<=o-i.loadErrorTime&&n.push(i);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":a&&n.push(i);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!a&&ot(P(i))?t.push(i):a&&r.push(i);break;case"MOUNTED":a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function at(){return qt.filter(_).map(P)}function ut(){return qt.map(P)}function st(t){var e=L(qt,(function(e){return P(e)===t}));return e?e.status:null}function ct(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===v(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(O(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return 0<=e.indexOf(n)?t:t.concat(n)}),[]);if(0!==n.length)throw Error(O(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(O(20,!1));if("object"!==v(t.app)&&"function"!=typeof t.app)throw Error(O(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(O(24,!1));if(!dt(t.customProps))throw Error(O(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(O(20,!1));if(!e)throw Error(O(23,!1));if("function"!=typeof n)throw Error(O(24,!1));if(!dt(r))throw Error(O(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"==typeof(o=i.loadApp)?o:function(){return Promise.resolve(o)},i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==ut().indexOf(o.name))throw Error(O(21,!1,o.name));qt.push(A({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),It&&(Z(),yt())}function ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return qt.filter((function(e){return e.activeWhen(t)})).map(P)}function lt(t){if(0===qt.filter((function(e){return P(e)===t})).length)throw Error(O(25,!1,t));return pt(t).then((function(){var e=qt.map(P).indexOf(t);qt.splice(e,1)}))}function pt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(O(26,!1));var n=L(qt,(function(e){return P(e)===t}));if(!n)throw Error(O(27,!1,t));var r,o=ot(P(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){rt(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ht(n,o.resolve,o.reject)):r=new Promise((function(t,e){rt(n,(function(){return r}),t,e),ht(n,t,e)})),r}function ht(t,e,n){R(t).then(et).then((function(){e(),setTimeout((function(){yt()}))})).catch(n)}function dt(t){return!t||"function"==typeof t||"object"===v(t)&&null!==t&&!Array.isArray(t)}function mt(t,e){var n=function(t,e){function n(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var u=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(u,"$"):"".concat(i,"(/").concat(u,")?(#.*)?$")}o=!o,r=n}var r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a,u=0;u<t.length;u++)a=t[u],(!o&&":"===a||o&&"/"===a)&&n(u);return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}function vt(){return yt()}function yt(){function t(){p=!0}function e(){var t=at();o.forEach((function(e){return e.resolve(t)}));try{var e=0===a.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new Ut(e,r())),window.dispatchEvent(new Ut("single-spa:routing-event",r()))}catch(t){setTimeout((function(){throw t}))}if(Jt=!1,0<Vt.length){var n=Vt;Vt=[],yt(n)}return t}function n(){o.forEach((function(t){V(t.eventArguments)})),V(i)}function r(){function t(t,e){var n=P(t);e=e||st(n),o[n]=e,(u[e]=u[e]||[]).push(n)}var e,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=1<arguments.length?arguments[1]:void 0,o={},u=(y(e={},"MOUNTED",[]),y(e,"NOT_MOUNTED",[]),y(e,"NOT_LOADED",[]),y(e,"SKIP_BECAUSE_BROKEN",[]),e);n?(f.concat(l).forEach((function(e){t(e,"MOUNTED")})),s.forEach((function(e){t(e,"NOT_LOADED")})),c.forEach((function(e){t(e,"NOT_MOUNTED")}))):a.forEach((function(e){t(e)}));var m={detail:{newAppStatuses:o,appsByNewStatus:u,totalAppChanges:a.length,originalEvent:null==i?void 0:i[0],oldUrl:h,newUrl:d,navigationIsCanceled:p}};return r&&A(m.detail,r),m}var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length?arguments[1]:void 0;if(Jt)return new Promise((function(t,e){Vt.push({resolve:t,reject:e,eventArguments:i})}));var a,u=it(),s=u.appsToUnload,c=u.appsToUnmount,f=u.appsToLoad,l=u.appsToMount,p=!1,h=Ht,d=Ht=window.location.href;return Et()?(Jt=!0,a=s.concat(f,c,l),Promise.resolve().then((function(){if(window.dispatchEvent(new Ut(0===a.length?"single-spa:before-no-app-change":"single-spa:before-app-change",r(!0))),window.dispatchEvent(new Ut("single-spa:before-routing-event",r(!0,{cancelNavigation:t}))),p)return window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0))),e(),void J(h);var i=s.map(et),u=c.map(R).map((function(t){return t.then(et)})).concat(i),d=Promise.all(u);d.then((function(){window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0)))}));var m=f.map((function(t){return q(t).then((function(t){return gt(t,d)}))})),v=l.filter((function(t){return 0>f.indexOf(t)})).map((function(t){return gt(t,d)}));return d.catch((function(t){throw n(),t})).then((function(){return n(),Promise.all(m.concat(v)).catch((function(t){throw o.forEach((function(e){return e.reject(t)})),t})).then(e)}))}))):(a=f,Promise.resolve().then((function(){var t=f.map(q);return Promise.all(t).then(n).then((function(){return[]})).catch((function(t){throw n(),t}))})))}function gt(t,e){return T(t)?j(t).then((function(t){return e.then((function(){return T(t)?k(t):t}))})):e.then((function(){return t}))}function wt(t){var e;Qt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,bt=e),It&&yt()}function Et(){return Qt}function Ot(){return(0,_t.defineConfigSchema)(Nt.e,At),(0,_t.defineExtensionConfigSchema)("link",Yt.genericLinkConfigSchema),(0,_t.setupOfflineSync)(Nt.O,[],d),{pages:[{load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))}),te),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(J(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))}),te),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))}),te),online:{postUserProperties:i},offline:{postUserProperties:u}},{name:"link",load:(0,_t.getAsyncLifecycle)((function(){return Promise.resolve().then(n.bind(n,6639))}),{featureName:"Link",moduleName:Nt.e})}]}}n.r(e),n.d(e,{backendDependencies:()=>Zt,importTranslation:()=>Xt,setupOpenMRS:()=>Ot,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 bt,_t=n(7644),Tt=n(1602),Pt=n.n(Tt),St=n(8478),Nt=n(1217),At={logo:{src:{_type:_t.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:_t.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:_t.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:_t.Type.Array,_elements:{title:{_type:_t.Type.String,_description:"Title of the link"},redirect:{_type:_t.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[_t.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},Lt=Object.freeze({__proto__:null,get start(){return wt},get ensureJQuerySupport(){return Z},get setBootstrapMaxTime(){return K},get setMountMaxTime(){return G},get setUnmountMaxTime(){return W},get setUnloadMaxTime(){return $},get registerApplication(){return ct},get unregisterApplication(){return lt},get getMountedApps(){return at},get getAppStatus(){return st},get unloadApplication(){return pt},get checkActivityFunctions(){return ft},get getAppNames(){return ut},get pathToActiveWhen(){return mt},get navigateToUrl(){return J},get triggerAppChange(){return vt},get addErrorHandler(){return w},get removeErrorHandler(){return E},get mountRootParcel(){return C},get NOT_LOADED(){return jt},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"}}),Dt=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,Ut=function(){try{var t=new Dt("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Dt:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},xt=[],jt="NOT_LOADED",Rt=!1,kt=!1,Ct=0,Mt={parcels:{}},Bt={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}},It="undefined"!=typeof window,Kt={hashchange:[],popstate:[]},Gt=["hashchange","popstate"];if(It){window.addEventListener("hashchange",H),window.addEventListener("popstate",H);var Wt=window.addEventListener,$t=window.removeEventListener;window.addEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)&&!L(Kt[t],(function(t){return t===e}))?void Kt[t].push(e):Wt.apply(this,arguments)},window.removeEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)?void(Kt[t]=Kt[t].filter((function(t){return t!==e}))):$t.apply(this,arguments)},window.history.pushState=Q(window.history.pushState,"pushState"),window.history.replaceState=Q(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(O(41,!1)):window.singleSpaNavigate=J}var Ft=!1,zt={},qt=[],Jt=!1,Vt=[],Ht=It&&window.location.href,Qt=!1;It&&setTimeout((function(){Qt||console.warn(O(1,!1))}),5e3),It&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(qt)},reroute:yt,NOT_LOADED:jt,toLoadPromise:q,toBootstrapPromise:j,unregisterApplication:lt});var Yt=n(6639),Xt=n(3979),Zt={"webservices.rest":"^2.2.0"},te={featureName:"primary navigation",moduleName:Nt.e}},3979:(t,e,n)=>{function r(t){if(!n.o(o,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],r=e[0];return n.e(e[1]).then((()=>n(r)))}var o={"./en.json":[3574,574]};r.keys=()=>Object.keys(o),r.id=3979,t.exports=r}}]),n=Promise.all([r.e(983),r.e(789)]).then((()=>()=>r(789)))),n)},i=(t,e)=>(r.R=e,e=r.o(o,t)?o[t]():Promise.resolve().then((()=>{throw new Error('Module "'+t+'" does not exist in container.')})),r.R=void 0,e),a=(t,e)=>{if(r.S){var n=r.S.default;if(n&&n!==t)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S.default=t,r.I("default",e)}};r.d(e,{get:()=>i,init:()=>a})}},O={};return t.m=E,t.c=O,t.y=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,r)=>(t.f[r](e,n),n)),[])),t.u=t=>t+".js",t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},o="@openmrs/esm-primary-navigation-app:",t.l=(e,n,i)=>{if(r[e])r[e].push(n);else{var a,u;if(void 0!==i)for(var s,c=document.getElementsByTagName("script"),f=0;f<c.length;f++)if((s=c[f]).getAttribute("src")==e||s.getAttribute("data-webpack")==o+i){a=s;break}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",o+i),a.src=e),r[e]=[n];var l=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(n))),t)return t(n)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),u&&document.head.appendChild(a)}},t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{t.S={};var e={},n={};t.I=(r,o)=>{o||(o=[]);var i=n[r];if(i||(i=n[r]={}),!(0<=o.indexOf(i))){if(o.push(i),e[r])return e[r];t.o(t.S,r)||(t.S[r]={});var a=t.S[r],u=(t,e,n,r)=>{var o=a[t]=a[t]||{},i=o[e];i&&(i.loaded||(!r==!i.eager?!("@openmrs/esm-primary-navigation-app">i.from):!r))||(o[e]={get:n,from:"@openmrs/esm-primary-navigation-app",eager:!!r})},s=[];return"default"===r&&(u("@openmrs/esm-framework/src/internal","3.4.1-pre.171",(()=>Promise.all([t.e(983),t.e(889)]).then((()=>()=>t(4889))))),u("carbon-components-react","7.31.0",(()=>Promise.all([t.e(322),t.e(983),t.e(69)]).then((()=>()=>t(7322))))),u("carbon-components","10.31.0",(()=>Promise.all([t.e(25),t.e(1)]).then((()=>()=>t(25))))),u("carbon-icons","7.0.7",(()=>t.e(860).then((()=>()=>t(4860))))),u("react-dom","16.14.0",(()=>Promise.all([t.e(788),t.e(983)]).then((()=>()=>t(2788))))),u("react-i18next","11.16.2",(()=>Promise.all([t.e(743),t.e(983)]).then((()=>()=>t(5743))))),u("react-router-dom","5.3.0",(()=>Promise.all([t.e(393),t.e(983),t.e(216)]).then((()=>()=>t(7393))))),u("react","16.14.0",(()=>t.e(735).then((()=>()=>t(2735)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),t.p="",i=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},a=(t,e)=>{t=i(t),e=i(e);for(var n=0;;){if(n>=t.length)return n<e.length&&"u"!=(typeof e[n])[0];var r=t[n],o=(typeof r)[0];if(n>=e.length)return"u"==o;var a=e[n],u=(typeof a)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&r!=a)return r<a;n++}},u=t=>{function e(){return a.pop().replace(/^\((.+)\)$/,"$1")}var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":0<n?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(s=t[i]))[0]?"-":(0<o?".":"")+(o=2,s);return r}var a=[];for(i=1;i<t.length;i++){var s=t[i];a.push(0===s?"not("+e()+")":1===s?"("+e()+" || "+e()+")":2===s?a.pop()+" "+a.pop():u(s))}return e()},s=(t,e)=>{if(0 in t){e=i(e);var n=t[0],r=0>n;r&&(n=-n-1);for(var o=0,a=1,u=!0;;a++,o++){var c,f,l=a<t.length?(typeof t[a])[0]:"";if(o>=e.length||"o"==(f=(typeof(c=e[o]))[0]))return!u||("u"==l?a>n&&!r:""==l!=r);if("u"==f){if(!u||"u"!=l)return!1}else if(u)if(l==f)if(a<=n){if(c!=t[a])return!1}else{if(r?c>t[a]:c<t[a])return!1;c!=t[a]&&(u=!1)}else if("s"!=l&&"n"!=l){if(r||a<=n)return!1;u=!1,a--}else{if(a<=n||f<l!=r)return!1;u=!1}else"s"!=l&&"n"!=l&&(u=!1,a--)}}var p=[],h=p.pop.bind(p);for(o=1;o<t.length;o++){var d=t[o];p.push(1==d?h()|h():2==d?h()&h():d?s(d,e):!h())}return!!h()},c=(t,e)=>{var n=t[e];return Object.keys(n).reduce(((t,e)=>!t||!n[t].loaded&&a(t,e)?e:t),0)},f=(t,e,n,r)=>"Unsatisfied version "+n+" from "+(n&&t[e][n].from)+" of shared singleton module "+e+" (required "+u(r)+")",l=(t,e,n)=>{var r=c(t,n);return h(t[n][r])},p=(t,e,n,r)=>{var o=c(t,n);return s(r,o)||"undefined"!=typeof console&&console.warn&&console.warn(f(t,n,o,r)),h(t[n][o])},h=t=>(t.loaded=1,t.get()),m=(d=e=>function(n,r,o,i){var a=t.I(n);return a&&a.then?a.then(e.bind(e,n,t.S[n],r,o,i)):e(n,t.S[n],r,o,i)})(((e,n,r,o)=>n&&t.o(n,r)?l(n,0,r):o())),v=d(((e,n,r,o,i)=>n&&t.o(n,r)?p(n,0,r,o):i())),y={},g={6983:()=>v("default","react",[1,16],(()=>t.e(735).then((()=>()=>t(2735))))),7644:()=>v("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>t.e(889).then((()=>()=>t(4889))))),8478:()=>m("default","@openmrs/esm-framework/src/internal",(()=>t.e(889).then((()=>()=>t(4889))))),5412:()=>v("default","react-dom",[1,16],(()=>t.e(788).then((()=>()=>t(2788))))),6240:()=>v("default","carbon-icons",[1,7],(()=>t.e(860).then((()=>()=>t(4860))))),7569:()=>v("default","carbon-components",[1,10],(()=>t.e(25).then((()=>()=>t(25))))),9784:()=>v("default","carbon-components-react",[1,7],(()=>Promise.all([t.e(322),t.e(69)]).then((()=>()=>t(7322))))),2268:()=>v("default","react-router-dom",[1,5],(()=>t.e(393).then((()=>()=>t(7393))))),2680:()=>v("default","react-i18next",[1,11],(()=>t.e(743).then((()=>()=>t(5743)))))},w={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},t.f.consumes=(e,n)=>{t.o(w,e)&&w[e].forEach((e=>{if(t.o(y,e))return n.push(y[e]);var r=n=>{y[e]=0,t.m[e]=r=>{delete t.c[e],r.exports=n()}},o=n=>{delete y[e],t.m[e]=()=>{throw delete t.c[e],n}};try{var i=g[e]();i.then?n.push(y[e]=i.then(r).catch(o)):r(i)}catch(e){o(e)}}))},(()=>{var e={115:0};t.f.j=(n,r)=>{var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(69|784|983)$/.test(n))e[n]=0;else{var i=new Promise(((t,r)=>o=e[n]=[t,r]));r.push(o[2]=i);var a=t.p+t.u(n),u=new Error;t.l(a,(r=>{if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+n,n)}};var n=(n,r)=>{var o,i,[a,u,s]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);s&&s(t)}for(n&&n(r);c<a.length;c++)i=a[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})(),t(8331),t(7972)})())}}}));
|
|
1
|
+
System.register("@openmrs/esm-primary-navigation-app",[],(function(t,e){var n=void 0;return{execute:function(){t((()=>{function t(e){var n=O[e];if(void 0!==n)return n.exports;var r=O[e]={id:e,loaded:!1,exports:{}};return E[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var r,o,i,a,u,s,c,f,l,p,h,d,m,v,y,g,w,E={6585:(t,e,n)=>{(0,n(7968).s)(1)},7968:(t,e,n)=>{const r=n(1577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},8331:(t,e,n)=>{n(6585)},1577:(t,e)=>{e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&0<=i;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},7972:(t,e,r)=>{var o={app:()=>(n||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var e=function(t){function e(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function n(t,e,n,i){var a=e&&e.prototype instanceof o?e:o,u=Object.create(a.prototype),s=new p(i||[]);return u._invoke=function(t,e,n){var o=b;return function(i,a){if(o===T)throw new Error("Generator is already running");if(o===P){if("throw"===i)throw a;return d()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=c(u,n);if(s){if(s===S)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===b)throw o=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=T;var f=r(t,e,n);if("normal"===f.type){if(o=n.done?P:_,f.arg===S)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=P,n.method="throw",n.arg=f.arg)}}}(t,n,s),u}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach((function(n){e(t,n,(function(t){return this._invoke(n,t)}))}))}function s(t,e){function n(o,i,a,u){var s=r(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&y.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return S;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,S;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,S):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,S)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:d}}function d(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},w=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",O=g.toStringTag||"@@toStringTag";try{e({},"")}catch(O){e=function(t,e,n){return t[e]=n}}t.wrap=n;var b="suspendedStart",_="suspendedYield",T="executing",P="completed",S={},N={};e(N,w,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(h([])));L&&L!==v&&y.call(L,w)&&(N=L);var D=a.prototype=o.prototype=Object.create(N);return i.prototype=a,e(D,"constructor",a),e(a,"constructor",i),i.displayName=e(a,O,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,O,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(s.prototype),e(s.prototype,E,(function(){return this})),t.AsyncIterator=s,t.async=function(e,r,o,i,a){void 0===a&&(a=Promise);var u=new s(n(e,r,o,i),a);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},u(D),e(D,O,"Generator"),e(D,w,(function(){return this})),e(D,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),u=y.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n,r=this.tryEntries.length-1;0<=r;--r)if((n=this.tryEntries[r]).tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),l(e),S},catch:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;l(e)}return o}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),S}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,n)=>{function r(){var t=(0,a.useConfig)();return i().createElement(a.ConfigurableLink,{to:t.target},t.title)}n.r(e),n.d(e,{default:()=>r,genericLinkConfigSchema:()=>u});var o=n(6983),i=n.n(o),a=n(7644),u={title:{_default:"New Link",_type:a.Type.String},target:{_default:"#",_type:a.Type.String,_description:"The URL to link to.",_validators:[a.validators.isUrl]}}},1217:(t,e,n)=>{n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){function a(t){r(s,o,i,a,u,"next",t)}function u(t){r(s,o,i,a,u,"throw",t)}var s=t.apply(e,n);a(void 0)}))}}function i(){return a.apply(this,arguments)}function a(){return(a=o(Pt().mark((function t(e,n,r){var o,i;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,St.getSessionLocation)();case 2:return o=t.sent,i=null==o?void 0:o.uuid,t.next=6,(0,St.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!i){t.next=9;break}return t.next=9,(0,St.setSessionLocation)(i,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t,e){return(0,St.queueSynchronizationItemFor)(t,Nt.O,e,{displayName:"User Language Change"})}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){function i(t){c(u,r,o,i,a,"next",t)}function a(t){c(u,r,o,i,a,"throw",t)}var u=t.apply(e,n);i(void 0)}))}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||h(t,e)||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 p(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function d(){return m.apply(this,arguments)}function m(){return m=f(Pt().mark((function t(e,n){var r,o,a,u;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n.index){t.next=10;break}return t.next=4,(0,St.getLoggedInUser)();case 4:return o=t.sent,a=n.items.map((function(t){var e=l(t,2);return e[0],e[1]})),u=(r=Object).assign.apply(r,[{},o.userProperties].concat(p(a))),t.next=9,i(o.uuid,u,n.abort);case 9:(0,St.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n){var r=b(t,e,n);xt.length?xt.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function w(t){if("function"!=typeof t)throw Error(O(28,!1));xt.push(t)}function E(t){if("function"!=typeof t)throw Error(O(29,!1));var e=!1;return xt=xt.filter((function(n){var r=n===t;return e=e||r,!r})),e}function O(t,e){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function b(t,e,n){var r,o="".concat(N(e)," '").concat(P(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(O(30,!1,e.status,P(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=P(e),e.status=n,r}function _(t){return"MOUNTED"===t.status}function T(t){try{return t.activeWhen(window.location)}catch(e){return g(e,t,"SKIP_BECAUSE_BROKEN"),!1}}function P(t){return t.name}function S(t){return!!t.unmountThisParcel}function N(t){return S(t)?"parcel":"application"}function A(){for(var t=arguments.length-1;0<t;t--)for(var e in arguments[t])"__proto__"!=e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function L(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!L(e,(function(t){return"function"!=typeof t}))));var e}function U(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(t),o=P(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return x(n)?n:Promise.reject(O(15,!1,r,o,e,a))}))}),Promise.resolve())}}function x(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t,e){function n(){return t.status="NOT_MOUNTED",t}return Promise.resolve().then((function(){return"NOT_BOOTSTRAPPED"===t.status?(t.status="BOOTSTRAPPING",t.bootstrap?F(t,"bootstrap").then(n).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t})):Promise.resolve().then(n)):t}))}function R(t,e){return Promise.resolve().then((function(){function n(){return F(t,"unmount").then((function(){t.status="NOT_MOUNTED"})).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))}if("MOUNTED"!==t.status)return t;t.status="UNMOUNTING";var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))})).then((function(){return t}))}))}function k(t,e){return Promise.resolve().then((function(){return"NOT_MOUNTED"===t.status?(Rt||(window.dispatchEvent(new Ut("single-spa:before-first-mount")),Rt=!0),F(t,"mount").then((function(){return t.status="MOUNTED",kt||(window.dispatchEvent(new Ut("single-spa:first-mount")),kt=!0),t})).catch((function(n){function r(){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t}return t.status="MOUNTED",R(t,!0).then(r,r)}))):t}))}function C(){return M.apply(Mt,arguments)}function M(t,e){var n=this;if(!t||"object"!==v(t)&&"function"!=typeof t)throw Error(O(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(O(3,!1,v(t.name)));if("object"!==v(e))throw Error(O(4,!1,name,v(e)));if(!e.domElement)throw Error(O(5,!1,name));var r,o=Ct++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:e,parentName:P(n),unmountThisParcel:function(){return p.then((function(){if("MOUNTED"!==u.status)throw Error(O(6,!1,name,u.status));return R(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return c(t),t})).catch((function(t){throw u.status="SKIP_BECAUSE_BROKEN",f(t),t}))}};n.parcels[o]=u;var s=a();if(!s||"function"!=typeof s.then)throw Error(O(7,!1));var c,f,l=(s=s.then((function(t){if(!t)throw Error(O(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(O(9,!1,e));if(!D(t.mount))throw Error(O(10,!1,e));if(!D(t.unmount))throw Error(O(11,!1,e));if(t.update&&!D(t.update))throw Error(O(12,!1,e));var n=U(t,"bootstrap"),i=U(t,"mount"),a=U(t,"unmount");u.status="NOT_BOOTSTRAPPED",u.name=e,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=z(t.timeouts),t.update&&(u.update=U(t,"update"),r.update=function(t){return u.customProps=t,B(function(t){return Promise.resolve().then((function(){if("MOUNTED"!==t.status)throw Error(O(32,!1,P(t)));return t.status="UPDATING",F(t,"update").then((function(){return t.status="MOUNTED",t})).catch((function(e){throw b(e,t,"SKIP_BECAUSE_BROKEN")}))}))}(u))})}))).then((function(){return j(u,!0)})),p=l.then((function(){return k(u,!0)})),h=new Promise((function(t,e){c=t,f=e}));return r={mount:function(){return B(Promise.resolve().then((function(){if("NOT_MOUNTED"!==u.status)throw Error(O(13,!1,name,u.status));return n.parcels[o]=u,k(u)})))},unmount:function(){return B(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:B(s),bootstrapPromise:B(l),mountPromise:B(p),unmountPromise:B(h)}}function B(t){return t.then((function(){return null}))}function I(t){var e=P(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==v(n)||null===n||Array.isArray(n))&&(n={},console.warn(O(40,!1),e,n));var r=A({},n,{name:e,mountParcel:M.bind(t),singleSpa:Lt});return S(t)&&(r.unmountSelf=t.unmountThisParcel),r}function K(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(16,!1));Bt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function G(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(17,!1));Bt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function W(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(18,!1));Bt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function $(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(19,!1));Bt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function F(t,e){var n=t.timeouts[e],r=n.warningMillis,o=N(t);return new Promise((function(i,a){function u(t){if(!s)if(!0===t)c=!0,n.dieOnTimeout?a(Error(f)):console.error(f);else if(!c){var e=t;console.warn(f),e*r+r<n.millis&&setTimeout((function(){return u(e+1)}),r)}}var s=!1,c=!1;t[e](I(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return u(1)}),r),setTimeout((function(){return u(!0)}),n.millis);var f=O(31,!1,e,o,P(t),n.millis)}))}function z(t){var e={};for(var n in Bt)e[n]=A({},Bt[n],t&&t[n]||{});return e}function q(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:"NOT_LOADED"!==t.status&&"LOAD_ERROR"!==t.status?t:(t.status="LOADING_SOURCE_CODE",t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(I(t));if(!x(r))throw n=!0,Error(O(33,!1,P(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==v(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(r=35),D(e.mount)||(r=36),D(e.unmount)||(r=37);var o=N(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(O(r,!1,o,P(t),i),e),g(void 0,t,"SKIP_BECAUSE_BROKEN"),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status="NOT_BOOTSTRAPPED",t.bootstrap=U(e,"bootstrap"),t.mount=U(e,"mount"),t.unmount=U(e,"unmount"),t.unload=U(e,"unload"),t.timeouts=z(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r="SKIP_BECAUSE_BROKEN":(r="LOAD_ERROR",t.loadErrorTime=(new Date).getTime()),g(e,t,r),t})));var e,n}))}function J(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(O(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=X(window.location.href),r=X(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function V(t){var e=this;if(t){var n=t[0].type;0<=Gt.indexOf(n)&&Kt[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function H(){yt([],arguments)}function Q(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return bt&&n===o||(Et()?window.dispatchEvent(Y(window.history.state,e)):yt([])),r}}function Y(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}function X(t){var e=document.createElement("a");return e.href=t,e}function Z(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Ft){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return tt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return tt.call(this,n,window.removeEventListener,t,e,arguments)},Ft=!0}}function tt(t,e,n,r,o){return"string"==typeof n?(n.split(/\s+/).forEach((function(t){0<=Gt.indexOf(t)&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o)):t.apply(this,o)}function et(t){return Promise.resolve().then((function(){var e=zt[P(t)];if(!e)return t;if("NOT_LOADED"===t.status)return nt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if("NOT_MOUNTED"!==t.status&&"LOAD_ERROR"!==t.status)return t;var n="LOAD_ERROR"===t.status?Promise.resolve():F(t,"unload");return t.status="UNLOADING",n.then((function(){return nt(t,e),t})).catch((function(n){return function(t,e,n){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,g(n,t,"SKIP_BECAUSE_BROKEN"),e.reject(n)}(t,e,n),t}))}))}function nt(t,e){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status="NOT_LOADED",e.resolve()}function rt(t,e,n,r){zt[P(t)]={app:t,resolve:n,reject:r},Object.defineProperty(zt[P(t)],"promise",{get:e})}function ot(t){return zt[t]}function it(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return qt.forEach((function(i){var a="SKIP_BECAUSE_BROKEN"!==i.status&&T(i);switch(i.status){case"LOAD_ERROR":a&&200<=o-i.loadErrorTime&&n.push(i);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":a&&n.push(i);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!a&&ot(P(i))?t.push(i):a&&r.push(i);break;case"MOUNTED":a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function at(){return qt.filter(_).map(P)}function ut(){return qt.map(P)}function st(t){var e=L(qt,(function(e){return P(e)===t}));return e?e.status:null}function ct(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===v(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(O(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return 0<=e.indexOf(n)?t:t.concat(n)}),[]);if(0!==n.length)throw Error(O(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(O(20,!1));if("object"!==v(t.app)&&"function"!=typeof t.app)throw Error(O(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(O(24,!1));if(!dt(t.customProps))throw Error(O(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(O(20,!1));if(!e)throw Error(O(23,!1));if("function"!=typeof n)throw Error(O(24,!1));if(!dt(r))throw Error(O(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"==typeof(o=i.loadApp)?o:function(){return Promise.resolve(o)},i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==ut().indexOf(o.name))throw Error(O(21,!1,o.name));qt.push(A({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),It&&(Z(),yt())}function ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return qt.filter((function(e){return e.activeWhen(t)})).map(P)}function lt(t){if(0===qt.filter((function(e){return P(e)===t})).length)throw Error(O(25,!1,t));return pt(t).then((function(){var e=qt.map(P).indexOf(t);qt.splice(e,1)}))}function pt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(O(26,!1));var n=L(qt,(function(e){return P(e)===t}));if(!n)throw Error(O(27,!1,t));var r,o=ot(P(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){rt(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ht(n,o.resolve,o.reject)):r=new Promise((function(t,e){rt(n,(function(){return r}),t,e),ht(n,t,e)})),r}function ht(t,e,n){R(t).then(et).then((function(){e(),setTimeout((function(){yt()}))})).catch(n)}function dt(t){return!t||"function"==typeof t||"object"===v(t)&&null!==t&&!Array.isArray(t)}function mt(t,e){var n=function(t,e){function n(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var u=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(u,"$"):"".concat(i,"(/").concat(u,")?(#.*)?$")}o=!o,r=n}var r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a,u=0;u<t.length;u++)a=t[u],(!o&&":"===a||o&&"/"===a)&&n(u);return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}function vt(){return yt()}function yt(){function t(){p=!0}function e(){var t=at();o.forEach((function(e){return e.resolve(t)}));try{var e=0===a.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new Ut(e,r())),window.dispatchEvent(new Ut("single-spa:routing-event",r()))}catch(t){setTimeout((function(){throw t}))}if(Jt=!1,0<Vt.length){var n=Vt;Vt=[],yt(n)}return t}function n(){o.forEach((function(t){V(t.eventArguments)})),V(i)}function r(){function t(t,e){var n=P(t);e=e||st(n),o[n]=e,(u[e]=u[e]||[]).push(n)}var e,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=1<arguments.length?arguments[1]:void 0,o={},u=(y(e={},"MOUNTED",[]),y(e,"NOT_MOUNTED",[]),y(e,"NOT_LOADED",[]),y(e,"SKIP_BECAUSE_BROKEN",[]),e);n?(f.concat(l).forEach((function(e){t(e,"MOUNTED")})),s.forEach((function(e){t(e,"NOT_LOADED")})),c.forEach((function(e){t(e,"NOT_MOUNTED")}))):a.forEach((function(e){t(e)}));var m={detail:{newAppStatuses:o,appsByNewStatus:u,totalAppChanges:a.length,originalEvent:null==i?void 0:i[0],oldUrl:h,newUrl:d,navigationIsCanceled:p}};return r&&A(m.detail,r),m}var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length?arguments[1]:void 0;if(Jt)return new Promise((function(t,e){Vt.push({resolve:t,reject:e,eventArguments:i})}));var a,u=it(),s=u.appsToUnload,c=u.appsToUnmount,f=u.appsToLoad,l=u.appsToMount,p=!1,h=Ht,d=Ht=window.location.href;return Et()?(Jt=!0,a=s.concat(f,c,l),Promise.resolve().then((function(){if(window.dispatchEvent(new Ut(0===a.length?"single-spa:before-no-app-change":"single-spa:before-app-change",r(!0))),window.dispatchEvent(new Ut("single-spa:before-routing-event",r(!0,{cancelNavigation:t}))),p)return window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0))),e(),void J(h);var i=s.map(et),u=c.map(R).map((function(t){return t.then(et)})).concat(i),d=Promise.all(u);d.then((function(){window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0)))}));var m=f.map((function(t){return q(t).then((function(t){return gt(t,d)}))})),v=l.filter((function(t){return 0>f.indexOf(t)})).map((function(t){return gt(t,d)}));return d.catch((function(t){throw n(),t})).then((function(){return n(),Promise.all(m.concat(v)).catch((function(t){throw o.forEach((function(e){return e.reject(t)})),t})).then(e)}))}))):(a=f,Promise.resolve().then((function(){var t=f.map(q);return Promise.all(t).then(n).then((function(){return[]})).catch((function(t){throw n(),t}))})))}function gt(t,e){return T(t)?j(t).then((function(t){return e.then((function(){return T(t)?k(t):t}))})):e.then((function(){return t}))}function wt(t){var e;Qt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,bt=e),It&&yt()}function Et(){return Qt}function Ot(){return(0,_t.defineConfigSchema)(Nt.e,At),(0,_t.defineExtensionConfigSchema)("link",Yt.genericLinkConfigSchema),(0,_t.setupOfflineSync)(Nt.O,[],d),{pages:[{load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))}),te),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(J(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))}),te),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))}),te),online:{postUserProperties:i},offline:{postUserProperties:u}},{name:"link",load:(0,_t.getAsyncLifecycle)((function(){return Promise.resolve().then(n.bind(n,6639))}),{featureName:"Link",moduleName:Nt.e})}]}}n.r(e),n.d(e,{backendDependencies:()=>Zt,importTranslation:()=>Xt,setupOpenMRS:()=>Ot,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 bt,_t=n(7644),Tt=n(1602),Pt=n.n(Tt),St=n(8478),Nt=n(1217),At={logo:{src:{_type:_t.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:_t.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:_t.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:_t.Type.Array,_elements:{title:{_type:_t.Type.String,_description:"Title of the link"},redirect:{_type:_t.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[_t.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},Lt=Object.freeze({__proto__:null,get start(){return wt},get ensureJQuerySupport(){return Z},get setBootstrapMaxTime(){return K},get setMountMaxTime(){return G},get setUnmountMaxTime(){return W},get setUnloadMaxTime(){return $},get registerApplication(){return ct},get unregisterApplication(){return lt},get getMountedApps(){return at},get getAppStatus(){return st},get unloadApplication(){return pt},get checkActivityFunctions(){return ft},get getAppNames(){return ut},get pathToActiveWhen(){return mt},get navigateToUrl(){return J},get triggerAppChange(){return vt},get addErrorHandler(){return w},get removeErrorHandler(){return E},get mountRootParcel(){return C},get NOT_LOADED(){return jt},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"}}),Dt=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,Ut=function(){try{var t=new Dt("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Dt:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},xt=[],jt="NOT_LOADED",Rt=!1,kt=!1,Ct=0,Mt={parcels:{}},Bt={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}},It="undefined"!=typeof window,Kt={hashchange:[],popstate:[]},Gt=["hashchange","popstate"];if(It){window.addEventListener("hashchange",H),window.addEventListener("popstate",H);var Wt=window.addEventListener,$t=window.removeEventListener;window.addEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)&&!L(Kt[t],(function(t){return t===e}))?void Kt[t].push(e):Wt.apply(this,arguments)},window.removeEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)?void(Kt[t]=Kt[t].filter((function(t){return t!==e}))):$t.apply(this,arguments)},window.history.pushState=Q(window.history.pushState,"pushState"),window.history.replaceState=Q(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(O(41,!1)):window.singleSpaNavigate=J}var Ft=!1,zt={},qt=[],Jt=!1,Vt=[],Ht=It&&window.location.href,Qt=!1;It&&setTimeout((function(){Qt||console.warn(O(1,!1))}),5e3),It&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(qt)},reroute:yt,NOT_LOADED:jt,toLoadPromise:q,toBootstrapPromise:j,unregisterApplication:lt});var Yt=n(6639),Xt=n(3979),Zt={"webservices.rest":"^2.2.0"},te={featureName:"primary navigation",moduleName:Nt.e}},3979:(t,e,n)=>{function r(t){if(!n.o(o,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],r=e[0];return n.e(e[1]).then((()=>n(r)))}var o={"./en.json":[3574,574]};r.keys=()=>Object.keys(o),r.id=3979,t.exports=r}}]),n=Promise.all([r.e(983),r.e(789)]).then((()=>()=>r(789)))),n)},i=(t,e)=>(r.R=e,e=r.o(o,t)?o[t]():Promise.resolve().then((()=>{throw new Error('Module "'+t+'" does not exist in container.')})),r.R=void 0,e),a=(t,e)=>{if(r.S){var n=r.S.default;if(n&&n!==t)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S.default=t,r.I("default",e)}};r.d(e,{get:()=>i,init:()=>a})}},O={};return t.m=E,t.c=O,t.y=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,r)=>(t.f[r](e,n),n)),[])),t.u=t=>t+".js",t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},o="@openmrs/esm-primary-navigation-app:",t.l=(e,n,i)=>{if(r[e])r[e].push(n);else{var a,u;if(void 0!==i)for(var s,c=document.getElementsByTagName("script"),f=0;f<c.length;f++)if((s=c[f]).getAttribute("src")==e||s.getAttribute("data-webpack")==o+i){a=s;break}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",o+i),a.src=e),r[e]=[n];var l=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(n))),t)return t(n)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),u&&document.head.appendChild(a)}},t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{t.S={};var e={},n={};t.I=(r,o)=>{o||(o=[]);var i=n[r];if(i||(i=n[r]={}),!(0<=o.indexOf(i))){if(o.push(i),e[r])return e[r];t.o(t.S,r)||(t.S[r]={});var a=t.S[r],u=(t,e,n,r)=>{var o=a[t]=a[t]||{},i=o[e];i&&(i.loaded||(!r==!i.eager?!("@openmrs/esm-primary-navigation-app">i.from):!r))||(o[e]={get:n,from:"@openmrs/esm-primary-navigation-app",eager:!!r})},s=[];return"default"===r&&(u("@openmrs/esm-framework/src/internal","3.4.1-pre.174",(()=>Promise.all([t.e(983),t.e(889)]).then((()=>()=>t(4889))))),u("carbon-components-react","7.31.0",(()=>Promise.all([t.e(322),t.e(983),t.e(69)]).then((()=>()=>t(7322))))),u("carbon-components","10.31.0",(()=>Promise.all([t.e(25),t.e(1)]).then((()=>()=>t(25))))),u("carbon-icons","7.0.7",(()=>t.e(860).then((()=>()=>t(4860))))),u("react-dom","16.14.0",(()=>Promise.all([t.e(788),t.e(983)]).then((()=>()=>t(2788))))),u("react-i18next","11.16.2",(()=>Promise.all([t.e(743),t.e(983)]).then((()=>()=>t(5743))))),u("react-router-dom","5.3.0",(()=>Promise.all([t.e(393),t.e(983),t.e(216)]).then((()=>()=>t(7393))))),u("react","16.14.0",(()=>t.e(735).then((()=>()=>t(2735)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),t.p="",i=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},a=(t,e)=>{t=i(t),e=i(e);for(var n=0;;){if(n>=t.length)return n<e.length&&"u"!=(typeof e[n])[0];var r=t[n],o=(typeof r)[0];if(n>=e.length)return"u"==o;var a=e[n],u=(typeof a)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&r!=a)return r<a;n++}},u=t=>{function e(){return a.pop().replace(/^\((.+)\)$/,"$1")}var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":0<n?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(s=t[i]))[0]?"-":(0<o?".":"")+(o=2,s);return r}var a=[];for(i=1;i<t.length;i++){var s=t[i];a.push(0===s?"not("+e()+")":1===s?"("+e()+" || "+e()+")":2===s?a.pop()+" "+a.pop():u(s))}return e()},s=(t,e)=>{if(0 in t){e=i(e);var n=t[0],r=0>n;r&&(n=-n-1);for(var o=0,a=1,u=!0;;a++,o++){var c,f,l=a<t.length?(typeof t[a])[0]:"";if(o>=e.length||"o"==(f=(typeof(c=e[o]))[0]))return!u||("u"==l?a>n&&!r:""==l!=r);if("u"==f){if(!u||"u"!=l)return!1}else if(u)if(l==f)if(a<=n){if(c!=t[a])return!1}else{if(r?c>t[a]:c<t[a])return!1;c!=t[a]&&(u=!1)}else if("s"!=l&&"n"!=l){if(r||a<=n)return!1;u=!1,a--}else{if(a<=n||f<l!=r)return!1;u=!1}else"s"!=l&&"n"!=l&&(u=!1,a--)}}var p=[],h=p.pop.bind(p);for(o=1;o<t.length;o++){var d=t[o];p.push(1==d?h()|h():2==d?h()&h():d?s(d,e):!h())}return!!h()},c=(t,e)=>{var n=t[e];return Object.keys(n).reduce(((t,e)=>!t||!n[t].loaded&&a(t,e)?e:t),0)},f=(t,e,n,r)=>"Unsatisfied version "+n+" from "+(n&&t[e][n].from)+" of shared singleton module "+e+" (required "+u(r)+")",l=(t,e,n)=>{var r=c(t,n);return h(t[n][r])},p=(t,e,n,r)=>{var o=c(t,n);return s(r,o)||"undefined"!=typeof console&&console.warn&&console.warn(f(t,n,o,r)),h(t[n][o])},h=t=>(t.loaded=1,t.get()),m=(d=e=>function(n,r,o,i){var a=t.I(n);return a&&a.then?a.then(e.bind(e,n,t.S[n],r,o,i)):e(n,t.S[n],r,o,i)})(((e,n,r,o)=>n&&t.o(n,r)?l(n,0,r):o())),v=d(((e,n,r,o,i)=>n&&t.o(n,r)?p(n,0,r,o):i())),y={},g={6983:()=>v("default","react",[1,16],(()=>t.e(735).then((()=>()=>t(2735))))),7644:()=>v("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>t.e(889).then((()=>()=>t(4889))))),8478:()=>m("default","@openmrs/esm-framework/src/internal",(()=>t.e(889).then((()=>()=>t(4889))))),5412:()=>v("default","react-dom",[1,16],(()=>t.e(788).then((()=>()=>t(2788))))),6240:()=>v("default","carbon-icons",[1,7],(()=>t.e(860).then((()=>()=>t(4860))))),7569:()=>v("default","carbon-components",[1,10],(()=>t.e(25).then((()=>()=>t(25))))),9784:()=>v("default","carbon-components-react",[1,7],(()=>Promise.all([t.e(322),t.e(69)]).then((()=>()=>t(7322))))),2268:()=>v("default","react-router-dom",[1,5],(()=>t.e(393).then((()=>()=>t(7393))))),2680:()=>v("default","react-i18next",[1,11],(()=>t.e(743).then((()=>()=>t(5743)))))},w={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},t.f.consumes=(e,n)=>{t.o(w,e)&&w[e].forEach((e=>{if(t.o(y,e))return n.push(y[e]);var r=n=>{y[e]=0,t.m[e]=r=>{delete t.c[e],r.exports=n()}},o=n=>{delete y[e],t.m[e]=()=>{throw delete t.c[e],n}};try{var i=g[e]();i.then?n.push(y[e]=i.then(r).catch(o)):r(i)}catch(e){o(e)}}))},(()=>{var e={115:0};t.f.j=(n,r)=>{var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(69|784|983)$/.test(n))e[n]=0;else{var i=new Promise(((t,r)=>o=e[n]=[t,r]));r.push(o[2]=i);var a=t.p+t.u(n),u=new Error;t.l(a,(r=>{if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+n,n)}};var n=(n,r)=>{var o,i,[a,u,s]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);s&&s(t)}for(n&&n(r);c<a.length;c++)i=a[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})(),t(8331),t(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:()=>Promise.all([t.e(983),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.4.1-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:()=>Promise.all([t.e(983),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.4.1-pre.174",(()=>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={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),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)})())}}}));
|