@openmrs/esm-stock-management-app 3.2.2-pre.1790 → 3.2.2-pre.1792

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/2757.js CHANGED
@@ -1,6 +1,6 @@
1
- (globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([["2757"],{7581(e){e.exports=function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},5238(e){e.exports=function(e,t,n){var r=t.prototype,a=function(e){var t=e.date,a=e.utc,o={};if(!(null===t||t instanceof Date||t instanceof Array||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var i=a?n.utc():n();Object.keys(t).forEach(function(e){var n;o["date"===(n=r.$utils().p(e))?"day":n]=t[e]});var s=o.day||(o.year||o.month>=0?1:i.date()),l=o.year||i.year(),u=o.month>=0?o.month:o.year||o.day?0:i.month(),c=o.hour||0,d=o.minute||0,m=o.second||0,p=o.millisecond||0;return a?new Date(Date.UTC(l,u,s,c,d,m,p)):new Date(l,u,s,c,d,m,p)}return t},o=r.parse;r.parse=function(e){e.date=a.bind(this)(e),o.bind(this)(e)};var i=r.set,s=r.add,l=r.subtract,u=function(e,t,n,r){void 0===r&&(r=1);var a=Object.keys(t),o=this;return a.forEach(function(n){o=e.bind(o)(t[n]*r,n)}),o};r.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?u.bind(this)(function(e,t){return i.bind(this)(t,e)},t,e):i.bind(this)(e,t)},r.add=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t):s.bind(this)(e,t)},r.subtract=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t,-1):l.bind(this)(e,t)}}},3826(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,o){var i=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},i.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=i.utcOffset;i.utcOffset=function(r,a){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(r)))return this;var i=16>=Math.abs(r)?60*r:r,s=this;if(a)return s.$offset=i,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l}else s=this.utc();return s};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return m.call(this,e,t,n);var r=this.local(),a=o(e).local();return m.call(r,a,t,n)}}}()},2849(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,a=t.call(e,"constructor"),o=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,a,o,i,s,l=arguments[0]||{},u=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},u=2),"object"!=typeof l&&"function"!=typeof l&&(l={});u<c;u++)if(null!=(t=arguments[u]))for(n in t)a=l[n],l!==(o=t[n])&&(d&&o&&(r(o)||(i=Array.isArray(o)))?(i?(i=!1,s=a&&Array.isArray(a)?a:[]):s=a&&r(a)?a:{},l[n]=e(d,s,o)):void 0!==o&&(l[n]=o));return l}},6767(e,t,n){!function(t){"use strict";var r=n(6974);function a(e){return function(t,n){return"object"==typeof t&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var o=e.exports={generate:a(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=a(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var a=o.generate(e,n);t(this).css("background-image",a.toDataUrl())})}))}("u">typeof jQuery?jQuery:null)},2467(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,a=e.g,o=e.b,i=Math.max(r/=255,a/=255,o/=255),s=Math.min(r,a,o),l=(i+s)/2;if(i===s)t=n=0;else{var u=i-s;switch(n=l>.5?u/(2-i-s):u/(i+s),i){case r:t=(a-o)/u+6*(a<o);break;case a:t=(o-r)/u+2;break;case o:t=(r-a)/u+4}t/=6}return{h:t,s:n,l:l}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,a,o=e.h,i=e.s,s=e.l;if(0===i)n=r=a=s;else{var l=s<.5?s*(1+i):s+i-s*i,u=2*s-l;n=t(u,l,o+1/3),r=t(u,l,o),a=t(u,l,o-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*a)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},6974(e,t,n){"use strict";var r=n(2849),a=n(2467),o=n(6743),i=n(8502),s={baseColor:"#933c3c"},l=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function c(e,t,n){return parseInt(e.substr(t,n||1),16)}function d(e,t,n,r,a){return(parseFloat(e)-t)*(a-r)/(n-t)+r}function m(e){return e%2==0?"#ddd":"#222"}function p(e){return d(e,0,15,.02,.15)}var f=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||o(e),this.svg=new i,this.generateBackground(),this.generatePattern(),this};function h(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function g(e){return[0,0,e,e,0,e,0,0].join(",")}function y(e,t,n,r,a){var o=g(r),i=p(a[0]),s=m(a[0]),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i,fill:s};e.polyline(o,l).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(o,l).transform({translate:[t+r,n+2*r],scale:[1,-1]}),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i=p(a[1]),fill:s=m(a[1])},e.polyline(o,l).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(o,l).transform({translate:[t+r,n],scale:[1,1]})}function v(e,t,n,r,a){var o=p(a),i=m(a),s=g(r),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:i};e.polyline(s,l).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,l).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,1]})}f.prototype.toSvg=function(){return this.svg.toString()},f.prototype.toString=function(){return this.toSvg()},f.prototype.toBase64=function(){var e=this.toSvg();return"u">typeof window&&"function"==typeof window.btoa?window.btoa(e):new Buffer(e).toString("base64")},f.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},f.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},f.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=a.hex2rgb(this.opts.color):(t=d(c(this.hash,14,3),0,4095,0,359),r=c(this.hash,17),(e=a.rgb2hsl(a.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=a.hsl2rgb(e)),this.color=a.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:a.rgb2rgbString(n)})},f.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>l.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=l[c(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},f.prototype.geoHexagons=function(){var e,t,n,r,a,o,i,s,l,f=d(c(this.hash,0),0,15,8,60),h=f*Math.sqrt(3),g=2*f,y=(s=f/2,[0,l=Math.sin(60*Math.PI/180)*f,s,0,s+f,0,2*f,l,s+f,2*l,s,2*l,0,l].join(","));for(this.svg.setWidth(3*g+3*f),this.svg.setHeight(6*h),t=0,i=0;i<6;i++)for(o=0;o<6;o++)a=c(this.hash,t),e=o%2==0?i*h:i*h+h/2,n=p(a),r={fill:m(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(y,r).transform({translate:[o*f*1.5-g/2,e-h/2]}),0===o&&this.svg.polyline(y,r).transform({translate:[6*f*1.5-g/2,e-h/2]}),0===i&&(e=o%2==0?6*h:6*h+h/2,this.svg.polyline(y,r).transform({translate:[o*f*1.5-g/2,e-h/2]})),0===o&&0===i&&this.svg.polyline(y,r).transform({translate:[6*f*1.5-g/2,5*h+h/2]}),t++},f.prototype.geoSineWaves=function(){var e,t,n,r,a,o,i,s=Math.floor(d(c(this.hash,0),0,15,100,400)),l=Math.floor(d(c(this.hash,1),0,15,30,100)),u=Math.floor(d(c(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=p(o=c(this.hash,t)),e=m(o),i=s/4*.7,a={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+l+" C "+i+" 0, "+(s/2-i)+" 0, "+s/2+" "+l+" S "+(s-i)+" "+2*l+", "+s+" "+l+" S "+(1.5*s-i)+" 0, "+1.5*s+", "+l,this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l]}),this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l+36*u]})},f.prototype.geoChevrons=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,30,80),l=d(c(this.hash,0),0,15,30,80),f=(e=.66*l,[[0,0,s/2,l-e,s/2,l,0,e,0,0],[s/2,l-e,s,0,s,e,s/2,l,s/2,l-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*l*.66),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:m(a),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[o*s,i*l*.66-l/2]}).polyline(f).end(),0===i&&this.svg.group(r).transform({translate:[o*s,6*l*.66-l/2]}).polyline(f).end(),t+=1},f.prototype.geoPlusSigns=function(){var e,t,n,r,a,o,i,s,l=d(c(this.hash,0),0,15,10,25),f=3*l,g=h(l);for(this.svg.setWidth(12*l),this.svg.setHeight(12*l),n=0,s=0;s<6;s++)for(i=0;i<6;i++)r=p(o=c(this.hash,n)),t=m(o),e=+(s%2!=0),a={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(a).transform({translate:[i*f-i*l+e*l-l,s*f-s*l-f/2]}).rect(g).end(),0===i&&this.svg.group(a).transform({translate:[4*f-i*l+e*l-l,s*f-s*l-f/2]}).rect(g).end(),0===s&&this.svg.group(a).transform({translate:[i*f-i*l+e*l-l,4*f-s*l-f/2]}).rect(g).end(),0===i&&0===s&&this.svg.group(a).transform({translate:[4*f-i*l+e*l-l,4*f-s*l-f/2]}).rect(g).end(),n++},f.prototype.geoXes=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,25),l=h(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),e=o%2==0?i*u-.5*u:i*u-.5*u+u/4,r={fill:m(a),opacity:n},this.svg.group(r).transform({translate:[o*u/2-u/2,e-i*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-i*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&(e=o%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[o*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end()),5===i&&this.svg.group(r).transform({translate:[o*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&0===i&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),t++},f.prototype.geoOverlappingCircles=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:m(r),opacity:t},this.svg.circle(a*i,o*i,i,n),0===a&&this.svg.circle(6*i,o*i,i,n),0===o&&this.svg.circle(a*i,6*i,i,n),0===a&&0===o&&this.svg.circle(6*i,6*i,i,n),e++},f.prototype.geoOctogons=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,60),l=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,i=0;i<6;i++)for(o=0;o<6;o++)r=p(a=c(this.hash,n)),t=m(a),this.svg.polyline(l,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[o*s,i*s]}),n+=1},f.prototype.geoSquares=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=m(r),this.svg.rect(a*i,o*i,i,i,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},f.prototype.geoConcentricCircles=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60),s=i/5;for(this.svg.setWidth((i+s)*6),this.svg.setHeight((i+s)*6),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=m(r),this.svg.circle(a*i+a*s+(i+s)/2,o*i+o*s+(i+s)/2,i/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=p(r=c(this.hash,39-t)),e=m(r),this.svg.circle(a*i+a*s+(i+s)/2,o*i+o*s+(i+s)/2,i/4,{fill:e,"fill-opacity":n}),t+=1},f.prototype.geoOverlappingRings=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60),s=i/4;for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(a*i,o*i,i-s/2,n),0===a&&this.svg.circle(6*i,o*i,i-s/2,n),0===o&&this.svg.circle(a*i,6*i,i-s/2,n),0===a&&0===o&&this.svg.circle(6*i,6*i,i-s/2,n),e+=1},f.prototype.geoTriangles=function(){var e,t,n,r,a,o,i,s,l=d(c(this.hash,0),0,15,15,80),f=l/2*Math.sqrt(3),h=[s=l/2,0,l,f,0,f,s,0].join(",");for(this.svg.setWidth(3*l),this.svg.setHeight(6*f),e=0,i=0;i<6;i++)for(o=0;o<6;o++)t=p(a=c(this.hash,e)),r={fill:m(a),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=i%2==0?180*(o%2==0):180*(o%2!=0),this.svg.polyline(h,r).transform({translate:[o*l*.5-l/2,f*i],rotate:[n,l/2,f/2]}),0===o&&this.svg.polyline(h,r).transform({translate:[6*l*.5-l/2,f*i],rotate:[n,l/2,f/2]}),e+=1},f.prototype.geoDiamonds=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,50),l=d(c(this.hash,1),0,15,10,50),f=[s/2,0,s,l/2,s/2,l,0,l/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*l),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),r={fill:m(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=i%2==0?0:s/2,this.svg.polyline(f,r).transform({translate:[o*s-s/2+e,l/2*i-l/2]}),0===o&&this.svg.polyline(f,r).transform({translate:[6*s-s/2+e,l/2*i-l/2]}),0===i&&this.svg.polyline(f,r).transform({translate:[o*s-s/2+e,l/2*6-l/2]}),0===o&&0===i&&this.svg.polyline(f,r).transform({translate:[6*s-s/2+e,l/2*6-l/2]}),t+=1},f.prototype.geoNestedSquares=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,4,12),s=7*i;for(this.svg.setWidth((s+i)*6+6*i),this.svg.setHeight((s+i)*6+6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":i+"px"},this.svg.rect(a*s+a*i*2+i/2,o*s+o*i*2+i/2,s,s,n),t=p(r=c(this.hash,39-e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":i+"px"},this.svg.rect(a*s+a*i*2+i/2+2*i,o*s+o*i*2+i/2+2*i,3*i,3*i,n),e+=1},f.prototype.geoMosaicSquares=function(){var e,t,n,r=d(c(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?v(this.svg,t*r*2,n*r*2,r,c(this.hash,e)):y(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):n%2==0?y(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):v(this.svg,t*r*2,n*r*2,r,c(this.hash,e)),e+=1},f.prototype.geoPlaid=function(){var e,t,n,r,a,o,i=0,s=0;for(t=0;t<36;)i+=c(this.hash,t)+5,n=p(o=c(this.hash,t+1)),e=m(o),r=o+5,this.svg.rect(0,i,"100%",r,{opacity:n,fill:e}),i+=r,t+=2;for(t=0;t<36;)s+=c(this.hash,t)+5,n=p(o=c(this.hash,t+1)),e=m(o),a=o+5,this.svg.rect(s,0,a,"100%",{opacity:n,fill:e}),s+=a,t+=2;this.svg.setWidth(s),this.svg.setHeight(i)},f.prototype.geoTessellation=function(){var e,t,n,r,a=d(c(this.hash,0),0,15,5,40),o=a*Math.sqrt(3),i=2*a,s=a/2*Math.sqrt(3),l=[0,0,s,a/2,0,a,0,0].join(","),f=3*a+2*s,h=2*o+2*a;for(this.svg.setWidth(f),this.svg.setHeight(h),e=0;e<20;e++)switch(t=p(r=c(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:m(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-a/2,-a/2,a,a,n),this.svg.rect(f-a/2,-a/2,a,a,n),this.svg.rect(-a/2,h-a/2,a,a,n),this.svg.rect(f-a/2,h-a/2,a,a,n);break;case 1:this.svg.rect(i/2+s,o/2,a,a,n);break;case 2:this.svg.rect(-a/2,h/2-a/2,a,a,n),this.svg.rect(f-a/2,h/2-a/2,a,a,n);break;case 3:this.svg.rect(i/2+s,1.5*o+a,a,a,n);break;case 4:this.svg.polyline(l,n).transform({translate:[a/2,-a/2],rotate:[0,a/2,s/2]}),this.svg.polyline(l,n).transform({translate:[a/2,h- -a/2],rotate:[0,a/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(l,n).transform({translate:[f-a/2,-a/2],rotate:[0,a/2,s/2],scale:[-1,1]}),this.svg.polyline(l,n).transform({translate:[f-a/2,h+a/2],rotate:[0,a/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(l,n).transform({translate:[f/2+a/2,o/2]});break;case 7:this.svg.polyline(l,n).transform({translate:[f-f/2-a/2,o/2],scale:[-1,1]});break;case 8:this.svg.polyline(l,n).transform({translate:[f/2+a/2,h-o/2],scale:[1,-1]});break;case 9:this.svg.polyline(l,n).transform({translate:[f-f/2-a/2,h-o/2],scale:[-1,-1]});break;case 10:this.svg.polyline(l,n).transform({translate:[a/2,h/2-a/2]});break;case 11:this.svg.polyline(l,n).transform({translate:[f-a/2,h/2-a/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,a/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-f+a/2,a/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 15:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-f+a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 16:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 17:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-f+a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 18:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+a/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-f+a/2,-h+a/2],rotate:[-30,0,0]})}}},6743(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,a=0xc3d2e1f0,o=new Uint32Array(80),i=0,s=24,l=0;function u(){for(var s,l,u=16;u<80;u++){var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var d=e,m=t,p=n,f=r,h=a;for(u=0;u<80;u++){u<20?(s=f^m&(p^f),l=0x5a827999):u<40?(s=m^p^f,l=0x6ed9eba1):u<60?(s=m&p|f&(m|p),l=0x8f1bbcdc):(s=m^p^f,l=0xca62c1d6);var g=(d<<5|d>>>27)+s+h+l+(0|o[u]);h=f,f=p,p=m<<30|m>>>2,m=d,d=g}for(u=0,e=e+d|0,t=t+m|0,n=n+p|0,r=r+f|0,a=a+h|0,i=0;u<16;u++)o[u]=0}function c(e){o[i]|=(255&e)<<s,s?s-=8:(i++,s=24),16===i&&u()}function d(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;l+=8*t;for(var n=0;n<t;n++)c(e.charCodeAt(n));return}var r=e.length;l+=8*r;for(var a=0;a<r;a++)c(e[a])},digest:function(){c(128),(i>14||14===i&&s<24)&&u(),i=14,s=24,c(0),c(0),c(l>0xffffffffff?l/0x10000000000:0),c(l>0xffffffff?l/0x100000000:0);for(var o=24;o>=0;o-=8)c(l>>o);return d(e)+d(t)+d(n)+d(r)+d(a)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},8502(e,t,n){"use strict";var r=n(2849),a=n(6541);function o(){return this.width=100,this.height=100,this.svg=a("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=o,o.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},o.prototype.end=function(){return this.context.pop(),this},o.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},o.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},o.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},o.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},o.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},o.prototype.toString=function(){return this.svg.toString()},o.prototype.rect=function(e,t,n,o,i){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(i))}),this;var l=a("rect");return this.currentContext().appendChild(l),this.setAttributes(l,r({x:e,y:t,width:n,height:o},i)),this},o.prototype.circle=function(e,t,n,o){var i=a("circle");return this.currentContext().appendChild(i),this.setAttributes(i,r({cx:e,cy:t,r:n},o)),this},o.prototype.path=function(e,t){var n=a("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},o.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var o=a("polyline");return this.currentContext().appendChild(o),this.setAttributes(o,r({points:e},t)),this},o.prototype.group=function(e){var t=a("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},6541(e){"use strict";var t=e.exports=function(e){return this instanceof t?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},8067(e,t){"use strict";t.pathToRegexp=function(e,t={}){let{delimiter:u="/",end:c=!0,sensitive:d=!1,trailing:m=!0}=t,p=[],f=[];for(let c of function e(t,n){if(Array.isArray(t))for(let r of t)e(r,n);else n.push(t);return n}(e,[])){let e="object"==typeof c?c:function(e,t={}){let{encodePath:i=n}=t,u=[...e],c=[],d=0,m=0;function p(){let t="";if(r.test(u[d]))do t+=u[d++];while(a.test(u[d]));else if('"'===u[d]){let n=d;for(;d++<u.length;){if('"'===u[d]){d++,n=0;break}"\\"===u[d]&&d++,t+=u[d]}if(n)throw new l(`Unterminated quote at index ${n}`,e)}if(!t)throw new l(`Missing parameter name at index ${d}`,e);return t}for(;d<u.length;){let e=u[d],t=o[e];t?c.push({type:t,index:d++,value:e}):"\\"===e?c.push({type:"escape",index:d++,value:u[d++]}):":"===e?c.push({type:"param",index:d++,value:p()}):"*"===e?c.push({type:"wildcard",index:d++,value:p()}):c.push({type:"char",index:d++,value:e})}return c.push({type:"end",index:d,value:""}),new s(function t(n){let r=[];for(;;){let a=c[m++];if(a.type===n)break;if("char"===a.type||"escape"===a.type){let e=a.value,t=c[m];for(;"char"===t.type||"escape"===t.type;)e+=t.value,t=c[++m];r.push({type:"text",value:i(e)});continue}if("param"===a.type||"wildcard"===a.type){r.push({type:a.type,name:a.value});continue}if("{"===a.type){r.push({type:"group",tokens:t("}")});continue}throw new l(`Unexpected ${a.type} at index ${a.index}, expected ${n}`,e)}return r}("end"),e)}(c,t);for(let t of function* e(t,n,r){if(n===t.length)return yield r;let a=t[n];if("group"===a.type)for(let o of e(a.tokens,0,r.slice()))yield*e(t,n+1,o);else r.push(a);yield*e(t,n+1,r)}(e.tokens,0,[]))f.push(function(e,t,n,r){let a="",o="",s=!0;for(let d of e){if("text"===d.type){a+=i(d.value),o+=d.value,s||(s=d.value.includes(t));continue}if("param"===d.type||"wildcard"===d.type){var u,c;if(!s&&!o)throw new l(`Missing text before "${d.name}" ${d.type}`,r);"param"===d.type?a+=`(${u=t,(c=s?"":o).length<2?u.length<2?`[^${i(u+c)}]`:`(?:(?!${i(u)})[^${i(c)}])`:u.length<2?`(?:(?!${i(c)})[^${i(u)}])`:`(?:(?!${i(c)}|${i(u)})[\\s\\S])`}+)`:a+="([\\s\\S]+)",n.push(d),o="",s=!1;continue}}return a}(t,u,p,e.originalPath))}let h=`^(?:${f.join("|")})`;return m&&(h+=`(?:${i(u)}$)?`),{regexp:new RegExp(h+=c?"$":`(?=${i(u)}|$)`,d?"":"i"),keys:p}};let n=e=>e,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class s{constructor(e,t){this.tokens=e,this.originalPath=t}}class l extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),super(n+="; visit https://git.new/pathToRegexpError for info"),this.originalPath=t}}},5338(e,t,n){"use strict";var r=n(5747);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3904(e,t,n){"use strict";let r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof a)if(!!t.loose===e.loose)return e;else e=e.value;u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=a;let o=n(8587),{safeRe:i,t:s}=n(9718),l=n(2111),u=n(7272),c=n(3908),d=n(8311)},8311(e,t,n){"use strict";let r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new a(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&h)|(this.options.loose&&g))+":"+e,n=o.get(t);if(n)return n;let r=this.options.loose,a=r?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(a,T(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],m)),l("tilde trim",e=e.replace(c[d.TILDETRIM],p)),l("caret trim",e=e.replace(c[d.CARETTRIM],f));let i=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>R(e,this.options));r&&(i=i.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",i);let u=new Map;for(let e of i.map(e=>new s(e,this.options))){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let v=[...u.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof a))throw TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=a;let o=new(n(8794)),i=n(8587),s=n(3904),l=n(7272),u=n(3908),{safeRe:c,t:d,comparatorTrimReplace:m,tildeTrimReplace:p,caretTrimReplace:f}=n(9718),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=n(6874),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),a=r.pop();for(;n&&r.length;)n=r.every(e=>a.intersects(e,t)),a=r.pop();return n},w=(e,t)=>(l("comp",e=e.replace(c[d.BUILD],""),t),l("caret",e=_(e,t)),l("tildes",e=x(e,t)),l("xrange",e=k(e,t)),l("stars",e=P(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>D(e,t)).join(" "),D=(e,t)=>{let n=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(n,(t,n,r,a,o)=>{let i;return l("tilde",e,t,n,r,a,o),E(n)?i="":E(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:E(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(l("replaceTilde pr",o),i=`>=${n}.${r}.${a}-${o} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i})},_=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{l("caret",e,t);let n=t.loose?c[d.CARETLOOSE]:c[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,a,o,i)=>{let s;return l("caret",e,t,n,a,o,i),E(n)?s="":E(a)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(o)?s="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),s="0"===n?"0"===a?`>=${n}.${a}.${o}-${i} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o}-${i} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===a?`>=${n}.${a}.${o}${r} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o} <${+n+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>C(e,t)).join(" ")),C=(e,t)=>{e=e.trim();let n=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(n,(n,r,a,o,i,s)=>{l("xRange",e,n,r,a,o,i,s);let u=E(a),c=u||E(o),d=c||E(i);return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),i=0,">"===r?(r=">=",c?(a=+a+1,o=0):o=+o+1,i=0):"<="===r&&(r="<",c?a=+a+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+a}.${o}.${i}${s}`):c?n=`>=${a}.0.0${s} <${+a+1}.0.0-0`:d&&(n=`>=${a}.${o}.0${s} <${a}.${+o+1}.0-0`),l("xRange return",n),n})},P=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),T=e=>(t,n,r,a,o,i,s,l,u,c,d,m)=>(n=E(r)?"":E(a)?`>=${r}.0.0${e?"-0":""}`:E(o)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`,l=E(u)?"":E(c)?`<${+u+1}.0.0-0`:E(d)?`<${u}.${+c+1}.0-0`:m?`<=${u}.${c}.${d}-${m}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},3908(e,t,n){"use strict";let r=n(7272),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=n(6874),{safeRe:i,t:s}=n(9718),l=n(8587),{compareIdentifiers:u}=n(1123);class c{constructor(e,t){if(t=l(t),e instanceof c)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return(e instanceof c||(e=new c(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return -1;else if(n===a)continue;else return u(n,a)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{let n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return -1;else if(n===a)continue;else return u(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},2111(e,t,n){"use strict";let r=n(4641),a=n(3999),o=n(5580),i=n(4089),s=n(7059),l=n(5200);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return a(e,n,u);case">":return o(e,n,u);case">=":return i(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw TypeError(`Invalid operator: ${t}`)}}},560(e,t,n){"use strict";let r=n(3908);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},4641(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0===r(e,t,n)},5580(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>r(e,t,n)>0},4089(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>r(e,t,n)>=0},7059(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0>r(e,t,n)},5200(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0>=r(e,t,n)},3999(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0!==r(e,t,n)},7638(e,t,n){"use strict";let r=n(8311);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},6874(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){"use strict";e.exports="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},1123(e){"use strict";let t=/^[0-9]+$/,n=(e,n)=>{if("number"==typeof e&&"number"==typeof n)return e===n?0:e<n?-1:1;let r=t.test(e),a=t.test(n);return r&&a&&(e*=1,n*=1),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},8794(e){"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},8587(e){"use strict";let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},9718(e,t,n){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=n(6874),i=n(7272),s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={},m=0,p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,a]],h=(e,t,n)=>{let r=(e=>{for(let[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=m++;i(e,a,t),d[e]=a,u[a]=t,c[a]=r,s[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),h("FULL",`^${u[d.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),h("LOOSE",`^${u[d.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),h("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),h("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?`+"(?:$|[^\\d])"),h("COERCERTL",u[d.COERCE],!0),h("COERCERTLFULL",u[d.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6942(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)t.call(e,o)&&e[o]&&(a=r(a,o));return a}(o)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},3684(e,t,n){"use strict";let r,a,o,i,s,l,u,c,d,m,p;n.r(t),n.d(t,{GenderUnknownIcon:()=>dw,evaluateAsNumber:()=>i3,getImportMapOverrideMap:()=>oQ,StockManagementPictogram:()=>xr,ChemistryIcon:()=>dt,BabyIcon:()=>c0,DashboardExtension:()=>mw,openmrsComponentDecorator:()=>ur,tryRegisterExtension:()=>cw,pictogramIds:()=>EB,ActivityIcon:()=>cZ,compile:()=>i8,removeRouteMapOverride:()=>iE,TableBatchActions:()=>cM,getAsyncLifecycle:()=>uo,subscribeOpenmrsEvent:()=>iN,PasswordIcon:()=>dH,Assessment2Pictogram:()=>EH,CloseIcon:()=>ds,setupRouteMapOverrides:()=>i_,useFeatureFlag:()=>uM,reset:()=>lo,LabOrderIcon:()=>dT,VisitMode:()=>iF,useLocations:()=>u3,getLifecycle:()=>ua,formatDatetime:()=>b3,getVisitsForPatient:()=>iG,formatPartialDate:()=>b0,CustomOverflowMenu:()=>cH,LocationIcon:()=>d$,GroupIcon:()=>dx,createUseStore:()=>lM,VisitStatus:()=>iB,getSessionLocation:()=>oP,getCurrentImportMap:()=>it,usePatient:()=>ct,useRenderableExtensions:()=>cr,getOpenedWindowIndexByWorkspace:()=>lh,setLeftNav:()=>ls,clearHistory:()=>os,clearConfigErrors:()=>nF,formatTime:()=>b2,isDevEnabled:()=>oM,closeWorkspaceGroup2:()=>xO,getCurrentRouteMap:()=>ig,ConfigurableLink:()=>lT,sessionStore:()=>oy,setSessionLocale:()=>oT,subscribeSnackbarShown:()=>S,getLoggedInUser:()=>oC,GenderMaleIcon:()=>dv,getExtensionSlotConfigFromStore:()=>tX,evaluateAsNumberAsync:()=>i6,getImportMapDefaultMap:()=>oJ,unregisterExtensionRendering:()=>sI,implementerToolsConfigStore:()=>nn,Type:()=>tL,InPatientPictogram:()=>E0,cleanupObsoleteFeatureFlags:()=>sw,getAttachmentsUrl:()=>iP,showSnackbar:()=>xy,PatientBannerActionsMenu:()=>EN,PatientSearchPictogram:()=>E5,DocumentAttachmentIcon:()=>dd,Snackbar:()=>xm,CardiologyPictogram:()=>EK,ImageMedicalIcon:()=>dS,ActionableNotificationComponent:()=>w8,DiagnosisTags:()=>wL,iconIds:()=>cG,PatientsPictogram:()=>E9,interpolateUrl:()=>a7,setupHistory:()=>oa,subscribeToastShown:()=>_,detachAll:()=>le,convertToLocaleCalendar:()=>b6,DocumentIcon:()=>dc,configInternalStore:()=>tK,ActionMenuButton2:()=>xG,setupDynamicOfflineDataHandler:()=>Dg,makeUrl:()=>of,oneOf:()=>nK,selectPreferredName:()=>EE,MobileCheckIcon:()=>dL,createErrorHandler:()=>P,parseDate:()=>bZ,getAttachmentByUuid:()=>ik,LeftNavMenu:()=>wH,getExtensionRegistration:()=>s5,ShoppingCartAddItemIcon:()=>my,ReferralOrderIcon:()=>dq,ReportIcon:()=>dX,dispatchToastShown:()=>E,getImportMapNextPageMap:()=>oX,registerExtension:()=>s9,setupOfflineSync:()=>Dh,DownloadIcon:()=>dm,useConnectivity:()=>DE,provide:()=>nv,ShoppingCartArrowDownIcon:()=>d6,featureFlagsStore:()=>sv,jsep:()=>iY,GeriatricsPictogram:()=>EX,SearchIcon:()=>d1,reportError:()=>C,slugify:()=>o8,isOmrsDateToday:()=>bz,getExtensionStore:()=>sj,BloodBankPictogram:()=>Ez,TriagePictogram:()=>xo,Workspace2:()=>xV,refetchCurrentUser:()=>o_,CheckmarkOutlineIcon:()=>de,registerExtensionSlot:()=>la,AllergiesIcon:()=>mp,ArrowDownIcon:()=>cq,useOpenmrsInfinite:()=>uK,getExtensionConfigFromExtensionSlotStore:()=>t4,OpenmrsDatePicker:()=>wj,getExtensionConfigFromStore:()=>t1,getDynamicOfflineDataEntries:()=>Dy,getLocaleDisplayName:()=>bc,messageOmrsServiceWorker:()=>Db,navigate:()=>ot,launchWorkspace2:()=>x$,getGroupByWindowName:()=>lf,CustomOverflowMenuItem:()=>cz,isUrl:()=>nz,CaretDownIcon:()=>c2,ArrowLeftIcon:()=>cJ,FacilityPictogram:()=>EJ,ViewOffIcon:()=>mc,updateInternalExtensionStore:()=>sR,dispatchActionableNotificationShown:()=>b,resetRouteMapOverrides:()=>ix,formatDurationBetween:()=>wr,defaultVisitCustomRepresentation:()=>iV,getBreadcrumbsFor:()=>n1,useOpenmrsPagination:()=>uF,Pagination:()=>Eg,CheckmarkFilledIcon:()=>c7,clearCurrentUser:()=>oS,showModal:()=>w3,ChevronUpIcon:()=>di,saveVisit:()=>iz,useAttachments:()=>ux,Pictogram:()=>xc,useExtensionSlot:()=>lW,ChevronDownIcon:()=>dn,OpenmrsDateRangePicker:()=>wM,deleteAttachmentPermanently:()=>iT,getVisitTypes:()=>iL,OverflowMenuHorizontalIcon:()=>dU,EventScheduleIcon:()=>dh,getSessionStore:()=>ox,ProcedureOrderIcon:()=>dZ,preloadImport:()=>ie,registerWorkspaceWindows2:()=>ly,useOnVisible:()=>u5,setSessionLocation:()=>oR,userHasAccess:()=>ok,ChartAverageIcon:()=>c9,getFeatureFlag:()=>sE,UserAvatarIcon:()=>mi,renderExtension:()=>lk,useFhirInfinite:()=>uJ,toVisitTypeObject:()=>ij,useSession:()=>ca,EmergencyDepartmentPictogram:()=>Eq,Notification:()=>w5,dispatchSnackbarShown:()=>w,formatDate:()=>b1,workspace2StoreActions:()=>xI,SwitcherIcon:()=>d2,esmStyleGuideSchema:()=>cA,getImportMapDisabledOverrides:()=>o0,useAssignedExtensionIds:()=>uw,CaretRightIcon:()=>c6,evaluateAsType:()=>i5,PageHeader:()=>Ef,TranslateIcon:()=>mn,setUserProperties:()=>oO,MovementIcon:()=>dV,renderInlineNotifications:()=>Eo,subscribePrecacheStaticDependencies:()=>Dw,PaymentsDeskPictogram:()=>E8,usePrimaryIdentifierCode:()=>cn,useLayoutType:()=>uQ,getCurrentUser:()=>oE,XrayPictogram:()=>xi,CaretUpIcon:()=>c5,renderActionableNotifications:()=>Es,OpenmrsAppContext:()=>uh,setupModals:()=>w2,getDefaultsFromConfigSchema:()=>function e(t){let n={};for(let r of Object.keys(t))if(Du(t[r])&&t[r].hasOwnProperty("_default"))n[r]=t[r]._default;else{if(r.startsWith("_"))continue;Du(t[r])?n[r]=e(t[r]):n[r]=t[r]}return n},subscribeTo:()=>W,recordConfigDerivationError:()=>ne,useAbortController:()=>uy,Extension:()=>lO,getFhirServerPaginationHandlers:()=>uW,useConnectedExtensions:()=>uC,registerApp:()=>cx,HospitalBedIcon:()=>d_,useExtensionInternalStore:()=>uA,configExtensionStore:()=>tZ,getSynchronizationItems:()=>Dv,getExtensionSlotsConfigStore:()=>tq,registerExtensionRendering:()=>sA,RenderIfValueIsTruthy:()=>ug,registerFeatureFlag:()=>sb,useFhirFetchAll:()=>uq,restBaseUrl:()=>od,CalendarHeatMapIcon:()=>c1,isImportMapOverrideDisabled:()=>o1,resetConfigSystem:()=>nB,getExtensionInternalStore:()=>sC,registerGlobalStore:()=>V,evaluateAsBoolean:()=>i4,PatientBannerPatientInfo:()=>EO,addRouteMapOverride:()=>iw,getDefaultCalendar:()=>bX,SettingsIcon:()=>d4,DrugOrderIcon:()=>dp,ProgramsIcon:()=>dY,useAssignedExtensions:()=>lU,CloseFilledIcon:()=>dl,canAccessStorage:()=>Dl,registerDefaultCalendar:()=>bJ,TreeViewAltIcon:()=>ma,OverflowMenuVerticalIcon:()=>dW,clearConfigDerivationError:()=>nt,getConfigStore:()=>tY,InformationSquareIcon:()=>dP,EmptyCard:()=>wV,ChevronLeftIcon:()=>dr,RadiologyIcon:()=>mg,useCandidateExtensions:()=>uE,renderToasts:()=>xx,isDesktop:()=>u0,integrateBreakpoints:()=>cC,RegistrationPictogram:()=>xt,CardHeader:()=>cO,getExtensionRegistrationFrom:()=>s6,InformationIcon:()=>dk,TrashCanIcon:()=>mr,useShallowStableValue:()=>l$,PatientDocumentsPictogram:()=>E6,useOpenmrsSWR:()=>u9,Assessment1Pictogram:()=>EW,finishRegisteringAllApps:()=>cD,importDynamic:()=>o7,useFhirPagination:()=>uU,useVisitContextStore:()=>cm,ArrowUpIcon:()=>cQ,showActionableNotification:()=>El,useForceUpdate:()=>uL,useVisit:()=>cp,PatientBannerPatientIdentifiers:()=>EC,TransferPictogram:()=>xa,usePagination:()=>u8,Breakpoint:()=>c_,PatientBannerToggleContactDetailsButton:()=>xZ,CloseOutlineIcon:()=>du,ObstetricsPictogram:()=>E3,parseDateInput:()=>b9,getConfig:()=>nw,attach:()=>s8,getLocale:()=>bd,isUrlWithTemplateParameters:()=>nH,useEmrConfiguration:()=>u$,useLeftNav:()=>u1,ToolsIcon:()=>mt,ErrorState:()=>wU,detach:()=>s7,setCurrentVisit:()=>iH,ConditionsIcon:()=>mh,SaveIcon:()=>d0,useConfig:()=>uk,validator:()=>tF,CalendarIcon:()=>c4,getHistory:()=>oo,StickyNoteAddIcon:()=>d5,useWorkspace2Store:()=>xj,getPatientName:()=>Ey,getVisitStore:()=>iW,getCoreTranslation:()=>a8,registerModuleWithConfigSystem:()=>nf,registerModuleLoad:()=>nh,getBreadcrumbs:()=>nX,extractVariableNames:()=>sh,translateFrom:()=>a9,useStoreWithActions:()=>lj,EditIcon:()=>df,getCandidateExtensions:()=>lr,shallowEqual:()=>T,subscribeNotificationShown:()=>x,MaximizeIcon:()=>dA,promptForClosingWorkspaces:()=>xA,WarningIcon:()=>mm,fhirBaseUrl:()=>om,matchLocale:()=>Ds,usePatientPhoto:()=>Ej,registerBreadcrumb:()=>nq,EventsIcon:()=>dg,createGlobalStore:()=>B,subscribeToFeatureFlag:()=>sx,useExtensionStore:()=>uj,createAttachment:()=>iR,useLeftNavStore:()=>u4,TableIcon:()=>d7,Icon:()=>mb,InformationFilledIcon:()=>dC,getCurrentPageMap:()=>oq,LaboratoryPictogram:()=>E1,temporaryConfigStore:()=>tG,toDateObjectStrict:()=>bK,defineConfigSchema:()=>np,filterBreadcrumbs:()=>n0,invalidateImplementerToolsConfig:()=>t8,PatientBannerContactDetails:()=>x0,getAssignedExtensions:()=>ln,PatientPhoto:()=>EF,MaterialOrderIcon:()=>dN,MicroscopeIcon:()=>dM,visitTypesUrl:()=>iM,scheduleRecomputation:()=>sV,PharmacyPictogram:()=>E7,AttachmentIcon:()=>mf,MoneyIcon:()=>dF,getAttachments:()=>iC,PageHeaderContent:()=>Eh,MedicationIcon:()=>dI,PrinterIcon:()=>dG,PatientListsPictogram:()=>xl,useAppContext:()=>uv,isOpenmrsRoutes:()=>io,AppointmentsAltPictogram:()=>EU,GenericOrderTypeIcon:()=>dE,batchExtensionUpdates:()=>sF,useExtensionSlotStore:()=>lB,ViewIcon:()=>md,formattedName:()=>Ew,sessionEndpoint:()=>op,duration:()=>wt,resetImportMapOverrides:()=>o3,TableOfContentsIcon:()=>d8,CaretLeftIcon:()=>c3,getTranslationOverrides:()=>nE,isVersionSatisfied:()=>Dm,EmptyCardIllustration:()=>wB,PenIcon:()=>dK,verifyTotpCode:()=>o$,validators:()=>nG,setupImportMapOverrides:()=>o9,showToast:()=>xD,useDefineAppContext:()=>uf,getGlobalStore:()=>U,useOnClickOutside:()=>u6,getWindowByWorkspaceName:()=>lp,ArrowRightIcon:()=>cX,loadLifeCycles:()=>cy,registerBreadcrumbs:()=>nJ,MotherIcon:()=>dB,fetchCurrentPatient:()=>iO,Toast:()=>xv,MessageQueueIcon:()=>dj,TwoFactorAuthenticationIcon:()=>mo,Pharmacy2Pictogram:()=>xe,goBackInHistory:()=>oi,GroupAccessIcon:()=>dD,getExtensionRenderingsStore:()=>sP,setImplementerToolsConfigRecomputer:()=>t9,getAsyncExtensionLifecycle:()=>us,setupApiModule:()=>oF,renderLoadingSpinner:()=>x1,showNotification:()=>Ei,getModalRegistration:()=>ld,ListCheckedIcon:()=>dO,ResponsiveWrapper:()=>xd,GynaecologyPictogram:()=>EQ,ShoppingCartIcon:()=>d3,getRouteMapNextPageMap:()=>iv,MetadataExportPictogram:()=>E2,updateVisit:()=>iK,backendDependencies:()=>oL,MaybePictogram:()=>xu,createParcelMounter:()=>l_,openmrsFetch:()=>oh,useStore:()=>lI,isOpenmrsAppRoutes:()=>ia,HomePictogram:()=>xs,DentistryPictogram:()=>EZ,ServiceQueuesPictogram:()=>xn,toLanguageTag:()=>bu,setFeatureFlag:()=>sD,DigitalTrustPictogram:()=>EY,NumericObservation:()=>Em,attachmentUrl:()=>iS,interpolateString:()=>oe,inRange:()=>nW,useExtensionSlotMeta:()=>uI,AppointmentsPictogram:()=>EV,renderSnackbars:()=>xg,getRegisteredWorkspace2Names:()=>xL,logout:()=>oN,toLocationObject:()=>iA,ChartLineIcon:()=>c8,UserHasAccess:()=>co,evaluateAsBooleanAsync:()=>i2,createDashboard:()=>mE,getLocations:()=>iI,useExtensionContext:()=>uN,getExtensionsConfigStore:()=>tQ,getRouteMapDefaultMap:()=>iy,age:()=>ED,isOmrsDateStrict:()=>bH,registerWorkspaceGroups2:()=>lg,usePaginationInfo:()=>u7,evaluateAsync:()=>i1,useOpenmrsFetchAll:()=>uZ,removeImportMapOverride:()=>o2,useVisitTypes:()=>ch,ageAsDuration:()=>Ex,getExtensionNameFromId:()=>s3,renderParcel:()=>lD,useWorkspace2Context:()=>xM,ResetIcon:()=>dQ,RenewIcon:()=>dJ,subscribeActionableNotificationShown:()=>D,ErrorCard:()=>wW,GenderFemaleIcon:()=>dy,enableImportMapOverride:()=>o6,retry:()=>Dp,ComponentContext:()=>lR,ExtensionSlot:()=>lz,unsetLeftNav:()=>ll,addImportMapOverride:()=>o4,MaybeIcon:()=>mv,useCustomOverflowMenu:()=>cW,PedestrianFamilyIcon:()=>dz,CtScanPictogram:()=>EG,dispatchNotificationShown:()=>v,leftNavStore:()=>li,OpenmrsFetchError:()=>og,UserFollowIcon:()=>ms,launchWorkspaceGroup2:()=>xT,ChevronRightIcon:()=>da,UserXrayIcon:()=>ml,GenderOtherIcon:()=>db,formatDuration:()=>b5,toOmrsIsoString:()=>bG,Labs2Pictogram:()=>E4,workspace2Store:()=>lm,setUserLanguage:()=>oD,useBodyScrollLock:()=>uD,getExtensionConfig:()=>t0,SyringeIcon:()=>d9,LocationPicker:()=>wz,useDebounce:()=>uP,TimeIcon:()=>me,getExtensionSlotConfig:()=>tJ,AddIcon:()=>cY,getRouteMapOverrideMap:()=>ib,processConfig:()=>nx,InventoryManagementIcon:()=>dR,registerWorkspaces2:()=>lv,UserIcon:()=>mu,formatPatientName:()=>Eb,fireOpenmrsEvent:()=>i$,registerModal:()=>lc,registerTranslationNamespace:()=>ng,displayName:()=>Ev,evaluate:()=>i0,defineExtensionConfigSchema:()=>ny,renderWorkspaceWindowsAndMenu:()=>Do,getSyncLifecycle:()=>ui,evaluateAsTypeAsync:()=>i9});let f="openmrs:notification-shown",h="openmrs:actionable-notification-shown",g="openmrs:toast-shown",y="openmrs:snack-bar-shown";function v(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function b(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))}function w(e){window.dispatchEvent(new CustomEvent(y,{detail:e}))}function E(e){window.dispatchEvent(new CustomEvent(g,{detail:e}))}function x(e){let t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function D(e){let t=t=>e(t.detail);return window.addEventListener(h,t),()=>window.removeEventListener(h,t)}function _(e){let t=t=>e(t.detail);return window.addEventListener(g,t),()=>window.removeEventListener(g,t)}function S(e){let t=t=>e(t.detail);return window.addEventListener(y,t),()=>window.removeEventListener(y,t)}function k(e,t){return e instanceof Error?e.message||t:"string"==typeof e&&e.trim().length>0?e:t}function C(e){let t=R(e);setTimeout(()=>{throw t})}function P(){let e=Error();return t=>{let n=R(t);n.stack+=`
1
+ (globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([["2757"],{7581(e){e.exports=function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},5238(e){e.exports=function(e,t,n){var r=t.prototype,a=function(e){var t=e.date,a=e.utc,o={};if(!(null===t||t instanceof Date||t instanceof Array||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var i=a?n.utc():n();Object.keys(t).forEach(function(e){var n;o["date"===(n=r.$utils().p(e))?"day":n]=t[e]});var s=o.day||(o.year||o.month>=0?1:i.date()),l=o.year||i.year(),u=o.month>=0?o.month:o.year||o.day?0:i.month(),c=o.hour||0,d=o.minute||0,m=o.second||0,p=o.millisecond||0;return a?new Date(Date.UTC(l,u,s,c,d,m,p)):new Date(l,u,s,c,d,m,p)}return t},o=r.parse;r.parse=function(e){e.date=a.bind(this)(e),o.bind(this)(e)};var i=r.set,s=r.add,l=r.subtract,u=function(e,t,n,r){void 0===r&&(r=1);var a=Object.keys(t),o=this;return a.forEach(function(n){o=e.bind(o)(t[n]*r,n)}),o};r.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?u.bind(this)(function(e,t){return i.bind(this)(t,e)},t,e):i.bind(this)(e,t)},r.add=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t):s.bind(this)(e,t)},r.subtract=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t,-1):l.bind(this)(e,t)}}},3826(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,o){var i=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},i.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=i.utcOffset;i.utcOffset=function(r,a){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(r)))return this;var i=16>=Math.abs(r)?60*r:r,s=this;if(a)return s.$offset=i,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l}else s=this.utc();return s};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return m.call(this,e,t,n);var r=this.local(),a=o(e).local();return m.call(r,a,t,n)}}}()},2849(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,a=t.call(e,"constructor"),o=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,a,o,i,s,l=arguments[0]||{},u=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},u=2),"object"!=typeof l&&"function"!=typeof l&&(l={});u<c;u++)if(null!=(t=arguments[u]))for(n in t)a=l[n],l!==(o=t[n])&&(d&&o&&(r(o)||(i=Array.isArray(o)))?(i?(i=!1,s=a&&Array.isArray(a)?a:[]):s=a&&r(a)?a:{},l[n]=e(d,s,o)):void 0!==o&&(l[n]=o));return l}},6767(e,t,n){!function(t){"use strict";var r=n(6974);function a(e){return function(t,n){return"object"==typeof t&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var o=e.exports={generate:a(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=a(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var a=o.generate(e,n);t(this).css("background-image",a.toDataUrl())})}))}("u">typeof jQuery?jQuery:null)},2467(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,a=e.g,o=e.b,i=Math.max(r/=255,a/=255,o/=255),s=Math.min(r,a,o),l=(i+s)/2;if(i===s)t=n=0;else{var u=i-s;switch(n=l>.5?u/(2-i-s):u/(i+s),i){case r:t=(a-o)/u+6*(a<o);break;case a:t=(o-r)/u+2;break;case o:t=(r-a)/u+4}t/=6}return{h:t,s:n,l:l}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,a,o=e.h,i=e.s,s=e.l;if(0===i)n=r=a=s;else{var l=s<.5?s*(1+i):s+i-s*i,u=2*s-l;n=t(u,l,o+1/3),r=t(u,l,o),a=t(u,l,o-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*a)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},6974(e,t,n){"use strict";var r=n(2849),a=n(2467),o=n(6743),i=n(8502),s={baseColor:"#933c3c"},l=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function c(e,t,n){return parseInt(e.substr(t,n||1),16)}function d(e,t,n,r,a){return(parseFloat(e)-t)*(a-r)/(n-t)+r}function m(e){return e%2==0?"#ddd":"#222"}function p(e){return d(e,0,15,.02,.15)}var f=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||o(e),this.svg=new i,this.generateBackground(),this.generatePattern(),this};function h(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function g(e){return[0,0,e,e,0,e,0,0].join(",")}function y(e,t,n,r,a){var o=g(r),i=p(a[0]),s=m(a[0]),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i,fill:s};e.polyline(o,l).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(o,l).transform({translate:[t+r,n+2*r],scale:[1,-1]}),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i=p(a[1]),fill:s=m(a[1])},e.polyline(o,l).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(o,l).transform({translate:[t+r,n],scale:[1,1]})}function v(e,t,n,r,a){var o=p(a),i=m(a),s=g(r),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:i};e.polyline(s,l).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,l).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,1]})}f.prototype.toSvg=function(){return this.svg.toString()},f.prototype.toString=function(){return this.toSvg()},f.prototype.toBase64=function(){var e=this.toSvg();return"u">typeof window&&"function"==typeof window.btoa?window.btoa(e):new Buffer(e).toString("base64")},f.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},f.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},f.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=a.hex2rgb(this.opts.color):(t=d(c(this.hash,14,3),0,4095,0,359),r=c(this.hash,17),(e=a.rgb2hsl(a.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=a.hsl2rgb(e)),this.color=a.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:a.rgb2rgbString(n)})},f.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>l.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=l[c(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},f.prototype.geoHexagons=function(){var e,t,n,r,a,o,i,s,l,f=d(c(this.hash,0),0,15,8,60),h=f*Math.sqrt(3),g=2*f,y=(s=f/2,[0,l=Math.sin(60*Math.PI/180)*f,s,0,s+f,0,2*f,l,s+f,2*l,s,2*l,0,l].join(","));for(this.svg.setWidth(3*g+3*f),this.svg.setHeight(6*h),t=0,i=0;i<6;i++)for(o=0;o<6;o++)a=c(this.hash,t),e=o%2==0?i*h:i*h+h/2,n=p(a),r={fill:m(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(y,r).transform({translate:[o*f*1.5-g/2,e-h/2]}),0===o&&this.svg.polyline(y,r).transform({translate:[6*f*1.5-g/2,e-h/2]}),0===i&&(e=o%2==0?6*h:6*h+h/2,this.svg.polyline(y,r).transform({translate:[o*f*1.5-g/2,e-h/2]})),0===o&&0===i&&this.svg.polyline(y,r).transform({translate:[6*f*1.5-g/2,5*h+h/2]}),t++},f.prototype.geoSineWaves=function(){var e,t,n,r,a,o,i,s=Math.floor(d(c(this.hash,0),0,15,100,400)),l=Math.floor(d(c(this.hash,1),0,15,30,100)),u=Math.floor(d(c(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=p(o=c(this.hash,t)),e=m(o),i=s/4*.7,a={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+l+" C "+i+" 0, "+(s/2-i)+" 0, "+s/2+" "+l+" S "+(s-i)+" "+2*l+", "+s+" "+l+" S "+(1.5*s-i)+" 0, "+1.5*s+", "+l,this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l]}),this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l+36*u]})},f.prototype.geoChevrons=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,30,80),l=d(c(this.hash,0),0,15,30,80),f=(e=.66*l,[[0,0,s/2,l-e,s/2,l,0,e,0,0],[s/2,l-e,s,0,s,e,s/2,l,s/2,l-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*l*.66),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:m(a),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[o*s,i*l*.66-l/2]}).polyline(f).end(),0===i&&this.svg.group(r).transform({translate:[o*s,6*l*.66-l/2]}).polyline(f).end(),t+=1},f.prototype.geoPlusSigns=function(){var e,t,n,r,a,o,i,s,l=d(c(this.hash,0),0,15,10,25),f=3*l,g=h(l);for(this.svg.setWidth(12*l),this.svg.setHeight(12*l),n=0,s=0;s<6;s++)for(i=0;i<6;i++)r=p(o=c(this.hash,n)),t=m(o),e=+(s%2!=0),a={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(a).transform({translate:[i*f-i*l+e*l-l,s*f-s*l-f/2]}).rect(g).end(),0===i&&this.svg.group(a).transform({translate:[4*f-i*l+e*l-l,s*f-s*l-f/2]}).rect(g).end(),0===s&&this.svg.group(a).transform({translate:[i*f-i*l+e*l-l,4*f-s*l-f/2]}).rect(g).end(),0===i&&0===s&&this.svg.group(a).transform({translate:[4*f-i*l+e*l-l,4*f-s*l-f/2]}).rect(g).end(),n++},f.prototype.geoXes=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,25),l=h(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),e=o%2==0?i*u-.5*u:i*u-.5*u+u/4,r={fill:m(a),opacity:n},this.svg.group(r).transform({translate:[o*u/2-u/2,e-i*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-i*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&(e=o%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[o*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end()),5===i&&this.svg.group(r).transform({translate:[o*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&0===i&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),t++},f.prototype.geoOverlappingCircles=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:m(r),opacity:t},this.svg.circle(a*i,o*i,i,n),0===a&&this.svg.circle(6*i,o*i,i,n),0===o&&this.svg.circle(a*i,6*i,i,n),0===a&&0===o&&this.svg.circle(6*i,6*i,i,n),e++},f.prototype.geoOctogons=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,60),l=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,i=0;i<6;i++)for(o=0;o<6;o++)r=p(a=c(this.hash,n)),t=m(a),this.svg.polyline(l,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[o*s,i*s]}),n+=1},f.prototype.geoSquares=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=m(r),this.svg.rect(a*i,o*i,i,i,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},f.prototype.geoConcentricCircles=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60),s=i/5;for(this.svg.setWidth((i+s)*6),this.svg.setHeight((i+s)*6),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=m(r),this.svg.circle(a*i+a*s+(i+s)/2,o*i+o*s+(i+s)/2,i/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=p(r=c(this.hash,39-t)),e=m(r),this.svg.circle(a*i+a*s+(i+s)/2,o*i+o*s+(i+s)/2,i/4,{fill:e,"fill-opacity":n}),t+=1},f.prototype.geoOverlappingRings=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,10,60),s=i/4;for(this.svg.setWidth(6*i),this.svg.setHeight(6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(a*i,o*i,i-s/2,n),0===a&&this.svg.circle(6*i,o*i,i-s/2,n),0===o&&this.svg.circle(a*i,6*i,i-s/2,n),0===a&&0===o&&this.svg.circle(6*i,6*i,i-s/2,n),e+=1},f.prototype.geoTriangles=function(){var e,t,n,r,a,o,i,s,l=d(c(this.hash,0),0,15,15,80),f=l/2*Math.sqrt(3),h=[s=l/2,0,l,f,0,f,s,0].join(",");for(this.svg.setWidth(3*l),this.svg.setHeight(6*f),e=0,i=0;i<6;i++)for(o=0;o<6;o++)t=p(a=c(this.hash,e)),r={fill:m(a),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=i%2==0?180*(o%2==0):180*(o%2!=0),this.svg.polyline(h,r).transform({translate:[o*l*.5-l/2,f*i],rotate:[n,l/2,f/2]}),0===o&&this.svg.polyline(h,r).transform({translate:[6*l*.5-l/2,f*i],rotate:[n,l/2,f/2]}),e+=1},f.prototype.geoDiamonds=function(){var e,t,n,r,a,o,i,s=d(c(this.hash,0),0,15,10,50),l=d(c(this.hash,1),0,15,10,50),f=[s/2,0,s,l/2,s/2,l,0,l/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*l),t=0,i=0;i<6;i++)for(o=0;o<6;o++)n=p(a=c(this.hash,t)),r={fill:m(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=i%2==0?0:s/2,this.svg.polyline(f,r).transform({translate:[o*s-s/2+e,l/2*i-l/2]}),0===o&&this.svg.polyline(f,r).transform({translate:[6*s-s/2+e,l/2*i-l/2]}),0===i&&this.svg.polyline(f,r).transform({translate:[o*s-s/2+e,l/2*6-l/2]}),0===o&&0===i&&this.svg.polyline(f,r).transform({translate:[6*s-s/2+e,l/2*6-l/2]}),t+=1},f.prototype.geoNestedSquares=function(){var e,t,n,r,a,o,i=d(c(this.hash,0),0,15,4,12),s=7*i;for(this.svg.setWidth((s+i)*6+6*i),this.svg.setHeight((s+i)*6+6*i),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":i+"px"},this.svg.rect(a*s+a*i*2+i/2,o*s+o*i*2+i/2,s,s,n),t=p(r=c(this.hash,39-e)),n={fill:"none",stroke:m(r),opacity:t,"stroke-width":i+"px"},this.svg.rect(a*s+a*i*2+i/2+2*i,o*s+o*i*2+i/2+2*i,3*i,3*i,n),e+=1},f.prototype.geoMosaicSquares=function(){var e,t,n,r=d(c(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?v(this.svg,t*r*2,n*r*2,r,c(this.hash,e)):y(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):n%2==0?y(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):v(this.svg,t*r*2,n*r*2,r,c(this.hash,e)),e+=1},f.prototype.geoPlaid=function(){var e,t,n,r,a,o,i=0,s=0;for(t=0;t<36;)i+=c(this.hash,t)+5,n=p(o=c(this.hash,t+1)),e=m(o),r=o+5,this.svg.rect(0,i,"100%",r,{opacity:n,fill:e}),i+=r,t+=2;for(t=0;t<36;)s+=c(this.hash,t)+5,n=p(o=c(this.hash,t+1)),e=m(o),a=o+5,this.svg.rect(s,0,a,"100%",{opacity:n,fill:e}),s+=a,t+=2;this.svg.setWidth(s),this.svg.setHeight(i)},f.prototype.geoTessellation=function(){var e,t,n,r,a=d(c(this.hash,0),0,15,5,40),o=a*Math.sqrt(3),i=2*a,s=a/2*Math.sqrt(3),l=[0,0,s,a/2,0,a,0,0].join(","),f=3*a+2*s,h=2*o+2*a;for(this.svg.setWidth(f),this.svg.setHeight(h),e=0;e<20;e++)switch(t=p(r=c(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:m(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-a/2,-a/2,a,a,n),this.svg.rect(f-a/2,-a/2,a,a,n),this.svg.rect(-a/2,h-a/2,a,a,n),this.svg.rect(f-a/2,h-a/2,a,a,n);break;case 1:this.svg.rect(i/2+s,o/2,a,a,n);break;case 2:this.svg.rect(-a/2,h/2-a/2,a,a,n),this.svg.rect(f-a/2,h/2-a/2,a,a,n);break;case 3:this.svg.rect(i/2+s,1.5*o+a,a,a,n);break;case 4:this.svg.polyline(l,n).transform({translate:[a/2,-a/2],rotate:[0,a/2,s/2]}),this.svg.polyline(l,n).transform({translate:[a/2,h- -a/2],rotate:[0,a/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(l,n).transform({translate:[f-a/2,-a/2],rotate:[0,a/2,s/2],scale:[-1,1]}),this.svg.polyline(l,n).transform({translate:[f-a/2,h+a/2],rotate:[0,a/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(l,n).transform({translate:[f/2+a/2,o/2]});break;case 7:this.svg.polyline(l,n).transform({translate:[f-f/2-a/2,o/2],scale:[-1,1]});break;case 8:this.svg.polyline(l,n).transform({translate:[f/2+a/2,h-o/2],scale:[1,-1]});break;case 9:this.svg.polyline(l,n).transform({translate:[f-f/2-a/2,h-o/2],scale:[-1,-1]});break;case 10:this.svg.polyline(l,n).transform({translate:[a/2,h/2-a/2]});break;case 11:this.svg.polyline(l,n).transform({translate:[f-a/2,h/2-a/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,a/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-f+a/2,a/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 15:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-f+a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 16:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 17:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-f+a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 18:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+a/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-f+a/2,-h+a/2],rotate:[-30,0,0]})}}},6743(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,a=0xc3d2e1f0,o=new Uint32Array(80),i=0,s=24,l=0;function u(){for(var s,l,u=16;u<80;u++){var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var d=e,m=t,p=n,f=r,h=a;for(u=0;u<80;u++){u<20?(s=f^m&(p^f),l=0x5a827999):u<40?(s=m^p^f,l=0x6ed9eba1):u<60?(s=m&p|f&(m|p),l=0x8f1bbcdc):(s=m^p^f,l=0xca62c1d6);var g=(d<<5|d>>>27)+s+h+l+(0|o[u]);h=f,f=p,p=m<<30|m>>>2,m=d,d=g}for(u=0,e=e+d|0,t=t+m|0,n=n+p|0,r=r+f|0,a=a+h|0,i=0;u<16;u++)o[u]=0}function c(e){o[i]|=(255&e)<<s,s?s-=8:(i++,s=24),16===i&&u()}function d(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;l+=8*t;for(var n=0;n<t;n++)c(e.charCodeAt(n));return}var r=e.length;l+=8*r;for(var a=0;a<r;a++)c(e[a])},digest:function(){c(128),(i>14||14===i&&s<24)&&u(),i=14,s=24,c(0),c(0),c(l>0xffffffffff?l/0x10000000000:0),c(l>0xffffffff?l/0x100000000:0);for(var o=24;o>=0;o-=8)c(l>>o);return d(e)+d(t)+d(n)+d(r)+d(a)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},8502(e,t,n){"use strict";var r=n(2849),a=n(6541);function o(){return this.width=100,this.height=100,this.svg=a("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=o,o.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},o.prototype.end=function(){return this.context.pop(),this},o.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},o.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},o.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},o.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},o.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},o.prototype.toString=function(){return this.svg.toString()},o.prototype.rect=function(e,t,n,o,i){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(i))}),this;var l=a("rect");return this.currentContext().appendChild(l),this.setAttributes(l,r({x:e,y:t,width:n,height:o},i)),this},o.prototype.circle=function(e,t,n,o){var i=a("circle");return this.currentContext().appendChild(i),this.setAttributes(i,r({cx:e,cy:t,r:n},o)),this},o.prototype.path=function(e,t){var n=a("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},o.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var o=a("polyline");return this.currentContext().appendChild(o),this.setAttributes(o,r({points:e},t)),this},o.prototype.group=function(e){var t=a("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},6541(e){"use strict";var t=e.exports=function(e){return this instanceof t?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},8067(e,t){"use strict";t.pathToRegexp=function(e,t={}){let{delimiter:u="/",end:c=!0,sensitive:d=!1,trailing:m=!0}=t,p=[],f=[];for(let c of function e(t,n){if(Array.isArray(t))for(let r of t)e(r,n);else n.push(t);return n}(e,[])){let e="object"==typeof c?c:function(e,t={}){let{encodePath:i=n}=t,u=[...e],c=[],d=0,m=0;function p(){let t="";if(r.test(u[d]))do t+=u[d++];while(a.test(u[d]));else if('"'===u[d]){let n=d;for(;d++<u.length;){if('"'===u[d]){d++,n=0;break}"\\"===u[d]&&d++,t+=u[d]}if(n)throw new l(`Unterminated quote at index ${n}`,e)}if(!t)throw new l(`Missing parameter name at index ${d}`,e);return t}for(;d<u.length;){let e=u[d],t=o[e];t?c.push({type:t,index:d++,value:e}):"\\"===e?c.push({type:"escape",index:d++,value:u[d++]}):":"===e?c.push({type:"param",index:d++,value:p()}):"*"===e?c.push({type:"wildcard",index:d++,value:p()}):c.push({type:"char",index:d++,value:e})}return c.push({type:"end",index:d,value:""}),new s(function t(n){let r=[];for(;;){let a=c[m++];if(a.type===n)break;if("char"===a.type||"escape"===a.type){let e=a.value,t=c[m];for(;"char"===t.type||"escape"===t.type;)e+=t.value,t=c[++m];r.push({type:"text",value:i(e)});continue}if("param"===a.type||"wildcard"===a.type){r.push({type:a.type,name:a.value});continue}if("{"===a.type){r.push({type:"group",tokens:t("}")});continue}throw new l(`Unexpected ${a.type} at index ${a.index}, expected ${n}`,e)}return r}("end"),e)}(c,t);for(let t of function* e(t,n,r){if(n===t.length)return yield r;let a=t[n];if("group"===a.type)for(let o of e(a.tokens,0,r.slice()))yield*e(t,n+1,o);else r.push(a);yield*e(t,n+1,r)}(e.tokens,0,[]))f.push(function(e,t,n,r){let a="",o="",s=!0;for(let d of e){if("text"===d.type){a+=i(d.value),o+=d.value,s||(s=d.value.includes(t));continue}if("param"===d.type||"wildcard"===d.type){var u,c;if(!s&&!o)throw new l(`Missing text before "${d.name}" ${d.type}`,r);"param"===d.type?a+=`(${u=t,(c=s?"":o).length<2?u.length<2?`[^${i(u+c)}]`:`(?:(?!${i(u)})[^${i(c)}])`:u.length<2?`(?:(?!${i(c)})[^${i(u)}])`:`(?:(?!${i(c)}|${i(u)})[\\s\\S])`}+)`:a+="([\\s\\S]+)",n.push(d),o="",s=!1;continue}}return a}(t,u,p,e.originalPath))}let h=`^(?:${f.join("|")})`;return m&&(h+=`(?:${i(u)}$)?`),{regexp:new RegExp(h+=c?"$":`(?=${i(u)}|$)`,d?"":"i"),keys:p}};let n=e=>e,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class s{constructor(e,t){this.tokens=e,this.originalPath=t}}class l extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),super(n+="; visit https://git.new/pathToRegexpError for info"),this.originalPath=t}}},5338(e,t,n){"use strict";var r=n(5747);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3904(e,t,n){"use strict";let r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof a)if(!!t.loose===e.loose)return e;else e=e.value;u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=a;let o=n(8587),{safeRe:i,t:s}=n(9718),l=n(2111),u=n(7272),c=n(3908),d=n(8311)},8311(e,t,n){"use strict";let r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new a(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&h)|(this.options.loose&&g))+":"+e,n=o.get(t);if(n)return n;let r=this.options.loose,a=r?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(a,T(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],m)),l("tilde trim",e=e.replace(c[d.TILDETRIM],p)),l("caret trim",e=e.replace(c[d.CARETTRIM],f));let i=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>R(e,this.options));r&&(i=i.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",i);let u=new Map;for(let e of i.map(e=>new s(e,this.options))){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let v=[...u.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof a))throw TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=a;let o=new(n(8794)),i=n(8587),s=n(3904),l=n(7272),u=n(3908),{safeRe:c,t:d,comparatorTrimReplace:m,tildeTrimReplace:p,caretTrimReplace:f}=n(9718),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=n(6874),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),a=r.pop();for(;n&&r.length;)n=r.every(e=>a.intersects(e,t)),a=r.pop();return n},w=(e,t)=>(l("comp",e=e.replace(c[d.BUILD],""),t),l("caret",e=_(e,t)),l("tildes",e=x(e,t)),l("xrange",e=k(e,t)),l("stars",e=P(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>D(e,t)).join(" "),D=(e,t)=>{let n=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(n,(t,n,r,a,o)=>{let i;return l("tilde",e,t,n,r,a,o),E(n)?i="":E(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:E(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(l("replaceTilde pr",o),i=`>=${n}.${r}.${a}-${o} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i})},_=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{l("caret",e,t);let n=t.loose?c[d.CARETLOOSE]:c[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,a,o,i)=>{let s;return l("caret",e,t,n,a,o,i),E(n)?s="":E(a)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(o)?s="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),s="0"===n?"0"===a?`>=${n}.${a}.${o}-${i} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o}-${i} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===a?`>=${n}.${a}.${o}${r} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o} <${+n+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>C(e,t)).join(" ")),C=(e,t)=>{e=e.trim();let n=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(n,(n,r,a,o,i,s)=>{l("xRange",e,n,r,a,o,i,s);let u=E(a),c=u||E(o),d=c||E(i);return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),i=0,">"===r?(r=">=",c?(a=+a+1,o=0):o=+o+1,i=0):"<="===r&&(r="<",c?a=+a+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+a}.${o}.${i}${s}`):c?n=`>=${a}.0.0${s} <${+a+1}.0.0-0`:d&&(n=`>=${a}.${o}.0${s} <${a}.${+o+1}.0-0`),l("xRange return",n),n})},P=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),T=e=>(t,n,r,a,o,i,s,l,u,c,d,m)=>(n=E(r)?"":E(a)?`>=${r}.0.0${e?"-0":""}`:E(o)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`,l=E(u)?"":E(c)?`<${+u+1}.0.0-0`:E(d)?`<${u}.${+c+1}.0-0`:m?`<=${u}.${c}.${d}-${m}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},3908(e,t,n){"use strict";let r=n(7272),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=n(6874),{safeRe:i,t:s}=n(9718),l=n(8587),{compareIdentifiers:u}=n(1123);class c{constructor(e,t){if(t=l(t),e instanceof c)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return(e instanceof c||(e=new c(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return -1;else if(n===a)continue;else return u(n,a)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{let n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return -1;else if(n===a)continue;else return u(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},2111(e,t,n){"use strict";let r=n(4641),a=n(3999),o=n(5580),i=n(4089),s=n(7059),l=n(5200);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return a(e,n,u);case">":return o(e,n,u);case">=":return i(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw TypeError(`Invalid operator: ${t}`)}}},560(e,t,n){"use strict";let r=n(3908);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},4641(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0===r(e,t,n)},5580(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>r(e,t,n)>0},4089(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>r(e,t,n)>=0},7059(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0>r(e,t,n)},5200(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0>=r(e,t,n)},3999(e,t,n){"use strict";let r=n(560);e.exports=(e,t,n)=>0!==r(e,t,n)},7638(e,t,n){"use strict";let r=n(8311);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},6874(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){"use strict";e.exports="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},1123(e){"use strict";let t=/^[0-9]+$/,n=(e,n)=>{if("number"==typeof e&&"number"==typeof n)return e===n?0:e<n?-1:1;let r=t.test(e),a=t.test(n);return r&&a&&(e*=1,n*=1),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},8794(e){"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},8587(e){"use strict";let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},9718(e,t,n){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=n(6874),i=n(7272),s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={},m=0,p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,a]],h=(e,t,n)=>{let r=(e=>{for(let[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=m++;i(e,a,t),d[e]=a,u[a]=t,c[a]=r,s[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),h("FULL",`^${u[d.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),h("LOOSE",`^${u[d.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),h("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),h("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?`+"(?:$|[^\\d])"),h("COERCERTL",u[d.COERCE],!0),h("COERCERTLFULL",u[d.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6942(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)t.call(e,o)&&e[o]&&(a=r(a,o));return a}(o)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},3684(e,t,n){"use strict";let r,a,o,i,s,l,u,c,d,m,p;n.r(t),n.d(t,{GenderUnknownIcon:()=>dw,evaluateAsNumber:()=>i3,getImportMapOverrideMap:()=>oQ,StockManagementPictogram:()=>xr,ChemistryIcon:()=>dt,BabyIcon:()=>c0,DashboardExtension:()=>mw,openmrsComponentDecorator:()=>ur,tryRegisterExtension:()=>cw,pictogramIds:()=>EB,ActivityIcon:()=>cZ,compile:()=>i8,removeRouteMapOverride:()=>iE,TableBatchActions:()=>cM,getAsyncLifecycle:()=>uo,subscribeOpenmrsEvent:()=>iN,PasswordIcon:()=>dH,Assessment2Pictogram:()=>EH,CloseIcon:()=>ds,setupRouteMapOverrides:()=>i_,useFeatureFlag:()=>uM,reset:()=>lo,LabOrderIcon:()=>dT,VisitMode:()=>iF,useLocations:()=>u3,getLifecycle:()=>ua,formatDatetime:()=>b3,getVisitsForPatient:()=>iG,formatPartialDate:()=>b0,CustomOverflowMenu:()=>cH,LocationIcon:()=>d$,GroupIcon:()=>dx,createUseStore:()=>lM,VisitStatus:()=>iB,getSessionLocation:()=>oP,getCurrentImportMap:()=>it,usePatient:()=>ct,useRenderableExtensions:()=>cr,getOpenedWindowIndexByWorkspace:()=>lh,setLeftNav:()=>ls,clearHistory:()=>os,clearConfigErrors:()=>nF,formatTime:()=>b2,isDevEnabled:()=>oM,closeWorkspaceGroup2:()=>xO,getCurrentRouteMap:()=>ig,ConfigurableLink:()=>lT,sessionStore:()=>oy,setSessionLocale:()=>oT,subscribeSnackbarShown:()=>S,getLoggedInUser:()=>oC,GenderMaleIcon:()=>dv,getExtensionSlotConfigFromStore:()=>tX,evaluateAsNumberAsync:()=>i6,getImportMapDefaultMap:()=>oJ,unregisterExtensionRendering:()=>sI,implementerToolsConfigStore:()=>nn,Type:()=>tL,InPatientPictogram:()=>E0,cleanupObsoleteFeatureFlags:()=>sw,getAttachmentsUrl:()=>iP,showSnackbar:()=>xy,PatientBannerActionsMenu:()=>EN,PatientSearchPictogram:()=>E5,DocumentAttachmentIcon:()=>dd,Snackbar:()=>xm,CardiologyPictogram:()=>EK,ImageMedicalIcon:()=>dS,ActionableNotificationComponent:()=>w8,DiagnosisTags:()=>wL,iconIds:()=>cG,PatientsPictogram:()=>E9,interpolateUrl:()=>a7,setupHistory:()=>oa,subscribeToastShown:()=>_,detachAll:()=>le,convertToLocaleCalendar:()=>b6,DocumentIcon:()=>dc,configInternalStore:()=>tK,ActionMenuButton2:()=>xG,setupDynamicOfflineDataHandler:()=>Dg,makeUrl:()=>of,oneOf:()=>nK,selectPreferredName:()=>EE,MobileCheckIcon:()=>dL,createErrorHandler:()=>P,parseDate:()=>bZ,getAttachmentByUuid:()=>ik,LeftNavMenu:()=>wH,getExtensionRegistration:()=>s5,ShoppingCartAddItemIcon:()=>my,ReferralOrderIcon:()=>dq,ReportIcon:()=>dX,dispatchToastShown:()=>E,getImportMapNextPageMap:()=>oX,registerExtension:()=>s9,setupOfflineSync:()=>Dh,DownloadIcon:()=>dm,useConnectivity:()=>DE,provide:()=>nv,ShoppingCartArrowDownIcon:()=>d6,featureFlagsStore:()=>sv,jsep:()=>iY,GeriatricsPictogram:()=>EX,SearchIcon:()=>d1,reportError:()=>C,slugify:()=>o8,isOmrsDateToday:()=>bz,getExtensionStore:()=>sj,BloodBankPictogram:()=>Ez,TriagePictogram:()=>xo,Workspace2:()=>xV,refetchCurrentUser:()=>o_,CheckmarkOutlineIcon:()=>de,registerExtensionSlot:()=>la,AllergiesIcon:()=>mp,ArrowDownIcon:()=>cq,useOpenmrsInfinite:()=>uK,getExtensionConfigFromExtensionSlotStore:()=>t4,OpenmrsDatePicker:()=>wj,getExtensionConfigFromStore:()=>t1,getDynamicOfflineDataEntries:()=>Dy,getLocaleDisplayName:()=>bc,messageOmrsServiceWorker:()=>Db,navigate:()=>ot,launchWorkspace2:()=>x$,getGroupByWindowName:()=>lf,CustomOverflowMenuItem:()=>cz,isUrl:()=>nz,CaretDownIcon:()=>c2,ArrowLeftIcon:()=>cJ,FacilityPictogram:()=>EJ,ViewOffIcon:()=>mc,updateInternalExtensionStore:()=>sR,dispatchActionableNotificationShown:()=>b,resetRouteMapOverrides:()=>ix,formatDurationBetween:()=>wr,defaultVisitCustomRepresentation:()=>iV,getBreadcrumbsFor:()=>n1,useOpenmrsPagination:()=>uF,Pagination:()=>Eg,CheckmarkFilledIcon:()=>c7,clearCurrentUser:()=>oS,showModal:()=>w3,ChevronUpIcon:()=>di,saveVisit:()=>iz,useAttachments:()=>ux,Pictogram:()=>xc,useExtensionSlot:()=>lW,ChevronDownIcon:()=>dn,OpenmrsDateRangePicker:()=>wM,deleteAttachmentPermanently:()=>iT,getVisitTypes:()=>iL,OverflowMenuHorizontalIcon:()=>dU,EventScheduleIcon:()=>dh,getSessionStore:()=>ox,ProcedureOrderIcon:()=>dZ,preloadImport:()=>ie,registerWorkspaceWindows2:()=>ly,useOnVisible:()=>u5,setSessionLocation:()=>oR,userHasAccess:()=>ok,ChartAverageIcon:()=>c9,getFeatureFlag:()=>sE,UserAvatarIcon:()=>mi,renderExtension:()=>lk,useFhirInfinite:()=>uJ,toVisitTypeObject:()=>ij,useSession:()=>ca,EmergencyDepartmentPictogram:()=>Eq,Notification:()=>w5,dispatchSnackbarShown:()=>w,formatDate:()=>b1,workspace2StoreActions:()=>xI,SwitcherIcon:()=>d2,esmStyleGuideSchema:()=>cA,getImportMapDisabledOverrides:()=>o0,useAssignedExtensionIds:()=>uw,CaretRightIcon:()=>c6,evaluateAsType:()=>i5,PageHeader:()=>Ef,TranslateIcon:()=>mn,setUserProperties:()=>oO,MovementIcon:()=>dV,renderInlineNotifications:()=>Eo,subscribePrecacheStaticDependencies:()=>Dw,PaymentsDeskPictogram:()=>E8,usePrimaryIdentifierCode:()=>cn,useLayoutType:()=>uQ,getCurrentUser:()=>oE,XrayPictogram:()=>xi,CaretUpIcon:()=>c5,renderActionableNotifications:()=>Es,OpenmrsAppContext:()=>uh,setupModals:()=>w2,getDefaultsFromConfigSchema:()=>function e(t){let n={};for(let r of Object.keys(t))if(Du(t[r])&&t[r].hasOwnProperty("_default"))n[r]=t[r]._default;else{if(r.startsWith("_"))continue;Du(t[r])?n[r]=e(t[r]):n[r]=t[r]}return n},subscribeTo:()=>W,recordConfigDerivationError:()=>ne,useAbortController:()=>uy,Extension:()=>lO,getFhirServerPaginationHandlers:()=>uW,useConnectedExtensions:()=>uC,registerApp:()=>cx,HospitalBedIcon:()=>d_,useExtensionInternalStore:()=>uA,configExtensionStore:()=>tZ,getSynchronizationItems:()=>Dv,getExtensionSlotsConfigStore:()=>tq,registerExtensionRendering:()=>sA,RenderIfValueIsTruthy:()=>ug,registerFeatureFlag:()=>sb,useFhirFetchAll:()=>uq,restBaseUrl:()=>od,CalendarHeatMapIcon:()=>c1,isImportMapOverrideDisabled:()=>o1,resetConfigSystem:()=>nB,getExtensionInternalStore:()=>sC,registerGlobalStore:()=>V,evaluateAsBoolean:()=>i4,PatientBannerPatientInfo:()=>EO,addRouteMapOverride:()=>iw,getDefaultCalendar:()=>bX,SettingsIcon:()=>d4,DrugOrderIcon:()=>dp,ProgramsIcon:()=>dY,useAssignedExtensions:()=>lU,CloseFilledIcon:()=>dl,canAccessStorage:()=>Dl,registerDefaultCalendar:()=>bJ,TreeViewAltIcon:()=>ma,OverflowMenuVerticalIcon:()=>dW,clearConfigDerivationError:()=>nt,getConfigStore:()=>tY,InformationSquareIcon:()=>dP,EmptyCard:()=>wV,ChevronLeftIcon:()=>dr,RadiologyIcon:()=>mg,useCandidateExtensions:()=>uE,renderToasts:()=>xx,isDesktop:()=>u0,integrateBreakpoints:()=>cC,RegistrationPictogram:()=>xt,CardHeader:()=>cO,getExtensionRegistrationFrom:()=>s6,InformationIcon:()=>dk,TrashCanIcon:()=>mr,useShallowStableValue:()=>l$,PatientDocumentsPictogram:()=>E6,useOpenmrsSWR:()=>u9,Assessment1Pictogram:()=>EW,finishRegisteringAllApps:()=>cD,importDynamic:()=>o7,useFhirPagination:()=>uU,useVisitContextStore:()=>cm,ArrowUpIcon:()=>cQ,showActionableNotification:()=>El,useForceUpdate:()=>uL,useVisit:()=>cp,PatientBannerPatientIdentifiers:()=>EC,TransferPictogram:()=>xa,usePagination:()=>u8,Breakpoint:()=>c_,PatientBannerToggleContactDetailsButton:()=>xZ,CloseOutlineIcon:()=>du,ObstetricsPictogram:()=>E3,parseDateInput:()=>b9,getConfig:()=>nw,attach:()=>s8,getLocale:()=>bd,isUrlWithTemplateParameters:()=>nH,useEmrConfiguration:()=>u$,useLeftNav:()=>u1,ToolsIcon:()=>mt,ErrorState:()=>wU,detach:()=>s7,setCurrentVisit:()=>iH,ConditionsIcon:()=>mh,SaveIcon:()=>d0,useConfig:()=>uk,validator:()=>tF,CalendarIcon:()=>c4,getHistory:()=>oo,StickyNoteAddIcon:()=>d5,useWorkspace2Store:()=>xj,getPatientName:()=>Ey,getVisitStore:()=>iW,getCoreTranslation:()=>a8,registerModuleWithConfigSystem:()=>nf,registerModuleLoad:()=>nh,getBreadcrumbs:()=>nX,extractVariableNames:()=>sh,translateFrom:()=>a9,useStoreWithActions:()=>lj,EditIcon:()=>df,getCandidateExtensions:()=>lr,shallowEqual:()=>T,subscribeNotificationShown:()=>x,MaximizeIcon:()=>dA,promptForClosingWorkspaces:()=>xA,WarningIcon:()=>mm,fhirBaseUrl:()=>om,matchLocale:()=>Ds,usePatientPhoto:()=>Ej,registerBreadcrumb:()=>nq,EventsIcon:()=>dg,createGlobalStore:()=>B,subscribeToFeatureFlag:()=>sx,useExtensionStore:()=>uj,createAttachment:()=>iR,useLeftNavStore:()=>u4,TableIcon:()=>d7,Icon:()=>mb,InformationFilledIcon:()=>dC,getCurrentPageMap:()=>oq,LaboratoryPictogram:()=>E1,temporaryConfigStore:()=>tG,toDateObjectStrict:()=>bK,defineConfigSchema:()=>np,filterBreadcrumbs:()=>n0,invalidateImplementerToolsConfig:()=>t8,PatientBannerContactDetails:()=>x0,getAssignedExtensions:()=>ln,PatientPhoto:()=>EF,MaterialOrderIcon:()=>dN,MicroscopeIcon:()=>dM,visitTypesUrl:()=>iM,scheduleRecomputation:()=>sV,PharmacyPictogram:()=>E7,AttachmentIcon:()=>mf,MoneyIcon:()=>dF,getAttachments:()=>iC,PageHeaderContent:()=>Eh,MedicationIcon:()=>dI,PrinterIcon:()=>dG,PatientListsPictogram:()=>xl,useAppContext:()=>uv,isOpenmrsRoutes:()=>io,AppointmentsAltPictogram:()=>EU,GenericOrderTypeIcon:()=>dE,batchExtensionUpdates:()=>sF,useExtensionSlotStore:()=>lB,ViewIcon:()=>md,formattedName:()=>Ew,sessionEndpoint:()=>op,duration:()=>wt,resetImportMapOverrides:()=>o3,TableOfContentsIcon:()=>d8,CaretLeftIcon:()=>c3,getTranslationOverrides:()=>nE,isVersionSatisfied:()=>Dm,EmptyCardIllustration:()=>wB,PenIcon:()=>dK,verifyTotpCode:()=>o$,validators:()=>nG,setupImportMapOverrides:()=>o9,showToast:()=>xD,useDefineAppContext:()=>uf,getGlobalStore:()=>U,useOnClickOutside:()=>u6,getWindowByWorkspaceName:()=>lp,ArrowRightIcon:()=>cX,loadLifeCycles:()=>cy,registerBreadcrumbs:()=>nJ,MotherIcon:()=>dB,fetchCurrentPatient:()=>iO,Toast:()=>xv,MessageQueueIcon:()=>dj,TwoFactorAuthenticationIcon:()=>mo,Pharmacy2Pictogram:()=>xe,goBackInHistory:()=>oi,GroupAccessIcon:()=>dD,getExtensionRenderingsStore:()=>sP,setImplementerToolsConfigRecomputer:()=>t9,getAsyncExtensionLifecycle:()=>us,setupApiModule:()=>oF,renderLoadingSpinner:()=>x1,showNotification:()=>Ei,getModalRegistration:()=>ld,ListCheckedIcon:()=>dO,ResponsiveWrapper:()=>xd,GynaecologyPictogram:()=>EQ,ShoppingCartIcon:()=>d3,getRouteMapNextPageMap:()=>iv,MetadataExportPictogram:()=>E2,updateVisit:()=>iK,backendDependencies:()=>oL,MaybePictogram:()=>xu,createParcelMounter:()=>l_,openmrsFetch:()=>oh,useStore:()=>lI,isOpenmrsAppRoutes:()=>ia,HomePictogram:()=>xs,DentistryPictogram:()=>EZ,ServiceQueuesPictogram:()=>xn,toLanguageTag:()=>bu,setFeatureFlag:()=>sD,DigitalTrustPictogram:()=>EY,NumericObservation:()=>Em,attachmentUrl:()=>iS,interpolateString:()=>oe,inRange:()=>nW,useExtensionSlotMeta:()=>uI,AppointmentsPictogram:()=>EV,renderSnackbars:()=>xg,getRegisteredWorkspace2Names:()=>xL,logout:()=>oN,toLocationObject:()=>iA,ChartLineIcon:()=>c8,UserHasAccess:()=>co,evaluateAsBooleanAsync:()=>i2,createDashboard:()=>mE,getLocations:()=>iI,useExtensionContext:()=>uN,getExtensionsConfigStore:()=>tQ,getRouteMapDefaultMap:()=>iy,age:()=>ED,isOmrsDateStrict:()=>bH,registerWorkspaceGroups2:()=>lg,usePaginationInfo:()=>u7,evaluateAsync:()=>i1,useOpenmrsFetchAll:()=>uZ,removeImportMapOverride:()=>o2,useVisitTypes:()=>ch,ageAsDuration:()=>Ex,getExtensionNameFromId:()=>s3,renderParcel:()=>lD,useWorkspace2Context:()=>xM,ResetIcon:()=>dQ,RenewIcon:()=>dJ,subscribeActionableNotificationShown:()=>D,ErrorCard:()=>wW,GenderFemaleIcon:()=>dy,enableImportMapOverride:()=>o6,retry:()=>Dp,ComponentContext:()=>lR,ExtensionSlot:()=>lz,unsetLeftNav:()=>ll,addImportMapOverride:()=>o4,MaybeIcon:()=>mv,useCustomOverflowMenu:()=>cW,PedestrianFamilyIcon:()=>dz,CtScanPictogram:()=>EG,dispatchNotificationShown:()=>v,leftNavStore:()=>li,OpenmrsFetchError:()=>og,UserFollowIcon:()=>ms,launchWorkspaceGroup2:()=>xT,ChevronRightIcon:()=>da,UserXrayIcon:()=>ml,GenderOtherIcon:()=>db,formatDuration:()=>b5,toOmrsIsoString:()=>bG,Labs2Pictogram:()=>E4,workspace2Store:()=>lm,setUserLanguage:()=>oD,useBodyScrollLock:()=>uD,getExtensionConfig:()=>t0,SyringeIcon:()=>d9,LocationPicker:()=>wz,useDebounce:()=>uP,TimeIcon:()=>me,getExtensionSlotConfig:()=>tJ,AddIcon:()=>cY,getRouteMapOverrideMap:()=>ib,processConfig:()=>nx,InventoryManagementIcon:()=>dR,registerWorkspaces2:()=>lv,UserIcon:()=>mu,formatPatientName:()=>Eb,fireOpenmrsEvent:()=>i$,registerModal:()=>lc,registerTranslationNamespace:()=>ng,displayName:()=>Ev,evaluate:()=>i0,defineExtensionConfigSchema:()=>ny,renderWorkspaceWindowsAndMenu:()=>Do,getSyncLifecycle:()=>ui,evaluateAsTypeAsync:()=>i9});let f="openmrs:notification-shown",h="openmrs:actionable-notification-shown",g="openmrs:toast-shown",y="openmrs:snack-bar-shown";function v(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function b(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))}function w(e){window.dispatchEvent(new CustomEvent(y,{detail:e}))}function E(e){window.dispatchEvent(new CustomEvent(g,{detail:e}))}function x(e){let t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function D(e){let t=t=>e(t.detail);return window.addEventListener(h,t),()=>window.removeEventListener(h,t)}function _(e){let t=t=>e(t.detail);return window.addEventListener(g,t),()=>window.removeEventListener(g,t)}function S(e){let t=t=>e(t.detail);return window.addEventListener(y,t),()=>window.removeEventListener(y,t)}function k(e,t){let{message:n}=R(e);return"string"==typeof n&&n?n:t}function C(e){let t=R(e);setTimeout(()=>{throw t})}function P(){let e=Error();return t=>{let n=R(t);n.stack+=`
2
2
  Async stacktrace:
3
- ${e.stack}`,C(t)}}function R(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}function T(e,t){if(e===t||Object.is(e,t))return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(Array.isArray(t)||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}function O(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(a):a(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}window.onerror=function(e,t,n,r,a){return console.error("Unexpected error: ",a??e),E({description:k(a??e,"Oops! An unexpected error occurred."),kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),E({description:k(e.reason,"Oops! An unhandled promise rejection occurred."),kind:"error",title:"Error"})};let $=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>$(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>$(t)(e)}}},N=e=>{let t,n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,a,o);return o},A=e=>e?N(e):N;function I(){try{return"u">typeof process&&("true"===process.env.VITEST||void 0!==process.env.JEST_WORKER_ID)||"u">typeof globalThis&&("__vitest_worker__"in globalThis||"__jest__"in globalThis)}catch{return!1}}let j={},M=Symbol.for("openmrs.esm-state.instanceCount"),L=globalThis,F=(L[M]??0)+1;function B(e,t,n="none"){let r=j[e];if(r)return r.active?I()||console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):r.value.setState(t,!0),r.active=!0,r.value;{let r=H(e,t,n);return j[e]={value:r,active:!0},r}}function V(e,t){let n=j[e];return n?(n.active?I()||console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value=t,n.active=!0,n.value):(j[e]={value:t,active:!0},t)}function U(e,t,n="none"){let r=j[e];if(!r){let r=H(e,t??{},n);return j[e]={value:r,active:!1},r}return r.value}function W(...e){let[t,n,r]=e,a=void 0===r?n:r,o=void 0===r?e=>e:n,i=o(t.getState());return a(i),t.subscribe(e=>{let t=o(e);T(i,t)||(i=t,a(t))})}function H(e,t,n){return"sessionStorage"===n?A()(((e,t)=>{if("getStorage"in t||"serialize"in t||"deserialize"in t)return console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),(n,r,a)=>{let o,i,s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,u=new Set,c=new Set;try{o=s.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,a);let d=$(s.serialize),m=()=>{let e,t=d({state:s.partialize({...r()}),version:s.version}).then(e=>o.setItem(s.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=a.setState;a.setState=(e,t)=>{p(e,t),m()};let f=e((...e)=>{n(...e),m()},r,a),h=()=>{var e;if(!o)return;l=!1,u.forEach(e=>e(r()));let t=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,r()))||void 0;return $(o.getItem.bind(o))(s.name).then(e=>{if(e)return s.deserialize(e)}).then(e=>{if(e)if("number"!=typeof e.version||e.version===s.version)return e.state;else{if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(i=s.merge(e,null!=(t=r())?t:f),!0),m()}).then(()=>{null==t||t(i,void 0),l=!0,c.forEach(e=>e(i))}).catch(e=>{null==t||t(void 0,e)})};return a.persist={setOptions:e=>{s={...s,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},h(),i||f};return(n,r,a)=>{let o,i={storage:O(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,l=new Set,u=new Set,c=i.storage;if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)},r,a);let d=()=>{let e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},m=a.setState;a.setState=(e,t)=>{m(e,t),d()};let p=e((...e)=>{n(...e),d()},r,a);a.getInitialState=()=>p;let f=()=>{var e,t;if(!c)return;s=!1,l.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let a=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:p))||void 0;return $(c.getItem.bind(c))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate)return[!0,i.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[a,s]=e;if(n(o=i.merge(s,null!=(t=r())?t:p),!0),a)return d()}).then(()=>{null==a||a(o,void 0),o=r(),s=!0,u.forEach(e=>e(o))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>s,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},i.skipHydration||f(),o||p}})(()=>t,{name:e,storage:O(()=>sessionStorage)})):A()(()=>t)}L[M]=F,F>1&&!I()&&console.error(`Detected ${F} copies of @openmrs/esm-framework running on this page. Each copy keeps its own store registry, so stores, configuration and extension state are not shared between them. This usually means a frontend module loaded its own bundled framework instead of the one the app shell provides.`),globalThis.setTimeout?.(()=>{"u">typeof window&&"development"===window.spaEnv&&(window.stores=j)},1e3);let z=function(e){return void 0===e};var K,G,Z,Y,q,J,X,Q,ee=n(8348),et=(0,n(367).A)(Object.getPrototypeOf,Object),en=n(3098),er=Object.prototype,ea=Function.prototype.toString,eo=er.hasOwnProperty,ei=ea.call(Object);let es=function(e){if(!(0,en.A)(e)||"[object Object]"!=(0,ee.A)(e))return!1;var t=et(e);if(null===t)return!0;var n=eo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ea.call(n)==ei};var el=n(13),eu=n(8983),ec=function(){try{var e=(0,eu.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let ed=function(e,t,n){"__proto__"==t&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var em=n(6984);let ep=function(e,t,n){(void 0===n||(0,em.A)(e[t],n))&&(void 0!==n||t in e)||ed(e,t,n)},ef=function(e,t,n){for(var r=-1,a=Object(e),o=n(e),i=o.length;i--;){var s=o[++r];if(!1===t(a[s],s,a))break}return e};var eh=n(1917),eg="object"==typeof exports&&exports&&!exports.nodeType&&exports,ey=eg&&"object"==typeof module&&module&&!module.nodeType&&module,ev=ey&&ey.exports===eg?eh.A.Buffer:void 0,eb=ev?ev.allocUnsafe:void 0;let ew=function(e,t){if(t)return e.slice();var n=e.length,r=eb?eb(n):new e.constructor(n);return e.copy(r),r};var eE=n(3988);let ex=function(e){var t=new e.constructor(e.byteLength);return new eE.A(t).set(new eE.A(e)),t},eD=function(e,t){var n=t?ex(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},e_=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var eS=n(3149),ek=Object.create,eC=function(){function e(){}return function(t){if(!(0,eS.A)(t))return{};if(ek)return ek(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),eP=n(7271);let eR=function(e){return"function"!=typeof e.constructor||(0,eP.A)(e)?{}:eC(et(e))};var eT=n(18),eO=n(2049),e$=n(8446),eN=n(2873),eA=n(9610),eI=n(9415);let ej=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var eM=Object.prototype.hasOwnProperty;let eL=function(e,t,n){var r=e[t];eM.call(e,t)&&(0,em.A)(r,n)&&(void 0!==n||t in e)||ed(e,t,n)},eF=function(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?ed(n,s,l):eL(n,s,l)}return n};var eB=n(1463);let eV=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var eU=Object.prototype.hasOwnProperty;let eW=function(e){if(!(0,eS.A)(e))return eV(e);var t=(0,eP.A)(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eH=function(e){return(0,e$.A)(e)?(0,eB.A)(e,!0):eW(e)},ez=function(e,t,n,r,a,o,i){var s=ej(e,n),l=ej(t,n),u=i.get(l);if(u)return void ep(e,n,u);var c=o?o(s,l,n+"",e,t,i):void 0,d=void 0===c;if(d){var m=(0,eO.A)(l),p=!m&&(0,eN.A)(l),f=!m&&!p&&(0,eI.A)(l);(c=l,m||p||f)?(0,eO.A)(s)?c=s:(0,en.A)(s)&&(0,e$.A)(s)?c=e_(s):p?(d=!1,c=ew(l,!0)):f?(d=!1,c=eD(l,!0)):c=[]:es(l)||(0,eT.A)(l)?(c=s,(0,eT.A)(s))?c=eF(s,eH(s)):(!(0,eS.A)(s)||(0,eA.A)(s))&&(c=eR(l)):d=!1}d&&(i.set(l,c),a(c,l,r,o,i),i.delete(l)),ep(e,n,c)},eK=function e(t,n,r,a,o){t!==n&&ef(n,function(i,s){if(o||(o=new el.A),(0,eS.A)(i))ez(t,n,s,r,e,a,o);else{var l=a?a(ej(t,s),i,s+"",t,n,o):void 0;void 0===l&&(l=i),ep(t,s,l)}},eH)};var eG=n(9008);let eZ=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eY=Math.max;let eq=function(e,t,n){return t=eY(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=eY(r.length-t,0),i=Array(o);++a<o;)i[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(i),eZ(e,this,s)}};var eJ=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eG.A,eX=Date.now,eQ=(K=0,G=0,function(){var e=eX(),t=16-(e-G);if(G=e,t>0){if(++K>=800)return arguments[0]}else K=0;return eJ.apply(void 0,arguments)}),e0=n(5353);let e1=function(e,t,n){if(!(0,eS.A)(n))return!1;var r=typeof t;return("number"==r?!!((0,e$.A)(n)&&(0,e0.A)(t,n.length)):"string"==r&&t in n)&&(0,em.A)(n[t],e)},e4=function(e){var t;return eQ(eq(t=function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&e1(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t},void 0,eG.A),t+"")};var e2=e4(function(e,t,n,r){eK(e,t,n,r)}),e3=n(421);let e6=function(e,t){return(0,e3.A)(e,t)};var e5=n(5572);let e9=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var e8=n(7422),e7=n(4247),te=n(6912),tt=n(3153),tn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,te.A)(t,(0,e7.A)(e)),e=et(e);return t}:tt.A,tr=n(9042),ta=n(3831);let to=function(e){return(0,ta.A)(e,eH,tn)};var ti=n(3231),ts=Object.prototype.hasOwnProperty;let tl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ts.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tu=function(e,t){var n=t?ex(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var tc=/\w*$/;let td=function(e){var t=new e.constructor(e.source,tc.exec(e));return t.lastIndex=e.lastIndex,t};var tm=n(241),tp=tm.A?tm.A.prototype:void 0,tf=tp?tp.valueOf:void 0;let th=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return ex(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return tu(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return eD(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return td(e);case"[object Symbol]":return tf?Object(tf.call(e)):{}}};var tg=n(2789),ty=n(4841),tv=ty.A&&ty.A.isMap,tb=tv?(0,tg.A)(tv):function(e){return(0,en.A)(e)&&"[object Map]"==(0,ti.A)(e)},tw=ty.A&&ty.A.isSet,tE=tw?(0,tg.A)(tw):function(e){return(0,en.A)(e)&&"[object Set]"==(0,ti.A)(e)},tx="[object Arguments]",tD="[object Function]",t_="[object Object]",tS={};tS[tx]=tS["[object Array]"]=tS["[object ArrayBuffer]"]=tS["[object DataView]"]=tS["[object Boolean]"]=tS["[object Date]"]=tS["[object Float32Array]"]=tS["[object Float64Array]"]=tS["[object Int8Array]"]=tS["[object Int16Array]"]=tS["[object Int32Array]"]=tS["[object Map]"]=tS["[object Number]"]=tS[t_]=tS["[object RegExp]"]=tS["[object Set]"]=tS["[object String]"]=tS["[object Symbol]"]=tS["[object Uint8Array]"]=tS["[object Uint8ClampedArray]"]=tS["[object Uint16Array]"]=tS["[object Uint32Array]"]=!0,tS["[object Error]"]=tS[tD]=tS["[object WeakMap]"]=!1;let tk=function e(t,n,r,a,o,i){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=o?r(t,a,o,i):r(t)),void 0!==s)return s;if(!(0,eS.A)(t))return t;var d=(0,eO.A)(t);if(d){if(s=tl(t),!l)return e_(t,s)}else{var m,p,f,h,g=(0,ti.A)(t),y=g==tD||"[object GeneratorFunction]"==g;if((0,eN.A)(t))return ew(t,l);if(g==t_||g==tx||y&&!o){if(s=u||y?{}:eR(t),!l)return u?(p=(m=s)&&eF(t,eH(t),m),eF(t,tn(t),p)):(h=(f=s)&&eF(t,(0,e8.A)(t),f),eF(t,(0,e7.A)(t),h))}else{if(!tS[g])return o?t:{};s=th(t,g,l)}}i||(i=new el.A);var v=i.get(t);if(v)return v;i.set(t,s),tE(t)?t.forEach(function(a){s.add(e(a,n,r,a,t,i))}):tb(t)&&t.forEach(function(a,o){s.set(o,e(a,n,r,o,t,i))});var b=c?u?to:tr.A:u?eH:e8.A,w=d?void 0:b(t);return e9(w||t,function(a,o){w&&(a=t[o=a]),eL(s,o,e(a,n,r,o,t,i))}),s};var tC=n(4548);let tP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var tR=n(6318),tT=n(7688),tO=n(901);let t$=function(e,t){var n,r;return t=(0,tC.A)(t,e),n=e,null==(e=(r=t).length<2?n:(0,tR.A)(n,(0,tT.A)(r,0,-1)))||delete e[(0,tO.A)(tP(t))]},tN=function(e){return es(e)?void 0:e};var tA=tm.A?tm.A.isConcatSpreadable:void 0;let tI=function(e){return(0,eO.A)(e)||(0,eT.A)(e)||!!(tA&&e&&e[tA])},tj=function e(t,n,r,a,o){var i=-1,s=t.length;for(r||(r=tI),o||(o=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,a,o):(0,te.A)(o,l):a||(o[o.length]=l)}return o};var tM=eQ(eq(Z=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,e5.A)(t,function(t){return t=(0,tC.A)(t,e),r||(r=t.length>1),t}),eF(e,to(e),n),r&&(n=tk(n,7,tN));for(var a=t.length;a--;)t$(n,t[a]);return n},void 0,function(e){return(null==e?0:e.length)?tj(e,1):[]}),Z+""),tL=((Y={}).Array="Array",Y.Boolean="Boolean",Y.ConceptUuid="ConceptUuid",Y.Number="Number",Y.Object="Object",Y.String="String",Y.UUID="UUID",Y.PersonAttributeTypeUuid="PersonAttributeTypeUuid",Y.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",Y);function tF(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}let tB=tF(e=>Array.isArray(e),"must be an array"),tV=tF(e=>"boolean"==typeof e,"must be a boolean"),tU=tF(e=>"number"==typeof e,"must be a number"),tW=tF(e=>"string"==typeof e,"must be a string"),tH=tF(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),tz=tF(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e),"must be a valid UUID or a 36-character hexadecimal string"),tK=B("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),tG=B("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});tG.subscribe(e=>{var t=e.config;try{localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}catch(e){}});let tZ=B("config-store-of-extension-state",{mountedExtensions:[]});function tY(e){return U(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function tq(){return U("config-extension-slots",{slots:{}})}function tJ(e){return tX(tq().getState(),e)}function tX(e,t){return e.slots[t]??{loaded:!1,config:{}}}function tQ(){return U("config-extensions",{configs:{}})}function t0(e,t){if("string"!=typeof e||"string"!=typeof t||"__proto__"===e||"__proto__"===t||"constructor"===e||"constructor"===t||"prototype"===e||"prototype"===t)throw Error("Attempted to call `getExtensionConfig()` with invalid argument");let n=tQ(),r=n=>n.configs[e]?.[t];return{getInitialState:()=>r(n.getInitialState()),getState:()=>r(n.getState())??{loaded:!1,config:null},subscribe:e=>n.subscribe((t,n)=>{let a=r(t),o=r(n);T(a,o)||e(a,o)})}}function t1(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function t4(e,t,n){return e.configure?.[n]??null}let t2=A()(()=>({config:{}})),t3=0,t6=!0,t5=!1;function t9(e){r=e}function t8(){t6=!0,t3>0&&t7()}function t7(){if(t6&&r&&!t5){t5=!0,t6=!1;try{r()}catch(e){t6=!0,ne(e),console.error("Failed to derive the implementer tools config",e)}finally{t5=!1}}}function ne(e){t2.setState({derivationError:e instanceof Error?e.message:String(e)})}function nt(){t2.getState().derivationError&&t2.setState({derivationError:void 0})}let nn=V("config-implementer-tools",{...t2,getState:()=>(0===t3&&t7(),t2.getState()),setState:(...e)=>(t6=!1,t2.setState(...e)),subscribe(e){t3++,t7();let t=t2.subscribe(e),n=!1;return()=>{!n&&(n=!0,t3--),t()}}});function nr(e,t){if(Array.isArray(t))return t}function na(e,t){return e2({},e,t,nr)}let no=[];function ni(){let e=tK.getState(),t=tG.getState(),n=tZ.getState();if(ns?.configState===e&&ns.tempConfigState===t)return void nm(e,n,t,ns.slotConfigs,!0);!function(e,t){for(let n of Object.keys(e.schemas)){let r,a=tY(n),o=e.schemas[n],i=!!e.moduleLoaded[n],s=nd.get(n);if(s&&s.schema===o&&s.moduleLoaded===i&&s.providedConfigs===e.providedConfigs&&s.temporaryConfig===t.config)r=s.state;else{let a=i?function(e,t,n){let r=t.schemas[e],a=nP(e,nk(t,n));nT(r,a,e);let o=nA(r,a);return nO(r,o,e),delete o.extensionSlots,o}(n,e,t):function(e,t,n){let r=nA(nU,nP(e,nk(t,n)));return nO(nU,r,e),delete r.extensionSlots,r}(n,e,t);r={translationOverridesLoaded:!0,loaded:i,config:a},nd.set(n,{schema:o,moduleLoaded:i,providedConfigs:e.providedConfigs,temporaryConfig:t.config,state:r})}let l=a.getState();l.loaded===r.loaded&&l.translationOverridesLoaded===r.translationOverridesLoaded&&e6(l.config,r.config)||a.setState(r)}}(e,t);let r=function(e,t){let n=nR(nk(e,t)),r=Object.keys(n).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{});var a=r;for(let[e,t]of Object.entries(a))for(let[n,r]of Object.entries(t))!function(e,t,n){let r=`${t}.extensionSlots.${n}`,a=`Extension slot config '${r}'`,o=Object.keys(e).filter(e=>!["add","remove","order","configure"].includes(e));o.length&&nL(r,a+`' contains invalid keys '${o.join("', '")}'`),!e.add||Array.isArray(e.add)&&e.add.every(e=>"string"==typeof e)||nL(r,a+".add' is invalid. Must be an array of strings (extension IDs)"),!e.remove||Array.isArray(e.remove)&&e.remove.every(e=>"string"==typeof e)||nL(r,a+".remove' is invalid. Must be an array of strings (extension IDs)"),!e.order||Array.isArray(e.order)&&e.order.every(e=>"string"==typeof e)||nL(r,a+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!nj(e.configure)&&nL(r,a+".configure' is invalid. Must be an object with extension IDs for keys")}(r,e,n);let o={},i={};for(let e of Object.values(r))for(let[t,n]of Object.entries(e))o[t]=n,n.configure&&(i[t]??(i[t]=[])).push(n.configure);for(let[e,t]of Object.entries(i)){let n=1===t.length?t[0]:nR(t);o[e].configure!==n&&(o[e]={...o[e],configure:n})}return o}(e,t);(function(e){let t=tq(),n=t.getState().slots,r={},a=!1;for(let[t,o]of Object.entries(e)){let e=n[t];e?.loaded&&e6(e.config,o)?r[t]=e:(r[t]={loaded:!0,config:o},a=!0)}(a||Object.keys(n).length!==Object.keys(r).length)&&t.setState({slots:r})})(r),nm(e,n,t,r,!1),ns={configState:e,tempConfigState:t,slotConfigs:r},t8()}let ns=null,nl=new WeakMap;function nu(){r=()=>{var e,t;let n,r;return e=tK.getState(),t=tG.getState(),n=nn.getState(),r={config:function(e,t){let n=function(e){let t={};for(let[n,r]of Object.entries(e)){let e=nS.get(n);if(e&&e.schema===r)t[n]=e.annotated;else{let e=function e(t){return t.hasOwnProperty("_default")?{...t,_value:t._default,_source:"default"}:nj(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}(tk(r,5));nS.set(n,{schema:r,annotated:e}),t[n]=e}}return t}(e.schemas),r=[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]],a=new Set(Object.keys(n));for(let[e]of r)for(let t of Object.keys(e))a.add(t);let o={};for(let e of a){let t=n[e],a=r.map(([t])=>t[e]),i=r.map(([,e])=>e),s=n_.get(e);if(s&&s.annotatedSchema===t&&s.configSlices.length===a.length&&s.configSlices.every((e,t)=>e===a[t])&&s.sources.every((e,t)=>e===i[t])){o[e]=s.result;continue}let l=t??{};r.forEach(([,e],t)=>{let n=a[t];void 0!==n&&(l=na(l,function e(t,n){return nj(t)?Object.keys(t).reduce((r,a)=>(r[a]=e(t[a],n),r),{}):{_value:t,_source:n}}(n,e)))}),n_.set(e,{annotatedSchema:t,configSlices:a,sources:i,result:l}),o[e]=l}return o}(e,t)},void(e6(n.config,r.config)||nn.setState(r))},ni(),no.push(tK.subscribe(nc),tG.subscribe(nc),tZ.subscribe(nc))}function nc(){nt();try{ni()}catch(e){ne(e),console.error("Failed to recompute the configuration",e)}}nu();let nd=new Map;function nm(e,t,n,r,a){let o=tQ(),i=o.getState().configs,s={},l=!1,u=0;for(let o of t.mountedExtensions){let t,c=i[o.slotName]?.[o.extensionId],d=c&&nl.get(c);if(a&&c?.loaded&&d?.slotModuleName===o.slotModuleName&&d.extensionModuleName===o.extensionModuleName)t=c;else{let a=function(e,t,n,r,a,o,i){let s=function(e){let[t]=e.split("#");return t}(r),l=a.schemas[s],u=JSON.stringify([n,r,e,t]),c=nD.get(u);if(c&&c.extensionSchema===l&&c.extensionModuleSchema===a.schemas[t]&&c.providedConfigs===a.providedConfigs&&c.temporaryConfig===o.config)return c.config;let d=l?s:t,m=nk(a,o),p=i?.configure?.[r]??{},f=nP(e,m),h=f?.extensionSlots?.[n]?.configure?.[r]??{},g=nR([nP(d,m),p,h]),y=l??a.schemas[t];nT(y,g,d);let v=nA(y,g);return nO(y,v,d),delete v.extensionSlots,nD.set(u,{extensionSchema:l,extensionModuleSchema:a.schemas[t],providedConfigs:a.providedConfigs,temporaryConfig:o.config,config:v}),v}(o.slotModuleName,o.extensionModuleName,o.slotName,o.extensionId,e,n,r[o.slotName]);t=c?.loaded&&e6(c.config,a)?c:{config:a,loaded:!0}}nl.set(t,o),t!==c&&(l=!0),s[o.slotName]||(s[o.slotName]={}),s[o.slotName][o.extensionId]=t,u++}for(let[e,t]of Object.entries(s)){let n=i[e];n&&Object.keys(n).length===Object.keys(t).length&&Object.entries(t).every(([e,t])=>n[e]===t)&&(s[e]=n)}l||(l=Object.keys(i).length!==Object.keys(s).length||Object.values(i).reduce((e,t)=>e+Object.keys(t).length,0)!==u),l&&o.setState({configs:s})}function np(e,t){nC(e,t);let n=na(t,nU);tK.setState(t=>({...t,schemas:{...t.schemas,[e]:n},moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function nf(e){tK.setState(t=>({...t,schemas:{...t.schemas,[e]:nU}}))}function nh(e){tK.setState(t=>({...t,moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function ng(e){tK.setState(t=>({...t,schemas:{...t.schemas,[e]:nV}}))}function ny(e,t){nC(e,t);let n=na(t,nU);tK.getState().schemas[e]&&console.error(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),tK.setState(t=>({...t,schemas:{...t.schemas,[e]:n}}))}function nv(e,t="provided"){tK.setState(n=>({...n,providedConfigs:[...n.providedConfigs,{source:t,config:e}]}))}function nb(e,t,n){return new Promise(r=>{let a,o=!1;function i(e){!o&&t(e)&&(o=!0,r(n(e)),a?.())}i(e.getState()),o||(a=e.subscribe(i))})}function nw(e){return nb(tY(e),e=>!!(e.loaded&&e.config),e=>tM(e.config,["Display conditions","Translation overrides"]))}function nE(e,t,n){let r=[nb(tY(e),e=>!!(e.translationOverridesLoaded&&e.config),e=>e.config["Translation overrides"]??{})];return t&&n&&r.push(nb(t0(t,n),e=>!!(e.loaded&&e.config),e=>e.config["Translation overrides"]??{})),Promise.all(r)}function nx(e,t,n){nT(e,t,n);let r=nA(e,t);return nO(e,r,n),r}let nD=new Map,n_=new Map,nS=new Map;function nk(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function nC(e,t,n=""){let r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(let a of Object.keys(t).filter(e=>!e.startsWith("_"))){let o=n+(n&&".")+a,i=t[a];if("Display conditions"===o&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===o&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!nj(i)){console.error(`${e} has bad config schema definition for key '${o}'. ${r}`);continue}i.hasOwnProperty("_default")||nC(e,i,o);let s=i._elements;if(nI(s)&&nC(e,s,o+"._elements"),i._validators)for(let t of i._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${o}' ${r}.
3
+ ${e.stack}`,C(t)}}function R(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}function T(e,t){if(e===t||Object.is(e,t))return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(Array.isArray(t)||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}function O(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(a):a(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}window.onerror=function(e,t,n,r,a){return console.error("Unexpected error: ",a??e),E({description:k(a,"Oops! An unexpected error occurred."),kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),E({description:k(e.reason,"Oops! An unhandled promise rejection occurred."),kind:"error",title:"Error"})};let $=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>$(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>$(t)(e)}}},N=e=>{let t,n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,a,o);return o},A=e=>e?N(e):N;function I(){try{return"u">typeof process&&("true"===process.env.VITEST||void 0!==process.env.JEST_WORKER_ID)||"u">typeof globalThis&&("__vitest_worker__"in globalThis||"__jest__"in globalThis)}catch{return!1}}let j={},M=Symbol.for("openmrs.esm-state.instanceCount"),L=globalThis,F=(L[M]??0)+1;function B(e,t,n="none"){let r=j[e];if(r)return r.active?I()||console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):r.value.setState(t,!0),r.active=!0,r.value;{let r=H(e,t,n);return j[e]={value:r,active:!0},r}}function V(e,t){let n=j[e];return n?(n.active?I()||console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value=t,n.active=!0,n.value):(j[e]={value:t,active:!0},t)}function U(e,t,n="none"){let r=j[e];if(!r){let r=H(e,t??{},n);return j[e]={value:r,active:!1},r}return r.value}function W(...e){let[t,n,r]=e,a=void 0===r?n:r,o=void 0===r?e=>e:n,i=o(t.getState());return a(i),t.subscribe(e=>{let t=o(e);T(i,t)||(i=t,a(t))})}function H(e,t,n){return"sessionStorage"===n?A()(((e,t)=>{if("getStorage"in t||"serialize"in t||"deserialize"in t)return console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),(n,r,a)=>{let o,i,s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,u=new Set,c=new Set;try{o=s.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,a);let d=$(s.serialize),m=()=>{let e,t=d({state:s.partialize({...r()}),version:s.version}).then(e=>o.setItem(s.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=a.setState;a.setState=(e,t)=>{p(e,t),m()};let f=e((...e)=>{n(...e),m()},r,a),h=()=>{var e;if(!o)return;l=!1,u.forEach(e=>e(r()));let t=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,r()))||void 0;return $(o.getItem.bind(o))(s.name).then(e=>{if(e)return s.deserialize(e)}).then(e=>{if(e)if("number"!=typeof e.version||e.version===s.version)return e.state;else{if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(i=s.merge(e,null!=(t=r())?t:f),!0),m()}).then(()=>{null==t||t(i,void 0),l=!0,c.forEach(e=>e(i))}).catch(e=>{null==t||t(void 0,e)})};return a.persist={setOptions:e=>{s={...s,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},h(),i||f};return(n,r,a)=>{let o,i={storage:O(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,l=new Set,u=new Set,c=i.storage;if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)},r,a);let d=()=>{let e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},m=a.setState;a.setState=(e,t)=>{m(e,t),d()};let p=e((...e)=>{n(...e),d()},r,a);a.getInitialState=()=>p;let f=()=>{var e,t;if(!c)return;s=!1,l.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let a=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:p))||void 0;return $(c.getItem.bind(c))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate)return[!0,i.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[a,s]=e;if(n(o=i.merge(s,null!=(t=r())?t:p),!0),a)return d()}).then(()=>{null==a||a(o,void 0),o=r(),s=!0,u.forEach(e=>e(o))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>s,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},i.skipHydration||f(),o||p}})(()=>t,{name:e,storage:O(()=>sessionStorage)})):A()(()=>t)}L[M]=F,F>1&&!I()&&console.error(`Detected ${F} copies of @openmrs/esm-framework running on this page. Each copy keeps its own store registry, so stores, configuration and extension state are not shared between them. This usually means a frontend module loaded its own bundled framework instead of the one the app shell provides.`),globalThis.setTimeout?.(()=>{"u">typeof window&&"development"===window.spaEnv&&(window.stores=j)},1e3);let z=function(e){return void 0===e};var K,G,Z,Y,q,J,X,Q,ee=n(8348),et=(0,n(367).A)(Object.getPrototypeOf,Object),en=n(3098),er=Object.prototype,ea=Function.prototype.toString,eo=er.hasOwnProperty,ei=ea.call(Object);let es=function(e){if(!(0,en.A)(e)||"[object Object]"!=(0,ee.A)(e))return!1;var t=et(e);if(null===t)return!0;var n=eo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ea.call(n)==ei};var el=n(13),eu=n(8983),ec=function(){try{var e=(0,eu.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let ed=function(e,t,n){"__proto__"==t&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var em=n(6984);let ep=function(e,t,n){(void 0===n||(0,em.A)(e[t],n))&&(void 0!==n||t in e)||ed(e,t,n)},ef=function(e,t,n){for(var r=-1,a=Object(e),o=n(e),i=o.length;i--;){var s=o[++r];if(!1===t(a[s],s,a))break}return e};var eh=n(1917),eg="object"==typeof exports&&exports&&!exports.nodeType&&exports,ey=eg&&"object"==typeof module&&module&&!module.nodeType&&module,ev=ey&&ey.exports===eg?eh.A.Buffer:void 0,eb=ev?ev.allocUnsafe:void 0;let ew=function(e,t){if(t)return e.slice();var n=e.length,r=eb?eb(n):new e.constructor(n);return e.copy(r),r};var eE=n(3988);let ex=function(e){var t=new e.constructor(e.byteLength);return new eE.A(t).set(new eE.A(e)),t},eD=function(e,t){var n=t?ex(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},e_=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var eS=n(3149),ek=Object.create,eC=function(){function e(){}return function(t){if(!(0,eS.A)(t))return{};if(ek)return ek(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),eP=n(7271);let eR=function(e){return"function"!=typeof e.constructor||(0,eP.A)(e)?{}:eC(et(e))};var eT=n(18),eO=n(2049),e$=n(8446),eN=n(2873),eA=n(9610),eI=n(9415);let ej=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var eM=Object.prototype.hasOwnProperty;let eL=function(e,t,n){var r=e[t];eM.call(e,t)&&(0,em.A)(r,n)&&(void 0!==n||t in e)||ed(e,t,n)},eF=function(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?ed(n,s,l):eL(n,s,l)}return n};var eB=n(1463);let eV=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var eU=Object.prototype.hasOwnProperty;let eW=function(e){if(!(0,eS.A)(e))return eV(e);var t=(0,eP.A)(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eH=function(e){return(0,e$.A)(e)?(0,eB.A)(e,!0):eW(e)},ez=function(e,t,n,r,a,o,i){var s=ej(e,n),l=ej(t,n),u=i.get(l);if(u)return void ep(e,n,u);var c=o?o(s,l,n+"",e,t,i):void 0,d=void 0===c;if(d){var m=(0,eO.A)(l),p=!m&&(0,eN.A)(l),f=!m&&!p&&(0,eI.A)(l);(c=l,m||p||f)?(0,eO.A)(s)?c=s:(0,en.A)(s)&&(0,e$.A)(s)?c=e_(s):p?(d=!1,c=ew(l,!0)):f?(d=!1,c=eD(l,!0)):c=[]:es(l)||(0,eT.A)(l)?(c=s,(0,eT.A)(s))?c=eF(s,eH(s)):(!(0,eS.A)(s)||(0,eA.A)(s))&&(c=eR(l)):d=!1}d&&(i.set(l,c),a(c,l,r,o,i),i.delete(l)),ep(e,n,c)},eK=function e(t,n,r,a,o){t!==n&&ef(n,function(i,s){if(o||(o=new el.A),(0,eS.A)(i))ez(t,n,s,r,e,a,o);else{var l=a?a(ej(t,s),i,s+"",t,n,o):void 0;void 0===l&&(l=i),ep(t,s,l)}},eH)};var eG=n(9008);let eZ=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eY=Math.max;let eq=function(e,t,n){return t=eY(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=eY(r.length-t,0),i=Array(o);++a<o;)i[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(i),eZ(e,this,s)}};var eJ=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eG.A,eX=Date.now,eQ=(K=0,G=0,function(){var e=eX(),t=16-(e-G);if(G=e,t>0){if(++K>=800)return arguments[0]}else K=0;return eJ.apply(void 0,arguments)}),e0=n(5353);let e1=function(e,t,n){if(!(0,eS.A)(n))return!1;var r=typeof t;return("number"==r?!!((0,e$.A)(n)&&(0,e0.A)(t,n.length)):"string"==r&&t in n)&&(0,em.A)(n[t],e)},e4=function(e){var t;return eQ(eq(t=function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&e1(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t},void 0,eG.A),t+"")};var e2=e4(function(e,t,n,r){eK(e,t,n,r)}),e3=n(421);let e6=function(e,t){return(0,e3.A)(e,t)};var e5=n(5572);let e9=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var e8=n(7422),e7=n(4247),te=n(6912),tt=n(3153),tn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,te.A)(t,(0,e7.A)(e)),e=et(e);return t}:tt.A,tr=n(9042),ta=n(3831);let to=function(e){return(0,ta.A)(e,eH,tn)};var ti=n(3231),ts=Object.prototype.hasOwnProperty;let tl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ts.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tu=function(e,t){var n=t?ex(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var tc=/\w*$/;let td=function(e){var t=new e.constructor(e.source,tc.exec(e));return t.lastIndex=e.lastIndex,t};var tm=n(241),tp=tm.A?tm.A.prototype:void 0,tf=tp?tp.valueOf:void 0;let th=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return ex(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return tu(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return eD(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return td(e);case"[object Symbol]":return tf?Object(tf.call(e)):{}}};var tg=n(2789),ty=n(4841),tv=ty.A&&ty.A.isMap,tb=tv?(0,tg.A)(tv):function(e){return(0,en.A)(e)&&"[object Map]"==(0,ti.A)(e)},tw=ty.A&&ty.A.isSet,tE=tw?(0,tg.A)(tw):function(e){return(0,en.A)(e)&&"[object Set]"==(0,ti.A)(e)},tx="[object Arguments]",tD="[object Function]",t_="[object Object]",tS={};tS[tx]=tS["[object Array]"]=tS["[object ArrayBuffer]"]=tS["[object DataView]"]=tS["[object Boolean]"]=tS["[object Date]"]=tS["[object Float32Array]"]=tS["[object Float64Array]"]=tS["[object Int8Array]"]=tS["[object Int16Array]"]=tS["[object Int32Array]"]=tS["[object Map]"]=tS["[object Number]"]=tS[t_]=tS["[object RegExp]"]=tS["[object Set]"]=tS["[object String]"]=tS["[object Symbol]"]=tS["[object Uint8Array]"]=tS["[object Uint8ClampedArray]"]=tS["[object Uint16Array]"]=tS["[object Uint32Array]"]=!0,tS["[object Error]"]=tS[tD]=tS["[object WeakMap]"]=!1;let tk=function e(t,n,r,a,o,i){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=o?r(t,a,o,i):r(t)),void 0!==s)return s;if(!(0,eS.A)(t))return t;var d=(0,eO.A)(t);if(d){if(s=tl(t),!l)return e_(t,s)}else{var m,p,f,h,g=(0,ti.A)(t),y=g==tD||"[object GeneratorFunction]"==g;if((0,eN.A)(t))return ew(t,l);if(g==t_||g==tx||y&&!o){if(s=u||y?{}:eR(t),!l)return u?(p=(m=s)&&eF(t,eH(t),m),eF(t,tn(t),p)):(h=(f=s)&&eF(t,(0,e8.A)(t),f),eF(t,(0,e7.A)(t),h))}else{if(!tS[g])return o?t:{};s=th(t,g,l)}}i||(i=new el.A);var v=i.get(t);if(v)return v;i.set(t,s),tE(t)?t.forEach(function(a){s.add(e(a,n,r,a,t,i))}):tb(t)&&t.forEach(function(a,o){s.set(o,e(a,n,r,o,t,i))});var b=c?u?to:tr.A:u?eH:e8.A,w=d?void 0:b(t);return e9(w||t,function(a,o){w&&(a=t[o=a]),eL(s,o,e(a,n,r,o,t,i))}),s};var tC=n(4548);let tP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var tR=n(6318),tT=n(7688),tO=n(901);let t$=function(e,t){var n,r;return t=(0,tC.A)(t,e),n=e,null==(e=(r=t).length<2?n:(0,tR.A)(n,(0,tT.A)(r,0,-1)))||delete e[(0,tO.A)(tP(t))]},tN=function(e){return es(e)?void 0:e};var tA=tm.A?tm.A.isConcatSpreadable:void 0;let tI=function(e){return(0,eO.A)(e)||(0,eT.A)(e)||!!(tA&&e&&e[tA])},tj=function e(t,n,r,a,o){var i=-1,s=t.length;for(r||(r=tI),o||(o=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,a,o):(0,te.A)(o,l):a||(o[o.length]=l)}return o};var tM=eQ(eq(Z=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,e5.A)(t,function(t){return t=(0,tC.A)(t,e),r||(r=t.length>1),t}),eF(e,to(e),n),r&&(n=tk(n,7,tN));for(var a=t.length;a--;)t$(n,t[a]);return n},void 0,function(e){return(null==e?0:e.length)?tj(e,1):[]}),Z+""),tL=((Y={}).Array="Array",Y.Boolean="Boolean",Y.ConceptUuid="ConceptUuid",Y.Number="Number",Y.Object="Object",Y.String="String",Y.UUID="UUID",Y.PersonAttributeTypeUuid="PersonAttributeTypeUuid",Y.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",Y);function tF(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}let tB=tF(e=>Array.isArray(e),"must be an array"),tV=tF(e=>"boolean"==typeof e,"must be a boolean"),tU=tF(e=>"number"==typeof e,"must be a number"),tW=tF(e=>"string"==typeof e,"must be a string"),tH=tF(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),tz=tF(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e),"must be a valid UUID or a 36-character hexadecimal string"),tK=B("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),tG=B("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});tG.subscribe(e=>{var t=e.config;try{localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}catch(e){}});let tZ=B("config-store-of-extension-state",{mountedExtensions:[]});function tY(e){return U(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function tq(){return U("config-extension-slots",{slots:{}})}function tJ(e){return tX(tq().getState(),e)}function tX(e,t){return e.slots[t]??{loaded:!1,config:{}}}function tQ(){return U("config-extensions",{configs:{}})}function t0(e,t){if("string"!=typeof e||"string"!=typeof t||"__proto__"===e||"__proto__"===t||"constructor"===e||"constructor"===t||"prototype"===e||"prototype"===t)throw Error("Attempted to call `getExtensionConfig()` with invalid argument");let n=tQ(),r=n=>n.configs[e]?.[t];return{getInitialState:()=>r(n.getInitialState()),getState:()=>r(n.getState())??{loaded:!1,config:null},subscribe:e=>n.subscribe((t,n)=>{let a=r(t),o=r(n);T(a,o)||e(a,o)})}}function t1(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function t4(e,t,n){return e.configure?.[n]??null}let t2=A()(()=>({config:{}})),t3=0,t6=!0,t5=!1;function t9(e){r=e}function t8(){t6=!0,t3>0&&t7()}function t7(){if(t6&&r&&!t5){t5=!0,t6=!1;try{r()}catch(e){t6=!0,ne(e),console.error("Failed to derive the implementer tools config",e)}finally{t5=!1}}}function ne(e){t2.setState({derivationError:e instanceof Error?e.message:String(e)})}function nt(){t2.getState().derivationError&&t2.setState({derivationError:void 0})}let nn=V("config-implementer-tools",{...t2,getState:()=>(0===t3&&t7(),t2.getState()),setState:(...e)=>(t6=!1,t2.setState(...e)),subscribe(e){t3++,t7();let t=t2.subscribe(e),n=!1;return()=>{!n&&(n=!0,t3--),t()}}});function nr(e,t){if(Array.isArray(t))return t}function na(e,t){return e2({},e,t,nr)}let no=[];function ni(){let e=tK.getState(),t=tG.getState(),n=tZ.getState();if(ns?.configState===e&&ns.tempConfigState===t)return void nm(e,n,t,ns.slotConfigs,!0);!function(e,t){for(let n of Object.keys(e.schemas)){let r,a=tY(n),o=e.schemas[n],i=!!e.moduleLoaded[n],s=nd.get(n);if(s&&s.schema===o&&s.moduleLoaded===i&&s.providedConfigs===e.providedConfigs&&s.temporaryConfig===t.config)r=s.state;else{let a=i?function(e,t,n){let r=t.schemas[e],a=nP(e,nk(t,n));nT(r,a,e);let o=nA(r,a);return nO(r,o,e),delete o.extensionSlots,o}(n,e,t):function(e,t,n){let r=nA(nU,nP(e,nk(t,n)));return nO(nU,r,e),delete r.extensionSlots,r}(n,e,t);r={translationOverridesLoaded:!0,loaded:i,config:a},nd.set(n,{schema:o,moduleLoaded:i,providedConfigs:e.providedConfigs,temporaryConfig:t.config,state:r})}let l=a.getState();l.loaded===r.loaded&&l.translationOverridesLoaded===r.translationOverridesLoaded&&e6(l.config,r.config)||a.setState(r)}}(e,t);let r=function(e,t){let n=nR(nk(e,t)),r=Object.keys(n).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{});var a=r;for(let[e,t]of Object.entries(a))for(let[n,r]of Object.entries(t))!function(e,t,n){let r=`${t}.extensionSlots.${n}`,a=`Extension slot config '${r}'`,o=Object.keys(e).filter(e=>!["add","remove","order","configure"].includes(e));o.length&&nL(r,a+`' contains invalid keys '${o.join("', '")}'`),!e.add||Array.isArray(e.add)&&e.add.every(e=>"string"==typeof e)||nL(r,a+".add' is invalid. Must be an array of strings (extension IDs)"),!e.remove||Array.isArray(e.remove)&&e.remove.every(e=>"string"==typeof e)||nL(r,a+".remove' is invalid. Must be an array of strings (extension IDs)"),!e.order||Array.isArray(e.order)&&e.order.every(e=>"string"==typeof e)||nL(r,a+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!nj(e.configure)&&nL(r,a+".configure' is invalid. Must be an object with extension IDs for keys")}(r,e,n);let o={},i={};for(let e of Object.values(r))for(let[t,n]of Object.entries(e))o[t]=n,n.configure&&(i[t]??(i[t]=[])).push(n.configure);for(let[e,t]of Object.entries(i)){let n=1===t.length?t[0]:nR(t);o[e].configure!==n&&(o[e]={...o[e],configure:n})}return o}(e,t);(function(e){let t=tq(),n=t.getState().slots,r={},a=!1;for(let[t,o]of Object.entries(e)){let e=n[t];e?.loaded&&e6(e.config,o)?r[t]=e:(r[t]={loaded:!0,config:o},a=!0)}(a||Object.keys(n).length!==Object.keys(r).length)&&t.setState({slots:r})})(r),nm(e,n,t,r,!1),ns={configState:e,tempConfigState:t,slotConfigs:r},t8()}let ns=null,nl=new WeakMap;function nu(){r=()=>{var e,t;let n,r;return e=tK.getState(),t=tG.getState(),n=nn.getState(),r={config:function(e,t){let n=function(e){let t={};for(let[n,r]of Object.entries(e)){let e=nS.get(n);if(e&&e.schema===r)t[n]=e.annotated;else{let e=function e(t){return t.hasOwnProperty("_default")?{...t,_value:t._default,_source:"default"}:nj(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}(tk(r,5));nS.set(n,{schema:r,annotated:e}),t[n]=e}}return t}(e.schemas),r=[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]],a=new Set(Object.keys(n));for(let[e]of r)for(let t of Object.keys(e))a.add(t);let o={};for(let e of a){let t=n[e],a=r.map(([t])=>t[e]),i=r.map(([,e])=>e),s=n_.get(e);if(s&&s.annotatedSchema===t&&s.configSlices.length===a.length&&s.configSlices.every((e,t)=>e===a[t])&&s.sources.every((e,t)=>e===i[t])){o[e]=s.result;continue}let l=t??{};r.forEach(([,e],t)=>{let n=a[t];void 0!==n&&(l=na(l,function e(t,n){return nj(t)?Object.keys(t).reduce((r,a)=>(r[a]=e(t[a],n),r),{}):{_value:t,_source:n}}(n,e)))}),n_.set(e,{annotatedSchema:t,configSlices:a,sources:i,result:l}),o[e]=l}return o}(e,t)},void(e6(n.config,r.config)||nn.setState(r))},ni(),no.push(tK.subscribe(nc),tG.subscribe(nc),tZ.subscribe(nc))}function nc(){nt();try{ni()}catch(e){ne(e),console.error("Failed to recompute the configuration",e)}}nu();let nd=new Map;function nm(e,t,n,r,a){let o=tQ(),i=o.getState().configs,s={},l=!1,u=0;for(let o of t.mountedExtensions){let t,c=i[o.slotName]?.[o.extensionId],d=c&&nl.get(c);if(a&&c?.loaded&&d?.slotModuleName===o.slotModuleName&&d.extensionModuleName===o.extensionModuleName)t=c;else{let a=function(e,t,n,r,a,o,i){let s=function(e){let[t]=e.split("#");return t}(r),l=a.schemas[s],u=JSON.stringify([n,r,e,t]),c=nD.get(u);if(c&&c.extensionSchema===l&&c.extensionModuleSchema===a.schemas[t]&&c.providedConfigs===a.providedConfigs&&c.temporaryConfig===o.config)return c.config;let d=l?s:t,m=nk(a,o),p=i?.configure?.[r]??{},f=nP(e,m),h=f?.extensionSlots?.[n]?.configure?.[r]??{},g=nR([nP(d,m),p,h]),y=l??a.schemas[t];nT(y,g,d);let v=nA(y,g);return nO(y,v,d),delete v.extensionSlots,nD.set(u,{extensionSchema:l,extensionModuleSchema:a.schemas[t],providedConfigs:a.providedConfigs,temporaryConfig:o.config,config:v}),v}(o.slotModuleName,o.extensionModuleName,o.slotName,o.extensionId,e,n,r[o.slotName]);t=c?.loaded&&e6(c.config,a)?c:{config:a,loaded:!0}}nl.set(t,o),t!==c&&(l=!0),s[o.slotName]||(s[o.slotName]={}),s[o.slotName][o.extensionId]=t,u++}for(let[e,t]of Object.entries(s)){let n=i[e];n&&Object.keys(n).length===Object.keys(t).length&&Object.entries(t).every(([e,t])=>n[e]===t)&&(s[e]=n)}l||(l=Object.keys(i).length!==Object.keys(s).length||Object.values(i).reduce((e,t)=>e+Object.keys(t).length,0)!==u),l&&o.setState({configs:s})}function np(e,t){nC(e,t);let n=na(t,nU);tK.setState(t=>({...t,schemas:{...t.schemas,[e]:n},moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function nf(e){tK.setState(t=>({...t,schemas:{...t.schemas,[e]:nU}}))}function nh(e){tK.setState(t=>({...t,moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function ng(e){tK.setState(t=>({...t,schemas:{...t.schemas,[e]:nV}}))}function ny(e,t){nC(e,t);let n=na(t,nU);tK.getState().schemas[e]&&console.error(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),tK.setState(t=>({...t,schemas:{...t.schemas,[e]:n}}))}function nv(e,t="provided"){tK.setState(n=>({...n,providedConfigs:[...n.providedConfigs,{source:t,config:e}]}))}function nb(e,t,n){return new Promise(r=>{let a,o=!1;function i(e){!o&&t(e)&&(o=!0,r(n(e)),a?.())}i(e.getState()),o||(a=e.subscribe(i))})}function nw(e){return nb(tY(e),e=>!!(e.loaded&&e.config),e=>tM(e.config,["Display conditions","Translation overrides"]))}function nE(e,t,n){let r=[nb(tY(e),e=>!!(e.translationOverridesLoaded&&e.config),e=>e.config["Translation overrides"]??{})];return t&&n&&r.push(nb(t0(t,n),e=>!!(e.loaded&&e.config),e=>e.config["Translation overrides"]??{})),Promise.all(r)}function nx(e,t,n){nT(e,t,n);let r=nA(e,t);return nO(e,r,n),r}let nD=new Map,n_=new Map,nS=new Map;function nk(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function nC(e,t,n=""){let r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(let a of Object.keys(t).filter(e=>!e.startsWith("_"))){let o=n+(n&&".")+a,i=t[a];if("Display conditions"===o&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===o&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!nj(i)){console.error(`${e} has bad config schema definition for key '${o}'. ${r}`);continue}i.hasOwnProperty("_default")||nC(e,i,o);let s=i._elements;if(nI(s)&&nC(e,s,o+"._elements"),i._validators)for(let t of i._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${o}' ${r}.
4
4
 
5
5
  If you're the maintainer: validators must be functions that return either undefined or an error string. Received ${t}.`);let l=i._type;l&&!Object.values(tL).includes(l)&&console.error(`${e} has invalid type for key '${o}' ${r}.
6
6