@openmrs/esm-styleguide 5.7.2 → 5.7.3-pre.2113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see openmrs-esm-styleguide.js.LICENSE.txt */
2
- System.register(["@openmrs/esm-error-handling","@openmrs/esm-extensions","@openmrs/esm-navigation","@openmrs/esm-react-utils","@openmrs/esm-state","@openmrs/esm-translations","dayjs","react","react-dom","rxjs"],(function(t,e){var n={},r={},o={},i={},a={},s={},u={},c={},l={},f={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),{setters:[function(){},function(){},function(){},function(){},function(t){a.createGlobalStore=t.createGlobalStore},function(){},function(){},function(t){Object.keys(t).forEach((function(e){c[e]=t[e]}))},function(t){Object.keys(t).forEach((function(e){l[e]=t[e]}))},function(t){f.Subject=t.Subject}],execute:function(){t((()=>{var t={976:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t,e=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var a=void 0===i?"undefined":(t=i)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;if("string"===a||"number"===a)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===a){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var u in i)r.call(i,u)&&i[u]&&e.push(u)}}}return e.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},353:(t,e,n)=>{!function(e){"use strict";var r=function(t){return function(e,n){return"object"==typeof e&&(n=e,e=null),null==e&&(e=(new Date).toString()),n||(n={}),t.call(this,e,n)}},o=n(42),i=t.exports={generate:r((function(t,e){return new o(t,e)}))};e&&(e.fn.geopattern=r((function(t,n){return this.each((function(){var r=e(this).attr("data-title-sha");r&&(n=e.extend({hash:r},n));var o=i.generate(t,n);e(this).css("background-image",o.toDataUrl())}))})))}("undefined"!=typeof jQuery?jQuery:null)},851:t=>{"use strict";t.exports={hex2rgb:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgb2hex:function(t){return"#"+["r","g","b"].map((function(e){return("0"+t[e].toString(16)).slice(-2)})).join("")},rgb2hsl:function(t){var e=t.r,n=t.g,r=t.b;e/=255,n/=255,r/=255;var o,i,a=Math.max(e,n,r),s=Math.min(e,n,r),u=(a+s)/2;if(a===s)o=i=0;else{var c=a-s;switch(i=u>.5?c/(2-a-s):c/(a+s),a){case e:o=(n-r)/c+(n<r?6:0);break;case n:o=(r-e)/c+2;break;case r:o=(e-n)/c+4}o/=6}return{h:o,s:i,l:u}},hsl2rgb:function(t){var e,n,r,o=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},i=t.h,a=t.s,s=t.l;if(0===a)e=n=r=s;else{var u=s<.5?s*(1+a):s+a-s*a,c=2*s-u;e=o(c,u,i+1/3),n=o(c,u,i),r=o(c,u,i-1/3)}return{r:Math.round(255*e),g:Math.round(255*n),b:Math.round(255*r)}},rgb2rgbString:function(t){return"rgb("+[t.r,t.g,t.b].join(",")+")"}}},42:(t,e,n)=>{"use strict";var r=n(495),o=n(851),i=n(451),a=n(138),s={baseColor:"#933c3c"},u=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],c="#222",l="#ddd",f="#000",h=.02,p=.02,v=.15;function d(t,e,n){return parseInt(t.substr(e,n||1),16)}function g(t,e,n,r,o){return(parseFloat(t)-e)*(o-r)/(n-e)+r}function m(t){return t%2==0?l:c}function y(t){return g(t,0,15,p,v)}var w=t.exports=function(t,e){return this.opts=r({},s,e),this.hash=e.hash||i(t),this.svg=new a,this.generateBackground(),this.generatePattern(),this};function b(t){return[[t,0,t,3*t],[0,t,3*t,t]]}function S(t){return[0,0,t,t,0,t,0,0].join(",")}function E(t,e,n,r,o){var i=S(r),a=y(o[0]),s=m(o[0]),u={stroke:f,"stroke-opacity":h,"fill-opacity":a,fill:s};t.polyline(i,u).transform({translate:[e+r,n],scale:[-1,1]}),t.polyline(i,u).transform({translate:[e+r,n+2*r],scale:[1,-1]}),a=y(o[1]),s=m(o[1]),u={stroke:f,"stroke-opacity":h,"fill-opacity":a,fill:s},t.polyline(i,u).transform({translate:[e+r,n+2*r],scale:[-1,-1]}),t.polyline(i,u).transform({translate:[e+r,n],scale:[1,1]})}function O(t,e,n,r,o){var i=y(o),a=m(o),s=S(r),u={stroke:f,"stroke-opacity":h,"fill-opacity":i,fill:a};t.polyline(s,u).transform({translate:[e,n+r],scale:[1,-1]}),t.polyline(s,u).transform({translate:[e+2*r,n+r],scale:[-1,-1]}),t.polyline(s,u).transform({translate:[e,n+r],scale:[1,1]}),t.polyline(s,u).transform({translate:[e+2*r,n+r],scale:[-1,1]})}w.prototype.toSvg=function(){return this.svg.toString()},w.prototype.toString=function(){return this.toSvg()},w.prototype.toBase64=function(){var t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},w.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},w.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},w.prototype.generateBackground=function(){var t,e,n,r;this.opts.color?n=o.hex2rgb(this.opts.color):(e=g(d(this.hash,14,3),0,4095,0,359),r=d(this.hash,17),(t=o.rgb2hsl(o.hex2rgb(this.opts.baseColor))).h=(360*t.h-e+360)%360/360,t.s=r%2==0?Math.min(1,(100*t.s+r)/100):Math.max(0,(100*t.s-r)/100),n=o.hsl2rgb(t)),this.color=o.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:o.rgb2rgbString(n)})},w.prototype.generatePattern=function(){var t=this.opts.generator;if(t){if(u.indexOf(t)<0)throw new Error("The generator "+t+" does not exist.")}else t=u[d(this.hash,20)];return this["geo"+t.slice(0,1).toUpperCase()+t.slice(1)]()},w.prototype.geoHexagons=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,8,60),u=s*Math.sqrt(3),c=2*s,l=function(t){var e=t,n=e/2,r=Math.sin(60*Math.PI/180)*e;return[0,r,n,0,n+e,0,2*e,r,n+e,2*r,n,2*r,0,r].join(",")}(s);for(this.svg.setWidth(3*c+3*s),this.svg.setHeight(6*u),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=i%2==0?a*u:a*u+u/2,n=y(o=d(this.hash,e)),r={fill:m(o),"fill-opacity":n,stroke:f,"stroke-opacity":h},this.svg.polyline(l,r).transform({translate:[i*s*1.5-c/2,t-u/2]}),0===i&&this.svg.polyline(l,r).transform({translate:[6*s*1.5-c/2,t-u/2]}),0===a&&(t=i%2==0?6*u:6*u+u/2,this.svg.polyline(l,r).transform({translate:[i*s*1.5-c/2,t-u/2]})),0===i&&0===a&&this.svg.polyline(l,r).transform({translate:[6*s*1.5-c/2,5*u+u/2]}),e++},w.prototype.geoSineWaves=function(){var t,e,n,r,o,i,a=Math.floor(g(d(this.hash,0),0,15,100,400)),s=Math.floor(g(d(this.hash,1),0,15,30,100)),u=Math.floor(g(d(this.hash,2),0,15,3,30));for(this.svg.setWidth(a),this.svg.setHeight(36*u),t=0;t<36;t++)e=y(o=d(this.hash,t)),r={fill:"none",stroke:m(o),opacity:e,"stroke-width":u+"px"},n="M0 "+s+" C "+(i=a/4*.7)+" 0, "+(a/2-i)+" 0, "+a/2+" "+s+" S "+(a-i)+" "+2*s+", "+a+" "+s+" S "+(1.5*a-i)+" 0, "+1.5*a+", "+s,this.svg.path(n,r).transform({translate:[-a/4,u*t-1.5*s]}),this.svg.path(n,r).transform({translate:[-a/4,u*t-1.5*s+36*u]})},w.prototype.geoChevrons=function(){var t,e,n,r,o,i,a,s,u,c,l=g(d(this.hash,0),0,15,30,80),p=g(d(this.hash,0),0,15,30,80),v=[[0,0,(t=l)/2,(e=p)-(n=.66*e),t/2,e,0,n,0,0],[t/2,e-n,t,0,t,n,t/2,e,t/2,e-n]].map((function(t){return t.join(",")}));for(this.svg.setWidth(6*l),this.svg.setHeight(6*p*.66),o=0,c=0;c<6;c++)for(u=0;u<6;u++)i=y(s=d(this.hash,o)),r=m(s),a={stroke:f,"stroke-opacity":h,fill:r,"fill-opacity":i,"stroke-width":1},this.svg.group(a).transform({translate:[u*l,c*p*.66-p/2]}).polyline(v).end(),0===c&&this.svg.group(a).transform({translate:[u*l,6*p*.66-p/2]}).polyline(v).end(),o+=1},w.prototype.geoPlusSigns=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,10,25),u=3*s,c=b(s);for(this.svg.setWidth(12*s),this.svg.setHeight(12*s),e=0,a=0;a<6;a++)for(i=0;i<6;i++)n=y(o=d(this.hash,e)),t=a%2==0?0:1,r={fill:m(o),stroke:f,"stroke-opacity":h,"fill-opacity":n},this.svg.group(r).transform({translate:[i*u-i*s+t*s-s,a*u-a*s-u/2]}).rect(c).end(),0===i&&this.svg.group(r).transform({translate:[4*u-i*s+t*s-s,a*u-a*s-u/2]}).rect(c).end(),0===a&&this.svg.group(r).transform({translate:[i*u-i*s+t*s-s,4*u-a*s-u/2]}).rect(c).end(),0===i&&0===a&&this.svg.group(r).transform({translate:[4*u-i*s+t*s-s,4*u-a*s-u/2]}).rect(c).end(),e++},w.prototype.geoXes=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,10,25),u=b(s),c=3*s*.943;for(this.svg.setWidth(3*c),this.svg.setHeight(3*c),e=0,a=0;a<6;a++)for(i=0;i<6;i++)n=y(o=d(this.hash,e)),t=i%2==0?a*c-.5*c:a*c-.5*c+c/4,r={fill:m(o),opacity:n},this.svg.group(r).transform({translate:[i*c/2-c/2,t-a*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===i&&this.svg.group(r).transform({translate:[6*c/2-c/2,t-a*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===a&&(t=i%2==0?6*c-c/2:6*c-c/2+c/4,this.svg.group(r).transform({translate:[i*c/2-c/2,t-6*c/2],rotate:[45,c/2,c/2]}).rect(u).end()),5===a&&this.svg.group(r).transform({translate:[i*c/2-c/2,t-11*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===i&&0===a&&this.svg.group(r).transform({translate:[6*c/2-c/2,t-6*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),e++},w.prototype.geoOverlappingCircles=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:m(r),opacity:e},this.svg.circle(o*a,i*a,a,n),0===o&&this.svg.circle(6*a,i*a,a,n),0===i&&this.svg.circle(o*a,6*a,a,n),0===o&&0===i&&this.svg.circle(6*a,6*a,a,n),t++},w.prototype.geoOctogons=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=function(t){var e=.33*t;return[e,0,t-e,0,t,e,t,t-e,t-e,t,e,t,0,t-e,0,e,e,0].join(",")}(a);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.polyline(s,{fill:t,"fill-opacity":n,stroke:f,"stroke-opacity":h}).transform({translate:[o*a,i*a]}),e+=1},w.prototype.geoSquares=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.rect(o*a,i*a,a,a,{fill:t,"fill-opacity":n,stroke:f,"stroke-opacity":h}),e+=1},w.prototype.geoConcentricCircles=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=a/5;for(this.svg.setWidth(6*(a+s)),this.svg.setHeight(6*(a+s)),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.circle(o*a+o*s+(a+s)/2,i*a+i*s+(a+s)/2,a/2,{fill:"none",stroke:t,opacity:n,"stroke-width":s+"px"}),n=y(r=d(this.hash,39-e)),t=m(r),this.svg.circle(o*a+o*s+(a+s)/2,i*a+i*s+(a+s)/2,a/4,{fill:t,"fill-opacity":n}),e+=1},w.prototype.geoOverlappingRings=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=a/4;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":s+"px"},this.svg.circle(o*a,i*a,a-s/2,n),0===o&&this.svg.circle(6*a,i*a,a-s/2,n),0===i&&this.svg.circle(o*a,6*a,a-s/2,n),0===o&&0===i&&this.svg.circle(6*a,6*a,a-s/2,n),t+=1},w.prototype.geoTriangles=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,15,80),u=s/2*Math.sqrt(3),c=function(t,e){var n=t/2;return[n,0,t,e,0,e,n,0].join(",")}(s,u);for(this.svg.setWidth(3*s),this.svg.setHeight(6*u),t=0,a=0;a<6;a++)for(i=0;i<6;i++)e=y(o=d(this.hash,t)),r={fill:m(o),"fill-opacity":e,stroke:f,"stroke-opacity":h},n=a%2==0?i%2==0?180:0:i%2!=0?180:0,this.svg.polyline(c,r).transform({translate:[i*s*.5-s/2,u*a],rotate:[n,s/2,u/2]}),0===i&&this.svg.polyline(c,r).transform({translate:[6*s*.5-s/2,u*a],rotate:[n,s/2,u/2]}),t+=1},w.prototype.geoDiamonds=function(){var t,e,n,r,o,i,a,s,u,c=g(d(this.hash,0),0,15,10,50),l=g(d(this.hash,1),0,15,10,50),p=[(t=c)/2,0,t,(e=l)/2,t/2,e,0,e/2].join(",");for(this.svg.setWidth(6*c),this.svg.setHeight(3*l),r=0,u=0;u<6;u++)for(s=0;s<6;s++)o=y(a=d(this.hash,r)),i={fill:m(a),"fill-opacity":o,stroke:f,"stroke-opacity":h},n=u%2==0?0:c/2,this.svg.polyline(p,i).transform({translate:[s*c-c/2+n,l/2*u-l/2]}),0===s&&this.svg.polyline(p,i).transform({translate:[6*c-c/2+n,l/2*u-l/2]}),0===u&&this.svg.polyline(p,i).transform({translate:[s*c-c/2+n,l/2*6-l/2]}),0===s&&0===u&&this.svg.polyline(p,i).transform({translate:[6*c-c/2+n,l/2*6-l/2]}),r+=1},w.prototype.geoNestedSquares=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,4,12),s=7*a;for(this.svg.setWidth(6*(s+a)+6*a),this.svg.setHeight(6*(s+a)+6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":a+"px"},this.svg.rect(o*s+o*a*2+a/2,i*s+i*a*2+a/2,s,s,n),e=y(r=d(this.hash,39-t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":a+"px"},this.svg.rect(o*s+o*a*2+a/2+2*a,i*s+i*a*2+a/2+2*a,3*a,3*a,n),t+=1},w.prototype.geoMosaicSquares=function(){var t,e,n,r=g(d(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),t=0,n=0;n<4;n++)for(e=0;e<4;e++)e%2==0?n%2==0?O(this.svg,e*r*2,n*r*2,r,d(this.hash,t)):E(this.svg,e*r*2,n*r*2,r,[d(this.hash,t),d(this.hash,t+1)]):n%2==0?E(this.svg,e*r*2,n*r*2,r,[d(this.hash,t),d(this.hash,t+1)]):O(this.svg,e*r*2,n*r*2,r,d(this.hash,t)),t+=1},w.prototype.geoPlaid=function(){var t,e,n,r,o,i,a=0,s=0;for(e=0;e<36;)a+=d(this.hash,e)+5,n=y(i=d(this.hash,e+1)),t=m(i),r=i+5,this.svg.rect(0,a,"100%",r,{opacity:n,fill:t}),a+=r,e+=2;for(e=0;e<36;)s+=d(this.hash,e)+5,n=y(i=d(this.hash,e+1)),t=m(i),o=i+5,this.svg.rect(s,0,o,"100%",{opacity:n,fill:t}),s+=o,e+=2;this.svg.setWidth(s),this.svg.setHeight(a)},w.prototype.geoTessellation=function(){var t,e,n,r,o,i=g(d(this.hash,0),0,15,5,40),a=i*Math.sqrt(3),s=2*i,u=i/2*Math.sqrt(3),c=function(t,e){return[0,0,e,t/2,0,t,0,0].join(",")}(i,u),l=3*i+2*u,p=2*a+2*i;for(this.svg.setWidth(l),this.svg.setHeight(p),e=0;e<20;e++)switch(n=y(o=d(this.hash,e)),t=m(o),r={stroke:f,"stroke-opacity":h,fill:t,"fill-opacity":n,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,r),this.svg.rect(l-i/2,-i/2,i,i,r),this.svg.rect(-i/2,p-i/2,i,i,r),this.svg.rect(l-i/2,p-i/2,i,i,r);break;case 1:this.svg.rect(s/2+u,a/2,i,i,r);break;case 2:this.svg.rect(-i/2,p/2-i/2,i,i,r),this.svg.rect(l-i/2,p/2-i/2,i,i,r);break;case 3:this.svg.rect(s/2+u,1.5*a+i,i,i,r);break;case 4:this.svg.polyline(c,r).transform({translate:[i/2,-i/2],rotate:[0,i/2,u/2]}),this.svg.polyline(c,r).transform({translate:[i/2,p- -i/2],rotate:[0,i/2,u/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,r).transform({translate:[l-i/2,-i/2],rotate:[0,i/2,u/2],scale:[-1,1]}),this.svg.polyline(c,r).transform({translate:[l-i/2,p+i/2],rotate:[0,i/2,u/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,r).transform({translate:[l/2+i/2,a/2]});break;case 7:this.svg.polyline(c,r).transform({translate:[l-l/2-i/2,a/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,r).transform({translate:[l/2+i/2,p-a/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,r).transform({translate:[l-l/2-i/2,p-a/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,r).transform({translate:[i/2,p/2-i/2]});break;case 11:this.svg.polyline(c,r).transform({translate:[l-i/2,p/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[i/2-l,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,p/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[i/2-l,p/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,p/2-p-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[i/2-l,p/2-p-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,i/2-p],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[i/2-l,i/2-p],rotate:[-30,0,0]})}}},451:t=>{"use strict";function e(){var t=function(){for(var t=16;t<80;t++){var e=u[t-3]^u[t-8]^u[t-14]^u[t-16];u[t]=e<<1|e>>>31}var n,l,f=r,h=o,p=i,v=a,d=s;for(t=0;t<80;t++){t<20?(n=v^h&(p^v),l=1518500249):t<40?(n=h^p^v,l=1859775393):t<60?(n=h&p|v&(h|p),l=2400959708):(n=h^p^v,l=3395469782);var g=(f<<5|f>>>27)+n+d+l+(0|u[t]);d=v,v=p,p=h<<30|h>>>2,h=f,f=g}for(r=r+f|0,o=o+h|0,i=i+p|0,a=a+v|0,s=s+d|0,c=0,t=0;t<16;t++)u[t]=0},e=function(e){u[c]|=(255&e)<<l,l?l-=8:(c++,l=24),16===c&&t()},n=function(t){for(var e="",n=28;n>=0;n-=4)e+=(t>>n&15).toString(16);return e},r=1732584193,o=4023233417,i=2562383102,a=271733878,s=3285377520,u=new Uint32Array(80),c=0,l=24,f=0;return{update:function(t){if("string"==typeof t)return function(t){var n=t.length;f+=8*n;for(var r=0;r<n;r++)e(t.charCodeAt(r))}(t);var n=t.length;f+=8*n;for(var r=0;r<n;r++)e(t[r])},digest:function(){e(128),(c>14||14===c&&l<24)&&t(),c=14,l=24,e(0),e(0),e(f>0xffffffffff?f/1099511627776:0),e(f>4294967295?f/4294967296:0);for(var u=24;u>=0;u-=8)e(f>>u);return n(r)+n(o)+n(i)+n(a)+n(s)}}}t.exports=function(t){if(void 0===t)return e();var n=e();return n.update(t),n.digest()}},138:(t,e,n)=>{"use strict";var r=n(495),o=n(97);function i(){return this.width=100,this.height=100,this.svg=o("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}t.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var t=this.currentContext();return t.lastChild||t},i.prototype.transform=function(t){return this.currentNode().setAttribute("transform",Object.keys(t).map((function(e){return e+"("+t[e].join(",")+")"})).join(" ")),this},i.prototype.setAttributes=function(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))},i.prototype.setWidth=function(t){this.svg.setAttribute("width",Math.floor(t))},i.prototype.setHeight=function(t){this.svg.setAttribute("height",Math.floor(t))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(t,e,n,i,a){var s=this;if(Array.isArray(t))return t.forEach((function(t){s.rect.apply(s,t.concat(a))})),this;var u=o("rect");return this.currentContext().appendChild(u),this.setAttributes(u,r({x:t,y:e,width:n,height:i},a)),this},i.prototype.circle=function(t,e,n,i){var a=o("circle");return this.currentContext().appendChild(a),this.setAttributes(a,r({cx:t,cy:e,r:n},i)),this},i.prototype.path=function(t,e){var n=o("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:t},e)),this},i.prototype.polyline=function(t,e){var n=this;if(Array.isArray(t))return t.forEach((function(t){n.polyline(t,e)})),this;var i=o("polyline");return this.currentContext().appendChild(i),this.setAttributes(i,r({points:t},e)),this},i.prototype.group=function(t){var e=o("g");return this.currentContext().appendChild(e),this.context.push(e),this.setAttributes(e,r({},t)),this}},97:t=>{"use strict";var e=t.exports=function(t){return this,(null!=(n=e)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](this):this instanceof n)?(this.tagName=t,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new e(t);var n};e.prototype.appendChild=function(t){return this.children.push(t),this.lastChild=t,this},e.prototype.setAttribute=function(t,e){return this.attributes[t]=e,this},e.prototype.toString=function(){var t=this;return["<",t.tagName,Object.keys(t.attributes).map((function(e){return[" ",e,'="',t.attributes[e],'"'].join("")})).join(""),">",t.children.map((function(t){return t.toString()})).join(""),"</",t.tagName,">"].join("")}},495:t=>{var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(t){if(!t||"[object Object]"!==n.call(t)||t.nodeType||t.setInterval)return!1;var r,o=e.call(t,"constructor"),i=e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(r in t);return void 0===r||e.call(t,r)}t.exports=function t(){var e,n,o,i,a,s,u=arguments[0]||{},c=1,l=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),"object"!=typeof u&&"function"!=typeof u&&(u={});c<l;c++)if(null!=(e=arguments[c]))for(n in e)o=u[n],u!==(i=e[n])&&(f&&i&&(r(i)||(a=Array.isArray(i)))?(a?(a=!1,s=o&&Array.isArray(o)?o:[]):s=o&&r(o)?o:{},u[n]=t(f,s,i)):void 0!==i&&(u[n]=i));return u}},279:(t,e,n)=>{"use strict";var r=n(493);r.createRoot,r.hydrateRoot},978:(t,e,n)=>{"use strict";var r=n(954),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=e,c(o)&&l({inst:o})}),[t,n,e]),a((function(){return c(o)&&l({inst:o}),t((function(){c(o)&&l({inst:o})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},921:(t,e,n)=>{"use strict";t.exports=n(978)},641:(t,e,n)=>{function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function a(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}System.register(["@openmrs/esm-config","@openmrs/esm-navigation","@openmrs/esm-error-handling","@openmrs/esm-offline"],(function(t,e){var s={},u={},c={},l={};return{setters:[function(t){s.Type=t.Type,s.defineConfigSchema=t.defineConfigSchema,s.getConfig=t.getConfig,s.validators=t.validators},function(t){u.navigate=t.navigate},function(t){c.reportError=t.reportError},function(t){l.getSynchronizationItems=t.getSynchronizationItems}],execute:function(){t(function(){var t={385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){"use strict";var t=function(t,e){var n=u[t];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(e,!0),n.active=!0,n.value;var r=s()((function(){return e}));return u[t]={value:r,active:!0},r},e=function(t,e){var n=u[t];return n?(n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value=e,n.active=!0,n.value):(u[t]={value:e,active:!0},e)},n=function(t,e){var n=u[t];if(!n){var r=s()((function(){return null!=e?e:{}}));return u[t]={value:r,active:!1},r}return n.value},r=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))},o={d:function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};o.r(i),o.d(i,{createGlobalStore:function(){return t},getGlobalStore:function(){return n},registerGlobalStore:function(){return e},subscribeTo:function(){return r}});var a=function(t){var e,n=new Set,r=function(t,r){var o="function"==typeof t?t(e):t;if(!Object.is(o,e)){var i=e;e=(null!=r?r:"object"!=typeof o)?o:Object.assign({},e,o),n.forEach((function(t){return t(e,i)}))}},o=function(){return e},i={setState:r,getState:o,subscribe:function(t){return n.add(t),function(){return n.delete(t)}},destroy:function(){console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(r,o,i),i},s=function(t){return t?a(t):a},u={};return setTimeout((function(){"development"===window.spaEnv&&(window.stores=u)}),1e3),i}())}}}))},824:function(t){"use strict";t.exports=s},254:function(t){"use strict";t.exports=c},513:function(t){"use strict";t.exports=u},738:function(t){"use strict";t.exports=l}},e={};function f(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,f),o.exports}f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var h={};return function(){"use strict";var t=function(t,e){function n(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e=function(t){return"function"==typeof t},s=function(t){setTimeout((function(){throw t}),0)},u=function(t){return null!==t&&"object"==typeof t},c=function(t){return t.reduce((function(t,e){return t.concat(i(e,ve)?e.errors:e)}),[])},l=function(t){return t},p=function(t){if(t||(t=le.Promise||Promise),!t)throw new Error("no Promise impl found");return t},v=function(t,e,n){var r=y(t,e,n);Ge.length?Ge.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))},d=function(t){if("function"!=typeof t)throw Error(m(28,!1));Ge.push(t)},g=function(t){if("function"!=typeof t)throw Error(m(29,!1));var e=!1;return Ge=Ge.filter((function(n){var r=n===t;return e=e||r,!r})),e},m=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")},y=function(t,e,n){var r,o="".concat(O(e)," '").concat(S(e),"' died in status ").concat(e.status,": ");if(i(t,Error)){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(m(30,!1,e.status,S(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=S(e),e.status=n,r},w=function(t){return t.status===Xe},b=function(t){try{return t.activeWhen(window.location)}catch(e){return v(e,t,nn),!1}},S=function(t){return t.name},E=function(t){return Boolean(t.unmountThisParcel)},O=function(t){return E(t)?"parcel":"application"},A=function(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]},P=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},M=function(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!P(e,(function(t){return"function"!=typeof t}))));var e},_=function(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=O(t),o=S(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return T(n)?n:Promise.reject(m(15,!1,r,o,e,a))}))}),Promise.resolve())}},T=function(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch},x=function(t,e){return Promise.resolve().then((function(){return t.status!==$e?t:(t.status=Je,t.bootstrap?I(t,"bootstrap").then(n).catch((function(n){if(e)throw y(n,t,nn);return v(n,t,nn),t})):Promise.resolve().then(n))}));function n(){return t.status=Ke,t}},j=function(t,e){return Promise.resolve().then((function(){if(t.status!==Xe)return t;t.status=Ze;var n=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(e)throw y(r,t,nn);v(r,t,nn)}))})).then((function(){return t}));function r(){return I(t,"unmount").then((function(){t.status=Ke}),(function(n){if(e)throw y(n,t,nn);v(n,t,nn)}))}}))},z=function(t,e){return Promise.resolve().then((function(){return t.status!==Ke?t:(on||(window.dispatchEvent(new We("single-spa:before-first-mount")),on=!0),t.status=Qe,I(t,"mount").then((function(){return t.status=Xe,an||(window.dispatchEvent(new We("single-spa:first-mount")),an=!0),t})).catch((function(n){return t.status=Xe,j(t,!0).then(r,r);function r(){if(e)throw y(n,t,nn);return v(n,t,nn),t}})))}))},k=function(){return C.apply(un,arguments)},C=function(t,e){var n=this;if(!t||"object"!=typeof t&&"function"!=typeof t)throw Error(m(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(m(3,!1,a(t.name)));var r=sn++,o=t.name||"parcel-".concat(r);if("object"!=typeof e)throw Error(m(4,!1,o,void 0===e?"undefined":a(e)));if(!e.domElement)throw Error(m(5,!1,o));var i,s="function"==typeof t,u=s?t:function(){return Promise.resolve(t)},c={id:r,parcels:{},status:s?qe:$e,customProps:e,parentName:S(n),unmountThisParcel:function(){return v.then((function(){if(c.status!==Xe)throw Error(m(6,!1,o,c.status));return j(c,!0)})).then((function(t){return c.parentName&&delete n.parcels[c.id],t})).then((function(t){return f(t),t})).catch((function(t){throw c.status=nn,h(t),t}))}};n.parcels[r]=c;var l=u();if(!l||"function"!=typeof l.then)throw Error(m(7,!1));l=l.then((function(t){if(!t)throw Error(m(8,!1));if(o=t.name||"parcel-".concat(r),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!M(t.bootstrap))throw Error(m(9,!1,o));if(!M(t.mount))throw Error(m(10,!1,o));if(!M(t.unmount))throw Error(m(11,!1,o));if(t.update&&!M(t.update))throw Error(m(12,!1,o));var e=_(t,"bootstrap"),n=_(t,"mount"),a=_(t,"unmount");c.status=$e,c.name=o,c.bootstrap=e,c.mount=n,c.unmount=a,c.timeouts=R(t.timeouts),t.update&&(c.update=_(t,"update"),i.update=function(t){return c.customProps=t,L((e=c,Promise.resolve().then((function(){if(e.status!==Xe)throw Error(m(32,!1,S(e)));return e.status=Ye,I(e,"update").then((function(){return e.status=Xe,e})).catch((function(t){throw y(t,e,nn)}))}))));var e})}));var f,h,p=l.then((function(){return x(c,!0)})),v=p.then((function(){return z(c,!0)})),d=new Promise((function(t,e){f=t,h=e}));return i={mount:function(){return L(Promise.resolve().then((function(){if(c.status!==Ke)throw Error(m(13,!1,o,c.status));return n.parcels[r]=c,z(c)})))},unmount:function(){return L(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:L(l),bootstrapPromise:L(p),mountPromise:L(v),unmountPromise:L(d)}},L=function(t){return t.then((function(){return null}))},V=function(t){var e=S(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(m(40,!1),e,n));var r=A({},n,{name:e,mountParcel:C.bind(t),singleSpa:Re});return E(t)&&(r.unmountSelf=t.unmountThisParcel),r},H=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(16,!1));cn.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},N=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(17,!1));cn.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},D=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(18,!1));cn.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},U=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(19,!1));cn.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},I=function(t,e){var n=t.timeouts[e],r=n.warningMillis,o=O(t);return new Promise((function(i,a){var s=!1,u=!1;t[e](V(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var c=m(31,!1,e,o,S(t),n.millis);function l(t){if(!s)if(!0===t)u=!0,n.dieOnTimeout?a(Error(c)):console.error(c);else if(!u){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return l(e+1)}),r)}}}))},R=function(t){var e={};for(var n in cn)e[n]=A({},cn[n],t&&t[n]||{});return e},B=function(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==Fe&&t.status!==en?t:(t.status=qe,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(V(t));if(!T(r))throw n=!0,Error(m(33,!1,S(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!=typeof(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!M(e.bootstrap)&&(r=35),M(e.mount)||(r=36),M(e.unmount)||(r=37);var o=O(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(m(r,!1,o,S(t),i),e),v(void 0,t,nn),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status=$e,t.bootstrap=_(e,"bootstrap"),t.mount=_(e,"mount"),t.unmount=_(e,"unmount"),t.unload=_(e,"unload"),t.timeouts=R(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=nn:(r=en,t.loadErrorTime=(new Date).getTime()),v(e,t,r),t})));var e,n}))},W=function(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(m(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=J(window.location.href),r=J(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)},G=function(t){var e=this;if(t){var n=t[0].type;hn.indexOf(n)>=0&&fn[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}},F=function(){En([],arguments)},q=function(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Ie&&n===o||window.dispatchEvent(function(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}(window.history.state,e)),r}},$=function(t){if(vn)throw Error(m(43,!1));Ie=!t||!t.hasOwnProperty("urlRerouteOnly")||t.urlRerouteOnly,vn=!0,pn=window.history.replaceState,window.addEventListener("hashchange",F),window.addEventListener("popstate",F);var e=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&hn.indexOf(t)>=0)||P(fn[t],(function(t){return t===n})))return e.apply(this,arguments);fn[t].push(n)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&hn.indexOf(t)>=0))return n.apply(this,arguments);fn[t]=fn[t].filter((function(t){return t!==e}))},window.history.pushState=q(window.history.pushState,"pushState"),window.history.replaceState=q(pn,"replaceState")},J=function(t){var e=document.createElement("a");return e.href=t,e},K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!dn){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Q.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Q.call(this,n,window.removeEventListener,t,e,arguments)},dn=!0}},Q=function(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){hn.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))},X=function(t){return Promise.resolve().then((function(){var e=gn[S(t)];if(!e)return t;if(t.status===Fe)return Y(t,e),t;if(t.status===tn)return e.promise.then((function(){return t}));if(t.status!==Ke&&t.status!==en)return t;var n=t.status===en?Promise.resolve():I(t,"unload");return t.status=tn,n.then((function(){return Y(t,e),t})).catch((function(n){return function(t,e,n){delete gn[S(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,v(n,t,nn),e.reject(n)}(t,e,n),t}))}))},Y=function(t,e){delete gn[S(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=Fe,e.resolve()},Z=function(t,e,n,r){gn[S(t)]={app:t,resolve:n,reject:r},Object.defineProperty(gn[S(t)],"promise",{get:e})},tt=function(t){return gn[t]},et=function(){return mn.filter(w).map(S)},nt=function(){return mn.map(S)},rt=function(t){var e=P(mn,(function(e){return S(e)===t}));return e?e.status:null},ot=function(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"==typeof t?(function(t){if(Array.isArray(t)||null===t)throw Error(m(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(m(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(m(20,!1));if("object"!=typeof t.app&&"function"!=typeof t.app)throw Error(m(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(m(24,!1));if(!ct(t.customProps))throw Error(m(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(m(20,!1));if(!e)throw Error(m(23,!1));if("function"!=typeof n)throw Error(m(24,!1));if(!ct(r))throw Error(m(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:lt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(vt()||yn||(yn=!0,setTimeout((function(){vt()||console.warn(m(1,!1))}),5e3)),-1!==nt().indexOf(o.name))throw Error(m(21,!1,o.name));mn.push(A({loadErrorTime:null,status:Fe,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),ln&&(K(),En())},it=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return mn.filter((function(e){return e.activeWhen(t)})).map(S)},at=function(t){if(0===mn.filter((function(e){return S(e)===t})).length)throw Error(m(25,!1,t));return(ln?st(t,{waitForUnmount:!1}):Promise.resolve()).then((function(){var e=mn.map(S).indexOf(t);mn.splice(e,1)}))},st=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(m(26,!1));var n=P(mn,(function(e){return S(e)===t}));if(!n)throw Error(m(27,!1,t));var r,o=tt(S(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Z(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ut(n,o.resolve,o.reject)):r=new Promise((function(t,e){Z(n,(function(){return r}),t,e),ut(n,t,e)})),r},ut=function(t,e,n){Promise.resolve().then((function(){if(P(it(),(function(e){return e===S(t)})))return ft()})).then((function(){return j(t).then(X).then((function(){e(),setTimeout((function(){En()}))}))})).catch(n)},ct=function(t){return!t||"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},lt=function(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&s(i)}return s(t.length),new RegExp(o,"i");function s(i){var a=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)e&&(o+="$");else{var s=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(s,"$"):"".concat(o,"(/").concat(s,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}},ft=function(){return En()},ht=function(t,e){return b(t)?x(t).then((function(t){return e.then((function(){return b(t)?z(t):t}))})):e.then((function(){return t}))},pt=function(t){On=!0,ln&&($(t),En())},vt=function(){return On},dt=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},gt=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},mt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},yt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},wt=function(t){return t&&t.startsWith("http")?t:("/"!==t[0]&&(t="/"+t),window.openmrsBase+t)},bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof e)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=wt(t);if(e.headers||(e.headers={}),He(e.body)&&(e.body=JSON.stringify(e.body)),void 0===e.headers.Accept&&(e.headers.Accept="application/json"),null===e.headers.Accept&&delete e.headers.Accept,t.startsWith(jn)&&void 0===e.headers["Disable-WWW-Authenticate"]&&(e.headers["Disable-WWW-Authenticate"]="true"),t.startsWith(zn)){var r=new URL(n,window.location.toString());r.searchParams.has("_summary")||(r.searchParams.set("_summary","data"),n=r.toString())}var o,i,a=Error();return window.fetch(n,e).then((o=function(t){var e,r;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(o){switch(o.label){case 0:return(e=t).ok?204===e.status?(e.data=null,[2,e]):[2,e.clone().text().then((function(t){try{t&&(e.data=JSON.parse(t))}catch(t){}return e}))]:[3,1];case 1:return[4,(0,Ne.getConfig)("@openmrs/esm-api")];case 2:return r=o.sent().redirectAuthFailure,n===wt(kn)&&403===e.status||r.enabled&&r.errors.includes(e.status)?(sessionStorage.removeItem(Pn),(0,De.navigate)({to:r.url}),[2,r.resolvePromise?Promise.resolve():new Promise((function(){}))]):[2,e.clone().text().then((function(t){var r=t;try{r=JSON.parse(t)}catch(t){}throw new Cn(n,e,r,a)}),(function(t){throw new Cn(n,e,null,a)}))];case 3:return[2]}}))},i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){gt(i,n,r,a,s,"next",t)}function s(t){gt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)}))},St=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return e.signal=n.signal,new be((function(r){var o=!1;return bt(t,e).then((function(t){o=!0,r.next(t),r.complete()}),(function(t){o=!0,r.error(t)})),function(){o||n.abort()}}))},Et=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Ot=function(t,e){return bt("".concat(Ln,"/").concat(t),{signal:e.signal})},At=function(t,e,n){return bt("".concat(Ln,"?patient=").concat(t,"&includeEncounterless=").concat(e),{signal:n.signal})},Pt=function(t,e){return Vn.apply(this,arguments)},Mt=function(t,e){return bt("".concat(Ln,"/").concat(t),{method:"DELETE",signal:e.signal})},_t=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Tt=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){_t(i,r,o,a,s,"next",t)}function s(t){_t(i,r,o,a,s,"throw",t)}a(void 0)}))}},xt=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},jt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Un<Date.now()-6e4||!Dn.getState().loaded)&&Ct(),new be((function(e){var n=function(n){var r;n.loaded&&(t.includeAuthStatus?e.next(n.session):e.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Dn.getState()),Dn.subscribe(n)}))},zt=function(){return(Un<Date.now()-6e4||!Dn.getState().loaded)&&Ct(),Dn},kt=function(t){var e,n,r,o=null!==(r=null==t||null===(e=t.user)||void 0===e||null===(n=e.userProperties)||void 0===n?void 0:n.defaultLocale)&&void 0!==r?r:t.locale,i=document.documentElement.getAttribute("lang");(function(t){if(void 0===t||"string"!=typeof t)return!1;try{new Intl.Locale(t)}catch(t){return!1}return!0})(o)&&o!==i&&document.documentElement.setAttribute("lang",o)},Ct=function(t,e){Un=Date.now();var n={};return t&&e&&(n.Authorization="Basic ".concat(window.btoa("".concat(t,":").concat(e)))),It(bt(kn,{headers:n}))},Lt=function(){Dn.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},Vt=function(t,e){return void 0===e?Boolean(t):!Boolean(t)||function(t,e){return"string"==typeof t?!Nn(e.privileges.find((function(e){return t===e.display}))):Array.isArray(t)?t.every((function(t){return!Nn(e.privileges.find((function(e){return t===e.display})))})):(Nn(t)||console.error('Could not understand privileges "'.concat(t,'"')),!0)}(t,e)||function(t){return!Nn(t.roles.find((function(t){return"System Developer"===t.display})))}(e)},Ht=function(){var t,e;return new Promise((function(n){var r=function(r){r.loaded&&r.session.user&&(t=r.session.user,n(r.session.user),e&&e())};r(Dn.getState()),t||(e=Dn.subscribe(r))}))},Nt=function(){return new Promise((function(t,e){jt().subscribe((function(e){t(e.sessionLocation)}),e).unsubscribe()}))},Dt=function(t,e){return In.apply(this,arguments)},Ut=function(t,e,n){return Rn.apply(this,arguments)},It=function(t){return new Promise((function(e,n){t.then((function(t){var r;"object"==typeof(null==t?void 0:t.data)?(r={loaded:!0,session:t.data},Dn.setState(r),e(r)):(r={loaded:!1,session:null},Dn.setState(r),n(r))})).catch((function(t){(0,Hn.reportError)("Failed to fetch new session information: ".concat(t));var e={loaded:!1,session:null};Dn.setState(e),n(e)}))}))},Rt=function(){(0,Ne.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:Ne.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:Ne.Type.String,_default:"${openmrsSpaBase}/login",_validators:[Ne.validators.isUrl]},errors:{_type:Ne.Type.Array,_default:[401],_elements:{_type:Ne.Type.Number,_validators:[Ne.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:Ne.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),Ct()},Bt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Wt=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Gt=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Wt(i,r,o,a,s,"next",t)}function s(t){Wt(i,r,o,a,s,"throw",t)}a(void 0)}))}},Ft=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},qt=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},$t=function(t,e){return Wn.apply(this,arguments)},Jt=function(t){return Gn.apply(this,arguments)},Kt=function(t){return function(e){return 0===t?Yn:e.lift(new Zn(t))}},Qt=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new er(t,e))}},Xt=function(){return(0,Ue.getGlobalStore)("visit",or)},Yt=function(t,e){Xt().setState({patientUuid:t,manuallySetVisitUuid:e})},Zt=function(t,e,n){var r=null!=n?n:rr;return St("".concat(jn,"/visit?patient=").concat(t,"&v=").concat(r),{signal:e.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(Kt(1)).pipe(Qt((function(t){return t})))},te=function(t,e){return St("".concat(jn,"/visit"),{signal:e.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},ee=function(t,e,n){return St("".concat(jn,"/visit/").concat(t),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},ne=function(t){return{uuid:t.uuid,display:t.display,name:t.name}},re=function(){return St("".concat(jn,"/visittype")).pipe(Qt((function(t){return t.data.results.map(ne)}))).pipe(Kt(1))},oe=function(t){return{uuid:t.uuid,display:t.display}},ie=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return St("".concat(jn,"/location")+(t?"?tag="+t:"")).pipe(Qt((function(t){return t.data.results.map(oe)}))).pipe(Kt(1))};f.r(h),f.d(h,{OpenmrsFetchError:function(){return Cn},VisitMode:function(){return ir},VisitStatus:function(){return ar},attachmentUrl:function(){return Ln},backendDependencies:function(){return ur},clearCurrentUser:function(){return Lt},createAttachment:function(){return Pt},defaultVisitCustomRepresentation:function(){return rr},deleteAttachmentPermanently:function(){return Mt},fetchCurrentPatient:function(){return $t},fhirBaseUrl:function(){return zn},getAttachmentByUuid:function(){return Ot},getAttachments:function(){return At},getCurrentUser:function(){return jt},getLocations:function(){return ie},getLoggedInUser:function(){return Ht},getSessionLocation:function(){return Nt},getSessionStore:function(){return zt},getStartedVisit:function(){return sr},getVisitStore:function(){return Xt},getVisitTypes:function(){return re},getVisitsForPatient:function(){return Zt},makeUrl:function(){return wt},openmrsFetch:function(){return bt},openmrsObservableFetch:function(){return St},refetchCurrentUser:function(){return Ct},restBaseUrl:function(){return jn},saveVisit:function(){return te},sessionEndpoint:function(){return kn},setCurrentVisit:function(){return Yt},setSessionLocation:function(){return Dt},setUserLanguage:function(){return kt},setUserProperties:function(){return Ut},setupApiModule:function(){return Rt},toLocationObject:function(){return oe},toVisitTypeObject:function(){return ne},updateVisit:function(){return ee},userHasAccess:function(){return Vt}});var ae,se,ue=function(t,e){return ue=Object.setPrototypeOf||i({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ue(t,e)},ce=!1,le={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,ce=t},get useDeprecatedSynchronousErrorHandling(){return ce}},fe={closed:!0,next:function(t){},error:function(t){if(le.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete:function(){}},he=Array.isArray||function(t){return t&&"number"==typeof t.length},pe=function(){var t=function(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this};return t.prototype=Object.create(Error.prototype),t}(),ve=pe,de=function(){var t=function(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)};return t.prototype.unsubscribe=function(){var n;if(!this.closed){var r=this,o=r._parentOrParents,a=r._ctorUnsubscribe,s=r._unsubscribe,l=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i(o,t))o.remove(this);else if(null!==o)for(var f=0;f<o.length;++f)o[f].remove(this);if(e(s)){a&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){n=i(t,ve)?c(t.errors):[t]}}if(he(l)){f=-1;for(var h=l.length;++f<h;){var p=l[f];if(u(p))try{p.unsubscribe()}catch(t){n=n||[],i(t,ve)?n=n.concat(c(t.errors)):n.push(t)}}}if(n)throw new ve(n)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(void 0===e?"undefined":a(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!i(n,t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(i(o,t)){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),ge="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),me=function(e){function n(t,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=fe;break;case 1:if(!t){a.destination=fe;break}if("object"==typeof t){i(t,n)?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(a)):(a.syncErrorThrowable=!0,a.destination=new ye(a,t));break}default:a.syncErrorThrowable=!0,a.destination=new ye(a,t,r,o)}return a}return t(n,e),n.prototype[ge]=function(){return this},n.create=function(t,e,r){var o=new n(t,e,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(de),ye=function(n){var r=function(t,r,o,i){var a,s=n.call(this)||this;s._parentSubscriber=t;var u=s;return e(r)?a=r:r&&(a=r.next,o=r.error,i=r.complete,r!==fe&&(e((u=Object.create(r)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=a,s._error=o,s._complete=i,s};return t(r,n),r.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;le.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=le.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};le.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),le.useDeprecatedSynchronousErrorHandling)throw t;s(t)}},r.prototype.__tryOrSetError=function(t,e,n){if(!le.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return le.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(s(e),!0)}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(me),we="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){var t=function(t){this._isScalar=!1,t&&(this._subscribe=t)};return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(i(t,me))return t;if(t[ge])return t[ge]()}return t||e||n?new me(t,e,n):new me(fe)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||le.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),le.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){le.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&i(r,me)?r:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=p(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[we]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0===(n=t).length?l:1===n.length?n[0]:function(t){return n.reduce((function(t,e){return e(t)}),t)})(this);var n},t.prototype.toPromise=function(t){var e=this;return new(t=p(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}(),Se="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Ee="object"==typeof self&&self&&self.Object===Object&&self,Oe=(Se||Ee||Function("return this")()).Symbol,Ae=Object.prototype,Pe=Ae.hasOwnProperty,Me=Ae.toString,_e=Oe?Oe.toStringTag:void 0,Te=Object.prototype.toString,xe=Oe?Oe.toStringTag:void 0,je=(ae=Object.getPrototypeOf,se=Object,function(t){return ae(se(t))}),ze=Function.prototype,ke=Object.prototype,Ce=ze.toString,Le=ke.hasOwnProperty,Ve=Ce.call(Object),He=function(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xe&&xe in Object(t)?function(t){var e=Pe.call(t,_e),n=t[_e];try{t[_e]=void 0;var r=!0}catch(t){}var o=Me.call(t);return r&&(e?t[_e]=n:delete t[_e]),o}(t):function(t){return Te.call(t)}(t)}(t))return!1;var e=je(t);if(null===e)return!0;var n=Le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i(n,n)&&Ce.call(n)==Ve},Ne=f(824),De=f(513),Ue=f(385);(0,Ue.createGlobalStore)("breadcrumbs",[]);var Ie,Re=Object.freeze({__proto__:null,get start(){return pt},get ensureJQuerySupport(){return K},get setBootstrapMaxTime(){return H},get setMountMaxTime(){return N},get setUnmountMaxTime(){return D},get setUnloadMaxTime(){return U},get registerApplication(){return ot},get unregisterApplication(){return at},get getMountedApps(){return et},get getAppStatus(){return rt},get unloadApplication(){return st},get checkActivityFunctions(){return it},get getAppNames(){return nt},get pathToActiveWhen(){return lt},get navigateToUrl(){return W},get patchHistoryApi(){return $},get triggerAppChange(){return ft},get addErrorHandler(){return d},get removeErrorHandler(){return g},get mountRootParcel(){return k},get NOT_LOADED(){return Fe},get LOADING_SOURCE_CODE(){return qe},get NOT_BOOTSTRAPPED(){return $e},get BOOTSTRAPPING(){return Je},get NOT_MOUNTED(){return Ke},get MOUNTING(){return Qe},get UPDATING(){return Ye},get LOAD_ERROR(){return en},get MOUNTED(){return Xe},get UNLOADING(){return tn},get UNMOUNTING(){return Ze},get SKIP_BECAUSE_BROKEN(){return nn}}),Be=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,We=function(){try{var t=new Be("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Be:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},Ge=[],Fe="NOT_LOADED",qe="LOADING_SOURCE_CODE",$e="NOT_BOOTSTRAPPED",Je="BOOTSTRAPPING",Ke="NOT_MOUNTED",Qe="MOUNTING",Xe="MOUNTED",Ye="UPDATING",Ze="UNMOUNTING",tn="UNLOADING",en="LOAD_ERROR",nn="SKIP_BECAUSE_BROKEN",rn=[],on=!1,an=!1,sn=0,un={parcels:{}},cn={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},ln="undefined"!=typeof window,fn={hashchange:[],popstate:[]},hn=["hashchange","popstate"],pn=null,vn=!1;ln&&(window.singleSpaNavigate?console.warn(m(41,!1)):window.singleSpaNavigate=W);var dn=!1,gn={},mn=[],yn=!1,wn=!1,bn=[],Sn=ln&&window.location.href;function En(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(wn)return new Promise((function(t,n){bn.push({resolve:t,reject:n,eventArguments:e})}));var r,i=function(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return mn.forEach((function(i){var a=i.status!==nn&&b(i);switch(i.status){case en:a&&o-i.loadErrorTime>=200&&n.push(i);break;case Fe:case qe:a&&n.push(i);break;case $e:case Ke:!a&&tt(S(i))?t.push(i):a&&r.push(i);break;case Xe:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}(),a=i.appsToUnload,s=i.appsToUnmount,u=i.appsToLoad,c=i.appsToMount,l=[],f=Sn,h=Sn=window.location.href;return vt()?(wn=!0,r=a.concat(u,s,c),Promise.resolve().then((function(){return y(0===r.length?"before-no-app-change":"before-app-change",g(!0)),y("before-routing-event",g(!0,{cancelNavigation:p})),Promise.all(l).then((function(n){if(n.some((function(t){return t})))return pn.call(window.history,history.state,"",f.substring(location.origin.length)),Sn=location.href,wn=!1,En(t,e,!0);var r=a.map(X),o=s.map(j).map((function(t){return t.then(X)})).concat(r),i=Promise.all(o);i.then((function(){y("before-mount-routing-event",g(!0))}),(function(t){throw t}));var l=u.map((function(t){return B(t).then((function(t){return ht(t,i)}))})),h=c.filter((function(t){return u.indexOf(t)<0})).map((function(t){return ht(t,i)}));return i.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(l.concat(h)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(v).then((function(){}),(function(t){throw t}))}))}))}))):(r=u,Promise.resolve().then((function(){var t=u.map(B);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t})).finally((function(){}))})));function p(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e="function"==typeof(null==t?void 0:t.then)?t:Promise.resolve(t);l.push(e.catch((function(t){return console.warn(Error(m(42,!1))),console.warn(t),!1})))}function v(){var e=et();t.forEach((function(t){return t.resolve(e)}));try{y(0===r.length?"no-app-change":"app-change",g()),y("routing-event",g())}catch(t){setTimeout((function(){throw t}))}if(wn=!1,bn.length>0){var n=bn;bn=[],En(n)}return e}function d(){n||(t.forEach((function(t){G(t.eventArguments)})),G(e))}function g(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,l={},p=(o(t={},Xe,[]),o(t,Ke,[]),o(t,Fe,[]),o(t,nn,[]),t);n?(u.concat(c).forEach((function(t,e){d(t,Xe)})),a.forEach((function(t){d(t,Fe)})),s.forEach((function(t){d(t,Ke)}))):r.forEach((function(t){d(t)}));var v={detail:{newAppStatuses:l,appsByNewStatus:p,totalAppChanges:r.length,originalEvent:null==e?void 0:e[0],oldUrl:f,newUrl:h}};return i&&A(v.detail,i),v;function d(t,e){var n=S(t);e=e||rt(n),l[n]=e,(p[e]=p[e]||[]).push(n)}}function y(t,e){n||window.dispatchEvent(new We("single-spa:".concat(t),e))}}var On=!1,An={getRawAppData:function(){return function(t){if(Array.isArray(t))return r(t)}(t=mn)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t},reroute:En,NOT_LOADED:Fe,toLoadPromise:B,toBootstrapPromise:x,unregisterApplication:at,getProfilerData:function(){return rn}};ln&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=An);var Pn="openmrs:history";function Mn(t,e,n){return Mn=yt()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Tn(o,n.prototype),o},Mn.apply(null,arguments)}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}function Tn(t,e){return Tn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Tn(t,e)}function xn(t){var e="function"==typeof Map?new Map:void 0;return xn=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Mn(t,arguments,_n(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tn(r,t)},xn(t)}var jn="/ws/rest/v1",zn="/ws/fhir2/R4",kn="".concat(jn,"/session"),Cn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tn(t,e)}(o,t);var e,n,r=(e=o,n=yt(),function(){var t,r=_n(e);if(n){var o=_n(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":void 0===n?"undefined":a(n))&&"function"!=typeof e?dt(t):e;var n}(this,t)});function o(t,e,n,a){var s;return function(t,e){if(!i(t,e))throw new TypeError("Cannot call a class as a function")}(this,o),mt(dt(s=r.call(this)),"response",void 0),mt(dt(s),"responseBody",void 0),s.message="Server responded with ".concat(e.status," (").concat(e.statusText,") for url ").concat(t,". Check err.responseBody or network tab in dev tools for more info"),a.message=s.message,s.responseBody=n,s.response=e,s.stack="Stacktrace for outgoing request:\n".concat(a.stack,"\nStacktrace for incoming response:\n").concat(s.stack),s}return o}(xn(Error)),Ln="".concat(jn,"/attachment");function Vn(){var t;return t=function(t,e){var n;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(r){return(n=new FormData).append("fileCaption",e.fileDescription),n.append("patient",t),e.file?n.append("file",e.file):(n.append("file",new File([""],e.fileName),e.fileName),n.append("base64Content",e.base64Content)),[2,bt("".concat(Ln),{method:"POST",body:n})]}))},Vn=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Et(i,r,o,a,s,"next",t)}function s(t){Et(i,r,o,a,s,"throw",t)}a(void 0)}))},Vn.apply(this,arguments)}var Hn=f(254),Nn=function(t){return void 0===t},Dn=(0,Ue.createGlobalStore)("session",{loaded:!1,session:null}),Un=0;function In(){return(In=Tt((function(t,e){return xt(this,(function(n){return[2,It(bt(kn,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:e.signal}))]}))}))).apply(this,arguments)}function Rn(){return(Rn=Tt((function(t,e,n){return xt(this,(function(r){switch(r.label){case 0:return n||(n=new AbortController),[4,bt("".concat(jn,"/user/").concat(t),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:n.signal})];case 1:return r.sent(),[2,Ct()]}}))}))).apply(this,arguments)}Dn.subscribe((function(t){return t.session&&kt(t.session)}));var Bn=f(738);function Wn(){return Wn=Gt((function(t,e){var n,r,o,i,a,s=arguments;return qt(this,(function(u){switch(u.label){case 0:return n=!(s.length>2&&void 0!==s[2])||s[2],t?(r=null,[4,Promise.all([bt("".concat(zn,"/Patient/").concat(t),e).catch((function(t){return r=t})),n?Jt(t):Promise.resolve(null)])]):[3,2];case 1:if(o=Ft.apply(void 0,[u.sent(),2]),i=o[0],a=o[1],i.ok)return[2,i.data];if(a)return[2,a];if(r)throw r;u.label=2;case 2:return[2,null]}}))})),Wn.apply(this,arguments)}function Gn(){return(Gn=Gt((function(t){var e,n,r;return qt(this,(function(o){switch(o.label){case 0:return[4,(0,Bn.getSynchronizationItems)("patient-registration")];case 1:return e=o.sent(),n=e.find((function(e){return e.fhirPatient.id===t})),[2,null!==(r=null==n?void 0:n.fhirPatient)&&void 0!==r?r:null]}}))}))).apply(this,arguments)}var Fn=function(){var t=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return t.prototype=Object.create(Error.prototype),t}(),qn=function(e){var n=function(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r};return t(n,e),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},n}(de),$n=function(e){var n=function(t){var n=e.call(this,t)||this;return n.destination=t,n};return t(n,e),n}(me),Jn=function(e){var n=function(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t};return t(n,e),n.prototype[ge]=function(){return new $n(this)},n.prototype.lift=function(t){var e=new Kn(this,this);return e.operator=t,e},n.prototype.next=function(t){if(this.closed)throw new Fn;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},n.prototype.error=function(t){if(this.closed)throw new Fn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Fn;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Fn;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Fn;return this.hasError?(t.error(this.thrownError),de.EMPTY):this.isStopped?(t.complete(),de.EMPTY):(this.observers.push(t),new qn(this,t))},n.prototype.asObservable=function(){var t=new be;return t.source=this,t},n.create=function(t,e){return new Kn(t,e)},n}(be),Kn=function(e){var n=function(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r};return t(n,e),n.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},n.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):de.EMPTY},n}(Jn),Qn=function(e){var n=function(t){var n=e.call(this)||this;return n._value=t,n};return t(n,e),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fn;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Jn),Xn=function(){var t=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return t.prototype=Object.create(Error.prototype),t}(),Yn=new be((function(t){return t.complete()})),Zn=function(){var t=function(t){if(this.total=t,this.total<0)throw new Xn};return t.prototype.call=function(t,e){return e.subscribe(new tr(t,this.total))},t}(),tr=function(e){var n=function(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r};return t(n,e),n.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},n}(me),er=function(){var t=function(t,e){this.project=t,this.thisArg=e};return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.project,this.thisArg))},t}(),nr=function(e){var n=function(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return t(n,e),n.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},n}(me),rr="custom:(uuid,display,voided,indication,startDatetime,stopDatetime,encounters:(uuid,display,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,display),visitType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display))",or=function(){try{return JSON.parse(localStorage.getItem("openmrs:visitStoreState")||"null")}catch(t){return null}}()||{patientUuid:null,manuallySetVisitUuid:null};Xt().subscribe((function(t){var e;e=t,localStorage.setItem("openmrs:visitStoreState",JSON.stringify(e))}));var ir,ar,sr=new Qn(null);!function(t){t.NEWVISIT="startVisit",t.EDITVISIT="editVisit",t.LOADING="loadingVisit"}(ir||(ir={})),function(t){t.NOTSTARTED="notStarted",t.ONGOING="ongoing"}(ar||(ar={}));var ur={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),h}())}}}))},714:()=>{function t(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}System.register(["@openmrs/esm-state"],(function(e,n){var r={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},a=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},s=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},u=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},c=function(t,e,n,r){var o=a(t);function i(t,e){return ft(t,e,n.slice(),r.slice())}return!s((function(t,e){return!s(i,e,t)}),a(e),o)},l=function(t){return function o(i,a,s){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(a)?o:e(i)?r((function(e,n){return t(e,a,n)})):e(a)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,a,e)}));default:return e(i)&&e(a)&&e(s)?o:e(i)&&e(a)?r((function(e,n){return t(e,n,s)})):e(i)&&e(s)?r((function(e,n){return t(e,a,n)})):e(a)&&e(s)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,a,s)})):e(a)?n((function(e){return t(i,e,s)})):e(s)?n((function(e){return t(i,a,e)})):t(i,a,s)}}},f=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},p=function(t,e,n,r){return t["@@transducer/result"](n[r](At(t["@@transducer/step"],t),e))},v=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},d=function(t){return(0,Ct.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1,translationOverridesLoaded:!1})},g=function(){return(0,Ct.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return y(g().getState(),t)},y=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Ct.getGlobalStore)("config-extensions",{configs:{}})},b=function(t,e){var n=Object.assign({},S(w().getState(),t,e));return n.config=gt(["Display conditions","Translation overrides"],n.config),n},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},E=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},A=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){O(t,e,n[e])}))}return t},P=function(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t},M=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||T(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},_=function(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||T(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},T=function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}},x=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=d(s);if(t.moduleLoaded[s]){var c=G(s,t,e);u.setState({translationOverridesLoaded:!0,loaded:!0,config:c})}else{var l=F(s,t,e);u.setState({translationOverridesLoaded:!0,loaded:!1,config:l})}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}},j=function(t,e){var n,r,o=(n=$(W(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=M(o.value,2),s=a[0],u=a[1],c=!0,l=!1,f=void 0;try{for(var h,p=Object.entries(u)[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=M(h.value,2),d=v[0];B(v[1],s,d)}}catch(t){l=!0,f=t}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return A({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=M(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),a=g(),s=a.getState(),u={slots:A({},s.slots,i)};ht(s,u)||a.setState(u)},z=function(t,e){var n=function(t,e){var n=Dt(wt(t.schemas)),r=_(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=M(s.value,2);n=$([n,Ut(c[0],c[1])])}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(t,e);Nt.setState({config:n})},k=function(t,e,n){var r={},o=!0,i=!1,a=void 0;try{for(var s,u=e.mountedExtensions[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,l=R(c.slotModuleName,c.extensionModuleName,c.slotName,c.extensionId,t,n);r[c.slotName]=P(A({},r[c.slotName]),O({},c.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}w().setState({configs:r})},C=function(t,e){It(t,e);var n=dt(e,qt);Lt.setState((function(e){return P(A({},e),{schemas:P(A({},e.schemas),O({},t,n)),moduleLoaded:P(A({},e.moduleLoaded),O({},t,!0))})}))},L=function(t){var e=Lt.getState();Lt.setState({schemas:P(A({},e.schemas),O({},t,qt))})},V=function(t){var e=Lt.getState();Lt.setState({schemas:P(A({},e.schemas),O({},t,Ft))})},H=function(t,e){It(t,e);var n=dt(e,qt),r=Lt.getState();r.schemas[t]&&console.error("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Lt.setState({schemas:P(A({},r.schemas),O({},t,n))})},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided";Lt.setState((function(n){return P(A({},n),{providedConfigs:_(n.providedConfigs).concat([{source:e,config:t}])})}))},D=function(t){return new Promise((function(e){var n=function(t){if(t.loaded&&t.config){var n=gt(["Display conditions","Translation overrides"],t.config);e(n),o&&o()}},r=d(t);n(r.getState());var o=r.subscribe(n)}))},U=function(t){return new Promise((function(e){var n=function(t){if(t.translationOverridesLoaded&&t.config){var n,r=null!==(n=t.config["Translation overrides"])&&void 0!==n?n:{};e(r),o&&o()}},r=d(t);n(r.getState());var o=r.subscribe(n)}))},I=function(t,e,n){J(t,e,n);var r=Wt(t,e);return Bt(t,r,n),r},R=function(t,e,n,r,o,i){var a,s,u,c,l=function(t){return M(t.split("#"),1)[0]}(r),f=o.schemas[l],h=f?l:e,p=W(o,i),v=q(t,p),d=null!==(c=null==v||null===(a=v.extensionSlots)||void 0===a||null===(s=a[n])||void 0===s||null===(u=s.configure)||void 0===u?void 0:u[r])&&void 0!==c?c:{},g=$([q(h,p),d]),m=null!=f?f:o.schemas[e];J(m,g,h);var y=Wt(m,g);return Bt(m,y,h),delete y.extensionSlots,y},B=function(t,e,n){var r="".concat(e,".extensionSlots.").concat(n),o="Extension slot config '".concat(r,"'"),i=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));i.length&&Z(r,o+"' contains invalid keys '".concat(i.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||Z(r,o+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||Z(r,o+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||Z(r,o+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Y(t.configure)||Z(r,o+".configure' is invalid. Must be an object with extension IDs for keys"))},W=function(t,e){return _(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},G=function(t,e,n){var r=e.schemas[t],o=q(t,W(e,n));J(r,o,t);var i=Wt(r,o);return Bt(r,i,t),delete i.extensionSlots,i},F=function(t,e,n){var r=q(t,W(e,n)),o=Wt(qt,r);return Bt(qt,o,t),delete o.extensionSlots,o},q=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return Mt(dt)({},t)},J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u],l=n+"."+u,f=t[u];t.hasOwnProperty(u)?Rt(f,c,l):"extensionSlots"===u&&""!==n||Z(l,"Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&Q(t,[{Array:_t,Boolean:Tt,ConceptUuid:kt,Number:xt,Object:zt,String:jt,UUID:kt,PersonAttributeTypeUuid:kt,PatientIdentifierTypeUuid:kt}[e]],n)},Q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=(0,a.value)(n);"string"==typeof u&&Z(t,"object"==typeof n?"Invalid configuration for ".concat(t,": ").concat(u):"Invalid configuration value ".concat(n," for ").concat(t,": ").concat(u))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},X=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Y=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},Z=function(t,e){var n="".concat(t,":::").concat(e);Gt.has(n)||(console.error(e),Gt.add(n))},tt=function(t){t?Gt.forEach((function(e){e.startsWith(t)&&Gt.delete(e)})):Gt.clear()};o.r(i),o.d(i,{Type:function(){return yt},clearConfigErrors:function(){return tt},configExtensionStore:function(){return Ht},configInternalStore:function(){return Lt},defineConfigSchema:function(){return C},defineExtensionConfigSchema:function(){return H},getConfig:function(){return D},getConfigStore:function(){return d},getExtensionConfig:function(){return b},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return y},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},getTranslationOverrides:function(){return U},implementerToolsConfigStore:function(){return Nt},inRange:function(){return $t},isUrl:function(){return Kt},isUrlWithTemplateParameters:function(){return Jt},oneOf:function(){return Qt},processConfig:function(){return I},provide:function(){return N},registerModuleWithConfigSystem:function(){return L},registerTranslationNamespace:function(){return V},temporaryConfigStore:function(){return Vt},validator:function(){return v},validators:function(){return Xt}});var et="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},nt=Object.prototype.toString,rt=function(){return"[object Arguments]"===nt.call(arguments)?function(t){return"[object Arguments]"===nt.call(t)}:function(t){return u("callee",t)}}(),ot=rt,it=!{toString:null}.propertyIsEnumerable("toString"),at=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],st=function(){return arguments.propertyIsEnumerable("length")}(),ut=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ct="function"!=typeof Object.keys||st?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=st&&ot(t);for(e in t)!u(e,t)||o&&"length"===e||(r[r.length]=e);if(it)for(n=at.length-1;n>=0;)u(e=at[n],t)&&!ut(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),lt=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ft(e,n,r,o){if(et(e,n))return!0;var i,a,s=lt(e);if(s!==lt(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(a=String(i).match(/^function (\w*)/))?"":a[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!et(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!et(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(s){case"Map":return e.size===n.size&&c(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&c(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ct(e);if(f.length!==ct(n).length)return!1;var h=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var v=f[l];if(!u(v,n)||!ft(n[v],e[v],h,p))return!1;l-=1}return!0}var ht=r((function(t,e){return ft(t,e,[],[])})),pt=l((function(t,e,n){var r,o={};for(r in e)u(r,e)&&(o[r]=u(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)u(r,n)&&!u(r,o)&&(o[r]=n[r]);return o})),vt=l((function t(e,n,r){return pt((function(n,r,o){return f(r)&&f(o)?t(e,r,o):e(n,r,o)}),n,r)})),dt=r((function(t,e){return vt((function(t,e,n){return n}),t,e)})),gt=r((function(t,e){for(var n={},r={},o=0,i=t.length;o<i;)r[t[o]]=1,o+=1;for(var a in e)r.hasOwnProperty(a)||(n[a]=e[a]);return n}));function mt(t,e,n,r){var o,i=function(o){for(var i=e.length,a=0;a<i;){if(t===e[a])return n[a];a+=1}for(var s in e[a+1]=t,n[a+1]=o,t)o[s]=r?mt(t[s],e,n,!0):t[s];return o};switch(lt(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var yt,wt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():mt(t,[],[],!0)})),bt=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},St=n((function(t){return!!bt(t)||!!t&&"object"==typeof t&&!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))})),Et=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),Ot=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,a){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,a,s){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,a,s,u){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,a,s,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,a,s,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),At=Ot,Pt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",Mt=l((function(t,e,n){if("function"==typeof t&&(t=function(t){return new Et(t)}(t)),St(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return p(t,e,n,"fantasy-land/reduce");if(null!=n[Pt])return h(t,e,n[Pt]());if("function"==typeof n.next)return h(t,e,n);if("function"==typeof n.reduce)return p(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}));!function(t){t.Array="Array",t.Boolean="Boolean",t.ConceptUuid="ConceptUuid",t.Number="Number",t.Object="Object",t.String="String",t.UUID="UUID",t.PersonAttributeTypeUuid="PersonAttributeTypeUuid",t.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid"}(yt||(yt={}));var _t=v((function(t){return Array.isArray(t)}),"must be an array"),Tt=v((function(t){return"boolean"==typeof t}),"must be a boolean"),xt=v((function(t){return"number"==typeof t}),"must be a number"),jt=v((function(t){return"string"==typeof t}),"must be a string"),zt=v((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),kt=v((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),Ct=o(685),Lt=(0,Ct.createGlobalStore)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),Vt=(0,Ct.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Vt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Ht=(0,Ct.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Nt=(0,Ct.createGlobalStore)("config-implementer-tools",{config:{}});function Dt(t){return t.hasOwnProperty("_default")?P(A({},t),{_value:t._default,_source:"default"}):Y(t)?Object.keys(t).reduce((function(e,n){return e[n]=Dt(t[n]),e}),{}):{}}function Ut(t,e){return Y(t)?Object.keys(t).reduce((function(n,r){return n[r]=Ut(t[r],e),n}),{}):{_value:t,_source:e}}function It(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,a=void 0;try{for(var s,u=function(){var o=s.value,i=n+(n&&".")+o,a=e[o];if("Display conditions"===i&&console.error("".concat(t,' declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ').concat(r)),"Translation overrides"===i&&console.error("".concat(t,' declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ').concat(r)),!Y(a))return console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r)),"continue";a.hasOwnProperty("_default")||It(t,a,i);var u=a._elements;if(X(u)&&It(t,u,i+"._elements"),a._validators){var c=!0,l=!1,f=void 0;try{for(var h,p=a._validators[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(i,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){l=!0,f=t}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}}var d=a._type;d&&!Object.values(yt).includes(d)&&console.error("".concat(t," has invalid type for key '").concat(i,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(yt).join(", "),". ")+"Received '".concat(d,"'")),Object.keys(a).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(a))),u&&d&&![yt.Array,yt.Object].includes(d)&&console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(d)))},c=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(s=c.next()).done);o=!0)u()}catch(t){i=!0,a=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}function Rt(t,e,n){K(n,t._type,e),Y(e)?t._type===yt.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u];J(t._elements,c,"".concat(n,".").concat(u))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||J(t,e,n):t._type===yt.Array&&function(t,e,n){if(X(t._elements))for(var r=0;r<e.length;r++)Rt(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&Q(n,t._validators,e),Y(e)){var r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u],l=n+"."+u,f=t[u];t._type===yt.Object&&t._elements?Bt(t._elements,c,l):Bt(f,c,l)}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var h=0;h<e.length;h++)Bt(t._elements,e[h],"".concat(n,"[").concat(h,"]"))}x(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return x(t,Vt.getState())})),Vt.subscribe((function(t){return x(Lt.getState(),t)})),z(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return z(t,Vt.getState())})),Vt.subscribe((function(t){return z(Lt.getState(),t)})),j(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return j(t,Vt.getState())})),Vt.subscribe((function(t){return j(Lt.getState(),t)})),k(Lt.getState(),Ht.getState(),Vt.getState()),Lt.subscribe((function(t){k(t,Ht.getState(),Vt.getState())})),Ht.subscribe((function(t){k(Lt.getState(),t,Vt.getState())})),Vt.subscribe((function(t){k(Lt.getState(),Ht.getState(),t)}));var Wt=function(t,e){var n=wt(e);if(!t)return n;var r=!0,o=!1,i=void 0;try{for(var a,s=function(){var e=a.value,r=n[e],o=t[e];if(o&&(o.hasOwnProperty("_type")||o.hasOwnProperty("_default"))){n.hasOwnProperty(e)||(n[e]=o._default);var i=o._elements;if(r&&X(i))if(o._type===yt.Array&&Array.isArray(r)){var s=r.map((function(t){return Wt(i,t)}));n[e]=s}else if(o._type===yt.Object){var u=!0,c=!1,l=void 0;try{for(var f,h=Object.keys(r)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var p=f.value;r[p]=Wt(i,r[p])}}catch(t){c=!0,l=t}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}else if(Y(o)){var v=null!=r?r:{};Y(v)&&(n[e]=Wt(o,v))}},u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s()}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n},Gt=new Set,Ft={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:yt.Object,_default:{},_validators:[v((function(t){return Object.keys(t).every((function(t){return/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(t)}))}),(function(t){var e=Object.keys(t).filter((function(t){return!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(t)}));return"The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ".concat(e.join(", "),".")}))]}},qt=A({"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:yt.Array,_default:[]}}},Ft),$t=function(t,e){return v((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Jt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return v((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},Kt=Jt([]),Qt=function(t){return v((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Xt={inRange:$t,isUrl:Kt,isUrlWithTemplateParameters:Jt,oneOf:Qt}}(),i}())}}}))},254:t=>{"use strict";t.exports=n},45:t=>{"use strict";t.exports=r},513:t=>{"use strict";t.exports=o},740:t=>{"use strict";t.exports=i},685:t=>{"use strict";t.exports=a},901:t=>{"use strict";t.exports=s},688:t=>{"use strict";t.exports=u},954:t=>{"use strict";t.exports=c},493:t=>{"use strict";t.exports=l},792:t=>{"use strict";t.exports=f}},e={};function h(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,h),o.exports}h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),h.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var p={};return(()=>{"use strict";var t=h(714);const e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.646 8.116l.021-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-black)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037l10.784 17.492h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45zM185.885 90.998h1.424l2.734 6.326h.023l2.758-6.326h1.391v8.07h-.957v-6.77h-.024l-2.894 6.77h-.582l-2.894-6.77h-.022v6.77h-.957zM198.386 90.998h5.071v.889h-4.114v2.53h3.841v.89h-3.841v2.871h4.32v.89h-5.277zM207.891 98.178h1.822c1.848 0 3.25-.935 3.25-3.146s-1.402-3.145-3.25-3.145h-1.822zm-.957-7.18h3.1c1.583 0 3.953 1.06 3.953 4.034 0 2.976-2.37 4.036-3.953 4.036h-3.1zM217.007 99.068h.958v-8.07h-.958zM227.105 92.663c-.478-.651-1.242-.981-2.017-.981-1.8 0-3.077 1.584-3.077 3.35 0 1.87 1.266 3.352 3.077 3.352.98 0 1.767-.4 2.337-1.129l.718.603c-.718.97-1.766 1.414-3.055 1.414-2.314 0-4.102-1.79-4.102-4.24 0-2.37 1.709-4.239 4.102-4.239 1.095 0 2.166.377 2.849 1.266zM233.557 92.23h-.024l-1.675 3.965h3.294zm-.434-1.232h.9l3.43 8.07h-1.117l-.82-1.984h-4.034l-.832 1.984h-1.082zM240.006 90.998h.958v7.18h3.692v.89h-4.65zM252.793 94.554h.855c1.06 0 2.439 0 2.439-1.334 0-1.161-1.014-1.333-1.948-1.333h-1.346zm-.957-3.556h2.063c1.561 0 3.214.228 3.214 2.222 0 1.174-.764 1.938-2.018 2.132l2.291 3.716h-1.173l-2.19-3.625h-1.23v3.625h-.957zM260.51 90.998h5.07v.889h-4.112v2.53h3.84v.89h-3.84v2.871h4.318v.89h-5.276zM274.402 92.663c-.479-.651-1.242-.981-2.018-.981-1.8 0-3.077 1.584-3.077 3.35 0 1.87 1.266 3.352 3.077 3.352.98 0 1.767-.4 2.336-1.129l.718.603c-.718.97-1.766 1.414-3.054 1.414-2.313 0-4.102-1.79-4.102-4.24 0-2.37 1.709-4.239 4.102-4.239 1.094 0 2.166.377 2.85 1.266zM284.739 95.032c0-1.857-1.3-3.35-3.191-3.35-1.892 0-3.191 1.493-3.191 3.35 0 1.858 1.299 3.352 3.191 3.352s3.191-1.494 3.191-3.352m-7.409 0c0-2.439 1.767-4.239 4.218-4.239s4.217 1.8 4.217 4.239-1.767 4.24-4.217 4.24c-2.451 0-4.218-1.8-4.218-4.24M289.514 94.554h.855c1.059 0 2.438 0 2.438-1.334 0-1.161-1.014-1.333-1.948-1.333h-1.345zm-.958-3.556h2.062c1.563 0 3.215.228 3.215 2.222 0 1.174-.763 1.938-2.016 2.132l2.289 3.716h-1.173l-2.189-3.625h-1.23v3.625h-.958zM297.81 98.178h1.825c1.845 0 3.246-.935 3.246-3.146s-1.401-3.145-3.246-3.145h-1.825zm-.957-7.18h3.1c1.585 0 3.956 1.06 3.956 4.034 0 2.976-2.371 4.036-3.956 4.036h-3.1zM315.407 92.422c-.318-.513-.89-.74-1.47-.74-.844 0-1.721.4-1.721 1.356 0 .74.41 1.072 1.698 1.482 1.254.399 2.417.81 2.417 2.393 0 1.607-1.38 2.36-2.838 2.36-.935 0-1.938-.309-2.486-1.118l.821-.672c.342.593 1.026.9 1.721.9.821 0 1.754-.478 1.754-1.402 0-.991-.67-1.163-2.107-1.64-1.139-.377-2.006-.878-2.006-2.222 0-1.551 1.333-2.326 2.747-2.326.9 0 1.664.25 2.256.946zM320.844 95.591l-3.009-4.593h1.219l2.269 3.647 2.335-3.647h1.152l-3.01 4.593v3.477h-.956zM330.565 92.422c-.32-.513-.89-.74-1.471-.74-.843 0-1.72.4-1.72 1.356 0 .74.41 1.072 1.698 1.482 1.254.399 2.415.81 2.415 2.393 0 1.607-1.378 2.36-2.837 2.36-.934 0-1.937-.309-2.485-1.118l.821-.672c.342.593 1.026.9 1.721.9.821 0 1.754-.478 1.754-1.402 0-.991-.671-1.163-2.107-1.64-1.139-.377-2.006-.878-2.006-2.222 0-1.551 1.333-2.326 2.746-2.326.901 0 1.665.25 2.257.946zM339.283 91.887h-2.666v7.18h-.958v-7.18h-2.667v-.889h6.291zM341.665 90.998h5.071v.889h-4.113v2.53h3.84v.89h-3.84v2.871h4.319v.89h-5.277zM349.905 90.998h1.424l2.735 6.326h.023l2.758-6.326h1.391v8.07h-.958v-6.77h-.023l-2.894 6.77h-.582l-2.895-6.77h-.021v6.77h-.958z" clip-rule="evenodd"/></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.647 8.116l.02-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-black)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037L334.018 79h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45z" clip-rule="evenodd"/></svg>',r='<svg xmlns="http://www.w3.org/2000/svg" width="121" height="118"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.436 39.474a27.93 27.93 0 0 1 19.811-8.205c7.717 0 14.705 3.122 19.77 8.167l.021-18.656A43.1 43.1 0 0 0 60.247 16c-7.133 0-13.899 1.943-19.832 4.999z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M80.038 79.064a27.92 27.92 0 0 1-19.808 8.205c-7.717 0-14.705-3.121-19.774-8.167l-.02 18.657a43.1 43.1 0 0 0 19.794 4.78 43.1 43.1 0 0 0 19.794-4.781z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.474 79.089c-5.069-5.069-8.205-12.07-8.205-19.808 0-7.717 3.121-14.704 8.167-19.773l-18.657-.02A43.1 43.1 0 0 0 17 59.281a43.1 43.1 0 0 0 4.782 19.795z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M80.027 39.435a27.93 27.93 0 0 1 8.205 19.811 27.92 27.92 0 0 1-8.168 19.769l18.658.021a43.1 43.1 0 0 0 4.779-19.79 43.1 43.1 0 0 0-4.781-19.798z" clip-rule="evenodd"/></svg>';var o=document.createElement("div"),i=function(){document.body.appendChild(o)};function a(t,e){var n=(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg");n&&(n.id=t,o.appendChild(n))}o.id="omrs-svgs-container",o.style.display="none","complete"===document.readyState?i():window.addEventListener("load",i);const s='<svg xmlns="http://www.w3.org/2000/svg"><path d="M9 2H7v2h2zM4 2H2v2h2zM14 2h-2v2h2zM9 7H7v2h2zM4 7H2v2h2zM14 7h-2v2h2zM9 12H7v2h2zM4 12H2v2h2zM14 12h-2v2h2z"/></svg>';var u={"Brand color #1":{_default:"#005d5d",_type:t.Type.String},"Brand color #2":{_default:"#004144",_type:t.Type.String},"Brand color #3":{_default:"#007d79",_type:t.Type.String},patientPhotoConceptUuid:{_type:t.Type.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:t.Type.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[t.validators.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}}};Number.MAX_SAFE_INTEGER;var c=h(954),l=h(792),f={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?f.enableCssCustomProperties=!0:f.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?f.enableUseControlledStateWithValue=!0:f.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?f.enableCssGrid=!0:f.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?f.enableV11Release=!0:f.enableV11Release=!1:f.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?f.enableExperimentalTileContrast=!0:f.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?f.enableV12TileDefaultIcons=!0:f.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?f.enableV12Overflowmenu=!0:f.enableV12Overflowmenu=!1}catch(t){f.enableCssCustomProperties=!1,f.enableUseControlledStateWithValue=!1,f.enableCssGrid=!1,f.enableV11Release=!0,f.enableExperimentalTileContrast=!1,f.enableV12TileDefaultIcons=!1,f.enableV12Overflowmenu=!1}var p=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:f.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:f.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:f.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:f.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:f.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:f.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:f.enableV12Overflowmenu}];function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==(void 0===(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?"undefined":(o=i)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)?i:String(i)),r)}var o,i}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}for(var y=function(){function t(e){var n=this;(function(t,e){if(n=t,!(null!=(r=e)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r})(this,t),this.flags=new Map,e&&Object.keys(e).forEach((function(t){n.flags.set(t,e[t])}))}var e,n;return e=t,n=[{key:"checkForFlag",value:function(t){if(!this.flags.has(t))throw new Error("Unable to find a feature flag with the name: `".concat(t,"`"))}},{key:"add",value:function(t,e){if(this.flags.has(t))throw new Error("The feature flag: ".concat(t," already exists"));this.flags.set(t,e)}},{key:"enable",value:function(t){this.checkForFlag(t),this.flags.set(t,!0)}},{key:"disable",value:function(t){this.checkForFlag(t),this.flags.set(t,!1)}},{key:"merge",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.flags.set(n,t[n])}))}},{key:"mergeWithScope",value:function(t){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.flags);try{for(n.s();!(e=n.n()).done;){var r=d(e.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"enabled",value:function(t){return this.checkForFlag(t),this.flags.get(t)}}],n&&v(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),w=new y(undefined),b=0;b<p.length;b++){var S=p[b];w.add(S.name,S.enabled)}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}!function(){w.merge.apply(w,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1}),h(279),new l.Subject,new l.Subject,new l.Subject,h(976),new l.Subject;var P=Object.freeze({__proto__:null,get start(){return se},get ensureJQuerySupport(){return Vt},get setBootstrapMaxTime(){return dt},get setMountMaxTime(){return gt},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return yt},get registerApplication(){return $t},get unregisterApplication(){return Kt},get getMountedApps(){return Wt},get getAppStatus(){return Ft},get unloadApplication(){return Qt},get checkActivityFunctions(){return Jt},get getAppNames(){return Gt},get pathToActiveWhen(){return Zt},get navigateToUrl(){return Mt},get patchHistoryApi(){return kt},get triggerAppChange(){return re},get addErrorHandler(){return j},get removeErrorHandler(){return z},get mountRootParcel(){return lt},get NOT_LOADED(){return L},get LOADING_SOURCE_CODE(){return V},get NOT_BOOTSTRAPPED(){return H},get BOOTSTRAPPING(){return N},get NOT_MOUNTED(){return D},get MOUNTING(){return U},get UPDATING(){return R},get LOAD_ERROR(){return G},get MOUNTED(){return I},get UNLOADING(){return W},get UNMOUNTING(){return B},get SKIP_BECAUSE_BROKEN(){return F}}),M=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,_=function(){try{var t=new M("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?M:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},T=[];function x(t,e,n){var r=C(t,e,n);T.length?T.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function j(t){if("function"!=typeof t)throw Error(k(28,!1));T.push(t)}function z(t){if("function"!=typeof t)throw Error(k(29,!1));var e=!1;return T=T.filter((function(n){var r=n===t;return e=e||r,!r})),e}function k(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function C(t,e,n){var r,o,i,a="".concat(Q(e)," '").concat(J(e),"' died in status ").concat(e.status,": ");if(o=t,null!=(i=Error)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i){try{t.message=a+t.message}catch(t){}r=t}else{console.warn(k(30,!1,e.status,J(e)));try{r=Error(a+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=J(e),e.status=n,r}var L="NOT_LOADED",V="LOADING_SOURCE_CODE",H="NOT_BOOTSTRAPPED",N="BOOTSTRAPPING",D="NOT_MOUNTED",U="MOUNTING",I="MOUNTED",R="UPDATING",B="UNMOUNTING",W="UNLOADING",G="LOAD_ERROR",F="SKIP_BECAUSE_BROKEN";function q(t){return t.status===I}function $(t){try{return t.activeWhen(window.location)}catch(e){return x(e,t,F),!1}}function J(t){return t.name}function K(t){return Boolean(t.unmountThisParcel)}function Q(t){return K(t)?"parcel":"application"}function X(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function Y(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function Z(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!Y(e,(function(t){return"function"!=typeof t}))));var e}function tt(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=Q(t),o=J(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return et(n)?n:Promise.reject(k(15,!1,r,o,e,a))}))}),Promise.resolve())}}function et(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}var nt=[];function rt(t,e){var n=function(){return t.status=D,t};return Promise.resolve().then((function(){return t.status!==H?t:(t.status=N,t.bootstrap?wt(t,"bootstrap").then(n).catch((function(n){if(e)throw C(n,t,F);return x(n,t,F),t})):Promise.resolve().then(n))}))}function ot(t,e){return Promise.resolve().then((function(){var n=function(){return wt(t,"unmount").then((function(){t.status=D}),(function(n){if(e)throw C(n,t,F);x(n,t,F)}))};if(t.status!==I)return t;t.status=B;var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw C(n,t,F);x(n,t,F)}))})).then((function(){return t}))}))}var it=!1,at=!1;function st(t,e){return Promise.resolve().then((function(){return t.status!==D?t:(it||(window.dispatchEvent(new _("single-spa:before-first-mount")),it=!0),t.status=U,wt(t,"mount").then((function(){return t.status=I,at||(window.dispatchEvent(new _("single-spa:first-mount")),at=!0),t})).catch((function(n){var r=function(){if(e)throw C(n,t,F);return x(n,t,F),t};return t.status=I,ot(t,!0).then(r,r)})))}))}var ut=0,ct={parcels:{}};function lt(){return ft.apply(ct,arguments)}function ft(t,e){var n=this;if(!t||"object"!=typeof t&&"function"!=typeof t)throw Error(k(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(k(3,!1,A(t.name)));var r=ut++,o=t.name||"parcel-".concat(r);if("object"!=typeof e)throw Error(k(4,!1,o,void 0===e?"undefined":A(e)));if(!e.domElement)throw Error(k(5,!1,o));var i,a="function"==typeof t,s=a?t:function(){return Promise.resolve(t)},u={id:r,parcels:{},status:a?V:H,customProps:e,parentName:J(n),unmountThisParcel:function(){return p.then((function(){if(u.status!==I)throw Error(k(6,!1,o,u.status));return ot(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return l(t),t})).catch((function(t){throw u.status=F,f(t),t}))}};n.parcels[r]=u;var c=s();if(!c||"function"!=typeof c.then)throw Error(k(7,!1));c=c.then((function(t){if(!t)throw Error(k(8,!1));if(o=t.name||"parcel-".concat(r),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Z(t.bootstrap))throw Error(k(9,!1,o));if(!Z(t.mount))throw Error(k(10,!1,o));if(!Z(t.unmount))throw Error(k(11,!1,o));if(t.update&&!Z(t.update))throw Error(k(12,!1,o));var e=tt(t,"bootstrap"),n=tt(t,"mount"),a=tt(t,"unmount");u.status=H,u.name=o,u.bootstrap=e,u.mount=n,u.unmount=a,u.timeouts=bt(t.timeouts),t.update&&(u.update=tt(t,"update"),i.update=function(t){return u.customProps=t,ht((e=u,Promise.resolve().then((function(){if(e.status!==I)throw Error(k(32,!1,J(e)));return e.status=R,wt(e,"update").then((function(){return e.status=I,e})).catch((function(t){throw C(t,e,F)}))}))));var e})}));var l,f,h=c.then((function(){return rt(u,!0)})),p=h.then((function(){return st(u,!0)})),v=new Promise((function(t,e){l=t,f=e}));return i={mount:function(){return ht(Promise.resolve().then((function(){if(u.status!==D)throw Error(k(13,!1,o,u.status));return n.parcels[r]=u,st(u)})))},unmount:function(){return ht(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:ht(c),bootstrapPromise:ht(h),mountPromise:ht(p),unmountPromise:ht(v)}}function ht(t){return t.then((function(){return null}))}function pt(t){var e=J(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(k(40,!1),e,n));var r=X({},n,{name:e,mountParcel:ft.bind(t),singleSpa:P});return K(t)&&(r.unmountSelf=t.unmountThisParcel),r}var vt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function dt(t,e,n){if("number"!=typeof t||t<=0)throw Error(k(16,!1));vt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function gt(t,e,n){if("number"!=typeof t||t<=0)throw Error(k(17,!1));vt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function mt(t,e,n){if("number"!=typeof t||t<=0)throw Error(k(18,!1));vt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function yt(t,e,n){if("number"!=typeof t||t<=0)throw Error(k(19,!1));vt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function wt(t,e){var n=t.timeouts[e],r=n.warningMillis,o=Q(t);return new Promise((function(i,a){var s=!1,u=!1;t[e](pt(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var c=k(31,!1,e,o,J(t),n.millis);function l(t){if(!s)if(!0===t)u=!0,n.dieOnTimeout?a(Error(c)):console.error(c);else if(!u){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return l(e+1)}),r)}}}))}function bt(t){var e={};for(var n in vt)e[n]=X({},vt[n],t&&t[n]||{});return e}function St(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==L&&t.status!==G?t:(t.status=V,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(pt(t));if(!et(r))throw n=!0,Error(k(33,!1,J(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!=typeof(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!Z(e.bootstrap)&&(r=35),Z(e.mount)||(r=36),Z(e.unmount)||(r=37);var o=Q(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(k(r,!1,o,J(t),i),e),x(void 0,t,F),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=X({},t.devtools.overlays,e.devtools.overlays)),t.status=H,t.bootstrap=tt(e,"bootstrap"),t.mount=tt(e,"mount"),t.unmount=tt(e,"unmount"),t.unload=tt(e,"unload"),t.timeouts=bt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=F:(r=G,t.loadErrorTime=(new Date).getTime()),x(e,t,r),t})));var e,n}))}var Et,Ot="undefined"!=typeof window,At={hashchange:[],popstate:[]},Pt=["hashchange","popstate"];function Mt(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(k(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=Ct(window.location.href),r=Ct(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function _t(t){var e=this;if(t){var n=t[0].type;Pt.indexOf(n)>=0&&At[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function Tt(){oe([],arguments)}function xt(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Et&&n===o||window.dispatchEvent(function(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}(window.history.state,e)),r}}var jt=null,zt=!1;function kt(t){if(zt)throw Error(k(43,!1));Et=!t||!t.hasOwnProperty("urlRerouteOnly")||t.urlRerouteOnly,zt=!0,jt=window.history.replaceState,window.addEventListener("hashchange",Tt),window.addEventListener("popstate",Tt);var e=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Pt.indexOf(t)>=0)||Y(At[t],(function(t){return t===n})))return e.apply(this,arguments);At[t].push(n)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&Pt.indexOf(t)>=0))return n.apply(this,arguments);At[t]=At[t].filter((function(t){return t!==e}))},window.history.pushState=xt(window.history.pushState,"pushState"),window.history.replaceState=xt(jt,"replaceState")}function Ct(t){var e=document.createElement("a");return e.href=t,e}Ot&&(window.singleSpaNavigate?console.warn(k(41,!1)):window.singleSpaNavigate=Mt);var Lt=!1;function Vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Lt){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Ht.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Ht.call(this,n,window.removeEventListener,t,e,arguments)},Lt=!0}}function Ht(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){Pt.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var Nt={};function Dt(t){return Promise.resolve().then((function(){var e=Nt[J(t)];if(!e)return t;if(t.status===L)return Ut(t,e),t;if(t.status===W)return e.promise.then((function(){return t}));if(t.status!==D&&t.status!==G)return t;var n=t.status===G?Promise.resolve():wt(t,"unload");return t.status=W,n.then((function(){return Ut(t,e),t})).catch((function(n){return function(t,e,n){delete Nt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,x(n,t,F),e.reject(n)}(t,e,n),t}))}))}function Ut(t,e){delete Nt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=L,e.resolve()}function It(t,e,n,r){Nt[J(t)]={app:t,resolve:n,reject:r},Object.defineProperty(Nt[J(t)],"promise",{get:e})}function Rt(t){return Nt[t]}var Bt=[];function Wt(){return Bt.filter(q).map(J)}function Gt(){return Bt.map(J)}function Ft(t){var e=Y(Bt,(function(e){return J(e)===t}));return e?e.status:null}var qt=!1;function $t(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"==typeof t?(function(t){if(Array.isArray(t)||null===t)throw Error(k(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(k(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(k(20,!1));if("object"!=typeof t.app&&"function"!=typeof t.app)throw Error(k(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(k(24,!1));if(!Yt(t.customProps))throw Error(k(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(k(20,!1));if(!e)throw Error(k(23,!1));if("function"!=typeof n)throw Error(k(24,!1));if(!Yt(r))throw Error(k(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:Zt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(ue()||qt||(qt=!0,setTimeout((function(){ue()||console.warn(k(1,!1))}),5e3)),-1!==Gt().indexOf(o.name))throw Error(k(21,!1,o.name));Bt.push(X({loadErrorTime:null,status:L,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Ot&&(Vt(),oe())}function Jt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Bt.filter((function(e){return e.activeWhen(t)})).map(J)}function Kt(t){if(0===Bt.filter((function(e){return J(e)===t})).length)throw Error(k(25,!1,t));return(Ot?Qt(t,{waitForUnmount:!1}):Promise.resolve()).then((function(){var e=Bt.map(J).indexOf(t);Bt.splice(e,1)}))}function Qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(k(26,!1));var n=Y(Bt,(function(e){return J(e)===t}));if(!n)throw Error(k(27,!1,t));var r,o=Rt(J(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){It(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,Xt(n,o.resolve,o.reject)):r=new Promise((function(t,e){It(n,(function(){return r}),t,e),Xt(n,t,e)})),r}function Xt(t,e,n){Promise.resolve().then((function(){if(Y(Jt(),(function(e){return e===J(t)})))return re()})).then((function(){return ot(t).then(Dt).then((function(){e(),setTimeout((function(){oe()}))}))})).catch(n)}function Yt(t){return!t||"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)}function Zt(t,e){var n=function(t,e){var n=function(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var s=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(s,"$"):"".concat(i,"(/").concat(s,")?(#.*)?$")}o=!o,r=n},r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a=0;a<t.length;a++){var s=t[a];(!o&&":"===s||o&&"/"===s)&&n(a)}return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var te=!1,ee=[],ne=Ot&&window.location.href;function re(){return oe()}function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e="function"==typeof(null==t?void 0:t.then)?t:Promise.resolve(t);v.push(e.catch((function(t){return console.warn(Error(k(42,!1))),console.warn(t),!1})))},o=function(){var e=Wt();t.forEach((function(t){return t.resolve(e)}));try{s(0===u.length?"no-app-change":"app-change",a()),s("routing-event",a())}catch(t){setTimeout((function(){throw t}))}if(te=!1,ee.length>0){var n=ee;ee=[],oe(n)}return e},i=function(){n||(t.forEach((function(t){_t(t.eventArguments)})),_t(e))},a=function(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,o={},i=(O(t={},I,[]),O(t,D,[]),O(t,L,[]),O(t,F,[]),t);n?(h.concat(p).forEach((function(t,e){s(t,I)})),l.forEach((function(t){s(t,L)})),f.forEach((function(t){s(t,D)}))):u.forEach((function(t){s(t)}));var a={detail:{newAppStatuses:o,appsByNewStatus:i,totalAppChanges:u.length,originalEvent:null==e?void 0:e[0],oldUrl:d,newUrl:g}};return r&&X(a.detail,r),a;function s(t,e){var n=J(t);e=e||Ft(n),o[n]=e,(i[e]=i[e]||[]).push(n)}},s=function(t,e){n||window.dispatchEvent(new _("single-spa:".concat(t),e))};if(te)return new Promise((function(t,n){ee.push({resolve:t,reject:n,eventArguments:e})}));var u,c=function(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Bt.forEach((function(i){var a=i.status!==F&&$(i);switch(i.status){case G:a&&o-i.loadErrorTime>=200&&n.push(i);break;case L:case V:a&&n.push(i);break;case H:case D:!a&&Rt(J(i))?t.push(i):a&&r.push(i);break;case I:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}(),l=c.appsToUnload,f=c.appsToUnmount,h=c.appsToLoad,p=c.appsToMount,v=[],d=ne,g=ne=window.location.href;return ue()?(te=!0,u=l.concat(h,f,p),Promise.resolve().then((function(){return s(0===u.length?"before-no-app-change":"before-app-change",a(!0)),s("before-routing-event",a(!0,{cancelNavigation:r})),Promise.all(v).then((function(n){if(n.some((function(t){return t})))return jt.call(window.history,history.state,"",d.substring(location.origin.length)),ne=location.href,te=!1,oe(t,e,!0);var r=l.map(Dt),u=f.map(ot).map((function(t){return t.then(Dt)})).concat(r),c=Promise.all(u);c.then((function(){s("before-mount-routing-event",a(!0))}),(function(t){throw t}));var v=h.map((function(t){return St(t).then((function(t){return ie(t,c)}))})),g=p.filter((function(t){return h.indexOf(t)<0})).map((function(t){return ie(t,c)}));return c.catch((function(t){throw i(),t})).then((function(){return i(),Promise.all(v.concat(g)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(o).then((function(){}),(function(t){throw t}))}))}))}))):(u=h,Promise.resolve().then((function(){var t=h.map(St);return Promise.all(t).then(i).then((function(){return[]})).catch((function(t){throw i(),t})).finally((function(){}))})))}function ie(t,e){return $(t)?rt(t).then((function(t){return e.then((function(){return $(t)?st(t):t}))})):e.then((function(){return t}))}var ae=!1;function se(t){ae=!0,Ot&&(kt(t),oe())}function ue(){return ae}var ce={getRawAppData:function(){return function(t){if(Array.isArray(t))return E(t)}(t=Bt)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t},reroute:oe,NOT_LOADED:L,toLoadPromise:St,toBootstrapPromise:rt,unregisterApplication:Kt,getProfilerData:function(){return nt}};Ot&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=ce);var le=h(685);h(45),(0,le.createGlobalStore)("modalRegistry",{modals:{}}),h(254),(0,le.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,h(740),h(513),h(901),(0,le.createGlobalStore)("workspaceRegistrations",{workspaces:{}}),new Set;(0,le.createGlobalStore)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal"});var fe=null;try{fe=require("react").createContext()}catch(M){}function he(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?he(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ge(t,e){return(ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function me(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ge(t,e)}(r,c.Component);var e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=de(t);if(e){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return me(t)}(this,n)}}(r);function r(t){var e;if(function(t,e){if(n=t,!(null!=(r=e)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r}(this,r),ve(me(e=n.call(this,t)),"handleRef",(function(t){e.el=t})),ve(me(e),"addThingToDo",(function(t,n){e.state.hasError&&"unmount"!==t||(e.nextThingToDo=(e.nextThingToDo||Promise.resolve()).then((function(){if(!e.unmounted||"unmount"===t)return n.apply(void 0,arguments)})).catch((function(n){throw e.nextThingToDo=Promise.resolve(),e.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(t,"', parcel threw an error: ").concat(n.message)),e.props.handleError?e.props.handleError(n):setTimeout((function(){throw n})),n})))})),ve(me(e),"getParcelProps",(function(){var t=pe(pe({},e.props),{},{domElement:e.el});return delete t.mountParcel,delete t.config,delete t.wrapWith,delete t.wrapStyle,delete t.appendTo,delete t.handleError,delete t.parcelDidMount,t})),e.state={hasError:!1},!t.config)throw new Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return e}return(e=[{key:"componentDidMount",value:function(){var t=this;this.addThingToDo("mount",(function(){var e,n=t.props.mountParcel||t.mountParcel;if(!n)throw new Error("\n\t\t\t\t <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n\t\t\t\t If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop\t\n\t\t\t\t");return t.el?e=t.el:(t.createdDomElement=e=document.createElement(t.props.wrapWith),Object.keys(t.props.wrapStyle).forEach((function(n){e.style[n]=t.props.wrapStyle[n]})),t.props.appendTo.appendChild(e)),t.parcel=n(t.props.config,pe({domElement:e},t.getParcelProps())),t.parcel.mountPromise.then(t.props.parcelDidMount),t.parcel.mountPromise}))}},{key:"componentDidUpdate",value:function(){var t=this;this.addThingToDo("update",(function(){if(t.parcel&&t.parcel.update)return t.parcel.update(t.getParcelProps())}))}},{key:"componentWillUnmount",value:function(){var t=this;this.addThingToDo("unmount",(function(){if(t.parcel&&"MOUNTED"===t.parcel.getStatus())return t.parcel.unmount()})),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var t=this;if(this.props.appendTo)return fe&&fe.Consumer?c.createElement(fe.Consumer,null,(function(e){return t.mountParcel=e?e.mountParcel:null,null})):null;var e=fe&&fe.Consumer?c.createElement(fe.Consumer,null,(function(e){return t.mountParcel=e?e.mountParcel:null,null})):void 0;return c.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},e)}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(r.prototype,e),r}();ve(ye,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),(0,le.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase}),h(688),h(353);var we=h(921);const be=()=>{},Se=be(),Ee=Object,Oe=t=>t===Se,Ae=t=>"function"==typeof t,Pe=(t,e)=>({...t,...e}),Me=new WeakMap;let _e=0;const Te=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let o,i;if(Ee(t)!==t||r||n==RegExp)o=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=Me.get(t),o)return o;if(o=++_e+"~",Me.set(t,o),n==Array){for(o="@",i=0;i<t.length;i++)o+=Te(t[i])+",";Me.set(t,o)}if(n==Ee){o="#";const e=Ee.keys(t).sort();for(;!Oe(i=e.pop());)Oe(t[i])||(o+=i+":"+Te(t[i])+",");Me.set(t,o)}}return o},xe=new WeakMap,je={},ze={},ke="undefined",Ce=typeof window!=ke,Le=typeof document!=ke,Ve=(t,e)=>{const n=xe.get(t);return[()=>!Oe(e)&&t.get(e)||je,r=>{if(!Oe(e)){const o=t.get(e);e in ze||(ze[e]=o),n[5](e,Pe(o,r),o||je)}},n[6],()=>!Oe(e)&&e in ze?ze[e]:!Oe(e)&&t.get(e)||je]};let He=!0;const[Ne,De]=Ce&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[be,be],Ue={isOnline:()=>He,isVisible:()=>{const t=Le&&document.visibilityState;return Oe(t)||"hidden"!==t}},Ie={initFocus:t=>(Le&&document.addEventListener("visibilitychange",t),Ne("focus",t),()=>{Le&&document.removeEventListener("visibilitychange",t),De("focus",t)}),initReconnect:t=>{const e=()=>{He=!0,t()},n=()=>{He=!1};return Ne("online",e),Ne("offline",n),()=>{De("online",e),De("offline",n)}}},Re=!c.default.useId,Be=!Ce||"Deno"in window,We=Be?c.useEffect:c.useLayoutEffect,Ge="undefined"!=typeof navigator&&navigator.connection,Fe=!Be&&Ge&&(["slow-2g","2g"].includes(Ge.effectiveType)||Ge.saveData),qe=t=>{if(Ae(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?Te(t):"",e]};let $e=0;const Je=()=>++$e;async function Ke(...t){const[e,n,r,o]=t,i=Pe({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let u=i.optimisticData;const c=!1!==i.revalidate,l=i.throwOnError;if(Ae(n)){const t=n,r=[],o=e.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&t(e.get(n)._k)&&r.push(n);return Promise.all(r.map(f))}return f(n);async function f(n){const[o]=qe(n);if(!o)return;const[i,f]=Ve(e,o),[h,p,v,d]=xe.get(e),g=()=>{const t=h[o];return c&&(delete v[o],delete d[o],t&&t[0])?t[0](2).then((()=>i().data)):i().data};if(t.length<3)return g();let m,y=r;const w=Je();p[o]=[w,0];const b=!Oe(u),S=i(),E=S.data,O=S._c,A=Oe(O)?E:O;if(b&&(u=Ae(u)?u(A,E):u,f({data:u,_c:A})),Ae(y))try{y=y(A)}catch(t){m=t}if(y&&(t=>Ae(t.then))(y)){if(y=await y.catch((t=>{m=t})),w!==p[o][0]){if(m)throw m;return y}m&&b&&(t=>"function"==typeof s?s(t):!1!==s)(m)&&(a=!0,f({data:A,_c:Se}))}if(a&&!m)if(Ae(a)){const t=a(y,A);f({data:t,error:Se,_c:Se})}else f({data:y,error:Se,_c:Se});if(p[o][1]=Je(),Promise.resolve(g()).then((()=>{f({_c:Se})})),!m)return y;if(l)throw m}}const Qe=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},Xe=(t,e)=>{if(!xe.has(t)){const n=Pe(Ie,e),r={},o=Ke.bind(Se,t);let i=be;const a={},s=(t,e)=>{const n=a[t]||[];return a[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},u=(e,n,r)=>{t.set(e,n);const o=a[e];if(o)for(const t of o)t(n,r)},c=()=>{if(!xe.has(t)&&(xe.set(t,[r,{},{},{},o,u,s]),!Be)){const e=n.initFocus(setTimeout.bind(Se,Qe.bind(Se,r,0))),o=n.initReconnect(setTimeout.bind(Se,Qe.bind(Se,r,1)));i=()=>{e&&e(),o&&o(),xe.delete(t)}}};return c(),[t,o,c,i]}return[t,xe.get(t)[4]]},[Ye,Ze]=Xe(new Map),tn=Pe({onLoadingSlow:be,onSuccess:be,onError:be,onErrorRetry:(t,e,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Oe(i)&&a>i||setTimeout(r,s,o)},onDiscarded:be,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Fe?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Fe?5e3:3e3,compare:(t,e)=>Te(t)==Te(e),isPaused:()=>!1,cache:Ye,mutate:Ze,fallback:{}},Ue),en=(t,e)=>{const n=Pe(t,e);if(e){const{use:r,fallback:o}=t,{use:i,fallback:a}=e;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Pe(o,a))}return n},nn=(0,c.createContext)({}),rn=Ce&&window.__SWR_DEVTOOLS_USE__,on=rn?window.__SWR_DEVTOOLS_USE__:[],an=on.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const[r]=qe(e),[,,,o]=xe.get(Ye);if(r.startsWith("$inf$"))return n(...t);const i=o[r];return Oe(i)?n(...t):(delete o[r],i)}),r)));rn&&(window.__SWR_DEVTOOLS_REACT__=c.default);const sn=c.default.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),un={dedupe:!0};Ee.defineProperty((t=>{const{value:e}=t,n=(0,c.useContext)(nn),r=Ae(e),o=(0,c.useMemo)((()=>r?e(n):e),[r,n,e]),i=(0,c.useMemo)((()=>r?o:en(n,o)),[r,n,o]),a=o&&o.provider,s=(0,c.useRef)(Se);a&&!s.current&&(s.current=Xe(a(i.cache||Ye),o));const u=s.current;return u&&(i.cache=u[0],i.mutate=u[1]),We((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,c.createElement)(nn.Provider,Pe(t,{value:i}))}),"defaultValue",{value:tn}),cn=(t,e,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:f,refreshWhenOffline:h,keepPreviousData:p}=n,[v,d,g,m]=xe.get(r),[y,w]=qe(t),b=(0,c.useRef)(!1),S=(0,c.useRef)(!1),E=(0,c.useRef)(y),O=(0,c.useRef)(e),A=(0,c.useRef)(n),P=()=>A.current,M=()=>P().isVisible()&&P().isOnline(),[_,T,x,j]=Ve(r,y),z=(0,c.useRef)({}).current,k=Oe(a)?n.fallback[y]:a,C=(t,e)=>{for(const n in z){const r=n;if("data"===r){if(!o(t[r],e[r])){if(!Oe(t[r]))return!1;if(!o(B,e[r]))return!1}}else if(e[r]!==t[r])return!1}return!0},L=(0,c.useMemo)((()=>{const t=!!y&&!!e&&(Oe(s)?!P().isPaused()&&!i&&(!!Oe(u)||u):s),n=e=>{const n=Pe(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n},r=_(),o=j(),a=n(r),c=r===o?a:n(o);let l=a;return[()=>{const t=n(_());return C(t,l)?(l.data=t.data,l.isLoading=t.isLoading,l.isValidating=t.isValidating,l.error=t.error,l):(l=t,t)},()=>c]}),[r,y]),V=(0,we.useSyncExternalStore)((0,c.useCallback)((t=>x(y,((e,n)=>{C(n,e)||t()}))),[r,y]),L[0],L[1]),H=!b.current,N=v[y]&&v[y].length>0,D=V.data,U=Oe(D)?k:D,I=V.error,R=(0,c.useRef)(U),B=p?Oe(D)?R.current:D:U,W=!(N&&!Oe(I))&&(H&&!Oe(s)?s:!P().isPaused()&&(i?!Oe(U)&&u:Oe(U)||u)),G=!!(y&&e&&H&&W),F=Oe(V.isValidating)?G:V.isValidating,q=Oe(V.isLoading)?G:V.isLoading,$=(0,c.useCallback)((async t=>{const e=O.current;if(!y||!e||S.current||P().isPaused())return!1;let r,i,a=!0;const s=t||{},u=!g[y]||!s.dedupe,c=()=>Re?!S.current&&y===E.current&&b.current:y===E.current,l={isValidating:!1,isLoading:!1},f=()=>{T(l)},h=()=>{const t=g[y];t&&t[1]===i&&delete g[y]},p={isValidating:!0};Oe(_().data)&&(p.isLoading=!0);try{if(u&&(T(p),n.loadingTimeout&&Oe(_().data)&&setTimeout((()=>{a&&c()&&P().onLoadingSlow(y,n)}),n.loadingTimeout),g[y]=[e(w),Je()]),[r,i]=g[y],r=await r,u&&setTimeout(h,n.dedupingInterval),!g[y]||g[y][1]!==i)return u&&c()&&P().onDiscarded(y),!1;l.error=Se;const t=d[y];if(!Oe(t)&&(i<=t[0]||i<=t[1]||0===t[1]))return f(),u&&c()&&P().onDiscarded(y),!1;const s=_().data;l.data=o(s,r)?s:r,u&&c()&&P().onSuccess(r,y,n)}catch(t){h();const e=P(),{shouldRetryOnError:n}=e;e.isPaused()||(l.error=t,u&&c()&&(e.onError(t,y,e),(!0===n||Ae(n)&&n(t))&&M()&&e.onErrorRetry(t,y,e,(t=>{const e=v[y];e&&e[0]&&e[0](3,t)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0}),[y,r]),J=(0,c.useCallback)(((...t)=>Ke(r,E.current,...t)),[]);if(We((()=>{O.current=e,A.current=n,Oe(D)||(R.current=D)})),We((()=>{if(!y)return;const t=$.bind(Se,un);let e=0;const n=((t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}})(y,v,((n,r={})=>{if(0==n){const n=Date.now();P().revalidateOnFocus&&n>e&&M()&&(e=n+P().focusThrottleInterval,t())}else if(1==n)P().revalidateOnReconnect&&M()&&t();else{if(2==n)return $();if(3==n)return $(r)}}));return S.current=!1,E.current=y,b.current=!0,T({_k:w}),W&&(Oe(U)||Be?t():(t=>{Ce&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(t):setTimeout(t,1)})(t)),()=>{S.current=!0,n()}}),[y]),We((()=>{let t;function e(){const e=Ae(l)?l(_().data):l;e&&-1!==t&&(t=setTimeout(n,e))}function n(){_().error||!f&&!P().isVisible()||!h&&!P().isOnline()?e():$(un).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[l,f,h,y]),(0,c.useDebugValue)(B),i&&Oe(U)&&y){if(!Re&&Be)throw new Error("Fallback data is required when using suspense in SSR.");O.current=e,A.current=n,S.current=!1;const t=m[y];if(!Oe(t)){const e=J(t);sn(e)}if(!Oe(I))throw I;{const t=$(un);Oe(B)||(t.status="fulfilled",t.value=!0),sn(t)}}return{mutate:J,get data(){return z.data=!0,B},get error(){return z.error=!0,I},get isValidating(){return z.isValidating=!0,F},get isLoading(){return z.isLoading=!0,q}}};var cn,ln;h(641),(0,t.defineConfigSchema)("@openmrs/esm-styleguide",u),ln=function(t,e){document.documentElement.style.setProperty(t,e)},(0,t.getConfigStore)("@openmrs/esm-styleguide").subscribe((function(t){t.loaded&&t.config&&(ln("--brand-01",t.config["Brand color #1"]),ln("--brand-02",t.config["Brand color #2"]),ln("--brand-03",t.config["Brand color #3"]))})),a("omrs-logo-full-color",e),a("omrs-logo-full-mono",e),a("omrs-logo-full-grey",e),a("omrs-logo-partial-color",n),a("omrs-logo-partial-mono",n),a("omrs-logo-partial-grey",n),a("omrs-logo-icon-color",r),a("omrs-logo-icon-mono",r),a("omrs-logo-icon-grey",r),a("omrs-logo-white",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-white)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.647 8.116l.02-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968zM79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-grey)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672zM79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-white)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037L334.018 79h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45z" clip-rule="evenodd"/></svg>'),a("omrs-icon-activity",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6 14.5a.5.5 0 0 1-.46-.31L3.165 8.5H1v-1h2.5a.5.5 0 0 1 .46.31L6 12.64l4.03-10.815a.5.5 0 0 1 .47-.325.5.5 0 0 1 .465.34L12.86 7.5H15v1h-2.5a.5.5 0 0 1-.475-.34L10.5 3.5 6.47 14.175A.5.5 0 0 1 6 14.5"/></svg>'),a("omrs-icon-add",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8.5 7.5V4h-1v3.5H4v1h3.5V12h1V8.5H12v-1z"/></svg>'),a("omrs-icon-arrow-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.295 8.295 8.5 12.085V2h-1v10.085l-3.795-3.79L3 9l5 5 5-5z"/></svg>'),a("omrs-icon-arrow-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m7 13 .705-.705L3.915 8.5H14v-1H3.915l3.79-3.795L7 3 2 8z"/></svg>'),a("omrs-icon-arrow-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m9 3-.715.696 3.79 3.804H2v1h10.075l-3.79 3.787L9 13l5-5z"/></svg>'),a("omrs-icon-arrow-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 2 3 7l.705.705L7.5 3.915V14h1V3.915l3.795 3.79L13 7z"/></svg>'),a("omrs-icon-calendar-heat-map",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 2h-2V1h-1v1H6V1H5v1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1M3 3h2v1h1V3h4v1h1V3h2v2H3zm0 3h2.5v3H3zm6.5 7h-3v-3h3zm0-4h-3V6h3zm1 4v-3H13v3z"/></svg>'),a("omrs-icon-calendar",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 2h-2V1h-1v1H6V1H5v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v1h1V3h4v1h1V3h2z"/></svg>'),a("omrs-icon-caret-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 6-4 5-4-5z"/></svg>'),a("omrs-icon-caret-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 12 5 8l5-4z"/></svg>'),a("omrs-icon-caret-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m6 4 5 4-5 4z"/></svg>'),a("omrs-icon-caret-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m4 10 4-5 4 5z"/></svg>'),a("omrs-icon-chart-average",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11.5 12c-1.8 0-2.515-2.088-3.206-4.107C7.638 5.979 6.96 4 5.5 4a1.72 1.72 0 0 0-1.527 1.16l-.947-.318C3.05 4.767 3.66 3 5.5 3c2.175 0 3.006 2.427 3.74 4.569C9.844 9.333 10.415 11 11.5 11a1.72 1.72 0 0 0 1.527-1.16l.947.318C13.95 10.233 13.34 12 11.5 12"/><path d="M2 14V8.5h1v-1H2V1H1v13a1 1 0 0 0 1 1h13v-1z"/><path d="M5 7.5H4v1h1zM7 7.5H6v1h1zM11 7.5h-1v1h1zM13 7.5h-1v1h1zM15 7.5h-1v1h1z"/></svg>'),a("omrs-icon-chemistry",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.616 11.81 10 6.836V2h1V1H5v1h1v4.837L2.384 11.81A2.009 2.009 0 0 0 4.01 15h7.982a2.01 2.01 0 0 0 1.625-3.19M7 7.162V2h2v5.163L10.336 9H5.664zM11.99 14H4.01a1.01 1.01 0 0 1-.817-1.603L4.936 10h6.128l1.743 2.397A1.011 1.011 0 0 1 11.991 14"/></svg>'),a("omrs-icon-chevron-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 11 3 6l.7-.7L8 9.6l4.3-4.3.7.7z"/></svg>'),a("omrs-icon-chevron-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m5 8 5-5 .7.7L6.4 8l4.3 4.3-.7.7z"/></svg>'),a("omrs-icon-chevron-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m11 8-5 5-.7-.7L9.6 8 5.3 3.7 6 3z"/></svg>'),a("omrs-icon-chevron-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m8 5 5 5-.7.7L8 6.4l-4.3 4.3L3 10z"/></svg>'),a("omrs-icon-close",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z"/></svg>'),a("omrs-icon-close-filled",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>'),a("omrs-icon-close-outline",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m0 13c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6"/><path d="M10.7 11.5 8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>'),a("omrs-icon-document",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12.85 4.65-3.5-3.5C9.25 1.05 9.15 1 9 1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V5c0-.15-.05-.25-.15-.35M9 2.2 11.8 5H9zM12 14H4V2h4v3c0 .55.45 1 1 1h3z"/><path d="M11 11H5v1h6zM11 8H5v1h6z"/></svg>'),a("omrs-icon-document-attachment",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 15H5.5a1 1 0 0 1-1-1v-3h1v3H13V3H8.5V2H13a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1"/><path d="M12 5H8.5v1H12zM12 7.5H8v1h4zM12 10H7.5v1H12zM4.5 9.5A2.503 2.503 0 0 1 2 7V1.5h1V7a1.5 1.5 0 0 0 3 0V2.5a.5.5 0 1 0-1 0v5H4v-5a1.5 1.5 0 0 1 3 0V7a2.503 2.503 0 0 1-2.5 2.5"/></svg>'),a("omrs-icon-download",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 12v2H3v-2H2v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2zM13 7l-.705-.705-3.795 3.79V1h-1v9.085l-3.795-3.79L3 7l5 5z"/></svg>'),a("omrs-icon-edit",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 13H1v1h14zM12.7 4.5c.4-.4.4-1 0-1.4l-1.8-1.8c-.4-.4-1-.4-1.4 0L2 8.8V12h3.2zM10.2 2 12 3.8l-1.5 1.5-1.8-1.8zM3 11V9.2l5-5L9.8 6l-5 5z"/></svg>'),a("omrs-icon-event-schedule",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10.5 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8m0-7a3 3 0 1 0 0 6 3 3 0 0 0 0-6"/><path d="M11.295 12.5 10 11.205V9h1v1.795l1 1z"/><path d="M14 3a1 1 0 0 0-1-1h-2V1h-1v1H6V1H5v1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2v-1H3V3h2v1h1V3h4v1h1V3h2v3h1z"/></svg>'),a("omrs-icon-events",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 7h-1v1h1a1.5 1.5 0 0 1 1.5 1.5v2h1v-2A2.503 2.503 0 0 0 13 7M12 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M11.5 15h-1v-1A1.5 1.5 0 0 0 9 12.5H7A1.5 1.5 0 0 0 5.5 14v1h-1v-1A2.503 2.503 0 0 1 7 11.5h2a2.503 2.503 0 0 1 2.5 2.5zM8 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4 7H3A2.503 2.503 0 0 0 .5 9.5v2h1v-2A1.5 1.5 0 0 1 3 8h1zM4 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></svg>'),a("omrs-icon-group",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15.5 15h-1v-1.5A1.5 1.5 0 0 0 13 12h-2a1.5 1.5 0 0 0-1.5 1.5V15h-1v-1.5A2.5 2.5 0 0 1 11 11h2a2.5 2.5 0 0 1 2.5 2.5zM12 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M7.5 11h-1V9.5A1.5 1.5 0 0 0 5 8H3a1.5 1.5 0 0 0-1.5 1.5V11h-1V9.5A2.5 2.5 0 0 1 3 7h2a2.5 2.5 0 0 1 2.5 2.5zM4 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></svg>'),a("omrs-icon-group-access",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M4 9.5H3v-1A1.5 1.5 0 0 1 4.5 7H7v1H4.5a.5.5 0 0 0-.5.5zM6 6.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M10 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M13 13h-1v-1a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1H7v-1a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 13 12z"/><path d="M4 15H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h2v1H2v12h2zM14 15h-2v-1h2V2h-2V1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1"/></svg>'),a("omrs-icon-hospital-bed",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.5 8h-4a1 1 0 0 0-1 1v3H2V7H1v8h1v-2h12v2h1v-4.5A2.503 2.503 0 0 0 12.5 8m1.5 4H8.5V9h4a1.5 1.5 0 0 1 1.5 1.5z"/><path d="M4.75 8.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m0-1a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5M10.5 3h-2V1h-1v2h-2v1h2v2h1V4h2z"/></svg>'),a("omrs-icon-image-medical",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 3v10H3V3zm0-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1"/><path d="M11 8V7H8.5V6H10V5H8.5V4h-1v1H6v1h1.5v1H5v1h2.5v1H5v1h2.5v1H6v1h4v-1H8.5v-1H11V9H8.5V8z"/></svg>'),a("omrs-icon-inventory-management",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11.5 12h-2v2h2zM15 12h-2v2h2zM11.5 8.5h-2v2h2zM15 8.5h-2v2h2z"/><path d="M8.5 12H2V5h12v2.5h1V5a1 1 0 0 0-1-1h-3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h6.5zM6 2h4v2H6z"/></svg>'),a("omrs-icon-list-checked",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 4H8v1h7zM3 5.295 1.705 4 1 4.705l2 2 4-4L6.295 2zM15 11H8v1h7zM3 12.295 1.705 11 1 11.705l2 2 4-4L6.295 9z"/></svg>'),a("omrs-icon-location",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"/><path d="m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"/></svg>'),a("omrs-icon-maximize",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 1v1h3.293L9 6.291 9.707 7 14 2.707V6h1V1zM7 9.708 6.296 9 2 13.293V10H1v5h5v-1H2.707z"/></svg>'),a("omrs-icon-medication",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12 1H4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1M5 7h1.5v5H5zm6 7H5v-1h2.5V6H5V5h6zM4 4V2h8v2z"/></svg>'),a("omrs-icon-message-queue",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14 14H2a1 1 0 0 1-1-1v-2.5h1V13h12v-2.5h1V13a1 1 0 0 1-1 1"/><path d="M12.5 10.5h-9v1h9zM12.5 8h-9v1h9zM12.5 5.5h-9v1h9zM12.5 3h-9v1h9z"/></svg>'),a("omrs-icon-microscope",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.697 12a3.94 3.94 0 0 0-.835-4.284 1.96 1.96 0 0 0-.542-2.207l1.388-1.388a1 1 0 0 0 0-1.415l-1.415-1.414a1 1 0 0 0-1.414 0L3.293 7.88a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0L8.51 8.319a1.966 1.966 0 0 0 2.757.217A2.97 2.97 0 0 1 11.589 12H8v2H2v1h12v-3zm-7.283-2L4 8.586l.94-.94L6.353 9.06zM8 7q0 .19.038.376l-.977.977L5.646 6.94 10.586 2l1.415 1.414-1.625 1.625A1.99 1.99 0 0 0 8 7m2 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2m3 6H9v-1h4z"/></svg>'),a("omrs-icon-money",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 11H1v1h14zM15 13H1v1h14zM12 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M4 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path d="M14 10H2a1.003 1.003 0 0 1-1-1V3a1.003 1.003 0 0 1 1-1h12a1.003 1.003 0 0 1 1 1v6a1 1 0 0 1-1 1m0-7H2v6h12z"/></svg>'),a("omrs-icon-movement",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 10-.705.705 1.79 1.795H5a2 2 0 1 1 0-4h6a3 3 0 0 0 0-6H2.915L4.705.705 4 0 1 3l3 3 .705-.705L2.915 3.5H11a2 2 0 0 1 0 4H5a3 3 0 1 0 0 6h8.085l-1.79 1.795L12 16l3-3z"/></svg>'),a("omrs-icon-overflow-menu--horizontal",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-overflow-menu--vertical",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-pedestrian-family",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 15H8.5a1 1 0 0 1-1-1v-2.5h1V14H10v-2.5h1v-2a.5.5 0 0 0-.5-.5H6.14l-1-3H2a.5.5 0 0 0-.5.5v3h1V14h2v-3.5h1V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3.5a1 1 0 0 1-1-1v-3A1.5 1.5 0 0 1 2 5h3.14a1 1 0 0 1 .948.684L6.86 8h3.64A1.5 1.5 0 0 1 12 9.5v2a1 1 0 0 1-1 1V14a1 1 0 0 1-1 1M14 15h-1V9.5h1.5v-3A.5.5 0 0 0 14 6h-2V5h2a1.5 1.5 0 0 1 1.5 1.5v3a1 1 0 0 1-1 1H14zM3.5 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M12.5 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path d="M9.25 7.5a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5m0-2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/></svg>'),a("omrs-icon-pen",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.654 3.053 15 1.707 14.293 1l-1.346 1.346L12.4 1.8a.967.967 0 0 0-1.4 0l-9 9V14h3.2l9-9a.967.967 0 0 0 0-1.4zM4.8 13H3v-1.8l8.7-8.7 1.8 1.8zM8.293 2 4.5 5.793l.707.707L9 2.707z"/></svg>'),a("omrs-icon-printer",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14 4.5h-1.5v-3h-9v3H2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.5v3h9v-3H14a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1m-9.5-2h7v2h-7zm7 11h-7v-5h7zm2.5-3h-1.5v-3h-9v3H2v-5h12z"/></svg>'),a("omrs-icon-renew",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6 5H3.39A5.5 5.5 0 0 1 13.5 8h1A6.5 6.5 0 0 0 3 3.84V2H2v4h4zM10 11h2.61A5.5 5.5 0 0 1 2.5 8h-1A6.5 6.5 0 0 0 13 12.16V14h1v-4h-4z"/></svg>'),a("omrs-icon-password",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10.5 1a4.5 4.5 0 0 0-4.306 5.806L1 12v3h3l5.194-5.194A4.5 4.5 0 1 0 10.5 1m0 8c-.344 0-.687-.051-1.016-.151l-.573-.174-2.015 2.014L6.207 10l-.707.707.69.69-.794.792-.689-.689-.707.707.69.69L3.585 14H2v-1.586L7.325 7.09l-.174-.573A3.5 3.5 0 1 1 10.5 9"/><path d="M11 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-reset",'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#161616" d="M9 14a6 6 0 1 0-6-6v3.1L1.2 9.3l-.7.7 3 3 3-3-.7-.7L4 11.1V8a5 5 0 1 1 5 5z"/></svg>'),a("omrs-icon-search",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m14.5 13.793-3.776-3.776a5.508 5.508 0 1 0-.707.707l3.776 3.776zM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"/></svg>'),a("omrs-icon-save",'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#161616" d="m13.855 4.645-2.5-2.5A.5.5 0 0 0 11 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a.5.5 0 0 0-.145-.355M6 3h4v2H6zm4 10H6V9h4zm1 0V9a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v4H3V3h2v2a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V3.205l2 2V13z"/></svg>'),a("omrs-icon-shopping-cart",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M5 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M14 3.5H2.91L2.5 1.4A.5.5 0 0 0 2 1H0v1h1.59l1.91 9.6a.5.5 0 0 0 .5.4h9v-1H4.41L4 9h9a.5.5 0 0 0 .5-.39l1-4.5a.5.5 0 0 0-.5-.61M12.6 8H3.81l-.7-3.5h10.265z"/></svg>'),a("omrs-icon-shopping-cart--arrow-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M5 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M2.49 1.402A.5.5 0 0 0 2 1H0v1h1.59l1.92 9.598A.5.5 0 0 0 4 12h9v-1H4.41l-.4-2H13a.5.5 0 0 0 .488-.392L14.622 3.5h-1.024L12.6 8H3.81z"/><path d="M10.793 3.293 9 5.086V1H8v4.086L6.207 3.293 5.5 4l3 3 3-3z"/></svg>'),a("omrs-icon-sticky-note-add",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14.375 1.25h-1.25v2.5h-2.5V5h2.5v2.5h1.25V5h2.5V3.75h-2.5z"/><path d="M9.375 2.5h-5a1.254 1.254 0 0 0-1.25 1.25v12.5a1.254 1.254 0 0 0 1.25 1.25h7.5a.57.57 0 0 0 .438-.188l4.374-4.375a.57.57 0 0 0 .188-.437V8.75h-1.25v2.5h-3.75a1.254 1.254 0 0 0-1.25 1.25v3.75h-6.25V3.75h5zm6 10-3.5 3.5v-3.5z"/></svg>'),a("omrs-icon-switcher",s),a("omrs-icon-switcher",s),a("omrs-icon-table-of-contents",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11 3H2v1h9zM11 6H2v1h9zM11 9H2v1h9zM11 12H2v1h9zM14 3h-1v1h1zM14 6h-1v1h1zM14 9h-1v1h1zM14 12h-1v1h1z"/></svg>'),a("omrs-icon-table",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14.5 2.5a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1zm-1 0v2h-11v-2zm0 11h-11v-2h11zm0-3h-11v-2h11zm0-3h-11v-2h11z"/></svg>'),a("omrs-icon-time",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"/><path d="M10.295 11 7.5 8.205V3.5h1v4.29l2.5 2.505z"/></svg>'),a("omrs-icon-tools",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6.05 1a4.9 4.9 0 0 0-2.7.8L6.55 5a1.05 1.05 0 0 1 .1 1.5 1.05 1.05 0 0 1-1.5-.1l-3.3-3.2A4.9 4.9 0 0 0 1 6.05a5.07 5.07 0 0 0 5.05 5.05c.438.002.874-.048 1.3-.15l3.35 3.35a2.51 2.51 0 1 0 3.55-3.55L10.9 7.4q.153-.641.15-1.3a5 5 0 0 0-5-5.1m4 5.05c0 .355-.051.709-.15 1.05l-.15.55.4.4 3.35 3.35a1.44 1.44 0 0 1 .45 1.05 1.36 1.36 0 0 1-.45 1.05 1.45 1.45 0 0 1-2.1 0l-3.35-3.35-.4-.4-.55.15c-.341.099-.695.15-1.05.15A4.14 4.14 0 0 1 3.2 8.9 3.82 3.82 0 0 1 2 6.05c0-.372.051-.742.15-1.1l2.2 2.2a2.07 2.07 0 0 0 2.95.1 2.07 2.07 0 0 0-.1-2.95L5 2.1c.323-.102.66-.153 1-.15A4.14 4.14 0 0 1 8.85 3.1a4.25 4.25 0 0 1 1.2 2.95"/></svg>'),a("omrs-icon-translate",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.925 14.5H15L12 7h-1.175l-3 7.5H8.9l.8-2h3.425zm-3.825-3 1.31-3.28 1.315 3.28zM9 3.5v-1H5.5V1h-1v1.5H1v1h5.37a7.36 7.36 0 0 1-1.595 3.09A6.8 6.8 0 0 1 3.63 4.5H2.58a8.2 8.2 0 0 0 1.5 2.79A8.4 8.4 0 0 1 1.5 9l.375.93A9.2 9.2 0 0 0 4.765 8a8.5 8.5 0 0 0 2.88 1.92L8 9a7.2 7.2 0 0 1-2.56-1.685A8.8 8.8 0 0 0 7.4 3.5z"/></svg>'),a("omrs-icon-trash-can",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M7 6H6v6h1zM10 6H9v6h1z"/><path d="M2 3v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zm2 11V4h8v10zM10 1H6v1h4z"/></svg>'),a("omrs-icon-tree-view--alt",'<svg xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M11.5 4.502h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-5v-.5a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-.5h2v10a1 1 0 0 0 1 1h2v.5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-2v-4.5h2v.5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-2v-4.5h2v.5a1 1 0 0 0 1 1m0-3h3v2h-3zm-7 2h-3v-2h3zm7 9h3v2h-3zm0-5.5h3v2h-3z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>'),a("omrs-icon-user-avatar",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/><path d="M8 1a7 7 0 1 0 7 7 7.01 7.01 0 0 0-7-7M5 13.188V12.5A1.5 1.5 0 0 1 6.5 11h3a1.5 1.5 0 0 1 1.5 1.5v.688a5.95 5.95 0 0 1-6 0m6.996-.725A2.5 2.5 0 0 0 9.5 10h-3a2.5 2.5 0 0 0-2.496 2.463 6 6 0 1 1 7.992 0"/></svg>'),a("omrs-icon-user-follow",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M16 7h-2V5h-1v2h-2v1h2v2h1V8h2zM6 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m0-1a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M11 15h-1v-2.5A2.5 2.5 0 0 0 7.5 10h-3A2.5 2.5 0 0 0 2 12.5V15H1v-2.5A3.5 3.5 0 0 1 4.5 9h3a3.5 3.5 0 0 1 3.5 3.5z"/></svg>'),a("omrs-icon-user-xray",'<svg xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M15.5 1.5h-7A.5.5 0 0 0 8 2v6.5a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5m-1.5 3h-1.5V6H14v1h-1.5v1h-1V7H10V6h1.5V4.5H10v-1h1.5v-1h1v1H14zM7.5 15h-1v-2A1.473 1.473 0 0 0 5 11.5H3A1.474 1.474 0 0 0 1.5 13v2h-1v-2A2.475 2.475 0 0 1 3 10.5h2A2.476 2.476 0 0 1 7.5 13zM4 5.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>'),a("omrs-icon-user",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m0-1a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M13 15h-1v-2.5A2.5 2.5 0 0 0 9.5 10h-3A2.5 2.5 0 0 0 4 12.5V15H3v-2.5A3.5 3.5 0 0 1 6.5 9h3a3.5 3.5 0 0 1 3.5 3.5z"/></svg>'),a("omrs-icon-view-off",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m2.62 11.255.715-.71A7 7 0 0 1 1.535 8C2.55 5.465 5.35 3.5 8 3.5a6.2 6.2 0 0 1 2 .36l.775-.78A7.4 7.4 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34 8 8 0 0 0 2.09 3.085"/><path d="M6 7.865a2 2 0 0 1 1.85-1.85l.905-.91A3 3 0 0 0 5.09 8.77zM15.47 7.83a8.2 8.2 0 0 0-2.87-3.72L15 1.705 14.295 1 1 14.295l.705.705 2.55-2.55A7.65 7.65 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M10 8a2 2 0 0 1-3 1.72L9.72 7A2 2 0 0 1 10 8m-2 4.5a6.5 6.5 0 0 1-3-.79l1.27-1.27a3 3 0 0 0 4.175-4.175L11.88 4.83A7.27 7.27 0 0 1 14.465 8C13.45 10.535 10.65 12.5 8 12.5"/></svg>'),a("omrs-icon-view",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15.47 7.83A8.34 8.34 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"/><path d="M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"/></svg>'),a("omrs-icon-warning",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m0 13A6 6 0 1 1 8 2a6 6 0 0 1 0 12"/><path d="M8.5 4h-1v5.5h1zM8 11a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/></svg>')})(),(()=>{"use strict";h.r(p)})(),p})())}}}));
2
+ System.register(["@openmrs/esm-error-handling","@openmrs/esm-extensions","@openmrs/esm-navigation","@openmrs/esm-react-utils","@openmrs/esm-state","@openmrs/esm-translations","dayjs","react","react-dom","rxjs"],(function(t,e){var n={},r={},o={},i={},a={},s={},u={},c={},l={},f={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),{setters:[function(){},function(){},function(){},function(){},function(t){a.createGlobalStore=t.createGlobalStore},function(){},function(){},function(t){Object.keys(t).forEach((function(e){c[e]=t[e]}))},function(t){Object.keys(t).forEach((function(e){l[e]=t[e]}))},function(t){f.Subject=t.Subject}],execute:function(){t((()=>{var t={976:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t,e=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var a=void 0===i?"undefined":(t=i)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;if("string"===a||"number"===a)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===a){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var u in i)r.call(i,u)&&i[u]&&e.push(u)}}}return e.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},353:(t,e,n)=>{!function(e){"use strict";var r=function(t){return function(e,n){return"object"==typeof e&&(n=e,e=null),null==e&&(e=(new Date).toString()),n||(n={}),t.call(this,e,n)}},o=n(42),i=t.exports={generate:r((function(t,e){return new o(t,e)}))};e&&(e.fn.geopattern=r((function(t,n){return this.each((function(){var r=e(this).attr("data-title-sha");r&&(n=e.extend({hash:r},n));var o=i.generate(t,n);e(this).css("background-image",o.toDataUrl())}))})))}("undefined"!=typeof jQuery?jQuery:null)},851:t=>{"use strict";t.exports={hex2rgb:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgb2hex:function(t){return"#"+["r","g","b"].map((function(e){return("0"+t[e].toString(16)).slice(-2)})).join("")},rgb2hsl:function(t){var e=t.r,n=t.g,r=t.b;e/=255,n/=255,r/=255;var o,i,a=Math.max(e,n,r),s=Math.min(e,n,r),u=(a+s)/2;if(a===s)o=i=0;else{var c=a-s;switch(i=u>.5?c/(2-a-s):c/(a+s),a){case e:o=(n-r)/c+(n<r?6:0);break;case n:o=(r-e)/c+2;break;case r:o=(e-n)/c+4}o/=6}return{h:o,s:i,l:u}},hsl2rgb:function(t){var e,n,r,o=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},i=t.h,a=t.s,s=t.l;if(0===a)e=n=r=s;else{var u=s<.5?s*(1+a):s+a-s*a,c=2*s-u;e=o(c,u,i+1/3),n=o(c,u,i),r=o(c,u,i-1/3)}return{r:Math.round(255*e),g:Math.round(255*n),b:Math.round(255*r)}},rgb2rgbString:function(t){return"rgb("+[t.r,t.g,t.b].join(",")+")"}}},42:(t,e,n)=>{"use strict";var r=n(495),o=n(851),i=n(451),a=n(138),s={baseColor:"#933c3c"},u=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],c="#222",l="#ddd",f="#000",h=.02,p=.02,v=.15;function d(t,e,n){return parseInt(t.substr(e,n||1),16)}function g(t,e,n,r,o){return(parseFloat(t)-e)*(o-r)/(n-e)+r}function m(t){return t%2==0?l:c}function y(t){return g(t,0,15,p,v)}var w=t.exports=function(t,e){return this.opts=r({},s,e),this.hash=e.hash||i(t),this.svg=new a,this.generateBackground(),this.generatePattern(),this};function b(t){return[[t,0,t,3*t],[0,t,3*t,t]]}function S(t){return[0,0,t,t,0,t,0,0].join(",")}function E(t,e,n,r,o){var i=S(r),a=y(o[0]),s=m(o[0]),u={stroke:f,"stroke-opacity":h,"fill-opacity":a,fill:s};t.polyline(i,u).transform({translate:[e+r,n],scale:[-1,1]}),t.polyline(i,u).transform({translate:[e+r,n+2*r],scale:[1,-1]}),a=y(o[1]),s=m(o[1]),u={stroke:f,"stroke-opacity":h,"fill-opacity":a,fill:s},t.polyline(i,u).transform({translate:[e+r,n+2*r],scale:[-1,-1]}),t.polyline(i,u).transform({translate:[e+r,n],scale:[1,1]})}function O(t,e,n,r,o){var i=y(o),a=m(o),s=S(r),u={stroke:f,"stroke-opacity":h,"fill-opacity":i,fill:a};t.polyline(s,u).transform({translate:[e,n+r],scale:[1,-1]}),t.polyline(s,u).transform({translate:[e+2*r,n+r],scale:[-1,-1]}),t.polyline(s,u).transform({translate:[e,n+r],scale:[1,1]}),t.polyline(s,u).transform({translate:[e+2*r,n+r],scale:[-1,1]})}w.prototype.toSvg=function(){return this.svg.toString()},w.prototype.toString=function(){return this.toSvg()},w.prototype.toBase64=function(){var t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},w.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},w.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},w.prototype.generateBackground=function(){var t,e,n,r;this.opts.color?n=o.hex2rgb(this.opts.color):(e=g(d(this.hash,14,3),0,4095,0,359),r=d(this.hash,17),(t=o.rgb2hsl(o.hex2rgb(this.opts.baseColor))).h=(360*t.h-e+360)%360/360,t.s=r%2==0?Math.min(1,(100*t.s+r)/100):Math.max(0,(100*t.s-r)/100),n=o.hsl2rgb(t)),this.color=o.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:o.rgb2rgbString(n)})},w.prototype.generatePattern=function(){var t=this.opts.generator;if(t){if(u.indexOf(t)<0)throw new Error("The generator "+t+" does not exist.")}else t=u[d(this.hash,20)];return this["geo"+t.slice(0,1).toUpperCase()+t.slice(1)]()},w.prototype.geoHexagons=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,8,60),u=s*Math.sqrt(3),c=2*s,l=function(t){var e=t,n=e/2,r=Math.sin(60*Math.PI/180)*e;return[0,r,n,0,n+e,0,2*e,r,n+e,2*r,n,2*r,0,r].join(",")}(s);for(this.svg.setWidth(3*c+3*s),this.svg.setHeight(6*u),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=i%2==0?a*u:a*u+u/2,n=y(o=d(this.hash,e)),r={fill:m(o),"fill-opacity":n,stroke:f,"stroke-opacity":h},this.svg.polyline(l,r).transform({translate:[i*s*1.5-c/2,t-u/2]}),0===i&&this.svg.polyline(l,r).transform({translate:[6*s*1.5-c/2,t-u/2]}),0===a&&(t=i%2==0?6*u:6*u+u/2,this.svg.polyline(l,r).transform({translate:[i*s*1.5-c/2,t-u/2]})),0===i&&0===a&&this.svg.polyline(l,r).transform({translate:[6*s*1.5-c/2,5*u+u/2]}),e++},w.prototype.geoSineWaves=function(){var t,e,n,r,o,i,a=Math.floor(g(d(this.hash,0),0,15,100,400)),s=Math.floor(g(d(this.hash,1),0,15,30,100)),u=Math.floor(g(d(this.hash,2),0,15,3,30));for(this.svg.setWidth(a),this.svg.setHeight(36*u),t=0;t<36;t++)e=y(o=d(this.hash,t)),r={fill:"none",stroke:m(o),opacity:e,"stroke-width":u+"px"},n="M0 "+s+" C "+(i=a/4*.7)+" 0, "+(a/2-i)+" 0, "+a/2+" "+s+" S "+(a-i)+" "+2*s+", "+a+" "+s+" S "+(1.5*a-i)+" 0, "+1.5*a+", "+s,this.svg.path(n,r).transform({translate:[-a/4,u*t-1.5*s]}),this.svg.path(n,r).transform({translate:[-a/4,u*t-1.5*s+36*u]})},w.prototype.geoChevrons=function(){var t,e,n,r,o,i,a,s,u,c,l=g(d(this.hash,0),0,15,30,80),p=g(d(this.hash,0),0,15,30,80),v=[[0,0,(t=l)/2,(e=p)-(n=.66*e),t/2,e,0,n,0,0],[t/2,e-n,t,0,t,n,t/2,e,t/2,e-n]].map((function(t){return t.join(",")}));for(this.svg.setWidth(6*l),this.svg.setHeight(6*p*.66),o=0,c=0;c<6;c++)for(u=0;u<6;u++)i=y(s=d(this.hash,o)),r=m(s),a={stroke:f,"stroke-opacity":h,fill:r,"fill-opacity":i,"stroke-width":1},this.svg.group(a).transform({translate:[u*l,c*p*.66-p/2]}).polyline(v).end(),0===c&&this.svg.group(a).transform({translate:[u*l,6*p*.66-p/2]}).polyline(v).end(),o+=1},w.prototype.geoPlusSigns=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,10,25),u=3*s,c=b(s);for(this.svg.setWidth(12*s),this.svg.setHeight(12*s),e=0,a=0;a<6;a++)for(i=0;i<6;i++)n=y(o=d(this.hash,e)),t=a%2==0?0:1,r={fill:m(o),stroke:f,"stroke-opacity":h,"fill-opacity":n},this.svg.group(r).transform({translate:[i*u-i*s+t*s-s,a*u-a*s-u/2]}).rect(c).end(),0===i&&this.svg.group(r).transform({translate:[4*u-i*s+t*s-s,a*u-a*s-u/2]}).rect(c).end(),0===a&&this.svg.group(r).transform({translate:[i*u-i*s+t*s-s,4*u-a*s-u/2]}).rect(c).end(),0===i&&0===a&&this.svg.group(r).transform({translate:[4*u-i*s+t*s-s,4*u-a*s-u/2]}).rect(c).end(),e++},w.prototype.geoXes=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,10,25),u=b(s),c=3*s*.943;for(this.svg.setWidth(3*c),this.svg.setHeight(3*c),e=0,a=0;a<6;a++)for(i=0;i<6;i++)n=y(o=d(this.hash,e)),t=i%2==0?a*c-.5*c:a*c-.5*c+c/4,r={fill:m(o),opacity:n},this.svg.group(r).transform({translate:[i*c/2-c/2,t-a*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===i&&this.svg.group(r).transform({translate:[6*c/2-c/2,t-a*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===a&&(t=i%2==0?6*c-c/2:6*c-c/2+c/4,this.svg.group(r).transform({translate:[i*c/2-c/2,t-6*c/2],rotate:[45,c/2,c/2]}).rect(u).end()),5===a&&this.svg.group(r).transform({translate:[i*c/2-c/2,t-11*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),0===i&&0===a&&this.svg.group(r).transform({translate:[6*c/2-c/2,t-6*c/2],rotate:[45,c/2,c/2]}).rect(u).end(),e++},w.prototype.geoOverlappingCircles=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:m(r),opacity:e},this.svg.circle(o*a,i*a,a,n),0===o&&this.svg.circle(6*a,i*a,a,n),0===i&&this.svg.circle(o*a,6*a,a,n),0===o&&0===i&&this.svg.circle(6*a,6*a,a,n),t++},w.prototype.geoOctogons=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=function(t){var e=.33*t;return[e,0,t-e,0,t,e,t,t-e,t-e,t,e,t,0,t-e,0,e,e,0].join(",")}(a);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.polyline(s,{fill:t,"fill-opacity":n,stroke:f,"stroke-opacity":h}).transform({translate:[o*a,i*a]}),e+=1},w.prototype.geoSquares=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.rect(o*a,i*a,a,a,{fill:t,"fill-opacity":n,stroke:f,"stroke-opacity":h}),e+=1},w.prototype.geoConcentricCircles=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=a/5;for(this.svg.setWidth(6*(a+s)),this.svg.setHeight(6*(a+s)),e=0,i=0;i<6;i++)for(o=0;o<6;o++)n=y(r=d(this.hash,e)),t=m(r),this.svg.circle(o*a+o*s+(a+s)/2,i*a+i*s+(a+s)/2,a/2,{fill:"none",stroke:t,opacity:n,"stroke-width":s+"px"}),n=y(r=d(this.hash,39-e)),t=m(r),this.svg.circle(o*a+o*s+(a+s)/2,i*a+i*s+(a+s)/2,a/4,{fill:t,"fill-opacity":n}),e+=1},w.prototype.geoOverlappingRings=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,10,60),s=a/4;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":s+"px"},this.svg.circle(o*a,i*a,a-s/2,n),0===o&&this.svg.circle(6*a,i*a,a-s/2,n),0===i&&this.svg.circle(o*a,6*a,a-s/2,n),0===o&&0===i&&this.svg.circle(6*a,6*a,a-s/2,n),t+=1},w.prototype.geoTriangles=function(){var t,e,n,r,o,i,a,s=g(d(this.hash,0),0,15,15,80),u=s/2*Math.sqrt(3),c=function(t,e){var n=t/2;return[n,0,t,e,0,e,n,0].join(",")}(s,u);for(this.svg.setWidth(3*s),this.svg.setHeight(6*u),t=0,a=0;a<6;a++)for(i=0;i<6;i++)e=y(o=d(this.hash,t)),r={fill:m(o),"fill-opacity":e,stroke:f,"stroke-opacity":h},n=a%2==0?i%2==0?180:0:i%2!=0?180:0,this.svg.polyline(c,r).transform({translate:[i*s*.5-s/2,u*a],rotate:[n,s/2,u/2]}),0===i&&this.svg.polyline(c,r).transform({translate:[6*s*.5-s/2,u*a],rotate:[n,s/2,u/2]}),t+=1},w.prototype.geoDiamonds=function(){var t,e,n,r,o,i,a,s,u,c=g(d(this.hash,0),0,15,10,50),l=g(d(this.hash,1),0,15,10,50),p=[(t=c)/2,0,t,(e=l)/2,t/2,e,0,e/2].join(",");for(this.svg.setWidth(6*c),this.svg.setHeight(3*l),r=0,u=0;u<6;u++)for(s=0;s<6;s++)o=y(a=d(this.hash,r)),i={fill:m(a),"fill-opacity":o,stroke:f,"stroke-opacity":h},n=u%2==0?0:c/2,this.svg.polyline(p,i).transform({translate:[s*c-c/2+n,l/2*u-l/2]}),0===s&&this.svg.polyline(p,i).transform({translate:[6*c-c/2+n,l/2*u-l/2]}),0===u&&this.svg.polyline(p,i).transform({translate:[s*c-c/2+n,l/2*6-l/2]}),0===s&&0===u&&this.svg.polyline(p,i).transform({translate:[6*c-c/2+n,l/2*6-l/2]}),r+=1},w.prototype.geoNestedSquares=function(){var t,e,n,r,o,i,a=g(d(this.hash,0),0,15,4,12),s=7*a;for(this.svg.setWidth(6*(s+a)+6*a),this.svg.setHeight(6*(s+a)+6*a),t=0,i=0;i<6;i++)for(o=0;o<6;o++)e=y(r=d(this.hash,t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":a+"px"},this.svg.rect(o*s+o*a*2+a/2,i*s+i*a*2+a/2,s,s,n),e=y(r=d(this.hash,39-t)),n={fill:"none",stroke:m(r),opacity:e,"stroke-width":a+"px"},this.svg.rect(o*s+o*a*2+a/2+2*a,i*s+i*a*2+a/2+2*a,3*a,3*a,n),t+=1},w.prototype.geoMosaicSquares=function(){var t,e,n,r=g(d(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),t=0,n=0;n<4;n++)for(e=0;e<4;e++)e%2==0?n%2==0?O(this.svg,e*r*2,n*r*2,r,d(this.hash,t)):E(this.svg,e*r*2,n*r*2,r,[d(this.hash,t),d(this.hash,t+1)]):n%2==0?E(this.svg,e*r*2,n*r*2,r,[d(this.hash,t),d(this.hash,t+1)]):O(this.svg,e*r*2,n*r*2,r,d(this.hash,t)),t+=1},w.prototype.geoPlaid=function(){var t,e,n,r,o,i,a=0,s=0;for(e=0;e<36;)a+=d(this.hash,e)+5,n=y(i=d(this.hash,e+1)),t=m(i),r=i+5,this.svg.rect(0,a,"100%",r,{opacity:n,fill:t}),a+=r,e+=2;for(e=0;e<36;)s+=d(this.hash,e)+5,n=y(i=d(this.hash,e+1)),t=m(i),o=i+5,this.svg.rect(s,0,o,"100%",{opacity:n,fill:t}),s+=o,e+=2;this.svg.setWidth(s),this.svg.setHeight(a)},w.prototype.geoTessellation=function(){var t,e,n,r,o,i=g(d(this.hash,0),0,15,5,40),a=i*Math.sqrt(3),s=2*i,u=i/2*Math.sqrt(3),c=function(t,e){return[0,0,e,t/2,0,t,0,0].join(",")}(i,u),l=3*i+2*u,p=2*a+2*i;for(this.svg.setWidth(l),this.svg.setHeight(p),e=0;e<20;e++)switch(n=y(o=d(this.hash,e)),t=m(o),r={stroke:f,"stroke-opacity":h,fill:t,"fill-opacity":n,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,r),this.svg.rect(l-i/2,-i/2,i,i,r),this.svg.rect(-i/2,p-i/2,i,i,r),this.svg.rect(l-i/2,p-i/2,i,i,r);break;case 1:this.svg.rect(s/2+u,a/2,i,i,r);break;case 2:this.svg.rect(-i/2,p/2-i/2,i,i,r),this.svg.rect(l-i/2,p/2-i/2,i,i,r);break;case 3:this.svg.rect(s/2+u,1.5*a+i,i,i,r);break;case 4:this.svg.polyline(c,r).transform({translate:[i/2,-i/2],rotate:[0,i/2,u/2]}),this.svg.polyline(c,r).transform({translate:[i/2,p- -i/2],rotate:[0,i/2,u/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,r).transform({translate:[l-i/2,-i/2],rotate:[0,i/2,u/2],scale:[-1,1]}),this.svg.polyline(c,r).transform({translate:[l-i/2,p+i/2],rotate:[0,i/2,u/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,r).transform({translate:[l/2+i/2,a/2]});break;case 7:this.svg.polyline(c,r).transform({translate:[l-l/2-i/2,a/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,r).transform({translate:[l/2+i/2,p-a/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,r).transform({translate:[l-l/2-i/2,p-a/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,r).transform({translate:[i/2,p/2-i/2]});break;case 11:this.svg.polyline(c,r).transform({translate:[l-i/2,p/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[i/2-l,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,p/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[i/2-l,p/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,p/2-p-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[i/2-l,p/2-p-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,i/2-p],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[i/2-l,i/2-p],rotate:[-30,0,0]})}}},451:t=>{"use strict";function e(){var t=function(){for(var t=16;t<80;t++){var e=u[t-3]^u[t-8]^u[t-14]^u[t-16];u[t]=e<<1|e>>>31}var n,l,f=r,h=o,p=i,v=a,d=s;for(t=0;t<80;t++){t<20?(n=v^h&(p^v),l=1518500249):t<40?(n=h^p^v,l=1859775393):t<60?(n=h&p|v&(h|p),l=2400959708):(n=h^p^v,l=3395469782);var g=(f<<5|f>>>27)+n+d+l+(0|u[t]);d=v,v=p,p=h<<30|h>>>2,h=f,f=g}for(r=r+f|0,o=o+h|0,i=i+p|0,a=a+v|0,s=s+d|0,c=0,t=0;t<16;t++)u[t]=0},e=function(e){u[c]|=(255&e)<<l,l?l-=8:(c++,l=24),16===c&&t()},n=function(t){for(var e="",n=28;n>=0;n-=4)e+=(t>>n&15).toString(16);return e},r=1732584193,o=4023233417,i=2562383102,a=271733878,s=3285377520,u=new Uint32Array(80),c=0,l=24,f=0;return{update:function(t){if("string"==typeof t)return function(t){var n=t.length;f+=8*n;for(var r=0;r<n;r++)e(t.charCodeAt(r))}(t);var n=t.length;f+=8*n;for(var r=0;r<n;r++)e(t[r])},digest:function(){e(128),(c>14||14===c&&l<24)&&t(),c=14,l=24,e(0),e(0),e(f>0xffffffffff?f/1099511627776:0),e(f>4294967295?f/4294967296:0);for(var u=24;u>=0;u-=8)e(f>>u);return n(r)+n(o)+n(i)+n(a)+n(s)}}}t.exports=function(t){if(void 0===t)return e();var n=e();return n.update(t),n.digest()}},138:(t,e,n)=>{"use strict";var r=n(495),o=n(97);function i(){return this.width=100,this.height=100,this.svg=o("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}t.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var t=this.currentContext();return t.lastChild||t},i.prototype.transform=function(t){return this.currentNode().setAttribute("transform",Object.keys(t).map((function(e){return e+"("+t[e].join(",")+")"})).join(" ")),this},i.prototype.setAttributes=function(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))},i.prototype.setWidth=function(t){this.svg.setAttribute("width",Math.floor(t))},i.prototype.setHeight=function(t){this.svg.setAttribute("height",Math.floor(t))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(t,e,n,i,a){var s=this;if(Array.isArray(t))return t.forEach((function(t){s.rect.apply(s,t.concat(a))})),this;var u=o("rect");return this.currentContext().appendChild(u),this.setAttributes(u,r({x:t,y:e,width:n,height:i},a)),this},i.prototype.circle=function(t,e,n,i){var a=o("circle");return this.currentContext().appendChild(a),this.setAttributes(a,r({cx:t,cy:e,r:n},i)),this},i.prototype.path=function(t,e){var n=o("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:t},e)),this},i.prototype.polyline=function(t,e){var n=this;if(Array.isArray(t))return t.forEach((function(t){n.polyline(t,e)})),this;var i=o("polyline");return this.currentContext().appendChild(i),this.setAttributes(i,r({points:t},e)),this},i.prototype.group=function(t){var e=o("g");return this.currentContext().appendChild(e),this.context.push(e),this.setAttributes(e,r({},t)),this}},97:t=>{"use strict";var e=t.exports=function(t){return this,(null!=(n=e)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](this):this instanceof n)?(this.tagName=t,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new e(t);var n};e.prototype.appendChild=function(t){return this.children.push(t),this.lastChild=t,this},e.prototype.setAttribute=function(t,e){return this.attributes[t]=e,this},e.prototype.toString=function(){var t=this;return["<",t.tagName,Object.keys(t.attributes).map((function(e){return[" ",e,'="',t.attributes[e],'"'].join("")})).join(""),">",t.children.map((function(t){return t.toString()})).join(""),"</",t.tagName,">"].join("")}},495:t=>{var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(t){if(!t||"[object Object]"!==n.call(t)||t.nodeType||t.setInterval)return!1;var r,o=e.call(t,"constructor"),i=e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(r in t);return void 0===r||e.call(t,r)}t.exports=function t(){var e,n,o,i,a,s,u=arguments[0]||{},c=1,l=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),"object"!=typeof u&&"function"!=typeof u&&(u={});c<l;c++)if(null!=(e=arguments[c]))for(n in e)o=u[n],u!==(i=e[n])&&(f&&i&&(r(i)||(a=Array.isArray(i)))?(a?(a=!1,s=o&&Array.isArray(o)?o:[]):s=o&&r(o)?o:{},u[n]=t(f,s,i)):void 0!==i&&(u[n]=i));return u}},279:(t,e,n)=>{"use strict";var r=n(493);r.createRoot,r.hydrateRoot},978:(t,e,n)=>{"use strict";var r=n(954),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=e,c(o)&&l({inst:o})}),[t,n,e]),a((function(){return c(o)&&l({inst:o}),t((function(){c(o)&&l({inst:o})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},921:(t,e,n)=>{"use strict";t.exports=n(978)},641:(t,e,n)=>{function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function a(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}System.register(["@openmrs/esm-config","@openmrs/esm-navigation","@openmrs/esm-error-handling","@openmrs/esm-offline"],(function(t,e){var s={},u={},c={},l={};return{setters:[function(t){s.Type=t.Type,s.defineConfigSchema=t.defineConfigSchema,s.getConfig=t.getConfig,s.validators=t.validators},function(t){u.navigate=t.navigate},function(t){c.reportError=t.reportError},function(t){l.getSynchronizationItems=t.getSynchronizationItems}],execute:function(){t(function(){var t={385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){"use strict";var t=function(t,e){var n=u[t];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(e,!0),n.active=!0,n.value;var r=s()((function(){return e}));return u[t]={value:r,active:!0},r},e=function(t,e){var n=u[t];return n?(n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value=e,n.active=!0,n.value):(u[t]={value:e,active:!0},e)},n=function(t,e){var n=u[t];if(!n){var r=s()((function(){return null!=e?e:{}}));return u[t]={value:r,active:!1},r}return n.value},r=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))},o={d:function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};o.r(i),o.d(i,{createGlobalStore:function(){return t},getGlobalStore:function(){return n},registerGlobalStore:function(){return e},subscribeTo:function(){return r}});var a=function(t){var e,n=new Set,r=function(t,r){var o="function"==typeof t?t(e):t;if(!Object.is(o,e)){var i=e;e=(null!=r?r:"object"!=typeof o)?o:Object.assign({},e,o),n.forEach((function(t){return t(e,i)}))}},o=function(){return e},i={setState:r,getState:o,subscribe:function(t){return n.add(t),function(){return n.delete(t)}},destroy:function(){console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(r,o,i),i},s=function(t){return t?a(t):a},u={};return setTimeout((function(){"development"===window.spaEnv&&(window.stores=u)}),1e3),i}())}}}))},824:function(t){"use strict";t.exports=s},254:function(t){"use strict";t.exports=c},513:function(t){"use strict";t.exports=u},738:function(t){"use strict";t.exports=l}},e={};function f(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,f),o.exports}f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var h={};return function(){"use strict";var t=function(t,e){function n(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e=function(t){return"function"==typeof t},s=function(t){setTimeout((function(){throw t}),0)},u=function(t){return null!==t&&"object"==typeof t},c=function(t){return t.reduce((function(t,e){return t.concat(i(e,ve)?e.errors:e)}),[])},l=function(t){return t},p=function(t){if(t||(t=le.Promise||Promise),!t)throw new Error("no Promise impl found");return t},v=function(t,e,n){var r=y(t,e,n);Ge.length?Ge.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))},d=function(t){if("function"!=typeof t)throw Error(m(28,!1));Ge.push(t)},g=function(t){if("function"!=typeof t)throw Error(m(29,!1));var e=!1;return Ge=Ge.filter((function(n){var r=n===t;return e=e||r,!r})),e},m=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")},y=function(t,e,n){var r,o="".concat(O(e)," '").concat(S(e),"' died in status ").concat(e.status,": ");if(i(t,Error)){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(m(30,!1,e.status,S(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=S(e),e.status=n,r},w=function(t){return t.status===Xe},b=function(t){try{return t.activeWhen(window.location)}catch(e){return v(e,t,nn),!1}},S=function(t){return t.name},E=function(t){return Boolean(t.unmountThisParcel)},O=function(t){return E(t)?"parcel":"application"},A=function(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]},P=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},M=function(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!P(e,(function(t){return"function"!=typeof t}))));var e},_=function(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=O(t),o=S(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return T(n)?n:Promise.reject(m(15,!1,r,o,e,a))}))}),Promise.resolve())}},T=function(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch},x=function(t,e){return Promise.resolve().then((function(){return t.status!==$e?t:(t.status=Je,t.bootstrap?I(t,"bootstrap").then(n).catch((function(n){if(e)throw y(n,t,nn);return v(n,t,nn),t})):Promise.resolve().then(n))}));function n(){return t.status=Ke,t}},j=function(t,e){return Promise.resolve().then((function(){if(t.status!==Xe)return t;t.status=Ze;var n=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(e)throw y(r,t,nn);v(r,t,nn)}))})).then((function(){return t}));function r(){return I(t,"unmount").then((function(){t.status=Ke}),(function(n){if(e)throw y(n,t,nn);v(n,t,nn)}))}}))},z=function(t,e){return Promise.resolve().then((function(){return t.status!==Ke?t:(on||(window.dispatchEvent(new We("single-spa:before-first-mount")),on=!0),t.status=Qe,I(t,"mount").then((function(){return t.status=Xe,an||(window.dispatchEvent(new We("single-spa:first-mount")),an=!0),t})).catch((function(n){return t.status=Xe,j(t,!0).then(r,r);function r(){if(e)throw y(n,t,nn);return v(n,t,nn),t}})))}))},C=function(){return k.apply(un,arguments)},k=function(t,e){var n=this;if(!t||"object"!=typeof t&&"function"!=typeof t)throw Error(m(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(m(3,!1,a(t.name)));var r=sn++,o=t.name||"parcel-".concat(r);if("object"!=typeof e)throw Error(m(4,!1,o,void 0===e?"undefined":a(e)));if(!e.domElement)throw Error(m(5,!1,o));var i,s="function"==typeof t,u=s?t:function(){return Promise.resolve(t)},c={id:r,parcels:{},status:s?qe:$e,customProps:e,parentName:S(n),unmountThisParcel:function(){return v.then((function(){if(c.status!==Xe)throw Error(m(6,!1,o,c.status));return j(c,!0)})).then((function(t){return c.parentName&&delete n.parcels[c.id],t})).then((function(t){return f(t),t})).catch((function(t){throw c.status=nn,h(t),t}))}};n.parcels[r]=c;var l=u();if(!l||"function"!=typeof l.then)throw Error(m(7,!1));l=l.then((function(t){if(!t)throw Error(m(8,!1));if(o=t.name||"parcel-".concat(r),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!M(t.bootstrap))throw Error(m(9,!1,o));if(!M(t.mount))throw Error(m(10,!1,o));if(!M(t.unmount))throw Error(m(11,!1,o));if(t.update&&!M(t.update))throw Error(m(12,!1,o));var e=_(t,"bootstrap"),n=_(t,"mount"),a=_(t,"unmount");c.status=$e,c.name=o,c.bootstrap=e,c.mount=n,c.unmount=a,c.timeouts=R(t.timeouts),t.update&&(c.update=_(t,"update"),i.update=function(t){return c.customProps=t,L((e=c,Promise.resolve().then((function(){if(e.status!==Xe)throw Error(m(32,!1,S(e)));return e.status=Ye,I(e,"update").then((function(){return e.status=Xe,e})).catch((function(t){throw y(t,e,nn)}))}))));var e})}));var f,h,p=l.then((function(){return x(c,!0)})),v=p.then((function(){return z(c,!0)})),d=new Promise((function(t,e){f=t,h=e}));return i={mount:function(){return L(Promise.resolve().then((function(){if(c.status!==Ke)throw Error(m(13,!1,o,c.status));return n.parcels[r]=c,z(c)})))},unmount:function(){return L(c.unmountThisParcel())},getStatus:function(){return c.status},loadPromise:L(l),bootstrapPromise:L(p),mountPromise:L(v),unmountPromise:L(d)}},L=function(t){return t.then((function(){return null}))},V=function(t){var e=S(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(m(40,!1),e,n));var r=A({},n,{name:e,mountParcel:k.bind(t),singleSpa:Re});return E(t)&&(r.unmountSelf=t.unmountThisParcel),r},H=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(16,!1));cn.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},N=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(17,!1));cn.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},D=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(18,!1));cn.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},U=function(t,e,n){if("number"!=typeof t||t<=0)throw Error(m(19,!1));cn.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}},I=function(t,e){var n=t.timeouts[e],r=n.warningMillis,o=O(t);return new Promise((function(i,a){var s=!1,u=!1;t[e](V(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var c=m(31,!1,e,o,S(t),n.millis);function l(t){if(!s)if(!0===t)u=!0,n.dieOnTimeout?a(Error(c)):console.error(c);else if(!u){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return l(e+1)}),r)}}}))},R=function(t){var e={};for(var n in cn)e[n]=A({},cn[n],t&&t[n]||{});return e},B=function(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==Fe&&t.status!==en?t:(t.status=qe,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(V(t));if(!T(r))throw n=!0,Error(m(33,!1,S(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!=typeof(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!M(e.bootstrap)&&(r=35),M(e.mount)||(r=36),M(e.unmount)||(r=37);var o=O(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(m(r,!1,o,S(t),i),e),v(void 0,t,nn),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status=$e,t.bootstrap=_(e,"bootstrap"),t.mount=_(e,"mount"),t.unmount=_(e,"unmount"),t.unload=_(e,"unload"),t.timeouts=R(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=nn:(r=en,t.loadErrorTime=(new Date).getTime()),v(e,t,r),t})));var e,n}))},W=function(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(m(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=J(window.location.href),r=J(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)},G=function(t){var e=this;if(t){var n=t[0].type;hn.indexOf(n)>=0&&fn[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}},F=function(){En([],arguments)},q=function(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Ie&&n===o||window.dispatchEvent(function(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}(window.history.state,e)),r}},$=function(t){if(vn)throw Error(m(43,!1));Ie=!t||!t.hasOwnProperty("urlRerouteOnly")||t.urlRerouteOnly,vn=!0,pn=window.history.replaceState,window.addEventListener("hashchange",F),window.addEventListener("popstate",F);var e=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&hn.indexOf(t)>=0)||P(fn[t],(function(t){return t===n})))return e.apply(this,arguments);fn[t].push(n)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&hn.indexOf(t)>=0))return n.apply(this,arguments);fn[t]=fn[t].filter((function(t){return t!==e}))},window.history.pushState=q(window.history.pushState,"pushState"),window.history.replaceState=q(pn,"replaceState")},J=function(t){var e=document.createElement("a");return e.href=t,e},K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!dn){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Q.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Q.call(this,n,window.removeEventListener,t,e,arguments)},dn=!0}},Q=function(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){hn.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))},X=function(t){return Promise.resolve().then((function(){var e=gn[S(t)];if(!e)return t;if(t.status===Fe)return Y(t,e),t;if(t.status===tn)return e.promise.then((function(){return t}));if(t.status!==Ke&&t.status!==en)return t;var n=t.status===en?Promise.resolve():I(t,"unload");return t.status=tn,n.then((function(){return Y(t,e),t})).catch((function(n){return function(t,e,n){delete gn[S(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,v(n,t,nn),e.reject(n)}(t,e,n),t}))}))},Y=function(t,e){delete gn[S(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=Fe,e.resolve()},Z=function(t,e,n,r){gn[S(t)]={app:t,resolve:n,reject:r},Object.defineProperty(gn[S(t)],"promise",{get:e})},tt=function(t){return gn[t]},et=function(){return mn.filter(w).map(S)},nt=function(){return mn.map(S)},rt=function(t){var e=P(mn,(function(e){return S(e)===t}));return e?e.status:null},ot=function(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"==typeof t?(function(t){if(Array.isArray(t)||null===t)throw Error(m(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(m(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(m(20,!1));if("object"!=typeof t.app&&"function"!=typeof t.app)throw Error(m(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(m(24,!1));if(!ct(t.customProps))throw Error(m(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(m(20,!1));if(!e)throw Error(m(23,!1));if("function"!=typeof n)throw Error(m(24,!1));if(!ct(r))throw Error(m(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:lt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(vt()||yn||(yn=!0,setTimeout((function(){vt()||console.warn(m(1,!1))}),5e3)),-1!==nt().indexOf(o.name))throw Error(m(21,!1,o.name));mn.push(A({loadErrorTime:null,status:Fe,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),ln&&(K(),En())},it=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return mn.filter((function(e){return e.activeWhen(t)})).map(S)},at=function(t){if(0===mn.filter((function(e){return S(e)===t})).length)throw Error(m(25,!1,t));return(ln?st(t,{waitForUnmount:!1}):Promise.resolve()).then((function(){var e=mn.map(S).indexOf(t);mn.splice(e,1)}))},st=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(m(26,!1));var n=P(mn,(function(e){return S(e)===t}));if(!n)throw Error(m(27,!1,t));var r,o=tt(S(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Z(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ut(n,o.resolve,o.reject)):r=new Promise((function(t,e){Z(n,(function(){return r}),t,e),ut(n,t,e)})),r},ut=function(t,e,n){Promise.resolve().then((function(){if(P(it(),(function(e){return e===S(t)})))return ft()})).then((function(){return j(t).then(X).then((function(){e(),setTimeout((function(){En()}))}))})).catch(n)},ct=function(t){return!t||"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},lt=function(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&s(i)}return s(t.length),new RegExp(o,"i");function s(i){var a=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)e&&(o+="$");else{var s=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(s,"$"):"".concat(o,"(/").concat(s,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}},ft=function(){return En()},ht=function(t,e){return b(t)?x(t).then((function(t){return e.then((function(){return b(t)?z(t):t}))})):e.then((function(){return t}))},pt=function(t){On=!0,ln&&($(t),En())},vt=function(){return On},dt=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},gt=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},mt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},yt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},wt=function(t){return t&&t.startsWith("http")?t:("/"!==t[0]&&(t="/"+t),window.openmrsBase+t)},bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof e)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=wt(t);if(e.headers||(e.headers={}),He(e.body)&&(e.body=JSON.stringify(e.body)),void 0===e.headers.Accept&&(e.headers.Accept="application/json"),null===e.headers.Accept&&delete e.headers.Accept,t.startsWith(jn)&&void 0===e.headers["Disable-WWW-Authenticate"]&&(e.headers["Disable-WWW-Authenticate"]="true"),t.startsWith(zn)){var r=new URL(n,window.location.toString());r.searchParams.has("_summary")||(r.searchParams.set("_summary","data"),n=r.toString())}var o,i,a=Error();return window.fetch(n,e).then((o=function(t){var e,r;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(o){switch(o.label){case 0:return(e=t).ok?204===e.status?(e.data=null,[2,e]):[2,e.clone().text().then((function(t){try{t&&(e.data=JSON.parse(t))}catch(t){}return e}))]:[3,1];case 1:return[4,(0,Ne.getConfig)("@openmrs/esm-api")];case 2:return r=o.sent().redirectAuthFailure,n===wt(Cn)&&403===e.status||r.enabled&&r.errors.includes(e.status)?(sessionStorage.removeItem(Pn),(0,De.navigate)({to:r.url}),[2,r.resolvePromise?Promise.resolve():new Promise((function(){}))]):[2,e.clone().text().then((function(t){var r=t;try{r=JSON.parse(t)}catch(t){}throw new kn(n,e,r,a)}),(function(t){throw new kn(n,e,null,a)}))];case 3:return[2]}}))},i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){gt(i,n,r,a,s,"next",t)}function s(t){gt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)}))},St=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return e.signal=n.signal,new be((function(r){var o=!1;return bt(t,e).then((function(t){o=!0,r.next(t),r.complete()}),(function(t){o=!0,r.error(t)})),function(){o||n.abort()}}))},Et=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Ot=function(t,e){return bt("".concat(Ln,"/").concat(t),{signal:e.signal})},At=function(t,e,n){return bt("".concat(Ln,"?patient=").concat(t,"&includeEncounterless=").concat(e),{signal:n.signal})},Pt=function(t,e){return Vn.apply(this,arguments)},Mt=function(t,e){return bt("".concat(Ln,"/").concat(t),{method:"DELETE",signal:e.signal})},_t=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Tt=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){_t(i,r,o,a,s,"next",t)}function s(t){_t(i,r,o,a,s,"throw",t)}a(void 0)}))}},xt=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},jt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Un<Date.now()-6e4||!Dn.getState().loaded)&&kt(),new be((function(e){var n=function(n){var r;n.loaded&&(t.includeAuthStatus?e.next(n.session):e.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Dn.getState()),Dn.subscribe(n)}))},zt=function(){return(Un<Date.now()-6e4||!Dn.getState().loaded)&&kt(),Dn},Ct=function(t){var e,n,r,o=null!==(r=null==t||null===(e=t.user)||void 0===e||null===(n=e.userProperties)||void 0===n?void 0:n.defaultLocale)&&void 0!==r?r:t.locale,i=document.documentElement.getAttribute("lang");(function(t){if(void 0===t||"string"!=typeof t)return!1;try{new Intl.Locale(t)}catch(t){return!1}return!0})(o)&&o!==i&&document.documentElement.setAttribute("lang",o)},kt=function(t,e){Un=Date.now();var n={};return t&&e&&(n.Authorization="Basic ".concat(window.btoa("".concat(t,":").concat(e)))),It(bt(Cn,{headers:n}))},Lt=function(){Dn.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},Vt=function(t,e){return void 0===e?Boolean(t):!Boolean(t)||function(t,e){return"string"==typeof t?!Nn(e.privileges.find((function(e){return t===e.display}))):Array.isArray(t)?t.every((function(t){return!Nn(e.privileges.find((function(e){return t===e.display})))})):(Nn(t)||console.error('Could not understand privileges "'.concat(t,'"')),!0)}(t,e)||function(t){return!Nn(t.roles.find((function(t){return"System Developer"===t.display})))}(e)},Ht=function(){var t,e;return new Promise((function(n){var r=function(r){r.loaded&&r.session.user&&(t=r.session.user,n(r.session.user),e&&e())};r(Dn.getState()),t||(e=Dn.subscribe(r))}))},Nt=function(){return new Promise((function(t,e){jt().subscribe((function(e){t(e.sessionLocation)}),e).unsubscribe()}))},Dt=function(t,e){return In.apply(this,arguments)},Ut=function(t,e,n){return Rn.apply(this,arguments)},It=function(t){return new Promise((function(e,n){t.then((function(t){var r;"object"==typeof(null==t?void 0:t.data)?(r={loaded:!0,session:t.data},Dn.setState(r),e(r)):(r={loaded:!1,session:null},Dn.setState(r),n(r))})).catch((function(t){(0,Hn.reportError)("Failed to fetch new session information: ".concat(t));var e={loaded:!1,session:null};Dn.setState(e),n(e)}))}))},Rt=function(){(0,Ne.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:Ne.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:Ne.Type.String,_default:"${openmrsSpaBase}/login",_validators:[Ne.validators.isUrl]},errors:{_type:Ne.Type.Array,_default:[401],_elements:{_type:Ne.Type.Number,_validators:[Ne.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:Ne.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),kt()},Bt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Wt=function(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)},Gt=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Wt(i,r,o,a,s,"next",t)}function s(t){Wt(i,r,o,a,s,"throw",t)}a(void 0)}))}},Ft=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},qt=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},$t=function(t,e){return Wn.apply(this,arguments)},Jt=function(t){return Gn.apply(this,arguments)},Kt=function(t){return function(e){return 0===t?Yn:e.lift(new Zn(t))}},Qt=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new er(t,e))}},Xt=function(){return(0,Ue.getGlobalStore)("visit",or)},Yt=function(t,e){Xt().setState({patientUuid:t,manuallySetVisitUuid:e})},Zt=function(t,e,n){var r=null!=n?n:rr;return St("".concat(jn,"/visit?patient=").concat(t,"&v=").concat(r),{signal:e.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(Kt(1)).pipe(Qt((function(t){return t})))},te=function(t,e){return St("".concat(jn,"/visit"),{signal:e.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},ee=function(t,e,n){return St("".concat(jn,"/visit/").concat(t),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},ne=function(t){return{uuid:t.uuid,display:t.display,name:t.name}},re=function(){return St("".concat(jn,"/visittype")).pipe(Qt((function(t){return t.data.results.map(ne)}))).pipe(Kt(1))},oe=function(t){return{uuid:t.uuid,display:t.display}},ie=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return St("".concat(jn,"/location")+(t?"?tag="+t:"")).pipe(Qt((function(t){return t.data.results.map(oe)}))).pipe(Kt(1))};f.r(h),f.d(h,{OpenmrsFetchError:function(){return kn},VisitMode:function(){return ir},VisitStatus:function(){return ar},attachmentUrl:function(){return Ln},backendDependencies:function(){return ur},clearCurrentUser:function(){return Lt},createAttachment:function(){return Pt},defaultVisitCustomRepresentation:function(){return rr},deleteAttachmentPermanently:function(){return Mt},fetchCurrentPatient:function(){return $t},fhirBaseUrl:function(){return zn},getAttachmentByUuid:function(){return Ot},getAttachments:function(){return At},getCurrentUser:function(){return jt},getLocations:function(){return ie},getLoggedInUser:function(){return Ht},getSessionLocation:function(){return Nt},getSessionStore:function(){return zt},getStartedVisit:function(){return sr},getVisitStore:function(){return Xt},getVisitTypes:function(){return re},getVisitsForPatient:function(){return Zt},makeUrl:function(){return wt},openmrsFetch:function(){return bt},openmrsObservableFetch:function(){return St},refetchCurrentUser:function(){return kt},restBaseUrl:function(){return jn},saveVisit:function(){return te},sessionEndpoint:function(){return Cn},setCurrentVisit:function(){return Yt},setSessionLocation:function(){return Dt},setUserLanguage:function(){return Ct},setUserProperties:function(){return Ut},setupApiModule:function(){return Rt},toLocationObject:function(){return oe},toVisitTypeObject:function(){return ne},updateVisit:function(){return ee},userHasAccess:function(){return Vt}});var ae,se,ue=function(t,e){return ue=Object.setPrototypeOf||i({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ue(t,e)},ce=!1,le={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,ce=t},get useDeprecatedSynchronousErrorHandling(){return ce}},fe={closed:!0,next:function(t){},error:function(t){if(le.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete:function(){}},he=Array.isArray||function(t){return t&&"number"==typeof t.length},pe=function(){var t=function(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this};return t.prototype=Object.create(Error.prototype),t}(),ve=pe,de=function(){var t=function(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)};return t.prototype.unsubscribe=function(){var n;if(!this.closed){var r=this,o=r._parentOrParents,a=r._ctorUnsubscribe,s=r._unsubscribe,l=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i(o,t))o.remove(this);else if(null!==o)for(var f=0;f<o.length;++f)o[f].remove(this);if(e(s)){a&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){n=i(t,ve)?c(t.errors):[t]}}if(he(l)){f=-1;for(var h=l.length;++f<h;){var p=l[f];if(u(p))try{p.unsubscribe()}catch(t){n=n||[],i(t,ve)?n=n.concat(c(t.errors)):n.push(t)}}}if(n)throw new ve(n)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(void 0===e?"undefined":a(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!i(n,t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(i(o,t)){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),ge="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),me=function(e){function n(t,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=fe;break;case 1:if(!t){a.destination=fe;break}if("object"==typeof t){i(t,n)?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(a)):(a.syncErrorThrowable=!0,a.destination=new ye(a,t));break}default:a.syncErrorThrowable=!0,a.destination=new ye(a,t,r,o)}return a}return t(n,e),n.prototype[ge]=function(){return this},n.create=function(t,e,r){var o=new n(t,e,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(de),ye=function(n){var r=function(t,r,o,i){var a,s=n.call(this)||this;s._parentSubscriber=t;var u=s;return e(r)?a=r:r&&(a=r.next,o=r.error,i=r.complete,r!==fe&&(e((u=Object.create(r)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=a,s._error=o,s._complete=i,s};return t(r,n),r.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;le.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=le.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};le.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),le.useDeprecatedSynchronousErrorHandling)throw t;s(t)}},r.prototype.__tryOrSetError=function(t,e,n){if(!le.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return le.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(s(e),!0)}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(me),we="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){var t=function(t){this._isScalar=!1,t&&(this._subscribe=t)};return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(i(t,me))return t;if(t[ge])return t[ge]()}return t||e||n?new me(t,e,n):new me(fe)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||le.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),le.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){le.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&i(r,me)?r:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=p(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[we]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0===(n=t).length?l:1===n.length?n[0]:function(t){return n.reduce((function(t,e){return e(t)}),t)})(this);var n},t.prototype.toPromise=function(t){var e=this;return new(t=p(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}(),Se="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Ee="object"==typeof self&&self&&self.Object===Object&&self,Oe=(Se||Ee||Function("return this")()).Symbol,Ae=Object.prototype,Pe=Ae.hasOwnProperty,Me=Ae.toString,_e=Oe?Oe.toStringTag:void 0,Te=Object.prototype.toString,xe=Oe?Oe.toStringTag:void 0,je=(ae=Object.getPrototypeOf,se=Object,function(t){return ae(se(t))}),ze=Function.prototype,Ce=Object.prototype,ke=ze.toString,Le=Ce.hasOwnProperty,Ve=ke.call(Object),He=function(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xe&&xe in Object(t)?function(t){var e=Pe.call(t,_e),n=t[_e];try{t[_e]=void 0;var r=!0}catch(t){}var o=Me.call(t);return r&&(e?t[_e]=n:delete t[_e]),o}(t):function(t){return Te.call(t)}(t)}(t))return!1;var e=je(t);if(null===e)return!0;var n=Le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i(n,n)&&ke.call(n)==Ve},Ne=f(824),De=f(513),Ue=f(385);(0,Ue.createGlobalStore)("breadcrumbs",[]);var Ie,Re=Object.freeze({__proto__:null,get start(){return pt},get ensureJQuerySupport(){return K},get setBootstrapMaxTime(){return H},get setMountMaxTime(){return N},get setUnmountMaxTime(){return D},get setUnloadMaxTime(){return U},get registerApplication(){return ot},get unregisterApplication(){return at},get getMountedApps(){return et},get getAppStatus(){return rt},get unloadApplication(){return st},get checkActivityFunctions(){return it},get getAppNames(){return nt},get pathToActiveWhen(){return lt},get navigateToUrl(){return W},get patchHistoryApi(){return $},get triggerAppChange(){return ft},get addErrorHandler(){return d},get removeErrorHandler(){return g},get mountRootParcel(){return C},get NOT_LOADED(){return Fe},get LOADING_SOURCE_CODE(){return qe},get NOT_BOOTSTRAPPED(){return $e},get BOOTSTRAPPING(){return Je},get NOT_MOUNTED(){return Ke},get MOUNTING(){return Qe},get UPDATING(){return Ye},get LOAD_ERROR(){return en},get MOUNTED(){return Xe},get UNLOADING(){return tn},get UNMOUNTING(){return Ze},get SKIP_BECAUSE_BROKEN(){return nn}}),Be=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,We=function(){try{var t=new Be("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Be:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},Ge=[],Fe="NOT_LOADED",qe="LOADING_SOURCE_CODE",$e="NOT_BOOTSTRAPPED",Je="BOOTSTRAPPING",Ke="NOT_MOUNTED",Qe="MOUNTING",Xe="MOUNTED",Ye="UPDATING",Ze="UNMOUNTING",tn="UNLOADING",en="LOAD_ERROR",nn="SKIP_BECAUSE_BROKEN",rn=[],on=!1,an=!1,sn=0,un={parcels:{}},cn={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},ln="undefined"!=typeof window,fn={hashchange:[],popstate:[]},hn=["hashchange","popstate"],pn=null,vn=!1;ln&&(window.singleSpaNavigate?console.warn(m(41,!1)):window.singleSpaNavigate=W);var dn=!1,gn={},mn=[],yn=!1,wn=!1,bn=[],Sn=ln&&window.location.href;function En(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(wn)return new Promise((function(t,n){bn.push({resolve:t,reject:n,eventArguments:e})}));var r,i=function(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return mn.forEach((function(i){var a=i.status!==nn&&b(i);switch(i.status){case en:a&&o-i.loadErrorTime>=200&&n.push(i);break;case Fe:case qe:a&&n.push(i);break;case $e:case Ke:!a&&tt(S(i))?t.push(i):a&&r.push(i);break;case Xe:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}(),a=i.appsToUnload,s=i.appsToUnmount,u=i.appsToLoad,c=i.appsToMount,l=[],f=Sn,h=Sn=window.location.href;return vt()?(wn=!0,r=a.concat(u,s,c),Promise.resolve().then((function(){return y(0===r.length?"before-no-app-change":"before-app-change",g(!0)),y("before-routing-event",g(!0,{cancelNavigation:p})),Promise.all(l).then((function(n){if(n.some((function(t){return t})))return pn.call(window.history,history.state,"",f.substring(location.origin.length)),Sn=location.href,wn=!1,En(t,e,!0);var r=a.map(X),o=s.map(j).map((function(t){return t.then(X)})).concat(r),i=Promise.all(o);i.then((function(){y("before-mount-routing-event",g(!0))}),(function(t){throw t}));var l=u.map((function(t){return B(t).then((function(t){return ht(t,i)}))})),h=c.filter((function(t){return u.indexOf(t)<0})).map((function(t){return ht(t,i)}));return i.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(l.concat(h)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(v).then((function(){}),(function(t){throw t}))}))}))}))):(r=u,Promise.resolve().then((function(){var t=u.map(B);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t})).finally((function(){}))})));function p(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e="function"==typeof(null==t?void 0:t.then)?t:Promise.resolve(t);l.push(e.catch((function(t){return console.warn(Error(m(42,!1))),console.warn(t),!1})))}function v(){var e=et();t.forEach((function(t){return t.resolve(e)}));try{y(0===r.length?"no-app-change":"app-change",g()),y("routing-event",g())}catch(t){setTimeout((function(){throw t}))}if(wn=!1,bn.length>0){var n=bn;bn=[],En(n)}return e}function d(){n||(t.forEach((function(t){G(t.eventArguments)})),G(e))}function g(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,l={},p=(o(t={},Xe,[]),o(t,Ke,[]),o(t,Fe,[]),o(t,nn,[]),t);n?(u.concat(c).forEach((function(t,e){d(t,Xe)})),a.forEach((function(t){d(t,Fe)})),s.forEach((function(t){d(t,Ke)}))):r.forEach((function(t){d(t)}));var v={detail:{newAppStatuses:l,appsByNewStatus:p,totalAppChanges:r.length,originalEvent:null==e?void 0:e[0],oldUrl:f,newUrl:h}};return i&&A(v.detail,i),v;function d(t,e){var n=S(t);e=e||rt(n),l[n]=e,(p[e]=p[e]||[]).push(n)}}function y(t,e){n||window.dispatchEvent(new We("single-spa:".concat(t),e))}}var On=!1,An={getRawAppData:function(){return function(t){if(Array.isArray(t))return r(t)}(t=mn)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t},reroute:En,NOT_LOADED:Fe,toLoadPromise:B,toBootstrapPromise:x,unregisterApplication:at,getProfilerData:function(){return rn}};ln&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=An);var Pn="openmrs:history";function Mn(t,e,n){return Mn=yt()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Tn(o,n.prototype),o},Mn.apply(null,arguments)}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}function Tn(t,e){return Tn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Tn(t,e)}function xn(t){var e="function"==typeof Map?new Map:void 0;return xn=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Mn(t,arguments,_n(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tn(r,t)},xn(t)}var jn="/ws/rest/v1",zn="/ws/fhir2/R4",Cn="".concat(jn,"/session"),kn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tn(t,e)}(o,t);var e,n,r=(e=o,n=yt(),function(){var t,r=_n(e);if(n){var o=_n(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":void 0===n?"undefined":a(n))&&"function"!=typeof e?dt(t):e;var n}(this,t)});function o(t,e,n,a){var s;return function(t,e){if(!i(t,e))throw new TypeError("Cannot call a class as a function")}(this,o),mt(dt(s=r.call(this)),"response",void 0),mt(dt(s),"responseBody",void 0),s.message="Server responded with ".concat(e.status," (").concat(e.statusText,") for url ").concat(t,". Check err.responseBody or network tab in dev tools for more info"),a.message=s.message,s.responseBody=n,s.response=e,s.stack="Stacktrace for outgoing request:\n".concat(a.stack,"\nStacktrace for incoming response:\n").concat(s.stack),s}return o}(xn(Error)),Ln="".concat(jn,"/attachment");function Vn(){var t;return t=function(t,e){var n;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(r){return(n=new FormData).append("fileCaption",e.fileDescription),n.append("patient",t),e.file?n.append("file",e.file):(n.append("file",new File([""],e.fileName),e.fileName),n.append("base64Content",e.base64Content)),[2,bt("".concat(Ln),{method:"POST",body:n})]}))},Vn=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Et(i,r,o,a,s,"next",t)}function s(t){Et(i,r,o,a,s,"throw",t)}a(void 0)}))},Vn.apply(this,arguments)}var Hn=f(254),Nn=function(t){return void 0===t},Dn=(0,Ue.createGlobalStore)("session",{loaded:!1,session:null}),Un=0;function In(){return(In=Tt((function(t,e){return xt(this,(function(n){return[2,It(bt(Cn,{method:"POST",body:{sessionLocation:t},headers:{"Content-Type":"application/json"},signal:e.signal}))]}))}))).apply(this,arguments)}function Rn(){return(Rn=Tt((function(t,e,n){return xt(this,(function(r){switch(r.label){case 0:return n||(n=new AbortController),[4,bt("".concat(jn,"/user/").concat(t),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:n.signal})];case 1:return r.sent(),[2,kt()]}}))}))).apply(this,arguments)}Dn.subscribe((function(t){return t.session&&Ct(t.session)}));var Bn=f(738);function Wn(){return Wn=Gt((function(t,e){var n,r,o,i,a,s=arguments;return qt(this,(function(u){switch(u.label){case 0:return n=!(s.length>2&&void 0!==s[2])||s[2],t?(r=null,[4,Promise.all([bt("".concat(zn,"/Patient/").concat(t),e).catch((function(t){return r=t})),n?Jt(t):Promise.resolve(null)])]):[3,2];case 1:if(o=Ft.apply(void 0,[u.sent(),2]),i=o[0],a=o[1],i.ok)return[2,i.data];if(a)return[2,a];if(r)throw r;u.label=2;case 2:return[2,null]}}))})),Wn.apply(this,arguments)}function Gn(){return(Gn=Gt((function(t){var e,n,r;return qt(this,(function(o){switch(o.label){case 0:return[4,(0,Bn.getSynchronizationItems)("patient-registration")];case 1:return e=o.sent(),n=e.find((function(e){return e.fhirPatient.id===t})),[2,null!==(r=null==n?void 0:n.fhirPatient)&&void 0!==r?r:null]}}))}))).apply(this,arguments)}var Fn=function(){var t=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return t.prototype=Object.create(Error.prototype),t}(),qn=function(e){var n=function(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r};return t(n,e),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},n}(de),$n=function(e){var n=function(t){var n=e.call(this,t)||this;return n.destination=t,n};return t(n,e),n}(me),Jn=function(e){var n=function(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t};return t(n,e),n.prototype[ge]=function(){return new $n(this)},n.prototype.lift=function(t){var e=new Kn(this,this);return e.operator=t,e},n.prototype.next=function(t){if(this.closed)throw new Fn;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},n.prototype.error=function(t){if(this.closed)throw new Fn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Fn;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Fn;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Fn;return this.hasError?(t.error(this.thrownError),de.EMPTY):this.isStopped?(t.complete(),de.EMPTY):(this.observers.push(t),new qn(this,t))},n.prototype.asObservable=function(){var t=new be;return t.source=this,t},n.create=function(t,e){return new Kn(t,e)},n}(be),Kn=function(e){var n=function(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r};return t(n,e),n.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},n.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):de.EMPTY},n}(Jn),Qn=function(e){var n=function(t){var n=e.call(this)||this;return n._value=t,n};return t(n,e),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fn;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Jn),Xn=function(){var t=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return t.prototype=Object.create(Error.prototype),t}(),Yn=new be((function(t){return t.complete()})),Zn=function(){var t=function(t){if(this.total=t,this.total<0)throw new Xn};return t.prototype.call=function(t,e){return e.subscribe(new tr(t,this.total))},t}(),tr=function(e){var n=function(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r};return t(n,e),n.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},n}(me),er=function(){var t=function(t,e){this.project=t,this.thisArg=e};return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.project,this.thisArg))},t}(),nr=function(e){var n=function(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return t(n,e),n.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},n}(me),rr="custom:(uuid,display,voided,indication,startDatetime,stopDatetime,encounters:(uuid,display,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,display),visitType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display))",or=function(){try{return JSON.parse(localStorage.getItem("openmrs:visitStoreState")||"null")}catch(t){return null}}()||{patientUuid:null,manuallySetVisitUuid:null};Xt().subscribe((function(t){var e;e=t,localStorage.setItem("openmrs:visitStoreState",JSON.stringify(e))}));var ir,ar,sr=new Qn(null);!function(t){t.NEWVISIT="startVisit",t.EDITVISIT="editVisit",t.LOADING="loadingVisit"}(ir||(ir={})),function(t){t.NOTSTARTED="notStarted",t.ONGOING="ongoing"}(ar||(ar={}));var ur={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),h}())}}}))},714:()=>{function t(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}System.register(["@openmrs/esm-state"],(function(e,n){var r={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},a=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},s=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},u=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},c=function(t,e,n,r){var o=a(t);function i(t,e){return ft(t,e,n.slice(),r.slice())}return!s((function(t,e){return!s(i,e,t)}),a(e),o)},l=function(t){return function o(i,a,s){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(a)?o:e(i)?r((function(e,n){return t(e,a,n)})):e(a)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,a,e)}));default:return e(i)&&e(a)&&e(s)?o:e(i)&&e(a)?r((function(e,n){return t(e,n,s)})):e(i)&&e(s)?r((function(e,n){return t(e,a,n)})):e(a)&&e(s)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,a,s)})):e(a)?n((function(e){return t(i,e,s)})):e(s)?n((function(e){return t(i,a,e)})):t(i,a,s)}}},f=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},p=function(t,e,n,r){return t["@@transducer/result"](n[r](At(t["@@transducer/step"],t),e))},v=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},d=function(t){return(0,kt.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1,translationOverridesLoaded:!1})},g=function(){return(0,kt.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return y(g().getState(),t)},y=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,kt.getGlobalStore)("config-extensions",{configs:{}})},b=function(t,e){var n=Object.assign({},S(w().getState(),t,e));return n.config=gt(["Display conditions","Translation overrides"],n.config),n},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},E=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},A=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){O(t,e,n[e])}))}return t},P=function(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t},M=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||T(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},_=function(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||T(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},T=function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}},x=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=d(s);if(t.moduleLoaded[s]){var c=G(s,t,e);u.setState({translationOverridesLoaded:!0,loaded:!0,config:c})}else{var l=F(s,t,e);u.setState({translationOverridesLoaded:!0,loaded:!1,config:l})}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}},j=function(t,e){var n,r,o=(n=$(W(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=M(o.value,2),s=a[0],u=a[1],c=!0,l=!1,f=void 0;try{for(var h,p=Object.entries(u)[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=M(h.value,2),d=v[0];B(v[1],s,d)}}catch(t){l=!0,f=t}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return A({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=M(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),a=g(),s=a.getState(),u={slots:A({},s.slots,i)};ht(s,u)||a.setState(u)},z=function(t,e){var n=function(t,e){var n=Dt(wt(t.schemas)),r=_(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=M(s.value,2);n=$([n,Ut(c[0],c[1])])}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(t,e);Nt.setState({config:n})},C=function(t,e,n){var r={},o=!0,i=!1,a=void 0;try{for(var s,u=e.mountedExtensions[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,l=R(c.slotModuleName,c.extensionModuleName,c.slotName,c.extensionId,t,n);r[c.slotName]=P(A({},r[c.slotName]),O({},c.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}w().setState({configs:r})},k=function(t,e){It(t,e);var n=dt(e,qt);Lt.setState((function(e){return P(A({},e),{schemas:P(A({},e.schemas),O({},t,n)),moduleLoaded:P(A({},e.moduleLoaded),O({},t,!0))})}))},L=function(t){var e=Lt.getState();Lt.setState({schemas:P(A({},e.schemas),O({},t,qt))})},V=function(t){var e=Lt.getState();Lt.setState({schemas:P(A({},e.schemas),O({},t,Ft))})},H=function(t,e){It(t,e);var n=dt(e,qt),r=Lt.getState();r.schemas[t]&&console.error("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Lt.setState({schemas:P(A({},r.schemas),O({},t,n))})},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided";Lt.setState((function(n){return P(A({},n),{providedConfigs:_(n.providedConfigs).concat([{source:e,config:t}])})}))},D=function(t){return new Promise((function(e){var n=function(t){if(t.loaded&&t.config){var n=gt(["Display conditions","Translation overrides"],t.config);e(n),o&&o()}},r=d(t);n(r.getState());var o=r.subscribe(n)}))},U=function(t){return new Promise((function(e){var n=function(t){if(t.translationOverridesLoaded&&t.config){var n,r=null!==(n=t.config["Translation overrides"])&&void 0!==n?n:{};e(r),o&&o()}},r=d(t);n(r.getState());var o=r.subscribe(n)}))},I=function(t,e,n){J(t,e,n);var r=Wt(t,e);return Bt(t,r,n),r},R=function(t,e,n,r,o,i){var a,s,u,c,l=function(t){return M(t.split("#"),1)[0]}(r),f=o.schemas[l],h=f?l:e,p=W(o,i),v=q(t,p),d=null!==(c=null==v||null===(a=v.extensionSlots)||void 0===a||null===(s=a[n])||void 0===s||null===(u=s.configure)||void 0===u?void 0:u[r])&&void 0!==c?c:{},g=$([q(h,p),d]),m=null!=f?f:o.schemas[e];J(m,g,h);var y=Wt(m,g);return Bt(m,y,h),delete y.extensionSlots,y},B=function(t,e,n){var r="".concat(e,".extensionSlots.").concat(n),o="Extension slot config '".concat(r,"'"),i=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));i.length&&Z(r,o+"' contains invalid keys '".concat(i.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||Z(r,o+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||Z(r,o+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||Z(r,o+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Y(t.configure)||Z(r,o+".configure' is invalid. Must be an object with extension IDs for keys"))},W=function(t,e){return _(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},G=function(t,e,n){var r=e.schemas[t],o=q(t,W(e,n));J(r,o,t);var i=Wt(r,o);return Bt(r,i,t),delete i.extensionSlots,i},F=function(t,e,n){var r=q(t,W(e,n)),o=Wt(qt,r);return Bt(qt,o,t),delete o.extensionSlots,o},q=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return Mt(dt)({},t)},J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u],l=n+"."+u,f=t[u];t.hasOwnProperty(u)?Rt(f,c,l):"extensionSlots"===u&&""!==n||Z(l,"Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&Q(t,[{Array:_t,Boolean:Tt,ConceptUuid:Ct,Number:xt,Object:zt,String:jt,UUID:Ct,PersonAttributeTypeUuid:Ct,PatientIdentifierTypeUuid:Ct}[e]],n)},Q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=(0,a.value)(n);"string"==typeof u&&Z(t,"object"==typeof n?"Invalid configuration for ".concat(t,": ").concat(u):"Invalid configuration value ".concat(n," for ").concat(t,": ").concat(u))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},X=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Y=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},Z=function(t,e){var n="".concat(t,":::").concat(e);Gt.has(n)||(console.error(e),Gt.add(n))},tt=function(t){t?Gt.forEach((function(e){e.startsWith(t)&&Gt.delete(e)})):Gt.clear()};o.r(i),o.d(i,{Type:function(){return yt},clearConfigErrors:function(){return tt},configExtensionStore:function(){return Ht},configInternalStore:function(){return Lt},defineConfigSchema:function(){return k},defineExtensionConfigSchema:function(){return H},getConfig:function(){return D},getConfigStore:function(){return d},getExtensionConfig:function(){return b},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return y},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},getTranslationOverrides:function(){return U},implementerToolsConfigStore:function(){return Nt},inRange:function(){return $t},isUrl:function(){return Kt},isUrlWithTemplateParameters:function(){return Jt},oneOf:function(){return Qt},processConfig:function(){return I},provide:function(){return N},registerModuleWithConfigSystem:function(){return L},registerTranslationNamespace:function(){return V},temporaryConfigStore:function(){return Vt},validator:function(){return v},validators:function(){return Xt}});var et="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},nt=Object.prototype.toString,rt=function(){return"[object Arguments]"===nt.call(arguments)?function(t){return"[object Arguments]"===nt.call(t)}:function(t){return u("callee",t)}}(),ot=rt,it=!{toString:null}.propertyIsEnumerable("toString"),at=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],st=function(){return arguments.propertyIsEnumerable("length")}(),ut=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ct="function"!=typeof Object.keys||st?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=st&&ot(t);for(e in t)!u(e,t)||o&&"length"===e||(r[r.length]=e);if(it)for(n=at.length-1;n>=0;)u(e=at[n],t)&&!ut(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),lt=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ft(e,n,r,o){if(et(e,n))return!0;var i,a,s=lt(e);if(s!==lt(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(a=String(i).match(/^function (\w*)/))?"":a[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!et(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!et(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(s){case"Map":return e.size===n.size&&c(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&c(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ct(e);if(f.length!==ct(n).length)return!1;var h=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var v=f[l];if(!u(v,n)||!ft(n[v],e[v],h,p))return!1;l-=1}return!0}var ht=r((function(t,e){return ft(t,e,[],[])})),pt=l((function(t,e,n){var r,o={};for(r in e)u(r,e)&&(o[r]=u(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)u(r,n)&&!u(r,o)&&(o[r]=n[r]);return o})),vt=l((function t(e,n,r){return pt((function(n,r,o){return f(r)&&f(o)?t(e,r,o):e(n,r,o)}),n,r)})),dt=r((function(t,e){return vt((function(t,e,n){return n}),t,e)})),gt=r((function(t,e){for(var n={},r={},o=0,i=t.length;o<i;)r[t[o]]=1,o+=1;for(var a in e)r.hasOwnProperty(a)||(n[a]=e[a]);return n}));function mt(t,e,n,r){var o,i=function(o){for(var i=e.length,a=0;a<i;){if(t===e[a])return n[a];a+=1}for(var s in e[a+1]=t,n[a+1]=o,t)o[s]=r?mt(t[s],e,n,!0):t[s];return o};switch(lt(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var yt,wt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():mt(t,[],[],!0)})),bt=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},St=n((function(t){return!!bt(t)||!!t&&"object"==typeof t&&!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))})),Et=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),Ot=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,a){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,a,s){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,a,s,u){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,a,s,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,a,s,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),At=Ot,Pt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",Mt=l((function(t,e,n){if("function"==typeof t&&(t=function(t){return new Et(t)}(t)),St(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return p(t,e,n,"fantasy-land/reduce");if(null!=n[Pt])return h(t,e,n[Pt]());if("function"==typeof n.next)return h(t,e,n);if("function"==typeof n.reduce)return p(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}));!function(t){t.Array="Array",t.Boolean="Boolean",t.ConceptUuid="ConceptUuid",t.Number="Number",t.Object="Object",t.String="String",t.UUID="UUID",t.PersonAttributeTypeUuid="PersonAttributeTypeUuid",t.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid"}(yt||(yt={}));var _t=v((function(t){return Array.isArray(t)}),"must be an array"),Tt=v((function(t){return"boolean"==typeof t}),"must be a boolean"),xt=v((function(t){return"number"==typeof t}),"must be a number"),jt=v((function(t){return"string"==typeof t}),"must be a string"),zt=v((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),Ct=v((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),kt=o(685),Lt=(0,kt.createGlobalStore)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),Vt=(0,kt.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Vt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Ht=(0,kt.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Nt=(0,kt.createGlobalStore)("config-implementer-tools",{config:{}});function Dt(t){return t.hasOwnProperty("_default")?P(A({},t),{_value:t._default,_source:"default"}):Y(t)?Object.keys(t).reduce((function(e,n){return e[n]=Dt(t[n]),e}),{}):{}}function Ut(t,e){return Y(t)?Object.keys(t).reduce((function(n,r){return n[r]=Ut(t[r],e),n}),{}):{_value:t,_source:e}}function It(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,a=void 0;try{for(var s,u=function(){var o=s.value,i=n+(n&&".")+o,a=e[o];if("Display conditions"===i&&console.error("".concat(t,' declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ').concat(r)),"Translation overrides"===i&&console.error("".concat(t,' declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ').concat(r)),!Y(a))return console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r)),"continue";a.hasOwnProperty("_default")||It(t,a,i);var u=a._elements;if(X(u)&&It(t,u,i+"._elements"),a._validators){var c=!0,l=!1,f=void 0;try{for(var h,p=a._validators[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(i,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){l=!0,f=t}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}}var d=a._type;d&&!Object.values(yt).includes(d)&&console.error("".concat(t," has invalid type for key '").concat(i,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(yt).join(", "),". ")+"Received '".concat(d,"'")),Object.keys(a).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(a))),u&&d&&![yt.Array,yt.Object].includes(d)&&console.error("".concat(t," has bad config schema definition for key '").concat(i,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(d)))},c=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(s=c.next()).done);o=!0)u()}catch(t){i=!0,a=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}function Rt(t,e,n){K(n,t._type,e),Y(e)?t._type===yt.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u];J(t._elements,c,"".concat(n,".").concat(u))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||J(t,e,n):t._type===yt.Array&&function(t,e,n){if(X(t._elements))for(var r=0;r<e.length;r++)Rt(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&Q(n,t._validators,e),Y(e)){var r=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=e[u],l=n+"."+u,f=t[u];t._type===yt.Object&&t._elements?Bt(t._elements,c,l):Bt(f,c,l)}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var h=0;h<e.length;h++)Bt(t._elements,e[h],"".concat(n,"[").concat(h,"]"))}x(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return x(t,Vt.getState())})),Vt.subscribe((function(t){return x(Lt.getState(),t)})),z(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return z(t,Vt.getState())})),Vt.subscribe((function(t){return z(Lt.getState(),t)})),j(Lt.getState(),Vt.getState()),Lt.subscribe((function(t){return j(t,Vt.getState())})),Vt.subscribe((function(t){return j(Lt.getState(),t)})),C(Lt.getState(),Ht.getState(),Vt.getState()),Lt.subscribe((function(t){C(t,Ht.getState(),Vt.getState())})),Ht.subscribe((function(t){C(Lt.getState(),t,Vt.getState())})),Vt.subscribe((function(t){C(Lt.getState(),Ht.getState(),t)}));var Wt=function(t,e){var n=wt(e);if(!t)return n;var r=!0,o=!1,i=void 0;try{for(var a,s=function(){var e=a.value,r=n[e],o=t[e];if(o&&(o.hasOwnProperty("_type")||o.hasOwnProperty("_default"))){n.hasOwnProperty(e)||(n[e]=o._default);var i=o._elements;if(r&&X(i))if(o._type===yt.Array&&Array.isArray(r)){var s=r.map((function(t){return Wt(i,t)}));n[e]=s}else if(o._type===yt.Object){var u=!0,c=!1,l=void 0;try{for(var f,h=Object.keys(r)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var p=f.value;r[p]=Wt(i,r[p])}}catch(t){c=!0,l=t}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}else if(Y(o)){var v=null!=r?r:{};Y(v)&&(n[e]=Wt(o,v))}},u=Object.keys(t)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s()}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n},Gt=new Set,Ft={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:yt.Object,_default:{},_validators:[v((function(t){return Object.keys(t).every((function(t){return/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(t)}))}),(function(t){var e=Object.keys(t).filter((function(t){return!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(t)}));return"The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ".concat(e.join(", "),".")}))]}},qt=A({"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:yt.Array,_default:[]}}},Ft),$t=function(t,e){return v((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Jt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return v((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},Kt=Jt([]),Qt=function(t){return v((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Xt={inRange:$t,isUrl:Kt,isUrlWithTemplateParameters:Jt,oneOf:Qt}}(),i}())}}}))},254:t=>{"use strict";t.exports=n},45:t=>{"use strict";t.exports=r},513:t=>{"use strict";t.exports=o},740:t=>{"use strict";t.exports=i},685:t=>{"use strict";t.exports=a},901:t=>{"use strict";t.exports=s},688:t=>{"use strict";t.exports=u},954:t=>{"use strict";t.exports=c},493:t=>{"use strict";t.exports=l},792:t=>{"use strict";t.exports=f}},e={};function h(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,h),o.exports}h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),h.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var p={};return(()=>{"use strict";var t=h(714);const e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.646 8.116l.021-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-black)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037l10.784 17.492h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45zM185.885 90.998h1.424l2.734 6.326h.023l2.758-6.326h1.391v8.07h-.957v-6.77h-.024l-2.894 6.77h-.582l-2.894-6.77h-.022v6.77h-.957zM198.386 90.998h5.071v.889h-4.114v2.53h3.841v.89h-3.841v2.871h4.32v.89h-5.277zM207.891 98.178h1.822c1.848 0 3.25-.935 3.25-3.146s-1.402-3.145-3.25-3.145h-1.822zm-.957-7.18h3.1c1.583 0 3.953 1.06 3.953 4.034 0 2.976-2.37 4.036-3.953 4.036h-3.1zM217.007 99.068h.958v-8.07h-.958zM227.105 92.663c-.478-.651-1.242-.981-2.017-.981-1.8 0-3.077 1.584-3.077 3.35 0 1.87 1.266 3.352 3.077 3.352.98 0 1.767-.4 2.337-1.129l.718.603c-.718.97-1.766 1.414-3.055 1.414-2.314 0-4.102-1.79-4.102-4.24 0-2.37 1.709-4.239 4.102-4.239 1.095 0 2.166.377 2.849 1.266zM233.557 92.23h-.024l-1.675 3.965h3.294zm-.434-1.232h.9l3.43 8.07h-1.117l-.82-1.984h-4.034l-.832 1.984h-1.082zM240.006 90.998h.958v7.18h3.692v.89h-4.65zM252.793 94.554h.855c1.06 0 2.439 0 2.439-1.334 0-1.161-1.014-1.333-1.948-1.333h-1.346zm-.957-3.556h2.063c1.561 0 3.214.228 3.214 2.222 0 1.174-.764 1.938-2.018 2.132l2.291 3.716h-1.173l-2.19-3.625h-1.23v3.625h-.957zM260.51 90.998h5.07v.889h-4.112v2.53h3.84v.89h-3.84v2.871h4.318v.89h-5.276zM274.402 92.663c-.479-.651-1.242-.981-2.018-.981-1.8 0-3.077 1.584-3.077 3.35 0 1.87 1.266 3.352 3.077 3.352.98 0 1.767-.4 2.336-1.129l.718.603c-.718.97-1.766 1.414-3.054 1.414-2.313 0-4.102-1.79-4.102-4.24 0-2.37 1.709-4.239 4.102-4.239 1.094 0 2.166.377 2.85 1.266zM284.739 95.032c0-1.857-1.3-3.35-3.191-3.35-1.892 0-3.191 1.493-3.191 3.35 0 1.858 1.299 3.352 3.191 3.352s3.191-1.494 3.191-3.352m-7.409 0c0-2.439 1.767-4.239 4.218-4.239s4.217 1.8 4.217 4.239-1.767 4.24-4.217 4.24c-2.451 0-4.218-1.8-4.218-4.24M289.514 94.554h.855c1.059 0 2.438 0 2.438-1.334 0-1.161-1.014-1.333-1.948-1.333h-1.345zm-.958-3.556h2.062c1.563 0 3.215.228 3.215 2.222 0 1.174-.763 1.938-2.016 2.132l2.289 3.716h-1.173l-2.189-3.625h-1.23v3.625h-.958zM297.81 98.178h1.825c1.845 0 3.246-.935 3.246-3.146s-1.401-3.145-3.246-3.145h-1.825zm-.957-7.18h3.1c1.585 0 3.956 1.06 3.956 4.034 0 2.976-2.371 4.036-3.956 4.036h-3.1zM315.407 92.422c-.318-.513-.89-.74-1.47-.74-.844 0-1.721.4-1.721 1.356 0 .74.41 1.072 1.698 1.482 1.254.399 2.417.81 2.417 2.393 0 1.607-1.38 2.36-2.838 2.36-.935 0-1.938-.309-2.486-1.118l.821-.672c.342.593 1.026.9 1.721.9.821 0 1.754-.478 1.754-1.402 0-.991-.67-1.163-2.107-1.64-1.139-.377-2.006-.878-2.006-2.222 0-1.551 1.333-2.326 2.747-2.326.9 0 1.664.25 2.256.946zM320.844 95.591l-3.009-4.593h1.219l2.269 3.647 2.335-3.647h1.152l-3.01 4.593v3.477h-.956zM330.565 92.422c-.32-.513-.89-.74-1.471-.74-.843 0-1.72.4-1.72 1.356 0 .74.41 1.072 1.698 1.482 1.254.399 2.415.81 2.415 2.393 0 1.607-1.378 2.36-2.837 2.36-.934 0-1.937-.309-2.485-1.118l.821-.672c.342.593 1.026.9 1.721.9.821 0 1.754-.478 1.754-1.402 0-.991-.671-1.163-2.107-1.64-1.139-.377-2.006-.878-2.006-2.222 0-1.551 1.333-2.326 2.746-2.326.901 0 1.665.25 2.257.946zM339.283 91.887h-2.666v7.18h-.958v-7.18h-2.667v-.889h6.291zM341.665 90.998h5.071v.889h-4.113v2.53h3.84v.89h-3.84v2.871h4.319v.89h-5.277zM349.905 90.998h1.424l2.735 6.326h.023l2.758-6.326h1.391v8.07h-.958v-6.77h-.023l-2.894 6.77h-.582l-2.895-6.77h-.021v6.77h-.958z" clip-rule="evenodd"/></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.647 8.116l.02-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-black)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037L334.018 79h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45z" clip-rule="evenodd"/></svg>',r='<svg xmlns="http://www.w3.org/2000/svg" width="121" height="118"><path fill="var(--logo-red)" fill-rule="evenodd" d="M40.436 39.474a27.93 27.93 0 0 1 19.811-8.205c7.717 0 14.705 3.122 19.77 8.167l.021-18.656A43.1 43.1 0 0 0 60.247 16c-7.133 0-13.899 1.943-19.832 4.999z" clip-rule="evenodd"/><path fill="var(--logo-orange)" fill-rule="evenodd" d="M80.038 79.064a27.92 27.92 0 0 1-19.808 8.205c-7.717 0-14.705-3.121-19.774-8.167l-.02 18.657a43.1 43.1 0 0 0 19.794 4.78 43.1 43.1 0 0 0 19.794-4.781z" clip-rule="evenodd"/><path fill="var(--logo-purple)" fill-rule="evenodd" d="M40.474 79.089c-5.069-5.069-8.205-12.07-8.205-19.808 0-7.717 3.121-14.704 8.167-19.773l-18.657-.02A43.1 43.1 0 0 0 17 59.281a43.1 43.1 0 0 0 4.782 19.795z" clip-rule="evenodd"/><path fill="var(--logo-green)" fill-rule="evenodd" d="M80.027 39.435a27.93 27.93 0 0 1 8.205 19.811 27.92 27.92 0 0 1-8.168 19.769l18.658.021a43.1 43.1 0 0 0 4.779-19.79 43.1 43.1 0 0 0-4.781-19.798z" clip-rule="evenodd"/></svg>';var o=document.createElement("div"),i=function(){document.body.appendChild(o)};function a(t,e){var n=(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg");n&&(n.id=t,o.appendChild(n))}o.id="omrs-svgs-container",o.style.display="none","complete"===document.readyState?i():window.addEventListener("load",i);const s='<svg xmlns="http://www.w3.org/2000/svg"><path d="M9 2H7v2h2zM4 2H2v2h2zM14 2h-2v2h2zM9 7H7v2h2zM4 7H2v2h2zM14 7h-2v2h2zM9 12H7v2h2zM4 12H2v2h2zM14 12h-2v2h2z"/></svg>';var u={"Brand color #1":{_default:"#005d5d",_type:t.Type.String},"Brand color #2":{_default:"#004144",_type:t.Type.String},"Brand color #3":{_default:"#007d79",_type:t.Type.String},patientPhotoConceptUuid:{_type:t.Type.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:t.Type.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[t.validators.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}}};Number.MAX_SAFE_INTEGER;var c=h(954),l=h(792),f={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?f.enableCssCustomProperties=!0:f.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?f.enableUseControlledStateWithValue=!0:f.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?f.enableCssGrid=!0:f.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?f.enableV11Release=!0:f.enableV11Release=!1:f.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?f.enableExperimentalTileContrast=!0:f.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?f.enableV12TileDefaultIcons=!0:f.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?f.enableV12Overflowmenu=!0:f.enableV12Overflowmenu=!1}catch(t){f.enableCssCustomProperties=!1,f.enableUseControlledStateWithValue=!1,f.enableCssGrid=!1,f.enableV11Release=!0,f.enableExperimentalTileContrast=!1,f.enableV12TileDefaultIcons=!1,f.enableV12Overflowmenu=!1}var p=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:f.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:f.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:f.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:f.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:f.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:f.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:f.enableV12Overflowmenu}];function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==(void 0===(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?"undefined":(o=i)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)?i:String(i)),r)}var o,i}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}for(var y=function(){function t(e){var n=this;(function(t,e){if(n=t,!(null!=(r=e)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r})(this,t),this.flags=new Map,e&&Object.keys(e).forEach((function(t){n.flags.set(t,e[t])}))}var e,n;return e=t,n=[{key:"checkForFlag",value:function(t){if(!this.flags.has(t))throw new Error("Unable to find a feature flag with the name: `".concat(t,"`"))}},{key:"add",value:function(t,e){if(this.flags.has(t))throw new Error("The feature flag: ".concat(t," already exists"));this.flags.set(t,e)}},{key:"enable",value:function(t){this.checkForFlag(t),this.flags.set(t,!0)}},{key:"disable",value:function(t){this.checkForFlag(t),this.flags.set(t,!1)}},{key:"merge",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.flags.set(n,t[n])}))}},{key:"mergeWithScope",value:function(t){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.flags);try{for(n.s();!(e=n.n()).done;){var r=d(e.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"enabled",value:function(t){return this.checkForFlag(t),this.flags.get(t)}}],n&&v(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),w=new y(undefined),b=0;b<p.length;b++){var S=p[b];w.add(S.name,S.enabled)}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}!function(){w.merge.apply(w,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1}),h(279),new l.Subject,new l.Subject,new l.Subject,h(976),new l.Subject;var P=Object.freeze({__proto__:null,get start(){return se},get ensureJQuerySupport(){return Vt},get setBootstrapMaxTime(){return dt},get setMountMaxTime(){return gt},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return yt},get registerApplication(){return $t},get unregisterApplication(){return Kt},get getMountedApps(){return Wt},get getAppStatus(){return Ft},get unloadApplication(){return Qt},get checkActivityFunctions(){return Jt},get getAppNames(){return Gt},get pathToActiveWhen(){return Zt},get navigateToUrl(){return Mt},get patchHistoryApi(){return Ct},get triggerAppChange(){return re},get addErrorHandler(){return j},get removeErrorHandler(){return z},get mountRootParcel(){return lt},get NOT_LOADED(){return L},get LOADING_SOURCE_CODE(){return V},get NOT_BOOTSTRAPPED(){return H},get BOOTSTRAPPING(){return N},get NOT_MOUNTED(){return D},get MOUNTING(){return U},get UPDATING(){return R},get LOAD_ERROR(){return G},get MOUNTED(){return I},get UNLOADING(){return W},get UNMOUNTING(){return B},get SKIP_BECAUSE_BROKEN(){return F}}),M=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,_=function(){try{var t=new M("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?M:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},T=[];function x(t,e,n){var r=k(t,e,n);T.length?T.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function j(t){if("function"!=typeof t)throw Error(C(28,!1));T.push(t)}function z(t){if("function"!=typeof t)throw Error(C(29,!1));var e=!1;return T=T.filter((function(n){var r=n===t;return e=e||r,!r})),e}function C(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function k(t,e,n){var r,o,i,a="".concat(Q(e)," '").concat(J(e),"' died in status ").concat(e.status,": ");if(o=t,null!=(i=Error)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i){try{t.message=a+t.message}catch(t){}r=t}else{console.warn(C(30,!1,e.status,J(e)));try{r=Error(a+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=J(e),e.status=n,r}var L="NOT_LOADED",V="LOADING_SOURCE_CODE",H="NOT_BOOTSTRAPPED",N="BOOTSTRAPPING",D="NOT_MOUNTED",U="MOUNTING",I="MOUNTED",R="UPDATING",B="UNMOUNTING",W="UNLOADING",G="LOAD_ERROR",F="SKIP_BECAUSE_BROKEN";function q(t){return t.status===I}function $(t){try{return t.activeWhen(window.location)}catch(e){return x(e,t,F),!1}}function J(t){return t.name}function K(t){return Boolean(t.unmountThisParcel)}function Q(t){return K(t)?"parcel":"application"}function X(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function Y(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function Z(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!Y(e,(function(t){return"function"!=typeof t}))));var e}function tt(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=Q(t),o=J(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return et(n)?n:Promise.reject(C(15,!1,r,o,e,a))}))}),Promise.resolve())}}function et(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}var nt=[];function rt(t,e){var n=function(){return t.status=D,t};return Promise.resolve().then((function(){return t.status!==H?t:(t.status=N,t.bootstrap?wt(t,"bootstrap").then(n).catch((function(n){if(e)throw k(n,t,F);return x(n,t,F),t})):Promise.resolve().then(n))}))}function ot(t,e){return Promise.resolve().then((function(){var n=function(){return wt(t,"unmount").then((function(){t.status=D}),(function(n){if(e)throw k(n,t,F);x(n,t,F)}))};if(t.status!==I)return t;t.status=B;var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw k(n,t,F);x(n,t,F)}))})).then((function(){return t}))}))}var it=!1,at=!1;function st(t,e){return Promise.resolve().then((function(){return t.status!==D?t:(it||(window.dispatchEvent(new _("single-spa:before-first-mount")),it=!0),t.status=U,wt(t,"mount").then((function(){return t.status=I,at||(window.dispatchEvent(new _("single-spa:first-mount")),at=!0),t})).catch((function(n){var r=function(){if(e)throw k(n,t,F);return x(n,t,F),t};return t.status=I,ot(t,!0).then(r,r)})))}))}var ut=0,ct={parcels:{}};function lt(){return ft.apply(ct,arguments)}function ft(t,e){var n=this;if(!t||"object"!=typeof t&&"function"!=typeof t)throw Error(C(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(C(3,!1,A(t.name)));var r=ut++,o=t.name||"parcel-".concat(r);if("object"!=typeof e)throw Error(C(4,!1,o,void 0===e?"undefined":A(e)));if(!e.domElement)throw Error(C(5,!1,o));var i,a="function"==typeof t,s=a?t:function(){return Promise.resolve(t)},u={id:r,parcels:{},status:a?V:H,customProps:e,parentName:J(n),unmountThisParcel:function(){return p.then((function(){if(u.status!==I)throw Error(C(6,!1,o,u.status));return ot(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return l(t),t})).catch((function(t){throw u.status=F,f(t),t}))}};n.parcels[r]=u;var c=s();if(!c||"function"!=typeof c.then)throw Error(C(7,!1));c=c.then((function(t){if(!t)throw Error(C(8,!1));if(o=t.name||"parcel-".concat(r),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Z(t.bootstrap))throw Error(C(9,!1,o));if(!Z(t.mount))throw Error(C(10,!1,o));if(!Z(t.unmount))throw Error(C(11,!1,o));if(t.update&&!Z(t.update))throw Error(C(12,!1,o));var e=tt(t,"bootstrap"),n=tt(t,"mount"),a=tt(t,"unmount");u.status=H,u.name=o,u.bootstrap=e,u.mount=n,u.unmount=a,u.timeouts=bt(t.timeouts),t.update&&(u.update=tt(t,"update"),i.update=function(t){return u.customProps=t,ht((e=u,Promise.resolve().then((function(){if(e.status!==I)throw Error(C(32,!1,J(e)));return e.status=R,wt(e,"update").then((function(){return e.status=I,e})).catch((function(t){throw k(t,e,F)}))}))));var e})}));var l,f,h=c.then((function(){return rt(u,!0)})),p=h.then((function(){return st(u,!0)})),v=new Promise((function(t,e){l=t,f=e}));return i={mount:function(){return ht(Promise.resolve().then((function(){if(u.status!==D)throw Error(C(13,!1,o,u.status));return n.parcels[r]=u,st(u)})))},unmount:function(){return ht(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:ht(c),bootstrapPromise:ht(h),mountPromise:ht(p),unmountPromise:ht(v)}}function ht(t){return t.then((function(){return null}))}function pt(t){var e=J(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(C(40,!1),e,n));var r=X({},n,{name:e,mountParcel:ft.bind(t),singleSpa:P});return K(t)&&(r.unmountSelf=t.unmountThisParcel),r}var vt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function dt(t,e,n){if("number"!=typeof t||t<=0)throw Error(C(16,!1));vt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function gt(t,e,n){if("number"!=typeof t||t<=0)throw Error(C(17,!1));vt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function mt(t,e,n){if("number"!=typeof t||t<=0)throw Error(C(18,!1));vt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function yt(t,e,n){if("number"!=typeof t||t<=0)throw Error(C(19,!1));vt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function wt(t,e){var n=t.timeouts[e],r=n.warningMillis,o=Q(t);return new Promise((function(i,a){var s=!1,u=!1;t[e](pt(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var c=C(31,!1,e,o,J(t),n.millis);function l(t){if(!s)if(!0===t)u=!0,n.dieOnTimeout?a(Error(c)):console.error(c);else if(!u){var e=t,o=e*r;console.warn(c),o+r<n.millis&&setTimeout((function(){return l(e+1)}),r)}}}))}function bt(t){var e={};for(var n in vt)e[n]=X({},vt[n],t&&t[n]||{});return e}function St(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==L&&t.status!==G?t:(t.status=V,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(pt(t));if(!et(r))throw n=!0,Error(C(33,!1,J(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!=typeof(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!Z(e.bootstrap)&&(r=35),Z(e.mount)||(r=36),Z(e.unmount)||(r=37);var o=Q(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(C(r,!1,o,J(t),i),e),x(void 0,t,F),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=X({},t.devtools.overlays,e.devtools.overlays)),t.status=H,t.bootstrap=tt(e,"bootstrap"),t.mount=tt(e,"mount"),t.unmount=tt(e,"unmount"),t.unload=tt(e,"unload"),t.timeouts=bt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=F:(r=G,t.loadErrorTime=(new Date).getTime()),x(e,t,r),t})));var e,n}))}var Et,Ot="undefined"!=typeof window,At={hashchange:[],popstate:[]},Pt=["hashchange","popstate"];function Mt(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(C(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=kt(window.location.href),r=kt(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function _t(t){var e=this;if(t){var n=t[0].type;Pt.indexOf(n)>=0&&At[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function Tt(){oe([],arguments)}function xt(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Et&&n===o||window.dispatchEvent(function(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}(window.history.state,e)),r}}var jt=null,zt=!1;function Ct(t){if(zt)throw Error(C(43,!1));Et=!t||!t.hasOwnProperty("urlRerouteOnly")||t.urlRerouteOnly,zt=!0,jt=window.history.replaceState,window.addEventListener("hashchange",Tt),window.addEventListener("popstate",Tt);var e=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Pt.indexOf(t)>=0)||Y(At[t],(function(t){return t===n})))return e.apply(this,arguments);At[t].push(n)},window.removeEventListener=function(t,e){if(!("function"==typeof e&&Pt.indexOf(t)>=0))return n.apply(this,arguments);At[t]=At[t].filter((function(t){return t!==e}))},window.history.pushState=xt(window.history.pushState,"pushState"),window.history.replaceState=xt(jt,"replaceState")}function kt(t){var e=document.createElement("a");return e.href=t,e}Ot&&(window.singleSpaNavigate?console.warn(C(41,!1)):window.singleSpaNavigate=Mt);var Lt=!1;function Vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Lt){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Ht.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Ht.call(this,n,window.removeEventListener,t,e,arguments)},Lt=!0}}function Ht(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){Pt.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var Nt={};function Dt(t){return Promise.resolve().then((function(){var e=Nt[J(t)];if(!e)return t;if(t.status===L)return Ut(t,e),t;if(t.status===W)return e.promise.then((function(){return t}));if(t.status!==D&&t.status!==G)return t;var n=t.status===G?Promise.resolve():wt(t,"unload");return t.status=W,n.then((function(){return Ut(t,e),t})).catch((function(n){return function(t,e,n){delete Nt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,x(n,t,F),e.reject(n)}(t,e,n),t}))}))}function Ut(t,e){delete Nt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=L,e.resolve()}function It(t,e,n,r){Nt[J(t)]={app:t,resolve:n,reject:r},Object.defineProperty(Nt[J(t)],"promise",{get:e})}function Rt(t){return Nt[t]}var Bt=[];function Wt(){return Bt.filter(q).map(J)}function Gt(){return Bt.map(J)}function Ft(t){var e=Y(Bt,(function(e){return J(e)===t}));return e?e.status:null}var qt=!1;function $t(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"==typeof t?(function(t){if(Array.isArray(t)||null===t)throw Error(C(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return e.indexOf(n)>=0?t:t.concat(n)}),[]);if(0!==n.length)throw Error(C(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(C(20,!1));if("object"!=typeof t.app&&"function"!=typeof t.app)throw Error(C(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(C(24,!1));if(!Yt(t.customProps))throw Error(C(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(C(20,!1));if(!e)throw Error(C(23,!1));if("function"!=typeof n)throw Error(C(24,!1));if(!Yt(r))throw Error(C(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:Zt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(ue()||qt||(qt=!0,setTimeout((function(){ue()||console.warn(C(1,!1))}),5e3)),-1!==Gt().indexOf(o.name))throw Error(C(21,!1,o.name));Bt.push(X({loadErrorTime:null,status:L,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Ot&&(Vt(),oe())}function Jt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Bt.filter((function(e){return e.activeWhen(t)})).map(J)}function Kt(t){if(0===Bt.filter((function(e){return J(e)===t})).length)throw Error(C(25,!1,t));return(Ot?Qt(t,{waitForUnmount:!1}):Promise.resolve()).then((function(){var e=Bt.map(J).indexOf(t);Bt.splice(e,1)}))}function Qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(C(26,!1));var n=Y(Bt,(function(e){return J(e)===t}));if(!n)throw Error(C(27,!1,t));var r,o=Rt(J(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){It(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,Xt(n,o.resolve,o.reject)):r=new Promise((function(t,e){It(n,(function(){return r}),t,e),Xt(n,t,e)})),r}function Xt(t,e,n){Promise.resolve().then((function(){if(Y(Jt(),(function(e){return e===J(t)})))return re()})).then((function(){return ot(t).then(Dt).then((function(){e(),setTimeout((function(){oe()}))}))})).catch(n)}function Yt(t){return!t||"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)}function Zt(t,e){var n=function(t,e){var n=function(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var s=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(s,"$"):"".concat(i,"(/").concat(s,")?(#.*)?$")}o=!o,r=n},r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a=0;a<t.length;a++){var s=t[a];(!o&&":"===s||o&&"/"===s)&&n(a)}return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var te=!1,ee=[],ne=Ot&&window.location.href;function re(){return oe()}function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e="function"==typeof(null==t?void 0:t.then)?t:Promise.resolve(t);v.push(e.catch((function(t){return console.warn(Error(C(42,!1))),console.warn(t),!1})))},o=function(){var e=Wt();t.forEach((function(t){return t.resolve(e)}));try{s(0===u.length?"no-app-change":"app-change",a()),s("routing-event",a())}catch(t){setTimeout((function(){throw t}))}if(te=!1,ee.length>0){var n=ee;ee=[],oe(n)}return e},i=function(){n||(t.forEach((function(t){_t(t.eventArguments)})),_t(e))},a=function(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,o={},i=(O(t={},I,[]),O(t,D,[]),O(t,L,[]),O(t,F,[]),t);n?(h.concat(p).forEach((function(t,e){s(t,I)})),l.forEach((function(t){s(t,L)})),f.forEach((function(t){s(t,D)}))):u.forEach((function(t){s(t)}));var a={detail:{newAppStatuses:o,appsByNewStatus:i,totalAppChanges:u.length,originalEvent:null==e?void 0:e[0],oldUrl:d,newUrl:g}};return r&&X(a.detail,r),a;function s(t,e){var n=J(t);e=e||Ft(n),o[n]=e,(i[e]=i[e]||[]).push(n)}},s=function(t,e){n||window.dispatchEvent(new _("single-spa:".concat(t),e))};if(te)return new Promise((function(t,n){ee.push({resolve:t,reject:n,eventArguments:e})}));var u,c=function(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Bt.forEach((function(i){var a=i.status!==F&&$(i);switch(i.status){case G:a&&o-i.loadErrorTime>=200&&n.push(i);break;case L:case V:a&&n.push(i);break;case H:case D:!a&&Rt(J(i))?t.push(i):a&&r.push(i);break;case I:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}(),l=c.appsToUnload,f=c.appsToUnmount,h=c.appsToLoad,p=c.appsToMount,v=[],d=ne,g=ne=window.location.href;return ue()?(te=!0,u=l.concat(h,f,p),Promise.resolve().then((function(){return s(0===u.length?"before-no-app-change":"before-app-change",a(!0)),s("before-routing-event",a(!0,{cancelNavigation:r})),Promise.all(v).then((function(n){if(n.some((function(t){return t})))return jt.call(window.history,history.state,"",d.substring(location.origin.length)),ne=location.href,te=!1,oe(t,e,!0);var r=l.map(Dt),u=f.map(ot).map((function(t){return t.then(Dt)})).concat(r),c=Promise.all(u);c.then((function(){s("before-mount-routing-event",a(!0))}),(function(t){throw t}));var v=h.map((function(t){return St(t).then((function(t){return ie(t,c)}))})),g=p.filter((function(t){return h.indexOf(t)<0})).map((function(t){return ie(t,c)}));return c.catch((function(t){throw i(),t})).then((function(){return i(),Promise.all(v.concat(g)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(o).then((function(){}),(function(t){throw t}))}))}))}))):(u=h,Promise.resolve().then((function(){var t=h.map(St);return Promise.all(t).then(i).then((function(){return[]})).catch((function(t){throw i(),t})).finally((function(){}))})))}function ie(t,e){return $(t)?rt(t).then((function(t){return e.then((function(){return $(t)?st(t):t}))})):e.then((function(){return t}))}var ae=!1;function se(t){ae=!0,Ot&&(Ct(t),oe())}function ue(){return ae}var ce={getRawAppData:function(){return function(t){if(Array.isArray(t))return E(t)}(t=Bt)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t},reroute:oe,NOT_LOADED:L,toLoadPromise:St,toBootstrapPromise:rt,unregisterApplication:Kt,getProfilerData:function(){return nt}};Ot&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=ce);var le=h(685);h(45),h(254),(0,le.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,h(740),h(513),h(901);(0,le.createGlobalStore)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal"});var fe=null;try{fe=require("react").createContext()}catch(M){}function he(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?he(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ge(t,e){return(ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function me(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ge(t,e)}(r,c.Component);var e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=de(t);if(e){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return me(t)}(this,n)}}(r);function r(t){var e;if(function(t,e){if(n=t,!(null!=(r=e)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r}(this,r),ve(me(e=n.call(this,t)),"handleRef",(function(t){e.el=t})),ve(me(e),"addThingToDo",(function(t,n){e.state.hasError&&"unmount"!==t||(e.nextThingToDo=(e.nextThingToDo||Promise.resolve()).then((function(){if(!e.unmounted||"unmount"===t)return n.apply(void 0,arguments)})).catch((function(n){throw e.nextThingToDo=Promise.resolve(),e.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(t,"', parcel threw an error: ").concat(n.message)),e.props.handleError?e.props.handleError(n):setTimeout((function(){throw n})),n})))})),ve(me(e),"getParcelProps",(function(){var t=pe(pe({},e.props),{},{domElement:e.el});return delete t.mountParcel,delete t.config,delete t.wrapWith,delete t.wrapStyle,delete t.appendTo,delete t.handleError,delete t.parcelDidMount,t})),e.state={hasError:!1},!t.config)throw new Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return e}return(e=[{key:"componentDidMount",value:function(){var t=this;this.addThingToDo("mount",(function(){var e,n=t.props.mountParcel||t.mountParcel;if(!n)throw new Error("\n\t\t\t\t <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n\t\t\t\t If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop\t\n\t\t\t\t");return t.el?e=t.el:(t.createdDomElement=e=document.createElement(t.props.wrapWith),Object.keys(t.props.wrapStyle).forEach((function(n){e.style[n]=t.props.wrapStyle[n]})),t.props.appendTo.appendChild(e)),t.parcel=n(t.props.config,pe({domElement:e},t.getParcelProps())),t.parcel.mountPromise.then(t.props.parcelDidMount),t.parcel.mountPromise}))}},{key:"componentDidUpdate",value:function(){var t=this;this.addThingToDo("update",(function(){if(t.parcel&&t.parcel.update)return t.parcel.update(t.getParcelProps())}))}},{key:"componentWillUnmount",value:function(){var t=this;this.addThingToDo("unmount",(function(){if(t.parcel&&"MOUNTED"===t.parcel.getStatus())return t.parcel.unmount()})),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var t=this;if(this.props.appendTo)return fe&&fe.Consumer?c.createElement(fe.Consumer,null,(function(e){return t.mountParcel=e?e.mountParcel:null,null})):null;var e=fe&&fe.Consumer?c.createElement(fe.Consumer,null,(function(e){return t.mountParcel=e?e.mountParcel:null,null})):void 0;return c.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},e)}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(r.prototype,e),r}();ve(ye,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),(0,le.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase}),h(688),h(353);var we=h(921);const be=()=>{},Se=be(),Ee=Object,Oe=t=>t===Se,Ae=t=>"function"==typeof t,Pe=(t,e)=>({...t,...e}),Me=new WeakMap;let _e=0;const Te=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let o,i;if(Ee(t)!==t||r||n==RegExp)o=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=Me.get(t),o)return o;if(o=++_e+"~",Me.set(t,o),n==Array){for(o="@",i=0;i<t.length;i++)o+=Te(t[i])+",";Me.set(t,o)}if(n==Ee){o="#";const e=Ee.keys(t).sort();for(;!Oe(i=e.pop());)Oe(t[i])||(o+=i+":"+Te(t[i])+",");Me.set(t,o)}}return o},xe=new WeakMap,je={},ze={},Ce="undefined",ke=typeof window!=Ce,Le=typeof document!=Ce,Ve=(t,e)=>{const n=xe.get(t);return[()=>!Oe(e)&&t.get(e)||je,r=>{if(!Oe(e)){const o=t.get(e);e in ze||(ze[e]=o),n[5](e,Pe(o,r),o||je)}},n[6],()=>!Oe(e)&&e in ze?ze[e]:!Oe(e)&&t.get(e)||je]};let He=!0;const[Ne,De]=ke&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[be,be],Ue={isOnline:()=>He,isVisible:()=>{const t=Le&&document.visibilityState;return Oe(t)||"hidden"!==t}},Ie={initFocus:t=>(Le&&document.addEventListener("visibilitychange",t),Ne("focus",t),()=>{Le&&document.removeEventListener("visibilitychange",t),De("focus",t)}),initReconnect:t=>{const e=()=>{He=!0,t()},n=()=>{He=!1};return Ne("online",e),Ne("offline",n),()=>{De("online",e),De("offline",n)}}},Re=!c.default.useId,Be=!ke||"Deno"in window,We=Be?c.useEffect:c.useLayoutEffect,Ge="undefined"!=typeof navigator&&navigator.connection,Fe=!Be&&Ge&&(["slow-2g","2g"].includes(Ge.effectiveType)||Ge.saveData),qe=t=>{if(Ae(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?Te(t):"",e]};let $e=0;const Je=()=>++$e;async function Ke(...t){const[e,n,r,o]=t,i=Pe({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let u=i.optimisticData;const c=!1!==i.revalidate,l=i.throwOnError;if(Ae(n)){const t=n,r=[],o=e.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&t(e.get(n)._k)&&r.push(n);return Promise.all(r.map(f))}return f(n);async function f(n){const[o]=qe(n);if(!o)return;const[i,f]=Ve(e,o),[h,p,v,d]=xe.get(e),g=()=>{const t=h[o];return c&&(delete v[o],delete d[o],t&&t[0])?t[0](2).then((()=>i().data)):i().data};if(t.length<3)return g();let m,y=r;const w=Je();p[o]=[w,0];const b=!Oe(u),S=i(),E=S.data,O=S._c,A=Oe(O)?E:O;if(b&&(u=Ae(u)?u(A,E):u,f({data:u,_c:A})),Ae(y))try{y=y(A)}catch(t){m=t}if(y&&(t=>Ae(t.then))(y)){if(y=await y.catch((t=>{m=t})),w!==p[o][0]){if(m)throw m;return y}m&&b&&(t=>"function"==typeof s?s(t):!1!==s)(m)&&(a=!0,f({data:A,_c:Se}))}if(a&&!m)if(Ae(a)){const t=a(y,A);f({data:t,error:Se,_c:Se})}else f({data:y,error:Se,_c:Se});if(p[o][1]=Je(),Promise.resolve(g()).then((()=>{f({_c:Se})})),!m)return y;if(l)throw m}}const Qe=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},Xe=(t,e)=>{if(!xe.has(t)){const n=Pe(Ie,e),r={},o=Ke.bind(Se,t);let i=be;const a={},s=(t,e)=>{const n=a[t]||[];return a[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},u=(e,n,r)=>{t.set(e,n);const o=a[e];if(o)for(const t of o)t(n,r)},c=()=>{if(!xe.has(t)&&(xe.set(t,[r,{},{},{},o,u,s]),!Be)){const e=n.initFocus(setTimeout.bind(Se,Qe.bind(Se,r,0))),o=n.initReconnect(setTimeout.bind(Se,Qe.bind(Se,r,1)));i=()=>{e&&e(),o&&o(),xe.delete(t)}}};return c(),[t,o,c,i]}return[t,xe.get(t)[4]]},[Ye,Ze]=Xe(new Map),tn=Pe({onLoadingSlow:be,onSuccess:be,onError:be,onErrorRetry:(t,e,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Oe(i)&&a>i||setTimeout(r,s,o)},onDiscarded:be,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Fe?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Fe?5e3:3e3,compare:(t,e)=>Te(t)==Te(e),isPaused:()=>!1,cache:Ye,mutate:Ze,fallback:{}},Ue),en=(t,e)=>{const n=Pe(t,e);if(e){const{use:r,fallback:o}=t,{use:i,fallback:a}=e;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Pe(o,a))}return n},nn=(0,c.createContext)({}),rn=ke&&window.__SWR_DEVTOOLS_USE__,on=rn?window.__SWR_DEVTOOLS_USE__:[],an=on.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const[r]=qe(e),[,,,o]=xe.get(Ye);if(r.startsWith("$inf$"))return n(...t);const i=o[r];return Oe(i)?n(...t):(delete o[r],i)}),r)));rn&&(window.__SWR_DEVTOOLS_REACT__=c.default);const sn=c.default.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),un={dedupe:!0};Ee.defineProperty((t=>{const{value:e}=t,n=(0,c.useContext)(nn),r=Ae(e),o=(0,c.useMemo)((()=>r?e(n):e),[r,n,e]),i=(0,c.useMemo)((()=>r?o:en(n,o)),[r,n,o]),a=o&&o.provider,s=(0,c.useRef)(Se);a&&!s.current&&(s.current=Xe(a(i.cache||Ye),o));const u=s.current;return u&&(i.cache=u[0],i.mutate=u[1]),We((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,c.createElement)(nn.Provider,Pe(t,{value:i}))}),"defaultValue",{value:tn}),cn=(t,e,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:f,refreshWhenOffline:h,keepPreviousData:p}=n,[v,d,g,m]=xe.get(r),[y,w]=qe(t),b=(0,c.useRef)(!1),S=(0,c.useRef)(!1),E=(0,c.useRef)(y),O=(0,c.useRef)(e),A=(0,c.useRef)(n),P=()=>A.current,M=()=>P().isVisible()&&P().isOnline(),[_,T,x,j]=Ve(r,y),z=(0,c.useRef)({}).current,C=Oe(a)?n.fallback[y]:a,k=(t,e)=>{for(const n in z){const r=n;if("data"===r){if(!o(t[r],e[r])){if(!Oe(t[r]))return!1;if(!o(B,e[r]))return!1}}else if(e[r]!==t[r])return!1}return!0},L=(0,c.useMemo)((()=>{const t=!!y&&!!e&&(Oe(s)?!P().isPaused()&&!i&&(!!Oe(u)||u):s),n=e=>{const n=Pe(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n},r=_(),o=j(),a=n(r),c=r===o?a:n(o);let l=a;return[()=>{const t=n(_());return k(t,l)?(l.data=t.data,l.isLoading=t.isLoading,l.isValidating=t.isValidating,l.error=t.error,l):(l=t,t)},()=>c]}),[r,y]),V=(0,we.useSyncExternalStore)((0,c.useCallback)((t=>x(y,((e,n)=>{k(n,e)||t()}))),[r,y]),L[0],L[1]),H=!b.current,N=v[y]&&v[y].length>0,D=V.data,U=Oe(D)?C:D,I=V.error,R=(0,c.useRef)(U),B=p?Oe(D)?R.current:D:U,W=!(N&&!Oe(I))&&(H&&!Oe(s)?s:!P().isPaused()&&(i?!Oe(U)&&u:Oe(U)||u)),G=!!(y&&e&&H&&W),F=Oe(V.isValidating)?G:V.isValidating,q=Oe(V.isLoading)?G:V.isLoading,$=(0,c.useCallback)((async t=>{const e=O.current;if(!y||!e||S.current||P().isPaused())return!1;let r,i,a=!0;const s=t||{},u=!g[y]||!s.dedupe,c=()=>Re?!S.current&&y===E.current&&b.current:y===E.current,l={isValidating:!1,isLoading:!1},f=()=>{T(l)},h=()=>{const t=g[y];t&&t[1]===i&&delete g[y]},p={isValidating:!0};Oe(_().data)&&(p.isLoading=!0);try{if(u&&(T(p),n.loadingTimeout&&Oe(_().data)&&setTimeout((()=>{a&&c()&&P().onLoadingSlow(y,n)}),n.loadingTimeout),g[y]=[e(w),Je()]),[r,i]=g[y],r=await r,u&&setTimeout(h,n.dedupingInterval),!g[y]||g[y][1]!==i)return u&&c()&&P().onDiscarded(y),!1;l.error=Se;const t=d[y];if(!Oe(t)&&(i<=t[0]||i<=t[1]||0===t[1]))return f(),u&&c()&&P().onDiscarded(y),!1;const s=_().data;l.data=o(s,r)?s:r,u&&c()&&P().onSuccess(r,y,n)}catch(t){h();const e=P(),{shouldRetryOnError:n}=e;e.isPaused()||(l.error=t,u&&c()&&(e.onError(t,y,e),(!0===n||Ae(n)&&n(t))&&M()&&e.onErrorRetry(t,y,e,(t=>{const e=v[y];e&&e[0]&&e[0](3,t)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0}),[y,r]),J=(0,c.useCallback)(((...t)=>Ke(r,E.current,...t)),[]);if(We((()=>{O.current=e,A.current=n,Oe(D)||(R.current=D)})),We((()=>{if(!y)return;const t=$.bind(Se,un);let e=0;const n=((t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}})(y,v,((n,r={})=>{if(0==n){const n=Date.now();P().revalidateOnFocus&&n>e&&M()&&(e=n+P().focusThrottleInterval,t())}else if(1==n)P().revalidateOnReconnect&&M()&&t();else{if(2==n)return $();if(3==n)return $(r)}}));return S.current=!1,E.current=y,b.current=!0,T({_k:w}),W&&(Oe(U)||Be?t():(t=>{ke&&typeof window.requestAnimationFrame!=Ce?window.requestAnimationFrame(t):setTimeout(t,1)})(t)),()=>{S.current=!0,n()}}),[y]),We((()=>{let t;function e(){const e=Ae(l)?l(_().data):l;e&&-1!==t&&(t=setTimeout(n,e))}function n(){_().error||!f&&!P().isVisible()||!h&&!P().isOnline()?e():$(un).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[l,f,h,y]),(0,c.useDebugValue)(B),i&&Oe(U)&&y){if(!Re&&Be)throw new Error("Fallback data is required when using suspense in SSR.");O.current=e,A.current=n,S.current=!1;const t=m[y];if(!Oe(t)){const e=J(t);sn(e)}if(!Oe(I))throw I;{const t=$(un);Oe(B)||(t.status="fulfilled",t.value=!0),sn(t)}}return{mutate:J,get data(){return z.data=!0,B},get error(){return z.error=!0,I},get isValidating(){return z.isValidating=!0,F},get isLoading(){return z.isLoading=!0,q}}};var cn,ln;h(641),(0,t.defineConfigSchema)("@openmrs/esm-styleguide",u),ln=function(t,e){document.documentElement.style.setProperty(t,e)},(0,t.getConfigStore)("@openmrs/esm-styleguide").subscribe((function(t){t.loaded&&t.config&&(ln("--brand-01",t.config["Brand color #1"]),ln("--brand-02",t.config["Brand color #2"]),ln("--brand-03",t.config["Brand color #3"]))})),a("omrs-logo-full-color",e),a("omrs-logo-full-mono",e),a("omrs-logo-full-grey",e),a("omrs-logo-partial-color",n),a("omrs-logo-partial-mono",n),a("omrs-logo-partial-grey",n),a("omrs-logo-icon-color",r),a("omrs-logo-icon-mono",r),a("omrs-logo-icon-grey",r),a("omrs-logo-white",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 380 119"><path fill="var(--logo-white)" fill-rule="evenodd" d="M40.29 40.328a27.76 27.76 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.647 8.116l.02-18.54A42.84 42.84 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968zM79.645 79.671a27.74 27.74 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.86 42.86 0 0 0 59.96 103a42.8 42.8 0 0 0 19.672-4.751z" clip-rule="evenodd"/><path fill="var(--logo-grey)" fill-rule="evenodd" d="M40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.8 42.8 0 0 0 4.752 19.672zM79.634 40.289a27.75 27.75 0 0 1 8.154 19.688 27.74 27.74 0 0 1-8.117 19.646l18.542.02a42.84 42.84 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675z" clip-rule="evenodd"/><path fill="var(--logo-white)" fill-rule="evenodd" d="M156.184 60.003c0-8.749-6.118-15.777-15.025-15.777-8.909 0-15.025 7.028-15.025 15.776s6.116 15.78 15.025 15.78c8.907 0 15.025-7.031 15.025-15.78m-34.881 0c0-11.483 8.318-19.96 19.856-19.96 11.536 0 19.855 8.478 19.855 19.96 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.964M179.514 75.54c5.507 0 9.05-4.14 9.05-9.482s-3.543-9.483-9.05-9.483c-5.505 0-9.046 4.142-9.046 9.483s3.541 9.482 9.046 9.482M166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248zM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868zM227.854 59.357c0-2.347-.216-4.361-.216-6.05h4.031c0 1.362.11 2.776.11 4.194h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25zM259.211 41.009h6.708L278.8 70.79h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507zM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037L334.018 79h-5.525l-10.304-17.063h-5.797V79h-4.506zM358.123 47.713c-1.506-2.414-4.187-3.487-6.926-3.487-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45z" clip-rule="evenodd"/></svg>'),a("omrs-icon-activity",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6 14.5a.5.5 0 0 1-.46-.31L3.165 8.5H1v-1h2.5a.5.5 0 0 1 .46.31L6 12.64l4.03-10.815a.5.5 0 0 1 .47-.325.5.5 0 0 1 .465.34L12.86 7.5H15v1h-2.5a.5.5 0 0 1-.475-.34L10.5 3.5 6.47 14.175A.5.5 0 0 1 6 14.5"/></svg>'),a("omrs-icon-add",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8.5 7.5V4h-1v3.5H4v1h3.5V12h1V8.5H12v-1z"/></svg>'),a("omrs-icon-arrow-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.295 8.295 8.5 12.085V2h-1v10.085l-3.795-3.79L3 9l5 5 5-5z"/></svg>'),a("omrs-icon-arrow-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m7 13 .705-.705L3.915 8.5H14v-1H3.915l3.79-3.795L7 3 2 8z"/></svg>'),a("omrs-icon-arrow-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m9 3-.715.696 3.79 3.804H2v1h10.075l-3.79 3.787L9 13l5-5z"/></svg>'),a("omrs-icon-arrow-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 2 3 7l.705.705L7.5 3.915V14h1V3.915l3.795 3.79L13 7z"/></svg>'),a("omrs-icon-calendar-heat-map",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 2h-2V1h-1v1H6V1H5v1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1M3 3h2v1h1V3h4v1h1V3h2v2H3zm0 3h2.5v3H3zm6.5 7h-3v-3h3zm0-4h-3V6h3zm1 4v-3H13v3z"/></svg>'),a("omrs-icon-calendar",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 2h-2V1h-1v1H6V1H5v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v1h1V3h4v1h1V3h2z"/></svg>'),a("omrs-icon-caret-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 6-4 5-4-5z"/></svg>'),a("omrs-icon-caret-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 12 5 8l5-4z"/></svg>'),a("omrs-icon-caret-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m6 4 5 4-5 4z"/></svg>'),a("omrs-icon-caret-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m4 10 4-5 4 5z"/></svg>'),a("omrs-icon-chart-average",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11.5 12c-1.8 0-2.515-2.088-3.206-4.107C7.638 5.979 6.96 4 5.5 4a1.72 1.72 0 0 0-1.527 1.16l-.947-.318C3.05 4.767 3.66 3 5.5 3c2.175 0 3.006 2.427 3.74 4.569C9.844 9.333 10.415 11 11.5 11a1.72 1.72 0 0 0 1.527-1.16l.947.318C13.95 10.233 13.34 12 11.5 12"/><path d="M2 14V8.5h1v-1H2V1H1v13a1 1 0 0 0 1 1h13v-1z"/><path d="M5 7.5H4v1h1zM7 7.5H6v1h1zM11 7.5h-1v1h1zM13 7.5h-1v1h1zM15 7.5h-1v1h1z"/></svg>'),a("omrs-icon-chemistry",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.616 11.81 10 6.836V2h1V1H5v1h1v4.837L2.384 11.81A2.009 2.009 0 0 0 4.01 15h7.982a2.01 2.01 0 0 0 1.625-3.19M7 7.162V2h2v5.163L10.336 9H5.664zM11.99 14H4.01a1.01 1.01 0 0 1-.817-1.603L4.936 10h6.128l1.743 2.397A1.011 1.011 0 0 1 11.991 14"/></svg>'),a("omrs-icon-chevron-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 11 3 6l.7-.7L8 9.6l4.3-4.3.7.7z"/></svg>'),a("omrs-icon-chevron-left",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m5 8 5-5 .7.7L6.4 8l4.3 4.3-.7.7z"/></svg>'),a("omrs-icon-chevron-right",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m11 8-5 5-.7-.7L9.6 8 5.3 3.7 6 3z"/></svg>'),a("omrs-icon-chevron-up",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m8 5 5 5-.7.7L8 6.4l-4.3 4.3L3 10z"/></svg>'),a("omrs-icon-close",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z"/></svg>'),a("omrs-icon-close-filled",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>'),a("omrs-icon-close-outline",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m0 13c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6"/><path d="M10.7 11.5 8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>'),a("omrs-icon-document",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12.85 4.65-3.5-3.5C9.25 1.05 9.15 1 9 1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V5c0-.15-.05-.25-.15-.35M9 2.2 11.8 5H9zM12 14H4V2h4v3c0 .55.45 1 1 1h3z"/><path d="M11 11H5v1h6zM11 8H5v1h6z"/></svg>'),a("omrs-icon-document-attachment",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 15H5.5a1 1 0 0 1-1-1v-3h1v3H13V3H8.5V2H13a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1"/><path d="M12 5H8.5v1H12zM12 7.5H8v1h4zM12 10H7.5v1H12zM4.5 9.5A2.503 2.503 0 0 1 2 7V1.5h1V7a1.5 1.5 0 0 0 3 0V2.5a.5.5 0 1 0-1 0v5H4v-5a1.5 1.5 0 0 1 3 0V7a2.503 2.503 0 0 1-2.5 2.5"/></svg>'),a("omrs-icon-download",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 12v2H3v-2H2v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2zM13 7l-.705-.705-3.795 3.79V1h-1v9.085l-3.795-3.79L3 7l5 5z"/></svg>'),a("omrs-icon-edit",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 13H1v1h14zM12.7 4.5c.4-.4.4-1 0-1.4l-1.8-1.8c-.4-.4-1-.4-1.4 0L2 8.8V12h3.2zM10.2 2 12 3.8l-1.5 1.5-1.8-1.8zM3 11V9.2l5-5L9.8 6l-5 5z"/></svg>'),a("omrs-icon-event-schedule",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10.5 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8m0-7a3 3 0 1 0 0 6 3 3 0 0 0 0-6"/><path d="M11.295 12.5 10 11.205V9h1v1.795l1 1z"/><path d="M14 3a1 1 0 0 0-1-1h-2V1h-1v1H6V1H5v1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2v-1H3V3h2v1h1V3h4v1h1V3h2v3h1z"/></svg>'),a("omrs-icon-events",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 7h-1v1h1a1.5 1.5 0 0 1 1.5 1.5v2h1v-2A2.503 2.503 0 0 0 13 7M12 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M11.5 15h-1v-1A1.5 1.5 0 0 0 9 12.5H7A1.5 1.5 0 0 0 5.5 14v1h-1v-1A2.503 2.503 0 0 1 7 11.5h2a2.503 2.503 0 0 1 2.5 2.5zM8 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4 7H3A2.503 2.503 0 0 0 .5 9.5v2h1v-2A1.5 1.5 0 0 1 3 8h1zM4 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></svg>'),a("omrs-icon-group",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15.5 15h-1v-1.5A1.5 1.5 0 0 0 13 12h-2a1.5 1.5 0 0 0-1.5 1.5V15h-1v-1.5A2.5 2.5 0 0 1 11 11h2a2.5 2.5 0 0 1 2.5 2.5zM12 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M7.5 11h-1V9.5A1.5 1.5 0 0 0 5 8H3a1.5 1.5 0 0 0-1.5 1.5V11h-1V9.5A2.5 2.5 0 0 1 3 7h2a2.5 2.5 0 0 1 2.5 2.5zM4 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></svg>'),a("omrs-icon-group-access",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M4 9.5H3v-1A1.5 1.5 0 0 1 4.5 7H7v1H4.5a.5.5 0 0 0-.5.5zM6 6.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M10 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M13 13h-1v-1a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1H7v-1a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 13 12z"/><path d="M4 15H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h2v1H2v12h2zM14 15h-2v-1h2V2h-2V1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1"/></svg>'),a("omrs-icon-hospital-bed",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.5 8h-4a1 1 0 0 0-1 1v3H2V7H1v8h1v-2h12v2h1v-4.5A2.503 2.503 0 0 0 12.5 8m1.5 4H8.5V9h4a1.5 1.5 0 0 1 1.5 1.5z"/><path d="M4.75 8.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m0-1a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5M10.5 3h-2V1h-1v2h-2v1h2v2h1V4h2z"/></svg>'),a("omrs-icon-image-medical",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13 3v10H3V3zm0-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1"/><path d="M11 8V7H8.5V6H10V5H8.5V4h-1v1H6v1h1.5v1H5v1h2.5v1H5v1h2.5v1H6v1h4v-1H8.5v-1H11V9H8.5V8z"/></svg>'),a("omrs-icon-inventory-management",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11.5 12h-2v2h2zM15 12h-2v2h2zM11.5 8.5h-2v2h2zM15 8.5h-2v2h2z"/><path d="M8.5 12H2V5h12v2.5h1V5a1 1 0 0 0-1-1h-3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h6.5zM6 2h4v2H6z"/></svg>'),a("omrs-icon-list-checked",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 4H8v1h7zM3 5.295 1.705 4 1 4.705l2 2 4-4L6.295 2zM15 11H8v1h7zM3 12.295 1.705 11 1 11.705l2 2 4-4L6.295 9z"/></svg>'),a("omrs-icon-location",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"/><path d="m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"/></svg>'),a("omrs-icon-maximize",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 1v1h3.293L9 6.291 9.707 7 14 2.707V6h1V1zM7 9.708 6.296 9 2 13.293V10H1v5h5v-1H2.707z"/></svg>'),a("omrs-icon-medication",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12 1H4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1M5 7h1.5v5H5zm6 7H5v-1h2.5V6H5V5h6zM4 4V2h8v2z"/></svg>'),a("omrs-icon-message-queue",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14 14H2a1 1 0 0 1-1-1v-2.5h1V13h12v-2.5h1V13a1 1 0 0 1-1 1"/><path d="M12.5 10.5h-9v1h9zM12.5 8h-9v1h9zM12.5 5.5h-9v1h9zM12.5 3h-9v1h9z"/></svg>'),a("omrs-icon-microscope",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M12.697 12a3.94 3.94 0 0 0-.835-4.284 1.96 1.96 0 0 0-.542-2.207l1.388-1.388a1 1 0 0 0 0-1.415l-1.415-1.414a1 1 0 0 0-1.414 0L3.293 7.88a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0L8.51 8.319a1.966 1.966 0 0 0 2.757.217A2.97 2.97 0 0 1 11.589 12H8v2H2v1h12v-3zm-7.283-2L4 8.586l.94-.94L6.353 9.06zM8 7q0 .19.038.376l-.977.977L5.646 6.94 10.586 2l1.415 1.414-1.625 1.625A1.99 1.99 0 0 0 8 7m2 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2m3 6H9v-1h4z"/></svg>'),a("omrs-icon-money",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15 11H1v1h14zM15 13H1v1h14zM12 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M4 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path d="M14 10H2a1.003 1.003 0 0 1-1-1V3a1.003 1.003 0 0 1 1-1h12a1.003 1.003 0 0 1 1 1v6a1 1 0 0 1-1 1m0-7H2v6h12z"/></svg>'),a("omrs-icon-movement",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m12 10-.705.705 1.79 1.795H5a2 2 0 1 1 0-4h6a3 3 0 0 0 0-6H2.915L4.705.705 4 0 1 3l3 3 .705-.705L2.915 3.5H11a2 2 0 0 1 0 4H5a3 3 0 1 0 0 6h8.085l-1.79 1.795L12 16l3-3z"/></svg>'),a("omrs-icon-overflow-menu--horizontal",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-overflow-menu--vertical",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-pedestrian-family",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10 15H8.5a1 1 0 0 1-1-1v-2.5h1V14H10v-2.5h1v-2a.5.5 0 0 0-.5-.5H6.14l-1-3H2a.5.5 0 0 0-.5.5v3h1V14h2v-3.5h1V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3.5a1 1 0 0 1-1-1v-3A1.5 1.5 0 0 1 2 5h3.14a1 1 0 0 1 .948.684L6.86 8h3.64A1.5 1.5 0 0 1 12 9.5v2a1 1 0 0 1-1 1V14a1 1 0 0 1-1 1M14 15h-1V9.5h1.5v-3A.5.5 0 0 0 14 6h-2V5h2a1.5 1.5 0 0 1 1.5 1.5v3a1 1 0 0 1-1 1H14zM3.5 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2M12.5 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path d="M9.25 7.5a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5m0-2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/></svg>'),a("omrs-icon-pen",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.654 3.053 15 1.707 14.293 1l-1.346 1.346L12.4 1.8a.967.967 0 0 0-1.4 0l-9 9V14h3.2l9-9a.967.967 0 0 0 0-1.4zM4.8 13H3v-1.8l8.7-8.7 1.8 1.8zM8.293 2 4.5 5.793l.707.707L9 2.707z"/></svg>'),a("omrs-icon-printer",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14 4.5h-1.5v-3h-9v3H2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.5v3h9v-3H14a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1m-9.5-2h7v2h-7zm7 11h-7v-5h7zm2.5-3h-1.5v-3h-9v3H2v-5h12z"/></svg>'),a("omrs-icon-renew",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6 5H3.39A5.5 5.5 0 0 1 13.5 8h1A6.5 6.5 0 0 0 3 3.84V2H2v4h4zM10 11h2.61A5.5 5.5 0 0 1 2.5 8h-1A6.5 6.5 0 0 0 13 12.16V14h1v-4h-4z"/></svg>'),a("omrs-icon-password",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M10.5 1a4.5 4.5 0 0 0-4.306 5.806L1 12v3h3l5.194-5.194A4.5 4.5 0 1 0 10.5 1m0 8c-.344 0-.687-.051-1.016-.151l-.573-.174-2.015 2.014L6.207 10l-.707.707.69.69-.794.792-.689-.689-.707.707.69.69L3.585 14H2v-1.586L7.325 7.09l-.174-.573A3.5 3.5 0 1 1 10.5 9"/><path d="M11 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>'),a("omrs-icon-reset",'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#161616" d="M9 14a6 6 0 1 0-6-6v3.1L1.2 9.3l-.7.7 3 3 3-3-.7-.7L4 11.1V8a5 5 0 1 1 5 5z"/></svg>'),a("omrs-icon-search",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m14.5 13.793-3.776-3.776a5.508 5.508 0 1 0-.707.707l3.776 3.776zM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"/></svg>'),a("omrs-icon-save",'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#161616" d="m13.855 4.645-2.5-2.5A.5.5 0 0 0 11 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a.5.5 0 0 0-.145-.355M6 3h4v2H6zm4 10H6V9h4zm1 0V9a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v4H3V3h2v2a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V3.205l2 2V13z"/></svg>'),a("omrs-icon-shopping-cart",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M5 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M14 3.5H2.91L2.5 1.4A.5.5 0 0 0 2 1H0v1h1.59l1.91 9.6a.5.5 0 0 0 .5.4h9v-1H4.41L4 9h9a.5.5 0 0 0 .5-.39l1-4.5a.5.5 0 0 0-.5-.61M12.6 8H3.81l-.7-3.5h10.265z"/></svg>'),a("omrs-icon-shopping-cart--arrow-down",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M5 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2M2.49 1.402A.5.5 0 0 0 2 1H0v1h1.59l1.92 9.598A.5.5 0 0 0 4 12h9v-1H4.41l-.4-2H13a.5.5 0 0 0 .488-.392L14.622 3.5h-1.024L12.6 8H3.81z"/><path d="M10.793 3.293 9 5.086V1H8v4.086L6.207 3.293 5.5 4l3 3 3-3z"/></svg>'),a("omrs-icon-sticky-note-add",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11.5 1h-1v2h-2v1h2v2h1V4h2V3h-2z"/><path d="M7.5 2h-4a1.003 1.003 0 0 0-1 1v10a1.003 1.003 0 0 0 1 1h6a.45.45 0 0 0 .35-.15l3.5-3.5a.45.45 0 0 0 .15-.35V7h-1v2h-3a1.003 1.003 0 0 0-1 1v3h-5V3h4zm4.8 8-2.8 2.8V10z"/></svg>'),a("omrs-icon-switcher",s),a("omrs-icon-switcher",s),a("omrs-icon-table-of-contents",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M11 3H2v1h9zM11 6H2v1h9zM11 9H2v1h9zM11 12H2v1h9zM14 3h-1v1h1zM14 6h-1v1h1zM14 9h-1v1h1zM14 12h-1v1h1z"/></svg>'),a("omrs-icon-table",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M14.5 2.5a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1zm-1 0v2h-11v-2zm0 11h-11v-2h11zm0-3h-11v-2h11zm0-3h-11v-2h11z"/></svg>'),a("omrs-icon-time",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"/><path d="M10.295 11 7.5 8.205V3.5h1v4.29l2.5 2.505z"/></svg>'),a("omrs-icon-tools",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M6.05 1a4.9 4.9 0 0 0-2.7.8L6.55 5a1.05 1.05 0 0 1 .1 1.5 1.05 1.05 0 0 1-1.5-.1l-3.3-3.2A4.9 4.9 0 0 0 1 6.05a5.07 5.07 0 0 0 5.05 5.05c.438.002.874-.048 1.3-.15l3.35 3.35a2.51 2.51 0 1 0 3.55-3.55L10.9 7.4q.153-.641.15-1.3a5 5 0 0 0-5-5.1m4 5.05c0 .355-.051.709-.15 1.05l-.15.55.4.4 3.35 3.35a1.44 1.44 0 0 1 .45 1.05 1.36 1.36 0 0 1-.45 1.05 1.45 1.45 0 0 1-2.1 0l-3.35-3.35-.4-.4-.55.15c-.341.099-.695.15-1.05.15A4.14 4.14 0 0 1 3.2 8.9 3.82 3.82 0 0 1 2 6.05c0-.372.051-.742.15-1.1l2.2 2.2a2.07 2.07 0 0 0 2.95.1 2.07 2.07 0 0 0-.1-2.95L5 2.1c.323-.102.66-.153 1-.15A4.14 4.14 0 0 1 8.85 3.1a4.25 4.25 0 0 1 1.2 2.95"/></svg>'),a("omrs-icon-translate",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M13.925 14.5H15L12 7h-1.175l-3 7.5H8.9l.8-2h3.425zm-3.825-3 1.31-3.28 1.315 3.28zM9 3.5v-1H5.5V1h-1v1.5H1v1h5.37a7.36 7.36 0 0 1-1.595 3.09A6.8 6.8 0 0 1 3.63 4.5H2.58a8.2 8.2 0 0 0 1.5 2.79A8.4 8.4 0 0 1 1.5 9l.375.93A9.2 9.2 0 0 0 4.765 8a8.5 8.5 0 0 0 2.88 1.92L8 9a7.2 7.2 0 0 1-2.56-1.685A8.8 8.8 0 0 0 7.4 3.5z"/></svg>'),a("omrs-icon-trash-can",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M7 6H6v6h1zM10 6H9v6h1z"/><path d="M2 3v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zm2 11V4h8v10zM10 1H6v1h4z"/></svg>'),a("omrs-icon-tree-view--alt",'<svg xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M11.5 4.502h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-5v-.5a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-.5h2v10a1 1 0 0 0 1 1h2v.5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-2v-4.5h2v.5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v.5h-2v-4.5h2v.5a1 1 0 0 0 1 1m0-3h3v2h-3zm-7 2h-3v-2h3zm7 9h3v2h-3zm0-5.5h3v2h-3z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>'),a("omrs-icon-user-avatar",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/><path d="M8 1a7 7 0 1 0 7 7 7.01 7.01 0 0 0-7-7M5 13.188V12.5A1.5 1.5 0 0 1 6.5 11h3a1.5 1.5 0 0 1 1.5 1.5v.688a5.95 5.95 0 0 1-6 0m6.996-.725A2.5 2.5 0 0 0 9.5 10h-3a2.5 2.5 0 0 0-2.496 2.463 6 6 0 1 1 7.992 0"/></svg>'),a("omrs-icon-user-follow",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M16 7h-2V5h-1v2h-2v1h2v2h1V8h2zM6 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m0-1a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M11 15h-1v-2.5A2.5 2.5 0 0 0 7.5 10h-3A2.5 2.5 0 0 0 2 12.5V15H1v-2.5A3.5 3.5 0 0 1 4.5 9h3a3.5 3.5 0 0 1 3.5 3.5z"/></svg>'),a("omrs-icon-user-xray",'<svg xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M15.5 1.5h-7A.5.5 0 0 0 8 2v6.5a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5m-1.5 3h-1.5V6H14v1h-1.5v1h-1V7H10V6h1.5V4.5H10v-1h1.5v-1h1v1H14zM7.5 15h-1v-2A1.473 1.473 0 0 0 5 11.5H3A1.474 1.474 0 0 0 1.5 13v2h-1v-2A2.475 2.475 0 0 1 3 10.5h2A2.476 2.476 0 0 1 7.5 13zM4 5.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>'),a("omrs-icon-user",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m0-1a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M13 15h-1v-2.5A2.5 2.5 0 0 0 9.5 10h-3A2.5 2.5 0 0 0 4 12.5V15H3v-2.5A3.5 3.5 0 0 1 6.5 9h3a3.5 3.5 0 0 1 3.5 3.5z"/></svg>'),a("omrs-icon-view-off",'<svg xmlns="http://www.w3.org/2000/svg"><path d="m2.62 11.255.715-.71A7 7 0 0 1 1.535 8C2.55 5.465 5.35 3.5 8 3.5a6.2 6.2 0 0 1 2 .36l.775-.78A7.4 7.4 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34 8 8 0 0 0 2.09 3.085"/><path d="M6 7.865a2 2 0 0 1 1.85-1.85l.905-.91A3 3 0 0 0 5.09 8.77zM15.47 7.83a8.2 8.2 0 0 0-2.87-3.72L15 1.705 14.295 1 1 14.295l.705.705 2.55-2.55A7.65 7.65 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M10 8a2 2 0 0 1-3 1.72L9.72 7A2 2 0 0 1 10 8m-2 4.5a6.5 6.5 0 0 1-3-.79l1.27-1.27a3 3 0 0 0 4.175-4.175L11.88 4.83A7.27 7.27 0 0 1 14.465 8C13.45 10.535 10.65 12.5 8 12.5"/></svg>'),a("omrs-icon-view",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M15.47 7.83A8.34 8.34 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"/><path d="M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"/></svg>'),a("omrs-icon-warning",'<svg xmlns="http://www.w3.org/2000/svg"><path d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m0 13A6 6 0 1 1 8 2a6 6 0 0 1 0 12"/><path d="M8.5 4h-1v5.5h1zM8 11a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/></svg>')})(),(()=>{"use strict";h.r(p)})(),p})())}}}));
3
3
  //# sourceMappingURL=openmrs-esm-styleguide.js.map