@openmrs/esm-login-app 3.3.2-pre.62 → 3.3.2-pre.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +35 -35
- package/dist/322.js +1 -1
- package/dist/393.js +1 -1
- package/dist/743.js +1 -1
- package/dist/889.js +1 -1
- package/dist/openmrs-esm-login-app.js +1 -1
- package/dist/openmrs-esm-login-app.js.buildmanifest.json +7 -7
- package/dist/openmrs-esm-login-app.old +1 -1
- package/package.json +4 -4
package/dist/393.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 393.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[393],{6058:(t,n,e)=>{"use strict";var r=e(2594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(n,e,r){if("string"!=typeof e){if(d){var o=h(e);o&&o!==d&&t(n,o,r)}var a=f(e);l&&(a=a.concat(l(e)));for(var c=u(n),v=u(e),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=p(e,y);try{s(n,y,g)}catch(t){}}}}return n}},6697:(t,n)=>{"use strict";var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return n}}case o:return n}}}function P(t){return b(t)===l}n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=m,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isAsyncMode=function(t){return P(t)||b(t)===f},n.isConcurrentMode=P,n.isContextConsumer=function(t){return b(t)===s},n.isContextProvider=function(t){return b(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return b(t)===p},n.isFragment=function(t){return b(t)===i},n.isLazy=function(t){return b(t)===m},n.isMemo=function(t){return b(t)===v},n.isPortal=function(t){return b(t)===o},n.isProfiler=function(t){return b(t)===c},n.isStrictMode=function(t){return b(t)===a},n.isSuspense=function(t){return b(t)===h},n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===x||t.$$typeof===y)},n.typeOf=b},2594:(t,n,e)=>{"use strict";t.exports=e(6697)},7393:(t,n,e)=>{"use strict";e.r(n),e.d(n,{BrowserRouter:()=>gt,HashRouter:()=>wt,Link:()=>Ot,MemoryRouter:()=>z,NavLink:()=>St,Prompt:()=>G,Redirect:()=>tt,Route:()=>ot,Router:()=>q,StaticRouter:()=>ft,Switch:()=>lt,generatePath:()=>Y,matchPath:()=>rt,useHistory:()=>dt,useLocation:()=>vt,useParams:()=>mt,useRouteMatch:()=>yt,withRouter:()=>pt});var r=e(3974),o=e(6983),i=e.n(o),a=e(11);function c(t){return"/"===t.charAt(0)}function u(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const f=function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));if("object"==typeof n||"object"==typeof e){var r=s(n),o=s(e);return r!==n||o!==e?t(r,o):Object.keys(Object.assign({},n,e)).every((function(r){return t(n[r],e[r])}))}return!1};function l(t,n){if(!t)throw new Error("Invariant failed")}function p(t){return"/"===t.charAt(0)?t:"/"+t}function h(t){return"/"===t.charAt(0)?t.substr(1):t}function d(t,n){return function(t,n){return 0===t.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(n.length))}(t,n)?t.substr(n.length):t}function v(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t),o.state=n):(void 0===(o=(0,a.Z)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,n){void 0===n&&(n="");var e,r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&c(t),a=n&&c(n),s=i||a;if(t&&c(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var f=o[o.length-1];e="."===f||".."===f||""===f}else e=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?u(o,p):".."===h?(u(o,p),l++):l&&(u(o,p),l--)}if(!s)for(;l--;l)o.unshift("..");!s||""===o[0]||o[0]&&c(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var t=null,n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(t,n){n(window.confirm(t))}var b="popstate",P="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function C(t){void 0===t&&(t={}),w||l(!1);var n,e=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,c=i.forceRefresh,u=void 0!==c&&c,s=i.getUserConfirmation,f=void 0===s?x:s,h=i.keyLength,C=void 0===h?6:h,O=t.basename?v(p(t.basename)):"";function k(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=d(i,O)),y(i,r,e)}function R(){return Math.random().toString(36).substr(2,C)}var S=g();function A(t){(0,a.Z)(H,t),H.length=e.length,S.notifyListeners(H.location,H.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(k(t.state))}function $(){L(k(E()))}var _=!1;function L(t){_?(_=!1,A()):S.confirmTransitionTo(t,"POP",f,(function(n){n?A({action:"POP",location:t}):function(t){var n=H.location,e=Z.indexOf(n.key);-1===e&&(e=0);var r=Z.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(_=!0,j(o))}(t)}))}var M=k(E()),Z=[M.key];function U(t){return O+m(t)}function j(t){e.go(t)}var N=0;function F(t){1===(N+=t)&&1===t?(window.addEventListener(b,T),o&&window.addEventListener(P,$)):0===N&&(window.removeEventListener(b,T),o&&window.removeEventListener(P,$))}var B=!1,H={length:e.length,action:"POP",location:M,createHref:U,push:function(t,n){var o="PUSH",i=y(t,n,R(),H.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.pushState({key:a,state:c},null,n),u)window.location.href=n;else{var s=Z.indexOf(H.location.key),f=Z.slice(0,s+1);f.push(i.key),Z=f,A({action:o,location:i})}else window.location.href=n}}))},replace:function(t,n){var o="REPLACE",i=y(t,n,R(),H.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.replaceState({key:a,state:c},null,n),u)window.location.replace(n);else{var s=Z.indexOf(H.location.key);-1!==s&&(Z[s]=i.key),A({action:o,location:i})}else window.location.replace(n)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(t){void 0===t&&(t=!1);var n=S.setPrompt(t);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),n()}},listen:function(t){var n=S.appendListener(t);return F(1),function(){F(-1),n()}}};return H}var O="hashchange",k={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+h(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:h,decodePath:p},slash:{encodePath:p,decodePath:p}};function R(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function S(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function A(t){window.location.replace(R(window.location.href)+"#"+t)}function T(t){void 0===t&&(t={}),w||l(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?x:r,i=e.hashType,c=void 0===i?"slash":i,u=t.basename?v(p(t.basename)):"",s=k[c],f=s.encodePath,h=s.decodePath;function b(){var t=h(S());return u&&(t=d(t,u)),y(t)}var P=g();function E(t){(0,a.Z)(B,t),B.length=n.length,P.notifyListeners(B.location,B.action)}var C=!1,T=null;function $(){var t,n,e=S(),r=f(e);if(e!==r)A(r);else{var i=b(),a=B.location;if(!C&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(T===m(i))return;T=null,function(t){if(C)C=!1,E();else{P.confirmTransitionTo(t,"POP",o,(function(n){n?E({action:"POP",location:t}):function(t){var n=B.location,e=Z.lastIndexOf(m(n));-1===e&&(e=0);var r=Z.lastIndexOf(m(t));-1===r&&(r=0);var o=e-r;o&&(C=!0,U(o))}(t)}))}}(i)}}var _=S(),L=f(_);_!==L&&A(L);var M=b(),Z=[m(M)];function U(t){n.go(t)}var j=0;function N(t){1===(j+=t)&&1===t?window.addEventListener(O,$):0===j&&window.removeEventListener(O,$)}var F=!1,B={length:n.length,action:"POP",location:M,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=R(window.location.href)),e+"#"+f(u+m(t))},push:function(t,n){var e="PUSH",r=y(t,void 0,void 0,B.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=m(r),o=f(u+n);if(S()!==o){T=n,function(t){window.location.hash=t}(o);var i=Z.lastIndexOf(m(B.location)),a=Z.slice(0,i+1);a.push(n),Z=a,E({action:e,location:r})}else E()}}))},replace:function(t,n){var e="REPLACE",r=y(t,void 0,void 0,B.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=m(r),o=f(u+n);S()!==o&&(T=n,A(o));var i=Z.indexOf(m(B.location));-1!==i&&(Z[i]=n),E({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=P.setPrompt(t);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),n()}},listen:function(t){var n=P.appendListener(t);return N(1),function(){N(-1),n()}}};return B}function $(t,n,e){return Math.min(Math.max(t,n),e)}function _(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,c=void 0===i?0:i,u=n.keyLength,s=void 0===u?6:u,f=g();function l(t){(0,a.Z)(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=$(c,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),v=m;function w(t){var n=$(x.index+t,0,x.entries.length-1),r=x.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var x={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=y(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=x.index+1,e=x.entries.slice(0);e.length>n?e.splice(n,e.length-n,o):e.push(o),l({action:r,location:o,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=y(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(x.entries[x.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var n=x.index+t;return n>=0&&n<x.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}var L=e(216),M=e.n(L),Z=1073741823,U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:{};function j(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}const N=i().createContext||function(t,n){var e,i,a,c="__create-react-context-"+((U[a="__global_unique_id__"]=(U[a]||0)+1)+"__"),u=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).emitter=j(n.props.value),n}(0,r.Z)(e,t);var o=e.prototype;return o.getChildContext=function(){var t;return(t={})[c]=this.emitter,t},o.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?e=0:(e="function"==typeof n?n(r,o):Z,0!=(e|=0)&&this.emitter.set(t.value,e))}var i,a},o.render=function(){return this.props.children},e}(o.Component);u.childContextTypes=((e={})[c]=M().object.isRequired,e);var s=function(n){function e(){var t;return(t=n.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(n,e){0!=((0|t.observedBits)&e)&&t.setState({value:t.getValue()})},t}(0,r.Z)(e,n);var o=e.prototype;return o.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?Z:n},o.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?Z:t},o.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},o.getValue=function(){return this.context[c]?this.context[c].get():t},o.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},e}(o.Component);return s.contextTypes=((i={})[c]=M().object,i),{Provider:u,Consumer:s}};var F=e(2816),B=e.n(F),H=(e(2594),e(3573)),I=e(6058),D=e.n(I),W=function(t){var n=N();return n.displayName=t,n},V=W("Router-History"),K=W("Router"),q=function(t){function n(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._isMounted?e.setState({location:t}):e._pendingLocation=t}))),e}(0,r.Z)(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=n.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return i().createElement(K.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(V.Provider,{children:this.props.children||null,value:this.props.history}))},n}(i().Component),z=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=_(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),J=function(t){function n(){return t.apply(this,arguments)||this}(0,r.Z)(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(i().Component);function G(t){var n=t.message,e=t.when,r=void 0===e||e;return i().createElement(K.Consumer,null,(function(t){if(t||l(!1),!r||t.staticContext)return null;var e=t.history.block;return i().createElement(J,{onMount:function(t){t.release=e(n)},onUpdate:function(t,r){r.message!==n&&(t.release(),t.release=e(n))},onUnmount:function(t){t.release()},message:n})}))}var Q={},X=0;function Y(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(Q[t])return Q[t];var n=B().compile(t);return X<1e4&&(Q[t]=n,X++),n}(t)(n,{pretty:!0})}function tt(t){var n=t.computedMatch,e=t.to,r=t.push,o=void 0!==r&&r;return i().createElement(K.Consumer,null,(function(t){t||l(!1);var r=t.history,c=t.staticContext,u=o?r.push:r.replace,s=y(n?"string"==typeof e?Y(e,n.params):(0,a.Z)({},e,{pathname:Y(e.pathname,n.params)}):e);return c?(u(s),null):i().createElement(J,{onMount:function(){u(s)},onUpdate:function(t,n){var e,r,o=y(n.to);e=o,r=(0,a.Z)({},s,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&f(e.state,r.state)||u(s)},to:e})}))}var nt={},et=0;function rt(t,n){void 0===n&&(n={}),("string"==typeof n||Array.isArray(n))&&(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=nt[e]||(nt[e]={});if(r[t])return r[t];var o=[],i={regexp:B()(t,o,n),keys:o};return et<1e4&&(r[t]=i,et++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var ot=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.Z)(n,t),n.prototype.render=function(){var t=this;return i().createElement(K.Consumer,null,(function(n){n||l(!1);var e=t.props.location||n.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?rt(e.pathname,t.props):n.match,o=(0,a.Z)({},n,{location:e,match:r}),c=t.props,u=c.children,s=c.component,f=c.render;return Array.isArray(u)&&function(t){return 0===i().Children.count(t)}(u)&&(u=null),i().createElement(K.Provider,{value:o},o.match?u?"function"==typeof u?u(o):u:s?i().createElement(s,o):f?f(o):null:"function"==typeof u?u(o):null)}))},n}(i().Component);function it(t){return"/"===t.charAt(0)?t:"/"+t}function at(t,n){if(!t)return n;var e=it(t);return 0!==n.pathname.indexOf(e)?n:(0,a.Z)({},n,{pathname:n.pathname.substr(e.length)})}function ct(t){return"string"==typeof t?t:m(t)}function ut(t){return function(){l(!1)}}function st(){}var ft=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return st},n.handleBlock=function(){return st},n}(0,r.Z)(n,t);var e=n.prototype;return e.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,c=void 0===i?{}:i;c.action=n,c.location=function(t,n){return t?(0,a.Z)({},n,{pathname:it(t)+n.pathname}):n}(o,y(t)),c.url=ct(c.location)},e.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,c=t.location,u=void 0===c?"/":c,s=(0,H.Z)(t,["basename","context","location"]),f={createHref:function(t){return it(e+ct(t))},action:"POP",location:at(e,y(u)),push:this.handlePush,replace:this.handleReplace,go:ut(),goBack:ut(),goForward:ut(),listen:this.handleListen,block:this.handleBlock};return i().createElement(q,(0,a.Z)({},s,{history:f,staticContext:o}))},n}(i().Component),lt=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.Z)(n,t),n.prototype.render=function(){var t=this;return i().createElement(K.Consumer,null,(function(n){n||l(!1);var e,r,o=t.props.location||n.location;return i().Children.forEach(t.props.children,(function(t){if(null==r&&i().isValidElement(t)){e=t;var c=t.props.path||t.props.from;r=c?rt(o.pathname,(0,a.Z)({},t.props,{path:c})):n.match}})),r?i().cloneElement(e,{location:o,computedMatch:r}):null}))},n}(i().Component);function pt(t){var n="withRouter("+(t.displayName||t.name)+")",e=function(n){var e=n.wrappedComponentRef,r=(0,H.Z)(n,["wrappedComponentRef"]);return i().createElement(K.Consumer,null,(function(n){return n||l(!1),i().createElement(t,(0,a.Z)({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,D()(e,t)}var ht=i().useContext;function dt(){return ht(V)}function vt(){return ht(K).location}function mt(){var t=ht(K).match;return t?t.params:{}}function yt(t){var n=vt(),e=ht(K).match;return t?rt(n.pathname,t):e}var gt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=C(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),wt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=T(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),xt=function(t,n){return"function"==typeof t?t(n):t},bt=function(t,n){return"string"==typeof t?y(t,null,null,n):t},Pt=function(t){return t},Et=i().forwardRef;void 0===Et&&(Et=Pt);var Ct=Et((function(t,n){var e=t.innerRef,r=t.navigate,o=t.onClick,c=(0,H.Z)(t,["innerRef","navigate","onClick"]),u=c.target,s=(0,a.Z)({},c,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||u&&"_self"!==u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=Pt!==Et&&n||e,i().createElement("a",s)})),Ot=Et((function(t,n){var e=t.component,r=void 0===e?Ct:e,o=t.replace,c=t.to,u=t.innerRef,s=(0,H.Z)(t,["component","replace","to","innerRef"]);return i().createElement(K.Consumer,null,(function(t){t||l(!1);var e=t.history,f=bt(xt(c,t.location),t.location),p=f?e.createHref(f):"",h=(0,a.Z)({},s,{href:p,navigate:function(){var n=xt(c,t.location),r=m(t.location)===m(bt(n));(o||r?e.replace:e.push)(n)}});return Pt!==Et?h.ref=n||u:h.innerRef=u,i().createElement(r,h)}))})),kt=function(t){return t},Rt=i().forwardRef;void 0===Rt&&(Rt=kt);var St=Rt((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,c=void 0===o?"active":o,u=t.activeStyle,s=t.className,f=t.exact,p=t.isActive,h=t.location,d=t.sensitive,v=t.strict,m=t.style,y=t.to,g=t.innerRef,w=(0,H.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i().createElement(K.Consumer,null,(function(t){t||l(!1);var e=h||t.location,o=bt(xt(y,e),e),x=o.pathname,b=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=b?rt(e.pathname,{path:b,exact:f,sensitive:d,strict:v}):null,E=!!(p?p(P,e):P),C="function"==typeof s?s(E):s,O="function"==typeof m?m(E):m;E&&(C=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(C,c),O=(0,a.Z)({},O,u));var k=(0,a.Z)({"aria-current":E&&r||null,className:C,style:O,to:o},w);return kt!==Rt?k.ref=n||g:k.innerRef=g,i().createElement(Ot,k)}))}))},9547:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},2816:(t,n,e)=>{var r=e(9547);t.exports=function t(n,e,o){return r(e)||(o=e||o,e=[]),o=o||{},n instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,n)}(n,e):r(n)?function(n,e,r){for(var o=[],i=0;i<n.length;i++)o.push(t(n[i],e,r).source);return f(new RegExp("(?:"+o.join("|")+")",l(r)),e)}(n,e,o):function(t,n,e){return p(i(t,e),n,e)}(n,e,o)},t.exports.parse=i,t.exports.compile=function(t,n){return c(i(t,n),n)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,n){for(var e,r=[],i=0,a=0,c="",f=n&&n.delimiter||"/";null!=(e=o.exec(t));){var l=e[0],p=e[1],h=e.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=e[2],m=e[3],y=e[4],g=e[5],w=e[6],x=e[7];c&&(r.push(c),c="");var b=null!=v&&null!=d&&d!==v,P="+"===w||"*"===w,E="?"===w||"*"===w,C=e[2]||f,O=y||g;r.push({name:m||i++,prefix:v||"",delimiter:C,optional:E,repeat:P,partial:b,asterisk:!!x,pattern:O?s(O):x?".*":"[^"+u(C)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,n){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$",l(n)));return function(n,o){for(var i="",c=n||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!e[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!e[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,n){return t.keys=n,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,n,e){r(n)||(e=n||e,n=[]);for(var o=(e=e||{}).strict,i=!1!==e.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";n.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(e.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(e)),n)}},11:(t,n,e)=>{"use strict";function r(){return r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},r.apply(this,arguments)}e.d(n,{Z:()=>r})},3974:(t,n,e)=>{"use strict";function r(t,n){return r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},r(t,n)}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n)}e.d(n,{Z:()=>o})},3573:(t,n,e)=>{"use strict";function r(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}e.d(n,{Z:()=>r})}}]);
|
|
2
|
+
(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[393],{6058:(t,n,e)=>{"use strict";var r=e(2594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(n,e,r){if("string"!=typeof e){if(d){var o=h(e);o&&o!==d&&t(n,o,r)}var a=f(e);l&&(a=a.concat(l(e)));for(var c=u(n),v=u(e),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=p(e,y);try{s(n,y,g)}catch(t){}}}}return n}},6697:(t,n)=>{"use strict";var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return n}}case o:return n}}}function P(t){return b(t)===l}n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=m,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isAsyncMode=function(t){return P(t)||b(t)===f},n.isConcurrentMode=P,n.isContextConsumer=function(t){return b(t)===s},n.isContextProvider=function(t){return b(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return b(t)===p},n.isFragment=function(t){return b(t)===i},n.isLazy=function(t){return b(t)===m},n.isMemo=function(t){return b(t)===v},n.isPortal=function(t){return b(t)===o},n.isProfiler=function(t){return b(t)===c},n.isStrictMode=function(t){return b(t)===a},n.isSuspense=function(t){return b(t)===h},n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===x||t.$$typeof===y)},n.typeOf=b},2594:(t,n,e)=>{"use strict";t.exports=e(6697)},7393:(t,n,e)=>{"use strict";e.r(n),e.d(n,{BrowserRouter:()=>gt,HashRouter:()=>wt,Link:()=>Ot,MemoryRouter:()=>z,NavLink:()=>St,Prompt:()=>G,Redirect:()=>tt,Route:()=>ot,Router:()=>q,StaticRouter:()=>ft,Switch:()=>lt,generatePath:()=>Y,matchPath:()=>rt,useHistory:()=>dt,useLocation:()=>vt,useParams:()=>mt,useRouteMatch:()=>yt,withRouter:()=>pt});var r=e(3974),o=e(6983),i=e.n(o),a=e(11);function c(t){return"/"===t.charAt(0)}function u(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const f=function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));if("object"==typeof n||"object"==typeof e){var r=s(n),o=s(e);return r!==n||o!==e?t(r,o):Object.keys(Object.assign({},n,e)).every((function(r){return t(n[r],e[r])}))}return!1};function l(t,n){if(!t)throw new Error("Invariant failed")}function p(t){return"/"===t.charAt(0)?t:"/"+t}function h(t){return"/"===t.charAt(0)?t.substr(1):t}function d(t,n){return function(t,n){return 0===t.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(n.length))}(t,n)?t.substr(n.length):t}function v(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t),o.state=n):(void 0===(o=(0,a.Z)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,n){void 0===n&&(n="");var e,r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&c(t),a=n&&c(n),s=i||a;if(t&&c(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var f=o[o.length-1];e="."===f||".."===f||""===f}else e=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?u(o,p):".."===h?(u(o,p),l++):l&&(u(o,p),l--)}if(!s)for(;l--;l)o.unshift("..");!s||""===o[0]||o[0]&&c(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var t=null,n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(t,n){n(window.confirm(t))}var b="popstate",P="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function C(t){void 0===t&&(t={}),w||l(!1);var n,e=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,c=i.forceRefresh,u=void 0!==c&&c,s=i.getUserConfirmation,f=void 0===s?x:s,h=i.keyLength,C=void 0===h?6:h,O=t.basename?v(p(t.basename)):"";function k(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=d(i,O)),y(i,r,e)}function R(){return Math.random().toString(36).substr(2,C)}var S=g();function A(t){(0,a.Z)(H,t),H.length=e.length,S.notifyListeners(H.location,H.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(k(t.state))}function $(){L(k(E()))}var _=!1;function L(t){_?(_=!1,A()):S.confirmTransitionTo(t,"POP",f,(function(n){n?A({action:"POP",location:t}):function(t){var n=H.location,e=Z.indexOf(n.key);-1===e&&(e=0);var r=Z.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(_=!0,j(o))}(t)}))}var M=k(E()),Z=[M.key];function U(t){return O+m(t)}function j(t){e.go(t)}var N=0;function F(t){1===(N+=t)&&1===t?(window.addEventListener(b,T),o&&window.addEventListener(P,$)):0===N&&(window.removeEventListener(b,T),o&&window.removeEventListener(P,$))}var B=!1,H={length:e.length,action:"POP",location:M,createHref:U,push:function(t,n){var o="PUSH",i=y(t,n,R(),H.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.pushState({key:a,state:c},null,n),u)window.location.href=n;else{var s=Z.indexOf(H.location.key),f=Z.slice(0,s+1);f.push(i.key),Z=f,A({action:o,location:i})}else window.location.href=n}}))},replace:function(t,n){var o="REPLACE",i=y(t,n,R(),H.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.replaceState({key:a,state:c},null,n),u)window.location.replace(n);else{var s=Z.indexOf(H.location.key);-1!==s&&(Z[s]=i.key),A({action:o,location:i})}else window.location.replace(n)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(t){void 0===t&&(t=!1);var n=S.setPrompt(t);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),n()}},listen:function(t){var n=S.appendListener(t);return F(1),function(){F(-1),n()}}};return H}var O="hashchange",k={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+h(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:h,decodePath:p},slash:{encodePath:p,decodePath:p}};function R(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function S(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function A(t){window.location.replace(R(window.location.href)+"#"+t)}function T(t){void 0===t&&(t={}),w||l(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?x:r,i=e.hashType,c=void 0===i?"slash":i,u=t.basename?v(p(t.basename)):"",s=k[c],f=s.encodePath,h=s.decodePath;function b(){var t=h(S());return u&&(t=d(t,u)),y(t)}var P=g();function E(t){(0,a.Z)(B,t),B.length=n.length,P.notifyListeners(B.location,B.action)}var C=!1,T=null;function $(){var t,n,e=S(),r=f(e);if(e!==r)A(r);else{var i=b(),a=B.location;if(!C&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(T===m(i))return;T=null,function(t){if(C)C=!1,E();else{P.confirmTransitionTo(t,"POP",o,(function(n){n?E({action:"POP",location:t}):function(t){var n=B.location,e=Z.lastIndexOf(m(n));-1===e&&(e=0);var r=Z.lastIndexOf(m(t));-1===r&&(r=0);var o=e-r;o&&(C=!0,U(o))}(t)}))}}(i)}}var _=S(),L=f(_);_!==L&&A(L);var M=b(),Z=[m(M)];function U(t){n.go(t)}var j=0;function N(t){1===(j+=t)&&1===t?window.addEventListener(O,$):0===j&&window.removeEventListener(O,$)}var F=!1,B={length:n.length,action:"POP",location:M,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=R(window.location.href)),e+"#"+f(u+m(t))},push:function(t,n){var e="PUSH",r=y(t,void 0,void 0,B.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=m(r),o=f(u+n);if(S()!==o){T=n,function(t){window.location.hash=t}(o);var i=Z.lastIndexOf(m(B.location)),a=Z.slice(0,i+1);a.push(n),Z=a,E({action:e,location:r})}else E()}}))},replace:function(t,n){var e="REPLACE",r=y(t,void 0,void 0,B.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=m(r),o=f(u+n);S()!==o&&(T=n,A(o));var i=Z.indexOf(m(B.location));-1!==i&&(Z[i]=n),E({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=P.setPrompt(t);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),n()}},listen:function(t){var n=P.appendListener(t);return N(1),function(){N(-1),n()}}};return B}function $(t,n,e){return Math.min(Math.max(t,n),e)}function _(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,c=void 0===i?0:i,u=n.keyLength,s=void 0===u?6:u,f=g();function l(t){(0,a.Z)(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=$(c,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),v=m;function w(t){var n=$(x.index+t,0,x.entries.length-1),r=x.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var x={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=y(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=x.index+1,e=x.entries.slice(0);e.length>n?e.splice(n,e.length-n,o):e.push(o),l({action:r,location:o,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=y(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(x.entries[x.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var n=x.index+t;return n>=0&&n<x.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}var L=e(216),M=e.n(L),Z=1073741823,U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:{};function j(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}const N=i().createContext||function(t,n){var e,i,a,c="__create-react-context-"+((U[a="__global_unique_id__"]=(U[a]||0)+1)+"__"),u=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).emitter=j(n.props.value),n}(0,r.Z)(e,t);var o=e.prototype;return o.getChildContext=function(){var t;return(t={})[c]=this.emitter,t},o.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?e=0:(e="function"==typeof n?n(r,o):Z,0!=(e|=0)&&this.emitter.set(t.value,e))}var i,a},o.render=function(){return this.props.children},e}(o.Component);u.childContextTypes=((e={})[c]=M().object.isRequired,e);var s=function(n){function e(){var t;return(t=n.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(n,e){0!=((0|t.observedBits)&e)&&t.setState({value:t.getValue()})},t}(0,r.Z)(e,n);var o=e.prototype;return o.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?Z:n},o.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?Z:t},o.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},o.getValue=function(){return this.context[c]?this.context[c].get():t},o.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},e}(o.Component);return s.contextTypes=((i={})[c]=M().object,i),{Provider:u,Consumer:s}};var F=e(2816),B=e.n(F),H=(e(2594),e(6017)),I=e(6058),D=e.n(I),W=function(t){var n=N();return n.displayName=t,n},V=W("Router-History"),K=W("Router"),q=function(t){function n(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._isMounted?e.setState({location:t}):e._pendingLocation=t}))),e}(0,r.Z)(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=n.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return i().createElement(K.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(V.Provider,{children:this.props.children||null,value:this.props.history}))},n}(i().Component),z=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=_(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),J=function(t){function n(){return t.apply(this,arguments)||this}(0,r.Z)(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(i().Component);function G(t){var n=t.message,e=t.when,r=void 0===e||e;return i().createElement(K.Consumer,null,(function(t){if(t||l(!1),!r||t.staticContext)return null;var e=t.history.block;return i().createElement(J,{onMount:function(t){t.release=e(n)},onUpdate:function(t,r){r.message!==n&&(t.release(),t.release=e(n))},onUnmount:function(t){t.release()},message:n})}))}var Q={},X=0;function Y(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(Q[t])return Q[t];var n=B().compile(t);return X<1e4&&(Q[t]=n,X++),n}(t)(n,{pretty:!0})}function tt(t){var n=t.computedMatch,e=t.to,r=t.push,o=void 0!==r&&r;return i().createElement(K.Consumer,null,(function(t){t||l(!1);var r=t.history,c=t.staticContext,u=o?r.push:r.replace,s=y(n?"string"==typeof e?Y(e,n.params):(0,a.Z)({},e,{pathname:Y(e.pathname,n.params)}):e);return c?(u(s),null):i().createElement(J,{onMount:function(){u(s)},onUpdate:function(t,n){var e,r,o=y(n.to);e=o,r=(0,a.Z)({},s,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&f(e.state,r.state)||u(s)},to:e})}))}var nt={},et=0;function rt(t,n){void 0===n&&(n={}),("string"==typeof n||Array.isArray(n))&&(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=nt[e]||(nt[e]={});if(r[t])return r[t];var o=[],i={regexp:B()(t,o,n),keys:o};return et<1e4&&(r[t]=i,et++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var ot=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.Z)(n,t),n.prototype.render=function(){var t=this;return i().createElement(K.Consumer,null,(function(n){n||l(!1);var e=t.props.location||n.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?rt(e.pathname,t.props):n.match,o=(0,a.Z)({},n,{location:e,match:r}),c=t.props,u=c.children,s=c.component,f=c.render;return Array.isArray(u)&&function(t){return 0===i().Children.count(t)}(u)&&(u=null),i().createElement(K.Provider,{value:o},o.match?u?"function"==typeof u?u(o):u:s?i().createElement(s,o):f?f(o):null:"function"==typeof u?u(o):null)}))},n}(i().Component);function it(t){return"/"===t.charAt(0)?t:"/"+t}function at(t,n){if(!t)return n;var e=it(t);return 0!==n.pathname.indexOf(e)?n:(0,a.Z)({},n,{pathname:n.pathname.substr(e.length)})}function ct(t){return"string"==typeof t?t:m(t)}function ut(t){return function(){l(!1)}}function st(){}var ft=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return st},n.handleBlock=function(){return st},n}(0,r.Z)(n,t);var e=n.prototype;return e.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,c=void 0===i?{}:i;c.action=n,c.location=function(t,n){return t?(0,a.Z)({},n,{pathname:it(t)+n.pathname}):n}(o,y(t)),c.url=ct(c.location)},e.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,c=t.location,u=void 0===c?"/":c,s=(0,H.Z)(t,["basename","context","location"]),f={createHref:function(t){return it(e+ct(t))},action:"POP",location:at(e,y(u)),push:this.handlePush,replace:this.handleReplace,go:ut(),goBack:ut(),goForward:ut(),listen:this.handleListen,block:this.handleBlock};return i().createElement(q,(0,a.Z)({},s,{history:f,staticContext:o}))},n}(i().Component),lt=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.Z)(n,t),n.prototype.render=function(){var t=this;return i().createElement(K.Consumer,null,(function(n){n||l(!1);var e,r,o=t.props.location||n.location;return i().Children.forEach(t.props.children,(function(t){if(null==r&&i().isValidElement(t)){e=t;var c=t.props.path||t.props.from;r=c?rt(o.pathname,(0,a.Z)({},t.props,{path:c})):n.match}})),r?i().cloneElement(e,{location:o,computedMatch:r}):null}))},n}(i().Component);function pt(t){var n="withRouter("+(t.displayName||t.name)+")",e=function(n){var e=n.wrappedComponentRef,r=(0,H.Z)(n,["wrappedComponentRef"]);return i().createElement(K.Consumer,null,(function(n){return n||l(!1),i().createElement(t,(0,a.Z)({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,D()(e,t)}var ht=i().useContext;function dt(){return ht(V)}function vt(){return ht(K).location}function mt(){var t=ht(K).match;return t?t.params:{}}function yt(t){var n=vt(),e=ht(K).match;return t?rt(n.pathname,t):e}var gt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=C(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),wt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=T(n.props),n}return(0,r.Z)(n,t),n.prototype.render=function(){return i().createElement(q,{history:this.history,children:this.props.children})},n}(i().Component),xt=function(t,n){return"function"==typeof t?t(n):t},bt=function(t,n){return"string"==typeof t?y(t,null,null,n):t},Pt=function(t){return t},Et=i().forwardRef;void 0===Et&&(Et=Pt);var Ct=Et((function(t,n){var e=t.innerRef,r=t.navigate,o=t.onClick,c=(0,H.Z)(t,["innerRef","navigate","onClick"]),u=c.target,s=(0,a.Z)({},c,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||u&&"_self"!==u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=Pt!==Et&&n||e,i().createElement("a",s)})),Ot=Et((function(t,n){var e=t.component,r=void 0===e?Ct:e,o=t.replace,c=t.to,u=t.innerRef,s=(0,H.Z)(t,["component","replace","to","innerRef"]);return i().createElement(K.Consumer,null,(function(t){t||l(!1);var e=t.history,f=bt(xt(c,t.location),t.location),p=f?e.createHref(f):"",h=(0,a.Z)({},s,{href:p,navigate:function(){var n=xt(c,t.location),r=m(t.location)===m(bt(n));(o||r?e.replace:e.push)(n)}});return Pt!==Et?h.ref=n||u:h.innerRef=u,i().createElement(r,h)}))})),kt=function(t){return t},Rt=i().forwardRef;void 0===Rt&&(Rt=kt);var St=Rt((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,c=void 0===o?"active":o,u=t.activeStyle,s=t.className,f=t.exact,p=t.isActive,h=t.location,d=t.sensitive,v=t.strict,m=t.style,y=t.to,g=t.innerRef,w=(0,H.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i().createElement(K.Consumer,null,(function(t){t||l(!1);var e=h||t.location,o=bt(xt(y,e),e),x=o.pathname,b=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=b?rt(e.pathname,{path:b,exact:f,sensitive:d,strict:v}):null,E=!!(p?p(P,e):P),C="function"==typeof s?s(E):s,O="function"==typeof m?m(E):m;E&&(C=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(C,c),O=(0,a.Z)({},O,u));var k=(0,a.Z)({"aria-current":E&&r||null,className:C,style:O,to:o},w);return kt!==Rt?k.ref=n||g:k.innerRef=g,i().createElement(Ot,k)}))}))},9547:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},2816:(t,n,e)=>{var r=e(9547);t.exports=function t(n,e,o){return r(e)||(o=e||o,e=[]),o=o||{},n instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,n)}(n,e):r(n)?function(n,e,r){for(var o=[],i=0;i<n.length;i++)o.push(t(n[i],e,r).source);return f(new RegExp("(?:"+o.join("|")+")",l(r)),e)}(n,e,o):function(t,n,e){return p(i(t,e),n,e)}(n,e,o)},t.exports.parse=i,t.exports.compile=function(t,n){return c(i(t,n),n)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,n){for(var e,r=[],i=0,a=0,c="",f=n&&n.delimiter||"/";null!=(e=o.exec(t));){var l=e[0],p=e[1],h=e.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=e[2],m=e[3],y=e[4],g=e[5],w=e[6],x=e[7];c&&(r.push(c),c="");var b=null!=v&&null!=d&&d!==v,P="+"===w||"*"===w,E="?"===w||"*"===w,C=e[2]||f,O=y||g;r.push({name:m||i++,prefix:v||"",delimiter:C,optional:E,repeat:P,partial:b,asterisk:!!x,pattern:O?s(O):x?".*":"[^"+u(C)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,n){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$",l(n)));return function(n,o){for(var i="",c=n||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!e[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!e[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,n){return t.keys=n,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,n,e){r(n)||(e=n||e,n=[]);for(var o=(e=e||{}).strict,i=!1!==e.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";n.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(e.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(e)),n)}},11:(t,n,e)=>{"use strict";function r(){return r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},r.apply(this,arguments)}e.d(n,{Z:()=>r})},3974:(t,n,e)=>{"use strict";function r(t,n){return r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},r(t,n)}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n)}e.d(n,{Z:()=>o})},6017:(t,n,e)=>{"use strict";function r(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}e.d(n,{Z:()=>r})}}]);
|
package/dist/743.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[743],{5743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{I18nContext:()=>N,I18nextProvider:()=>ue,Trans:()=>J,Translation:()=>se,composeInitialProps:()=>z,date:()=>ye,getDefaults:()=>D,getI18n:()=>A,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>me,plural:()=>be,select:()=>he,selectOrdinal:()=>ve,setDefaults:()=>I,setI18n:()=>C,time:()=>ge,useSSR:()=>le,useTranslation:()=>ne,withSSR:()=>de,withTranslation:()=>ae});var r=n(3573);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(6983),s=n.n(c),u=n(1432),l=n.n(u),p=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function f(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(l()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(p),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),t.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var d=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,y=/^\s*$/,g=Object.create(null);function m(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(m,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var h={parse:function(e,t){t||(t={}),t.components||(t.components=g);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(d,(function(c,s){if(a){if(c!=="</"+n.name+">")return;a=!1}var u,l="/"!==c.charAt(1),p=c.startsWith("\x3c!--"),d=s+c.length,g=e.charAt(d);if(p){var m=f(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(n=f(c)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!g||"<"===g||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!l||n.voidElement)&&(i>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==g&&g)){u=-1===i?r:o[i].children;var h=e.indexOf("<",d),b=e.slice(d,-1===h?void 0:h);y.test(b)&&(b=" "),(h>-1&&i+u.length>=0||" "!==b)&&u.push({type:"text",content:b})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+m("",t)}),"")}};const b=h;var v="".replace,O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,j={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function w(e){return j[e]}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S,k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},N=s().createContext();function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k=x(x({},k),e)}function D(){return k}var R=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var t,n;return t=e,(n=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e){S=e}function A(){return S}var T={type:"3rdParty",init:function(e){I(e.options.react),C(e)}};function z(e){return function(t){return new Promise((function(n){var r=L();e.getInitialProps?e.getInitialProps(t).then((function(e){n(x(x({},e),r))})):n(r)}))}}function L(){var e=A(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}function B(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var U={};function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&U[t[0]]||("string"==typeof t[0]&&(U[t[0]]=new Date),B.apply(void 0,t))}function H(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return _("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!a(r,e)||o&&!a(i,e)))}function V(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var F=["format"],W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function q(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Y(e){return Array.isArray(e)?e:[e]}function G(e,t){if(!e)return"";var n="",r=Y(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((function(e,r){if("string"==typeof e)n+="".concat(e);else if(s().isValidElement(e)){var c=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)n+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)n+="<".concat(r,"></").concat(r,">");else if(u&&1===c&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=G(l,t);n+="<".concat(r,">").concat(p,"</").concat(r,">")}else n+="<".concat(r,"></").concat(r,">")}else if(null===e)B("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===i(e)){var f=e.format,d=o(e,F),y=Object.keys(d);if(1===y.length){var g=f?"".concat(y[0],", ").concat(f):y[0];n+="{{".concat(g,"}}")}else B("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else B("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function J(e){var t=e.children,n=e.count,r=e.parent,a=e.i18nKey,u=e.context,l=e.tOptions,p=void 0===l?{}:l,f=e.values,d=e.defaults,y=e.components,g=e.ns,m=e.i18n,h=e.t,j=e.shouldUnescape,P=o(e,W),E=(0,c.useContext)(N)||{},x=E.i18n,S=E.defaultNS,k=m||x||A();if(!k)return _("You will need to pass in an i18next instance by using i18nextReactModule"),t;var I=h||k.t.bind(k)||function(e){return e};u&&(p.context=u);var R=$($({},D()),k.options&&k.options.react),C=g||I.ns||S||k.options&&k.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];var T=d||G(t,R)||R.transEmptyNodeValue||a,z=R.hashTransKey,L=a||(z?z(T):T),B=f?p.interpolation:{interpolation:$($({},p.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=$($($($({},p),{},{count:n},f),B),{},{defaultValue:T,ns:C}),H=function(e,t,n,r,o,a){if(""===t)return[];var c=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(c.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){Y(t).forEach((function(t){"string"!=typeof t&&(Z(t)?e(q(t)):"object"!==i(t)||s().isValidElement(t)||Object.assign(l,t))}))}(e);var p=b.parse("<0>".concat(t,"</0>")),f=$($({},l),o);function d(e,t,n){var r=q(e),o=g(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return s().isValidElement(e)}))}(r)&&0===o.length?r:o}function y(e,t,n,r,o){e.dummy&&(e.children=t),n.push(s().cloneElement(e,$($({},e.props),{},{key:r}),o?void 0:t))}function g(t,o,l){var p=Y(t);return Y(o).reduce((function(t,o,m){var h,b,j,P,E=o.children&&o.children[0]&&o.children[0].content&&n.services.interpolator.interpolate(o.children[0].content,f,n.language);if("tag"===o.type){var x=p[parseInt(o.name,10)];!x&&1===l.length&&l[0][o.name]&&(x=l[0][o.name]),x||(x={});var S=0!==Object.keys(o.attrs).length?(b={props:o.attrs},(P=$({},j=x)).props=Object.assign(b.props,j.props),P):x,k=s().isValidElement(S),N=k&&Z(o,!0)&&!o.voidElement,I=u&&"object"===i(S)&&S.dummy&&!k,D="object"===i(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof S){var R=n.services.interpolator.interpolate(S,f,n.language);t.push(R)}else if(Z(S)||N)y(S,d(S,o,l),t,m);else if(I){var C=g(p,o.children,l);t.push(s().cloneElement(S,$($({},S.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(o.name)))if(D)y(S,d(S,o,l),t,m,o.voidElement);else if(r.transSupportBasicHtmlNodes&&c.indexOf(o.name)>-1)if(o.voidElement)t.push(s().createElement(o.name,{key:"".concat(o.name,"-").concat(m)}));else{var A=g(p,o.children,l);t.push(s().createElement(o.name,{key:"".concat(o.name,"-").concat(m)},A))}else if(o.voidElement)t.push("<".concat(o.name," />"));else{var T=g(p,o.children,l);t.push("<".concat(o.name,">").concat(T,"</").concat(o.name,">"))}else if("object"!==i(S)||k)1===o.children.length&&E?t.push(s().cloneElement(S,$($({},S.props),{},{key:m}),E)):t.push(s().cloneElement(S,$($({},S.props),{},{key:m})));else{var z=o.children[0]?E:null;z&&t.push(z)}}else if("text"===o.type){var L=r.transWrapTextNodes,B=a?(h=n.services.interpolator.interpolate(o.content,f,n.language),v.call(h,O,w)):n.services.interpolator.interpolate(o.content,f,n.language);L?t.push(s().createElement(L,{key:"".concat(o.name,"-").concat(m)},B)):t.push(B)}return t}),[])}return q(g([{dummy:!0,children:e||[]}],p,Y(e||[]))[0])}(y||t,L?I(L,U):T,k,R,U,j),K=void 0!==r?r:R.defaultTransParent;return K?s().createElement(K,P,H):H}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,c.useContext)(N)||{},o=r.i18n,i=r.defaultNS,a=n||o||A();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new R),!a){_("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&void 0!==a.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=te(te(te({},D()),a.options.react),t),p=l.useSuspense,f=l.keyPrefix,d=e||i||a.options&&a.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var y=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return K(e,a,l)}));function g(){return a.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=(0,c.useState)(g),h=X(m,2),b=h[0],v=h[1],O=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){O.current&&v(g)}return O.current=!0,y||p||H(a,d,(function(){O.current&&v(g)})),e&&a&&a.on(e,n),t&&a&&a.store.on(t,n),function(){O.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,n)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,n)}))}}),[a,d.join()]);var j=(0,c.useRef)(!0);(0,c.useEffect)((function(){O.current&&!j.current&&v(g),j.current=!1}),[a]);var w=[b,a,y];if(w.t=b,w.i18n=a,w.ready=y,y)return w;if(!y&&!p)return w;throw new Promise((function(e){H(a,d,(function(){e()}))}))}var re=["forwardedRef"];function oe(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,a=o(r,re),c=X(ne(e,a),3),u=c[0],l=c[1],p=c[2],f=ie(ie({},a),{},{t:u,i18n:l,tReady:p});return t.withRef&&i?f.ref=i:!t.withRef&&i&&(f.forwardedRef=i),s().createElement(n,f)}return r.displayName="withI18nextTranslation(".concat(V(n),")"),r.WrappedComponent=n,t.withRef?s().forwardRef((function(e,t){return s().createElement(r,Object.assign({},e,{forwardedRef:t}))})):r}}var ce=["ns","children"];function se(e){var t=e.ns,n=e.children,r=X(ne(t,o(e,ce)),3),i=r[0],a=r[1],c=r[2];return n(i,{i18n:a,lng:a.language},c)}function ue(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(N.Provider,{value:o},r)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,o=(0,c.useContext)(N)||{},i=o.i18n,a=r||i||A();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function fe(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 de(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,i=o(t,pe);return le(n,r),s().createElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i))}return t.getInitialProps=z(e),t.displayName="withI18nextSSR(".concat(V(e),")"),t.WrappedComponent=e,t}}var ye=function(){return""},ge=function(){return""},me=function(){return""},he=function(){return""},be=function(){return""},ve=function(){return""}},1432:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},3573:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})}}]);
|
|
1
|
+
(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[743],{5743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{I18nContext:()=>N,I18nextProvider:()=>ue,Trans:()=>J,Translation:()=>se,composeInitialProps:()=>z,date:()=>ye,getDefaults:()=>D,getI18n:()=>A,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>me,plural:()=>be,select:()=>he,selectOrdinal:()=>ve,setDefaults:()=>I,setI18n:()=>C,time:()=>ge,useSSR:()=>le,useTranslation:()=>ne,withSSR:()=>de,withTranslation:()=>ae});var r=n(6017);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(6983),s=n.n(c),u=n(1432),l=n.n(u),p=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function f(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(l()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(p),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),t.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var d=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,y=/^\s*$/,g=Object.create(null);function m(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(m,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var h={parse:function(e,t){t||(t={}),t.components||(t.components=g);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(d,(function(c,s){if(a){if(c!=="</"+n.name+">")return;a=!1}var u,l="/"!==c.charAt(1),p=c.startsWith("\x3c!--"),d=s+c.length,g=e.charAt(d);if(p){var m=f(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(n=f(c)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!g||"<"===g||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!l||n.voidElement)&&(i>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==g&&g)){u=-1===i?r:o[i].children;var h=e.indexOf("<",d),b=e.slice(d,-1===h?void 0:h);y.test(b)&&(b=" "),(h>-1&&i+u.length>=0||" "!==b)&&u.push({type:"text",content:b})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+m("",t)}),"")}};const b=h;var v="".replace,O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,j={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function w(e){return j[e]}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S,k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},N=s().createContext();function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k=x(x({},k),e)}function D(){return k}var R=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var t,n;return t=e,(n=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e){S=e}function A(){return S}var T={type:"3rdParty",init:function(e){I(e.options.react),C(e)}};function z(e){return function(t){return new Promise((function(n){var r=L();e.getInitialProps?e.getInitialProps(t).then((function(e){n(x(x({},e),r))})):n(r)}))}}function L(){var e=A(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}function B(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var U={};function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&U[t[0]]||("string"==typeof t[0]&&(U[t[0]]=new Date),B.apply(void 0,t))}function H(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return _("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!a(r,e)||o&&!a(i,e)))}function V(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var F=["format"],W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function q(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Y(e){return Array.isArray(e)?e:[e]}function G(e,t){if(!e)return"";var n="",r=Y(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((function(e,r){if("string"==typeof e)n+="".concat(e);else if(s().isValidElement(e)){var c=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)n+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)n+="<".concat(r,"></").concat(r,">");else if(u&&1===c&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=G(l,t);n+="<".concat(r,">").concat(p,"</").concat(r,">")}else n+="<".concat(r,"></").concat(r,">")}else if(null===e)B("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===i(e)){var f=e.format,d=o(e,F),y=Object.keys(d);if(1===y.length){var g=f?"".concat(y[0],", ").concat(f):y[0];n+="{{".concat(g,"}}")}else B("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else B("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function J(e){var t=e.children,n=e.count,r=e.parent,a=e.i18nKey,u=e.context,l=e.tOptions,p=void 0===l?{}:l,f=e.values,d=e.defaults,y=e.components,g=e.ns,m=e.i18n,h=e.t,j=e.shouldUnescape,P=o(e,W),E=(0,c.useContext)(N)||{},x=E.i18n,S=E.defaultNS,k=m||x||A();if(!k)return _("You will need to pass in an i18next instance by using i18nextReactModule"),t;var I=h||k.t.bind(k)||function(e){return e};u&&(p.context=u);var R=$($({},D()),k.options&&k.options.react),C=g||I.ns||S||k.options&&k.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];var T=d||G(t,R)||R.transEmptyNodeValue||a,z=R.hashTransKey,L=a||(z?z(T):T),B=f?p.interpolation:{interpolation:$($({},p.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=$($($($({},p),{},{count:n},f),B),{},{defaultValue:T,ns:C}),H=function(e,t,n,r,o,a){if(""===t)return[];var c=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(c.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){Y(t).forEach((function(t){"string"!=typeof t&&(Z(t)?e(q(t)):"object"!==i(t)||s().isValidElement(t)||Object.assign(l,t))}))}(e);var p=b.parse("<0>".concat(t,"</0>")),f=$($({},l),o);function d(e,t,n){var r=q(e),o=g(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return s().isValidElement(e)}))}(r)&&0===o.length?r:o}function y(e,t,n,r,o){e.dummy&&(e.children=t),n.push(s().cloneElement(e,$($({},e.props),{},{key:r}),o?void 0:t))}function g(t,o,l){var p=Y(t);return Y(o).reduce((function(t,o,m){var h,b,j,P,E=o.children&&o.children[0]&&o.children[0].content&&n.services.interpolator.interpolate(o.children[0].content,f,n.language);if("tag"===o.type){var x=p[parseInt(o.name,10)];!x&&1===l.length&&l[0][o.name]&&(x=l[0][o.name]),x||(x={});var S=0!==Object.keys(o.attrs).length?(b={props:o.attrs},(P=$({},j=x)).props=Object.assign(b.props,j.props),P):x,k=s().isValidElement(S),N=k&&Z(o,!0)&&!o.voidElement,I=u&&"object"===i(S)&&S.dummy&&!k,D="object"===i(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof S){var R=n.services.interpolator.interpolate(S,f,n.language);t.push(R)}else if(Z(S)||N)y(S,d(S,o,l),t,m);else if(I){var C=g(p,o.children,l);t.push(s().cloneElement(S,$($({},S.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(o.name)))if(D)y(S,d(S,o,l),t,m,o.voidElement);else if(r.transSupportBasicHtmlNodes&&c.indexOf(o.name)>-1)if(o.voidElement)t.push(s().createElement(o.name,{key:"".concat(o.name,"-").concat(m)}));else{var A=g(p,o.children,l);t.push(s().createElement(o.name,{key:"".concat(o.name,"-").concat(m)},A))}else if(o.voidElement)t.push("<".concat(o.name," />"));else{var T=g(p,o.children,l);t.push("<".concat(o.name,">").concat(T,"</").concat(o.name,">"))}else if("object"!==i(S)||k)1===o.children.length&&E?t.push(s().cloneElement(S,$($({},S.props),{},{key:m}),E)):t.push(s().cloneElement(S,$($({},S.props),{},{key:m})));else{var z=o.children[0]?E:null;z&&t.push(z)}}else if("text"===o.type){var L=r.transWrapTextNodes,B=a?(h=n.services.interpolator.interpolate(o.content,f,n.language),v.call(h,O,w)):n.services.interpolator.interpolate(o.content,f,n.language);L?t.push(s().createElement(L,{key:"".concat(o.name,"-").concat(m)},B)):t.push(B)}return t}),[])}return q(g([{dummy:!0,children:e||[]}],p,Y(e||[]))[0])}(y||t,L?I(L,U):T,k,R,U,j),K=void 0!==r?r:R.defaultTransParent;return K?s().createElement(K,P,H):H}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,c.useContext)(N)||{},o=r.i18n,i=r.defaultNS,a=n||o||A();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new R),!a){_("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&void 0!==a.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=te(te(te({},D()),a.options.react),t),p=l.useSuspense,f=l.keyPrefix,d=e||i||a.options&&a.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var y=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return K(e,a,l)}));function g(){return a.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=(0,c.useState)(g),h=X(m,2),b=h[0],v=h[1],O=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){O.current&&v(g)}return O.current=!0,y||p||H(a,d,(function(){O.current&&v(g)})),e&&a&&a.on(e,n),t&&a&&a.store.on(t,n),function(){O.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,n)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,n)}))}}),[a,d.join()]);var j=(0,c.useRef)(!0);(0,c.useEffect)((function(){O.current&&!j.current&&v(g),j.current=!1}),[a]);var w=[b,a,y];if(w.t=b,w.i18n=a,w.ready=y,y)return w;if(!y&&!p)return w;throw new Promise((function(e){H(a,d,(function(){e()}))}))}var re=["forwardedRef"];function oe(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,a=o(r,re),c=X(ne(e,a),3),u=c[0],l=c[1],p=c[2],f=ie(ie({},a),{},{t:u,i18n:l,tReady:p});return t.withRef&&i?f.ref=i:!t.withRef&&i&&(f.forwardedRef=i),s().createElement(n,f)}return r.displayName="withI18nextTranslation(".concat(V(n),")"),r.WrappedComponent=n,t.withRef?s().forwardRef((function(e,t){return s().createElement(r,Object.assign({},e,{forwardedRef:t}))})):r}}var ce=["ns","children"];function se(e){var t=e.ns,n=e.children,r=X(ne(t,o(e,ce)),3),i=r[0],a=r[1],c=r[2];return n(i,{i18n:a,lng:a.language},c)}function ue(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(N.Provider,{value:o},r)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,o=(0,c.useContext)(N)||{},i=o.i18n,a=r||i||A();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function fe(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 de(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,i=o(t,pe);return le(n,r),s().createElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i))}return t.getInitialProps=z(e),t.displayName="withI18nextSSR(".concat(V(e),")"),t.WrappedComponent=e,t}}var ye=function(){return""},ge=function(){return""},me=function(){return""},he=function(){return""},be=function(){return""},ve=function(){return""}},1432:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},6017:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})}}]);
|