@openmrs/esm-styleguide 3.2.1-pre.950 → 3.2.1-pre.958
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["@openmrs/esm-extensions","react","react-dom","rxjs"],(function(e,t){var n={},r={},o={},i={};return{setters:[function(){},function(){},function(){},function(e){i.Subject=e.Subject}],execute:function(){e((()=>{var e={714:(e,t,n)=>{const r=n(901).R;t.s=function(e){if(e||(e=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,e)}},901:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var l=r.slice(0,i+1);return n.protocol+"//"+n.host+l};Number.isInteger},179:()=>{System.register(["@openmrs/esm-state","single-spa"],(function(e,t){var n={},r={};return{setters:[function(e){n.createGlobalStore=e.createGlobalStore,n.getGlobalStore=e.getGlobalStore},function(e){r.navigateToUrl=e.navigateToUrl}],execute:function(){e((()=>{var e={712:(e,t,n)=>{var r=n(823),o=n(773)((function(e,t){return r(e.length,(function(){return e.apply(t,arguments)}))}));e.exports=o},122:(e,t,n)=>{var r=n(918),o=n(764)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)}));e.exports=o},823:e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,l){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,l,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,l,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,l,a,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,l,a,c,s,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},918:(e,t,n)=>{var r=n(259),o=n(704);e.exports=function e(t,n,i,l){var a=function(r){for(var o=n.length,a=0;a<o;){if(t===n[a])return i[a];a+=1}for(var c in n[a+1]=t,i[a+1]=r,t)r[c]=l?e(t[c],n,i,!0):t[c];return r};switch(o(t)){case"Object":return a({});case"Array":return a([]);case"Date":return new Date(t.valueOf());case"RegExp":return r(t);default:return t}}},259:e=>{e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},764:(e,t,n)=>{var r=n(230);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},773:(e,t,n)=>{var r=n(764),o=n(230);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r((function(t){return e(n,t)}));default:return o(n)&&o(i)?t:o(n)?r((function(t){return e(t,i)})):o(i)?r((function(t){return e(n,t)})):e(n,i)}}}},138:(e,t,n)=>{var r=n(764),o=n(773),i=n(230);e.exports=function(e){return function t(n,l,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o((function(t,r){return e(n,t,r)}));case 2:return i(n)&&i(l)?t:i(n)?o((function(t,n){return e(t,l,n)})):i(l)?o((function(t,r){return e(n,t,r)})):r((function(t){return e(n,l,t)}));default:return i(n)&&i(l)&&i(a)?t:i(n)&&i(l)?o((function(t,n){return e(t,n,a)})):i(n)&&i(a)?o((function(t,n){return e(t,l,n)})):i(l)&&i(a)?o((function(t,r){return e(n,t,r)})):i(n)?r((function(t){return e(t,l,a)})):i(l)?r((function(t){return e(n,t,a)})):i(a)?r((function(t){return e(n,l,t)})):e(n,l,a)}}}},673:e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},726:e=>{e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},534:(e,t,n)=>{var r=n(764),o=n(726),i=n(468),l=r((function(e){return!!o(e)||!!e&&"object"==typeof e&&!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));e.exports=l},78:e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},230:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},468:e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},623:(e,t,n)=>{var r=n(534),o=n(782),i=n(712);function l(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function a(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=o(e)),r(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return a(e,t,n,"fantasy-land/reduce");if(null!=n[c])return l(e,t,n[c]());if("function"==typeof n.next)return l(e,t,n);if("function"==typeof n.reduce)return a(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},782:e=>{var t=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new t(e)}},317:(e,t,n)=>{var r=n(773),o=n(937),i=r((function(e,t){return o((function(e,t,n){return n}),e,t)}));e.exports=i},937:(e,t,n)=>{var r=n(138),o=n(78),i=n(145),l=r((function e(t,n,r){return i((function(n,r,i){return o(r)&&o(i)?e(t,r,i):t(n,r,i)}),n,r)}));e.exports=l},145:(e,t,n)=>{var r=n(138),o=n(673),i=r((function(e,t,n){var r,i={};for(r in t)o(r,t)&&(i[r]=o(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)o(r,n)&&!o(r,i)&&(i[r]=n[r]);return i}));e.exports=i},61:(e,t,n)=>{var r=n(138)(n(623));e.exports=r},704:(e,t,n)=>{var r=n(764)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));e.exports=r},685:e=>{"use strict";e.exports=n},645:e=>{"use strict";e.exports=r}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{Type:()=>c,configExtensionStore:()=>x,configInternalStore:()=>m,defineConfigSchema:()=>O,getConfig:()=>$,getConfigStore:()=>H,getExtensionConfigStore:()=>S,getExtensionSlotsConfigStore:()=>L,implementerToolsConfigStore:()=>M,inRange:()=>ne,interpolateString:()=>ee,interpolateUrl:()=>Y,isUrl:()=>oe,isUrlWithTemplateParameters:()=>re,navigate:()=>te,processConfig:()=>B,provide:()=>j,temporaryConfigStore:()=>b,validator:()=>s,validators:()=>ie});var e=o(317),t=o.n(e),n=o(61),r=o.n(n),l=o(122),a=o.n(l);let c;function s(e,t){return n=>{if(!e(n))return t}}!function(e){e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID"}(c||(c={}));const u=s((e=>Array.isArray(e)),"must be an array"),d=s((e=>"boolean"==typeof e),"must be a boolean"),p=s((e=>"number"==typeof e),"must be a number"),f=s((e=>"string"==typeof e),"must be a string"),v=s((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e),"must be an object (not an array or null)"),g=s((e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)),"must be a valid UUID or a 36-character hexadecimal string");var C=o(685);const h={providedConfigs:[],schemas:{},devDefaultsAreOn:y()},m=(0,C.createGlobalStore)("config-internal",h);let w=y();function y(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}}m.subscribe((e=>{var t;e.devDefaultsAreOn!=w&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),w=e.devDefaultsAreOn)}));const b=(0,C.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});b.subscribe((e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));const x=(0,C.createGlobalStore)("config-extensions",{mountedExtensions:[]});function H(e){return(0,C.getGlobalStore)(`config-module-${e}`,{config:null,loaded:!1})}function L(e){return(0,C.getGlobalStore)(`config-extension-slots-${e}`,{extensionSlotConfigs:{},loaded:!1})}function S(e,t,n){return(0,C.getGlobalStore)(`config-extension-${e}-${t}-${n}`,{config:null,loaded:!1})}const M=(0,C.createGlobalStore)("config-implementer-tools",{config:{}});function _(e,t){for(let n of Object.keys(e.schemas)){const r=I(n,e,t);H(n).setState({loaded:!0,config:r})}}function V(e,t){const n=function(e,t){const n=N(T(e,t)),r=Object.keys(n).reduce(((e,t)=>(n[t]?.extensions&&(e[t]=n[t]?.extensions),e)),{});return function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))E(r,t,e)}(r),r}(e,t);for(let[e,t]of Object.entries(n))L(e).setState({loaded:!0,extensionSlotConfigs:t})}function Z(e,t){const n=function(e,t){let n=P(a()(e.schemas));const r=[...e.providedConfigs.map((e=>[e.config,e.source])),[t.config,"temporary config"]];for(let[e,t]of r)n=N([n,z(e,t)]);return n}(e,t);M.setState({config:n})}function k(e,t,n){for(let r of t.mountedExtensions){const t=S(r.slotModuleName,r.slotName,r.extensionId),o=A(r.slotModuleName,r.extensionModuleName,r.slotName,r.extensionId,e,n);t.setState({loaded:!0,config:o})}}function O(e,t){D(e,t);const n=m.getState();m.setState({schemas:{...n.schemas,[e]:t}})}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided";const n=m.getState();m.setState({providedConfigs:[...n.providedConfigs,{source:t,config:e}]})}function $(e){return new Promise((t=>{const n=H(e);function r(e){e.loaded&&e.config&&(t(e.config),o&&o())}r(n.getState());const o=n.subscribe(r)}))}function B(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];R(e,t,n);const o=q(e,t,r);return o}function A(e,t,n,r,o,i){const l=T(o,i),a=U(e,l)?.extensions?.[n]?.configure?.[r]??{},c=N([U(t,l),a]),s=o.schemas[t];R(s,c,t);const u=q(s,c,o.devDefaultsAreOn);return delete u.extensions,u}function P(e){return e.hasOwnProperty("_default")?{...e,_value:e._default,_source:"default"}:K(e)?Object.keys(e).reduce(((t,n)=>(t[n]=P(e[n]),t)),{}):{}}function z(e,t){return K(e)?Object.keys(e).reduce(((n,r)=>(n[r]=z(e[r],t),n)),{}):{_value:e,_source:t}}function E(e,t,n){const r=`Extension slot config '${t}.extensions.${n}`,o=Object.keys(e).filter((e=>!["add","remove","order","configure"].includes(e)));o.length&&console.error(r+`' contains invalid keys '${o.join("', '")}'`),e.add&&(Array.isArray(e.add)&&e.add.every((e=>"string"==typeof e))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((e=>"string"==typeof e))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((e=>"string"==typeof e))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(K(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function T(e,t){return[...e.providedConfigs.map((e=>e.config)),t.config]}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(const o of Object.keys(t).filter((e=>!e.startsWith("_")))){const i=n+(n&&".")+o,l=t[o];if(!K(l)){console.error(`${e} has bad config schema definition for key '${i}'. ${r}`);continue}l.hasOwnProperty("_default")||D(e,l,i);const a=l._elements;if(X(a)&&D(e,a,i+"._elements"),l._validators)for(let t of l._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${i}' ${r}.\n\nIf you're the maintainer: validators must be functions that return either undefined or an error string. Received ${t}.`);const s=l._type;s&&!Object.values(c).includes(s)&&console.error(`${e} has invalid type for key '${i}' ${r}.\n\nIf you're the maintainer: the allowed types are ${Object.values(c).join(", ")}. Received '${s}'`),Object.keys(l).every((e=>["_description","_validators","_elements","_type"].includes(e)))&&!n.includes("._elements")&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: all config elements must have a default. Received ${JSON.stringify(l)}`),a&&s&&![c.Array,c.Object].includes(s)&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. Received ${JSON.stringify(s)}`)}}function I(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);const r=t.schemas[e],o=U(e,T(t,n));R(r,o,e);const i=q(r,o,t.devDefaultsAreOn);return delete i.extensions,i}function U(e,t){return N(t.map((t=>{let{[e]:n}=t;return n})).filter((e=>!!e)))}function N(e){return r()(t())({},e)}_(m.getState(),b.getState()),m.subscribe((e=>_(e,b.getState()))),b.subscribe((e=>_(m.getState(),e))),Z(m.getState(),b.getState()),m.subscribe((e=>Z(e,b.getState()))),b.subscribe((e=>Z(m.getState(),e))),V(m.getState(),b.getState()),m.subscribe((e=>V(e,b.getState()))),b.subscribe((e=>V(m.getState(),e))),k(m.getState(),x.getState(),b.getState()),m.subscribe((e=>k(e,x.getState(),b.getState()))),x.subscribe((e=>k(m.getState(),e,b.getState()))),b.subscribe((e=>k(m.getState(),x.getState(),e)));const R=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,l=e[r];e.hasOwnProperty(r)?(W(i,l._type,o),F(i,l._validators,o),K(o)?l._type===c.Object?G(l,o,i):l.hasOwnProperty("_default")||R(l,o,i):l._type===c.Array&&J(l,o,i)):"extensions"!==r&&console.error(`Unknown config key '${i}' provided. Ignoring.`)}};function G(e,t,n){if(e._elements)for(const r of Object.keys(t)){const o=t[r];R(e._elements,o,`${n}.${r}`)}}function J(e,t,n){if(X(e._elements))for(let r=0;r<t.length;r++)R(e._elements,t[r],`${n}[${r}]`);for(let r=0;r<t.length;r++)W(`${n}[${r}]`,e._elements?._type,t[r]),F(`${n}[${r}]`,e._elements?._validators,t[r])}function W(e,t,n){t&&F(e,[{Array:u,Boolean:d,ConceptUuid:g,Number:p,Object:v,String:f,UUID:g}[t]],n)}function F(e,t,n){if(t)try{for(let r of t){const t=r(n);if("string"==typeof t){const r="object"==typeof n?JSON.stringify(n):n;console.error(`Invalid configuration value ${r} for ${e}: ${t}`)}}}catch(t){console.error(`Skipping invalid validator at "${e}".`)}}const q=(e,t,n)=>{const r=a()(t);if(!e)return r;for(const t of Object.keys(e)){const o=r[t],i=e[t];if(i&&i.hasOwnProperty("_default")){if(!r.hasOwnProperty(t)){const e=i._devDefault||i._default;r[t]=n?e:i._default}const e=i._elements;if(o&&X(e))if(i._type===c.Array){const i=o.map((t=>q(e,t,n)));r[t]=i}else if(i._type===c.Object)for(let t of Object.keys(o))o[t]=q(e,o[t],n)}else if(K(i)){const e=r.hasOwnProperty(t)?o:{};K(e)&&(r[t]=q(i,e,n))}}return r};function X(e){return!!e&&Object.keys(e).filter((e=>!["_default","_validators"].includes(e))).length>0}function K(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}var Q=o(645);function Y(e){const t=window.getOpenmrsSpaBase().replace(/\/$/,"");return ee(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")}function ee(e,t){return Object.keys(t).reduce(((e,n)=>e.split("${"+n+"}").join(t[n])),e)}function te(e){let{to:t}=e;const n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=Y(t);r.startsWith(n)?(0,Q.navigateToUrl)(r):window.location.assign(r)}const ne=(e,t)=>s((n=>e<=n&&n<=t),`must be between ${e} and ${t}`),re=e=>{const t=e.concat(["openmrsBase","openmrsSpaBase"]);return s((e=>{if(!e||"string"!=typeof e)return!1;const n=/\${(.*?)}/g;let r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"should be a URL or path. The allowed template parameters are "+t.map((e=>"${"+e+"}")).join(", "))},oe=re([]),ie={inRange:ne,isUrl:oe,isUrlWithTemplateParameters:re}})(),i})())}}}))},748:()=>{System.register([],(function(e,t){return{execute:function(){e((()=>{var e={968:(e,t,n)=>{const r=n(577).R;t.s=function(e){if(e||(e=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,e)}},577:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var l=r.slice(0,i+1);return n.protocol+"//"+n.host+l},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var o={};return(0,r(968).s)(1),(()=>{"use strict";function e(e,t){for(var n in t)e[n]=t[n];return e}function t(t){var n=[];function r(e){for(var t=[],r=0;r<n.length;r++)n[r]===e?e=null:t.push(n[r]);n=t}function o(r,o,i){t=o?r:e(e({},t),r);for(var l=n,a=0;a<l.length;a++)l[a](t,i)}return t=t||{},{action:function(e){function n(t){o(t,!1,e)}return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var l=e.apply(this,o);if(null!=l)return l.then?l.then(n):n(l)}},setState:o,subscribe:function(e){return n.push(e),function(){r(e)}},unsubscribe:r,getState:function(){return t}}}r.r(o),r.d(o,{createAppState:()=>a,createGlobalStore:()=>i,getAppState:()=>c,getGlobalStore:()=>l,subscribeTo:()=>s,update:()=>u});const n={};function i(e,r){const o=n[e];if(o)return o.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):o.value.setState(r,!0),o.active=!0,o.value;{const o=t(r);return n[e]={value:o,active:!0},o}}function l(e,r){const o=n[e];if(!o){const o=t(r);return n[e]={value:o,active:!1},o}return o.value}function a(e){return i("app",e)}function c(){return l("app",{})}function s(e,t,n){let r=t(e.getState());return e.subscribe((e=>{const o=t(e);o!==r&&(r=o,n(o))}))}function u(e,t,n){let[r,...o]=t;return r?0===o.length?{...e,[r]:n}:{...e,[r]:u(e[r]||{},o,n)}:e}})(),o})())}}}))},991:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'},662:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'},865:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'},646:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'},509:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'},250:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'},142:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'},451:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'},61:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'},76:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'},600:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'},40:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'},567:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'},752:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>'},862:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'},601:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'},879:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'},739:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'},524:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'},787:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'},592:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'},141:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'},647:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'},885:e=>{"use strict";e.exports='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n'},575:e=>{"use strict";e.exports='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n'},93:e=>{"use strict";e.exports='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n'},839:e=>{"use strict";e.exports='<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'},45:e=>{"use strict";e.exports=n},954:e=>{"use strict";e.exports=r},493:e=>{"use strict";e.exports=o},792:e=>{"use strict";e.exports=i}},l={};function a(t){var n=l[t];if(void 0!==n)return n.exports;var r=l[t]={exports:{}};return e[t](r,r.exports,a),r.exports}a.y=t,a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})();var c={};return(0,a(714).s)(1),(()=>{"use strict";var e=a(885),t=a(93),n=a(575),r=a(839);const o=document.createElement("div"),i=()=>{document.body.appendChild(o)};function l(e,t){const n=(new DOMParser).parseFromString(t,"text/html").querySelector("svg");n&&(n.id=e,o.appendChild(n))}o.id="omrs-svgs-container",o.style.display="none","complete"===document.readyState?i():window.addEventListener("load",i);var c=a(141),s=a(739),u=a(787),d=a(865),p=a(509),f=a(646),v=a(250),g=a(76),C=a(600),h=a(40),m=a(61),w=a(592),y=a(862),b=a(567),x=a(601),H=a(142),L=a(991),S=a(662),M=a(524),_=a(451),V=a(647),Z=a(879),k=a(752),O=a(179);a(954),a(493);var j=a(792);new j.Subject,new j.Subject,a(45),(0,a(748).createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,function(){function e(e,t){document.documentElement.style.setProperty(e,t)}(0,O.defineConfigSchema)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:O.Type.String},"Brand color #2":{_default:"#004144",_type:O.Type.String},"Brand color #3":{_default:"#007d79",_type:O.Type.String}}),(0,O.getConfigStore)("@openmrs/esm-styleguide").subscribe((t=>{t.loaded&&t.config&&(e("--brand-01",t.config["Brand color #1"]),e("--brand-02",t.config["Brand color #2"]),e("--brand-03",t.config["Brand color #3"]))}))}(),l("omrs-logo-full-color",e),l("omrs-logo-full-mono",e),l("omrs-logo-full-grey",e),l("omrs-logo-partial-color",t),l("omrs-logo-partial-mono",t),l("omrs-logo-partial-grey",t),l("omrs-logo-icon-color",n),l("omrs-logo-icon-mono",n),l("omrs-logo-icon-grey",n),l("omrs-logo-white",r),l("omrs-icon-visibility",c),l("omrs-icon-menu",s),l("omrs-icon-search",u),l("omrs-icon-arrow-back",d),l("omrs-icon-arrow-forward",p),l("omrs-icon-arrow-downward",f),l("omrs-icon-arrow-upward",v),l("omrs-icon-chevron-left",g),l("omrs-icon-chevron-right",C),l("omrs-icon-chevron-up",h),l("omrs-icon-chevron-down",m),l("omrs-icon-supervised-user-circle",w),l("omrs-icon-home",y),l("omrs-icon-close",b),l("omrs-icon-important-notification",x),l("omrs-icon-calendar",H),l("omrs-icon-access-time",L),l("omrs-icon-add",S),l("omrs-icon-remove",M),l("omrs-icon-check-circle",_),l("omrs-icon-zoomoutmap",V),l("omrs-icon-location",Z),l("omrs-icon-download",k)})(),(()=>{"use strict";a.r(c)})(),c})())}}}));
|
|
1
|
+
System.register(["@openmrs/esm-extensions","react","react-dom","rxjs"],(function(e,t){var n={},r={},o={},i={};return{setters:[function(){},function(){},function(){},function(e){i.Subject=e.Subject}],execute:function(){e((()=>{var e={714:(e,t,n)=>{const r=n(901).R;t.s=function(e){if(e||(e=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,e)}},901:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var l=r.slice(0,i+1);return n.protocol+"//"+n.host+l};Number.isInteger},179:()=>{System.register(["@openmrs/esm-state","single-spa"],(function(e,t){var n={},r={};return{setters:[function(e){n.createGlobalStore=e.createGlobalStore,n.getGlobalStore=e.getGlobalStore},function(e){r.navigateToUrl=e.navigateToUrl}],execute:function(){e((()=>{var e={712:(e,t,n)=>{var r=n(823),o=n(773)((function(e,t){return r(e.length,(function(){return e.apply(t,arguments)}))}));e.exports=o},122:(e,t,n)=>{var r=n(918),o=n(764)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)}));e.exports=o},823:e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,l){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,l,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,l,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,l,a,c,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,l,a,c,s,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},918:(e,t,n)=>{var r=n(259),o=n(704);e.exports=function e(t,n,i,l){var a=function(r){for(var o=n.length,a=0;a<o;){if(t===n[a])return i[a];a+=1}for(var c in n[a+1]=t,i[a+1]=r,t)r[c]=l?e(t[c],n,i,!0):t[c];return r};switch(o(t)){case"Object":return a({});case"Array":return a([]);case"Date":return new Date(t.valueOf());case"RegExp":return r(t);default:return t}}},259:e=>{e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},764:(e,t,n)=>{var r=n(230);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},773:(e,t,n)=>{var r=n(764),o=n(230);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r((function(t){return e(n,t)}));default:return o(n)&&o(i)?t:o(n)?r((function(t){return e(t,i)})):o(i)?r((function(t){return e(n,t)})):e(n,i)}}}},138:(e,t,n)=>{var r=n(764),o=n(773),i=n(230);e.exports=function(e){return function t(n,l,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o((function(t,r){return e(n,t,r)}));case 2:return i(n)&&i(l)?t:i(n)?o((function(t,n){return e(t,l,n)})):i(l)?o((function(t,r){return e(n,t,r)})):r((function(t){return e(n,l,t)}));default:return i(n)&&i(l)&&i(a)?t:i(n)&&i(l)?o((function(t,n){return e(t,n,a)})):i(n)&&i(a)?o((function(t,n){return e(t,l,n)})):i(l)&&i(a)?o((function(t,r){return e(n,t,r)})):i(n)?r((function(t){return e(t,l,a)})):i(l)?r((function(t){return e(n,t,a)})):i(a)?r((function(t){return e(n,l,t)})):e(n,l,a)}}}},673:e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},726:e=>{e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},534:(e,t,n)=>{var r=n(764),o=n(726),i=n(468),l=r((function(e){return!!o(e)||!!e&&"object"==typeof e&&!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));e.exports=l},78:e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},230:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},468:e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},623:(e,t,n)=>{var r=n(534),o=n(782),i=n(712);function l(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function a(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=o(e)),r(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return a(e,t,n,"fantasy-land/reduce");if(null!=n[c])return l(e,t,n[c]());if("function"==typeof n.next)return l(e,t,n);if("function"==typeof n.reduce)return a(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},782:e=>{var t=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new t(e)}},317:(e,t,n)=>{var r=n(773),o=n(937),i=r((function(e,t){return o((function(e,t,n){return n}),e,t)}));e.exports=i},937:(e,t,n)=>{var r=n(138),o=n(78),i=n(145),l=r((function e(t,n,r){return i((function(n,r,i){return o(r)&&o(i)?e(t,r,i):t(n,r,i)}),n,r)}));e.exports=l},145:(e,t,n)=>{var r=n(138),o=n(673),i=r((function(e,t,n){var r,i={};for(r in t)o(r,t)&&(i[r]=o(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)o(r,n)&&!o(r,i)&&(i[r]=n[r]);return i}));e.exports=i},61:(e,t,n)=>{var r=n(138)(n(623));e.exports=r},704:(e,t,n)=>{var r=n(764)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));e.exports=r},685:e=>{"use strict";e.exports=n},645:e=>{"use strict";e.exports=r}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{Type:()=>c,configExtensionStore:()=>x,configInternalStore:()=>m,defineConfigSchema:()=>O,getConfig:()=>$,getConfigStore:()=>H,getExtensionConfigStore:()=>S,getExtensionSlotsConfigStore:()=>L,implementerToolsConfigStore:()=>M,inRange:()=>ne,interpolateString:()=>ee,interpolateUrl:()=>Y,isUrl:()=>oe,isUrlWithTemplateParameters:()=>re,navigate:()=>te,processConfig:()=>B,provide:()=>j,temporaryConfigStore:()=>b,validator:()=>s,validators:()=>ie});var e=o(317),t=o.n(e),n=o(61),r=o.n(n),l=o(122),a=o.n(l);let c;function s(e,t){return n=>{if(!e(n))return t}}!function(e){e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid"}(c||(c={}));const u=s((e=>Array.isArray(e)),"must be an array"),d=s((e=>"boolean"==typeof e),"must be a boolean"),p=s((e=>"number"==typeof e),"must be a number"),f=s((e=>"string"==typeof e),"must be a string"),v=s((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e),"must be an object (not an array or null)"),g=s((e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)),"must be a valid UUID or a 36-character hexadecimal string");var C=o(685);const h={providedConfigs:[],schemas:{},devDefaultsAreOn:y()},m=(0,C.createGlobalStore)("config-internal",h);let w=y();function y(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(e){return!1}}m.subscribe((e=>{var t;e.devDefaultsAreOn!=w&&(t=e.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(t)),w=e.devDefaultsAreOn)}));const b=(0,C.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});b.subscribe((e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));const x=(0,C.createGlobalStore)("config-extensions",{mountedExtensions:[]});function H(e){return(0,C.getGlobalStore)(`config-module-${e}`,{config:null,loaded:!1})}function L(e){return(0,C.getGlobalStore)(`config-extension-slots-${e}`,{extensionSlotConfigs:{},loaded:!1})}function S(e,t,n){return(0,C.getGlobalStore)(`config-extension-${e}-${t}-${n}`,{config:null,loaded:!1})}const M=(0,C.createGlobalStore)("config-implementer-tools",{config:{}});function _(e,t){for(let n of Object.keys(e.schemas)){const r=D(n,e,t);H(n).setState({loaded:!0,config:r})}}function V(e,t){const n=function(e,t){const n=N(E(e,t)),r=Object.keys(n).reduce(((e,t)=>(n[t]?.extensions&&(e[t]=n[t]?.extensions),e)),{});return function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))T(r,t,e)}(r),r}(e,t);for(let[e,t]of Object.entries(n))L(e).setState({loaded:!0,extensionSlotConfigs:t})}function Z(e,t){const n=function(e,t){let n=P(a()(e.schemas));const r=[...e.providedConfigs.map((e=>[e.config,e.source])),[t.config,"temporary config"]];for(let[e,t]of r)n=N([n,z(e,t)]);return n}(e,t);M.setState({config:n})}function k(e,t,n){for(let r of t.mountedExtensions){const t=S(r.slotModuleName,r.slotName,r.extensionId),o=A(r.slotModuleName,r.extensionModuleName,r.slotName,r.extensionId,e,n);t.setState({loaded:!0,config:o})}}function O(e,t){U(e,t);const n=m.getState();m.setState({schemas:{...n.schemas,[e]:t}})}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided";const n=m.getState();m.setState({providedConfigs:[...n.providedConfigs,{source:t,config:e}]})}function $(e){return new Promise((t=>{const n=H(e);function r(e){e.loaded&&e.config&&(t(e.config),o&&o())}r(n.getState());const o=n.subscribe(r)}))}function B(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];R(e,t,n);const o=q(e,t,r);return o}function A(e,t,n,r,o,i){const l=E(o,i),a=I(e,l)?.extensions?.[n]?.configure?.[r]??{},c=N([I(t,l),a]),s=o.schemas[t];R(s,c,t);const u=q(s,c,o.devDefaultsAreOn);return delete u.extensions,u}function P(e){return e.hasOwnProperty("_default")?{...e,_value:e._default,_source:"default"}:K(e)?Object.keys(e).reduce(((t,n)=>(t[n]=P(e[n]),t)),{}):{}}function z(e,t){return K(e)?Object.keys(e).reduce(((n,r)=>(n[r]=z(e[r],t),n)),{}):{_value:e,_source:t}}function T(e,t,n){const r=`Extension slot config '${t}.extensions.${n}`,o=Object.keys(e).filter((e=>!["add","remove","order","configure"].includes(e)));o.length&&console.error(r+`' contains invalid keys '${o.join("', '")}'`),e.add&&(Array.isArray(e.add)&&e.add.every((e=>"string"==typeof e))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((e=>"string"==typeof e))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((e=>"string"==typeof e))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(K(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function E(e,t){return[...e.providedConfigs.map((e=>e.config)),t.config]}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(const o of Object.keys(t).filter((e=>!e.startsWith("_")))){const i=n+(n&&".")+o,l=t[o];if(!K(l)){console.error(`${e} has bad config schema definition for key '${i}'. ${r}`);continue}l.hasOwnProperty("_default")||U(e,l,i);const a=l._elements;if(X(a)&&U(e,a,i+"._elements"),l._validators)for(let t of l._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${i}' ${r}.\n\nIf you're the maintainer: validators must be functions that return either undefined or an error string. Received ${t}.`);const s=l._type;s&&!Object.values(c).includes(s)&&console.error(`${e} has invalid type for key '${i}' ${r}.\n\nIf you're the maintainer: the allowed types are ${Object.values(c).join(", ")}. Received '${s}'`),Object.keys(l).every((e=>["_description","_validators","_elements","_type"].includes(e)))&&!n.includes("._elements")&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: all config elements must have a default. Received ${JSON.stringify(l)}`),a&&s&&![c.Array,c.Object].includes(s)&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. Received ${JSON.stringify(s)}`)}}function D(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);const r=t.schemas[e],o=I(e,E(t,n));R(r,o,e);const i=q(r,o,t.devDefaultsAreOn);return delete i.extensions,i}function I(e,t){return N(t.map((t=>{let{[e]:n}=t;return n})).filter((e=>!!e)))}function N(e){return r()(t())({},e)}_(m.getState(),b.getState()),m.subscribe((e=>_(e,b.getState()))),b.subscribe((e=>_(m.getState(),e))),Z(m.getState(),b.getState()),m.subscribe((e=>Z(e,b.getState()))),b.subscribe((e=>Z(m.getState(),e))),V(m.getState(),b.getState()),m.subscribe((e=>V(e,b.getState()))),b.subscribe((e=>V(m.getState(),e))),k(m.getState(),x.getState(),b.getState()),m.subscribe((e=>k(e,x.getState(),b.getState()))),x.subscribe((e=>k(m.getState(),e,b.getState()))),b.subscribe((e=>k(m.getState(),x.getState(),e)));const R=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,l=e[r];e.hasOwnProperty(r)?(W(i,l._type,o),F(i,l._validators,o),K(o)?l._type===c.Object?G(l,o,i):l.hasOwnProperty("_default")||R(l,o,i):l._type===c.Array&&J(l,o,i)):"extensions"!==r&&console.error(`Unknown config key '${i}' provided. Ignoring.`)}};function G(e,t,n){if(e._elements)for(const r of Object.keys(t)){const o=t[r];R(e._elements,o,`${n}.${r}`)}}function J(e,t,n){if(X(e._elements))for(let r=0;r<t.length;r++)R(e._elements,t[r],`${n}[${r}]`);for(let r=0;r<t.length;r++)W(`${n}[${r}]`,e._elements?._type,t[r]),F(`${n}[${r}]`,e._elements?._validators,t[r])}function W(e,t,n){t&&F(e,[{Array:u,Boolean:d,ConceptUuid:g,Number:p,Object:v,String:f,UUID:g}[t]],n)}function F(e,t,n){if(t)try{for(let r of t){const t=r(n);if("string"==typeof t){const r="object"==typeof n?JSON.stringify(n):n;console.error(`Invalid configuration value ${r} for ${e}: ${t}`)}}}catch(t){console.error(`Skipping invalid validator at "${e}".`)}}const q=(e,t,n)=>{const r=a()(t);if(!e)return r;for(const t of Object.keys(e)){const o=r[t],i=e[t];if(i&&i.hasOwnProperty("_default")){if(!r.hasOwnProperty(t)){const e=i._devDefault||i._default;r[t]=n?e:i._default}const e=i._elements;if(o&&X(e))if(i._type===c.Array){const i=o.map((t=>q(e,t,n)));r[t]=i}else if(i._type===c.Object)for(let t of Object.keys(o))o[t]=q(e,o[t],n)}else if(K(i)){const e=r.hasOwnProperty(t)?o:{};K(e)&&(r[t]=q(i,e,n))}}return r};function X(e){return!!e&&Object.keys(e).filter((e=>!["_default","_validators"].includes(e))).length>0}function K(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}var Q=o(645);function Y(e){const t=window.getOpenmrsSpaBase().replace(/\/$/,"");return ee(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:t}).replace(/^\/\//,"/")}function ee(e,t){return Object.keys(t).reduce(((e,n)=>e.split("${"+n+"}").join(t[n])),e)}function te(e){let{to:t}=e;const n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=Y(t);r.startsWith(n)?(0,Q.navigateToUrl)(r):window.location.assign(r)}const ne=(e,t)=>s((n=>e<=n&&n<=t),`must be between ${e} and ${t}`),re=e=>{const t=e.concat(["openmrsBase","openmrsSpaBase"]);return s((e=>{if(!e||"string"!=typeof e)return!1;const n=/\${(.*?)}/g;let r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"should be a URL or path. The allowed template parameters are "+t.map((e=>"${"+e+"}")).join(", "))},oe=re([]),ie={inRange:ne,isUrl:oe,isUrlWithTemplateParameters:re}})(),i})())}}}))},748:()=>{System.register([],(function(e,t){return{execute:function(){e((()=>{var e={968:(e,t,n)=>{const r=n(577).R;t.s=function(e){if(e||(e=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,e)}},577:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var l=r.slice(0,i+1);return n.protocol+"//"+n.host+l},Number.isInteger}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.y=t,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var o={};return(0,r(968).s)(1),(()=>{"use strict";function e(e,t){for(var n in t)e[n]=t[n];return e}function t(t){var n=[];function r(e){for(var t=[],r=0;r<n.length;r++)n[r]===e?e=null:t.push(n[r]);n=t}function o(r,o,i){t=o?r:e(e({},t),r);for(var l=n,a=0;a<l.length;a++)l[a](t,i)}return t=t||{},{action:function(e){function n(t){o(t,!1,e)}return function(){for(var r=arguments,o=[t],i=0;i<arguments.length;i++)o.push(r[i]);var l=e.apply(this,o);if(null!=l)return l.then?l.then(n):n(l)}},setState:o,subscribe:function(e){return n.push(e),function(){r(e)}},unsubscribe:r,getState:function(){return t}}}r.r(o),r.d(o,{createAppState:()=>a,createGlobalStore:()=>i,getAppState:()=>c,getGlobalStore:()=>l,subscribeTo:()=>s,update:()=>u});const n={};function i(e,r){const o=n[e];if(o)return o.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):o.value.setState(r,!0),o.active=!0,o.value;{const o=t(r);return n[e]={value:o,active:!0},o}}function l(e,r){const o=n[e];if(!o){const o=t(r);return n[e]={value:o,active:!1},o}return o.value}function a(e){return i("app",e)}function c(){return l("app",{})}function s(e,t,n){let r=t(e.getState());return e.subscribe((e=>{const o=t(e);o!==r&&(r=o,n(o))}))}function u(e,t,n){let[r,...o]=t;return r?0===o.length?{...e,[r]:n}:{...e,[r]:u(e[r]||{},o,n)}:e}})(),o})())}}}))},991:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'},662:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'},865:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'},646:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'},509:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'},250:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'},142:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'},451:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'},61:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'},76:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'},600:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'},40:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'},567:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'},752:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>'},862:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'},601:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'},879:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'},739:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'},524:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'},787:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'},592:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'},141:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'},647:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'},885:e=>{"use strict";e.exports='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n'},575:e=>{"use strict";e.exports='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n'},93:e=>{"use strict";e.exports='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n'},839:e=>{"use strict";e.exports='<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'},45:e=>{"use strict";e.exports=n},954:e=>{"use strict";e.exports=r},493:e=>{"use strict";e.exports=o},792:e=>{"use strict";e.exports=i}},l={};function a(t){var n=l[t];if(void 0!==n)return n.exports;var r=l[t]={exports:{}};return e[t](r,r.exports,a),r.exports}a.y=t,a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})();var c={};return(0,a(714).s)(1),(()=>{"use strict";var e=a(885),t=a(93),n=a(575),r=a(839);const o=document.createElement("div"),i=()=>{document.body.appendChild(o)};function l(e,t){const n=(new DOMParser).parseFromString(t,"text/html").querySelector("svg");n&&(n.id=e,o.appendChild(n))}o.id="omrs-svgs-container",o.style.display="none","complete"===document.readyState?i():window.addEventListener("load",i);var c=a(141),s=a(739),u=a(787),d=a(865),p=a(509),f=a(646),v=a(250),g=a(76),C=a(600),h=a(40),m=a(61),w=a(592),y=a(862),b=a(567),x=a(601),H=a(142),L=a(991),S=a(662),M=a(524),_=a(451),V=a(647),Z=a(879),k=a(752),O=a(179);a(954),a(493);var j=a(792);new j.Subject,new j.Subject,a(45),(0,a(748).createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,function(){function e(e,t){document.documentElement.style.setProperty(e,t)}(0,O.defineConfigSchema)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:O.Type.String},"Brand color #2":{_default:"#004144",_type:O.Type.String},"Brand color #3":{_default:"#007d79",_type:O.Type.String}}),(0,O.getConfigStore)("@openmrs/esm-styleguide").subscribe((t=>{t.loaded&&t.config&&(e("--brand-01",t.config["Brand color #1"]),e("--brand-02",t.config["Brand color #2"]),e("--brand-03",t.config["Brand color #3"]))}))}(),l("omrs-logo-full-color",e),l("omrs-logo-full-mono",e),l("omrs-logo-full-grey",e),l("omrs-logo-partial-color",t),l("omrs-logo-partial-mono",t),l("omrs-logo-partial-grey",t),l("omrs-logo-icon-color",n),l("omrs-logo-icon-mono",n),l("omrs-logo-icon-grey",n),l("omrs-logo-white",r),l("omrs-icon-visibility",c),l("omrs-icon-menu",s),l("omrs-icon-search",u),l("omrs-icon-arrow-back",d),l("omrs-icon-arrow-forward",p),l("omrs-icon-arrow-downward",f),l("omrs-icon-arrow-upward",v),l("omrs-icon-chevron-left",g),l("omrs-icon-chevron-right",C),l("omrs-icon-chevron-up",h),l("omrs-icon-chevron-down",m),l("omrs-icon-supervised-user-circle",w),l("omrs-icon-home",y),l("omrs-icon-close",b),l("omrs-icon-important-notification",x),l("omrs-icon-calendar",H),l("omrs-icon-access-time",L),l("omrs-icon-add",S),l("omrs-icon-remove",M),l("omrs-icon-check-circle",_),l("omrs-icon-zoomoutmap",V),l("omrs-icon-location",Z),l("omrs-icon-download",k)})(),(()=>{"use strict";a.r(c)})(),c})())}}}));
|
|
2
2
|
//# sourceMappingURL=openmrs-esm-styleguide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openmrs-esm-styleguide.js","mappings":"uPAAA,MAAMA,EAAmBC,EAAAA,KAAAA,EAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUVC,EAAAA,EAAmBC,OAASD,EAAAA,EAAmBC,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsBJ,EAAAA,GAC9BK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C,GAC1BtC,EAAO,mCAAoCuC,GAC3CvC,EAAO,qBAAsBwC,GAC7BxC,EAAO,wBAAyByC,GAChCzC,EAAO,gBAAiBjH,GACxBiH,EAAO,mBAAoB/G,GAC3B+G,EAAO,yBAA0B0C,GACjC1C,EAAO,uBAAwB2C,GAC/B3C,EAAO,qBAAsBxD,GAC7BwD,EAAO,qBAAsB4C,I","sources":["webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/bind.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/clone.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_arity.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_clone.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_cloneRegExp.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry1.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry2.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry3.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_has.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isArray.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isArrayLike.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isObject.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isPlaceholder.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isString.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_reduce.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_xwrap.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeDeepRight.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeDeepWithKey.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeWithKey.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/reduce.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/type.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/external system \"@openmrs/esm-state\"","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/external system \"single-spa\"","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/bootstrap","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/compat get default export","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/define property getters","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/types.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/validator.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/type-validators.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/module-config/state.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/module-config/module-config.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/navigation/interpolate-string.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/navigation/navigate.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/validators.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/bootstrap","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/__system_context__","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/define property getters","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/global","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/publicPath","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/unistore/dist/unistore.es.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/./src/state.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/./src/update.ts","webpack://@openmrs/esm-styleguide/external system \"@openmrs/esm-extensions\"","webpack://@openmrs/esm-styleguide/external system \"react\"","webpack://@openmrs/esm-styleguide/external system \"react-dom\"","webpack://@openmrs/esm-styleguide/external system \"rxjs\"","webpack://@openmrs/esm-styleguide/webpack/bootstrap","webpack://@openmrs/esm-styleguide/webpack/runtime/__system_context__","webpack://@openmrs/esm-styleguide/webpack/runtime/global","webpack://@openmrs/esm-styleguide/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/webpack/runtime/publicPath","webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-styleguide/./src/svg-utils.ts","webpack://@openmrs/esm-styleguide/./src/notifications/index.tsx","webpack://@openmrs/esm-styleguide/./src/toasts/index.tsx","webpack://@openmrs/esm-styleguide/./src/modals/index.tsx","webpack://@openmrs/esm-styleguide/./src/brand.ts","webpack://@openmrs/esm-styleguide/./src/index.ts","webpack://@openmrs/esm-styleguide/./src/logo/index.ts","webpack://@openmrs/esm-styleguide/./src/icons/index.ts"],"sourcesContent":["const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var _arity = /*#__PURE__*/require('./internal/_arity');\n\nvar _curry2 = /*#__PURE__*/require('./internal/_curry2');\n\n/**\n * Creates a function that is bound to a context.\n * Note: `R.bind` does not provide the additional argument-binding capabilities of\n * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\n *\n * @func\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @category Object\n * @sig (* -> *) -> {*} -> (* -> *)\n * @param {Function} fn The function to bind to context\n * @param {Object} thisObj The context to bind `fn` to\n * @return {Function} A function that will execute in the context of `thisObj`.\n * @see R.partial\n * @example\n *\n * const log = R.bind(console.log, console);\n * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}\n * // logs {a: 2}\n * @symb R.bind(f, o)(a, b) = f.call(o, a, b)\n */\n\n\nvar bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {\n return _arity(fn.length, function () {\n return fn.apply(thisObj, arguments);\n });\n});\nmodule.exports = bind;","var _clone = /*#__PURE__*/require('./internal/_clone');\n\nvar _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\n/**\n * Creates a deep copy of the value which may contain (nested) `Array`s and\n * `Object`s, `Number`s, `String`s, `Boolean`s and `Date`s. `Function`s are\n * assigned by reference rather than copied\n *\n * Dispatches to a `clone` method if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig {*} -> {*}\n * @param {*} value The object or array to clone\n * @return {*} A deeply cloned copy of `val`\n * @example\n *\n * const objects = [{}, {}, {}];\n * const objectsClone = R.clone(objects);\n * objects === objectsClone; //=> false\n * objects[0] === objectsClone[0]; //=> false\n */\n\n\nvar clone = /*#__PURE__*/_curry1(function clone(value) {\n return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);\n});\nmodule.exports = clone;","function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}\nmodule.exports = _arity;","var _cloneRegExp = /*#__PURE__*/require('./_cloneRegExp');\n\nvar type = /*#__PURE__*/require('../type');\n\n/**\n * Copies an object.\n *\n * @private\n * @param {*} value The value to be copied\n * @param {Array} refFrom Array containing the source references\n * @param {Array} refTo Array containing the copied source references\n * @param {Boolean} deep Whether or not to perform deep cloning.\n * @return {*} The copied value.\n */\n\n\nfunction _clone(value, refFrom, refTo, deep) {\n var copy = function copy(copiedValue) {\n var len = refFrom.length;\n var idx = 0;\n while (idx < len) {\n if (value === refFrom[idx]) {\n return refTo[idx];\n }\n idx += 1;\n }\n refFrom[idx + 1] = value;\n refTo[idx + 1] = copiedValue;\n for (var key in value) {\n copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];\n }\n return copiedValue;\n };\n switch (type(value)) {\n case 'Object':\n return copy({});\n case 'Array':\n return copy([]);\n case 'Date':\n return new Date(value.valueOf());\n case 'RegExp':\n return _cloneRegExp(value);\n default:\n return value;\n }\n}\nmodule.exports = _clone;","function _cloneRegExp(pattern) {\n return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));\n}\nmodule.exports = _cloneRegExp;","var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry1(fn) {\n return function f1(a) {\n if (arguments.length === 0 || _isPlaceholder(a)) {\n return f1;\n } else {\n return fn.apply(this, arguments);\n }\n };\n}\nmodule.exports = _curry1;","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry2(fn) {\n return function f2(a, b) {\n switch (arguments.length) {\n case 0:\n return f2;\n case 1:\n return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n return fn(a, _b);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b);\n }) : fn(a, b);\n }\n };\n}\nmodule.exports = _curry2;","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _curry2 = /*#__PURE__*/require('./_curry2');\n\nvar _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal three-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry3(fn) {\n return function f3(a, b, c) {\n switch (arguments.length) {\n case 0:\n return f3;\n case 1:\n return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n });\n case 2:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {\n return fn(_a, b, _c);\n }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n }) : _curry1(function (_c) {\n return fn(a, b, _c);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {\n return fn(_a, _b, c);\n }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {\n return fn(_a, b, _c);\n }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n }) : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b, c);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b, c);\n }) : _isPlaceholder(c) ? _curry1(function (_c) {\n return fn(a, b, _c);\n }) : fn(a, b, c);\n }\n };\n}\nmodule.exports = _curry3;","function _has(prop, obj) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\nmodule.exports = _has;","/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n * _isArray([]); //=> true\n * _isArray(null); //=> false\n * _isArray({}); //=> false\n */\nmodule.exports = Array.isArray || function _isArray(val) {\n return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _isArray = /*#__PURE__*/require('./_isArray');\n\nvar _isString = /*#__PURE__*/require('./_isString');\n\n/**\n * Tests whether or not an object is similar to an array.\n *\n * @private\n * @category Type\n * @category List\n * @sig * -> Boolean\n * @param {*} x The object to test.\n * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.\n * @example\n *\n * _isArrayLike([]); //=> true\n * _isArrayLike(true); //=> false\n * _isArrayLike({}); //=> false\n * _isArrayLike({length: 10}); //=> false\n * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true\n */\n\n\nvar _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {\n if (_isArray(x)) {\n return true;\n }\n if (!x) {\n return false;\n }\n if (typeof x !== 'object') {\n return false;\n }\n if (_isString(x)) {\n return false;\n }\n if (x.nodeType === 1) {\n return !!x.length;\n }\n if (x.length === 0) {\n return true;\n }\n if (x.length > 0) {\n return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);\n }\n return false;\n});\nmodule.exports = _isArrayLike;","function _isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\nmodule.exports = _isObject;","function _isPlaceholder(a) {\n return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}\nmodule.exports = _isPlaceholder;","function _isString(x) {\n return Object.prototype.toString.call(x) === '[object String]';\n}\nmodule.exports = _isString;","var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');\n\nvar _xwrap = /*#__PURE__*/require('./_xwrap');\n\nvar bind = /*#__PURE__*/require('../bind');\n\nfunction _arrayReduce(xf, acc, list) {\n var idx = 0;\n var len = list.length;\n while (idx < len) {\n acc = xf['@@transducer/step'](acc, list[idx]);\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n idx += 1;\n }\n return xf['@@transducer/result'](acc);\n}\n\nfunction _iterableReduce(xf, acc, iter) {\n var step = iter.next();\n while (!step.done) {\n acc = xf['@@transducer/step'](acc, step.value);\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n step = iter.next();\n }\n return xf['@@transducer/result'](acc);\n}\n\nfunction _methodReduce(xf, acc, obj, methodName) {\n return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));\n}\n\nvar symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';\n\nfunction _reduce(fn, acc, list) {\n if (typeof fn === 'function') {\n fn = _xwrap(fn);\n }\n if (_isArrayLike(list)) {\n return _arrayReduce(fn, acc, list);\n }\n if (typeof list['fantasy-land/reduce'] === 'function') {\n return _methodReduce(fn, acc, list, 'fantasy-land/reduce');\n }\n if (list[symIterator] != null) {\n return _iterableReduce(fn, acc, list[symIterator]());\n }\n if (typeof list.next === 'function') {\n return _iterableReduce(fn, acc, list);\n }\n if (typeof list.reduce === 'function') {\n return _methodReduce(fn, acc, list, 'reduce');\n }\n\n throw new TypeError('reduce: list must be array or iterable');\n}\nmodule.exports = _reduce;","var XWrap = /*#__PURE__*/function () {\n function XWrap(fn) {\n this.f = fn;\n }\n XWrap.prototype['@@transducer/init'] = function () {\n throw new Error('init not implemented on XWrap');\n };\n XWrap.prototype['@@transducer/result'] = function (acc) {\n return acc;\n };\n XWrap.prototype['@@transducer/step'] = function (acc, x) {\n return this.f(acc, x);\n };\n\n return XWrap;\n}();\n\nfunction _xwrap(fn) {\n return new XWrap(fn);\n}\nmodule.exports = _xwrap;","var _curry2 = /*#__PURE__*/require('./internal/_curry2');\n\nvar mergeDeepWithKey = /*#__PURE__*/require('./mergeDeepWithKey');\n\n/**\n * Creates a new object with the own properties of the first object merged with\n * the own properties of the second object. If a key exists in both objects:\n * - and both values are objects, the two values will be recursively merged\n * - otherwise the value from the second object will be used.\n *\n * @func\n * @memberOf R\n * @since v0.24.0\n * @category Object\n * @sig {a} -> {a} -> {a}\n * @param {Object} lObj\n * @param {Object} rObj\n * @return {Object}\n * @see R.merge, R.mergeDeepLeft, R.mergeDeepWith, R.mergeDeepWithKey\n * @example\n *\n * R.mergeDeepRight({ name: 'fred', age: 10, contact: { email: 'moo@example.com' }},\n * { age: 40, contact: { email: 'baa@example.com' }});\n * //=> { name: 'fred', age: 40, contact: { email: 'baa@example.com' }}\n */\n\n\nvar mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {\n return mergeDeepWithKey(function (k, lVal, rVal) {\n return rVal;\n }, lObj, rObj);\n});\nmodule.exports = mergeDeepRight;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _isObject = /*#__PURE__*/require('./internal/_isObject');\n\nvar mergeWithKey = /*#__PURE__*/require('./mergeWithKey');\n\n/**\n * Creates a new object with the own properties of the two provided objects.\n * If a key exists in both objects:\n * - and both associated values are also objects then the values will be\n * recursively merged.\n * - otherwise the provided function is applied to the key and associated values\n * using the resulting value as the new value associated with the key.\n * If a key only exists in one object, the value will be associated with the key\n * of the resulting object.\n *\n * @func\n * @memberOf R\n * @since v0.24.0\n * @category Object\n * @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}\n * @param {Function} fn\n * @param {Object} lObj\n * @param {Object} rObj\n * @return {Object}\n * @see R.mergeWithKey, R.mergeDeepWith\n * @example\n *\n * let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r\n * R.mergeDeepWithKey(concatValues,\n * { a: true, c: { thing: 'foo', values: [10, 20] }},\n * { b: true, c: { thing: 'bar', values: [15, 35] }});\n * //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}\n */\n\n\nvar mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {\n return mergeWithKey(function (k, lVal, rVal) {\n if (_isObject(lVal) && _isObject(rVal)) {\n return mergeDeepWithKey(fn, lVal, rVal);\n } else {\n return fn(k, lVal, rVal);\n }\n }, lObj, rObj);\n});\nmodule.exports = mergeDeepWithKey;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _has = /*#__PURE__*/require('./internal/_has');\n\n/**\n * Creates a new object with the own properties of the two provided objects. If\n * a key exists in both objects, the provided function is applied to the key\n * and the values associated with the key in each object, with the result being\n * used as the value associated with the key in the returned object.\n *\n * @func\n * @memberOf R\n * @since v0.19.0\n * @category Object\n * @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}\n * @param {Function} fn\n * @param {Object} l\n * @param {Object} r\n * @return {Object}\n * @see R.mergeDeepWithKey, R.merge, R.mergeWith\n * @example\n *\n * let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r\n * R.mergeWithKey(concatValues,\n * { a: true, thing: 'foo', values: [10, 20] },\n * { b: true, thing: 'bar', values: [15, 35] });\n * //=> { a: true, b: true, thing: 'bar', values: [10, 20, 15, 35] }\n * @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }\n */\n\n\nvar mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {\n var result = {};\n var k;\n\n for (k in l) {\n if (_has(k, l)) {\n result[k] = _has(k, r) ? fn(k, l[k], r[k]) : l[k];\n }\n }\n\n for (k in r) {\n if (_has(k, r) && !_has(k, result)) {\n result[k] = r[k];\n }\n }\n\n return result;\n});\nmodule.exports = mergeWithKey;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _reduce = /*#__PURE__*/require('./internal/_reduce');\n\n/**\n * Returns a single item by iterating through the list, successively calling\n * the iterator function and passing it an accumulator value and the current\n * value from the array, and then passing the result to the next call.\n *\n * The iterator function receives two values: *(acc, value)*. It may use\n * [`R.reduced`](#reduced) to shortcut the iteration.\n *\n * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function\n * is *(value, acc)*.\n *\n * Note: `R.reduce` does not skip deleted or unassigned indices (sparse\n * arrays), unlike the native `Array.prototype.reduce` method. For more details\n * on this behavior, see:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description\n *\n * Dispatches to the `reduce` method of the third argument, if present. When\n * doing so, it is up to the user to handle the [`R.reduced`](#reduced)\n * shortcuting, as this is not implemented by `reduce`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, b) -> a) -> a -> [b] -> a\n * @param {Function} fn The iterator function. Receives two values, the accumulator and the\n * current element from the array.\n * @param {*} acc The accumulator value.\n * @param {Array} list The list to iterate over.\n * @return {*} The final, accumulated value.\n * @see R.reduced, R.addIndex, R.reduceRight\n * @example\n *\n * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10\n * // - -10\n * // / \\ / \\\n * // - 4 -6 4\n * // / \\ / \\\n * // - 3 ==> -3 3\n * // / \\ / \\\n * // - 2 -1 2\n * // / \\ / \\\n * // 0 1 0 1\n *\n * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)\n */\n\n\nvar reduce = /*#__PURE__*/_curry3(_reduce);\nmodule.exports = reduce;","var _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\n/**\n * Gives a single-word string description of the (native) type of a value,\n * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\n * attempt to distinguish user Object types any further, reporting them all as\n * 'Object'.\n *\n * @func\n * @memberOf R\n * @since v0.8.0\n * @category Type\n * @sig (* -> {*}) -> String\n * @param {*} val The value to test\n * @return {String}\n * @example\n *\n * R.type({}); //=> \"Object\"\n * R.type(1); //=> \"Number\"\n * R.type(false); //=> \"Boolean\"\n * R.type('s'); //=> \"String\"\n * R.type(null); //=> \"Null\"\n * R.type([]); //=> \"Array\"\n * R.type(/[A-z]/); //=> \"RegExp\"\n * R.type(() => {}); //=> \"Function\"\n * R.type(undefined); //=> \"Undefined\"\n */\n\n\nvar type = /*#__PURE__*/_curry1(function type(val) {\n return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);\n});\nmodule.exports = type;","module.exports = __WEBPACK_EXTERNAL_MODULE__685__;","module.exports = __WEBPACK_EXTERNAL_MODULE__645__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export enum Type {\n Array = \"Array\",\n Boolean = \"Boolean\",\n ConceptUuid = \"ConceptUuid\",\n Number = \"Number\",\n Object = \"Object\",\n String = \"String\",\n UUID = \"UUID\",\n}\n\n// Full-powered typing for Config and Schema trees depends on being able to\n// have types like `string not \"_default\"`. There is an experimental PR\n// for this feature, https://github.com/microsoft/TypeScript/pull/29317\n// But it is not likely to be merged any time terribly soon. (Nov 11, 2020)\nexport interface ConfigSchema {\n [key: string]: ConfigSchema | ConfigValue;\n _type?: Type;\n _validators?: Array<Validator>;\n _elements?: ConfigSchema;\n}\n\nexport interface Config extends Object {\n [moduleName: string]: { [key: string]: any };\n}\n\nexport interface ConfigObject extends Object {\n [key: string]: any;\n}\n\nexport type ConfigValue =\n | string\n | number\n | boolean\n | void\n | Array<any>\n | object;\n\nexport interface ExtensionSlotConfig {\n add?: Array<string>;\n remove?: Array<string>;\n order?: Array<string>;\n configure?: ExtensionSlotConfigureValueObject;\n}\n\nexport interface ExtensionSlotConfigureValueObject {\n [key: string]: object;\n}\n\nexport interface ExtensionSlotConfigObject {\n add?: Array<string>;\n remove?: Array<string>;\n order?: Array<string>;\n}\n\nexport type ProvidedConfig = {\n source: string;\n config: Config;\n};\n\nexport type ValidatorFunction = (value: any) => boolean;\n\nexport type Validator = (value: any) => void | string;\n","import { Validator, ValidatorFunction } from \"../types\";\n\nexport function validator(\n validationFunction: ValidatorFunction,\n message: string\n): Validator {\n return (value) => {\n if (!validationFunction(value)) {\n return message;\n }\n };\n}\n","import { validator } from \"./validator\";\n\nexport const isArray = validator(\n (val) => Array.isArray(val),\n \"must be an array\"\n);\n\nexport const isBoolean = validator(\n (val) => typeof val === \"boolean\",\n \"must be a boolean\"\n);\n\nexport const isNumber = validator(\n (val) => typeof val === \"number\",\n \"must be a number\"\n);\n\nexport const isString = validator(\n (val) => typeof val === \"string\",\n \"must be a string\"\n);\n\nexport const isObject = validator(\n (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null,\n \"must be an object (not an array or null)\"\n);\n\nexport const isUuid = validator(\n (val) =>\n /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(\n val\n ) || /^[0-9a-f]{36}$/i.test(val),\n \"must be a valid UUID or a 36-character hexadecimal string\"\n);\n","import { createGlobalStore, getGlobalStore } from \"@openmrs/esm-state\";\nimport {\n Config,\n ConfigObject,\n ConfigSchema,\n ExtensionSlotConfigObject,\n ProvidedConfig,\n} from \"../types\";\n\n/**\n * Internal store\n * A store of the inputs and internal state\n * @internal\n */\nexport interface ConfigInternalStore {\n /** Configs added using the `provide` function */\n providedConfigs: Array<ProvidedConfig>;\n /** An object with module names for keys and schemas for values */\n schemas: Record<string, ConfigSchema>;\n /** Whether to use dev defaults or not */\n devDefaultsAreOn: boolean;\n}\n\nconst configInternalStoreInitialValue = {\n providedConfigs: [],\n schemas: {},\n devDefaultsAreOn: getAreDevDefaultsOn(),\n};\n\n/**\n * @internal\n */\nexport const configInternalStore = createGlobalStore<ConfigInternalStore>(\n \"config-internal\",\n configInternalStoreInitialValue\n);\n\nlet lastValueOfDevDefaultsAreOn = getAreDevDefaultsOn();\nconfigInternalStore.subscribe((state) => {\n if (state.devDefaultsAreOn != lastValueOfDevDefaultsAreOn) {\n setAreDevDefaultsOn(state.devDefaultsAreOn);\n lastValueOfDevDefaultsAreOn = state.devDefaultsAreOn;\n }\n});\n\nfunction setAreDevDefaultsOn(value: boolean) {\n localStorage.setItem(\"openmrs:configAreDevDefaultsOn\", JSON.stringify(value));\n}\n\nfunction getAreDevDefaultsOn(): boolean {\n try {\n return JSON.parse(\n localStorage.getItem(\"openmrs:configAreDevDefaultsOn\") || \"false\"\n );\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Temporary config\n * LocalStorage-based config used by the implementer tools\n * @internal\n */\nexport interface TemporaryConfigStore {\n config: Config;\n}\n\nexport const temporaryConfigStore = createGlobalStore<TemporaryConfigStore>(\n \"temporary-config\",\n { config: getTemporaryConfig() }\n);\n\ntemporaryConfigStore.subscribe((state) => {\n setTemporaryConfig(state.config);\n});\n\nfunction setTemporaryConfig(value: Config) {\n localStorage.setItem(\"openmrs:temporaryConfig\", JSON.stringify(value));\n}\n\nfunction getTemporaryConfig(): Config {\n try {\n return JSON.parse(localStorage.getItem(\"openmrs:temporaryConfig\") || \"{}\");\n } catch (e) {\n return {};\n }\n}\n\n/**\n * Config-side extension store\n * Just what esm-config needs to know about extension state. This\n * is to avoid having esm-config depend on esm-extensions, which would\n * create a circular dependency.\n * @internal\n */\nexport interface ConfigExtensionStore {\n mountedExtensions: Array<ConfigExtensionStoreElement>;\n}\n\n/**\n * @internal\n */\nexport interface ConfigExtensionStoreElement {\n slotModuleName: string;\n extensionModuleName: string;\n slotName: string;\n extensionId: string;\n}\n\n/**\n * @internal\n */\nexport const configExtensionStore = createGlobalStore<ConfigExtensionStore>(\n \"config-extensions\",\n { mountedExtensions: [] }\n);\n\n/**\n * Output configs\n *\n * Each module has its own stores for its config and its extension slots' configs.\n */\nexport interface ConfigStore {\n config: ConfigObject | null;\n loaded: boolean;\n}\n\nfunction initializeConfigStore() {\n return {\n config: null,\n loaded: false,\n };\n}\n\nexport function getConfigStore(moduleName: string) {\n // We use a store for each module's config, named `config-${moduleName}`\n return getGlobalStore<ConfigStore>(\n `config-module-${moduleName}`,\n initializeConfigStore()\n );\n}\n\nexport interface ExtensionSlotConfigsStore {\n /** Configs for each extension slot in the module, indexed by slot name */\n extensionSlotConfigs: Record<string, ExtensionSlotConfigObject>;\n loaded: boolean;\n}\n\nfunction initializeExtensionSlotConfigsStore() {\n return {\n extensionSlotConfigs: {},\n loaded: false,\n };\n}\n\nexport function getExtensionSlotsConfigStore(moduleName: string) {\n // Each module gets one store for the configs of all the slots it contains\n return getGlobalStore<ExtensionSlotConfigsStore>(\n `config-extension-slots-${moduleName}`,\n initializeExtensionSlotConfigsStore()\n );\n}\n\n// A store for each mounted extension's config\nexport function getExtensionConfigStore(\n extensionSlotModuleName: string,\n attachedExtensionSlotName: string,\n extensionId: string\n) {\n return getGlobalStore<ConfigStore>(\n `config-extension-${extensionSlotModuleName}-${attachedExtensionSlotName}-${extensionId}`,\n initializeConfigStore()\n );\n}\n\n// A store of the implementer tools output config\nexport interface ImplementerToolsConfigStore {\n config: Config;\n}\n\nexport const implementerToolsConfigStore =\n createGlobalStore<ImplementerToolsConfigStore>(\"config-implementer-tools\", {\n config: {},\n });\n","import { clone, reduce, mergeDeepRight } from \"ramda\";\nimport {\n Config,\n ConfigObject,\n ConfigSchema,\n ExtensionSlotConfig,\n ExtensionSlotConfigObject,\n Type,\n} from \"../types\";\nimport {\n isArray,\n isBoolean,\n isUuid,\n isNumber,\n isObject,\n isString,\n} from \"../validators/type-validators\";\nimport {\n ConfigExtensionStore,\n ConfigInternalStore,\n configInternalStore,\n ConfigStore,\n configExtensionStore,\n getConfigStore,\n getExtensionConfigStore,\n getExtensionSlotsConfigStore,\n implementerToolsConfigStore,\n temporaryConfigStore,\n} from \"./state\";\nimport type {} from \"@openmrs/esm-globals\";\nimport { TemporaryConfigStore } from \"..\";\n\n/**\n * Store setup\n *\n *\n * Set up stores and subscriptions so that inputs get processed appropriately.\n *\n * There are *input* stores and *output* stores. The *input* stores\n * are configInternalStore, temporaryConfigStore, and configExtensionStore. The\n * output stores are set in the `compute...` functions. They are the module\n * config stores, the extension slot config stores (by module), the extension\n * config stores, and the implementer tools config store.\n *\n * This code sets up the subscriptions so that when an input store changes,\n * the correct set of output stores are updated.\n *\n * All `compute...` functions except `computeExtensionConfigs` are pure\n * (or are supposed to be). `computeExtensionConfigs` calls `getGlobalStore`,\n * which creates stores.\n */\ncomputeModuleConfig(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeModuleConfig(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeModuleConfig(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeImplementerToolsConfig(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeImplementerToolsConfig(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeImplementerToolsConfig(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeExtensionSlotConfigs(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeExtensionSlotConfigs(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeExtensionSlotConfigs(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeExtensionConfigs(\n configInternalStore.getState(),\n configExtensionStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeExtensionConfigs(\n configState,\n configExtensionStore.getState(),\n temporaryConfigStore.getState()\n )\n);\nconfigExtensionStore.subscribe((extensionState) =>\n computeExtensionConfigs(\n configInternalStore.getState(),\n extensionState,\n temporaryConfigStore.getState()\n )\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeExtensionConfigs(\n configInternalStore.getState(),\n configExtensionStore.getState(),\n tempConfigState\n )\n);\n\nfunction computeModuleConfig(\n state: ConfigInternalStore,\n tempState: TemporaryConfigStore\n) {\n for (let moduleName of Object.keys(state.schemas)) {\n const config = getConfigForModule(moduleName, state, tempState);\n const moduleStore = getConfigStore(moduleName);\n moduleStore.setState({ loaded: true, config });\n }\n}\n\nfunction computeExtensionSlotConfigs(\n state: ConfigInternalStore,\n tempState: TemporaryConfigStore\n) {\n const slotConfigsByModule = getExtensionSlotConfigs(state, tempState);\n for (let [moduleName, extensionSlotConfigs] of Object.entries(\n slotConfigsByModule\n )) {\n const moduleStore = getExtensionSlotsConfigStore(moduleName);\n moduleStore.setState({ loaded: true, extensionSlotConfigs });\n }\n}\n\nfunction computeImplementerToolsConfig(\n state: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n) {\n const config = getImplementerToolsConfig(state, tempConfigState);\n implementerToolsConfigStore.setState({ config });\n}\n\nfunction computeExtensionConfigs(\n configState: ConfigInternalStore,\n extensionState: ConfigExtensionStore,\n tempConfigState: TemporaryConfigStore\n) {\n for (let extension of extensionState.mountedExtensions) {\n const extensionStore = getExtensionConfigStore(\n extension.slotModuleName,\n extension.slotName,\n extension.extensionId\n );\n const config = getExtensionConfig(\n extension.slotModuleName,\n extension.extensionModuleName,\n extension.slotName,\n extension.extensionId,\n configState,\n tempConfigState\n );\n extensionStore.setState({ loaded: true, config });\n }\n}\n\n/*\n * API\n *\n */\n\nexport function defineConfigSchema(moduleName: string, schema: ConfigSchema) {\n validateConfigSchema(moduleName, schema);\n const state = configInternalStore.getState();\n configInternalStore.setState({\n schemas: { ...state.schemas, [moduleName]: schema },\n });\n}\n\nexport function provide(config: Config, sourceName = \"provided\") {\n const state = configInternalStore.getState();\n configInternalStore.setState({\n providedConfigs: [...state.providedConfigs, { source: sourceName, config }],\n });\n}\n\n/**\n * A promise-based way to access the config as soon as it is fully loaded.\n * If it is already loaded, resolves the config in its present state.\n *\n * In general you should use the Unistore-based API provided by\n * `getConfigStore`, which allows creating a subscription so that you always\n * have the latest config. If using React, just use `useConfig`.\n *\n * This is a useful function if you need to get the config in the course\n * of the execution of a function.\n *\n * @param moduleName The name of the module for which to look up the config\n */\nexport function getConfig(moduleName: string): Promise<Config> {\n return new Promise<Config>((resolve) => {\n const store = getConfigStore(moduleName);\n function update(state: ConfigStore) {\n if (state.loaded && state.config) {\n resolve(state.config);\n unsubscribe && unsubscribe();\n }\n }\n update(store.getState());\n const unsubscribe = store.subscribe(update);\n });\n}\n\n/**\n * Validate and interpolate defaults for `providedConfig` according to `schema`\n *\n * @param schema a configuration schema\n * @param providedConfig an object of config values (without the top-level module name)\n * @param keyPathContext a dot-deparated string which helps the user figure out where\n * the provided config came from\n */\nexport function processConfig(\n schema: ConfigSchema,\n providedConfig: ConfigObject,\n keyPathContext: string,\n devDefaultsAreOn: boolean = false\n) {\n validateConfig(schema, providedConfig, keyPathContext);\n const config = setDefaults(schema, providedConfig, devDefaultsAreOn);\n return config;\n}\n\n/*\n * Helper functions\n *\n */\n\n/**\n * Returns the configuration for an extension. This configuration is specific\n * to the slot in which it is mounted, and its ID within that slot.\n *\n * The schema for that configuration is the schema for the module in which the\n * extension is defined.\n *\n * @param slotModuleName The name of the module which defines the extension slot\n * @param extensionModuleName The name of the module which defines the extension (and therefore the config schema)\n * @param slotName The name of the extension slot where the extension is mounted\n * @param extensionId The ID of the extension in its slot\n */\nfunction getExtensionConfig(\n slotModuleName: string,\n extensionModuleName: string,\n slotName: string,\n extensionId: string,\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n) {\n const providedConfigs = getProvidedConfigs(configState, tempConfigState);\n const slotModuleConfig = mergeConfigsFor(slotModuleName, providedConfigs);\n const configOverride =\n slotModuleConfig?.extensions?.[slotName]?.configure?.[extensionId] ?? {};\n const extensionModuleConfig = mergeConfigsFor(\n extensionModuleName,\n providedConfigs\n );\n const extensionConfig = mergeConfigs([extensionModuleConfig, configOverride]);\n const schema = configState.schemas[extensionModuleName]; // TODO: validate that a schema exists for the module\n validateConfig(schema, extensionConfig, extensionModuleName);\n const config = setDefaults(\n schema,\n extensionConfig,\n configState.devDefaultsAreOn\n );\n delete config.extensions;\n return config;\n}\n\nfunction getImplementerToolsConfig(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Record<string, Config> {\n let result = getSchemaWithValuesAndSources(clone(configState.schemas));\n const configsAndSources = [\n ...configState.providedConfigs.map((c) => [c.config, c.source]),\n [tempConfigState.config, \"temporary config\"],\n ] as Array<[Config, string]>;\n for (let [config, source] of configsAndSources) {\n result = mergeConfigs([result, createValuesAndSourcesTree(config, source)]);\n }\n return result;\n}\n\nfunction getSchemaWithValuesAndSources(schema) {\n if (schema.hasOwnProperty(\"_default\")) {\n return { ...schema, _value: schema._default, _source: \"default\" };\n } else if (isOrdinaryObject(schema)) {\n return Object.keys(schema).reduce((obj, key) => {\n obj[key] = getSchemaWithValuesAndSources(schema[key]);\n return obj;\n }, {});\n } else {\n // Schema is bad; error will have been logged during schema validation\n return {};\n }\n}\n\nfunction createValuesAndSourcesTree(config: ConfigObject, source: string) {\n if (isOrdinaryObject(config)) {\n return Object.keys(config).reduce((obj, key) => {\n obj[key] = createValuesAndSourcesTree(config[key], source);\n return obj;\n }, {});\n } else {\n return { _value: config, _source: source };\n }\n}\n\nfunction getExtensionSlotConfigs(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Record<string, Record<string, ExtensionSlotConfigObject>> {\n const allConfigs = mergeConfigs(\n getProvidedConfigs(configState, tempConfigState)\n );\n const slotConfigPerModule: Record<\n string,\n Record<string, ExtensionSlotConfig>\n > = Object.keys(allConfigs).reduce((obj, key) => {\n if (allConfigs[key]?.extensions) {\n obj[key] = allConfigs[key]?.extensions;\n }\n return obj;\n }, {});\n validateAllExtensionSlotConfigs(slotConfigPerModule);\n return slotConfigPerModule;\n}\n\nfunction validateAllExtensionSlotConfigs(\n slotConfigPerModule: Record<string, Record<string, ExtensionSlotConfig>>\n) {\n for (let [moduleName, configBySlotName] of Object.entries(\n slotConfigPerModule\n )) {\n for (let [slotName, config] of Object.entries(configBySlotName)) {\n validateExtensionSlotConfig(config, moduleName, slotName);\n }\n }\n}\n\nfunction validateExtensionSlotConfig(\n config: ExtensionSlotConfig,\n moduleName: string,\n slotName: string\n): void {\n const errorPrefix = `Extension slot config '${moduleName}.extensions.${slotName}`;\n const invalidKeys = Object.keys(config).filter(\n (k) => ![\"add\", \"remove\", \"order\", \"configure\"].includes(k)\n );\n if (invalidKeys.length) {\n console.error(\n errorPrefix + `' contains invalid keys '${invalidKeys.join(\"', '\")}'`\n );\n }\n if (config.add) {\n if (\n !Array.isArray(config.add) ||\n !config.add.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.add' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.remove) {\n if (\n !Array.isArray(config.remove) ||\n !config.remove.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.remove' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.order) {\n if (\n !Array.isArray(config.order) ||\n !config.order.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.order' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.configure) {\n if (!isOrdinaryObject(config.configure)) {\n console.error(\n errorPrefix +\n `.configure' is invalid. Must be an object with extension IDs for keys`\n );\n }\n }\n}\n\nfunction getProvidedConfigs(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Array<Config> {\n return [\n ...configState.providedConfigs.map((c) => c.config),\n tempConfigState.config,\n ];\n}\n\nfunction validateConfigSchema(\n moduleName: string,\n schema: ConfigSchema,\n keyPath = \"\"\n) {\n const updateMessage = `Please verify that you are running the latest version and, if so, alert the maintainer.`;\n\n for (const key of Object.keys(schema).filter((k) => !k.startsWith(\"_\"))) {\n const thisKeyPath = keyPath + (keyPath && \".\") + key;\n const schemaPart = schema[key] as ConfigSchema;\n\n if (!isOrdinaryObject(schemaPart)) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}`\n );\n continue;\n }\n\n if (!schemaPart.hasOwnProperty(\"_default\")) {\n // recurse for nested config keys\n validateConfigSchema(moduleName, schemaPart, thisKeyPath);\n }\n\n const elements = schemaPart._elements;\n if (hasObjectSchema(elements)) {\n validateConfigSchema(moduleName, elements, thisKeyPath + \"._elements\");\n }\n\n if (schemaPart._validators) {\n for (let validator of schemaPart._validators) {\n if (typeof validator !== \"function\") {\n console.error(\n `${moduleName} has invalid validator for key '${thisKeyPath}' ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: validators must be functions that return either ` +\n `undefined or an error string. Received ${validator}.`\n );\n }\n }\n }\n\n const valueType = schemaPart._type;\n if (valueType && !Object.values(Type).includes(valueType)) {\n console.error(\n `${moduleName} has invalid type for key '${thisKeyPath}' ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: the allowed types are ${Object.values(\n Type\n ).join(\", \")}. ` +\n `Received '${valueType}'`\n );\n }\n\n if (\n Object.keys(schemaPart).every((k) =>\n [\"_description\", \"_validators\", \"_elements\", \"_type\"].includes(k)\n ) &&\n !keyPath.includes(\"._elements\")\n ) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: all config elements must have a default. ` +\n `Received ${JSON.stringify(schemaPart)}`\n );\n }\n\n if (\n elements &&\n valueType &&\n ![Type.Array, Type.Object].includes(valueType)\n ) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. ` +\n `Received ${JSON.stringify(valueType)}`\n );\n }\n }\n}\n\nfunction getConfigForModule(\n moduleName: string,\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): ConfigObject {\n if (!configState.schemas.hasOwnProperty(moduleName)) {\n throw Error(\"No config schema has been defined for \" + moduleName);\n }\n\n const schema = configState.schemas[moduleName];\n const inputConfig = mergeConfigsFor(\n moduleName,\n getProvidedConfigs(configState, tempConfigState)\n );\n validateConfig(schema, inputConfig, moduleName);\n const config = setDefaults(schema, inputConfig, configState.devDefaultsAreOn);\n delete config.extensions;\n return config;\n}\n\nfunction mergeConfigsFor(\n moduleName: string,\n allConfigs: Array<Config>\n): ConfigObject {\n const allConfigsForModule = allConfigs\n .map(({ [moduleName]: c }) => c)\n .filter((c) => !!c);\n\n return mergeConfigs(allConfigsForModule);\n}\n\nfunction mergeConfigs(configs: Array<Config>) {\n const mergeDeepAll = reduce(mergeDeepRight);\n return mergeDeepAll({}, configs) as Config;\n}\n\n// Recursively check the provided config tree to make sure that all\n// of the provided properties exist in the schema. Run validators\n// where present in the schema.\nconst validateConfig = (\n schema: ConfigSchema,\n config: ConfigObject,\n keyPath = \"\"\n) => {\n for (const key of Object.keys(config)) {\n const value = config[key];\n const thisKeyPath = keyPath + \".\" + key;\n const schemaPart = schema[key] as ConfigSchema;\n\n if (!schema.hasOwnProperty(key)) {\n if (key !== \"extensions\") {\n console.error(\n `Unknown config key '${thisKeyPath}' provided. Ignoring.`\n );\n }\n\n continue;\n }\n\n checkType(thisKeyPath, schemaPart._type, value);\n runValidators(thisKeyPath, schemaPart._validators, value);\n\n if (isOrdinaryObject(value)) {\n // structurally validate only if there's elements specified\n // or there's a `_default` value, which indicates a freeform object\n if (schemaPart._type === Type.Object) {\n validateDictionary(schemaPart, value, thisKeyPath);\n } else if (!schemaPart.hasOwnProperty(\"_default\")) {\n // recurse to validate nested object structure\n validateConfig(schemaPart, value, thisKeyPath);\n }\n } else {\n if (schemaPart._type === Type.Array) {\n validateArray(schemaPart, value, thisKeyPath);\n }\n }\n }\n};\n\nfunction validateDictionary(\n dictionarySchema: ConfigSchema,\n config: ConfigObject,\n keyPath: string\n) {\n if (dictionarySchema._elements) {\n for (const key of Object.keys(config)) {\n const value = config[key];\n validateConfig(dictionarySchema._elements, value, `${keyPath}.${key}`);\n }\n }\n}\n\nfunction validateArray(\n arraySchema: ConfigSchema,\n value: ConfigObject,\n keyPath: string\n) {\n // if there is an array element object schema, verify that elements match it\n if (hasObjectSchema(arraySchema._elements)) {\n for (let i = 0; i < value.length; i++) {\n validateConfig(arraySchema._elements, value[i], `${keyPath}[${i}]`);\n }\n }\n\n for (let i = 0; i < value.length; i++) {\n checkType(`${keyPath}[${i}]`, arraySchema._elements?._type, value[i]);\n runValidators(\n `${keyPath}[${i}]`,\n arraySchema._elements?._validators,\n value[i]\n );\n }\n}\n\nfunction checkType(keyPath: string, _type: Type | undefined, value: any) {\n if (_type) {\n const validator: Record<string, Function> = {\n Array: isArray,\n Boolean: isBoolean,\n ConceptUuid: isUuid,\n Number: isNumber,\n Object: isObject,\n String: isString,\n UUID: isUuid,\n };\n runValidators(keyPath, [validator[_type]], value);\n }\n}\n\nfunction runValidators(\n keyPath: string,\n validators: Array<Function> | undefined,\n value: any\n) {\n if (validators) {\n try {\n for (let validator of validators) {\n const validatorResult = validator(value);\n\n if (typeof validatorResult === \"string\") {\n const valueString =\n typeof value === \"object\" ? JSON.stringify(value) : value;\n console.error(\n `Invalid configuration value ${valueString} for ${keyPath}: ${validatorResult}`\n );\n }\n }\n } catch (e) {\n console.error(`Skipping invalid validator at \"${keyPath}\".`);\n }\n }\n}\n\n// Recursively fill in the config with values from the schema.\nconst setDefaults = (\n schema: ConfigSchema,\n inputConfig: Config,\n devDefaultsAreOn: boolean\n) => {\n const config = clone(inputConfig);\n\n if (!schema) {\n return config;\n }\n\n for (const key of Object.keys(schema)) {\n const configPart = config[key];\n const schemaPart = schema[key] as ConfigSchema;\n\n // The `schemaPart &&` clause of this `if` statement will only fail\n // if the schema is very invalid. It is there to prevent the app from\n // crashing completely, though it will produce unexpected behavior.\n // If this happens, there should be legible errors in the console from\n // the schema validator.\n if (schemaPart && schemaPart.hasOwnProperty(\"_default\")) {\n // We assume that schemaPart defines a config value, since it has\n // a property `_default`.\n if (!config.hasOwnProperty(key)) {\n const devDefault = schemaPart[\"_devDefault\"] || schemaPart[\"_default\"];\n\n (config[key] as any) = devDefaultsAreOn\n ? devDefault\n : schemaPart[\"_default\"];\n }\n\n // We also check if it is an object or array with object elements, in which case we recurse\n const elements = schemaPart._elements;\n\n if (configPart && hasObjectSchema(elements)) {\n if (schemaPart._type === Type.Array) {\n const configWithDefaults = configPart.map((conf: Config) =>\n setDefaults(elements, conf, devDefaultsAreOn)\n );\n config[key] = configWithDefaults;\n } else if (schemaPart._type === Type.Object) {\n for (let objectKey of Object.keys(configPart)) {\n configPart[objectKey] = setDefaults(\n elements,\n configPart[objectKey],\n devDefaultsAreOn\n );\n }\n }\n }\n } else if (isOrdinaryObject(schemaPart)) {\n // Since schemaPart has no property \"_default\", if it's an ordinary object\n // (unlike, importantly, the validators array), we assume it is a parent config property.\n // We recurse to config[key] and schema[key]. Default config[key] to {}.\n const selectedConfigPart = config.hasOwnProperty(key) ? configPart : {};\n\n if (isOrdinaryObject(selectedConfigPart)) {\n config[key] = setDefaults(\n schemaPart,\n selectedConfigPart,\n devDefaultsAreOn\n );\n }\n }\n }\n\n return config;\n};\n\nfunction hasObjectSchema(\n elementsSchema: Object | undefined\n): elementsSchema is ConfigSchema {\n return (\n !!elementsSchema &&\n Object.keys(elementsSchema).filter(\n (e) => ![\"_default\", \"_validators\"].includes(e)\n ).length > 0\n );\n}\n\nfunction isOrdinaryObject(value) {\n return typeof value === \"object\" && !Array.isArray(value) && value !== null;\n}\n","function trimTrailingSlash(str: string) {\n return str.replace(/\\/$/, \"\");\n}\n\n/**\n * Interpolates a string with openmrsBase and openmrsSpaBase.\n *\n * Useful for accepting `${openmrsBase}` or `${openmrsSpaBase}` template\n * parameters in configurable URLs.\n *\n * @param template A string to interpolate\n * @category Navigation\n */\nexport function interpolateUrl(template: string): string {\n const openmrsSpaBase = trimTrailingSlash(window.getOpenmrsSpaBase());\n return interpolateString(template, {\n openmrsBase: window.openmrsBase,\n openmrsSpaBase: openmrsSpaBase,\n }).replace(/^\\/\\//, \"/\"); // remove extra initial slash if present\n}\n\n/**\n * Interpolates values of `params` into the `template` string.\n *\n * Useful for additional template parameters in URLs.\n *\n * Example usage:\n * ```js\n * navigate({\n * to: interpolateString(\n * config.links.patientChart,\n * { patientUuid: patient.uuid }\n * )\n * });\n * ```\n *\n * @param template With optional params wrapped in `${ }`\n * @param params Values to interpolate into the string template\n * @category Navigation\n */\nexport function interpolateString(template: string, params: object): string {\n const names = Object.keys(params);\n return names.reduce(\n (prev, curr) => prev.split(\"${\" + curr + \"}\").join(params[curr]),\n template\n );\n}\n","import { navigateToUrl } from \"single-spa\";\nimport { interpolateUrl } from \"./interpolate-string\";\nimport type {} from \"@openmrs/esm-globals\";\n\nfunction trimTrailingSlash(str: string) {\n return str.replace(/\\/$/, \"\");\n}\n\nexport interface NavigateOptions {\n to: string;\n}\n\n/**\n * Calls `location.assign` for non-SPA paths and [navigateToUrl](https://single-spa.js.org/docs/api/#navigatetourl) for SPA paths\n *\n * Example usage:\n * ```js\n * const config = getConfig();\n * const submitHandler = () => {\n * navigate({ to: config.links.submitSuccess });\n * };\n * ```\n *\n * @param to The target path or URL. Supports templating with 'openmrsBase' and 'openmrsSpaBase'.\n * For example, `${openmrsSpaBase}/home` will resolve to `/openmrs/spa/home`\n * for implementations using the standard OpenMRS and SPA base paths.\n * @category Navigation\n */\nexport function navigate({ to }: NavigateOptions): void {\n const openmrsSpaBase = trimTrailingSlash(window.getOpenmrsSpaBase());\n const target = interpolateUrl(to);\n const isSpaPath = target.startsWith(openmrsSpaBase);\n\n if (isSpaPath) {\n navigateToUrl(target);\n } else {\n window.location.assign(target);\n }\n}\n","import { validator } from \"./validator\";\n\n/**\n * Verifies that the value is between the provided minimum and maximum\n *\n * @param min Minimum acceptable value\n * @param max Maximum acceptable value\n */\nexport const inRange = (min: number, max: number) => {\n return validator(\n (val) => min <= val && val <= max,\n `must be between ${min} and ${max}`\n );\n};\n\n/**\n * Verifies that a string contains only the default URL template\n * parameters, plus any specified in `allowedTemplateParameters`.\n *\n * @param allowedTemplateParameters To be added to `openmrsBase` and `openmrsSpaBase`\n * @category Navigation\n */\nexport const isUrlWithTemplateParameters = (\n allowedTemplateParameters: string[]\n) => {\n const allowedParams = allowedTemplateParameters.concat([\n \"openmrsBase\",\n \"openmrsSpaBase\",\n ]);\n return validator((val) => {\n if (!val || typeof val != \"string\") {\n return false;\n }\n\n const rx = /\\${(.*?)}/g;\n let match = rx.exec(val);\n\n while (match) {\n if (!allowedParams.includes(match[1])) {\n return false;\n }\n\n match = rx.exec(val);\n }\n\n return true;\n }, \"should be a URL or path. The allowed template parameters are \" + allowedParams.map((p) => \"${\" + p + \"}\").join(\", \"));\n};\n\n/**\n * Verifies that a string contains only the default URL template parameters.\n *\n * @category Navigation\n */\nexport const isUrl = isUrlWithTemplateParameters([]);\n\nexport const validators = {\n inRange,\n isUrl,\n isUrlWithTemplateParameters,\n};\n","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","function n(n,t){for(var r in t)n[r]=t[r];return n}export default function(t){var r=[];function u(n){for(var t=[],u=0;u<r.length;u++)r[u]===n?n=null:t.push(r[u]);r=t}function e(u,e,f){t=e?u:n(n({},t),u);for(var i=r,o=0;o<i.length;o++)i[o](t,f)}return t=t||{},{action:function(n){function r(t){e(t,!1,n)}return function(){for(var u=arguments,e=[t],f=0;f<arguments.length;f++)e.push(u[f]);var i=n.apply(this,e);if(null!=i)return i.then?i.then(r):r(i)}},setState:e,subscribe:function(n){return r.push(n),function(){u(n)}},unsubscribe:u,getState:function(){return t}}}\n//# sourceMappingURL=unistore.es.js.map\n","import createStore, { Store } from \"unistore\";\n\ninterface StoreEntity {\n value: Store<any>;\n active: boolean;\n}\n\nconst availableStores: Record<string, StoreEntity> = {};\n\n/**\n * Creates a Unistore [store](https://github.com/developit/unistore#store).\n *\n * @param name A name by which the store can be looked up later.\n * Must be unique across the entire application.\n * @param initialState An object which will be the initial state of the store.\n * @returns The newly created store.\n */\nexport function createGlobalStore<TState>(\n name: string,\n initialState: TState\n): Store<TState> {\n const available = availableStores[name];\n\n if (available) {\n if (available.active) {\n console.error(\n \"Cannot override an existing store. Make sure that stores are only created once.\"\n );\n } else {\n available.value.setState(initialState, true);\n }\n\n available.active = true;\n return available.value;\n } else {\n const store = createStore(initialState);\n\n availableStores[name] = {\n value: store,\n active: true,\n };\n\n return store;\n }\n}\n\n/**\n * Returns the existing [store](https://github.com/developit/unistore#store) named `name`,\n * or creates a new store named `name` if none exists.\n *\n * @param name The name of the store to look up.\n * @param fallbackState The initial value of the new store if no store named `name` exists.\n * @returns The found or newly created store.\n */\nexport function getGlobalStore<TState = any>(\n name: string,\n fallbackState?: TState\n): Store<TState> {\n const available = availableStores[name];\n\n if (!available) {\n const store = createStore(fallbackState);\n availableStores[name] = {\n value: store,\n active: false,\n };\n return store;\n }\n\n return available.value;\n}\n\nexport interface AppState {}\n\n/**\n * @internal\n */\nexport function createAppState(initialState: AppState) {\n return createGlobalStore(\"app\", initialState);\n}\n\n/**\n * @returns The [store](https://github.com/developit/unistore#store) named `app`.\n */\nexport function getAppState() {\n return getGlobalStore<AppState>(\"app\", {});\n}\n\nexport function subscribeTo<T, U>(\n store: Store<T>,\n select: (state: T) => U,\n handle: (subState: U) => void\n) {\n let previous = select(store.getState());\n\n return store.subscribe((state) => {\n const current = select(state);\n\n if (current !== previous) {\n previous = current;\n handle(current);\n }\n });\n}\n","export function update<T extends Record<string, any>>(\n obj: T,\n [property, ...restPropertyPath]: Array<string>,\n value: any\n): T {\n if (!property) {\n return obj;\n } else if (restPropertyPath.length === 0) {\n return { ...obj, [property]: value };\n } else {\n return {\n ...obj,\n [property]: update(obj[property] || {}, restPropertyPath, value),\n };\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__45__;","module.exports = __WEBPACK_EXTERNAL_MODULE__954__;","module.exports = __WEBPACK_EXTERNAL_MODULE__493__;","module.exports = __WEBPACK_EXTERNAL_MODULE__792__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","/* The svg container is a div that contains all the OpenMRS svgs, with\n * an HTML id that can be referenced with the following code:\n * <svg role=\"img\">\n * <use link:href=\"#the-svg-id\"></use>\n * </svg>\n *\n * This approach is known as \"svg sprites\"\n */\nconst svgContainer = document.createElement(\"div\");\nconst appendContainer = () => {\n document.body.appendChild(svgContainer);\n};\nsvgContainer.id = \"omrs-svgs-container\";\nsvgContainer.style.display = \"none\";\n\nif (document.readyState === \"complete\") {\n appendContainer();\n} else {\n window.addEventListener(\"load\", appendContainer);\n}\n\nexport function addSvg(htmlId: string, svgString: string) {\n const domParser = new DOMParser();\n const dom = domParser.parseFromString(svgString, \"text/html\");\n const svgElement = dom.querySelector(\"svg\");\n\n if (svgElement) {\n svgElement.id = htmlId;\n svgContainer.appendChild(svgElement);\n }\n}\n","import React from \"react\";\nimport { render } from \"react-dom\";\nimport { Subject } from \"rxjs\";\nimport {\n InlineNotificationMeta,\n NotificationDescriptor,\n} from \"./notification.component\";\nimport ActiveNotifications from \"./active-notifications.component\";\nimport isEmpty from \"lodash-es/isEmpty\";\n\nconst inlineNotificationsSubject = new Subject<InlineNotificationMeta>();\nlet notificationId = 0;\n\n/**\n * Starts a rendering host for inline notifications. Should only be used by the app shell.\n * Under normal conditions there is no need to use this function.\n * @param target The container target that hosts the inline notifications.\n */\nexport function renderInlineNotifications(target: HTMLElement | null) {\n if (target) {\n render(\n <ActiveNotifications subject={inlineNotificationsSubject} />,\n target\n );\n }\n}\n\nfunction isNotEmpty(description: React.ReactNode) {\n return typeof description === \"string\"\n ? description.trim().length > 0\n : typeof description === \"object\"\n ? !isEmpty(description)\n : false;\n}\n\n/**\n * Displays an inline notification in the UI.\n * @param notification The description of the notification to display.\n */\nexport function showNotification(notification: NotificationDescriptor) {\n if (notification && isNotEmpty(notification.description)) {\n setTimeout(() => {\n // always use in subsequent cycle\n inlineNotificationsSubject.next({\n ...notification,\n id: notificationId++,\n });\n }, 0);\n } else {\n console.error(\n `showNotification must be called with an object having a 'description' property that is a non-empty string or object`\n );\n }\n}\n","import React from \"react\";\nimport { render } from \"react-dom\";\nimport { Subject } from \"rxjs\";\nimport { ToastDescriptor, ToastNotificationMeta } from \"./toast.component\";\nimport ActiveToasts from \"./active-toasts.component\";\nimport isEmpty from \"lodash-es/isEmpty\";\n\nconst toastsSubject = new Subject<ToastNotificationMeta>();\nlet toastId = 0;\n\n/**\n * Starts a rendering host for toast notifications. Should only be used by the app shell.\n * Under normal conditions there is no need to use this function.\n * @param target The container target that hosts the toast notifications.\n */\nexport function renderToasts(target: HTMLElement | null) {\n if (target) {\n render(<ActiveToasts subject={toastsSubject} />, target);\n }\n}\n\nfunction isNotEmpty(description: React.ReactNode) {\n return typeof description === \"string\"\n ? description.trim().length > 0\n : typeof description === \"object\"\n ? !isEmpty(description)\n : false;\n}\n\n/**\n * Displays a toast notification in the UI.\n * @param toast The description of the toast to display.\n */\nexport function showToast(toast: ToastDescriptor) {\n if (toast && isNotEmpty(toast.description)) {\n setTimeout(() => {\n // always use in subsequent cycle\n toastsSubject.next({\n ...toast,\n id: toastId++,\n });\n }, 0);\n } else {\n console.error(\n `showToast must be called with an object having a 'description' property that is a non-empty string or object`\n );\n }\n}\n","import { renderExtension } from \"@openmrs/esm-extensions\";\nimport { createGlobalStore } from \"@openmrs/esm-state\";\n\ntype ModalInstanceState = \"NEW\" | \"MOUNTED\" | \"TO_BE_DELETED\";\n\ninterface ModalInstance {\n container?: HTMLElement;\n state: ModalInstanceState;\n onClose: () => void;\n cleanup?: () => void;\n extensionId: string;\n props: Record<string, any>;\n}\n\ninterface ModalState {\n modalContainer: HTMLElement | null;\n modalStack: Array<ModalInstance>;\n}\n\nconst modalStore = createGlobalStore<ModalState>(\"globalModalState\", {\n modalContainer: null,\n modalStack: [],\n});\n\nfunction htmlToElement(html: string) {\n const template = document.createElement(\"template\");\n template.innerHTML = html;\n return template.content.firstChild as ChildNode;\n}\n\nfunction createModalFrame() {\n const closeButton = htmlToElement(\n `\n <button\n class=\"bx--modal-close\"\n type=\"button\">\n <svg id=\"icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><defs><style>.cls-1{fill:#000000;}.cls-2{fill:none;}</style></defs><title>close</title><polygon class=\"cls-1\" points=\"24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4\"/><rect class=\"cls-2\" width=\"32\" height=\"32\"/></svg>\n </button>`.trim()\n ) as HTMLButtonElement;\n\n closeButton.addEventListener(\"click\", closeHighestInstance);\n const outer = document.createElement(\"div\");\n outer.className = \"bx--modal-container\";\n const contentContainer = document.createElement(\"div\");\n\n outer.append(closeButton);\n outer.append(contentContainer);\n\n return { outer, contentContainer };\n}\n\nconst original = window.getComputedStyle(document.body).overflow;\n\nfunction handleModalStateUpdate({ modalStack, modalContainer }: ModalState) {\n if (!modalContainer) return;\n\n if (modalStack.length) {\n // spin up the container if it was hidden previously\n if (!modalContainer.style.visibility) {\n addEventListener(\"keydown\", handleEscKey);\n document.body.style.overflow = \"hidden\";\n modalContainer.style.visibility = \"unset\";\n }\n\n modalStack.forEach((instance, index) => {\n switch (instance.state) {\n case \"NEW\":\n const { outer, contentContainer } = createModalFrame();\n instance.container = outer;\n instance.cleanup = renderExtension(\n contentContainer,\n \"\",\n \"\",\n instance.extensionId,\n undefined,\n instance.props\n );\n instance.state = \"MOUNTED\";\n modalContainer.prepend(outer);\n outer.style.visibility = \"unset\";\n break;\n\n case \"MOUNTED\":\n if (instance.container) {\n instance.container.style.visibility = index ? \"hidden\" : \"unset\";\n }\n break;\n\n case \"TO_BE_DELETED\":\n instance.onClose();\n instance.cleanup?.();\n instance.container?.remove();\n setTimeout(() => {\n modalStore.setState({\n modalContainer,\n modalStack: modalStack.filter((x) => x !== instance),\n });\n }, 0);\n break;\n }\n });\n } else {\n modalContainer.style.removeProperty(\"visibility\");\n document.body.style.overflow = original;\n removeEventListener(\"keydown\", handleEscKey);\n }\n}\n\nexport function renderModals(modalContainer: HTMLElement | null) {\n if (modalContainer) {\n modalStore.subscribe(handleModalStateUpdate);\n\n modalStore.setState({\n ...modalStore.getState(),\n modalContainer,\n });\n }\n}\nfunction openInstance(instance: ModalInstance) {\n const state = modalStore.getState();\n const modalStack = [instance, ...state.modalStack];\n\n modalStore.setState({\n ...state,\n modalStack,\n });\n}\n\nfunction closeInstance(instance: ModalInstance) {\n const state = modalStore.getState();\n const modalStack = state.modalStack.map(\n (x): ModalInstance =>\n x === instance ? { ...x, state: \"TO_BE_DELETED\" } : x\n );\n modalStore.setState({\n ...state,\n modalStack,\n });\n}\n\nfunction closeHighestInstance() {\n const state = modalStore.getState();\n const [top] = state.modalStack;\n\n if (top) {\n closeInstance(top);\n }\n}\n\nfunction handleEscKey(e: KeyboardEvent) {\n if (e.key === \"Escape\") {\n closeHighestInstance();\n }\n}\n\n/**\n * Shows the provided extension component in a modal dialog.\n * @param extensionId The id of the extension to show.\n * @param props The optional props to provide to the extension.\n * @param onClose The optional notification to receive when the modal is closed.\n * @returns The dispose function to force closing the modal dialog.\n */\nexport function showModal(\n extensionId: string,\n props: Record<string, any> = {},\n onClose: () => void = () => {}\n) {\n const close = () => {\n const state = modalStore.getState();\n const item = state.modalStack.find((m) => m.onClose === onClose);\n\n if (item) {\n closeInstance(item);\n }\n };\n\n openInstance({\n state: \"NEW\",\n onClose,\n extensionId,\n props: {\n extensionId,\n close,\n ...props,\n },\n });\n\n return close;\n}\n","import { defineConfigSchema, getConfigStore, Type } from \"@openmrs/esm-config\";\n\nexport function setupBranding() {\n defineConfigSchema(\"@openmrs/esm-styleguide\", {\n \"Brand color #1\": {\n _default: \"#005d5d\",\n _type: Type.String,\n },\n \"Brand color #2\": {\n _default: \"#004144\",\n _type: Type.String,\n },\n \"Brand color #3\": {\n _default: \"#007d79\",\n _type: Type.String,\n },\n });\n\n getConfigStore(\"@openmrs/esm-styleguide\").subscribe((store) => {\n if (store.loaded && store.config) {\n setGlobalCSSVariable(\"--brand-01\", store.config[\"Brand color #1\"]);\n setGlobalCSSVariable(\"--brand-02\", store.config[\"Brand color #2\"]);\n setGlobalCSSVariable(\"--brand-03\", store.config[\"Brand color #3\"]);\n }\n });\n\n function setGlobalCSSVariable(name: string, value: string) {\n document.documentElement.style.setProperty(name, value);\n }\n}\n","import { setupLogo } from \"./logo\";\nimport { setupIcons } from \"./icons\";\nimport { setupBranding } from \"./brand\";\n\nexport * from \"./breakpoints\";\nexport * from \"./spinner\";\nexport * from \"./notifications\";\nexport * from \"./toasts\";\nexport * from \"./modals\";\n\nsetupBranding();\nsetupLogo();\nsetupIcons();\n","/// <reference path=\"../declarations.d.ts\" />\n\nimport fullLogo from \"./openmrs-logo-full.svg\";\nimport partialLogo from \"./openmrs-logo-partial.svg\";\nimport iconLogo from \"./openmrs-logo-icon.svg\";\nimport whiteLogo from \"./openmrs-logo-white.svg\";\nimport { addSvg } from \"../svg-utils\";\n\nexport function setupLogo() {\n addSvg(\"omrs-logo-full-color\", fullLogo);\n addSvg(\"omrs-logo-full-mono\", fullLogo);\n addSvg(\"omrs-logo-full-grey\", fullLogo);\n addSvg(\"omrs-logo-partial-color\", partialLogo);\n addSvg(\"omrs-logo-partial-mono\", partialLogo);\n addSvg(\"omrs-logo-partial-grey\", partialLogo);\n addSvg(\"omrs-logo-icon-color\", iconLogo);\n addSvg(\"omrs-logo-icon-mono\", iconLogo);\n addSvg(\"omrs-logo-icon-grey\", iconLogo);\n addSvg(\"omrs-logo-white\", whiteLogo);\n}\n","/// <reference path=\"../declarations.d.ts\" />\n\nimport visibility from \"./svgs/visibility_24px_rounded.svg\";\nimport menu from \"./svgs/menu_24px_rounded.svg\";\nimport search from \"./svgs/search_24px_rounded.svg\";\nimport arrow_back from \"./svgs/arrow_back_24px_rounded.svg\";\nimport arrow_forward from \"./svgs/arrow_forward_24px.svg\";\nimport arrow_downward from \"./svgs/arrow_downward_24px_rounded.svg\";\nimport arrow_upward from \"./svgs/arrow_upward_24px_rounded.svg\";\nimport chevron_left from \"./svgs/chevron_left_24px_rounded.svg\";\nimport chevron_right from \"./svgs/chevron_right_24px_rounded.svg\";\nimport chevron_up from \"./svgs/chevron_up_24px_rounded.svg\";\nimport chevron_down from \"./svgs/chevron_down-24px_rounded.svg\";\nimport user from \"./svgs/supervised_user_circle_24px_rounded.svg\";\nimport home from \"./svgs/home_24px_rounded.svg\";\nimport close from \"./svgs/close-24px.svg\";\nimport notification from \"./svgs/important_notification_24px_rounded.svg\";\nimport calendar from \"./svgs/calendar_24px_rounded.svg\";\nimport time from \"./svgs/access_time-24px_rounded.svg\";\nimport add from \"./svgs/add_24px_rounded.svg\";\nimport remove from \"./svgs/remove-24px_rounded.svg\";\nimport check from \"./svgs/check_circle-24px.svg\";\nimport zoom from \"./svgs/zoom_out_map_24px_rounded.svg\";\nimport location from \"./svgs/location-24px.svg\";\nimport download from \"./svgs/download_24px_rounded.svg\";\nimport { addSvg } from \"../svg-utils\";\n\nexport function setupIcons() {\n addSvg(\"omrs-icon-visibility\", visibility);\n addSvg(\"omrs-icon-menu\", menu);\n addSvg(\"omrs-icon-search\", search);\n addSvg(\"omrs-icon-arrow-back\", arrow_back);\n addSvg(\"omrs-icon-arrow-forward\", arrow_forward);\n addSvg(\"omrs-icon-arrow-downward\", arrow_downward);\n addSvg(\"omrs-icon-arrow-upward\", arrow_upward);\n addSvg(\"omrs-icon-chevron-left\", chevron_left);\n addSvg(\"omrs-icon-chevron-right\", chevron_right);\n addSvg(\"omrs-icon-chevron-up\", chevron_up);\n addSvg(\"omrs-icon-chevron-down\", chevron_down);\n addSvg(\"omrs-icon-supervised-user-circle\", user);\n addSvg(\"omrs-icon-home\", home);\n addSvg(\"omrs-icon-close\", close);\n addSvg(\"omrs-icon-important-notification\", notification);\n addSvg(\"omrs-icon-calendar\", calendar);\n addSvg(\"omrs-icon-access-time\", time);\n addSvg(\"omrs-icon-add\", add);\n addSvg(\"omrs-icon-remove\", remove);\n addSvg(\"omrs-icon-check-circle\", check);\n addSvg(\"omrs-icon-zoomoutmap\", zoom);\n addSvg(\"omrs-icon-location\", location);\n addSvg(\"omrs-icon-download\", download);\n}\n"],"names":["resolveDirectory","require","exports","rootDirLevel","__system_context__","meta","url","console","error","Error","__webpack_public_path__","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","_arity","n","bind","fn","thisObj","apply","arguments","module","_clone","clone","value","this","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","_cloneRegExp","type","refFrom","refTo","deep","copy","copiedValue","len","idx","key","Date","valueOf","pattern","RegExp","source","global","ignoreCase","multiline","sticky","unicode","_isPlaceholder","f1","_curry1","f2","b","_b","_a","_curry2","f3","c","_c","prop","obj","Object","prototype","hasOwnProperty","call","Array","isArray","val","toString","_isArray","_isString","_isArrayLike","x","nodeType","_xwrap","_iterableReduce","xf","acc","iter","step","next","done","_methodReduce","methodName","symIterator","Symbol","iterator","list","reduce","TypeError","XWrap","f","mergeDeepWithKey","mergeDeepRight","lObj","rObj","k","lVal","rVal","_curry3","_isObject","mergeWithKey","_has","l","r","result","__WEBPACK_EXTERNAL_MODULE__685__","__WEBPACK_EXTERNAL_MODULE__645__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","default","e","d","definition","o","defineProperty","enumerable","get","toStringTag","Type","validator","validationFunction","message","isBoolean","isNumber","isString","isObject","isUuid","test","configInternalStoreInitialValue","providedConfigs","schemas","devDefaultsAreOn","getAreDevDefaultsOn","configInternalStore","createGlobalStore","lastValueOfDevDefaultsAreOn","JSON","parse","localStorage","getItem","subscribe","state","setItem","stringify","temporaryConfigStore","config","configExtensionStore","mountedExtensions","getConfigStore","moduleName","getGlobalStore","loaded","getExtensionSlotsConfigStore","extensionSlotConfigs","getExtensionConfigStore","extensionSlotModuleName","attachedExtensionSlotName","extensionId","implementerToolsConfigStore","computeModuleConfig","tempState","keys","getConfigForModule","setState","computeExtensionSlotConfigs","slotConfigsByModule","configState","tempConfigState","allConfigs","mergeConfigs","getProvidedConfigs","slotConfigPerModule","extensions","configBySlotName","entries","slotName","validateExtensionSlotConfig","computeImplementerToolsConfig","getSchemaWithValuesAndSources","configsAndSources","map","createValuesAndSourcesTree","computeExtensionConfigs","extensionState","extension","extensionStore","slotModuleName","getExtensionConfig","extensionModuleName","defineConfigSchema","schema","validateConfigSchema","getState","provide","sourceName","getConfig","Promise","resolve","store","update","unsubscribe","processConfig","providedConfig","keyPathContext","validateConfig","setDefaults","configOverride","mergeConfigsFor","configure","extensionConfig","_value","_default","_source","isOrdinaryObject","errorPrefix","invalidKeys","filter","includes","join","add","every","remove","order","keyPath","updateMessage","startsWith","thisKeyPath","schemaPart","elements","_elements","hasObjectSchema","_validators","valueType","_type","values","inputConfig","t","configs","checkType","runValidators","validateDictionary","validateArray","dictionarySchema","arraySchema","i","Boolean","ConceptUuid","String","UUID","validators","validatorResult","valueString","configPart","devDefault","_devDefault","configWithDefaults","conf","objectKey","selectedConfigPart","elementsSchema","interpolateUrl","template","openmrsSpaBase","window","getOpenmrsSpaBase","replace","interpolateString","openmrsBase","params","prev","curr","split","navigate","to","target","navigateToUrl","location","assign","inRange","min","max","isUrlWithTemplateParameters","allowedTemplateParameters","allowedParams","concat","rx","match","exec","p","isUrl","s","R","y","g","globalThis","Function","scriptUrl","importScripts","currentScript","src","scripts","getElementsByTagName","u","push","action","then","availableStores","name","initialState","available","active","createStore","fallbackState","createAppState","getAppState","subscribeTo","select","handle","previous","current","property","restPropertyPath","__WEBPACK_EXTERNAL_MODULE__45__","__WEBPACK_EXTERNAL_MODULE__954__","__WEBPACK_EXTERNAL_MODULE__493__","__WEBPACK_EXTERNAL_MODULE__792__","undefined","autoPublicPath","svgContainer","appendContainer","body","appendChild","addSvg","htmlId","svgString","svgElement","DOMParser","parseFromString","querySelector","id","style","display","readyState","addEventListener","Subject","modalContainer","modalStack","getComputedStyle","overflow","setGlobalCSSVariable","documentElement","setProperty","setupBranding","fullLogo","partialLogo","iconLogo","whiteLogo","visibility","menu","search","arrow_back","arrow_forward","arrow_downward","arrow_upward","chevron_left","chevron_right","chevron_up","chevron_down","user","home","close","notification","calendar","time","check","zoom","download"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"openmrs-esm-styleguide.js","mappings":"uPAAA,MAAMA,EAAmBC,EAAAA,KAAAA,EAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUVC,EAAAA,EAAmBC,OAASD,EAAAA,EAAmBC,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsBJ,EAAAA,GAC9BK,MACJ,uHAIJC,EAAAA,EAA0BV,EACxBI,EAAAA,EAAmBC,KAAKC,IACxBH,K,cCuDND,EAAQ,EAlCR,SAA0BS,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cAAc,KAC/BF,EAAEG,KAAOL,EAKT,IAHA,IAAIM,EAA6B,MAAlBJ,EAAEI,SAAS,GAAaJ,EAAEI,SAAW,IAAMJ,EAAEI,SACxDC,EAAmB,EACrBC,EAAQF,EAASG,OACZF,IAAqBN,GAAsBO,GAAS,GAE5C,MADFF,IAAWE,IAEpBD,IAIJ,GAAIA,IAAqBN,EACvB,MAAMH,MACJ,iDACEG,EACA,gDACAM,EACA,qBACAP,GAIN,IAAIU,EAAYJ,EAASK,MAAM,EAAGH,EAAQ,GAE1C,OAAON,EAAEU,SA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C,QAAU+C,EAAMrD,SACxB4M,EAAqB,aAAcvJ,EAAMrD,OAAO,mBAChD4M,EAAqB,aAAcvJ,EAAMrD,OAAO,mBAChD4M,EAAqB,aAAcvJ,EAAMrD,OAAO,uBCZtD+M,GCDEpB,EAAO,uBAAwBqB,GAC/BrB,EAAO,sBAAuBqB,GAC9BrB,EAAO,sBAAuBqB,GAC9BrB,EAAO,0BAA2BsB,GAClCtB,EAAO,yBAA0BsB,GACjCtB,EAAO,yBAA0BsB,GACjCtB,EAAO,uBAAwBuB,GAC/BvB,EAAO,sBAAuBuB,GAC9BvB,EAAO,sBAAuBuB,GAC9BvB,EAAO,kBAAmBwB,GCU1BxB,EAAO,uBAAwByB,GAC/BzB,EAAO,iBAAkB0B,GACzB1B,EAAO,mBAAoB2B,GAC3B3B,EAAO,uBAAwB4B,GAC/B5B,EAAO,0BAA2B6B,GAClC7B,EAAO,2BAA4B8B,GACnC9B,EAAO,yBAA0B+B,GACjC/B,EAAO,yBAA0BgC,GACjChC,EAAO,0BAA2BiC,GAClCjC,EAAO,uBAAwBkC,GAC/BlC,EAAO,yBAA0BmC,GACjCnC,EAAO,mCAAoCoC,GAC3CpC,EAAO,iBAAkBqC,GACzBrC,EAAO,kBAAmBsC,GAC1BtC,EAAO,mCAAoCuC,GAC3CvC,EAAO,qBAAsBwC,GAC7BxC,EAAO,wBAAyByC,GAChCzC,EAAO,gBAAiBjH,GACxBiH,EAAO,mBAAoB/G,GAC3B+G,EAAO,yBAA0B0C,GACjC1C,EAAO,uBAAwB2C,GAC/B3C,EAAO,qBAAsBxD,GAC7BwD,EAAO,qBAAsB4C,I","sources":["webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/bind.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/clone.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_arity.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_clone.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_cloneRegExp.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry1.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry2.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_curry3.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_has.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isArray.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isArrayLike.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isObject.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isPlaceholder.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_isString.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_reduce.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/internal/_xwrap.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeDeepRight.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeDeepWithKey.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/mergeWithKey.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/reduce.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/../../../node_modules/ramda/src/type.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/external system \"@openmrs/esm-state\"","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/external system \"single-spa\"","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/bootstrap","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/compat get default export","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/define property getters","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/types.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/validator.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/type-validators.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/module-config/state.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/module-config/module-config.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/navigation/interpolate-string.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/navigation/navigate.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-config/./src/validators/validators.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/bootstrap","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/__system_context__","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/define property getters","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/global","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/webpack/runtime/publicPath","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/../../../node_modules/unistore/dist/unistore.es.js","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/./src/state.ts","webpack://@openmrs/esm-styleguide/@openmrs/esm-state/./src/update.ts","webpack://@openmrs/esm-styleguide/external system \"@openmrs/esm-extensions\"","webpack://@openmrs/esm-styleguide/external system \"react\"","webpack://@openmrs/esm-styleguide/external system \"react-dom\"","webpack://@openmrs/esm-styleguide/external system \"rxjs\"","webpack://@openmrs/esm-styleguide/webpack/bootstrap","webpack://@openmrs/esm-styleguide/webpack/runtime/__system_context__","webpack://@openmrs/esm-styleguide/webpack/runtime/global","webpack://@openmrs/esm-styleguide/webpack/runtime/make namespace object","webpack://@openmrs/esm-styleguide/webpack/runtime/publicPath","webpack://@openmrs/esm-styleguide/../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-styleguide/./src/svg-utils.ts","webpack://@openmrs/esm-styleguide/./src/notifications/index.tsx","webpack://@openmrs/esm-styleguide/./src/toasts/index.tsx","webpack://@openmrs/esm-styleguide/./src/modals/index.tsx","webpack://@openmrs/esm-styleguide/./src/brand.ts","webpack://@openmrs/esm-styleguide/./src/index.ts","webpack://@openmrs/esm-styleguide/./src/logo/index.ts","webpack://@openmrs/esm-styleguide/./src/icons/index.ts"],"sourcesContent":["const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var _arity = /*#__PURE__*/require('./internal/_arity');\n\nvar _curry2 = /*#__PURE__*/require('./internal/_curry2');\n\n/**\n * Creates a function that is bound to a context.\n * Note: `R.bind` does not provide the additional argument-binding capabilities of\n * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\n *\n * @func\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @category Object\n * @sig (* -> *) -> {*} -> (* -> *)\n * @param {Function} fn The function to bind to context\n * @param {Object} thisObj The context to bind `fn` to\n * @return {Function} A function that will execute in the context of `thisObj`.\n * @see R.partial\n * @example\n *\n * const log = R.bind(console.log, console);\n * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}\n * // logs {a: 2}\n * @symb R.bind(f, o)(a, b) = f.call(o, a, b)\n */\n\n\nvar bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {\n return _arity(fn.length, function () {\n return fn.apply(thisObj, arguments);\n });\n});\nmodule.exports = bind;","var _clone = /*#__PURE__*/require('./internal/_clone');\n\nvar _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\n/**\n * Creates a deep copy of the value which may contain (nested) `Array`s and\n * `Object`s, `Number`s, `String`s, `Boolean`s and `Date`s. `Function`s are\n * assigned by reference rather than copied\n *\n * Dispatches to a `clone` method if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig {*} -> {*}\n * @param {*} value The object or array to clone\n * @return {*} A deeply cloned copy of `val`\n * @example\n *\n * const objects = [{}, {}, {}];\n * const objectsClone = R.clone(objects);\n * objects === objectsClone; //=> false\n * objects[0] === objectsClone[0]; //=> false\n */\n\n\nvar clone = /*#__PURE__*/_curry1(function clone(value) {\n return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);\n});\nmodule.exports = clone;","function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}\nmodule.exports = _arity;","var _cloneRegExp = /*#__PURE__*/require('./_cloneRegExp');\n\nvar type = /*#__PURE__*/require('../type');\n\n/**\n * Copies an object.\n *\n * @private\n * @param {*} value The value to be copied\n * @param {Array} refFrom Array containing the source references\n * @param {Array} refTo Array containing the copied source references\n * @param {Boolean} deep Whether or not to perform deep cloning.\n * @return {*} The copied value.\n */\n\n\nfunction _clone(value, refFrom, refTo, deep) {\n var copy = function copy(copiedValue) {\n var len = refFrom.length;\n var idx = 0;\n while (idx < len) {\n if (value === refFrom[idx]) {\n return refTo[idx];\n }\n idx += 1;\n }\n refFrom[idx + 1] = value;\n refTo[idx + 1] = copiedValue;\n for (var key in value) {\n copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];\n }\n return copiedValue;\n };\n switch (type(value)) {\n case 'Object':\n return copy({});\n case 'Array':\n return copy([]);\n case 'Date':\n return new Date(value.valueOf());\n case 'RegExp':\n return _cloneRegExp(value);\n default:\n return value;\n }\n}\nmodule.exports = _clone;","function _cloneRegExp(pattern) {\n return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));\n}\nmodule.exports = _cloneRegExp;","var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry1(fn) {\n return function f1(a) {\n if (arguments.length === 0 || _isPlaceholder(a)) {\n return f1;\n } else {\n return fn.apply(this, arguments);\n }\n };\n}\nmodule.exports = _curry1;","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry2(fn) {\n return function f2(a, b) {\n switch (arguments.length) {\n case 0:\n return f2;\n case 1:\n return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n return fn(a, _b);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b);\n }) : fn(a, b);\n }\n };\n}\nmodule.exports = _curry2;","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _curry2 = /*#__PURE__*/require('./_curry2');\n\nvar _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');\n\n/**\n * Optimized internal three-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\n\nfunction _curry3(fn) {\n return function f3(a, b, c) {\n switch (arguments.length) {\n case 0:\n return f3;\n case 1:\n return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n });\n case 2:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {\n return fn(_a, b, _c);\n }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n }) : _curry1(function (_c) {\n return fn(a, b, _c);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {\n return fn(_a, _b, c);\n }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {\n return fn(_a, b, _c);\n }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {\n return fn(a, _b, _c);\n }) : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b, c);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b, c);\n }) : _isPlaceholder(c) ? _curry1(function (_c) {\n return fn(a, b, _c);\n }) : fn(a, b, c);\n }\n };\n}\nmodule.exports = _curry3;","function _has(prop, obj) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\nmodule.exports = _has;","/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n * _isArray([]); //=> true\n * _isArray(null); //=> false\n * _isArray({}); //=> false\n */\nmodule.exports = Array.isArray || function _isArray(val) {\n return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};","var _curry1 = /*#__PURE__*/require('./_curry1');\n\nvar _isArray = /*#__PURE__*/require('./_isArray');\n\nvar _isString = /*#__PURE__*/require('./_isString');\n\n/**\n * Tests whether or not an object is similar to an array.\n *\n * @private\n * @category Type\n * @category List\n * @sig * -> Boolean\n * @param {*} x The object to test.\n * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.\n * @example\n *\n * _isArrayLike([]); //=> true\n * _isArrayLike(true); //=> false\n * _isArrayLike({}); //=> false\n * _isArrayLike({length: 10}); //=> false\n * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true\n */\n\n\nvar _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {\n if (_isArray(x)) {\n return true;\n }\n if (!x) {\n return false;\n }\n if (typeof x !== 'object') {\n return false;\n }\n if (_isString(x)) {\n return false;\n }\n if (x.nodeType === 1) {\n return !!x.length;\n }\n if (x.length === 0) {\n return true;\n }\n if (x.length > 0) {\n return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);\n }\n return false;\n});\nmodule.exports = _isArrayLike;","function _isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\nmodule.exports = _isObject;","function _isPlaceholder(a) {\n return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}\nmodule.exports = _isPlaceholder;","function _isString(x) {\n return Object.prototype.toString.call(x) === '[object String]';\n}\nmodule.exports = _isString;","var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');\n\nvar _xwrap = /*#__PURE__*/require('./_xwrap');\n\nvar bind = /*#__PURE__*/require('../bind');\n\nfunction _arrayReduce(xf, acc, list) {\n var idx = 0;\n var len = list.length;\n while (idx < len) {\n acc = xf['@@transducer/step'](acc, list[idx]);\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n idx += 1;\n }\n return xf['@@transducer/result'](acc);\n}\n\nfunction _iterableReduce(xf, acc, iter) {\n var step = iter.next();\n while (!step.done) {\n acc = xf['@@transducer/step'](acc, step.value);\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n step = iter.next();\n }\n return xf['@@transducer/result'](acc);\n}\n\nfunction _methodReduce(xf, acc, obj, methodName) {\n return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));\n}\n\nvar symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';\n\nfunction _reduce(fn, acc, list) {\n if (typeof fn === 'function') {\n fn = _xwrap(fn);\n }\n if (_isArrayLike(list)) {\n return _arrayReduce(fn, acc, list);\n }\n if (typeof list['fantasy-land/reduce'] === 'function') {\n return _methodReduce(fn, acc, list, 'fantasy-land/reduce');\n }\n if (list[symIterator] != null) {\n return _iterableReduce(fn, acc, list[symIterator]());\n }\n if (typeof list.next === 'function') {\n return _iterableReduce(fn, acc, list);\n }\n if (typeof list.reduce === 'function') {\n return _methodReduce(fn, acc, list, 'reduce');\n }\n\n throw new TypeError('reduce: list must be array or iterable');\n}\nmodule.exports = _reduce;","var XWrap = /*#__PURE__*/function () {\n function XWrap(fn) {\n this.f = fn;\n }\n XWrap.prototype['@@transducer/init'] = function () {\n throw new Error('init not implemented on XWrap');\n };\n XWrap.prototype['@@transducer/result'] = function (acc) {\n return acc;\n };\n XWrap.prototype['@@transducer/step'] = function (acc, x) {\n return this.f(acc, x);\n };\n\n return XWrap;\n}();\n\nfunction _xwrap(fn) {\n return new XWrap(fn);\n}\nmodule.exports = _xwrap;","var _curry2 = /*#__PURE__*/require('./internal/_curry2');\n\nvar mergeDeepWithKey = /*#__PURE__*/require('./mergeDeepWithKey');\n\n/**\n * Creates a new object with the own properties of the first object merged with\n * the own properties of the second object. If a key exists in both objects:\n * - and both values are objects, the two values will be recursively merged\n * - otherwise the value from the second object will be used.\n *\n * @func\n * @memberOf R\n * @since v0.24.0\n * @category Object\n * @sig {a} -> {a} -> {a}\n * @param {Object} lObj\n * @param {Object} rObj\n * @return {Object}\n * @see R.merge, R.mergeDeepLeft, R.mergeDeepWith, R.mergeDeepWithKey\n * @example\n *\n * R.mergeDeepRight({ name: 'fred', age: 10, contact: { email: 'moo@example.com' }},\n * { age: 40, contact: { email: 'baa@example.com' }});\n * //=> { name: 'fred', age: 40, contact: { email: 'baa@example.com' }}\n */\n\n\nvar mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {\n return mergeDeepWithKey(function (k, lVal, rVal) {\n return rVal;\n }, lObj, rObj);\n});\nmodule.exports = mergeDeepRight;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _isObject = /*#__PURE__*/require('./internal/_isObject');\n\nvar mergeWithKey = /*#__PURE__*/require('./mergeWithKey');\n\n/**\n * Creates a new object with the own properties of the two provided objects.\n * If a key exists in both objects:\n * - and both associated values are also objects then the values will be\n * recursively merged.\n * - otherwise the provided function is applied to the key and associated values\n * using the resulting value as the new value associated with the key.\n * If a key only exists in one object, the value will be associated with the key\n * of the resulting object.\n *\n * @func\n * @memberOf R\n * @since v0.24.0\n * @category Object\n * @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}\n * @param {Function} fn\n * @param {Object} lObj\n * @param {Object} rObj\n * @return {Object}\n * @see R.mergeWithKey, R.mergeDeepWith\n * @example\n *\n * let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r\n * R.mergeDeepWithKey(concatValues,\n * { a: true, c: { thing: 'foo', values: [10, 20] }},\n * { b: true, c: { thing: 'bar', values: [15, 35] }});\n * //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}\n */\n\n\nvar mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {\n return mergeWithKey(function (k, lVal, rVal) {\n if (_isObject(lVal) && _isObject(rVal)) {\n return mergeDeepWithKey(fn, lVal, rVal);\n } else {\n return fn(k, lVal, rVal);\n }\n }, lObj, rObj);\n});\nmodule.exports = mergeDeepWithKey;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _has = /*#__PURE__*/require('./internal/_has');\n\n/**\n * Creates a new object with the own properties of the two provided objects. If\n * a key exists in both objects, the provided function is applied to the key\n * and the values associated with the key in each object, with the result being\n * used as the value associated with the key in the returned object.\n *\n * @func\n * @memberOf R\n * @since v0.19.0\n * @category Object\n * @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}\n * @param {Function} fn\n * @param {Object} l\n * @param {Object} r\n * @return {Object}\n * @see R.mergeDeepWithKey, R.merge, R.mergeWith\n * @example\n *\n * let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r\n * R.mergeWithKey(concatValues,\n * { a: true, thing: 'foo', values: [10, 20] },\n * { b: true, thing: 'bar', values: [15, 35] });\n * //=> { a: true, b: true, thing: 'bar', values: [10, 20, 15, 35] }\n * @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }\n */\n\n\nvar mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {\n var result = {};\n var k;\n\n for (k in l) {\n if (_has(k, l)) {\n result[k] = _has(k, r) ? fn(k, l[k], r[k]) : l[k];\n }\n }\n\n for (k in r) {\n if (_has(k, r) && !_has(k, result)) {\n result[k] = r[k];\n }\n }\n\n return result;\n});\nmodule.exports = mergeWithKey;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar _reduce = /*#__PURE__*/require('./internal/_reduce');\n\n/**\n * Returns a single item by iterating through the list, successively calling\n * the iterator function and passing it an accumulator value and the current\n * value from the array, and then passing the result to the next call.\n *\n * The iterator function receives two values: *(acc, value)*. It may use\n * [`R.reduced`](#reduced) to shortcut the iteration.\n *\n * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function\n * is *(value, acc)*.\n *\n * Note: `R.reduce` does not skip deleted or unassigned indices (sparse\n * arrays), unlike the native `Array.prototype.reduce` method. For more details\n * on this behavior, see:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description\n *\n * Dispatches to the `reduce` method of the third argument, if present. When\n * doing so, it is up to the user to handle the [`R.reduced`](#reduced)\n * shortcuting, as this is not implemented by `reduce`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, b) -> a) -> a -> [b] -> a\n * @param {Function} fn The iterator function. Receives two values, the accumulator and the\n * current element from the array.\n * @param {*} acc The accumulator value.\n * @param {Array} list The list to iterate over.\n * @return {*} The final, accumulated value.\n * @see R.reduced, R.addIndex, R.reduceRight\n * @example\n *\n * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10\n * // - -10\n * // / \\ / \\\n * // - 4 -6 4\n * // / \\ / \\\n * // - 3 ==> -3 3\n * // / \\ / \\\n * // - 2 -1 2\n * // / \\ / \\\n * // 0 1 0 1\n *\n * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)\n */\n\n\nvar reduce = /*#__PURE__*/_curry3(_reduce);\nmodule.exports = reduce;","var _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\n/**\n * Gives a single-word string description of the (native) type of a value,\n * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\n * attempt to distinguish user Object types any further, reporting them all as\n * 'Object'.\n *\n * @func\n * @memberOf R\n * @since v0.8.0\n * @category Type\n * @sig (* -> {*}) -> String\n * @param {*} val The value to test\n * @return {String}\n * @example\n *\n * R.type({}); //=> \"Object\"\n * R.type(1); //=> \"Number\"\n * R.type(false); //=> \"Boolean\"\n * R.type('s'); //=> \"String\"\n * R.type(null); //=> \"Null\"\n * R.type([]); //=> \"Array\"\n * R.type(/[A-z]/); //=> \"RegExp\"\n * R.type(() => {}); //=> \"Function\"\n * R.type(undefined); //=> \"Undefined\"\n */\n\n\nvar type = /*#__PURE__*/_curry1(function type(val) {\n return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);\n});\nmodule.exports = type;","module.exports = __WEBPACK_EXTERNAL_MODULE__685__;","module.exports = __WEBPACK_EXTERNAL_MODULE__645__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export enum Type {\n Array = \"Array\",\n Boolean = \"Boolean\",\n ConceptUuid = \"ConceptUuid\",\n Number = \"Number\",\n Object = \"Object\",\n String = \"String\",\n UUID = \"UUID\",\n PersonAttributeTypeUuid = \"PersonAttributeTypeUuid\",\n}\n\n// Full-powered typing for Config and Schema trees depends on being able to\n// have types like `string not \"_default\"`. There is an experimental PR\n// for this feature, https://github.com/microsoft/TypeScript/pull/29317\n// But it is not likely to be merged any time terribly soon. (Nov 11, 2020)\nexport interface ConfigSchema {\n [key: string]: ConfigSchema | ConfigValue;\n _type?: Type;\n _validators?: Array<Validator>;\n _elements?: ConfigSchema;\n}\n\nexport interface Config extends Object {\n [moduleName: string]: { [key: string]: any };\n}\n\nexport interface ConfigObject extends Object {\n [key: string]: any;\n}\n\nexport type ConfigValue =\n | string\n | number\n | boolean\n | void\n | Array<any>\n | object;\n\nexport interface ExtensionSlotConfig {\n add?: Array<string>;\n remove?: Array<string>;\n order?: Array<string>;\n configure?: ExtensionSlotConfigureValueObject;\n}\n\nexport interface ExtensionSlotConfigureValueObject {\n [key: string]: object;\n}\n\nexport interface ExtensionSlotConfigObject {\n add?: Array<string>;\n remove?: Array<string>;\n order?: Array<string>;\n}\n\nexport type ProvidedConfig = {\n source: string;\n config: Config;\n};\n\nexport type ValidatorFunction = (value: any) => boolean;\n\nexport type Validator = (value: any) => void | string;\n","import { Validator, ValidatorFunction } from \"../types\";\n\nexport function validator(\n validationFunction: ValidatorFunction,\n message: string\n): Validator {\n return (value) => {\n if (!validationFunction(value)) {\n return message;\n }\n };\n}\n","import { validator } from \"./validator\";\n\nexport const isArray = validator(\n (val) => Array.isArray(val),\n \"must be an array\"\n);\n\nexport const isBoolean = validator(\n (val) => typeof val === \"boolean\",\n \"must be a boolean\"\n);\n\nexport const isNumber = validator(\n (val) => typeof val === \"number\",\n \"must be a number\"\n);\n\nexport const isString = validator(\n (val) => typeof val === \"string\",\n \"must be a string\"\n);\n\nexport const isObject = validator(\n (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null,\n \"must be an object (not an array or null)\"\n);\n\nexport const isUuid = validator(\n (val) =>\n /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(\n val\n ) || /^[0-9a-f]{36}$/i.test(val),\n \"must be a valid UUID or a 36-character hexadecimal string\"\n);\n","import { createGlobalStore, getGlobalStore } from \"@openmrs/esm-state\";\nimport {\n Config,\n ConfigObject,\n ConfigSchema,\n ExtensionSlotConfigObject,\n ProvidedConfig,\n} from \"../types\";\n\n/**\n * Internal store\n * A store of the inputs and internal state\n * @internal\n */\nexport interface ConfigInternalStore {\n /** Configs added using the `provide` function */\n providedConfigs: Array<ProvidedConfig>;\n /** An object with module names for keys and schemas for values */\n schemas: Record<string, ConfigSchema>;\n /** Whether to use dev defaults or not */\n devDefaultsAreOn: boolean;\n}\n\nconst configInternalStoreInitialValue = {\n providedConfigs: [],\n schemas: {},\n devDefaultsAreOn: getAreDevDefaultsOn(),\n};\n\n/**\n * @internal\n */\nexport const configInternalStore = createGlobalStore<ConfigInternalStore>(\n \"config-internal\",\n configInternalStoreInitialValue\n);\n\nlet lastValueOfDevDefaultsAreOn = getAreDevDefaultsOn();\nconfigInternalStore.subscribe((state) => {\n if (state.devDefaultsAreOn != lastValueOfDevDefaultsAreOn) {\n setAreDevDefaultsOn(state.devDefaultsAreOn);\n lastValueOfDevDefaultsAreOn = state.devDefaultsAreOn;\n }\n});\n\nfunction setAreDevDefaultsOn(value: boolean) {\n localStorage.setItem(\"openmrs:configAreDevDefaultsOn\", JSON.stringify(value));\n}\n\nfunction getAreDevDefaultsOn(): boolean {\n try {\n return JSON.parse(\n localStorage.getItem(\"openmrs:configAreDevDefaultsOn\") || \"false\"\n );\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Temporary config\n * LocalStorage-based config used by the implementer tools\n * @internal\n */\nexport interface TemporaryConfigStore {\n config: Config;\n}\n\nexport const temporaryConfigStore = createGlobalStore<TemporaryConfigStore>(\n \"temporary-config\",\n { config: getTemporaryConfig() }\n);\n\ntemporaryConfigStore.subscribe((state) => {\n setTemporaryConfig(state.config);\n});\n\nfunction setTemporaryConfig(value: Config) {\n localStorage.setItem(\"openmrs:temporaryConfig\", JSON.stringify(value));\n}\n\nfunction getTemporaryConfig(): Config {\n try {\n return JSON.parse(localStorage.getItem(\"openmrs:temporaryConfig\") || \"{}\");\n } catch (e) {\n return {};\n }\n}\n\n/**\n * Config-side extension store\n * Just what esm-config needs to know about extension state. This\n * is to avoid having esm-config depend on esm-extensions, which would\n * create a circular dependency.\n * @internal\n */\nexport interface ConfigExtensionStore {\n mountedExtensions: Array<ConfigExtensionStoreElement>;\n}\n\n/**\n * @internal\n */\nexport interface ConfigExtensionStoreElement {\n slotModuleName: string;\n extensionModuleName: string;\n slotName: string;\n extensionId: string;\n}\n\n/**\n * @internal\n */\nexport const configExtensionStore = createGlobalStore<ConfigExtensionStore>(\n \"config-extensions\",\n { mountedExtensions: [] }\n);\n\n/**\n * Output configs\n *\n * Each module has its own stores for its config and its extension slots' configs.\n */\nexport interface ConfigStore {\n config: ConfigObject | null;\n loaded: boolean;\n}\n\nfunction initializeConfigStore() {\n return {\n config: null,\n loaded: false,\n };\n}\n\nexport function getConfigStore(moduleName: string) {\n // We use a store for each module's config, named `config-${moduleName}`\n return getGlobalStore<ConfigStore>(\n `config-module-${moduleName}`,\n initializeConfigStore()\n );\n}\n\nexport interface ExtensionSlotConfigsStore {\n /** Configs for each extension slot in the module, indexed by slot name */\n extensionSlotConfigs: Record<string, ExtensionSlotConfigObject>;\n loaded: boolean;\n}\n\nfunction initializeExtensionSlotConfigsStore() {\n return {\n extensionSlotConfigs: {},\n loaded: false,\n };\n}\n\nexport function getExtensionSlotsConfigStore(moduleName: string) {\n // Each module gets one store for the configs of all the slots it contains\n return getGlobalStore<ExtensionSlotConfigsStore>(\n `config-extension-slots-${moduleName}`,\n initializeExtensionSlotConfigsStore()\n );\n}\n\n// A store for each mounted extension's config\nexport function getExtensionConfigStore(\n extensionSlotModuleName: string,\n attachedExtensionSlotName: string,\n extensionId: string\n) {\n return getGlobalStore<ConfigStore>(\n `config-extension-${extensionSlotModuleName}-${attachedExtensionSlotName}-${extensionId}`,\n initializeConfigStore()\n );\n}\n\n// A store of the implementer tools output config\nexport interface ImplementerToolsConfigStore {\n config: Config;\n}\n\nexport const implementerToolsConfigStore =\n createGlobalStore<ImplementerToolsConfigStore>(\"config-implementer-tools\", {\n config: {},\n });\n","import { clone, reduce, mergeDeepRight } from \"ramda\";\nimport {\n Config,\n ConfigObject,\n ConfigSchema,\n ExtensionSlotConfig,\n ExtensionSlotConfigObject,\n Type,\n} from \"../types\";\nimport {\n isArray,\n isBoolean,\n isUuid,\n isNumber,\n isObject,\n isString,\n} from \"../validators/type-validators\";\nimport {\n ConfigExtensionStore,\n ConfigInternalStore,\n configInternalStore,\n ConfigStore,\n configExtensionStore,\n getConfigStore,\n getExtensionConfigStore,\n getExtensionSlotsConfigStore,\n implementerToolsConfigStore,\n temporaryConfigStore,\n} from \"./state\";\nimport type {} from \"@openmrs/esm-globals\";\nimport { TemporaryConfigStore } from \"..\";\n\n/**\n * Store setup\n *\n *\n * Set up stores and subscriptions so that inputs get processed appropriately.\n *\n * There are *input* stores and *output* stores. The *input* stores\n * are configInternalStore, temporaryConfigStore, and configExtensionStore. The\n * output stores are set in the `compute...` functions. They are the module\n * config stores, the extension slot config stores (by module), the extension\n * config stores, and the implementer tools config store.\n *\n * This code sets up the subscriptions so that when an input store changes,\n * the correct set of output stores are updated.\n *\n * All `compute...` functions except `computeExtensionConfigs` are pure\n * (or are supposed to be). `computeExtensionConfigs` calls `getGlobalStore`,\n * which creates stores.\n */\ncomputeModuleConfig(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeModuleConfig(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeModuleConfig(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeImplementerToolsConfig(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeImplementerToolsConfig(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeImplementerToolsConfig(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeExtensionSlotConfigs(\n configInternalStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeExtensionSlotConfigs(configState, temporaryConfigStore.getState())\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeExtensionSlotConfigs(configInternalStore.getState(), tempConfigState)\n);\n\ncomputeExtensionConfigs(\n configInternalStore.getState(),\n configExtensionStore.getState(),\n temporaryConfigStore.getState()\n);\nconfigInternalStore.subscribe((configState) =>\n computeExtensionConfigs(\n configState,\n configExtensionStore.getState(),\n temporaryConfigStore.getState()\n )\n);\nconfigExtensionStore.subscribe((extensionState) =>\n computeExtensionConfigs(\n configInternalStore.getState(),\n extensionState,\n temporaryConfigStore.getState()\n )\n);\ntemporaryConfigStore.subscribe((tempConfigState) =>\n computeExtensionConfigs(\n configInternalStore.getState(),\n configExtensionStore.getState(),\n tempConfigState\n )\n);\n\nfunction computeModuleConfig(\n state: ConfigInternalStore,\n tempState: TemporaryConfigStore\n) {\n for (let moduleName of Object.keys(state.schemas)) {\n const config = getConfigForModule(moduleName, state, tempState);\n const moduleStore = getConfigStore(moduleName);\n moduleStore.setState({ loaded: true, config });\n }\n}\n\nfunction computeExtensionSlotConfigs(\n state: ConfigInternalStore,\n tempState: TemporaryConfigStore\n) {\n const slotConfigsByModule = getExtensionSlotConfigs(state, tempState);\n for (let [moduleName, extensionSlotConfigs] of Object.entries(\n slotConfigsByModule\n )) {\n const moduleStore = getExtensionSlotsConfigStore(moduleName);\n moduleStore.setState({ loaded: true, extensionSlotConfigs });\n }\n}\n\nfunction computeImplementerToolsConfig(\n state: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n) {\n const config = getImplementerToolsConfig(state, tempConfigState);\n implementerToolsConfigStore.setState({ config });\n}\n\nfunction computeExtensionConfigs(\n configState: ConfigInternalStore,\n extensionState: ConfigExtensionStore,\n tempConfigState: TemporaryConfigStore\n) {\n for (let extension of extensionState.mountedExtensions) {\n const extensionStore = getExtensionConfigStore(\n extension.slotModuleName,\n extension.slotName,\n extension.extensionId\n );\n const config = getExtensionConfig(\n extension.slotModuleName,\n extension.extensionModuleName,\n extension.slotName,\n extension.extensionId,\n configState,\n tempConfigState\n );\n extensionStore.setState({ loaded: true, config });\n }\n}\n\n/*\n * API\n *\n */\n\nexport function defineConfigSchema(moduleName: string, schema: ConfigSchema) {\n validateConfigSchema(moduleName, schema);\n const state = configInternalStore.getState();\n configInternalStore.setState({\n schemas: { ...state.schemas, [moduleName]: schema },\n });\n}\n\nexport function provide(config: Config, sourceName = \"provided\") {\n const state = configInternalStore.getState();\n configInternalStore.setState({\n providedConfigs: [...state.providedConfigs, { source: sourceName, config }],\n });\n}\n\n/**\n * A promise-based way to access the config as soon as it is fully loaded.\n * If it is already loaded, resolves the config in its present state.\n *\n * In general you should use the Unistore-based API provided by\n * `getConfigStore`, which allows creating a subscription so that you always\n * have the latest config. If using React, just use `useConfig`.\n *\n * This is a useful function if you need to get the config in the course\n * of the execution of a function.\n *\n * @param moduleName The name of the module for which to look up the config\n */\nexport function getConfig(moduleName: string): Promise<Config> {\n return new Promise<Config>((resolve) => {\n const store = getConfigStore(moduleName);\n function update(state: ConfigStore) {\n if (state.loaded && state.config) {\n resolve(state.config);\n unsubscribe && unsubscribe();\n }\n }\n update(store.getState());\n const unsubscribe = store.subscribe(update);\n });\n}\n\n/**\n * Validate and interpolate defaults for `providedConfig` according to `schema`\n *\n * @param schema a configuration schema\n * @param providedConfig an object of config values (without the top-level module name)\n * @param keyPathContext a dot-deparated string which helps the user figure out where\n * the provided config came from\n */\nexport function processConfig(\n schema: ConfigSchema,\n providedConfig: ConfigObject,\n keyPathContext: string,\n devDefaultsAreOn: boolean = false\n) {\n validateConfig(schema, providedConfig, keyPathContext);\n const config = setDefaults(schema, providedConfig, devDefaultsAreOn);\n return config;\n}\n\n/*\n * Helper functions\n *\n */\n\n/**\n * Returns the configuration for an extension. This configuration is specific\n * to the slot in which it is mounted, and its ID within that slot.\n *\n * The schema for that configuration is the schema for the module in which the\n * extension is defined.\n *\n * @param slotModuleName The name of the module which defines the extension slot\n * @param extensionModuleName The name of the module which defines the extension (and therefore the config schema)\n * @param slotName The name of the extension slot where the extension is mounted\n * @param extensionId The ID of the extension in its slot\n */\nfunction getExtensionConfig(\n slotModuleName: string,\n extensionModuleName: string,\n slotName: string,\n extensionId: string,\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n) {\n const providedConfigs = getProvidedConfigs(configState, tempConfigState);\n const slotModuleConfig = mergeConfigsFor(slotModuleName, providedConfigs);\n const configOverride =\n slotModuleConfig?.extensions?.[slotName]?.configure?.[extensionId] ?? {};\n const extensionModuleConfig = mergeConfigsFor(\n extensionModuleName,\n providedConfigs\n );\n const extensionConfig = mergeConfigs([extensionModuleConfig, configOverride]);\n const schema = configState.schemas[extensionModuleName]; // TODO: validate that a schema exists for the module\n validateConfig(schema, extensionConfig, extensionModuleName);\n const config = setDefaults(\n schema,\n extensionConfig,\n configState.devDefaultsAreOn\n );\n delete config.extensions;\n return config;\n}\n\nfunction getImplementerToolsConfig(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Record<string, Config> {\n let result = getSchemaWithValuesAndSources(clone(configState.schemas));\n const configsAndSources = [\n ...configState.providedConfigs.map((c) => [c.config, c.source]),\n [tempConfigState.config, \"temporary config\"],\n ] as Array<[Config, string]>;\n for (let [config, source] of configsAndSources) {\n result = mergeConfigs([result, createValuesAndSourcesTree(config, source)]);\n }\n return result;\n}\n\nfunction getSchemaWithValuesAndSources(schema) {\n if (schema.hasOwnProperty(\"_default\")) {\n return { ...schema, _value: schema._default, _source: \"default\" };\n } else if (isOrdinaryObject(schema)) {\n return Object.keys(schema).reduce((obj, key) => {\n obj[key] = getSchemaWithValuesAndSources(schema[key]);\n return obj;\n }, {});\n } else {\n // Schema is bad; error will have been logged during schema validation\n return {};\n }\n}\n\nfunction createValuesAndSourcesTree(config: ConfigObject, source: string) {\n if (isOrdinaryObject(config)) {\n return Object.keys(config).reduce((obj, key) => {\n obj[key] = createValuesAndSourcesTree(config[key], source);\n return obj;\n }, {});\n } else {\n return { _value: config, _source: source };\n }\n}\n\nfunction getExtensionSlotConfigs(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Record<string, Record<string, ExtensionSlotConfigObject>> {\n const allConfigs = mergeConfigs(\n getProvidedConfigs(configState, tempConfigState)\n );\n const slotConfigPerModule: Record<\n string,\n Record<string, ExtensionSlotConfig>\n > = Object.keys(allConfigs).reduce((obj, key) => {\n if (allConfigs[key]?.extensions) {\n obj[key] = allConfigs[key]?.extensions;\n }\n return obj;\n }, {});\n validateAllExtensionSlotConfigs(slotConfigPerModule);\n return slotConfigPerModule;\n}\n\nfunction validateAllExtensionSlotConfigs(\n slotConfigPerModule: Record<string, Record<string, ExtensionSlotConfig>>\n) {\n for (let [moduleName, configBySlotName] of Object.entries(\n slotConfigPerModule\n )) {\n for (let [slotName, config] of Object.entries(configBySlotName)) {\n validateExtensionSlotConfig(config, moduleName, slotName);\n }\n }\n}\n\nfunction validateExtensionSlotConfig(\n config: ExtensionSlotConfig,\n moduleName: string,\n slotName: string\n): void {\n const errorPrefix = `Extension slot config '${moduleName}.extensions.${slotName}`;\n const invalidKeys = Object.keys(config).filter(\n (k) => ![\"add\", \"remove\", \"order\", \"configure\"].includes(k)\n );\n if (invalidKeys.length) {\n console.error(\n errorPrefix + `' contains invalid keys '${invalidKeys.join(\"', '\")}'`\n );\n }\n if (config.add) {\n if (\n !Array.isArray(config.add) ||\n !config.add.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.add' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.remove) {\n if (\n !Array.isArray(config.remove) ||\n !config.remove.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.remove' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.order) {\n if (\n !Array.isArray(config.order) ||\n !config.order.every((n) => typeof n === \"string\")\n ) {\n console.error(\n errorPrefix +\n `.order' is invalid. Must be an array of strings (extension IDs)`\n );\n }\n }\n if (config.configure) {\n if (!isOrdinaryObject(config.configure)) {\n console.error(\n errorPrefix +\n `.configure' is invalid. Must be an object with extension IDs for keys`\n );\n }\n }\n}\n\nfunction getProvidedConfigs(\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): Array<Config> {\n return [\n ...configState.providedConfigs.map((c) => c.config),\n tempConfigState.config,\n ];\n}\n\nfunction validateConfigSchema(\n moduleName: string,\n schema: ConfigSchema,\n keyPath = \"\"\n) {\n const updateMessage = `Please verify that you are running the latest version and, if so, alert the maintainer.`;\n\n for (const key of Object.keys(schema).filter((k) => !k.startsWith(\"_\"))) {\n const thisKeyPath = keyPath + (keyPath && \".\") + key;\n const schemaPart = schema[key] as ConfigSchema;\n\n if (!isOrdinaryObject(schemaPart)) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}`\n );\n continue;\n }\n\n if (!schemaPart.hasOwnProperty(\"_default\")) {\n // recurse for nested config keys\n validateConfigSchema(moduleName, schemaPart, thisKeyPath);\n }\n\n const elements = schemaPart._elements;\n if (hasObjectSchema(elements)) {\n validateConfigSchema(moduleName, elements, thisKeyPath + \"._elements\");\n }\n\n if (schemaPart._validators) {\n for (let validator of schemaPart._validators) {\n if (typeof validator !== \"function\") {\n console.error(\n `${moduleName} has invalid validator for key '${thisKeyPath}' ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: validators must be functions that return either ` +\n `undefined or an error string. Received ${validator}.`\n );\n }\n }\n }\n\n const valueType = schemaPart._type;\n if (valueType && !Object.values(Type).includes(valueType)) {\n console.error(\n `${moduleName} has invalid type for key '${thisKeyPath}' ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: the allowed types are ${Object.values(\n Type\n ).join(\", \")}. ` +\n `Received '${valueType}'`\n );\n }\n\n if (\n Object.keys(schemaPart).every((k) =>\n [\"_description\", \"_validators\", \"_elements\", \"_type\"].includes(k)\n ) &&\n !keyPath.includes(\"._elements\")\n ) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: all config elements must have a default. ` +\n `Received ${JSON.stringify(schemaPart)}`\n );\n }\n\n if (\n elements &&\n valueType &&\n ![Type.Array, Type.Object].includes(valueType)\n ) {\n console.error(\n `${moduleName} has bad config schema definition for key '${thisKeyPath}'. ${updateMessage}.` +\n `\\n\\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. ` +\n `Received ${JSON.stringify(valueType)}`\n );\n }\n }\n}\n\nfunction getConfigForModule(\n moduleName: string,\n configState: ConfigInternalStore,\n tempConfigState: TemporaryConfigStore\n): ConfigObject {\n if (!configState.schemas.hasOwnProperty(moduleName)) {\n throw Error(\"No config schema has been defined for \" + moduleName);\n }\n\n const schema = configState.schemas[moduleName];\n const inputConfig = mergeConfigsFor(\n moduleName,\n getProvidedConfigs(configState, tempConfigState)\n );\n validateConfig(schema, inputConfig, moduleName);\n const config = setDefaults(schema, inputConfig, configState.devDefaultsAreOn);\n delete config.extensions;\n return config;\n}\n\nfunction mergeConfigsFor(\n moduleName: string,\n allConfigs: Array<Config>\n): ConfigObject {\n const allConfigsForModule = allConfigs\n .map(({ [moduleName]: c }) => c)\n .filter((c) => !!c);\n\n return mergeConfigs(allConfigsForModule);\n}\n\nfunction mergeConfigs(configs: Array<Config>) {\n const mergeDeepAll = reduce(mergeDeepRight);\n return mergeDeepAll({}, configs) as Config;\n}\n\n// Recursively check the provided config tree to make sure that all\n// of the provided properties exist in the schema. Run validators\n// where present in the schema.\nconst validateConfig = (\n schema: ConfigSchema,\n config: ConfigObject,\n keyPath = \"\"\n) => {\n for (const key of Object.keys(config)) {\n const value = config[key];\n const thisKeyPath = keyPath + \".\" + key;\n const schemaPart = schema[key] as ConfigSchema;\n\n if (!schema.hasOwnProperty(key)) {\n if (key !== \"extensions\") {\n console.error(\n `Unknown config key '${thisKeyPath}' provided. Ignoring.`\n );\n }\n\n continue;\n }\n\n checkType(thisKeyPath, schemaPart._type, value);\n runValidators(thisKeyPath, schemaPart._validators, value);\n\n if (isOrdinaryObject(value)) {\n // structurally validate only if there's elements specified\n // or there's a `_default` value, which indicates a freeform object\n if (schemaPart._type === Type.Object) {\n validateDictionary(schemaPart, value, thisKeyPath);\n } else if (!schemaPart.hasOwnProperty(\"_default\")) {\n // recurse to validate nested object structure\n validateConfig(schemaPart, value, thisKeyPath);\n }\n } else {\n if (schemaPart._type === Type.Array) {\n validateArray(schemaPart, value, thisKeyPath);\n }\n }\n }\n};\n\nfunction validateDictionary(\n dictionarySchema: ConfigSchema,\n config: ConfigObject,\n keyPath: string\n) {\n if (dictionarySchema._elements) {\n for (const key of Object.keys(config)) {\n const value = config[key];\n validateConfig(dictionarySchema._elements, value, `${keyPath}.${key}`);\n }\n }\n}\n\nfunction validateArray(\n arraySchema: ConfigSchema,\n value: ConfigObject,\n keyPath: string\n) {\n // if there is an array element object schema, verify that elements match it\n if (hasObjectSchema(arraySchema._elements)) {\n for (let i = 0; i < value.length; i++) {\n validateConfig(arraySchema._elements, value[i], `${keyPath}[${i}]`);\n }\n }\n\n for (let i = 0; i < value.length; i++) {\n checkType(`${keyPath}[${i}]`, arraySchema._elements?._type, value[i]);\n runValidators(\n `${keyPath}[${i}]`,\n arraySchema._elements?._validators,\n value[i]\n );\n }\n}\n\nfunction checkType(keyPath: string, _type: Type | undefined, value: any) {\n if (_type) {\n const validator: Record<string, Function> = {\n Array: isArray,\n Boolean: isBoolean,\n ConceptUuid: isUuid,\n Number: isNumber,\n Object: isObject,\n String: isString,\n UUID: isUuid,\n };\n runValidators(keyPath, [validator[_type]], value);\n }\n}\n\nfunction runValidators(\n keyPath: string,\n validators: Array<Function> | undefined,\n value: any\n) {\n if (validators) {\n try {\n for (let validator of validators) {\n const validatorResult = validator(value);\n\n if (typeof validatorResult === \"string\") {\n const valueString =\n typeof value === \"object\" ? JSON.stringify(value) : value;\n console.error(\n `Invalid configuration value ${valueString} for ${keyPath}: ${validatorResult}`\n );\n }\n }\n } catch (e) {\n console.error(`Skipping invalid validator at \"${keyPath}\".`);\n }\n }\n}\n\n// Recursively fill in the config with values from the schema.\nconst setDefaults = (\n schema: ConfigSchema,\n inputConfig: Config,\n devDefaultsAreOn: boolean\n) => {\n const config = clone(inputConfig);\n\n if (!schema) {\n return config;\n }\n\n for (const key of Object.keys(schema)) {\n const configPart = config[key];\n const schemaPart = schema[key] as ConfigSchema;\n\n // The `schemaPart &&` clause of this `if` statement will only fail\n // if the schema is very invalid. It is there to prevent the app from\n // crashing completely, though it will produce unexpected behavior.\n // If this happens, there should be legible errors in the console from\n // the schema validator.\n if (schemaPart && schemaPart.hasOwnProperty(\"_default\")) {\n // We assume that schemaPart defines a config value, since it has\n // a property `_default`.\n if (!config.hasOwnProperty(key)) {\n const devDefault = schemaPart[\"_devDefault\"] || schemaPart[\"_default\"];\n\n (config[key] as any) = devDefaultsAreOn\n ? devDefault\n : schemaPart[\"_default\"];\n }\n\n // We also check if it is an object or array with object elements, in which case we recurse\n const elements = schemaPart._elements;\n\n if (configPart && hasObjectSchema(elements)) {\n if (schemaPart._type === Type.Array) {\n const configWithDefaults = configPart.map((conf: Config) =>\n setDefaults(elements, conf, devDefaultsAreOn)\n );\n config[key] = configWithDefaults;\n } else if (schemaPart._type === Type.Object) {\n for (let objectKey of Object.keys(configPart)) {\n configPart[objectKey] = setDefaults(\n elements,\n configPart[objectKey],\n devDefaultsAreOn\n );\n }\n }\n }\n } else if (isOrdinaryObject(schemaPart)) {\n // Since schemaPart has no property \"_default\", if it's an ordinary object\n // (unlike, importantly, the validators array), we assume it is a parent config property.\n // We recurse to config[key] and schema[key]. Default config[key] to {}.\n const selectedConfigPart = config.hasOwnProperty(key) ? configPart : {};\n\n if (isOrdinaryObject(selectedConfigPart)) {\n config[key] = setDefaults(\n schemaPart,\n selectedConfigPart,\n devDefaultsAreOn\n );\n }\n }\n }\n\n return config;\n};\n\nfunction hasObjectSchema(\n elementsSchema: Object | undefined\n): elementsSchema is ConfigSchema {\n return (\n !!elementsSchema &&\n Object.keys(elementsSchema).filter(\n (e) => ![\"_default\", \"_validators\"].includes(e)\n ).length > 0\n );\n}\n\nfunction isOrdinaryObject(value) {\n return typeof value === \"object\" && !Array.isArray(value) && value !== null;\n}\n","function trimTrailingSlash(str: string) {\n return str.replace(/\\/$/, \"\");\n}\n\n/**\n * Interpolates a string with openmrsBase and openmrsSpaBase.\n *\n * Useful for accepting `${openmrsBase}` or `${openmrsSpaBase}` template\n * parameters in configurable URLs.\n *\n * @param template A string to interpolate\n * @category Navigation\n */\nexport function interpolateUrl(template: string): string {\n const openmrsSpaBase = trimTrailingSlash(window.getOpenmrsSpaBase());\n return interpolateString(template, {\n openmrsBase: window.openmrsBase,\n openmrsSpaBase: openmrsSpaBase,\n }).replace(/^\\/\\//, \"/\"); // remove extra initial slash if present\n}\n\n/**\n * Interpolates values of `params` into the `template` string.\n *\n * Useful for additional template parameters in URLs.\n *\n * Example usage:\n * ```js\n * navigate({\n * to: interpolateString(\n * config.links.patientChart,\n * { patientUuid: patient.uuid }\n * )\n * });\n * ```\n *\n * @param template With optional params wrapped in `${ }`\n * @param params Values to interpolate into the string template\n * @category Navigation\n */\nexport function interpolateString(template: string, params: object): string {\n const names = Object.keys(params);\n return names.reduce(\n (prev, curr) => prev.split(\"${\" + curr + \"}\").join(params[curr]),\n template\n );\n}\n","import { navigateToUrl } from \"single-spa\";\nimport { interpolateUrl } from \"./interpolate-string\";\nimport type {} from \"@openmrs/esm-globals\";\n\nfunction trimTrailingSlash(str: string) {\n return str.replace(/\\/$/, \"\");\n}\n\nexport interface NavigateOptions {\n to: string;\n}\n\n/**\n * Calls `location.assign` for non-SPA paths and [navigateToUrl](https://single-spa.js.org/docs/api/#navigatetourl) for SPA paths\n *\n * Example usage:\n * ```js\n * const config = getConfig();\n * const submitHandler = () => {\n * navigate({ to: config.links.submitSuccess });\n * };\n * ```\n *\n * @param to The target path or URL. Supports templating with 'openmrsBase' and 'openmrsSpaBase'.\n * For example, `${openmrsSpaBase}/home` will resolve to `/openmrs/spa/home`\n * for implementations using the standard OpenMRS and SPA base paths.\n * @category Navigation\n */\nexport function navigate({ to }: NavigateOptions): void {\n const openmrsSpaBase = trimTrailingSlash(window.getOpenmrsSpaBase());\n const target = interpolateUrl(to);\n const isSpaPath = target.startsWith(openmrsSpaBase);\n\n if (isSpaPath) {\n navigateToUrl(target);\n } else {\n window.location.assign(target);\n }\n}\n","import { validator } from \"./validator\";\n\n/**\n * Verifies that the value is between the provided minimum and maximum\n *\n * @param min Minimum acceptable value\n * @param max Maximum acceptable value\n */\nexport const inRange = (min: number, max: number) => {\n return validator(\n (val) => min <= val && val <= max,\n `must be between ${min} and ${max}`\n );\n};\n\n/**\n * Verifies that a string contains only the default URL template\n * parameters, plus any specified in `allowedTemplateParameters`.\n *\n * @param allowedTemplateParameters To be added to `openmrsBase` and `openmrsSpaBase`\n * @category Navigation\n */\nexport const isUrlWithTemplateParameters = (\n allowedTemplateParameters: string[]\n) => {\n const allowedParams = allowedTemplateParameters.concat([\n \"openmrsBase\",\n \"openmrsSpaBase\",\n ]);\n return validator((val) => {\n if (!val || typeof val != \"string\") {\n return false;\n }\n\n const rx = /\\${(.*?)}/g;\n let match = rx.exec(val);\n\n while (match) {\n if (!allowedParams.includes(match[1])) {\n return false;\n }\n\n match = rx.exec(val);\n }\n\n return true;\n }, \"should be a URL or path. The allowed template parameters are \" + allowedParams.map((p) => \"${\" + p + \"}\").join(\", \"));\n};\n\n/**\n * Verifies that a string contains only the default URL template parameters.\n *\n * @category Navigation\n */\nexport const isUrl = isUrlWithTemplateParameters([]);\n\nexport const validators = {\n inRange,\n isUrl,\n isUrlWithTemplateParameters,\n};\n","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","function n(n,t){for(var r in t)n[r]=t[r];return n}export default function(t){var r=[];function u(n){for(var t=[],u=0;u<r.length;u++)r[u]===n?n=null:t.push(r[u]);r=t}function e(u,e,f){t=e?u:n(n({},t),u);for(var i=r,o=0;o<i.length;o++)i[o](t,f)}return t=t||{},{action:function(n){function r(t){e(t,!1,n)}return function(){for(var u=arguments,e=[t],f=0;f<arguments.length;f++)e.push(u[f]);var i=n.apply(this,e);if(null!=i)return i.then?i.then(r):r(i)}},setState:e,subscribe:function(n){return r.push(n),function(){u(n)}},unsubscribe:u,getState:function(){return t}}}\n//# sourceMappingURL=unistore.es.js.map\n","import createStore, { Store } from \"unistore\";\n\ninterface StoreEntity {\n value: Store<any>;\n active: boolean;\n}\n\nconst availableStores: Record<string, StoreEntity> = {};\n\n/**\n * Creates a Unistore [store](https://github.com/developit/unistore#store).\n *\n * @param name A name by which the store can be looked up later.\n * Must be unique across the entire application.\n * @param initialState An object which will be the initial state of the store.\n * @returns The newly created store.\n */\nexport function createGlobalStore<TState>(\n name: string,\n initialState: TState\n): Store<TState> {\n const available = availableStores[name];\n\n if (available) {\n if (available.active) {\n console.error(\n \"Cannot override an existing store. Make sure that stores are only created once.\"\n );\n } else {\n available.value.setState(initialState, true);\n }\n\n available.active = true;\n return available.value;\n } else {\n const store = createStore(initialState);\n\n availableStores[name] = {\n value: store,\n active: true,\n };\n\n return store;\n }\n}\n\n/**\n * Returns the existing [store](https://github.com/developit/unistore#store) named `name`,\n * or creates a new store named `name` if none exists.\n *\n * @param name The name of the store to look up.\n * @param fallbackState The initial value of the new store if no store named `name` exists.\n * @returns The found or newly created store.\n */\nexport function getGlobalStore<TState = any>(\n name: string,\n fallbackState?: TState\n): Store<TState> {\n const available = availableStores[name];\n\n if (!available) {\n const store = createStore(fallbackState);\n availableStores[name] = {\n value: store,\n active: false,\n };\n return store;\n }\n\n return available.value;\n}\n\nexport interface AppState {}\n\n/**\n * @internal\n */\nexport function createAppState(initialState: AppState) {\n return createGlobalStore(\"app\", initialState);\n}\n\n/**\n * @returns The [store](https://github.com/developit/unistore#store) named `app`.\n */\nexport function getAppState() {\n return getGlobalStore<AppState>(\"app\", {});\n}\n\nexport function subscribeTo<T, U>(\n store: Store<T>,\n select: (state: T) => U,\n handle: (subState: U) => void\n) {\n let previous = select(store.getState());\n\n return store.subscribe((state) => {\n const current = select(state);\n\n if (current !== previous) {\n previous = current;\n handle(current);\n }\n });\n}\n","export function update<T extends Record<string, any>>(\n obj: T,\n [property, ...restPropertyPath]: Array<string>,\n value: any\n): T {\n if (!property) {\n return obj;\n } else if (restPropertyPath.length === 0) {\n return { ...obj, [property]: value };\n } else {\n return {\n ...obj,\n [property]: update(obj[property] || {}, restPropertyPath, value),\n };\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__45__;","module.exports = __WEBPACK_EXTERNAL_MODULE__954__;","module.exports = __WEBPACK_EXTERNAL_MODULE__493__;","module.exports = __WEBPACK_EXTERNAL_MODULE__792__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","/* The svg container is a div that contains all the OpenMRS svgs, with\n * an HTML id that can be referenced with the following code:\n * <svg role=\"img\">\n * <use link:href=\"#the-svg-id\"></use>\n * </svg>\n *\n * This approach is known as \"svg sprites\"\n */\nconst svgContainer = document.createElement(\"div\");\nconst appendContainer = () => {\n document.body.appendChild(svgContainer);\n};\nsvgContainer.id = \"omrs-svgs-container\";\nsvgContainer.style.display = \"none\";\n\nif (document.readyState === \"complete\") {\n appendContainer();\n} else {\n window.addEventListener(\"load\", appendContainer);\n}\n\nexport function addSvg(htmlId: string, svgString: string) {\n const domParser = new DOMParser();\n const dom = domParser.parseFromString(svgString, \"text/html\");\n const svgElement = dom.querySelector(\"svg\");\n\n if (svgElement) {\n svgElement.id = htmlId;\n svgContainer.appendChild(svgElement);\n }\n}\n","import React from \"react\";\nimport { render } from \"react-dom\";\nimport { Subject } from \"rxjs\";\nimport {\n InlineNotificationMeta,\n NotificationDescriptor,\n} from \"./notification.component\";\nimport ActiveNotifications from \"./active-notifications.component\";\nimport isEmpty from \"lodash-es/isEmpty\";\n\nconst inlineNotificationsSubject = new Subject<InlineNotificationMeta>();\nlet notificationId = 0;\n\n/**\n * Starts a rendering host for inline notifications. Should only be used by the app shell.\n * Under normal conditions there is no need to use this function.\n * @param target The container target that hosts the inline notifications.\n */\nexport function renderInlineNotifications(target: HTMLElement | null) {\n if (target) {\n render(\n <ActiveNotifications subject={inlineNotificationsSubject} />,\n target\n );\n }\n}\n\nfunction isNotEmpty(description: React.ReactNode) {\n return typeof description === \"string\"\n ? description.trim().length > 0\n : typeof description === \"object\"\n ? !isEmpty(description)\n : false;\n}\n\n/**\n * Displays an inline notification in the UI.\n * @param notification The description of the notification to display.\n */\nexport function showNotification(notification: NotificationDescriptor) {\n if (notification && isNotEmpty(notification.description)) {\n setTimeout(() => {\n // always use in subsequent cycle\n inlineNotificationsSubject.next({\n ...notification,\n id: notificationId++,\n });\n }, 0);\n } else {\n console.error(\n `showNotification must be called with an object having a 'description' property that is a non-empty string or object`\n );\n }\n}\n","import React from \"react\";\nimport { render } from \"react-dom\";\nimport { Subject } from \"rxjs\";\nimport { ToastDescriptor, ToastNotificationMeta } from \"./toast.component\";\nimport ActiveToasts from \"./active-toasts.component\";\nimport isEmpty from \"lodash-es/isEmpty\";\n\nconst toastsSubject = new Subject<ToastNotificationMeta>();\nlet toastId = 0;\n\n/**\n * Starts a rendering host for toast notifications. Should only be used by the app shell.\n * Under normal conditions there is no need to use this function.\n * @param target The container target that hosts the toast notifications.\n */\nexport function renderToasts(target: HTMLElement | null) {\n if (target) {\n render(<ActiveToasts subject={toastsSubject} />, target);\n }\n}\n\nfunction isNotEmpty(description: React.ReactNode) {\n return typeof description === \"string\"\n ? description.trim().length > 0\n : typeof description === \"object\"\n ? !isEmpty(description)\n : false;\n}\n\n/**\n * Displays a toast notification in the UI.\n * @param toast The description of the toast to display.\n */\nexport function showToast(toast: ToastDescriptor) {\n if (toast && isNotEmpty(toast.description)) {\n setTimeout(() => {\n // always use in subsequent cycle\n toastsSubject.next({\n ...toast,\n id: toastId++,\n });\n }, 0);\n } else {\n console.error(\n `showToast must be called with an object having a 'description' property that is a non-empty string or object`\n );\n }\n}\n","import { renderExtension } from \"@openmrs/esm-extensions\";\nimport { createGlobalStore } from \"@openmrs/esm-state\";\n\ntype ModalInstanceState = \"NEW\" | \"MOUNTED\" | \"TO_BE_DELETED\";\n\ninterface ModalInstance {\n container?: HTMLElement;\n state: ModalInstanceState;\n onClose: () => void;\n cleanup?: () => void;\n extensionId: string;\n props: Record<string, any>;\n}\n\ninterface ModalState {\n modalContainer: HTMLElement | null;\n modalStack: Array<ModalInstance>;\n}\n\nconst modalStore = createGlobalStore<ModalState>(\"globalModalState\", {\n modalContainer: null,\n modalStack: [],\n});\n\nfunction htmlToElement(html: string) {\n const template = document.createElement(\"template\");\n template.innerHTML = html;\n return template.content.firstChild as ChildNode;\n}\n\nfunction createModalFrame() {\n const closeButton = htmlToElement(\n `\n <button\n class=\"bx--modal-close\"\n type=\"button\">\n <svg id=\"icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><defs><style>.cls-1{fill:#000000;}.cls-2{fill:none;}</style></defs><title>close</title><polygon class=\"cls-1\" points=\"24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4\"/><rect class=\"cls-2\" width=\"32\" height=\"32\"/></svg>\n </button>`.trim()\n ) as HTMLButtonElement;\n\n closeButton.addEventListener(\"click\", closeHighestInstance);\n const outer = document.createElement(\"div\");\n outer.className = \"bx--modal-container\";\n const contentContainer = document.createElement(\"div\");\n\n outer.append(closeButton);\n outer.append(contentContainer);\n\n return { outer, contentContainer };\n}\n\nconst original = window.getComputedStyle(document.body).overflow;\n\nfunction handleModalStateUpdate({ modalStack, modalContainer }: ModalState) {\n if (!modalContainer) return;\n\n if (modalStack.length) {\n // spin up the container if it was hidden previously\n if (!modalContainer.style.visibility) {\n addEventListener(\"keydown\", handleEscKey);\n document.body.style.overflow = \"hidden\";\n modalContainer.style.visibility = \"unset\";\n }\n\n modalStack.forEach((instance, index) => {\n switch (instance.state) {\n case \"NEW\":\n const { outer, contentContainer } = createModalFrame();\n instance.container = outer;\n instance.cleanup = renderExtension(\n contentContainer,\n \"\",\n \"\",\n instance.extensionId,\n undefined,\n instance.props\n );\n instance.state = \"MOUNTED\";\n modalContainer.prepend(outer);\n outer.style.visibility = \"unset\";\n break;\n\n case \"MOUNTED\":\n if (instance.container) {\n instance.container.style.visibility = index ? \"hidden\" : \"unset\";\n }\n break;\n\n case \"TO_BE_DELETED\":\n instance.onClose();\n instance.cleanup?.();\n instance.container?.remove();\n setTimeout(() => {\n modalStore.setState({\n modalContainer,\n modalStack: modalStack.filter((x) => x !== instance),\n });\n }, 0);\n break;\n }\n });\n } else {\n modalContainer.style.removeProperty(\"visibility\");\n document.body.style.overflow = original;\n removeEventListener(\"keydown\", handleEscKey);\n }\n}\n\nexport function renderModals(modalContainer: HTMLElement | null) {\n if (modalContainer) {\n modalStore.subscribe(handleModalStateUpdate);\n\n modalStore.setState({\n ...modalStore.getState(),\n modalContainer,\n });\n }\n}\nfunction openInstance(instance: ModalInstance) {\n const state = modalStore.getState();\n const modalStack = [instance, ...state.modalStack];\n\n modalStore.setState({\n ...state,\n modalStack,\n });\n}\n\nfunction closeInstance(instance: ModalInstance) {\n const state = modalStore.getState();\n const modalStack = state.modalStack.map(\n (x): ModalInstance =>\n x === instance ? { ...x, state: \"TO_BE_DELETED\" } : x\n );\n modalStore.setState({\n ...state,\n modalStack,\n });\n}\n\nfunction closeHighestInstance() {\n const state = modalStore.getState();\n const [top] = state.modalStack;\n\n if (top) {\n closeInstance(top);\n }\n}\n\nfunction handleEscKey(e: KeyboardEvent) {\n if (e.key === \"Escape\") {\n closeHighestInstance();\n }\n}\n\n/**\n * Shows the provided extension component in a modal dialog.\n * @param extensionId The id of the extension to show.\n * @param props The optional props to provide to the extension.\n * @param onClose The optional notification to receive when the modal is closed.\n * @returns The dispose function to force closing the modal dialog.\n */\nexport function showModal(\n extensionId: string,\n props: Record<string, any> = {},\n onClose: () => void = () => {}\n) {\n const close = () => {\n const state = modalStore.getState();\n const item = state.modalStack.find((m) => m.onClose === onClose);\n\n if (item) {\n closeInstance(item);\n }\n };\n\n openInstance({\n state: \"NEW\",\n onClose,\n extensionId,\n props: {\n extensionId,\n close,\n ...props,\n },\n });\n\n return close;\n}\n","import { defineConfigSchema, getConfigStore, Type } from \"@openmrs/esm-config\";\n\nexport function setupBranding() {\n defineConfigSchema(\"@openmrs/esm-styleguide\", {\n \"Brand color #1\": {\n _default: \"#005d5d\",\n _type: Type.String,\n },\n \"Brand color #2\": {\n _default: \"#004144\",\n _type: Type.String,\n },\n \"Brand color #3\": {\n _default: \"#007d79\",\n _type: Type.String,\n },\n });\n\n getConfigStore(\"@openmrs/esm-styleguide\").subscribe((store) => {\n if (store.loaded && store.config) {\n setGlobalCSSVariable(\"--brand-01\", store.config[\"Brand color #1\"]);\n setGlobalCSSVariable(\"--brand-02\", store.config[\"Brand color #2\"]);\n setGlobalCSSVariable(\"--brand-03\", store.config[\"Brand color #3\"]);\n }\n });\n\n function setGlobalCSSVariable(name: string, value: string) {\n document.documentElement.style.setProperty(name, value);\n }\n}\n","import { setupLogo } from \"./logo\";\nimport { setupIcons } from \"./icons\";\nimport { setupBranding } from \"./brand\";\n\nexport * from \"./breakpoints\";\nexport * from \"./spinner\";\nexport * from \"./notifications\";\nexport * from \"./toasts\";\nexport * from \"./modals\";\n\nsetupBranding();\nsetupLogo();\nsetupIcons();\n","/// <reference path=\"../declarations.d.ts\" />\n\nimport fullLogo from \"./openmrs-logo-full.svg\";\nimport partialLogo from \"./openmrs-logo-partial.svg\";\nimport iconLogo from \"./openmrs-logo-icon.svg\";\nimport whiteLogo from \"./openmrs-logo-white.svg\";\nimport { addSvg } from \"../svg-utils\";\n\nexport function setupLogo() {\n addSvg(\"omrs-logo-full-color\", fullLogo);\n addSvg(\"omrs-logo-full-mono\", fullLogo);\n addSvg(\"omrs-logo-full-grey\", fullLogo);\n addSvg(\"omrs-logo-partial-color\", partialLogo);\n addSvg(\"omrs-logo-partial-mono\", partialLogo);\n addSvg(\"omrs-logo-partial-grey\", partialLogo);\n addSvg(\"omrs-logo-icon-color\", iconLogo);\n addSvg(\"omrs-logo-icon-mono\", iconLogo);\n addSvg(\"omrs-logo-icon-grey\", iconLogo);\n addSvg(\"omrs-logo-white\", whiteLogo);\n}\n","/// <reference path=\"../declarations.d.ts\" />\n\nimport visibility from \"./svgs/visibility_24px_rounded.svg\";\nimport menu from \"./svgs/menu_24px_rounded.svg\";\nimport search from \"./svgs/search_24px_rounded.svg\";\nimport arrow_back from \"./svgs/arrow_back_24px_rounded.svg\";\nimport arrow_forward from \"./svgs/arrow_forward_24px.svg\";\nimport arrow_downward from \"./svgs/arrow_downward_24px_rounded.svg\";\nimport arrow_upward from \"./svgs/arrow_upward_24px_rounded.svg\";\nimport chevron_left from \"./svgs/chevron_left_24px_rounded.svg\";\nimport chevron_right from \"./svgs/chevron_right_24px_rounded.svg\";\nimport chevron_up from \"./svgs/chevron_up_24px_rounded.svg\";\nimport chevron_down from \"./svgs/chevron_down-24px_rounded.svg\";\nimport user from \"./svgs/supervised_user_circle_24px_rounded.svg\";\nimport home from \"./svgs/home_24px_rounded.svg\";\nimport close from \"./svgs/close-24px.svg\";\nimport notification from \"./svgs/important_notification_24px_rounded.svg\";\nimport calendar from \"./svgs/calendar_24px_rounded.svg\";\nimport time from \"./svgs/access_time-24px_rounded.svg\";\nimport add from \"./svgs/add_24px_rounded.svg\";\nimport remove from \"./svgs/remove-24px_rounded.svg\";\nimport check from \"./svgs/check_circle-24px.svg\";\nimport zoom from \"./svgs/zoom_out_map_24px_rounded.svg\";\nimport location from \"./svgs/location-24px.svg\";\nimport download from \"./svgs/download_24px_rounded.svg\";\nimport { addSvg } from \"../svg-utils\";\n\nexport function setupIcons() {\n addSvg(\"omrs-icon-visibility\", visibility);\n addSvg(\"omrs-icon-menu\", menu);\n addSvg(\"omrs-icon-search\", search);\n addSvg(\"omrs-icon-arrow-back\", arrow_back);\n addSvg(\"omrs-icon-arrow-forward\", arrow_forward);\n addSvg(\"omrs-icon-arrow-downward\", arrow_downward);\n addSvg(\"omrs-icon-arrow-upward\", arrow_upward);\n addSvg(\"omrs-icon-chevron-left\", chevron_left);\n addSvg(\"omrs-icon-chevron-right\", chevron_right);\n addSvg(\"omrs-icon-chevron-up\", chevron_up);\n addSvg(\"omrs-icon-chevron-down\", chevron_down);\n addSvg(\"omrs-icon-supervised-user-circle\", user);\n addSvg(\"omrs-icon-home\", home);\n addSvg(\"omrs-icon-close\", close);\n addSvg(\"omrs-icon-important-notification\", notification);\n addSvg(\"omrs-icon-calendar\", calendar);\n addSvg(\"omrs-icon-access-time\", time);\n addSvg(\"omrs-icon-add\", add);\n addSvg(\"omrs-icon-remove\", remove);\n addSvg(\"omrs-icon-check-circle\", check);\n addSvg(\"omrs-icon-zoomoutmap\", zoom);\n addSvg(\"omrs-icon-location\", location);\n addSvg(\"omrs-icon-download\", download);\n}\n"],"names":["resolveDirectory","require","exports","rootDirLevel","__system_context__","meta","url","console","error","Error","__webpack_public_path__","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","_arity","n","bind","fn","thisObj","apply","arguments","module","_clone","clone","value","this","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","_cloneRegExp","type","refFrom","refTo","deep","copy","copiedValue","len","idx","key","Date","valueOf","pattern","RegExp","source","global","ignoreCase","multiline","sticky","unicode","_isPlaceholder","f1","_curry1","f2","b","_b","_a","_curry2","f3","c","_c","prop","obj","Object","prototype","hasOwnProperty","call","Array","isArray","val","toString","_isArray","_isString","_isArrayLike","x","nodeType","_xwrap","_iterableReduce","xf","acc","iter","step","next","done","_methodReduce","methodName","symIterator","Symbol","iterator","list","reduce","TypeError","XWrap","f","mergeDeepWithKey","mergeDeepRight","lObj","rObj","k","lVal","rVal","_curry3","_isObject","mergeWithKey","_has","l","r","result","__WEBPACK_EXTERNAL_MODULE__685__","__WEBPACK_EXTERNAL_MODULE__645__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","default","e","d","definition","o","defineProperty","enumerable","get","toStringTag","Type","validator","validationFunction","message","isBoolean","isNumber","isString","isObject","isUuid","test","configInternalStoreInitialValue","providedConfigs","schemas","devDefaultsAreOn","getAreDevDefaultsOn","configInternalStore","createGlobalStore","lastValueOfDevDefaultsAreOn","JSON","parse","localStorage","getItem","subscribe","state","setItem","stringify","temporaryConfigStore","config","configExtensionStore","mountedExtensions","getConfigStore","moduleName","getGlobalStore","loaded","getExtensionSlotsConfigStore","extensionSlotConfigs","getExtensionConfigStore","extensionSlotModuleName","attachedExtensionSlotName","extensionId","implementerToolsConfigStore","computeModuleConfig","tempState","keys","getConfigForModule","setState","computeExtensionSlotConfigs","slotConfigsByModule","configState","tempConfigState","allConfigs","mergeConfigs","getProvidedConfigs","slotConfigPerModule","extensions","configBySlotName","entries","slotName","validateExtensionSlotConfig","computeImplementerToolsConfig","getSchemaWithValuesAndSources","configsAndSources","map","createValuesAndSourcesTree","computeExtensionConfigs","extensionState","extension","extensionStore","slotModuleName","getExtensionConfig","extensionModuleName","defineConfigSchema","schema","validateConfigSchema","getState","provide","sourceName","getConfig","Promise","resolve","store","update","unsubscribe","processConfig","providedConfig","keyPathContext","validateConfig","setDefaults","configOverride","mergeConfigsFor","configure","extensionConfig","_value","_default","_source","isOrdinaryObject","errorPrefix","invalidKeys","filter","includes","join","add","every","remove","order","keyPath","updateMessage","startsWith","thisKeyPath","schemaPart","elements","_elements","hasObjectSchema","_validators","valueType","_type","values","inputConfig","t","configs","checkType","runValidators","validateDictionary","validateArray","dictionarySchema","arraySchema","i","Boolean","ConceptUuid","String","UUID","validators","validatorResult","valueString","configPart","devDefault","_devDefault","configWithDefaults","conf","objectKey","selectedConfigPart","elementsSchema","interpolateUrl","template","openmrsSpaBase","window","getOpenmrsSpaBase","replace","interpolateString","openmrsBase","params","prev","curr","split","navigate","to","target","navigateToUrl","location","assign","inRange","min","max","isUrlWithTemplateParameters","allowedTemplateParameters","allowedParams","concat","rx","match","exec","p","isUrl","s","R","y","g","globalThis","Function","scriptUrl","importScripts","currentScript","src","scripts","getElementsByTagName","u","push","action","then","availableStores","name","initialState","available","active","createStore","fallbackState","createAppState","getAppState","subscribeTo","select","handle","previous","current","property","restPropertyPath","__WEBPACK_EXTERNAL_MODULE__45__","__WEBPACK_EXTERNAL_MODULE__954__","__WEBPACK_EXTERNAL_MODULE__493__","__WEBPACK_EXTERNAL_MODULE__792__","undefined","autoPublicPath","svgContainer","appendContainer","body","appendChild","addSvg","htmlId","svgString","svgElement","DOMParser","parseFromString","querySelector","id","style","display","readyState","addEventListener","Subject","modalContainer","modalStack","getComputedStyle","overflow","setGlobalCSSVariable","documentElement","setProperty","setupBranding","fullLogo","partialLogo","iconLogo","whiteLogo","visibility","menu","search","arrow_back","arrow_forward","arrow_downward","arrow_upward","chevron_left","chevron_right","chevron_up","chevron_down","user","home","close","notification","calendar","time","check","zoom","download"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "3.2.1-pre.
|
|
3
|
+
"version": "3.2.1-pre.958",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-styleguide.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rxjs": "6.x"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@openmrs/esm-extensions": "^3.2.1-pre.
|
|
54
|
+
"@openmrs/esm-extensions": "^3.2.1-pre.958",
|
|
55
55
|
"@pickra/copy-code-block": "^1.1.7",
|
|
56
56
|
"@storybook/addon-a11y": "^5.2.1",
|
|
57
57
|
"@storybook/addon-knobs": "^5.2.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-dom": "^16.13.1",
|
|
67
67
|
"rxjs": "^6.5.3"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "9aef53d8a8bcdea8377b416bbe365bbd72ccdaad"
|
|
70
70
|
}
|