@cc-openmrs/cc-esm-active-prescriptions 1.0.61 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{571.js → 279.js} +2 -2
- package/dist/499.js +1 -1
- package/dist/68.js +2 -0
- package/dist/845.js +1 -1
- package/dist/866.js +2 -0
- package/dist/866.js.LICENSE.txt +30 -0
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +99 -201
- package/dist/routes.json +1 -1
- package/package.json +29 -28
- package/src/prescriptions-actions/prescriptions-action-button.component.tsx +9 -5
- package/dist/282.js +0 -2
- package/dist/282.js.LICENSE.txt +0 -32
- package/dist/464.js +0 -2
- package/dist/464.js.LICENSE.txt +0 -39
- package/dist/570.js +0 -2
- package/dist/771.js +0 -1
- package/dist/945.js +0 -2
- package/dist/945.js.LICENSE.txt +0 -5
- /package/dist/{571.js.LICENSE.txt → 279.js.LICENSE.txt} +0 -0
- /package/dist/{570.js.LICENSE.txt → 68.js.LICENSE.txt} +0 -0
package/dist/464.js.LICENSE.txt
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* tabbable 6.4.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license React
|
|
23
|
-
* react-is.production.min.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @license React
|
|
33
|
-
* react-jsx-runtime.production.min.js
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
package/dist/570.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 570.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[570],{8493(e,t,n){var r=n(6072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&l({inst:o})},[e,n,t]),s(function(){return c(o)&&l({inst:o}),e(function(){c(o)&&l({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},9888(e,t,n){e.exports=n(8493)},967(e,t,n){n.d(t,{$f:()=>w,QE:()=>U,g$:()=>j,IU:()=>h,HW:()=>O,xC:()=>_,Kx:()=>R,EW:()=>S,L7:()=>x,Gm:()=>g,lo:()=>y,ut:()=>v,yH:()=>T,Jj:()=>p,Ct:()=>m,eA:()=>b,Gp:()=>C,E4:()=>A,Fi:()=>N,Y0:()=>I,st:()=>P});var r=n(44),o=n(5048);const i=function(e){return void 0===e};var s=n(3083),a=n(4963),u=n(6963),c=n(5874);const l="${openmrsSpaBase}/login",f={redirectAuthFailure:{enabled:{_type:u.ZU.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:u.ZU.String,_default:l,_validators:[u.y$.isUrl],_description:"The url to which users will be redirected when they are logged out. If set to blank, the `location` header from the response will be used."},errors:{_type:u.ZU.Array,_default:[401],_elements:{_type:u.ZU.Number,_validators:[u.y$.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:u.ZU.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}},followRedirects:{_type:u.ZU.Boolean,_default:!0,_description:"Whether openmrsFetch should support redirects returned from the backend"}};function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p="/ws/rest/v1",h="/ws/fhir2/R4",m=`${p}/session`;function g(e){return e&&e.startsWith("http")?e:("/"!==e[0]&&(e="/"+e),window.openmrsBase+e)}function y(e,t={}){if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");let n=g(e);if(t.headers||(t.headers={}),(0,a.A)(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept,e.startsWith(p)&&void 0===t.headers["Disable-WWW-Authenticate"]&&(t.headers["Disable-WWW-Authenticate"]="true"),e.startsWith(h)){const e=new URL(n,window.location.toString());e.searchParams.has("_summary")||(e.searchParams.set("_summary","data"),n=e.toString())}const r=Error();return window.fetch(n,t).then(async e=>{const t=e,{redirectAuthFailure:o,followRedirects:i}=await(0,u.zj)("@openmrs/esm-api");if(t.ok){if(204===t.status){if(i&&t.headers.has("location")){const e=t.headers.get("location");e&&(0,c.oo)({to:e})}return t.data=null,t}return t.clone().text().then(e=>{try{e&&(t.data=JSON.parse(e))}catch(e){}return t})}if(n===g(m)&&403===t.status||o.enabled&&o.errors.includes(t.status)){(0,c.g4)();const e=o.url||t.headers.get("location")||l;return(0,c.oo)({to:e}),o.resolvePromise?Promise.resolve():new Promise(()=>{})}return t.clone().text().then(e=>{let o=e;try{o=JSON.parse(e)}catch(e){}throw new w(n,t,o,r)},e=>{throw new w(n,t,null,r)})})}function v(e,t={}){if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");const n=new AbortController;return t.signal=n.signal,new s.Observable(r=>{let o=!1;return y(e,t).then(e=>{o=!0,r.next(e),r.complete()},e=>{o=!0,r.error(e)}),()=>{o||n.abort()}})}class w extends Error{constructor(e,t,n,r){super(),d(this,"response",void 0),d(this,"responseBody",void 0),this.message=`Server responded with ${t.status} (${t.statusText}) for url ${e}. Check err.responseBody or network tab in dev tools for more info`,r.message=this.message,this.responseBody=n,this.response=t,this.stack=`Stacktrace for outgoing request:\n${r.stack}\nStacktrace for incoming response:\n${this.stack}`}}const b=(0,o.Zd)("session",{loaded:!1,session:null});let E=0;function O(e={includeAuthStatus:!0}){return(E<Date.now()-6e4||!b.getState().loaded)&&T(),new s.Observable(t=>{const n=n=>{n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(n.session?.user))};return n(b.getState()),b.subscribe(n)})}function S(){return(E<Date.now()-6e4||!b.getState().loaded)&&T(),b}function A(e){let t=e.user?.userProperties?.defaultLocale??e.locale;t&&t.includes("_")&&(t=t.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(t)&&t!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",t)}function T(e,t){E=Date.now();let n={};return e&&t&&(n.Authorization=`Basic ${window.btoa(`${e}:${t}`)}`),$(y(m,{headers:n}))}function j(){b.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function P(e,t){return void 0===t?Boolean(e):!Boolean(e)||function(e,t){return"string"==typeof e?!i(t.privileges.find(t=>e===t.display)):Array.isArray(e)?e.every(e=>!i(t.privileges.find(t=>e===t.display))):(i(e)||console.error(`Could not understand privileges "${e}"`),!0)}(e,t)||function(e){return!i(e.roles.find(e=>"System Developer"===e.display))}(t)}function _(){let e,t;return new Promise(n=>{const r=r=>{r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};r(b.getState()),e||(t=b.subscribe(r))})}function R(){return new Promise((e,t)=>{O().subscribe(t=>{e(t.sessionLocation)},t).unsubscribe()})}async function C(e,t){return $(y(m,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:t.signal}))}async function N(e,t,n){return n||(n=new AbortController),await y(`${p}/user/${e}`,{method:"POST",body:{userProperties:t},headers:{"Content-Type":"application/json"},signal:n.signal}),T()}function $(e){return new Promise((t,n)=>{e.then(e=>{let r;"object"==typeof e?.data?(r={loaded:!0,session:e.data},b.setState(r),t(r)):(r={loaded:!1,session:null},b.setState(r),n(r))}).catch(e=>{(0,r.N)(`Failed to fetch new session information: ${e}`);const t={loaded:!1,session:null};b.setState(t),n(t)})})}function x(){return"development"===window.spaEnv||"true"===localStorage.getItem("openmrs:devtools")}b.subscribe(e=>{e.loaded&&e.session&&A(e.session)});const U={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"};function I(){(0,u.T0)("@openmrs/esm-api",f),T()}},6963(e,t,n){function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return r(n)?t:o(function(t){return e(n,t)});default:return r(n)&&r(i)?t:r(n)?o(function(t){return e(t,i)}):r(i)?o(function(t){return e(n,t)}):e(n,i)}}}function s(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function a(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function u(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{ZU:()=>G,Nh:()=>Ve,hs:()=>te,Rt:()=>X,T0:()=>me,ks:()=>we,zj:()=>Ee,IS:()=>ne,UY:()=>ae,g$:()=>ce,P0:()=>ue,G9:()=>oe,vu:()=>ie,YP:()=>re,GI:()=>se,td:()=>Oe,tN:()=>le,r4:()=>He,gU:()=>Ze,qG:()=>ze,yL:()=>Ke,mq:()=>Se,Gt:()=>be,kl:()=>ye,FL:()=>ge,GV:()=>ve,H:()=>ee,Nc:()=>V,y$:()=>Ye});const c="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var l=Object.prototype.toString,f=function(){return"[object Arguments]"===l.call(arguments)?function(e){return"[object Arguments]"===l.call(e)}:function(e){return u("callee",e)}}();const d=f;var p=!{toString:null}.propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=function(){return arguments.propertyIsEnumerable("length")}(),g=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const y="function"!=typeof Object.keys||m?o(function(e){if(Object(e)!==e)return[];var t,n,r=[],o=m&&d(e);for(t in e)!u(t,e)||o&&"length"===t||(r[r.length]=t);if(p)for(n=h.length-1;n>=0;)u(t=h[n],e)&&!g(r,t)&&(r[r.length]=t),n-=1;return r}):o(function(e){return Object(e)!==e?[]:Object.keys(e)}),v=o(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function w(e,t,n,r){var o=s(e);function i(e,t){return b(e,t,n.slice(),r.slice())}return!a(function(e,t){return!a(i,t,e)},s(t),o)}function b(e,t,n,r){if(c(e,t))return!0;var o,i,s=v(e);if(s!==v(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!c(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!c(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(s){case"Map":return e.size===t.size&&w(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&w(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=y(e);if(l.length!==y(t).length)return!1;var f=n.concat([e]),d=r.concat([t]);for(a=l.length-1;a>=0;){var p=l[a];if(!u(p,t)||!b(t[p],e[p],f,d))return!1;a-=1}return!0}const E=i(function(e,t){return b(e,t,[],[])});function O(e){return function t(n,s,a){switch(arguments.length){case 0:return t;case 1:return r(n)?t:i(function(t,r){return e(n,t,r)});case 2:return r(n)&&r(s)?t:r(n)?i(function(t,n){return e(t,s,n)}):r(s)?i(function(t,r){return e(n,t,r)}):o(function(t){return e(n,s,t)});default:return r(n)&&r(s)&&r(a)?t:r(n)&&r(s)?i(function(t,n){return e(t,n,a)}):r(n)&&r(a)?i(function(t,n){return e(t,s,n)}):r(s)&&r(a)?i(function(t,r){return e(n,t,r)}):r(n)?o(function(t){return e(t,s,a)}):r(s)?o(function(t){return e(n,t,a)}):r(a)?o(function(t){return e(n,s,t)}):e(n,s,a)}}}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}const A=O(function(e,t,n){var r,o={};for(r in n=n||{},t=t||{})u(r,t)&&(o[r]=u(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)u(r,n)&&!u(r,o)&&(o[r]=n[r]);return o}),T=O(function e(t,n,r){return A(function(n,r,o){return S(r)&&S(o)?e(t,r,o):t(n,r,o)},n,r)}),j=i(function(e,t){return T(function(e,t,n){return n},e,t)}),P=i(function(e,t){for(var n={},r={},o=0,i=e.length;o<i;)r[e[o]]=1,o+=1;for(var s in t)r.hasOwnProperty(s)||(n[s]=t[s]);return n});function _(e,t,n){if(n||(n=new R),o=typeof(r=e),null==r||"object"!=o&&"function"!=o)return e;var r,o,i,s=function(r){var o=n.get(e);if(o)return o;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?_(e[i],!0,n):e[i]);return r};switch(v(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,i.flags?i.flags:(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":"")+(i.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var R=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1)if((i=n[r])[0]===e)return i[1]}else{var o=this.hash(e);if(n=this.map[o])for(r=0;r<n.length;r+=1){var i;if((i=n[r])[0]===e)return i[1]}}},e}();const C=o(function(e){return null!=e&&"function"==typeof e.clone?e.clone():_(e,!0)}),N=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},$=o(function(e){return!!N(e)||!!e&&"object"==typeof e&&!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))});var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function U(e,t,n){return function(r,o,i){if($(i))return e(r,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return t(r,o,i,"fantasy-land/reduce");if(null!=i[x])return n(r,o,i[x]());if("function"==typeof i.next)return n(r,o,i);if("function"==typeof i.reduce)return t(r,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function I(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)}var D=i(function(e,t){return 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,s){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,s,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,s,a,u){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,s,a,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,s,a,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,function(){return e.apply(t,arguments)})});const k=D;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 M(e,t,n,r){return e["@@transducer/result"](n[r](k(e["@@transducer/step"],e),t))}const B=U(I,M,L);var F=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}();const W=O(function(e,t,n){return B("function"==typeof e?new F(e):e,t,n)});var G=function(e){return e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid",e.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",e}({});function V(e,t){return n=>{if(!e(n))return"function"==typeof t?t(n):t}}const q=V(e=>Array.isArray(e),"must be an array"),J=V(e=>"boolean"==typeof e,"must be a boolean"),H=V(e=>"number"==typeof e,"must be a number"),z=V(e=>"string"==typeof e,"must be a string"),Z=V(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),K=V(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[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 Y=n(5048),Q=n(8101);const X=(0,Y.Zd)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),ee=(0,Y.Zd)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});ee.subscribe(e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});const te=(0,Y.Zd)("config-store-of-extension-state",{mountedExtensions:[]});function ne(e){return(0,Y.jf)(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function re(){return(0,Y.jf)("config-extension-slots",{slots:{}})}function oe(e){return ie(re().getState(),e)}function ie(e,t){return e.slots[t]??{loaded:!1,config:{}}}function se(){return(0,Y.jf)("config-extensions",{configs:{}})}function ae(e,t){if("string"!=typeof e||"string"!=typeof t||"__proto__"===e||"__proto__"===t||"constructor"===e||"constructor"===t||"prototype"===e||"prototype"===t)throw new Error("Attempted to call `getExtensionConfig()` with invalid argument");const n=se(),r=n=>n.configs[e]?.[t];return{getInitialState:()=>r(n.getInitialState()),getState:()=>r(n.getState())??{loaded:!1,config:null},setState(r,o=!1){n.setState(n=>{n.configs[e]||(n.configs[e]={});const i="function"==typeof r?r(n.configs.slotName[t]):r;return n.configs[e][t]=o?Object.assign({},i):Object.assign({},n.configs[e][t],i),n})},subscribe:e=>n.subscribe((t,n)=>{const o=r(t),i=r(n);(0,Q.b)(o,i)||e(o,i)}),destroy(){}}}function ue(e,t,n){const r=e.configs[t]?.[n];return r??{loaded:!1,config:null}}function ce(e,t,n){const r=e.configure?.[n];return r??null}const le=(0,Y.Zd)("config-implementer-tools",{config:{}});function fe(e,t){for(let n of Object.keys(e.schemas)){const r=ne(n);if(e.moduleLoaded[n]){const o=Ce(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!0,config:o})}else{const o=Ne(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!1,config:o})}}}function de(e,t){const n=function(e,t){const n=xe(_e(e,t)),r=Object.keys(n).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{});!function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))Pe(r,t,e)}(r);return Object.keys(r).reduce((e,t)=>({...e,...r[t]}),{})}(e,t),r=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,{loaded:!0,config:t}])),o=re(),i=o.getState(),s={slots:{...i.slots,...r}};E(i,s)||o.setState(s)}function pe(e,t){const n=function(e,t){let n=Te(C(e.schemas));const r=[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]];for(let[e,t]of r)n=xe([n,je(e,t)]);return n}(e,t);le.setState({config:n})}function he(e,t,n){const r={};for(let o of t.mountedExtensions){const t=Ae(o.slotModuleName,o.extensionModuleName,o.slotName,o.extensionId,e,n);r[o.slotName]={...r[o.slotName],[o.extensionId]:{config:t,loaded:!0}}}se().setState({configs:r})}function me(e,t){Re(e,t);const n=j(t,Je);X.setState(t=>({...t,schemas:{...t.schemas,[e]:n},moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function ge(e){X.setState(t=>({...t,schemas:{...t.schemas,[e]:Je}}))}function ye(e){X.setState(t=>({...t,moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function ve(e){X.setState(t=>({...t,schemas:{...t.schemas,[e]:qe}}))}function we(e,t){Re(e,t);const n=j(t,Je);X.getState().schemas[e]&&console.error(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),X.setState(t=>({...t,schemas:{...t.schemas,[e]:n}}))}function be(e,t="provided"){X.setState(n=>({...n,providedConfigs:[...n.providedConfigs,{source:t,config:e}]}))}function Ee(e){return new Promise(t=>{const n=ne(e);function r(e){if(e.loaded&&e.config){const n=P(["Display conditions","Translation overrides"],e.config);t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)})}function Oe(e,t,n){const r=[new Promise(t=>{const n=ne(e);function r(e){if(e.translationOverridesLoaded&&e.config){const n=e.config["Translation overrides"]??{};t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)})];return t&&n&&r.push(new Promise(e=>{const r=ae(t,n);function o(t){if(t.loaded&&t.config){const n=t.config["Translation overrides"]??{};e(n),i&&i()}}o(r.getState());const i=r.subscribe(o)})),Promise.all(r)}function Se(e,t,n){Ue(e,t,n);const r=Me(e,t);return De(e,r,n),r}function Ae(e,t,n,r,o,i){const s=function(e){const[t]=e.split("#");return t}(r),a=o.schemas[s],u=a?s:t,c=_e(o,i),l=$e(e,c),f=l?.extensionSlots?.[n]?.configure?.[r]??{},d=xe([$e(u,c),f]),p=a??o.schemas[t];Ue(p,d,u);const h=Me(p,d);return De(p,h,u),delete h.extensionSlots,h}function Te(e){return e.hasOwnProperty("_default")?{...e,_value:e._default,_source:"default"}:Fe(e)?Object.keys(e).reduce((t,n)=>(t[n]=Te(e[n]),t),{}):{}}function je(e,t){return Fe(e)?Object.keys(e).reduce((n,r)=>(n[r]=je(e[r],t),n),{}):{_value:e,_source:t}}function Pe(e,t,n){const r=`${t}.extensionSlots.${n}`,o=`Extension slot config '${r}'`,i=Object.keys(e).filter(e=>!["add","remove","order","configure"].includes(e));i.length&&Ge(r,o+`' contains invalid keys '${i.join("', '")}'`),e.add&&(Array.isArray(e.add)&&e.add.every(e=>"string"==typeof e)||Ge(r,o+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every(e=>"string"==typeof e)||Ge(r,o+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every(e=>"string"==typeof e)||Ge(r,o+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(Fe(e.configure)||Ge(r,o+".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 Re(e,t,n=""){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,s=t[o];if("Display conditions"===i&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===i&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!Fe(s)){console.error(`${e} has bad config schema definition for key '${i}'. ${r}`);continue}s.hasOwnProperty("_default")||Re(e,s,i);const a=s._elements;if(Be(a)&&Re(e,a,i+"._elements"),s._validators)for(let t of s._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 u=s._type;u&&!Object.values(G).includes(u)&&console.error(`${e} has invalid type for key '${i}' ${r}.\n\nIf you're the maintainer: the allowed types are ${Object.values(G).join(", ")}. Received '${u}'`),Object.keys(s).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(s)}`),a&&u&&![G.Array,G.Object].includes(u)&&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(u)}`)}}function Ce(e,t,n){const r=t.schemas[e],o=$e(e,_e(t,n));Ue(r,o,e);const i=Me(r,o);return De(r,i,e),delete i.extensionSlots,i}function Ne(e,t,n){const r=$e(e,_e(t,n)),o=Me(Je,r);return De(Je,o,e),delete o.extensionSlots,o}function $e(e,t){return xe(t.map(({[e]:t})=>t).filter(e=>!!e))}function xe(e){return W(j)({},e)}function Ue(e,t,n=""){for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,s=e[r];e.hasOwnProperty(r)?Ie(s,o,i):"extensionSlots"===r&&""!==n||Ge(i,`Unknown config key '${i}' provided. Ignoring.`)}}function Ie(e,t,n){ke(n,e._type,t),Fe(t)?e._type===G.Object?function(e,t,n){if(e._elements)for(const r of Object.keys(t)){const o=t[r];Ie(e._elements,o,`${n}.${r}`)}}(e,t,n):e.hasOwnProperty("_default")||e.hasOwnProperty("_type")||Ue(e,t,n):e._type===G.Array&&function(e,t,n){if(ke(n,G.Array,t)){if(Be(e._elements))for(let r=0;r<t.length;r++)Ie(e._elements,t[r],`${n}[${r}]`);for(let r=0;r<t.length;r++)ke(`${n}[${r}]`,e._elements?._type,t[r])}}(e,t,n)}function De(e,t,n=""){if(e)if(t!==e._default&&Le(n,e._validators,t),Fe(t))for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,s=e[r];e._type===G.Object&&e._elements?De(e._elements,o,i):De(s,o,i)}else if(Array.isArray(t)&&e._elements)for(let r=0;r<t.length;r++)De(e._elements,t[r],`${n}[${r}]`)}function ke(e,t,n){return!t||Le(e,[{Array:q,Boolean:J,ConceptUuid:K,Number:H,Object:Z,String:z,UUID:K,PersonAttributeTypeUuid:K,PatientIdentifierTypeUuid:K}[t]],n)}function Le(e,t,n){let r=!0;if(t)try{for(let o of t){const t=o(n);"string"==typeof t&&(Ge(e,"object"==typeof n?`Invalid configuration for ${e}: ${t}`:`Invalid configuration value ${n} for ${e}: ${t}`),r=!1)}}catch(t){console.error(`Skipping invalid validator at "${e}". Encountered error\n\t${t}`)}return r}fe(X.getState(),ee.getState()),X.subscribe(e=>fe(e,ee.getState())),ee.subscribe(e=>fe(X.getState(),e)),pe(X.getState(),ee.getState()),X.subscribe(e=>pe(e,ee.getState())),ee.subscribe(e=>pe(X.getState(),e)),de(X.getState(),ee.getState()),X.subscribe(e=>de(e,ee.getState())),ee.subscribe(e=>de(X.getState(),e)),he(X.getState(),te.getState(),ee.getState()),X.subscribe(e=>{he(e,te.getState(),ee.getState())}),te.subscribe(e=>{he(X.getState(),e,ee.getState())}),ee.subscribe(e=>{he(X.getState(),te.getState(),e)});const Me=(e,t)=>{const n=C(t);if(!e)return n;for(const t of Object.keys(e)){const r=n[t],o=e[t];if(o&&(o.hasOwnProperty("_type")||o.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=o._default);const e=o._elements;if(r&&Be(e))if(o._type===G.Array&&Array.isArray(r)){const o=r.map(t=>Me(e,t));n[t]=o}else if(o._type===G.Object)for(let t of Object.keys(r))r[t]=Me(e,r[t])}else if(Fe(o)){const e=r??{};Fe(e)&&(n[t]=Me(o,e))}}return n};function Be(e){return!!e&&Object.keys(e).filter(e=>!["_default","_validators"].includes(e)).length>0}function Fe(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}let We=new Set;function Ge(e,t){const n=`${e}:::${t}`;We||(We=new Set),We.has(n)||(console.error(t),We.add(n))}function Ve(e){e?We.forEach(t=>{t.startsWith(e)&&We.delete(t)}):We.clear()}const qe={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:G.Object,_default:{},_validators:[V(e=>Object.keys(e).every(e=>/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)),e=>`The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ${Object.keys(e).filter(e=>!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)).join(", ")}.`)]}},Je={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:G.Array,_default:[]}},...qe},He=(e,t)=>V(n=>e<=n&&n<=t,`must be between ${e} and ${t}`),ze=e=>{const t=e.concat(["openmrsBase","openmrsSpaBase"]);return V(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(", "))},Ze=ze([]),Ke=e=>V(t=>e.includes(t),`Must be one of the following: '${e.join("', '")}'.`),Ye={inRange:He,isUrl:Ze,isUrlWithTemplateParameters:ze,oneOf:Ke}},44(e,t,n){n.d(t,{J:()=>i,N:()=>o});var r=n(8581);function o(e){const t=s(e);setTimeout(()=>{throw t})}function i(){const e=Error();return t=>{s(t).stack+=`\nAsync stacktrace:\n${e.stack}`,o(t)}}function s(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}return void 0===e?Error("'undefined' was thrown as an error"):Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:e??"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:e.reason??"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},8581(e,t,n){n.d(t,{$3:()=>g,FI:()=>h,LQ:()=>m,Vt:()=>y,Yt:()=>o,bJ:()=>v,bK:()=>w,dX:()=>b,ff:()=>c,gj:()=>i,ls:()=>E,pc:()=>u,sT:()=>s});const r="openmrs:connectivity-changed";function o(e){window.dispatchEvent(new CustomEvent(r,{detail:{online:e}}))}function i(e){if(!window.offlineEnabled)return()=>{};const t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function s(e){return e({online:!window.offlineEnabled||navigator.onLine}),i(e)}const a="openmrs:precache-static-dependencies";function u(e={}){window.dispatchEvent(new CustomEvent(a,{detail:e}))}function c(e){const t=t=>e(t.detail);return window.addEventListener(a,t),()=>window.removeEventListener(a,t)}const l="openmrs:notification-shown",f="openmrs:actionable-notification-shown",d="openmrs:toast-shown",p="openmrs:snack-bar-shown";function h(e){window.dispatchEvent(new CustomEvent(l,{detail:e}))}function m(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function g(e){window.dispatchEvent(new CustomEvent(p,{detail:e}))}function y(e){window.dispatchEvent(new CustomEvent(d,{detail:e}))}function v(e){const t=t=>e(t.detail);return window.addEventListener(l,t),()=>window.removeEventListener(l,t)}function w(e){const t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function b(e){const t=t=>e(t.detail);return window.addEventListener(d,t),()=>window.removeEventListener(d,t)}function E(e){const t=t=>e(t.detail);return window.addEventListener(p,t),()=>window.removeEventListener(p,t)}},5874(e,t,n){function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function i(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var i=n.strict,s=void 0!==i&&i,a=n.start,u=void 0===a||a,c=n.end,l=void 0===c||c,f=n.encode,d=void 0===f?function(e){return e}:f,p="["+r(n.endsWith||"")+"]|$",h="["+r(n.delimiter||"/#?")+"]",m=u?"^":"",g=0,y=e;g<y.length;g++){var v=y[g];if("string"==typeof v)m+=r(d(v));else{var w=r(d(v.prefix)),b=r(d(v.suffix));if(v.pattern)if(t&&t.push(v),w||b)if("+"===v.modifier||"*"===v.modifier){var E="*"===v.modifier?"?":"";m+="(?:"+w+"((?:"+v.pattern+")(?:"+b+w+"(?:"+v.pattern+"))*)"+b+")"+E}else m+="(?:"+w+"("+v.pattern+")"+b+")"+v.modifier;else m+="("+v.pattern+")"+v.modifier;else m+="(?:"+w+b+")"+v.modifier}}if(l)s||(m+=h+"?"),m+=n.endsWith?"(?="+p+")":"$";else{var O=e[e.length-1],S="string"==typeof O?h.indexOf(O[O.length-1])>-1:void 0===O;s||(m+="(?:"+h+"(?="+p+"))?"),S||(m+="(?="+h+"|"+p+")")}return new RegExp(m,o(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[a=n+1])throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0===--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at "+a);i+=e[a++]}else i+=e[a++]+e[a++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<e.length;){var u=e.charCodeAt(a);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;s+=e[a++]}if(!s)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:s}),n=a}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,i=void 0===o?"./":o,s="[^"+r(t.delimiter||"/#?")+"]+?",a=[],u=0,c=0,l="",f=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[c],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};c<n.length;){var h=f("CHAR"),m=f("NAME"),g=f("PATTERN");if(m||g){var y=h||"";-1===i.indexOf(y)&&(l+=y,y=""),l&&(a.push(l),l=""),a.push({name:m||u++,prefix:y,suffix:"",pattern:g||s,modifier:f("MODIFIER")||""})}else{var v=h||f("ESCAPED_CHAR");if(v)l+=v;else if(l&&(a.push(l),l=""),f("OPEN")){y=p();var w=f("NAME")||"",b=f("PATTERN")||"",E=p();d("CLOSE"),a.push({name:w||(b?u++:""),pattern:w&&!b?s:b,prefix:y,suffix:E,modifier:f("MODIFIER")||""})}else d("END")}}return a}(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return s(e,t,n).source});return new RegExp("(?:"+r.join("|")+")",o(n))}(e,t,n):i(e,t,n)}n.d(t,{g4:()=>A,D_:()=>p,lz:()=>f,qh:()=>h,JK:()=>O,tA:()=>S,zl:()=>y,JG:()=>g,oo:()=>v,vf:()=>c,MY:()=>l,Wh:()=>E});const a=(0,n(5048).Zd)("breadcrumbs",[]);function u(e){return e.matcher instanceof RegExp?e.matcher:"string"==typeof e.matcher?s(e.matcher):s(e.path)}function c(e){return l([e])}function l(e){const t=[...f(),...e.map(e=>({matcher:u(e),settings:e}))];a.setState(t,!0)}function f(){return a.getState()}function d(e,t){if(t)return function(e,t){const[n]=e.filter(e=>e.matcher.test(t));return n}(e,t)||function(e,t){const n=t.split("/");for(;n.length>1;){n.pop();const t=d(e,n.join("/"));if(t)return t}}(e,t)}function p(e,t){if(e.length>0){const n=d(e,t);if(n){const t=[n];let r=d(e,n.settings.parent);for(;void 0!==r;)t.push(r),r=d(e,r.settings.parent);return t.reverse()}}return[]}function h(e){return p(f(),e)}var m=n(599);function g(e,t){const n=window.getOpenmrsSpaBase().replace(/\/$/,"");return y(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:n,...t}).replace(/^\/\//,"/")}function y(e,t){return Object.keys(t).reduce((e,n)=>e.split("${"+n+"}").join(t[n]),e)}function v({to:e,templateParams:t}){const n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=g(e,t).replace(window.location.origin,"");r.startsWith(n)?(0,m.EH)(r):window.location.assign(r)}const w="openmrs:history";function b(e){let t=JSON.parse(sessionStorage.getItem(w)??"[]")||[];t.push(e),t.length>50&&(t=t.slice(-50)),sessionStorage.setItem(w,JSON.stringify(t))}function E(){0===JSON.parse(sessionStorage.getItem(w)??"[]").length&&document.referrer&&b(document.referrer),window.addEventListener("single-spa:routing-event",e=>{const t=O();"replaceState"==e.detail.originalEvent?.singleSpaTrigger?(t[t.length-1]=window.location.href,sessionStorage.setItem(w,JSON.stringify(t))):!e.detail.originalEvent?.singleSpa&&t.includes(window.location.href)?S({toUrl:window.location.href}):t[t.length-1]!==window.location.href&&b(window.location.href)})}function O(){return JSON.parse(sessionStorage.getItem(w)??"[]")}function S({toUrl:e}){const t=O(),n=t.lastIndexOf(e);if(-1==n)throw new Error(`URL ${e} not found in history; cannot go back to it.`);{const e=t.slice(0,n+1);v({to:t[n]}),sessionStorage.setItem(w,JSON.stringify(e))}}function A(){sessionStorage.removeItem(w)}},861(e,t,n){n.d(t,{z:()=>r});const r=(0,n(6072).createContext)({moduleName:"",featureName:""})},8527(e,t,n){n.d(t,{F:()=>f});var r=n(6072),o=n(2076),i=n(9324),s=n(967),a=n(861);const u={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},c=new Map,l={errorRetryCount:3,fetcher:s.lo,focusThrottleInterval:18e5,revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,provider:()=>c};function f(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");const t=Object.assign({},u,e),n={...l,...t.swrConfig};return function(e){var s,u,c,l;return u=s=class extends r.Component{componentDidCatch(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout(()=>{throw e}),this.setState({caughtError:e,caughtErrorInfo:n})}render(){if(this.state.caughtError)return r.createElement("div",null,"An error has occurred. Please try reloading the page.");{const s=r.createElement(r.Suspense,{fallback:null},r.createElement(i.BE,{value:n},r.createElement(a.z.Provider,{value:this.state.config},t.disableTranslations?r.createElement(e,this.props):r.createElement(o.I18nextProvider,{i18n:window.i18next,defaultNS:this.state.config.extension?`${this.state.config.moduleName}___${this.state.config.extension.extensionSlotName}___${this.state.config.extension.extensionId}`:this.state.config.moduleName},r.createElement(e,this.props)))));return t.strictMode&&r.StrictMode?r.createElement(r.StrictMode,null,s):s}}constructor(e){super(e),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,featureName:t.featureName,extension:e._extensionContext}}}},c="displayName",l=`OpenmrsReactComponent(${t.featureName})`,c in u?Object.defineProperty(u,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[c]=l,s}}},5048(e,t,n){n.d(t,{Zd:()=>s,jf:()=>u,CE:()=>a,i7:()=>c});var r=n(8101),o=n(7283);const i={};function s(e,t){const n=i[e];if(n)return n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value.setState(t,!0),n.active=!0,n.value;{const n=(0,o.y)()(()=>t);return i[e]={value:n,active:!0},n}}function a(e,t){const n=i[e];return n?(n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value=t,n.active=!0,n.value):(i[e]={value:t,active:!0},t)}function u(e,t){const n=i[e];if(!n){const n=(0,o.y)()(()=>t??{});return i[e]={value:n,active:!1},n}return n.value}function c(...e){const[t,n,o]=e,i=void 0===o?n:o,s=void 0===o?e=>e:n;return i(s(t.getState())),t.subscribe((e,t)=>{const n=s(e);(0,r.b)(t,n)||i(n)})}setTimeout(()=>{window&&"development"===window.spaEnv&&(window.stores=i)},1e3)},8101(e,t,n){function r(e,t){if(e===t||Object.is(e,t))return!0;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(Array.isArray(t))return!1;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}n.d(t,{b:()=>r})},241(e,t,n){n.d(t,{A:()=>r});const r=n(1917).A.Symbol},8496(e,t,n){n.d(t,{A:()=>l});var r=n(241),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r.A?r.A.toStringTag:void 0;var u=Object.prototype.toString;var c=r.A?r.A.toStringTag:void 0;const l=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}(e):function(e){return u.call(e)}(e)}},2136(e,t,n){n.d(t,{A:()=>r});const r="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis},5647(e,t,n){n.d(t,{A:()=>r});const r=(0,n(367).A)(Object.getPrototypeOf,Object)},367(e,t,n){n.d(t,{A:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},1917(e,t,n){n.d(t,{A:()=>i});var r=n(2136),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.A||o||Function("return this")()},3098(e,t,n){n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},4963(e,t,n){n.d(t,{A:()=>f});var r=n(8496),o=n(5647),i=n(3098),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);const f=function(e){if(!(0,i.A)(e)||"[object Object]"!=(0,r.A)(e))return!1;var t=(0,o.A)(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},5684(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(a(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(a(e)));return e}}n.d(t,{A:()=>f,i:()=>c});var c=null;try{c=require("react").createContext()}catch(r){}var l={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function f(e){if("object"!==i(e))throw new Error("single-spa-react requires a configuration object");var t,n=o(o({},l),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||(null!==(t=n.ReactDOMClient)&&void 0!==t&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!c&&n.React.createContext&&(c=n.React.createContext()),n.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(n);var r={bootstrap:d.bind(null,n),mount:p.bind(null,n),unmount:h.bind(null,n)};return n.parcelCanUpdate&&(r.update=m.bind(null,n)),r}function d(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(t){e.rootComponent=t})}function p(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=v(e,t,function(){n(this)}),i=u(e,t)(),s=function(e){var t=e.renderType,n=e.elementToRender,r=e.domElement,o=e.reactDom[t];if("function"!=typeof o)throw new Error('renderType "'.concat(t,'" did not return a function.'));switch(t){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var i=o(r);return i.render(n),i;case"hydrateRoot":return o(r,n);default:return o(n,r),null}}({elementToRender:o,domElement:i,reactDom:g(e),renderType:y(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function h(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():g(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function m(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=v(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=u(e,t)();g(e).render(r,i)}})}function g(e){return e.ReactDOMClient||e.ReactDOM}function y(e){return"function"==typeof e.renderType?e.renderType():e.renderType}function v(e,t,n){var r=e.React.createElement(e.rootComponent,t),i=c?e.React.createElement(c.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),i=e.React.createElement(e.errorBoundaryClass,t,i)),e.React.createElement(e.SingleSpaRoot,o(o({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(e){return e()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),i)}},599(e,t,n){n.d(t,{AG:()=>Te,EH:()=>re,fz:()=>Ne,xL:()=>W});var r=Object.freeze({__proto__:null,get start(){return Me},get ensureJQuerySupport(){return pe},get setBootstrapMaxTime(){return H},get setMountMaxTime(){return z},get setUnmountMaxTime(){return Z},get setUnloadMaxTime(){return K},get registerApplication(){return Te},get unregisterApplication(){return Pe},get getMountedApps(){return Ee},get getAppStatus(){return Se},get unloadApplication(){return _e},get checkActivityFunctions(){return je},get getAppNames(){return Oe},get pathToActiveWhen(){return Ne},get navigateToUrl(){return re},get patchHistoryApi(){return le},get triggerAppChange(){return Ie},get addErrorHandler(){return u},get removeErrorHandler(){return c},get mountRootParcel(){return W},get NOT_LOADED(){return d},get LOADING_SOURCE_CODE(){return p},get NOT_BOOTSTRAPPED(){return h},get BOOTSTRAPPING(){return m},get NOT_MOUNTED(){return g},get MOUNTING(){return y},get UPDATING(){return w},get LOAD_ERROR(){return O},get MOUNTED(){return v},get UNLOADING(){return E},get UNMOUNTING(){return b},get SKIP_BECAUSE_BROKEN(){return S}}),o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).CustomEvent,i=function(){try{var e=new o("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?o:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n};let s=[];function a(e,t,n){const r=f(e,t,n);s.length?s.forEach(e=>e(r)):setTimeout(()=>{throw r})}function u(e){if("function"!=typeof e)throw Error(l(28,!1));s.push(e)}function c(e){if("function"!=typeof e)throw Error(l(29,!1));let t=!1;return s=s.filter(n=>{const r=n===e;return t=t||r,!r}),t}function l(e,t,...n){return`single-spa minified message #${e}: ${t?t+" ":""}See https://single-spa.js.org/error/?code=${e}${n.length?`&arg=${n.join("&arg=")}`:""}`}function f(e,t,n){const r=`${_(t)} '${j(t)}' died in status ${t.status}: `;let o;if(e instanceof Error){try{e.message=r+e.message}catch(e){}o=e}else{console.warn(l(30,!1,t.status,j(t)));try{o=Error(r+JSON.stringify(e))}catch(t){o=e}}return o.appOrParcelName=j(t),t.status=n,o}const d="NOT_LOADED",p="LOADING_SOURCE_CODE",h="NOT_BOOTSTRAPPED",m="BOOTSTRAPPING",g="NOT_MOUNTED",y="MOUNTING",v="MOUNTED",w="UPDATING",b="UNMOUNTING",E="UNLOADING",O="LOAD_ERROR",S="SKIP_BECAUSE_BROKEN";function A(e){return e.status===v}function T(e){try{return e.activeWhen(window.location)}catch(t){return a(t,e,S),!1}}function j(e){return e.name}function P(e){return Boolean(e.unmountThisParcel)}function _(e){return P(e)?"parcel":"application"}function R(){for(let e=arguments.length-1;e>0;e--)for(let t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function C(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function N(e){return e&&("function"==typeof e||(t=e,Array.isArray(t)&&!C(t,e=>"function"!=typeof e)));var t}function $(e,t){let n=e[t]||[];n=Array.isArray(n)?n:[n],0===n.length&&(n=[()=>Promise.resolve()]);const r=_(e),o=j(e);return function(e){return n.reduce((n,i,s)=>n.then(()=>{const n=i(e);return x(n)?n:Promise.reject(l(15,!1,r,o,t,s))}),Promise.resolve())}}function x(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}let U=[];function I(e,t){return Promise.resolve().then(()=>e.status!==h?e:(e.status=m,e.bootstrap?Y(e,"bootstrap").then(n).catch(n=>{if(t)throw f(n,e,S);return a(n,e,S),e}):Promise.resolve().then(n)));function n(){return e.status=g,e}}function D(e,t){return Promise.resolve().then(()=>{if(e.status!==v)return e;e.status=b;const n=Object.keys(e.parcels).map(t=>e.parcels[t].unmountThisParcel());return Promise.all(n).then(r,n=>r().then(()=>{const r=Error(n.message);if(t)throw f(r,e,S);a(r,e,S)})).then(()=>e);function r(){return Y(e,"unmount").then(()=>{e.status=g},n=>{if(t)throw f(n,e,S);a(n,e,S)})}})}let k=!1,L=!1;function M(e,t){return Promise.resolve().then(()=>e.status!==g?e:(k||(window.dispatchEvent(new i("single-spa:before-first-mount")),k=!0),e.status=y,Y(e,"mount").then(()=>(e.status=v,L||(window.dispatchEvent(new i("single-spa:first-mount")),L=!0),e)).catch(n=>{return e.status=v,D(e,!0).then(r,r);function r(){if(t)throw f(n,e,S);return a(n,e,S),e}})))}let B=0;const F={parcels:{}};function W(){return G.apply(F,arguments)}function G(e,t){const n=this;if(!e||"object"!=typeof e&&"function"!=typeof e)throw Error(l(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(l(3,!1,typeof e.name));const r=B++;let o=e.name||`parcel-${r}`;if("object"!=typeof t)throw Error(l(4,!1,o,typeof t));if(!t.domElement)throw Error(l(5,!1,o));const i="function"==typeof e,s=i?e:()=>Promise.resolve(e),a={id:r,parcels:{},status:i?p:h,customProps:t,parentName:j(n),unmountThisParcel:()=>m.then(()=>{if(a.status!==v)throw Error(l(6,!1,o,a.status));return D(a,!0)}).then(e=>(a.parentName&&delete n.parcels[a.id],e)).then(e=>(y(e),e)).catch(e=>{throw a.status=S,b(e),e})};let u;n.parcels[r]=a;let c=s();if(!c||"function"!=typeof c.then)throw Error(l(7,!1));c=c.then(e=>{if(!e)throw Error(l(8,!1));if(o=e.name||`parcel-${r}`,Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!N(e.bootstrap))throw Error(l(9,!1,o));if(!N(e.mount))throw Error(l(10,!1,o));if(!N(e.unmount))throw Error(l(11,!1,o));if(e.update&&!N(e.update))throw Error(l(12,!1,o));const t=$(e,"bootstrap"),n=$(e,"mount"),i=$(e,"unmount");a.status=h,a.name=o,a.bootstrap=t,a.mount=n,a.unmount=i,a.timeouts=Q(e.timeouts),e.update&&(a.update=$(e,"update"),u.update=function(e){return a.customProps=e,V((t=a,Promise.resolve().then(()=>{if(t.status!==v)throw Error(l(32,!1,j(t)));return t.status=w,Y(t,"update").then(()=>(t.status=v,t)).catch(e=>{throw f(e,t,S)})})));var t})});const d=c.then(()=>I(a,!0)),m=d.then(()=>M(a,!0));let y,b;const E=new Promise((e,t)=>{y=e,b=t});return u={mount:()=>V(Promise.resolve().then(()=>{if(a.status!==g)throw Error(l(13,!1,o,a.status));return n.parcels[r]=a,M(a)})),unmount:()=>V(a.unmountThisParcel()),getStatus:()=>a.status,loadPromise:V(c),bootstrapPromise:V(d),mountPromise:V(m),unmountPromise:V(E)},u}function V(e){return e.then(()=>null)}function q(e){const t=j(e);let n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(l(40,!1),t,n));const o=R({},n,{name:t,mountParcel:G.bind(e),singleSpa:r});return P(e)&&(o.unmountSelf=e.unmountThisParcel),o}const J={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function H(e,t,n){if("number"!=typeof e||e<=0)throw Error(l(16,!1));J.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function z(e,t,n){if("number"!=typeof e||e<=0)throw Error(l(17,!1));J.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Z(e,t,n){if("number"!=typeof e||e<=0)throw Error(l(18,!1));J.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function K(e,t,n){if("number"!=typeof e||e<=0)throw Error(l(19,!1));J.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Y(e,t){const n=e.timeouts[t],r=n.warningMillis,o=_(e);return new Promise((i,s)=>{let a=!1,u=!1;e[t](q(e)).then(e=>{a=!0,i(e)}).catch(e=>{a=!0,s(e)}),setTimeout(()=>f(1),r),setTimeout(()=>f(!0),n.millis);const c=l(31,!1,t,o,j(e),n.millis);function f(e){if(!a)if(!0===e)u=!0,n.dieOnTimeout?s(Error(c)):console.error(c);else if(!u){const t=e,o=t*r;console.warn(c),o+r<n.millis&&setTimeout(()=>f(t+1),r)}}})}function Q(e){const t={};for(let n in J)t[n]=R({},J[n],e&&e[n]||{});return t}function X(e){return Promise.resolve().then(()=>{if(e.loadPromise)return e.loadPromise;if(e.status!==d&&e.status!==O)return e;let t,n;return e.status=p,e.loadPromise=Promise.resolve().then(()=>{const r=e.loadApp(q(e));if(!x(r))throw n=!0,Error(l(33,!1,j(e)));return r.then(n=>{let r;e.loadErrorTime=null,t=n,"object"!=typeof t&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!N(t.bootstrap)&&(r=35),N(t.mount)||(r=36),N(t.unmount)||(r=37);const o=_(t);if(r){let n;try{n=JSON.stringify(t)}catch(e){}return console.error(l(r,!1,o,j(e),n),t),a(void 0,e,S),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=R({},e.devtools.overlays,t.devtools.overlays)),e.status=h,e.bootstrap=$(t,"bootstrap"),e.mount=$(t,"mount"),e.unmount=$(t,"unmount"),e.unload=$(t,"unload"),e.timeouts=Q(t.timeouts),delete e.loadPromise,e})}).catch(t=>{let r;return delete e.loadPromise,n?r=S:(r=O,e.loadErrorTime=(new Date).getTime()),a(t,e,r),e})})}const ee="undefined"!=typeof window,te={hashchange:[],popstate:[]},ne=["hashchange","popstate"];function re(e){let t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(l(14,!1));t=e.currentTarget.href,e.preventDefault()}const n=fe(window.location.href),r=fe(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function oe(e){if(e){const t=e[0].type;ne.indexOf(t)>=0&&te[t].forEach(t=>{try{t.apply(this,e)}catch(e){setTimeout(()=>{throw e})}})}}let ie;function se(){De([],arguments)}function ae(e,t){return function(){const n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return ie&&n===o||window.dispatchEvent(function(e,t){let n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){n=document.createEvent("PopStateEvent"),n.initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}(window.history.state,t)),r}}let ue=null,ce=!1;function le(e){if(ce)throw Error(l(43,!1));ie=!e||!e.hasOwnProperty("urlRerouteOnly")||e.urlRerouteOnly,ce=!0,ue=window.history.replaceState,window.addEventListener("hashchange",se),window.addEventListener("popstate",se);const t=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(e,n){if(!("function"==typeof n&&ne.indexOf(e)>=0)||C(te[e],e=>e===n))return t.apply(this,arguments);te[e].push(n)},window.removeEventListener=function(e,t){return"function"==typeof t&&ne.indexOf(e)>=0&&(te[e]=te[e].filter(e=>e!==t)),n.apply(this,arguments)},window.history.pushState=ae(window.history.pushState,"pushState"),window.history.replaceState=ae(ue,"replaceState")}function fe(e){const t=document.createElement("a");return t.href=e,t}ee&&(window.singleSpaNavigate?console.warn(l(41,!1)):window.singleSpaNavigate=re);let de=!1;function pe(e=window.jQuery){if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!de){const t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return he.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return he.call(this,n,window.removeEventListener,e,t,arguments)},de=!0}}function he(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach(e=>{ne.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))}),""===n.trim()?this:e.apply(this,o))}const me={};function ge(e){return Promise.resolve().then(()=>{const t=me[j(e)];if(!t)return e;if(e.status===d)return ye(e,t),e;if(e.status===E)return t.promise.then(()=>e);if(e.status!==g&&e.status!==O)return e;const n=e.status===O?Promise.resolve():Y(e,"unload");return e.status=E,n.then(()=>(ye(e,t),e)).catch(n=>(function(e,t,n){delete me[j(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,a(n,e,S),t.reject(n)}(e,t,n),e))})}function ye(e,t){delete me[j(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=d,t.resolve()}function ve(e,t,n,r){me[j(e)]={app:e,resolve:n,reject:r},Object.defineProperty(me[j(e)],"promise",{get:t})}function we(e){return me[e]}const be=[];function Ee(){return be.filter(A).map(j)}function Oe(){return be.map(j)}function Se(e){const t=C(be,t=>j(t)===e);return t?t.status:null}let Ae=!1;function Te(e,t,n,r){const o=function(e,t,n,r){const o={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"==typeof e?(function(e){if(Array.isArray(e)||null===e)throw Error(l(39,!1));const t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((e,n)=>t.indexOf(n)>=0?e:e.concat(n),[]);if(0!==n.length)throw Error(l(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(l(20,!1));if("object"!=typeof e.app&&"function"!=typeof e.app)throw Error(l(20,!1));const r=e=>"string"==typeof e||"function"==typeof e;if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(l(24,!1));if(!Ce(e.customProps))throw Error(l(22,!1))}(e),o.name=e.name,o.loadApp=e.app,o.activeWhen=e.activeWhen,o.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(l(20,!1));if(!t)throw Error(l(23,!1));if("function"!=typeof n)throw Error(l(24,!1));if(!Ce(r))throw Error(l(22,!1))}(e,t,n,r),o.name=e,o.loadApp=t,o.activeWhen=n,o.customProps=r),o.loadApp="function"!=typeof(i=o.loadApp)?()=>Promise.resolve(i):i,o.customProps=function(e){return e||{}}(o.customProps),o.activeWhen=function(e){let t=Array.isArray(e)?e:[e];return t=t.map(e=>"function"==typeof e?e:Ne(e)),e=>t.some(t=>t(e))}(o.activeWhen),o;var i}(e,t,n,r);if(Be()||Ae||(Ae=!0,setTimeout(()=>{Be()||console.warn(l(1,!1))},5e3)),-1!==Oe().indexOf(o.name))throw Error(l(21,!1,o.name));be.push(R({loadErrorTime:null,status:d,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),ee&&(pe(),De())}function je(e=window.location){return be.filter(t=>t.activeWhen(e)).map(j)}function Pe(e){if(0===be.filter(t=>j(t)===e).length)throw Error(l(25,!1,e));return(ee?_e(e,{waitForUnmount:!1}):Promise.resolve()).then(()=>{const t=be.map(j).indexOf(e);be.splice(t,1)})}function _e(e,t={waitForUnmount:!1}){if("string"!=typeof e)throw Error(l(26,!1));const n=C(be,t=>j(t)===e);if(!n)throw Error(l(27,!1,e));const r=we(j(n));if(t&&t.waitForUnmount){if(r)return r.promise;{const e=new Promise((t,r)=>{ve(n,()=>e,t,r)});return e}}{let e;return r?(e=r.promise,Re(n,r.resolve,r.reject)):e=new Promise((t,r)=>{ve(n,()=>e,t,r),Re(n,t,r)}),e}}function Re(e,t,n){Promise.resolve().then(()=>{if(C(je(),t=>t===j(e)))return Ie()}).then(()=>D(e).then(ge).then(()=>{t(),setTimeout(()=>{De()})})).catch(n)}function Ce(e){return!e||"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ne(e,t){const n=function(e,t){let n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(let t=0;t<e.length;t++){const n=e[t];(!r&&":"===n||r&&"/"===n)&&i(t)}return i(e.length),new RegExp(o,"i");function i(i){const s=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":s,i===e.length)if(r)t&&(o+="$");else{const e=t?"":".*";o="/"===o.charAt(o.length-1)?`${o}${e}$`:`${o}(/${e})?(#.*)?$`}r=!r,n=i}}(e,t);return e=>{let t=e.origin;t||(t=`${e.protocol}//${e.host}`);const r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}let $e=!1,xe=[],Ue=ee&&window.location.href;function Ie(){return De()}function De(e=[],t,n=!1){if($e)return new Promise((e,n)=>{xe.push({resolve:e,reject:n,eventArguments:t})});const{appsToUnload:r,appsToUnmount:o,appsToLoad:s,appsToMount:a}=function(){const e=[],t=[],n=[],r=[],o=(new Date).getTime();return be.forEach(i=>{const s=i.status!==S&&T(i);switch(i.status){case O:s&&o-i.loadErrorTime>=200&&n.push(i);break;case d:case p:s&&n.push(i);break;case h:case g:!s&&we(j(i))?e.push(i):s&&r.push(i);break;case v:s||t.push(i)}}),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}();let u,c=[],f=Ue,m=Ue=window.location.href;return Be()?($e=!0,u=r.concat(s,o,a),Promise.resolve().then(()=>(A(0===u.length?"before-no-app-change":"before-app-change",E(!0)),A("before-routing-event",E(!0,{cancelNavigation:y})),Promise.all(c).then(n=>{if(n.some(e=>e))return ue.call(window.history,history.state,"",f.substring(location.origin.length)),Ue=location.href,$e=!1,De(e,t,!0);const i=r.map(ge),u=o.map(D).map(e=>e.then(ge)).concat(i),c=Promise.all(u);c.then(()=>{A("before-mount-routing-event",E(!0))},e=>{throw e});const l=s.map(e=>X(e).then(e=>ke(e,c))),d=a.filter(e=>s.indexOf(e)<0).map(e=>ke(e,c));return c.catch(e=>{throw b(),e}).then(()=>(b(),Promise.all(l.concat(d)).catch(t=>{throw e.forEach(e=>e.reject(t)),t}).then(w).then(()=>{},e=>{throw e})))})))):(u=s,Promise.resolve().then(()=>{const e=s.map(X);return Promise.all(e).then(b).then(()=>[]).catch(e=>{throw b(),e}).finally(()=>{})}));function y(e=!0){const t="function"==typeof(null==e?void 0:e.then)?e:Promise.resolve(e);c.push(t.catch(e=>(console.warn(Error(l(42,!1))),console.warn(e),!1)))}function w(){const t=Ee();e.forEach(e=>e.resolve(t));try{A(0===u.length?"no-app-change":"app-change",E()),A("routing-event",E())}catch(e){setTimeout(()=>{throw e})}if($e=!1,xe.length>0){const e=xe;xe=[],De(e)}return t}function b(){n||(e.forEach(e=>{oe(e.eventArguments)}),oe(t))}function E(e=!1,n){const i={},c={[v]:[],[g]:[],[d]:[],[S]:[]};e?(s.concat(a).forEach((e,t)=>{p(e,v)}),r.forEach(e=>{p(e,d)}),o.forEach(e=>{p(e,g)})):u.forEach(e=>{p(e)});const l={detail:{newAppStatuses:i,appsByNewStatus:c,totalAppChanges:u.length,originalEvent:null==t?void 0:t[0],oldUrl:f,newUrl:m}};return n&&R(l.detail,n),l;function p(e,t){const n=j(e);t=t||Se(n),i[n]=t,(c[t]=c[t]||[]).push(n)}}function A(e,t){n||window.dispatchEvent(new i(`single-spa:${e}`,t))}}function ke(e,t){return T(e)?I(e).then(e=>t.then(()=>T(e)?M(e):e)):t.then(()=>e)}let Le=!1;function Me(e){Le=!0,ee&&(le(e),De())}function Be(){return Le}var Fe={getRawAppData:function(){return[...be]},reroute:De,NOT_LOADED:d,toLoadPromise:X,toBootstrapPromise:I,unregisterApplication:Pe,getProfilerData:function(){return U}};ee&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Fe)},9324(e,t,n){n.d(t,{Ay:()=>c,BE:()=>u});var r=n(6072),o=n(9888),i=n(8465);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),a={dedupe:!0},u=i.OBJECT.defineProperty(i.SWRConfig,"defaultValue",{value:i.defaultConfig}),c=(0,i.withArgs)((e,t,n)=>{const{cache:u,compare:c,suspense:l,fallbackData:f,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:h,refreshWhenHidden:m,refreshWhenOffline:g,keepPreviousData:y}=n,[v,w,b,E]=i.SWRGlobalState.get(u),[O,S]=(0,i.serialize)(e),A=(0,r.useRef)(!1),T=(0,r.useRef)(!1),j=(0,r.useRef)(O),P=(0,r.useRef)(t),_=(0,r.useRef)(n),R=()=>_.current,C=()=>R().isVisible()&&R().isOnline(),[N,$,x,U]=(0,i.createCacheHelper)(u,O),I=(0,r.useRef)({}).current,D=(0,i.isUndefined)(f)?n.fallback[O]:f,k=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,i.isUndefined)(e[r]))return!1;if(!c(J,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},L=(0,r.useMemo)(()=>{const e=!!O&&!!t&&((0,i.isUndefined)(d)?!R().isPaused()&&!l&&(!!(0,i.isUndefined)(p)||p):d),n=t=>{const n=(0,i.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=N(),o=U(),s=n(r),a=r===o?s:n(o);let u=s;return[()=>{const e=n(N());return k(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>a]},[u,O]),M=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>x(O,(t,n)=>{k(n,t)||e()}),[u,O]),L[0],L[1]),B=!A.current,F=v[O]&&v[O].length>0,W=M.data,G=(0,i.isUndefined)(W)?D:W,V=M.error,q=(0,r.useRef)(G),J=y?(0,i.isUndefined)(W)?q.current:W:G,H=!(F&&!(0,i.isUndefined)(V))&&(B&&!(0,i.isUndefined)(d)?d:!R().isPaused()&&(l?!(0,i.isUndefined)(G)&&p:(0,i.isUndefined)(G)||p)),z=!!(O&&t&&B&&H),Z=(0,i.isUndefined)(M.isValidating)?z:M.isValidating,K=(0,i.isUndefined)(M.isLoading)?z:M.isLoading,Y=(0,r.useCallback)(async e=>{const t=P.current;if(!O||!t||T.current||R().isPaused())return!1;let r,o,s=!0;const a=e||{},u=!b[O]||!a.dedupe,l=()=>i.IS_REACT_LEGACY?!T.current&&O===j.current&&A.current:O===j.current,f={isValidating:!1,isLoading:!1},d=()=>{$(f)},p=()=>{const e=b[O];e&&e[1]===o&&delete b[O]},h={isValidating:!0};(0,i.isUndefined)(N().data)&&(h.isLoading=!0);try{if(u&&($(h),n.loadingTimeout&&(0,i.isUndefined)(N().data)&&setTimeout(()=>{s&&l()&&R().onLoadingSlow(O,n)},n.loadingTimeout),b[O]=[t(S),(0,i.getTimestamp)()]),[r,o]=b[O],r=await r,u&&setTimeout(p,n.dedupingInterval),!b[O]||b[O][1]!==o)return u&&l()&&R().onDiscarded(O),!1;f.error=i.UNDEFINED;const e=w[O];if(!(0,i.isUndefined)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),u&&l()&&R().onDiscarded(O),!1;const a=N().data;f.data=c(a,r)?a:r,u&&l()&&R().onSuccess(r,O,n)}catch(e){p();const t=R(),{shouldRetryOnError:n}=t;t.isPaused()||(f.error=e,u&&l()&&(t.onError(e,O,t),(!0===n||(0,i.isFunction)(n)&&n(e))&&(R().revalidateOnFocus&&R().revalidateOnReconnect&&!C()||t.onErrorRetry(e,O,t,e=>{const t=v[O];t&&t[0]&&t[0](i.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0},[O,u]),Q=(0,r.useCallback)((...e)=>(0,i.internalMutate)(u,j.current,...e),[]);if((0,i.useIsomorphicLayoutEffect)(()=>{P.current=t,_.current=n,(0,i.isUndefined)(W)||(q.current=W)}),(0,i.useIsomorphicLayoutEffect)(()=>{if(!O)return;const e=Y.bind(i.UNDEFINED,a);let t=0;const n=(0,i.subscribeCallback)(O,v,(n,r={})=>{if(n==i.revalidateEvents.FOCUS_EVENT){const n=Date.now();R().revalidateOnFocus&&n>t&&C()&&(t=n+R().focusThrottleInterval,e())}else if(n==i.revalidateEvents.RECONNECT_EVENT)R().revalidateOnReconnect&&C()&&e();else{if(n==i.revalidateEvents.MUTATE_EVENT)return Y();if(n==i.revalidateEvents.ERROR_REVALIDATE_EVENT)return Y(r)}});return T.current=!1,j.current=O,A.current=!0,$({_k:S}),H&&((0,i.isUndefined)(G)||i.IS_SERVER?e():(0,i.rAF)(e)),()=>{T.current=!0,n()}},[O]),(0,i.useIsomorphicLayoutEffect)(()=>{let e;function t(){const t=(0,i.isFunction)(h)?h(N().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){N().error||!m&&!R().isVisible()||!g&&!R().isOnline()?t():Y(a).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[h,m,g,O]),(0,r.useDebugValue)(J),l&&(0,i.isUndefined)(G)&&O){if(!i.IS_REACT_LEGACY&&i.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,_.current=n,T.current=!1;const e=E[O];if(!(0,i.isUndefined)(e)){const t=Q(e);s(t)}if(!(0,i.isUndefined)(V))throw V;{const e=Y(a);(0,i.isUndefined)(J)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:Q,get data(){return I.data=!0,J},get error(){return I.error=!0,V},get isValidating(){return I.isValidating=!0,Z},get isLoading(){return I.isLoading=!0,K}}})},7283(e,t,n){n.d(t,{y:()=>o});const r=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,o,i);return i},o=e=>e?r(e):r}}]);
|
package/dist/771.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[771],{428(e,t,r){"use strict";function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(t,{A:()=>u});var l=["width","height","viewBox"],c=["tabindex"],s={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var p=r(5556),h=r.n(p),f=r(6072);const u=(0,f.forwardRef)(function({className:e,children:t,tabIndex:r,xmlns:n="http://www.w3.org/2000/svg",preserveAspectRatio:a="xMidYMid meet",...p},h){const{tabindex:u,...d}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,p=o(e,l),h=p.tabindex,f=o(p,c),u=i(i(i({},s),f),{},{width:t,height:r,viewBox:a});return u["aria-label"]||u["aria-labelledby"]?(u.role="img",null!=h&&(u.focusable="true",u.tabindex=h)):u["aria-hidden"]=!0,u}({...p,tabindex:r}),m=d;return e&&(m.className=e),null!=u&&(m.tabIndex="number"==typeof u?u:Number(r)),h&&(m.ref=h),n&&(m.xmlns=n),a&&(m.preserveAspectRatio=a),f.createElement("svg",m,t)});u.displayName="Icon",u.propTypes={"aria-hidden":h().oneOfType([h().bool,h().oneOf(["true","false"])]),"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,height:h().oneOfType([h().number,h().string]),preserveAspectRatio:h().string,tabIndex:h().oneOfType([h().number,h().string]),viewBox:h().string,width:h().oneOfType([h().number,h().string]),xmlns:h().string}},771(e,t,r){"use strict";r.d(t,{$D:()=>E,d3:()=>O,sV:()=>A,x:()=>M});var n,a,i,o,l,c,s,p,h,f,u,d,m,w,b,g,v,y=r(6072),x=r(428);const O=y.forwardRef(function({children:e,size:t=16,...r},i){return y.createElement(x.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},n||(n=y.createElement("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"})),a||(a=y.createElement("path",{d:"M4 22H28V24H4z"})),e)}),E=y.forwardRef(function({children:e,size:t=16,...r},n){return y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},i||(i=y.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)}),M=y.forwardRef(function({children:e,size:t=16,...r},n){return 16===t||"16"===t||"16px"===t?y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},o||(o=y.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),l||(l=y.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},c||(c=y.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),s||(s=y.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},p||(p=y.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),h||(h=y.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},f||(f=y.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),u||(u=y.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)}),A=y.forwardRef(function({children:e,size:t=16,...r},n){return y.createElement(x.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},d||(d=y.createElement("path",{d:"M26,14H24v2h2a3.0033,3.0033,0,0,1,3,3v4h2V19A5.0058,5.0058,0,0,0,26,14Z"})),m||(m=y.createElement("path",{d:"M24,4a3,3,0,1,1-3,3,3,3,0,0,1,3-3m0-2a5,5,0,1,0,5,5A5,5,0,0,0,24,2Z"})),w||(w=y.createElement("path",{d:"M23,30H21V28a3.0033,3.0033,0,0,0-3-3H14a3.0033,3.0033,0,0,0-3,3v2H9V28a5.0059,5.0059,0,0,1,5-5h4a5.0059,5.0059,0,0,1,5,5Z"})),b||(b=y.createElement("path",{d:"M16,13a3,3,0,1,1-3,3,3,3,0,0,1,3-3m0-2a5,5,0,1,0,5,5A5,5,0,0,0,16,11Z"})),g||(g=y.createElement("path",{d:"M8,14H6a5.0059,5.0059,0,0,0-5,5v4H3V19a3.0033,3.0033,0,0,1,3-3H8Z"})),v||(v=y.createElement("path",{d:"M8,4A3,3,0,1,1,5,7,3,3,0,0,1,8,4M8,2a5,5,0,1,0,5,5A5,5,0,0,0,8,2Z"})),e)})},2694(e,t,r){"use strict";var n=r(6925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},5556(e,t,r){e.exports=r(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
package/dist/945.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 945.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[945],{810(e,t,r){"use strict";r.d(t,{W1:()=>I,Xj:()=>V,Y0:()=>T,hz:()=>R});var n,i,o,a,s,l,c,u,p,f,m,h,d,y,g,w,b,v,_,x,E,S,O,j,P,D,F,H,z=r(6072),M=r(428);const T=z.forwardRef(function({children:e,size:t=16,...r},s){return"glyph"===t||"glyph"===t||"glyphpx"===t?z.createElement(M.A,{width:t,height:t,ref:s,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},n||(n=z.createElement("path",{d:"M4 4H12V12H4z"})),i||(i=z.createElement("path",{d:"M12,4v8H4V4h8m1-1H3V13H13V3Z"})),e):z.createElement(M.A,{width:t,height:t,ref:s,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},o||(o=z.createElement("path",{d:"M4 4H12V12H4z"})),a||(a=z.createElement("path",{d:"M12,4v8H4V4h8m1-1H3V13H13V3Z"})),e)}),R=z.forwardRef(function({children:e,size:t=16,...r},n){return 16===t||"16"===t||"16px"===t?z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},s||(s=z.createElement("path",{d:"M6 15 6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15z"})),l||(l=z.createElement("path",{d:"M10 1 10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},c||(c=z.createElement("path",{d:"M20 2 20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),u||(u=z.createElement("path",{d:"M14 19.416 12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)}),I=z.forwardRef(function({children:e,size:t=16,...r},n){return 16===t||"16"===t||"16px"===t?z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},p||(p=z.createElement("path",{d:"M2 12H14V13H2z"})),f||(f=z.createElement("path",{d:"M2 9H14V10H2z"})),m||(m=z.createElement("path",{d:"M2 6H14V7H2z"})),h||(h=z.createElement("path",{d:"M2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},d||(d=z.createElement("path",{d:"M2 14.8H18V16H2z"})),y||(y=z.createElement("path",{d:"M2 11.2H18V12.399999999999999H2z"})),g||(g=z.createElement("path",{d:"M2 7.6H18V8.799999999999999H2z"})),w||(w=z.createElement("path",{d:"M2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},b||(b=z.createElement("path",{d:"M3 18H21V19.5H3z"})),v||(v=z.createElement("path",{d:"M3 13.5H21V15H3z"})),_||(_=z.createElement("path",{d:"M3 9H21V10.5H3z"})),x||(x=z.createElement("path",{d:"M3 4.5H21V6H3z"})),e):z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},E||(E=z.createElement("path",{d:"M4 6H28V8H4z"})),S||(S=z.createElement("path",{d:"M4 24H28V26H4z"})),O||(O=z.createElement("path",{d:"M4 12H28V14H4z"})),j||(j=z.createElement("path",{d:"M4 18H28V20H4z"})),e)}),V=z.forwardRef(function({children:e,size:t=16,...r},n){return 16===t||"16"===t||"16px"===t?z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},P||(P=z.createElement("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"})),D||(D=z.createElement("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):z.createElement(M.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},F||(F=z.createElement("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"})),H||(H=z.createElement("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)})},1673(e,t,r){"use strict";r.d(t,{CH:()=>f,aI:()=>p});var n,i,o,a,s,l,c=r(6072),u=r(428);const p=c.forwardRef(function({children:e,size:t=16,...r},a){return c.createElement(u.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},n||(n=c.createElement("circle",{cx:"8",cy:"16",r:"2"})),i||(i=c.createElement("circle",{cx:"16",cy:"16",r:"2"})),o||(o=c.createElement("circle",{cx:"24",cy:"16",r:"2"})),e)}),f=c.forwardRef(function({children:e,size:t=16,...r},n){return c.createElement(u.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},a||(a=c.createElement("circle",{cx:"16",cy:"8",r:"2"})),s||(s=c.createElement("circle",{cx:"16",cy:"16",r:"2"})),l||(l=c.createElement("circle",{cx:"16",cy:"24",r:"2"})),e)})},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},8168(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},137(e,t,r){"use strict";r.d(t,{K:()=>s});let n=new Map,i=!1;try{i="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let o=!1;try{o="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const a={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class s{format(e){let t="";if(t=i||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);if("never"===t)return e.format(Math.abs(r));{let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let t=e.format(-r),n=e.format(r),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}return e.format(r)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!o){var r;let{unit:e,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null===(r=a[e])||void 0===r?void 0:r[n];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return i||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),o||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!o){var i;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(i=a[e])||void 0===i?void 0:i[r]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(n.has(s))return n.get(s);let l=new Intl.NumberFormat(e,t);return n.set(s,l),l}(e,t),this.options=t}}},7120(e,t,r){"use strict";r.d(t,{d:()=>a});var n=r(137);const i=new RegExp("^.*\\(.*\\).*$"),o=["latn","arab","hanidec","deva","beng","fullwide"];class a{parse(e){return l(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return l(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return l(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const s=new Map;function l(e,t,r){let n=c(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r))for(let i of o)if(i!==n.options.numberingSystem){let n=c(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(n.isValidPartialNumber(r))return n}return n}function c(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=s.get(r);return n||(n=new u(e,t),s.set(r,n)),n}class u{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=m(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-",""),t=t.replace("+","");let r=t.indexOf(".");-1===r&&(r=t.length),t=t.replace(".",""),t=r-2==0?`0.${t}`:r-2==-1?`0.0${t}`:r-2==-2?"0.00":`${t.slice(0,r-2)}.${t.slice(r-2)}`,e>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){var o,s;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(o=this.options.minimumFractionDigits)&&void 0!==o?o:0)+2,20),maximumFractionDigits:Math.min((null!==(s=this.options.maximumFractionDigits)&&void 0!==s?s:0)+2,20)};return new a(this.locale,e).parse(new(0,n.K)(this.locale,e).format(r))}return"accounting"===this.options.currencySign&&i.test(e)&&(r*=-1),r}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=m(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&(e=m(e,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(e=m(e," ",this.symbols.group),e=m(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,r=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=m(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var r,n;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,r,n){var i,o,a,s;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),m=f.map(e=>l.formatToParts(e));var d;let y=null!==(d=null===(i=c.find(e=>"minusSign"===e.type))||void 0===i?void 0:i.value)&&void 0!==d?d:"-",g=null===(o=u.find(e=>"plusSign"===e.type))||void 0===o?void 0:o.value;g||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(g="+");let w=null===(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))||void 0===a?void 0:a.value,b=null===(s=c.find(e=>"group"===e.type))||void 0===s?void 0:s.value,v=c.filter(e=>!p.has(e.type)).map(e=>h(e.value)),_=m.flatMap(e=>e.filter(e=>!p.has(e.type)).map(e=>h(e.value))),x=[...new Set([...v,..._])].sort((e,t)=>t.length-e.length),E=0===x.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),O=new Map(S.map((e,t)=>[e,t]));return{minusSign:y,plusSign:g,decimal:w,group:b,literals:E,numeral:new RegExp(`[${S.join("")}]`,"g"),index:e=>String(O.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const p=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),f=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function m(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},1635(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>I,__assign:()=>o,__asyncDelegator:()=>O,__asyncGenerator:()=>S,__asyncValues:()=>j,__await:()=>E,__awaiter:()=>h,__classPrivateFieldGet:()=>M,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>T,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>A,__esDecorate:()=>c,__exportStar:()=>g,__extends:()=>i,__generator:()=>d,__importDefault:()=>z,__importStar:()=>H,__makeTemplateObject:()=>P,__metadata:()=>m,__param:()=>l,__propKey:()=>p,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>C,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>v,__spreadArray:()=>x,__spreadArrays:()=>_,__values:()=>w,default:()=>N});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,m=r.length-1;m>=0;m--){var h={};for(var d in n)h[d]="access"===d?{}:n[d];for(var d in n.access)h.access[d]=n.access[d];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[m])("accessor"===l?{get:p.get,set:p.set}:p[c],h);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(p.get=s),(s=a(y.set))&&(p.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===l?i.unshift(s):p[c]=s)}u&&Object.defineProperty(u,n.name,p),f=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function m(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function w(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function x(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=i[e](t)).value instanceof E?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:i?i(t):t}:i}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=w(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var D=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},F=function(e){return F=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},F(e)};function H(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=F(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return D(t,e),t}function z(e){return e&&e.__esModule?e:{default:e}}function M(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var V="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function A(e){function t(t){e.error=e.hasError?new V(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function C(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}const N={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:p,__setFunctionName:f,__metadata:m,__awaiter:h,__generator:d,__createBinding:y,__exportStar:g,__values:w,__read:b,__spread:v,__spreadArrays:_,__spreadArray:x,__await:E,__asyncGenerator:S,__asyncDelegator:O,__asyncValues:j,__makeTemplateObject:P,__importStar:H,__importDefault:z,__classPrivateFieldGet:M,__classPrivateFieldSet:T,__classPrivateFieldIn:R,__addDisposableResource:I,__disposeResources:A,__rewriteRelativeImportExtension:C}}}]);
|
package/dist/945.js.LICENSE.txt
DELETED
|
File without changes
|
|
File without changes
|