@openmrs/esm-form-engine-app 12.3.5-pre.12446 → 12.3.5-pre.12448
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/dist/2160.js +5 -5
- package/dist/2160.js.map +1 -1
- package/dist/8623.js +5 -5
- package/dist/8623.js.map +1 -1
- package/dist/9712.js +1 -1
- package/dist/9712.js.map +1 -1
- package/dist/openmrs-esm-form-engine-app.js +2 -2
- package/dist/openmrs-esm-form-engine-app.js.buildmanifest.json +29 -8
- package/dist/openmrs-esm-form-engine-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +3 -2
package/dist/2160.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_form_engine_app=globalThis.webpackChunk_openmrs_esm_form_engine_app||[]).push([["2160"],{5602(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)}}},4397(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)}}},7657(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)}}}()},5570(e,t,n){!function(t){"use strict";var r=n(9109);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)},1812(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(",")+")"}}},9109(e,t,n){"use strict";var r=n(4751),a=n(1812),o=n(2742),i=n(3153),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]})}}},2742(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()}},3153(e,t,n){"use strict";var r=n(4751),a=n(7338);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}},7338(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("")}},4751(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}},2034(e,t){"use strict";t.pathToRegexp=function(e,t={}){let{delimiter:u="/",end:c=!0,sensitive:d=!1,trailing:m=!0}=t,p=[],f="",h=0;!function e(c){if(Array.isArray(c)){for(let t of c)e(t);return}let d="object"==typeof c?c:function(e,t={}){let{encodePath:o=n}=t,l=[...e],u=0;return new i(function t(n){let i=[],c="";function d(){c&&(i.push({type:"text",value:o(c)}),c="")}for(;u<l.length;){let o=l[u++];if(o===n)return d(),i;if("\\"===o){if(u===l.length)throw new s(`Unexpected end after \\ at index ${u}`,e);c+=l[u++];continue}if(":"===o||"*"===o){let t=":"===o?"param":"wildcard",n="";if(r.test(l[u]))do n+=l[u++];while(a.test(l[u]));else if('"'===l[u]){let t=u;for(;u<l.length;){if('"'===l[++u]){u++,t=0;break}"\\"===l[u]&&u++,n+=l[u]}if(t)throw new s(`Unterminated quote at index ${t}`,e)}if(!n)throw new s(`Missing parameter name at index ${u}`,e);d(),i.push({type:t,name:n});continue}if("{"===o){d(),i.push({type:"group",tokens:t("}")});continue}if("}"===o||"("===o||")"===o||"["===o||"]"===o||"+"===o||"?"===o||"!"===o)throw new s(`Unexpected ${o} at index ${u-1}`,e);c+=o}if(n)throw new s(`Unexpected end at index ${u}, expected ${n}`,e);return d(),i}(""),e)}(c,t);!function e(t,n,r,a){for(;n<t.length;){let o=t[n++];if("group"===o.type){let i=r.length;e(o.tokens,0,r,r=>e(t,n,r,a)),r.length=i;continue}r.push(o)}a(r)}(d.tokens,0,[],e=>{if(h>=256)throw new s("Too many path combinations",d.originalPath);h>0&&(f+="|"),f+=function(e,t,n,r){let a="",i="",u="",c=0,d=0,m=0;for(;m<e.length;){let p=e[m++];if("text"===p.type){a+=o(p.value),i+=p.value,2===c&&(u+=p.value),p.value.includes(t)&&(d=0);continue}if("param"===p.type||"wildcard"===p.type){if(c&&!i)throw new s(`Missing text before "${p.name}" ${p.type}`,r);"param"===p.type?(a+=2&d?`(${l(t,i)}+)`:!function(n,r){for(;n<e.length;){let a=e[n++];if(a.type===r)return!0;if("text"===a.type&&a.value.includes(t))break}return!1}(m,"wildcard")?1&d?`(${l(t,i)}+|${o(i)})`:`(${l(t,"")}+)`:`(${l(t,function(t){let n="";for(;t<e.length;){let r=e[t++];if("text"!==r.type)break;n+=r.value}return n}(m))}+)`,d|=c=1):(a+=2&d?`(${l(i,"")}+)`:u?`(${l(u,"")}+|${l(t,"")}+)`:"([^]+)",u="",d|=c=2),n.push(p),i="";continue}throw TypeError(`Unknown token type: ${p.type}`)}return a}(e,u,p,d.originalPath),h++})}(e);let g=`^(?:${f})`;return m&&(g+="(?:"+o(u)+"$)?"),{regexp:new RegExp(g+=c?"$":"(?="+o(u)+"|$)",d?"":"i"),keys:p}};let n=e=>e,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u;function o(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class i{constructor(e,t){this.tokens=e,this.originalPath=t}}class s extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),super(n+="; visit https://git.new/pathToRegexpError for info"),this.originalPath=t}}function l(e,t){return t.length>e.length?l(t,e):(e===t&&(t=""),t.length>1)?`(?:(?!${o(e)}|${o(t)})[^])`:e.length>1?`(?:(?!${o(e)})[^${o(t)}])`:`[^${o(e+t)}]`}},5873(e,t,n){"use strict";var r=n(3144);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6499(e,t,n){"use strict";let r,a,o,i,s,l,u,c,d,m;n.r(t),n.d(t,{GenderUnknownIcon:()=>c6,evaluateAsNumber:()=>iC,getImportMapOverrideMap:()=>oD,StockManagementPictogram:()=>Dm,ChemistryIcon:()=>cV,BabyIcon:()=>cR,DashboardExtension:()=>d5,openmrsComponentDecorator:()=>lW,tryRegisterExtension:()=>u5,pictogramIds:()=>xq,ActivityIcon:()=>c_,compile:()=>iN,removeRouteMapOverride:()=>oX,TableBatchActions:()=>cp,getAsyncLifecycle:()=>lz,subscribeOpenmrsEvent:()=>ie,PasswordIcon:()=>dw,Assessment2Pictogram:()=>x0,CloseIcon:()=>cK,setupRouteMapOverrides:()=>o1,getWorkspaceGroupRegistration:()=>sJ,registerWorkspace:()=>sG,useFeatureFlag:()=>up,reset:()=>sL,LabOrderIcon:()=>di,VisitMode:()=>is,useLocations:()=>uM,getLifecycle:()=>lH,formatDatetime:()=>wr,getVisitsForPatient:()=>ig,formatPartialDate:()=>b7,CustomOverflowMenu:()=>cw,LocationIcon:()=>dl,GroupIcon:()=>c9,createUseStore:()=>lp,VisitStatus:()=>il,getSessionLocation:()=>on,getCurrentImportMap:()=>oM,usePatient:()=>uV,useRenderableExtensions:()=>uW,getOpenedWindowIndexByWorkspace:()=>s1,setLeftNav:()=>sB,clearHistory:()=>az,clearConfigErrors:()=>np,formatTime:()=>wn,isDevEnabled:()=>oi,closeWorkspaceGroup2:()=>E_,getCurrentRouteMap:()=>oG,ConfigurableLink:()=>li,sessionStore:()=>a1,subscribeSnackbarShown:()=>_,getLoggedInUser:()=>ot,GenderMaleIcon:()=>c2,getExtensionSlotConfigFromStore:()=>tT,evaluateAsNumberAsync:()=>iP,getImportMapDefaultMap:()=>ow,unregisterExtensionRendering:()=>sa,implementerToolsConfigStore:()=>tW,Type:()=>th,InPatientPictogram:()=>De,cleanupObsoleteFeatureFlags:()=>iQ,getAttachmentsUrl:()=>o6,showSnackbar:()=>Dk,PatientBannerActionsMenu:()=>xW,PatientSearchPictogram:()=>Do,DocumentAttachmentIcon:()=>cq,Snackbar:()=>Dx,CardiologyPictogram:()=>x4,ImageMedicalIcon:()=>de,ActionableNotificationComponent:()=>xl,DiagnosisTags:()=>wZ,iconIds:()=>cE,PatientsPictogram:()=>Di,interpolateUrl:()=>aI,setupHistory:()=>aU,subscribeToastShown:()=>E,detachAll:()=>s$,convertToLocaleCalendar:()=>wa,DocumentIcon:()=>cY,configInternalStore:()=>tE,ActionMenuButton2:()=>EB,setupDynamicOfflineDataHandler:()=>_t,makeUrl:()=>aX,oneOf:()=>nw,selectPreferredName:()=>xN,launchWorkspaceGroup:()=>function e(t,n){let r=sJ(t),{state:a,onWorkspaceGroupLaunch:o,workspaceGroupCleanup:i,workspaceToLaunch:s}=n,l=function(){return DK}();if(l.getState().openWorkspaces.length){let r=l.getState().workspaceGroup;r?DM(r?.name,()=>{e(t,n)}):Dq(()=>{e(t,n)})}else l.setState(e=>({...e,workspaceGroup:{name:t,members:r.members,cleanup:i}})),D1(t,a),o?.(),s&&Dj(s.name,s.additionalProps??{})},MobileCheckIcon:()=>df,createErrorHandler:()=>C,parseDate:()=>b2,getAttachmentByUuid:()=>o2,LeftNavMenu:()=>w0,getExtensionRegistration:()=>sT,ShoppingCartAddItemIcon:()=>d2,ReferralOrderIcon:()=>dk,ReportIcon:()=>dP,dispatchToastShown:()=>w,getImportMapNextPageMap:()=>ox,registerExtension:()=>sR,setupOfflineSync:()=>_e,DownloadIcon:()=>cJ,useConnectivity:()=>_i,provide:()=>t4,ShoppingCartArrowDownIcon:()=>dA,featureFlagsStore:()=>iJ,promptBeforeClosing:()=>DF,jsep:()=>iv,GeriatricsPictogram:()=>x8,SearchIcon:()=>dN,reportError:()=>k,slugify:()=>oN,isOmrsDateToday:()=>b0,getExtensionStore:()=>so,BloodBankPictogram:()=>x1,TriagePictogram:()=>Df,Workspace2:()=>EM,refetchCurrentUser:()=>a8,CheckmarkOutlineIcon:()=>cB,registerExtensionSlot:()=>sI,AllergiesIcon:()=>dQ,ArrowDownIcon:()=>ck,useOpenmrsInfinite:()=>uD,getExtensionConfigFromExtensionSlotStore:()=>t$,OpenmrsDatePicker:()=>wK,getExtensionConfigFromStore:()=>tO,getDynamicOfflineDataEntries:()=>_n,getLocaleDisplayName:()=>bb,messageOmrsServiceWorker:()=>_a,navigate:()=>aF,launchWorkspace2:()=>ES,getGroupByWindowName:()=>s0,CustomOverflowMenuItem:()=>cx,isUrl:()=>nb,CaretDownIcon:()=>c$,ArrowLeftIcon:()=>cC,FacilityPictogram:()=>x9,ViewOffIcon:()=>dq,updateInternalExtensionStore:()=>i8,dispatchActionableNotificationShown:()=>v,resetRouteMapOverrides:()=>oQ,formatDurationBetween:()=>wm,defaultVisitCustomRepresentation:()=>iu,getBreadcrumbsFor:()=>nT,useOpenmrsPagination:()=>uh,Pagination:()=>xk,CheckmarkFilledIcon:()=>cF,clearCurrentUser:()=>a7,showModal:()=>xa,ChevronUpIcon:()=>cz,saveVisit:()=>ip,useAttachments:()=>l8,Pictogram:()=>Db,useExtensionSlot:()=>lb,ChevronDownIcon:()=>cU,OpenmrsDateRangePicker:()=>wG,deleteAttachmentPermanently:()=>o9,getVisitTypes:()=>ii,OverflowMenuHorizontalIcon:()=>dv,EventScheduleIcon:()=>c0,getSessionStore:()=>a5,ActionMenu:()=>Ef,ProcedureOrderIcon:()=>d_,preloadImport:()=>o$,registerWorkspaceWindows2:()=>s2,useOnVisible:()=>uj,setSessionLocation:()=>or,userHasAccess:()=>oe,ChartAverageIcon:()=>cI,getFeatureFlag:()=>i0,UserAvatarIcon:()=>dK,renderExtension:()=>ln,useFhirInfinite:()=>uC,toVisitTypeObject:()=>ia,useSession:()=>uH,EmergencyDepartmentPictogram:()=>x5,Notification:()=>xi,dispatchSnackbarShown:()=>b,navigateAndLaunchWorkspace:()=>DI,formatDate:()=>we,workspace2StoreActions:()=>EP,SwitcherIcon:()=>d$,esmStyleGuideSchema:()=>cc,getImportMapDisabledOverrides:()=>oE,useAssignedExtensionIds:()=>l5,CaretRightIcon:()=>cA,evaluateAsType:()=>iT,PageHeader:()=>x_,TranslateIcon:()=>dU,setUserProperties:()=>oa,MovementIcon:()=>dy,renderInlineNotifications:()=>xh,subscribePrecacheStaticDependencies:()=>_o,PaymentsDeskPictogram:()=>Ds,usePrimaryIdentifierCode:()=>uU,useLayoutType:()=>uT,getCurrentUser:()=>a6,XrayPictogram:()=>Dh,CaretUpIcon:()=>cj,renderActionableNotifications:()=>xy,OpenmrsAppContext:()=>l1,setupModals:()=>xr,getDefaultsFromConfigSchema:()=>function e(t){let n={};for(let r of Object.keys(t))if(E3(t[r])&&t[r].hasOwnProperty("_default"))n[r]=t[r]._default;else{if(r.startsWith("_"))continue;E3(t[r])?n[r]=e(t[r]):n[r]=t[r]}return n},subscribeTo:()=>U,recordConfigDerivationError:()=>tV,useAbortController:()=>l2,Extension:()=>ls,getFhirServerPaginationHandlers:()=>ub,useConnectedExtensions:()=>ur,registerApp:()=>u8,HospitalBedIcon:()=>c7,useExtensionInternalStore:()=>uc,configExtensionStore:()=>tS,getSynchronizationItems:()=>_r,getExtensionSlotsConfigStore:()=>tC,registerExtensionRendering:()=>sr,RenderIfValueIsTruthy:()=>l4,registerFeatureFlag:()=>iX,useFhirFetchAll:()=>uk,restBaseUrl:()=>aY,CalendarHeatMapIcon:()=>cN,getWorkspaceRegistration:()=>sq,isImportMapOverrideDisabled:()=>o_,resetConfigSystem:()=>nf,getExtensionInternalStore:()=>i5,registerGlobalStore:()=>B,evaluateAsBoolean:()=>iS,PatientBannerPatientInfo:()=>xV,addRouteMapOverride:()=>oJ,getDefaultCalendar:()=>b9,SettingsIcon:()=>dO,DrugOrderIcon:()=>cX,ProgramsIcon:()=>dS,useAssignedExtensions:()=>lv,CloseFilledIcon:()=>cG,canAccessStorage:()=>E2,registerDefaultCalendar:()=>b5,TreeViewAltIcon:()=>dH,OverflowMenuVerticalIcon:()=>db,clearConfigDerivationError:()=>tU,getConfigStore:()=>tk,registerWorkspaceGroup:()=>sZ,InformationSquareIcon:()=>dr,EmptyCard:()=>wJ,ChevronLeftIcon:()=>cW,RadiologyIcon:()=>d4,useCandidateExtensions:()=>l9,renderToasts:()=>DN,isDesktop:()=>uR,integrateBreakpoints:()=>cr,RegistrationPictogram:()=>Dc,CardHeader:()=>cs,getExtensionRegistrationFrom:()=>sP,InformationIcon:()=>dt,TrashCanIcon:()=>dW,useShallowStableValue:()=>ll,useOpenmrsSWR:()=>uI,Assessment1Pictogram:()=>xQ,finishRegisteringAllApps:()=>u7,importDynamic:()=>oO,useFhirPagination:()=>uv,useVisitContextStore:()=>uX,ArrowUpIcon:()=>cT,showActionableNotification:()=>xv,useForceUpdate:()=>uf,useVisit:()=>uQ,updateWorkspaceWindowState:()=>DZ,PatientBannerPatientIdentifiers:()=>xI,WorkspaceNotification:()=>Ea,TransferPictogram:()=>Dp,usePagination:()=>uL,Breakpoint:()=>ce,PatientBannerToggleContactDetailsButton:()=>EV,CloseOutlineIcon:()=>cZ,ObstetricsPictogram:()=>Da,parseDateInput:()=>wi,getConfig:()=>t3,attach:()=>sN,getLocale:()=>bw,ActionMenuButton:()=>D5,isUrlWithTemplateParameters:()=>nv,useEmrConfiguration:()=>ul,useLeftNav:()=>uN,ToolsIcon:()=>dV,ErrorState:()=>wX,detach:()=>sO,setCurrentVisit:()=>im,ConditionsIcon:()=>d1,SaveIcon:()=>dR,useWorkspaces:()=>DJ,resetWorkspaceStore:()=>D0,useConfig:()=>un,validator:()=>tg,CalendarIcon:()=>cO,getHistory:()=>aW,StickyNoteAddIcon:()=>dj,useWorkspace2Store:()=>ET,getPatientName:()=>xC,getVisitStore:()=>id,getCoreTranslation:()=>aj,registerModuleWithConfigSystem:()=>tX,registerModuleLoad:()=>tQ,getBreadcrumbs:()=>nk,extractVariableNames:()=>iZ,translateFrom:()=>aA,useStoreWithActions:()=>lm,EditIcon:()=>cQ,getCandidateExtensions:()=>sj,shallowEqual:()=>T,subscribeNotificationShown:()=>x,MaximizeIcon:()=>dc,promptForClosingWorkspaces:()=>EC,WarningIcon:()=>dX,closeAllWorkspaces:()=>Dq,fhirBaseUrl:()=>aq,matchLocale:()=>E4,registerBreadcrumb:()=>n_,usePatientPhoto:()=>xK,EventsIcon:()=>c1,createGlobalStore:()=>F,workspaceStore:()=>DK,subscribeToFeatureFlag:()=>i1,useExtensionStore:()=>um,closeWorkspace:()=>DW,createAttachment:()=>o5,useLeftNavStore:()=>uO,TableIcon:()=>dF,Icon:()=>d6,InformationFilledIcon:()=>dn,getCurrentPageMap:()=>ob,LaboratoryPictogram:()=>Dt,temporaryConfigStore:()=>t_,getPromptBeforeClosingFcn:()=>DB,toDateObjectStrict:()=>b1,defineConfigSchema:()=>tJ,filterBreadcrumbs:()=>nP,invalidateImplementerToolsConfig:()=>tF,PatientBannerContactDetails:()=>EG,getAssignedExtensions:()=>sA,PatientPhoto:()=>xY,MaterialOrderIcon:()=>du,MicroscopeIcon:()=>dp,visitTypesUrl:()=>io,scheduleRecomputation:()=>sc,PharmacyPictogram:()=>Dl,AttachmentIcon:()=>d0,MoneyIcon:()=>dh,getAttachments:()=>o3,getWorkspaceGroupStore:()=>D1,PageHeaderContent:()=>xS,MedicationIcon:()=>dd,PrinterIcon:()=>dE,PatientListsPictogram:()=>Dy,useAppContext:()=>l3,isOpenmrsRoutes:()=>oI,AppointmentsAltPictogram:()=>xX,GenericOrderTypeIcon:()=>c5,batchExtensionUpdates:()=>sl,useExtensionSlotStore:()=>lg,ViewIcon:()=>dJ,formattedName:()=>xR,sessionEndpoint:()=>aJ,duration:()=>wc,resetImportMapOverrides:()=>oC,TableOfContentsIcon:()=>dL,CaretLeftIcon:()=>cM,getTranslationOverrides:()=>t6,isVersionSatisfied:()=>E9,EmptyCardIllustration:()=>wq,PenIcon:()=>dD,getWorkspaceStore:()=>DG,validators:()=>nx,setupImportMapOverrides:()=>oR,showToast:()=>DO,useDefineAppContext:()=>l0,getGlobalStore:()=>V,useOnClickOutside:()=>uA,getWindowByWorkspaceName:()=>sQ,ArrowRightIcon:()=>cP,loadLifeCycles:()=>u2,registerBreadcrumbs:()=>nS,MotherIcon:()=>dg,fetchCurrentPatient:()=>o8,Toast:()=>DC,MessageQueueIcon:()=>dm,TwoFactorAuthenticationIcon:()=>dz,Pharmacy2Pictogram:()=>Du,goBackInHistory:()=>aH,GroupAccessIcon:()=>c8,getExtensionRenderingsStore:()=>i9,setImplementerToolsConfigRecomputer:()=>tL,getAsyncExtensionLifecycle:()=>lG,setupApiModule:()=>ol,renderLoadingSpinner:()=>EZ,WorkspaceContainer:()=>Eh,showNotification:()=>xg,getModalRegistration:()=>sH,ListCheckedIcon:()=>ds,ResponsiveWrapper:()=>Dw,GynaecologyPictogram:()=>x7,ShoppingCartIcon:()=>dM,getRouteMapNextPageMap:()=>oY,MetadataExportPictogram:()=>Dr,updateVisit:()=>ih,backendDependencies:()=>os,MaybePictogram:()=>Dv,createParcelMounter:()=>le,openmrsFetch:()=>aQ,useStore:()=>ld,isOpenmrsAppRoutes:()=>oj,HomePictogram:()=>Dg,DentistryPictogram:()=>x3,ServiceQueuesPictogram:()=>Dd,toLanguageTag:()=>bv,launchWorkspace:()=>Dj,setFeatureFlag:()=>i4,DigitalTrustPictogram:()=>x6,NumericObservation:()=>xD,attachmentUrl:()=>o4,interpolateString:()=>aL,inRange:()=>ny,useExtensionSlotMeta:()=>ud,AppointmentsPictogram:()=>xJ,renderSnackbars:()=>DS,getRegisteredWorkspace2Names:()=>EN,toLocationObject:()=>it,ChartLineIcon:()=>cL,UserHasAccess:()=>uz,evaluateAsBooleanAsync:()=>ik,changeWorkspaceContext:()=>DH,createDashboard:()=>d9,getLocations:()=>ir,useExtensionContext:()=>uu,canCloseWorkspaceWithoutPrompting:()=>D$,getExtensionsConfigStore:()=>tR,getRouteMapDefaultMap:()=>oZ,age:()=>x$,isOmrsDateStrict:()=>bQ,registerWorkspaceGroups2:()=>s4,usePaginationInfo:()=>uF,evaluateAsync:()=>i_,useOpenmrsFetchAll:()=>u_,removeImportMapOverride:()=>ok,showWorkspacePrompts:()=>DX,useVisitTypes:()=>u1,ageAsDuration:()=>xO,getExtensionNameFromId:()=>sC,renderParcel:()=>s7,useWorkspace2Context:()=>ER,ResetIcon:()=>dT,RenewIcon:()=>dC,subscribeActionableNotificationShown:()=>D,ErrorCard:()=>wQ,GenderFemaleIcon:()=>c4,enableImportMapOverride:()=>oP,retry:()=>E8,ComponentContext:()=>lo,ExtensionSlot:()=>lx,unsetLeftNav:()=>sV,addImportMapOverride:()=>oS,MaybeIcon:()=>d3,useCustomOverflowMenu:()=>cb,PedestrianFamilyIcon:()=>dx,cancelPrompt:()=>DV,CtScanPictogram:()=>x2,dispatchNotificationShown:()=>y,leftNavStore:()=>sF,OpenmrsFetchError:()=>a0,UserFollowIcon:()=>dG,launchWorkspaceGroup2:()=>EE,ChevronRightIcon:()=>cH,UserXrayIcon:()=>dZ,GenderOtherIcon:()=>c3,formatDuration:()=>wo,toOmrsIsoString:()=>b4,Labs2Pictogram:()=>Dn,workspace2Store:()=>sX,setUserLanguage:()=>a9,useBodyScrollLock:()=>l7,getExtensionConfig:()=>tN,SyringeIcon:()=>dI,LocationPicker:()=>w1,useDebounce:()=>ua,TimeIcon:()=>dB,getExtensionSlotConfig:()=>tP,AddIcon:()=>cS,getRouteMapOverrideMap:()=>oq,processConfig:()=>t5,InventoryManagementIcon:()=>da,registerWorkspaces2:()=>s3,UserIcon:()=>dY,formatPatientName:()=>xT,fireOpenmrsEvent:()=>o7,registerModal:()=>sW,registerTranslationNamespace:()=>t0,displayName:()=>xP,evaluate:()=>iE,defineExtensionConfigSchema:()=>t1,renderWorkspaceWindowsAndMenu:()=>E0,getSyncLifecycle:()=>lK,evaluateAsTypeAsync:()=>iR});let p="openmrs:notification-shown",f="openmrs:actionable-notification-shown",h="openmrs:toast-shown",g="openmrs:snack-bar-shown";function y(e){window.dispatchEvent(new CustomEvent(p,{detail:e}))}function v(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function b(e){window.dispatchEvent(new CustomEvent(g,{detail:e}))}function w(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))}function x(e){let t=t=>e(t.detail);return window.addEventListener(p,t),()=>window.removeEventListener(p,t)}function D(e){let t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function E(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,t){return e instanceof Error?e.message||t:"string"==typeof e&&e.trim().length>0?e:t}function k(e){let t=P(e);setTimeout(()=>{throw t})}function C(){let e=Error();return t=>{let n=P(t);n.stack+=`
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_form_engine_app=globalThis.webpackChunk_openmrs_esm_form_engine_app||[]).push([["2160"],{5602(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)}}},4397(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)}}},7657(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)}}}()},5570(e,t,n){!function(t){"use strict";var r=n(9109);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)},1812(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(",")+")"}}},9109(e,t,n){"use strict";var r=n(4751),a=n(1812),o=n(2742),i=n(3153),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]})}}},2742(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()}},3153(e,t,n){"use strict";var r=n(4751),a=n(7338);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}},7338(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("")}},4751(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}},2034(e,t){"use strict";t.pathToRegexp=function(e,t={}){let{delimiter:u="/",end:c=!0,sensitive:d=!1,trailing:m=!0}=t,p=[],f="",h=0;!function e(c){if(Array.isArray(c)){for(let t of c)e(t);return}let d="object"==typeof c?c:function(e,t={}){let{encodePath:o=n}=t,l=[...e],u=0;return new i(function t(n){let i=[],c="";function d(){c&&(i.push({type:"text",value:o(c)}),c="")}for(;u<l.length;){let o=l[u++];if(o===n)return d(),i;if("\\"===o){if(u===l.length)throw new s(`Unexpected end after \\ at index ${u}`,e);c+=l[u++];continue}if(":"===o||"*"===o){let t=":"===o?"param":"wildcard",n="";if(r.test(l[u]))do n+=l[u++];while(a.test(l[u]));else if('"'===l[u]){let t=u;for(;u<l.length;){if('"'===l[++u]){u++,t=0;break}"\\"===l[u]&&u++,n+=l[u]}if(t)throw new s(`Unterminated quote at index ${t}`,e)}if(!n)throw new s(`Missing parameter name at index ${u}`,e);d(),i.push({type:t,name:n});continue}if("{"===o){d(),i.push({type:"group",tokens:t("}")});continue}if("}"===o||"("===o||")"===o||"["===o||"]"===o||"+"===o||"?"===o||"!"===o)throw new s(`Unexpected ${o} at index ${u-1}`,e);c+=o}if(n)throw new s(`Unexpected end at index ${u}, expected ${n}`,e);return d(),i}(""),e)}(c,t);!function e(t,n,r,a){for(;n<t.length;){let o=t[n++];if("group"===o.type){let i=r.length;e(o.tokens,0,r,r=>e(t,n,r,a)),r.length=i;continue}r.push(o)}a(r)}(d.tokens,0,[],e=>{if(h>=256)throw new s("Too many path combinations",d.originalPath);h>0&&(f+="|"),f+=function(e,t,n,r){let a="",i="",u="",c=0,d=0,m=0;for(;m<e.length;){let p=e[m++];if("text"===p.type){a+=o(p.value),i+=p.value,2===c&&(u+=p.value),p.value.includes(t)&&(d=0);continue}if("param"===p.type||"wildcard"===p.type){if(c&&!i)throw new s(`Missing text before "${p.name}" ${p.type}`,r);"param"===p.type?(a+=2&d?`(${l(t,i)}+)`:!function(n,r){for(;n<e.length;){let a=e[n++];if(a.type===r)return!0;if("text"===a.type&&a.value.includes(t))break}return!1}(m,"wildcard")?1&d?`(${l(t,i)}+|${o(i)})`:`(${l(t,"")}+)`:`(${l(t,function(t){let n="";for(;t<e.length;){let r=e[t++];if("text"!==r.type)break;n+=r.value}return n}(m))}+)`,d|=c=1):(a+=2&d?`(${l(i,"")}+)`:u?`(${l(u,"")}+|${l(t,"")}+)`:"([^]+)",u="",d|=c=2),n.push(p),i="";continue}throw TypeError(`Unknown token type: ${p.type}`)}return a}(e,u,p,d.originalPath),h++})}(e);let g=`^(?:${f})`;return m&&(g+="(?:"+o(u)+"$)?"),{regexp:new RegExp(g+=c?"$":"(?="+o(u)+"|$)",d?"":"i"),keys:p}};let n=e=>e,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u;function o(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class i{constructor(e,t){this.tokens=e,this.originalPath=t}}class s extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),super(n+="; visit https://git.new/pathToRegexpError for info"),this.originalPath=t}}function l(e,t){return t.length>e.length?l(t,e):(e===t&&(t=""),t.length>1)?`(?:(?!${o(e)}|${o(t)})[^])`:e.length>1?`(?:(?!${o(e)})[^${o(t)}])`:`[^${o(e+t)}]`}},5873(e,t,n){"use strict";var r=n(8439);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6499(e,t,n){"use strict";let r,a,o,i,s,l,u,c,d,m;n.r(t),n.d(t,{GenderUnknownIcon:()=>c6,evaluateAsNumber:()=>iC,getImportMapOverrideMap:()=>oD,StockManagementPictogram:()=>Dp,ChemistryIcon:()=>cV,BabyIcon:()=>cR,DashboardExtension:()=>d5,openmrsComponentDecorator:()=>lW,tryRegisterExtension:()=>u5,pictogramIds:()=>xJ,ActivityIcon:()=>c_,compile:()=>iN,removeRouteMapOverride:()=>oX,TableBatchActions:()=>cp,getAsyncLifecycle:()=>lz,subscribeOpenmrsEvent:()=>ie,PasswordIcon:()=>dw,Assessment2Pictogram:()=>x1,CloseIcon:()=>cK,setupRouteMapOverrides:()=>o1,getWorkspaceGroupRegistration:()=>sJ,registerWorkspace:()=>sG,useFeatureFlag:()=>up,reset:()=>sL,LabOrderIcon:()=>di,VisitMode:()=>is,useLocations:()=>uM,getLifecycle:()=>lH,formatDatetime:()=>wa,getVisitsForPatient:()=>ig,formatPartialDate:()=>we,CustomOverflowMenu:()=>cw,LocationIcon:()=>dl,GroupIcon:()=>c9,createUseStore:()=>lp,VisitStatus:()=>il,getSessionLocation:()=>on,getCurrentImportMap:()=>oM,usePatient:()=>uV,useRenderableExtensions:()=>uW,getOpenedWindowIndexByWorkspace:()=>s1,setLeftNav:()=>sB,clearHistory:()=>az,clearConfigErrors:()=>np,formatTime:()=>wr,isDevEnabled:()=>oi,closeWorkspaceGroup2:()=>ES,getCurrentRouteMap:()=>oG,ConfigurableLink:()=>li,sessionStore:()=>a1,subscribeSnackbarShown:()=>_,getLoggedInUser:()=>ot,GenderMaleIcon:()=>c2,getExtensionSlotConfigFromStore:()=>tT,evaluateAsNumberAsync:()=>iP,getImportMapDefaultMap:()=>ow,unregisterExtensionRendering:()=>sa,implementerToolsConfigStore:()=>tW,Type:()=>th,InPatientPictogram:()=>Dt,cleanupObsoleteFeatureFlags:()=>iQ,getAttachmentsUrl:()=>o6,showSnackbar:()=>DC,PatientBannerActionsMenu:()=>xH,PatientSearchPictogram:()=>Di,DocumentAttachmentIcon:()=>cq,Snackbar:()=>DD,CardiologyPictogram:()=>x2,ImageMedicalIcon:()=>de,ActionableNotificationComponent:()=>xu,DiagnosisTags:()=>wY,iconIds:()=>cE,PatientsPictogram:()=>Ds,interpolateUrl:()=>aI,setupHistory:()=>aU,subscribeToastShown:()=>E,detachAll:()=>s$,convertToLocaleCalendar:()=>wo,DocumentIcon:()=>cY,configInternalStore:()=>tE,ActionMenuButton2:()=>EV,setupDynamicOfflineDataHandler:()=>_n,makeUrl:()=>aX,oneOf:()=>nw,selectPreferredName:()=>xO,launchWorkspaceGroup:()=>function e(t,n){let r=sJ(t),{state:a,onWorkspaceGroupLaunch:o,workspaceGroupCleanup:i,workspaceToLaunch:s}=n,l=function(){return DG}();if(l.getState().openWorkspaces.length){let r=l.getState().workspaceGroup;r?DA(r?.name,()=>{e(t,n)}):DJ(()=>{e(t,n)})}else l.setState(e=>({...e,workspaceGroup:{name:t,members:r.members,cleanup:i}})),D4(t,a),o?.(),s&&DI(s.name,s.additionalProps??{})},MobileCheckIcon:()=>df,createErrorHandler:()=>C,parseDate:()=>b3,getAttachmentByUuid:()=>o2,LeftNavMenu:()=>w1,getExtensionRegistration:()=>sT,ShoppingCartAddItemIcon:()=>d2,ReferralOrderIcon:()=>dk,ReportIcon:()=>dP,dispatchToastShown:()=>w,getImportMapNextPageMap:()=>ox,registerExtension:()=>sR,setupOfflineSync:()=>_t,DownloadIcon:()=>cJ,useConnectivity:()=>_s,provide:()=>t4,ShoppingCartArrowDownIcon:()=>dA,featureFlagsStore:()=>iJ,promptBeforeClosing:()=>DB,jsep:()=>iv,GeriatricsPictogram:()=>x7,SearchIcon:()=>dN,reportError:()=>k,slugify:()=>oN,isOmrsDateToday:()=>b1,getExtensionStore:()=>so,BloodBankPictogram:()=>x4,TriagePictogram:()=>Dh,Workspace2:()=>EA,refetchCurrentUser:()=>a8,CheckmarkOutlineIcon:()=>cB,registerExtensionSlot:()=>sI,AllergiesIcon:()=>dQ,ArrowDownIcon:()=>ck,useOpenmrsInfinite:()=>uD,getExtensionConfigFromExtensionSlotStore:()=>t$,OpenmrsDatePicker:()=>wG,getExtensionConfigFromStore:()=>tO,getDynamicOfflineDataEntries:()=>_r,getLocaleDisplayName:()=>bw,messageOmrsServiceWorker:()=>_o,navigate:()=>aF,launchWorkspace2:()=>Ek,getGroupByWindowName:()=>s0,CustomOverflowMenuItem:()=>cx,isUrl:()=>nb,CaretDownIcon:()=>c$,ArrowLeftIcon:()=>cC,FacilityPictogram:()=>x8,ViewOffIcon:()=>dq,updateInternalExtensionStore:()=>i8,dispatchActionableNotificationShown:()=>v,resetRouteMapOverrides:()=>oQ,formatDurationBetween:()=>wp,defaultVisitCustomRepresentation:()=>iu,getBreadcrumbsFor:()=>nT,useOpenmrsPagination:()=>uh,Pagination:()=>xC,CheckmarkFilledIcon:()=>cF,clearCurrentUser:()=>a7,showModal:()=>xo,ChevronUpIcon:()=>cz,saveVisit:()=>ip,useAttachments:()=>l8,Pictogram:()=>Dw,useExtensionSlot:()=>lb,ChevronDownIcon:()=>cU,OpenmrsDateRangePicker:()=>wZ,deleteAttachmentPermanently:()=>o9,getVisitTypes:()=>ii,OverflowMenuHorizontalIcon:()=>dv,EventScheduleIcon:()=>c0,getSessionStore:()=>a5,ActionMenu:()=>Eh,ProcedureOrderIcon:()=>d_,preloadImport:()=>o$,registerWorkspaceWindows2:()=>s2,useOnVisible:()=>uj,setSessionLocation:()=>or,userHasAccess:()=>oe,ChartAverageIcon:()=>cI,getFeatureFlag:()=>i0,UserAvatarIcon:()=>dK,renderExtension:()=>ln,useFhirInfinite:()=>uC,toVisitTypeObject:()=>ia,useSession:()=>uH,EmergencyDepartmentPictogram:()=>x9,Notification:()=>xs,dispatchSnackbarShown:()=>b,navigateAndLaunchWorkspace:()=>DL,formatDate:()=>wt,workspace2StoreActions:()=>ET,SwitcherIcon:()=>d$,esmStyleGuideSchema:()=>cc,getImportMapDisabledOverrides:()=>oE,useAssignedExtensionIds:()=>l5,CaretRightIcon:()=>cA,evaluateAsType:()=>iT,PageHeader:()=>xS,TranslateIcon:()=>dU,setUserProperties:()=>oa,MovementIcon:()=>dy,renderInlineNotifications:()=>xg,subscribePrecacheStaticDependencies:()=>_i,PaymentsDeskPictogram:()=>Dl,usePrimaryIdentifierCode:()=>uU,useLayoutType:()=>uT,getCurrentUser:()=>a6,XrayPictogram:()=>Dg,CaretUpIcon:()=>cj,renderActionableNotifications:()=>xv,OpenmrsAppContext:()=>l1,setupModals:()=>xa,getDefaultsFromConfigSchema:()=>function e(t){let n={};for(let r of Object.keys(t))if(E6(t[r])&&t[r].hasOwnProperty("_default"))n[r]=t[r]._default;else{if(r.startsWith("_"))continue;E6(t[r])?n[r]=e(t[r]):n[r]=t[r]}return n},subscribeTo:()=>U,recordConfigDerivationError:()=>tV,useAbortController:()=>l2,Extension:()=>ls,getFhirServerPaginationHandlers:()=>ub,useConnectedExtensions:()=>ur,registerApp:()=>u8,HospitalBedIcon:()=>c7,useExtensionInternalStore:()=>uc,configExtensionStore:()=>tS,getSynchronizationItems:()=>_a,getExtensionSlotsConfigStore:()=>tC,registerExtensionRendering:()=>sr,RenderIfValueIsTruthy:()=>l4,registerFeatureFlag:()=>iX,useFhirFetchAll:()=>uk,restBaseUrl:()=>aY,CalendarHeatMapIcon:()=>cN,getWorkspaceRegistration:()=>sq,isImportMapOverrideDisabled:()=>o_,resetConfigSystem:()=>nf,getExtensionInternalStore:()=>i5,registerGlobalStore:()=>B,evaluateAsBoolean:()=>iS,PatientBannerPatientInfo:()=>xU,addRouteMapOverride:()=>oJ,getDefaultCalendar:()=>b8,SettingsIcon:()=>dO,DrugOrderIcon:()=>cX,ProgramsIcon:()=>dS,useAssignedExtensions:()=>lv,CloseFilledIcon:()=>cG,canAccessStorage:()=>E3,registerDefaultCalendar:()=>b9,TreeViewAltIcon:()=>dH,OverflowMenuVerticalIcon:()=>db,clearConfigDerivationError:()=>tU,getConfigStore:()=>tk,registerWorkspaceGroup:()=>sZ,InformationSquareIcon:()=>dr,EmptyCard:()=>wX,ChevronLeftIcon:()=>cW,RadiologyIcon:()=>d4,useCandidateExtensions:()=>l9,renderToasts:()=>DO,isDesktop:()=>uR,integrateBreakpoints:()=>cr,RegistrationPictogram:()=>Dd,CardHeader:()=>cs,getExtensionRegistrationFrom:()=>sP,InformationIcon:()=>dt,TrashCanIcon:()=>dW,useShallowStableValue:()=>ll,useOpenmrsSWR:()=>uI,Assessment1Pictogram:()=>x0,finishRegisteringAllApps:()=>u7,importDynamic:()=>oO,useFhirPagination:()=>uv,useVisitContextStore:()=>uX,ArrowUpIcon:()=>cT,showActionableNotification:()=>xb,useForceUpdate:()=>uf,useVisit:()=>uQ,updateWorkspaceWindowState:()=>DY,PatientBannerPatientIdentifiers:()=>xL,WorkspaceNotification:()=>Eo,TransferPictogram:()=>Df,usePagination:()=>uL,Breakpoint:()=>ce,PatientBannerToggleContactDetailsButton:()=>EU,CloseOutlineIcon:()=>cZ,ObstetricsPictogram:()=>Do,parseDateInput:()=>ws,getConfig:()=>t3,attach:()=>sN,getLocale:()=>bx,ActionMenuButton:()=>D9,isUrlWithTemplateParameters:()=>nv,useEmrConfiguration:()=>ul,useLeftNav:()=>uN,ToolsIcon:()=>dV,ErrorState:()=>wQ,detach:()=>sO,setCurrentVisit:()=>im,ConditionsIcon:()=>d1,SaveIcon:()=>dR,useWorkspaces:()=>DX,resetWorkspaceStore:()=>D1,useConfig:()=>un,validator:()=>tg,CalendarIcon:()=>cO,getHistory:()=>aW,StickyNoteAddIcon:()=>dj,useWorkspace2Store:()=>ER,getPatientName:()=>xP,getVisitStore:()=>id,getCoreTranslation:()=>aj,registerModuleWithConfigSystem:()=>tX,registerModuleLoad:()=>tQ,getBreadcrumbs:()=>nk,extractVariableNames:()=>iZ,translateFrom:()=>aA,useStoreWithActions:()=>lm,EditIcon:()=>cQ,getCandidateExtensions:()=>sj,shallowEqual:()=>T,subscribeNotificationShown:()=>x,MaximizeIcon:()=>dc,promptForClosingWorkspaces:()=>EP,WarningIcon:()=>dX,closeAllWorkspaces:()=>DJ,fhirBaseUrl:()=>aq,matchLocale:()=>E2,registerBreadcrumb:()=>n_,usePatientPhoto:()=>xG,EventsIcon:()=>c1,createGlobalStore:()=>F,workspaceStore:()=>DG,subscribeToFeatureFlag:()=>i1,useExtensionStore:()=>um,closeWorkspace:()=>DH,createAttachment:()=>o5,useLeftNavStore:()=>uO,TableIcon:()=>dF,Icon:()=>d6,InformationFilledIcon:()=>dn,getCurrentPageMap:()=>ob,LaboratoryPictogram:()=>Dn,temporaryConfigStore:()=>t_,getPromptBeforeClosingFcn:()=>DV,toDateObjectStrict:()=>b4,defineConfigSchema:()=>tJ,filterBreadcrumbs:()=>nP,invalidateImplementerToolsConfig:()=>tF,PatientBannerContactDetails:()=>EZ,getAssignedExtensions:()=>sA,PatientPhoto:()=>xq,MaterialOrderIcon:()=>du,MicroscopeIcon:()=>dp,visitTypesUrl:()=>io,scheduleRecomputation:()=>sc,PharmacyPictogram:()=>Du,AttachmentIcon:()=>d0,MoneyIcon:()=>dh,getAttachments:()=>o3,getWorkspaceGroupStore:()=>D4,PageHeaderContent:()=>xk,MedicationIcon:()=>dd,PrinterIcon:()=>dE,PatientListsPictogram:()=>Dv,useAppContext:()=>l3,isOpenmrsRoutes:()=>oI,AppointmentsAltPictogram:()=>xQ,GenericOrderTypeIcon:()=>c5,batchExtensionUpdates:()=>sl,useExtensionSlotStore:()=>lg,ViewIcon:()=>dJ,formattedName:()=>xN,sessionEndpoint:()=>aJ,duration:()=>wd,resetImportMapOverrides:()=>oC,TableOfContentsIcon:()=>dL,CaretLeftIcon:()=>cM,getTranslationOverrides:()=>t6,isVersionSatisfied:()=>E8,EmptyCardIllustration:()=>wJ,PenIcon:()=>dD,getWorkspaceStore:()=>DZ,validators:()=>nx,setupImportMapOverrides:()=>oR,showToast:()=>D$,useDefineAppContext:()=>l0,getGlobalStore:()=>V,useOnClickOutside:()=>uA,getWindowByWorkspaceName:()=>sQ,ArrowRightIcon:()=>cP,loadLifeCycles:()=>u2,registerBreadcrumbs:()=>nS,MotherIcon:()=>dg,fetchCurrentPatient:()=>o8,Toast:()=>DP,MessageQueueIcon:()=>dm,TwoFactorAuthenticationIcon:()=>dz,Pharmacy2Pictogram:()=>Dc,goBackInHistory:()=>aH,GroupAccessIcon:()=>c8,getExtensionRenderingsStore:()=>i9,setImplementerToolsConfigRecomputer:()=>tL,getAsyncExtensionLifecycle:()=>lG,setupApiModule:()=>ol,renderLoadingSpinner:()=>EY,WorkspaceContainer:()=>Eg,showNotification:()=>xy,getModalRegistration:()=>sH,ListCheckedIcon:()=>ds,ResponsiveWrapper:()=>Dx,GynaecologyPictogram:()=>De,ShoppingCartIcon:()=>dM,getRouteMapNextPageMap:()=>oY,MetadataExportPictogram:()=>Da,updateVisit:()=>ih,backendDependencies:()=>os,MaybePictogram:()=>Db,createParcelMounter:()=>le,openmrsFetch:()=>aQ,useStore:()=>ld,isOpenmrsAppRoutes:()=>oj,HomePictogram:()=>Dy,DentistryPictogram:()=>x6,ServiceQueuesPictogram:()=>Dm,toLanguageTag:()=>bb,launchWorkspace:()=>DI,setFeatureFlag:()=>i4,DigitalTrustPictogram:()=>x5,NumericObservation:()=>xE,attachmentUrl:()=>o4,interpolateString:()=>aL,inRange:()=>ny,useExtensionSlotMeta:()=>ud,AppointmentsPictogram:()=>xX,renderSnackbars:()=>Dk,getRegisteredWorkspace2Names:()=>EO,toLocationObject:()=>it,ChartLineIcon:()=>cL,UserHasAccess:()=>uz,evaluateAsBooleanAsync:()=>ik,changeWorkspaceContext:()=>Dz,createDashboard:()=>d9,getLocations:()=>ir,useExtensionContext:()=>uu,canCloseWorkspaceWithoutPrompting:()=>DM,getExtensionsConfigStore:()=>tR,getRouteMapDefaultMap:()=>oZ,age:()=>xM,isOmrsDateStrict:()=>b0,registerWorkspaceGroups2:()=>s4,usePaginationInfo:()=>uF,evaluateAsync:()=>i_,useOpenmrsFetchAll:()=>u_,removeImportMapOverride:()=>ok,showWorkspacePrompts:()=>DQ,useVisitTypes:()=>u1,ageAsDuration:()=>x$,getExtensionNameFromId:()=>sC,renderParcel:()=>s7,useWorkspace2Context:()=>EN,ResetIcon:()=>dT,RenewIcon:()=>dC,subscribeActionableNotificationShown:()=>D,ErrorCard:()=>w0,GenderFemaleIcon:()=>c4,enableImportMapOverride:()=>oP,retry:()=>E7,ComponentContext:()=>lo,ExtensionSlot:()=>lx,unsetLeftNav:()=>sV,addImportMapOverride:()=>oS,MaybeIcon:()=>d3,useCustomOverflowMenu:()=>cb,PedestrianFamilyIcon:()=>dx,cancelPrompt:()=>DU,CtScanPictogram:()=>x3,dispatchNotificationShown:()=>y,leftNavStore:()=>sF,OpenmrsFetchError:()=>a0,UserFollowIcon:()=>dG,launchWorkspaceGroup2:()=>E_,ChevronRightIcon:()=>cH,UserXrayIcon:()=>dZ,GenderOtherIcon:()=>c3,formatDuration:()=>wi,toOmrsIsoString:()=>b2,Labs2Pictogram:()=>Dr,workspace2Store:()=>sX,setUserLanguage:()=>a9,useBodyScrollLock:()=>l7,getExtensionConfig:()=>tN,SyringeIcon:()=>dI,LocationPicker:()=>w4,useDebounce:()=>ua,TimeIcon:()=>dB,getExtensionSlotConfig:()=>tP,AddIcon:()=>cS,getRouteMapOverrideMap:()=>oq,processConfig:()=>t5,InventoryManagementIcon:()=>da,registerWorkspaces2:()=>s3,UserIcon:()=>dY,formatPatientName:()=>xR,fireOpenmrsEvent:()=>o7,registerModal:()=>sW,registerTranslationNamespace:()=>t0,displayName:()=>xT,evaluate:()=>iE,defineExtensionConfigSchema:()=>t1,renderWorkspaceWindowsAndMenu:()=>E1,getSyncLifecycle:()=>lK,evaluateAsTypeAsync:()=>iR});let p="openmrs:notification-shown",f="openmrs:actionable-notification-shown",h="openmrs:toast-shown",g="openmrs:snack-bar-shown";function y(e){window.dispatchEvent(new CustomEvent(p,{detail:e}))}function v(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function b(e){window.dispatchEvent(new CustomEvent(g,{detail:e}))}function w(e){window.dispatchEvent(new CustomEvent(h,{detail:e}))}function x(e){let t=t=>e(t.detail);return window.addEventListener(p,t),()=>window.removeEventListener(p,t)}function D(e){let t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function E(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,t){return e instanceof Error?e.message||t:"string"==typeof e&&e.trim().length>0?e:t}function k(e){let t=P(e);setTimeout(()=>{throw t})}function C(){let e=Error();return t=>{let n=P(t);n.stack+=`
|
|
2
2
|
Async stacktrace:
|
|
3
3
|
${e.stack}`,k(t)}}function P(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 R(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),w({description:S(a??e,"Oops! An unexpected error occurred."),kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),w({description:S(e.reason,"Oops! An unhandled promise rejection occurred."),kind:"error",title:"Error"})};let N=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>N(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>N(t)(e)}}},O=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},$=e=>e?O(e):O;function M(){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 A={},j=Symbol.for("openmrs.esm-state.instanceCount"),I=globalThis,L=(I[j]??0)+1;function F(e,t,n="none"){let r=A[e];if(r)return r.active?M()||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=W(e,t,n);return A[e]={value:r,active:!0},r}}function B(e,t){let n=A[e];return n?(n.active?M()||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):(A[e]={value:t,active:!0},t)}function V(e,t,n="none"){let r=A[e];if(!r){let r=W(e,t??{},n);return A[e]={value:r,active:!1},r}return r.value}function U(...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 W(e,t,n){return"sessionStorage"===n?$()(((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=N(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 N(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:R(()=>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 N(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:R(()=>sessionStorage)})):$()(()=>t)}I[j]=L,L>1&&!M()&&console.error(`Detected ${L} 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=A)},1e3);let H=function(e){return void 0===e};var z,K,G,Z,Y,q,J,X,Q,ee,et,en,er,ea=n(7361),eo=n(4878),ei=n(7313),es=Object.prototype,el=Function.prototype.toString,eu=es.hasOwnProperty,ec=el.call(Object);let ed=function(e){if(!(0,ei.A)(e)||"[object Object]"!=(0,ea.A)(e))return!1;var t=(0,eo.A)(e);if(null===t)return!0;var n=eu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&el.call(n)==ec};var em=n(1050),ep=n(9271),ef=n(6979);let eh=function(e,t,n){(void 0===n||(0,ef.A)(e[t],n))&&(void 0!==n||t in e)||(0,ep.A)(e,t,n)},eg=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 ey=n(521),ev=n(5246),eb=n(84),ew=n(2458),ex=n(6770),eD=n(6956),eE=n(1475),e_=n(1917),eS=n(405),ek=n(7942),eC=n(480);let eP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var eT=n(8078),eR=n(3513);let eN=function(e,t,n,r,a,o,i){var s=eP(e,n),l=eP(t,n),u=i.get(l);if(u)return void eh(e,n,u);var c=o?o(s,l,n+"",e,t,i):void 0,d=void 0===c;if(d){var m=(0,eD.A)(l),p=!m&&(0,e_.A)(l),f=!m&&!p&&(0,eC.A)(l);(c=l,m||p||f)?(0,eD.A)(s)?c=s:(0,ei.A)(s)&&(0,eE.A)(s)?c=(0,eb.A)(s):p?(d=!1,c=(0,ey.A)(l,!0)):f?(d=!1,c=(0,ev.A)(l,!0)):c=[]:ed(l)||(0,ex.A)(l)?(c=s,(0,ex.A)(s))?c=(0,eT.A)(s,(0,eR.A)(s)):(!(0,ek.A)(s)||(0,eS.A)(s))&&(c=(0,ew.A)(l)):d=!1}d&&(i.set(l,c),a(c,l,r,o,i),i.delete(l)),eh(e,n,c)},eO=function e(t,n,r,a,o){t!==n&&eg(n,function(i,s){if(o||(o=new em.A),(0,ek.A)(i))eN(t,n,s,r,e,a,o);else{var l=a?a(eP(t,s),i,s+"",t,n,o):void 0;void 0===l&&(l=i),eh(t,s,l)}},eR.A)},e$=function(e){return e},eM=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 eA=Math.max;let ej=function(e,t,n){return t=eA(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=eA(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),eM(e,this,s)}};var eI=n(1758),eL=eI.A?function(e,t){return(0,eI.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:e$,eF=Date.now,eB=(z=0,K=0,function(){var e=eF(),t=16-(e-K);if(K=e,t>0){if(++z>=800)return arguments[0]}else z=0;return eL.apply(void 0,arguments)}),eV=n(5378);let eU=function(e,t,n){if(!(0,ek.A)(n))return!1;var r=typeof t;return("number"==r?!!((0,eE.A)(n)&&(0,eV.A)(t,n.length)):"string"==r&&t in n)&&(0,ef.A)(n[t],e)},eW=function(e){var t;return eB(ej(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&&eU(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,e$),t+"")};var eH=eW(function(e,t,n,r){eO(e,t,n,r)}),ez=n(7685);let eK=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};var eG=n(1736),eZ=n(4089),eY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eq=/^\w*$/;let eJ=function(e,t){if((0,eD.A)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,eZ.A)(e))||eq.test(e)||!eY.test(e)||null!=t&&e in Object(t)};var eX=n(257);function eQ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(eQ.Cache||eX.A),n}eQ.Cache=eX.A;var e0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,e1=/\\(\\)?/g,e4=(Z=(G=eQ(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(e0,function(e,n,r,a){t.push(r?a.replace(e1,"$1"):n||e)}),t},function(e){return 500===Z.size&&Z.clear(),e})).cache,G),e2=n(3516),e3=1/0,e6=e2.A?e2.A.prototype:void 0,e5=e6?e6.toString:void 0;let e9=function e(t){if("string"==typeof t)return t;if((0,eD.A)(t))return eK(t,e)+"";if((0,eZ.A)(t))return e5?e5.call(t):"";var n=t+"";return"0"==n&&1/t==-e3?"-0":n},e8=function(e){return null==e?"":e9(e)},e7=function(e,t){return(0,eD.A)(e)?e:eJ(e,t)?[e]:e4(e8(e))},te=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var tt=1/0;let tn=function(e){if("string"==typeof e||(0,eZ.A)(e))return e;var t=e+"";return"0"==t&&1/e==-tt?"-0":t},tr=function(e,t){t=e7(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[tn(t[n++])];return n&&n==r?e:void 0},ta=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o};var to=Object.prototype.hasOwnProperty;let ti=function(e,t){t=e7(t,e);var n,r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var o=tn(t[r]);if("__proto__"===o&&!to.call(e,"__proto__")||("constructor"===o||"prototype"===o)&&r<a-1)return!1}var i=(n=t).length<2?e:tr(e,ta(n,0,-1));return null==i||delete i[tn(te(t))]},ts=function(e){return ed(e)?void 0:e};var tl=n(3271),tu=e2.A?e2.A.isConcatSpreadable:void 0;let tc=function(e){return(0,eD.A)(e)||(0,ex.A)(e)||!!(tu&&e&&e[tu])},td=function e(t,n,r,a,o){var i=-1,s=t.length;for(r||(r=tc),o||(o=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,a,o):(0,tl.A)(o,l):a||(o[o.length]=l)}return o};var tm=n(7096),tp=eB(ej(Y=function(e,t){var n={};if(null==e)return n;var r=!1;t=eK(t,function(t){return t=e7(t,e),r||(r=t.length>1),t}),(0,eT.A)(e,(0,tm.A)(e),n),r&&(n=(0,eG.A)(n,7,ts));for(var a=t.length;a--;)ti(n,t[a]);return n},void 0,function(e){return(null==e?0:e.length)?td(e,1):[]}),Y+""),tf=n(3322),th=((q={}).Array="Array",q.Boolean="Boolean",q.ConceptUuid="ConceptUuid",q.Number="Number",q.Object="Object",q.String="String",q.UUID="UUID",q.PersonAttributeTypeUuid="PersonAttributeTypeUuid",q.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",q);function tg(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}let ty=tg(e=>Array.isArray(e),"must be an array"),tv=tg(e=>"boolean"==typeof e,"must be a boolean"),tb=tg(e=>"number"==typeof e,"must be a number"),tw=tg(e=>"string"==typeof e,"must be a string"),tx=tg(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),tD=tg(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"),tE=F("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),t_=F("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});t_.subscribe(e=>{var t=e.config;try{localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}catch(e){}});let tS=F("config-store-of-extension-state",{mountedExtensions:[]});function tk(e){return V(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function tC(){return V("config-extension-slots",{slots:{}})}function tP(e){return tT(tC().getState(),e)}function tT(e,t){return e.slots[t]??{loaded:!1,config:{}}}function tR(){return V("config-extensions",{configs:{}})}function tN(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=tR(),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 tO(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function t$(e,t,n){return e.configure?.[n]??null}let tM=$()(()=>({config:{}})),tA=0,tj=!0,tI=!1;function tL(e){r=e}function tF(){tj=!0,tA>0&&tB()}function tB(){if(tj&&r&&!tI){tI=!0,tj=!1;try{r()}catch(e){tj=!0,tV(e),console.error("Failed to derive the implementer tools config",e)}finally{tI=!1}}}function tV(e){tM.setState({derivationError:e instanceof Error?e.message:String(e)})}function tU(){tM.getState().derivationError&&tM.setState({derivationError:void 0})}let tW=B("config-implementer-tools",{...tM,getState:()=>(0===tA&&tB(),tM.getState()),setState:(...e)=>(tj=!1,tM.setState(...e)),subscribe(e){tA++,tB();let t=tM.subscribe(e),n=!1;return()=>{!n&&(n=!0,tA--),t()}}});function tH(e,t){if(Array.isArray(t))return t}function tz(e,t){return eH({},e,t,tH)}let tK=[];function tG(){let e=tE.getState(),t=t_.getState(),n=tS.getState();!function(e,t){for(let n of Object.keys(e.schemas)){let r,a=tk(n),o=e.schemas[n],i=!!e.moduleLoaded[n],s=tq.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=nn(e,ne(t,n));na(r,a,e);let o=nl(r,a);return no(r,o,e),delete o.extensionSlots,o}(n,e,t):function(e,t,n){let r=nl(ng,nn(e,ne(t,n)));return no(ng,r,e),delete r.extensionSlots,r}(n,e,t);r={translationOverridesLoaded:!0,loaded:i,config:a},tq.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&&(0,ez.A)(l.config,r.config)||a.setState(r)}}(e,t);let r=function(e,t){let n=nr(ne(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&&nm(r,a+`' contains invalid keys '${o.join("', '")}'`),!e.add||Array.isArray(e.add)&&e.add.every(e=>"string"==typeof e)||nm(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)||nm(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)||nm(r,a+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!nc(e.configure)&&nm(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=tC(),n=t.getState().slots,r={},a=!1;for(let[t,o]of Object.entries(e)){let e=n[t];e?.loaded&&(0,ez.A)(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),function(e,t,n,r){let a=tR(),o=a.getState().configs,i={},s=!1,l=0;for(let a of t.mountedExtensions){let t=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=t9.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=ne(a,o),p=i?.configure?.[r]??{},f=nn(e,m),h=f?.extensionSlots?.[n]?.configure?.[r]??{},g=nr([nn(d,m),p,h]),y=l??a.schemas[t];na(y,g,d);let v=nl(y,g);return no(y,v,d),delete v.extensionSlots,t9.set(u,{extensionSchema:l,extensionModuleSchema:a.schemas[t],providedConfigs:a.providedConfigs,temporaryConfig:o.config,config:v}),v}(a.slotModuleName,a.extensionModuleName,a.slotName,a.extensionId,e,n,r[a.slotName]),u=o[a.slotName]?.[a.extensionId],c=u?.loaded&&(0,ez.A)(u.config,t)?u:{config:t,loaded:!0};c!==u&&(s=!0),i[a.slotName]||(i[a.slotName]={}),i[a.slotName][a.extensionId]=c,l++}for(let[e,t]of Object.entries(i)){let n=o[e];n&&Object.keys(n).length===Object.keys(t).length&&Object.entries(t).every(([e,t])=>n[e]===t)&&(i[e]=n)}s||(s=Object.keys(o).length!==Object.keys(i).length||Object.values(o).reduce((e,t)=>e+Object.keys(t).length,0)!==l),s&&a.setState({configs:i})}(e,n,t,r),tF()}function tZ(){r=()=>{var e,t;let n,r;return e=tE.getState(),t=t_.getState(),n=tW.getState(),r={config:function(e,t){let n=function(e){let t={};for(let[n,r]of Object.entries(e)){let e=t7.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"}:nc(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}((0,tf.A)(r));t7.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=t8.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=tz(l,function e(t,n){return nc(t)?Object.keys(t).reduce((r,a)=>(r[a]=e(t[a],n),r),{}):{_value:t,_source:n}}(n,e)))}),t8.set(e,{annotatedSchema:t,configSlices:a,sources:i,result:l}),o[e]=l}return o}(e,t)},void((0,ez.A)(n.config,r.config)||tW.setState(r))},tG(),tK.push(tE.subscribe(tY),t_.subscribe(tY),tS.subscribe(tY))}function tY(){tU();try{tG()}catch(e){tV(e),console.error("Failed to recompute the configuration",e)}}tZ();let tq=new Map;function tJ(e,t){nt(e,t);let n=tz(t,ng);tE.setState(t=>({...t,schemas:{...t.schemas,[e]:n},moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function tX(e){tE.setState(t=>({...t,schemas:{...t.schemas,[e]:ng}}))}function tQ(e){tE.setState(t=>({...t,moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function t0(e){tE.setState(t=>({...t,schemas:{...t.schemas,[e]:nh}}))}function t1(e,t){nt(e,t);let n=tz(t,ng);tE.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.`),tE.setState(t=>({...t,schemas:{...t.schemas,[e]:n}}))}function t4(e,t="provided"){tE.setState(n=>({...n,providedConfigs:[...n.providedConfigs,{source:t,config:e}]}))}function t2(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 t3(e){return t2(tk(e),e=>!!(e.loaded&&e.config),e=>tp(e.config,["Display conditions","Translation overrides"]))}function t6(e,t,n){let r=[t2(tk(e),e=>!!(e.translationOverridesLoaded&&e.config),e=>e.config["Translation overrides"]??{})];return t&&n&&r.push(t2(tN(t,n),e=>!!(e.loaded&&e.config),e=>e.config["Translation overrides"]??{})),Promise.all(r)}function t5(e,t,n){na(e,t,n);let r=nl(e,t);return no(e,r,n),r}let t9=new Map,t8=new Map,t7=new Map;function ne(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function nt(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}`),!nc(i)){console.error(`${e} has bad config schema definition for key '${o}'. ${r}`);continue}i.hasOwnProperty("_default")||nt(e,i,o);let s=i._elements;if(nu(s)&&nt(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
|
|
|
@@ -29,15 +29,15 @@ To fix this, ensure that you define the "description" field inside the feature f
|
|
|
29
29
|
To fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.
|
|
30
30
|
To fix this, ensure that you define the "name" field inside the feature flag definition.`,t);else console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)})}})(e,t))}function u7(){u9.sort((e,t)=>e.appName.localeCompare(t.appName,"en"));let e=new Map;for(let t of u9){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);let n=e.get(t.appName),r=`${t.appName}-page-${n}`,a=t.containerDomId??"omrs-apps-container",o=document.getElementById(a),i=`single-spa-application:${r}`;if(o){let e=document.createElement("div");e.id=i,o?.appendChild(e)}else throw Error(`${t.appName} ${t.component} cannot be mounted to "${a}"; DOM element does not exist.`);!function(e,t){let n=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);!1===n?console.warn(`A registered page definition is missing a route and thus cannot be registered.
|
|
31
31
|
To fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.`,e):t.component?rB(e,()=>u2(t.appName,t.component),function(e,{featureFlag:t}){return t?n=>!!i0(t)&&e(n):e}(function e(t){if(Array.isArray(t)){let n=t.map(e);return e=>n.some(t=>t(e))}return"string"==typeof t?rK(window.getOpenmrsSpaBase()+t):t instanceof RegExp?e=>t.test(e.pathname.replace(window.getOpenmrsSpaBase(),"")):()=>t}(n),t)):console.warn(`A registered page definition is missing a component and thus cannot be registered.
|
|
32
|
-
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,t)}}let ce={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function ct(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<ce.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>ce.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>ce.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<ce.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<ce.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<ce.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>ce.SMALL_DESKTOP_MAX)}let cn=!1;function cr(){cn||(window.addEventListener("resize",ct),ct(),cn=!0)}var ca=n(1085),co=n(3373),ci=n.n(co);function cs({title:e,children:t}){let n="tablet"===uT();return(0,ca.jsxs)("div",{className:ci()({"-esm-form-engine__card-header-module__tabletHeader___xhRSy":n,"-esm-form-engine__card-header-module__desktopHeader___aPTXc":!n}),children:[(0,ca.jsx)("h4",{children:e}),t]})}let cl=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],cu={primaryColor:{_type:th.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[nx.oneOf(cl)]},secondaryColor:{_type:th.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[nx.oneOf(cl)]}},cc={"Brand color #1":{_default:"#005d5d",_type:th.String},"Brand color #2":{_default:"#004144",_type:th.String},"Brand color #3":{_default:"#007d79",_type:th.String},excludePatientIdentifierCodeTypes:{uuids:{_type:th.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:th.UUID}}},implementationName:{_type:th.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:th.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:th.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[nx.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:th.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Does not affect time formatting. Keys should be locale codes, and values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:th.String}},diagnosisTags:cu};var cd=n(324);let cm={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},cp=e=>(0,ca.jsx)(cd.TableBatchActions,{translateWithId:(e,t)=>{let n=cm[e];return n?aj(n,e,t):e},...e}),cf="-esm-form-engine__custom-overflow-menu-module__container___QIBvW",ch="-esm-form-engine__custom-overflow-menu-module__menu___ZppPo",cg="-esm-form-engine__custom-overflow-menu-module__show___8rVUu",cy="-esm-form-engine__custom-overflow-menu-module__overflowMenuButton___0VKUu",cv=(0,lr.createContext)(null);function cb(){let e=(0,lr.useContext)(cv);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function cw({menuTitle:e,children:t}){let[n,r]=la().useState(!1),a=uA(()=>r(!1),n),o="tablet"===uT(),i=(0,lr.useCallback)(()=>r(e=>!e),[]),s=(0,lr.useRef)(null),l=(0,lr.useRef)(null),u=(0,lr.useId)(),c=`custom-overflow-menu-trigger-${u}`,d=`custom-overflow-menu-${u}`,m=(0,lr.useCallback)(()=>{r(!1),s.current?.focus()},[]),p=(0,lr.useMemo)(()=>({closeMenu:m}),[m]),f=(0,lr.useCallback)(e=>{"Escape"===e.key&&n&&(e.stopPropagation(),m())},[m,n]),h=lr.Children.toArray(t);(0,lr.useEffect)(()=>{if(n&&l.current){let e=l.current.querySelector('[role="menuitem"]:not([disabled])');e?.focus()}},[n]);let g=(0,lr.useCallback)(({currentIndex:e,direction:t})=>{let n=l.current?.querySelectorAll('[role="menuitem"]:not([disabled])');if(!n?.length)return;let r=document.activeElement?.closest?.('[role="menuitem"]')??document.activeElement,a=Array.from(n).indexOf(r);if(-1===a)return void n[t>0?0:n.length-1]?.focus();let o=a+t,i=o<0?n.length-1:o>=n.length?0:o;n[i]?.focus()},[]),y=h.map((e,t)=>(0,lr.isValidElement)(e)?(0,lr.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:g,index:t}):e);return(0,ca.jsxs)("div",{"data-overflow-menu":!0,className:ci()("cds--overflow-menu",cf),ref:a,children:[(0,ca.jsx)("button",{className:ci()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":n},cy),"aria-controls":d,"aria-expanded":n,"aria-haspopup":"true",id:c,onClick:i,onKeyDown:f,ref:s,children:e}),(0,ca.jsxs)("div",{className:ci()("cds--overflow-menu-options","cds--overflow-menu--flip",ch,{[cg]:n}),"aria-labelledby":c,"data-floating-menu-direction":"bottom",id:d,onKeyDown:f,ref:l,role:"menu",tabIndex:-1,children:[(0,ca.jsx)("ul",{className:ci()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":o}),children:(0,ca.jsx)(cv.Provider,{value:p,children:y})}),(0,ca.jsx)("span",{})]})]})}function cx(e){let t=(0,lr.useContext)(cv);return(0,ca.jsx)(cd.OverflowMenuItem,{...e,closeMenu:t?.closeMenu})}var cD=n(5571);let cE=["omrs-icon-activity","omrs-icon-add","omrs-icon-arrow-down","omrs-icon-arrow-left","omrs-icon-arrow-right","omrs-icon-arrow-up","omrs-icon-baby","omrs-icon-calendar-heat-map","omrs-icon-calendar","omrs-icon-caret-down","omrs-icon-caret-left","omrs-icon-caret-right","omrs-icon-caret-up","omrs-icon-chart-average","omrs-icon-chart-line","omrs-icon-checkmark-filled","omrs-icon-checkmark-outline","omrs-icon-chemistry","omrs-icon-chevron-down","omrs-icon-chevron-left","omrs-icon-chevron-right","omrs-icon-chevron-up","omrs-icon-close","omrs-icon-close-filled","omrs-icon-close-outline","omrs-icon-document","omrs-icon-document-attachment","omrs-icon-download","omrs-icon-drug-order","omrs-icon-edit","omrs-icon-event-schedule","omrs-icon-events","omrs-icon-gender-female","omrs-icon-gender-male","omrs-icon-gender-other","omrs-icon-gender-unknown","omrs-icon-generic-order-type","omrs-icon-group","omrs-icon-group-access","omrs-icon-hospital-bed","omrs-icon-image-medical","omrs-icon-information","omrs-icon-information-filled","omrs-icon-information-square","omrs-icon-inventory-management","omrs-icon-lab-order","omrs-icon-list-checked","omrs-icon-location","omrs-icon-material-order","omrs-icon-maximize","omrs-icon-medication","omrs-icon-message-queue","omrs-icon-microscope","omrs-icon-mobile-check","omrs-icon-money","omrs-icon-mother","omrs-icon-movement","omrs-icon-overflow-menu--horizontal","omrs-icon-overflow-menu--vertical","omrs-icon-password","omrs-icon-pedestrian-family","omrs-icon-pen","omrs-icon-printer","omrs-icon-procedure-order","omrs-icon-programs","omrs-icon-renew","omrs-icon-referral-order","omrs-icon-report","omrs-icon-reset","omrs-icon-save","omrs-icon-search","omrs-icon-settings","omrs-icon-shopping-cart","omrs-icon-shopping-cart--arrow-down","omrs-icon-sticky-note-add","omrs-icon-switcher","omrs-icon-syringe","omrs-icon-table-of-contents","omrs-icon-table","omrs-icon-time","omrs-icon-tools","omrs-icon-translate","omrs-icon-trash-can","omrs-icon-tree-view--alt","omrs-icon-two-factor-authentication","omrs-icon-user-avatar","omrs-icon-user-follow","omrs-icon-user-xray","omrs-icon-user","omrs-icon-view-off","omrs-icon-view","omrs-icon-warning"],c_=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-activity",iconProps:e})})),cS=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-add",iconProps:e})})),ck=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-down",iconProps:e})})),cC=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-left",iconProps:e})})),cP=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-right",iconProps:e})})),cT=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-up",iconProps:e})})),cR=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-baby",iconProps:e})})),cN=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-calendar-heat-map",iconProps:e})})),cO=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-calendar",iconProps:e})})),c$=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-down",iconProps:e})})),cM=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-left",iconProps:e})})),cA=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-right",iconProps:e})})),cj=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-up",iconProps:e})})),cI=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chart-average",iconProps:e})})),cL=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chart-line",iconProps:e})})),cF=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-checkmark-filled",iconProps:e})})),cB=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-checkmark-outline",iconProps:e})})),cV=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chemistry",iconProps:e})})),cU=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-down",iconProps:e})})),cW=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-left",iconProps:e})})),cH=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-right",iconProps:e})})),cz=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-up",iconProps:e})})),cK=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close",iconProps:e})})),cG=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close-filled",iconProps:e})})),cZ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close-outline",iconProps:e})})),cY=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-document",iconProps:e})})),cq=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-document-attachment",iconProps:e})})),cJ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-download",iconProps:e})})),cX=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-drug-order",iconProps:e})})),cQ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-edit",iconProps:e})})),c0=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-event-schedule",iconProps:e})})),c1=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-events",iconProps:e})})),c4=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-female",iconProps:e})})),c2=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-male",iconProps:e})})),c3=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-other",iconProps:e})})),c6=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-unknown",iconProps:e})})),c5=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-generic-order-type",iconProps:e})})),c9=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-group",iconProps:e})})),c8=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-group-access",iconProps:e})})),c7=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-hospital-bed",iconProps:e})})),de=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-image-medical",iconProps:e})})),dt=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information",iconProps:e})})),dn=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information-filled",iconProps:e})})),dr=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information-square",iconProps:e})})),da=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-inventory-management",iconProps:e})})),di=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-lab-order",iconProps:e})})),ds=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-list-checked",iconProps:e})})),dl=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-location",iconProps:e})})),du=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-material-order",iconProps:e})})),dc=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-maximize",iconProps:e})})),dd=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-medication",iconProps:e})})),dm=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-message-queue",iconProps:e})})),dp=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-microscope",iconProps:e})})),df=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-mobile-check",iconProps:e})})),dh=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-money",iconProps:e})})),dg=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-mother",iconProps:e})})),dy=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-movement",iconProps:e})})),dv=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),db=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),dw=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-password",iconProps:e})})),dx=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-pedestrian-family",iconProps:e})})),dD=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-pen",iconProps:e})})),dE=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-printer",iconProps:e})})),d_=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-procedure-order",iconProps:e})})),dS=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-programs",iconProps:e})})),dk=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-referral-order",iconProps:e})})),dC=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-renew",iconProps:e})})),dP=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-report",iconProps:e})})),dT=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-reset",iconProps:e})})),dR=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-save",iconProps:e})})),dN=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-search",iconProps:e})})),dO=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-settings",iconProps:e})})),d$=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-switcher",iconProps:e})})),dM=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-shopping-cart",iconProps:e})})),dA=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-shopping-cart--arrow-down",iconProps:e})})),dj=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-sticky-note-add",iconProps:e})})),dI=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-syringe",iconProps:e})})),dL=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-table-of-contents",iconProps:e})})),dF=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-table",iconProps:e})})),dB=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-time",iconProps:e})})),dV=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-tools",iconProps:e})})),dU=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-translate",iconProps:e})})),dW=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-trash-can",iconProps:e})})),dH=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-tree-view--alt",iconProps:e})})),dz=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-two-factor-authentication",iconProps:e})})),dK=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-avatar",iconProps:e})})),dG=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-follow",iconProps:e})})),dZ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-xray",iconProps:e})})),dY=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user",iconProps:e})})),dq=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-view-off",iconProps:e})})),dJ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-view",iconProps:e})})),dX=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-warning",iconProps:e})})),dQ=dX,d0=cq,d1=ds,d4=de,d2=dA,d3=(0,lr.memo)((0,lr.forwardRef)(function({icon:e,fallback:t,...n},r){let a=(0,lr.useRef)(e?document.getElementById(e):void 0);return(0,lr.useEffect)(()=>{let t=document.getElementById("omrs-svgs-container"),n=new MutationObserver(t=>{for(let n of t)"childList"===n.type&&(a.current=e?document.getElementById(e):void 0)});return t&&n.observe(t,{childList:!0}),()=>n.disconnect()},[e]),(0,ca.jsx)(l4,{value:a.current,fallback:t,children:(0,ca.jsx)(d6,{ref:r,icon:e,iconProps:n})})})),d6=(0,lr.memo)((0,lr.forwardRef)(function({icon:e,iconProps:t},n){let{className:r,fill:a,size:o}=Object.assign({},{fill:"currentColor",size:20},t);(o<=0||o>72)&&(console.error(`Invalid size '${o}' specified for ${e}. Defaulting to 20.`),o=20);let i=(0,lr.useRef)(null);return(0,lr.useImperativeHandle)(n,()=>i.current),(0,lr.useEffect)(()=>{i.current&&"currentColor"!==a&&i.current.style.setProperty("--omrs-icon-fill",a)},[]),(0,ca.jsx)("svg",{ref:i,className:ci()("omrs-icon","-esm-form-engine__icons-module__icon___uq4qr",r),height:o,width:o,viewBox:"0 0 16 16",children:(0,ca.jsx)("use",{href:`#${e}`})})})),d5=({path:e,title:t,basePath:n,icon:r})=>{let{t:a}=(0,lj.useTranslation)(),o=(0,cD.useLocation)(),i=(0,lr.useMemo)(()=>{if(!e)return!1;let t=e.startsWith("/")?e.slice(1):e;if(t.startsWith("http"))return t===window.location.href;let n=t.split("/").map(e=>decodeURIComponent(e)),r=(o.pathname??"").split("/").slice(1).map(e=>decodeURIComponent(e));return r.some((e,t)=>n.every((e,n)=>r[t+n]===e))},[o.pathname,e]);return(0,ca.jsx)("div",{children:(0,ca.jsx)(li,{className:ci()("cds--side-nav__link",{"active-left-nav-link":i}),to:`${n}/${encodeURIComponent(e)}`,children:(0,ca.jsxs)("span",{className:"-esm-form-engine__dashboard-module__menu___WbY42",children:[(0,ca.jsx)(d3,{icon:r,className:"-esm-form-engine__dashboard-module__icon___L-hKL",size:16}),(0,ca.jsx)("span",{children:a(t)})]})})},e)};function d9(e){return function({basePath:t}){return(0,ca.jsx)(cD.BrowserRouter,{children:(0,ca.jsx)(d5,{basePath:t,...e})})}}function d8(e){let t=(0,lr.useRef)(null),n=(0,lr.useRef)(void 0),r=(0,lr.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,lr.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}function d7(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=me(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():me(e[n],null)})}}}function me(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function mt(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let mn="u">typeof document?la().useLayoutEffect:()=>{},mr={prefix:String(Math.round(1e10*Math.random())),current:0},ma=la().createContext(mr),mo=la().createContext(!1),mi=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),ms="function"==typeof la().useId?function(e){let t=la().useId(),[n]=(0,lr.useState)(md()),r=n?"react-aria":`react-aria${mr.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,lr.useContext)(ma),n=function(e=!1){let t=(0,lr.useContext)(ma),n=(0,lr.useRef)(null);if(null===n.current&&!e){let e=la().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=mi.get(e);null==n?mi.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,mi.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function ml(){return!1}function mu(){return!0}function mc(e){return()=>{}}function md(){return"function"==typeof la().useSyncExternalStore?la().useSyncExternalStore(mc,ml,mu):(0,lr.useContext)(mo)}let mm=!!("u">typeof window&&window.document&&window.document.createElement),mp=new Map;function mf(e){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(null),a=ms(t),o=(0,lr.useRef)(null);if(i&&i.register(o,a),mm){let e=mp.get(a);e&&!e.includes(r)?e.push(r):mp.set(a,[r])}return mn(()=>()=>{i&&i.unregister(o),mp.delete(a)},[a]),(0,lr.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),a}function mh(e=[]){let t=mf(),[n,r]=function(e){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(t),a=(0,lr.useRef)(null),o=(0,lr.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}r.current===e.value?o.current():n(e.value)});return mn(()=>{r.current=t,a.current&&o.current()}),[t,(0,lr.useCallback)(e=>{a.current=e(r.current),o.current()},[o])]}(t),a=(0,lr.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return mn(a,[t,a,...e]),n}"u">typeof FinalizationRegistry&&(i=new FinalizationRegistry(e=>{mp.delete(e)}));let mg=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r};function my(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],a=r[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=mt(n,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof a?t[e]=mg(n,a):"id"===e&&n&&a?t.id=function(e,t){if(e===t)return e;let n=mp.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=mp.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,a):"ref"===e&&n&&a?t.ref=d7(n,a):t[e]=void 0!==a?a:n}}return t}let mv=Symbol("default");function mb({values:e,children:t}){for(let[n,r]of e)t=la().createElement(n.Provider,{value:r},t);return t}function mw(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:i,values:s}=e;return(0,lr.useMemo)(()=>{let e,l,u;return e="function"==typeof t?t({...s,defaultClassName:a}):t,l="function"==typeof n?n({...s,defaultStyle:i||{}}):n,u="function"==typeof r?r({...s,defaultChildren:o}):null==r?o:r,{className:null!=e?e:a,style:l||i?{...i,...l}:void 0,children:null!=u?u:o,"data-rac":""}},[t,n,r,a,o,i,s])}function mx(e,t){let n=(0,lr.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||mv;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function mD(e,t,n){let{ref:r,...a}=mx(n,e.slot)||{},o=d8((0,lr.useMemo)(()=>d7(t,r),[t,r])),i=my(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?i.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:i.style={...a.style,...e.style}),[i,o]}function mE(e=!0){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(!1),a=(0,lr.useCallback)(e=>{r.current=!0,n(!!e)},[]);return mn(()=>{r.current||n(!1)},[]),[a,t]}function m_(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}let mS=(0,lr.createContext)(null),mk=null;function mC(e,t="assertive",n=7e3){mk?mk.announce(e,t,n):(mk=new mP,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?mk.announce(e,t,n):setTimeout(()=>{(null==mk?void 0:mk.isAttached())&&(null==mk||mk.announce(e,t,n))},100))}class mP{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,a;if(!this.node)return;let o=document.createElement("div");"object"==typeof e?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,"assertive"===t?null==(r=this.assertiveLog)||r.appendChild(o):null==(a=this.politeLog)||a.appendChild(o),""!==e&&setTimeout(()=>{o.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}let mT=new Set(["id"]),mR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mN=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),mO=new Set(["dir","lang","hidden","inert","translate"]),m$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),mM=/^(data-.*)$/;function mA(e,t={}){let{labelable:n,isLink:r,global:a,events:o=a,propNames:i}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(mT.has(t)||n&&mR.has(t)||r&&mN.has(t)||a&&mO.has(t)||o&&(m$.has(t)||t.endsWith("Capture")&&m$.has(t.slice(0,-7)))||i?.has(t)||mM.test(t))&&(s[t]=e[t]);return s}function mj(e){if(function(){if(null==mI){mI=!1;try{document.createElement("div").focus({get preventScroll(){return mI=!0,!0}})}catch{}}return mI}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let mI=null,mL=e=>e?.ownerDocument??document,mF=e=>e&&"window"in e&&e.window===e?e:mL(e).defaultView||window;function mB(e,t){return!!t&&!!e&&e.contains(t)}function mV(e){return e.target}function mU(e){if(!e)return!1;let t=e.getRootNode(),n=mF(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let mW="u">typeof Element&&"checkVisibility"in Element.prototype;function mH(e,t){return mW?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=mF(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||mH(e.parentElement,e))}let mz=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],mK=mz.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";mz.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let mG=mz.join(':not([hidden]):not([tabindex="-1"]),');function mZ(e,t){return e.matches(mK)&&!mq(e)&&(t?.skipVisibilityCheck||mH(e))}function mY(e){return e.matches(mG)&&mH(e)&&!mq(e)}function mq(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function mJ(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function mX(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function mQ(e){let t=(0,lr.useRef)({isFocused:!1,observer:null});return mn(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,lr.useCallback)(n=>{let r=mV(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=mJ(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let m0=!1;function m1(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function m4(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function m2(e){let t=null;return()=>(null==t&&(t=e()),t)}let m3=m2(function(){return m4(/^Mac/i)}),m6=m2(function(){return m4(/^iPhone/i)}),m5=m2(function(){return m4(/^iPad/i)||m3()&&navigator.maxTouchPoints>1}),m9=m2(function(){return m6()||m5()});m2(function(){return m3()||m9()});let m8=m2(function(){return m1(/AppleWebKit/i)&&!m7()}),m7=m2(function(){return m1(/Chrome/i)}),pe=m2(function(){return m1(/Android/i)}),pt=m2(function(){return m1(/Firefox/i)});function pn(e){return""===e.pointerType&&!!e.isTrusted||(pe()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function pr(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}=t;pt()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(m3()?r=!0:a=!0);let s=m8()&&m3()&&!m5()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});pr.isOpening=n,mj(e),e.dispatchEvent(s),pr.isOpening=!1}pr.isOpening=!1;let pa=null,po=new Set,pi=new Map,ps=!1,pl=!1,pu={Tab:!0,Escape:!0};function pc(e,t){for(let n of po)n(e,t)}function pd(e){ps=!0,pr.isOpening||e.metaKey||!m3()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(pa="keyboard",pc("keyboard",e))}function pm(e){pa="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ps=!0,pc("pointer",e))}function pp(e){!pr.isOpening&&pn(e)&&(ps=!0,pa="virtual")}function pf(e){let t=mF(mV(e)),n=mL(mV(e));mV(e)!==t&&mV(e)!==n&&!m0&&e.isTrusted&&(ps||pl||(pa="virtual",pc("virtual",e)),ps=!1,pl=!1)}function ph(){m0||(ps=!1,pl=!0)}function pg(e){if("u"<typeof window||"u"<typeof document)return;let t=mF(e),n=mL(e);if(pi.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ps=!0,r.apply(this,arguments)},n.addEventListener("keydown",pd,!0),n.addEventListener("keyup",pd,!0),n.addEventListener("click",pp,!0),t.addEventListener("focus",pf,!0),t.addEventListener("blur",ph,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",pm,!0),n.addEventListener("pointermove",pm,!0),n.addEventListener("pointerup",pm,!0)),t.addEventListener("beforeunload",()=>{py(e)},{once:!0}),pi.set(t,{focus:r})}let py=(e,t)=>{let n=mF(e),r=mL(e);t&&r.removeEventListener("DOMContentLoaded",t),pi.has(n)&&(n.HTMLElement.prototype.focus=pi.get(n).focus,r.removeEventListener("keydown",pd,!0),r.removeEventListener("keyup",pd,!0),r.removeEventListener("click",pp,!0),n.removeEventListener("focus",pf,!0),n.removeEventListener("blur",ph,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",pm,!0),r.removeEventListener("pointermove",pm,!0),r.removeEventListener("pointerup",pm,!0)),pi.delete(n))};function pv(){return"pointer"!==pa}"u">typeof document&&("loading"!==(c=mL(void 0)).readyState?pg(void 0):c.addEventListener("DOMContentLoaded",()=>{pg(void 0)}));let pb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),pw=new Map,px=new Set;function pD(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=mV(n);if(!e(n)||!r)return;let a=pw.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),pw.delete(r)),0===pw.size)){for(let e of px)e();px.clear()}};document.body.addEventListener("transitionrun",n=>{let r=mV(n);if(!e(n)||!r)return;let a=pw.get(r);a||(a=new Set,pw.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function pE(e){requestAnimationFrame(()=>{for(let[e]of pw)"isConnected"in e&&!e.isConnected&&pw.delete(e);0===pw.size?e():px.add(e)})}function p_(e){if(!e.isConnected)return;let t=mL(e);if("virtual"===pa){let n=((e=document)=>e.activeElement)(t);pE(()=>{let r=((e=document)=>e.activeElement)(t);(r===n||r===t.body)&&e.isConnected&&mj(e)})}else mj(e)}function pS(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,o=(0,lr.useCallback)(e=>{if(mV(e)===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),i=mQ(o),s=(0,lr.useCallback)(e=>{let t=mV(e),r=mL(t),o=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(n&&n(e),a&&a(!0),i(e))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?o:void 0}}}function pk(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&n.stopPropagation()}}function pC(e,t){mn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}"u">typeof document&&("loading"!==document.readyState?pD():document.addEventListener("DOMContentLoaded",pD));let pP=la().createContext(null);function pT(e,t){let{focusProps:n}=pS(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:pk(e.onKeyDown),onKeyUp:pk(e.onKeyUp)}},a=my(n,r),o=function(e){let t=(0,lr.useContext)(pP)||{};pC(t,e);let{ref:n,...r}=t;return r}(t),i=e.isDisabled?{}:o,s=(0,lr.useRef)(e.autoFocus);(0,lr.useEffect)(()=>{s.current&&t.current&&p_(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:my({...a,tabIndex:l},i)}}la().forwardRef(function(e,t){let{children:n,...r}=e,a=d8(t),o={...r,ref:a};return la().createElement(pP.Provider,{value:o},n)});let pR="default",pN="",pO=new WeakMap;function p$(e){if(m9())"disabled"===pR&&(pR="restoring",setTimeout(()=>{pE(()=>{if("restoring"===pR){let t=mL(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=pN||""),pN="",pR="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&pO.has(e)){let t=pO.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),pO.delete(e)}}function pM(e){let t=e?.defaultView;return t?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let pA=new WeakMap;function pj(e){let t=e??("u">typeof document?document:void 0);if(!t)return pM(t);if(pA.has(t))return pA.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof mF(n).HTMLMetaElement&&(n.nonce||n.content)||pM(t)||void 0;return void 0!==r&&pA.set(t,r),r}let pI=la().createContext({register:()=>{}});pI.displayName="PressResponderContext";let pL=la().useInsertionEffect??mn;function pF(e){let t=(0,lr.useRef)(null);return pL(()=>{t.current=e},[e]),(0,lr.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function pB(){let e=(0,lr.useRef)(new Map),t=(0,lr.useCallback)((t,n,r,a)=>{let o=a?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:a}),t.addEventListener(n,o,a)},[]),n=(0,lr.useCallback)((t,n,r,a)=>{let o=e.current.get(r)?.fn||r;t.removeEventListener(n,o,a),e.current.delete(r)},[]),r=(0,lr.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,lr.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var pV=n(3144);class pU{#e;constructor(e,t,n,r){this.#e=!0;let a=r?.target??n.currentTarget;const o=a?.getBoundingClientRect();let i,s=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),o&&(null!=l&&null!=u?(i=l-o.left,s=u-o.top):(i=o.width/2,s=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=i,this.y=s,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let pW=Symbol("linkClicked"),pH="react-aria-pressable-style",pz="data-react-aria-pressable";function pK(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:o,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...p}=function(e){let t=(0,lr.useContext)(pI);if(t){let{register:n,ref:r,...a}=t;e=my(a,e),n()}return pC(t,e.ref),e}(e),[f,h]=(0,lr.useState)(!1),g=(0,lr.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:v}=pB(),b=(0,lr.useCallback)((e,t)=>{let a=g.current;if(s||a.didFirePressStart)return!1;let o=!0;if(a.isTriggeringEvent=!0,r){let n=new pU("pressstart",t,e);r(n),o=n.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),o},[s,r,n]),w=(0,lr.useCallback)((e,r,o=!0)=>{let i=g.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(a){let t=new pU("pressend",r,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&o&&!s){let n=new pU("press",r,e);t(n),l&&=n.shouldStopPropagation}return i.isTriggeringEvent=!1,l},[s,a,n,t]),x=pF(w),D=pF((0,lr.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(o){n.isTriggeringEvent=!0;let r=new pU("pressup",t,e);return o(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,o])),E=(0,lr.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&w(pY(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||p$(t.target),t.disposables))n();t.disposables=[]}},[d,v,w]),_=pF(E),S=(0,lr.useCallback)(e=>{c&&E(e)},[c,E]),k=(0,lr.useCallback)(e=>{s||i?.(e)},[s,i]),C=(0,lr.useCallback)((e,t)=>{if(!s&&i){let n=new MouseEvent("click",e);mX(n,t),i(mJ(n))}},[s,i]),P=(0,lr.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(pZ(t.nativeEvent,t.currentTarget)&&mB(t.currentTarget,mV(t))){pq(mV(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=b(t,"keyboard"));let a=t.currentTarget;y(mL(t.currentTarget),"keyup",mt(t=>{pZ(t,a)&&!t.repeat&&mB(a,mV(t))&&e.target&&D(pY(e.target,t),"keyboard")},n),!0),r&&t.stopPropagation(),t.metaKey&&m3()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||mB(t.currentTarget,mV(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!pr.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||pn(t.nativeEvent))){let e=b(t,"virtual"),r=D(t,"virtual"),a=x(t,"virtual");k(t),n=e&&r&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",a=D(pY(t.currentTarget,t),r),o=x(pY(t.currentTarget,t),r,!0);n=a&&o,e.isOverTarget=!1,k(t),_(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&pZ(t,e.target)){pq(mV(t),t.key)&&t.preventDefault();let n=mV(t),r=mB(e.target,n);x(pY(e.target,t),"keyboard",r),r&&C(t,e.target),v(),"Enter"!==t.key&&pG(e.target)&&mB(e.target,n)&&!t[pW]&&(t[pW]=!0,pr(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",n))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!mB(t.currentTarget,mV(t)))return;if(a=t.nativeEvent,!pe()&&0===a.width&&0===a.height||1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(m9()){if("default"===pR){let t=mL(e);pN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}pR="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";pO.set(e,e.style[t]),e.style[t]="none"}}(e.target),o=b(t,e.pointerType);let a=mV(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),y(mL(t.currentTarget),"pointerup",n,!1),y(mL(t.currentTarget),"pointercancel",r,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(mB(t.currentTarget,mV(t))&&0===t.button){if(u){let n=function(e){for(;e&&!mZ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=mF(e),n=t.document.activeElement;if(!n||n===e)return;m0=!0;let r=!1,a=e=>{(mV(e)===n||r)&&e.stopImmediatePropagation()},o=t=>{(mV(t)===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,mj(n),l()))},i=t=>{(mV(t)===e||r)&&t.stopImmediatePropagation()},s=t=>{(mV(t)===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,mj(n),l()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",i,!0),m0=!1,r=!1},u=requestAnimationFrame(l);return l}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{mB(t.currentTarget,mV(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||D(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,b(pY(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x(pY(e.target,t),e.pointerType,!1),S(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(mB(e.target,mV(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?_(t):(mj(e.target),e.target.click()))},80);y(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else _(t);e.isOverTarget=!1}},r=e=>{_(e)};t.onDragStart=e=>{mB(e.currentTarget,mV(e))&&_(e)}}return t},[y,s,u,v,d,S,b,k,C]);return(0,lr.useEffect)(()=>{if(!m)return;let e=mL(m.current);if(!e||!e.head||e.getElementById(pH))return;let t=e.createElement("style");t.id=pH;let n=pj(e);n&&(t.nonce=n),t.textContent=`
|
|
32
|
+
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,t)}}let ce={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function ct(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<ce.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>ce.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>ce.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<ce.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<ce.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<ce.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>ce.SMALL_DESKTOP_MAX)}let cn=!1;function cr(){cn||(window.addEventListener("resize",ct),ct(),cn=!0)}var ca=n(1085),co=n(3373),ci=n.n(co);function cs({title:e,children:t}){let n="tablet"===uT();return(0,ca.jsxs)("div",{className:ci()({"-esm-form-engine__card-header-module__tabletHeader___xhRSy":n,"-esm-form-engine__card-header-module__desktopHeader___aPTXc":!n}),children:[(0,ca.jsx)("h4",{children:e}),t]})}let cl=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],cu={primaryColor:{_type:th.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[nx.oneOf(cl)]},secondaryColor:{_type:th.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[nx.oneOf(cl)]}},cc={"Brand color #1":{_default:"#005d5d",_type:th.String},"Brand color #2":{_default:"#004144",_type:th.String},"Brand color #3":{_default:"#007d79",_type:th.String},excludePatientIdentifierCodeTypes:{uuids:{_type:th.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:th.UUID}}},implementationName:{_type:th.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:th.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:th.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[nx.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:th.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Does not affect time formatting. Keys should be locale codes, and values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:th.String}},diagnosisTags:cu};var cd=n(324);let cm={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},cp=e=>(0,ca.jsx)(cd.TableBatchActions,{translateWithId:(e,t)=>{let n=cm[e];return n?aj(n,e,t):e},...e}),cf="-esm-form-engine__custom-overflow-menu-module__container___QIBvW",ch="-esm-form-engine__custom-overflow-menu-module__menu___ZppPo",cg="-esm-form-engine__custom-overflow-menu-module__show___8rVUu",cy="-esm-form-engine__custom-overflow-menu-module__overflowMenuButton___0VKUu",cv=(0,lr.createContext)(null);function cb(){let e=(0,lr.useContext)(cv);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function cw({menuTitle:e,children:t}){let[n,r]=la().useState(!1),a=uA(()=>r(!1),n),o="tablet"===uT(),i=(0,lr.useCallback)(()=>r(e=>!e),[]),s=(0,lr.useRef)(null),l=(0,lr.useRef)(null),u=(0,lr.useId)(),c=`custom-overflow-menu-trigger-${u}`,d=`custom-overflow-menu-${u}`,m=(0,lr.useCallback)(()=>{r(!1),s.current?.focus()},[]),p=(0,lr.useMemo)(()=>({closeMenu:m}),[m]),f=(0,lr.useCallback)(e=>{"Escape"===e.key&&n&&(e.stopPropagation(),m())},[m,n]),h=lr.Children.toArray(t);(0,lr.useEffect)(()=>{if(n&&l.current){let e=l.current.querySelector('[role="menuitem"]:not([disabled])');e?.focus()}},[n]);let g=(0,lr.useCallback)(({currentIndex:e,direction:t})=>{let n=l.current?.querySelectorAll('[role="menuitem"]:not([disabled])');if(!n?.length)return;let r=document.activeElement?.closest?.('[role="menuitem"]')??document.activeElement,a=Array.from(n).indexOf(r);if(-1===a)return void n[t>0?0:n.length-1]?.focus();let o=a+t,i=o<0?n.length-1:o>=n.length?0:o;n[i]?.focus()},[]),y=h.map((e,t)=>(0,lr.isValidElement)(e)?(0,lr.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:g,index:t}):e);return(0,ca.jsxs)("div",{"data-overflow-menu":!0,className:ci()("cds--overflow-menu",cf),ref:a,children:[(0,ca.jsx)("button",{className:ci()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":n},cy),"aria-controls":d,"aria-expanded":n,"aria-haspopup":"true",id:c,onClick:i,onKeyDown:f,ref:s,children:e}),(0,ca.jsxs)("div",{className:ci()("cds--overflow-menu-options","cds--overflow-menu--flip",ch,{[cg]:n}),"aria-labelledby":c,"data-floating-menu-direction":"bottom",id:d,onKeyDown:f,ref:l,role:"menu",tabIndex:-1,children:[(0,ca.jsx)("ul",{className:ci()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":o}),children:(0,ca.jsx)(cv.Provider,{value:p,children:y})}),(0,ca.jsx)("span",{})]})]})}function cx(e){let t=(0,lr.useContext)(cv);return(0,ca.jsx)(cd.OverflowMenuItem,{...e,closeMenu:t?.closeMenu})}var cD=n(5571);let cE=["omrs-icon-activity","omrs-icon-add","omrs-icon-arrow-down","omrs-icon-arrow-left","omrs-icon-arrow-right","omrs-icon-arrow-up","omrs-icon-baby","omrs-icon-calendar-heat-map","omrs-icon-calendar","omrs-icon-caret-down","omrs-icon-caret-left","omrs-icon-caret-right","omrs-icon-caret-up","omrs-icon-chart-average","omrs-icon-chart-line","omrs-icon-checkmark-filled","omrs-icon-checkmark-outline","omrs-icon-chemistry","omrs-icon-chevron-down","omrs-icon-chevron-left","omrs-icon-chevron-right","omrs-icon-chevron-up","omrs-icon-close","omrs-icon-close-filled","omrs-icon-close-outline","omrs-icon-document","omrs-icon-document-attachment","omrs-icon-download","omrs-icon-drug-order","omrs-icon-edit","omrs-icon-event-schedule","omrs-icon-events","omrs-icon-gender-female","omrs-icon-gender-male","omrs-icon-gender-other","omrs-icon-gender-unknown","omrs-icon-generic-order-type","omrs-icon-group","omrs-icon-group-access","omrs-icon-hospital-bed","omrs-icon-image-medical","omrs-icon-information","omrs-icon-information-filled","omrs-icon-information-square","omrs-icon-inventory-management","omrs-icon-lab-order","omrs-icon-list-checked","omrs-icon-location","omrs-icon-material-order","omrs-icon-maximize","omrs-icon-medication","omrs-icon-message-queue","omrs-icon-microscope","omrs-icon-mobile-check","omrs-icon-money","omrs-icon-mother","omrs-icon-movement","omrs-icon-overflow-menu--horizontal","omrs-icon-overflow-menu--vertical","omrs-icon-password","omrs-icon-pedestrian-family","omrs-icon-pen","omrs-icon-printer","omrs-icon-procedure-order","omrs-icon-programs","omrs-icon-renew","omrs-icon-referral-order","omrs-icon-report","omrs-icon-reset","omrs-icon-save","omrs-icon-search","omrs-icon-settings","omrs-icon-shopping-cart","omrs-icon-shopping-cart--arrow-down","omrs-icon-sticky-note-add","omrs-icon-switcher","omrs-icon-syringe","omrs-icon-table-of-contents","omrs-icon-table","omrs-icon-time","omrs-icon-tools","omrs-icon-translate","omrs-icon-trash-can","omrs-icon-tree-view--alt","omrs-icon-two-factor-authentication","omrs-icon-user-avatar","omrs-icon-user-follow","omrs-icon-user-xray","omrs-icon-user","omrs-icon-view-off","omrs-icon-view","omrs-icon-warning"],c_=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-activity",iconProps:e})})),cS=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-add",iconProps:e})})),ck=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-down",iconProps:e})})),cC=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-left",iconProps:e})})),cP=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-right",iconProps:e})})),cT=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-arrow-up",iconProps:e})})),cR=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-baby",iconProps:e})})),cN=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-calendar-heat-map",iconProps:e})})),cO=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-calendar",iconProps:e})})),c$=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-down",iconProps:e})})),cM=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-left",iconProps:e})})),cA=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-right",iconProps:e})})),cj=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-caret-up",iconProps:e})})),cI=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chart-average",iconProps:e})})),cL=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chart-line",iconProps:e})})),cF=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-checkmark-filled",iconProps:e})})),cB=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-checkmark-outline",iconProps:e})})),cV=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chemistry",iconProps:e})})),cU=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-down",iconProps:e})})),cW=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-left",iconProps:e})})),cH=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-right",iconProps:e})})),cz=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-chevron-up",iconProps:e})})),cK=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close",iconProps:e})})),cG=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close-filled",iconProps:e})})),cZ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-close-outline",iconProps:e})})),cY=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-document",iconProps:e})})),cq=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-document-attachment",iconProps:e})})),cJ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-download",iconProps:e})})),cX=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-drug-order",iconProps:e})})),cQ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-edit",iconProps:e})})),c0=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-event-schedule",iconProps:e})})),c1=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-events",iconProps:e})})),c4=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-female",iconProps:e})})),c2=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-male",iconProps:e})})),c3=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-other",iconProps:e})})),c6=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-gender-unknown",iconProps:e})})),c5=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-generic-order-type",iconProps:e})})),c9=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-group",iconProps:e})})),c8=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-group-access",iconProps:e})})),c7=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-hospital-bed",iconProps:e})})),de=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-image-medical",iconProps:e})})),dt=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information",iconProps:e})})),dn=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information-filled",iconProps:e})})),dr=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-information-square",iconProps:e})})),da=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-inventory-management",iconProps:e})})),di=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-lab-order",iconProps:e})})),ds=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-list-checked",iconProps:e})})),dl=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-location",iconProps:e})})),du=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-material-order",iconProps:e})})),dc=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-maximize",iconProps:e})})),dd=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-medication",iconProps:e})})),dm=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-message-queue",iconProps:e})})),dp=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-microscope",iconProps:e})})),df=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-mobile-check",iconProps:e})})),dh=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-money",iconProps:e})})),dg=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-mother",iconProps:e})})),dy=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-movement",iconProps:e})})),dv=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),db=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),dw=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-password",iconProps:e})})),dx=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-pedestrian-family",iconProps:e})})),dD=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-pen",iconProps:e})})),dE=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-printer",iconProps:e})})),d_=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-procedure-order",iconProps:e})})),dS=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-programs",iconProps:e})})),dk=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-referral-order",iconProps:e})})),dC=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-renew",iconProps:e})})),dP=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-report",iconProps:e})})),dT=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-reset",iconProps:e})})),dR=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-save",iconProps:e})})),dN=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-search",iconProps:e})})),dO=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-settings",iconProps:e})})),d$=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-switcher",iconProps:e})})),dM=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-shopping-cart",iconProps:e})})),dA=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-shopping-cart--arrow-down",iconProps:e})})),dj=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-sticky-note-add",iconProps:e})})),dI=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-syringe",iconProps:e})})),dL=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-table-of-contents",iconProps:e})})),dF=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-table",iconProps:e})})),dB=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-time",iconProps:e})})),dV=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-tools",iconProps:e})})),dU=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-translate",iconProps:e})})),dW=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-trash-can",iconProps:e})})),dH=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-tree-view--alt",iconProps:e})})),dz=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-two-factor-authentication",iconProps:e})})),dK=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-avatar",iconProps:e})})),dG=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-follow",iconProps:e})})),dZ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user-xray",iconProps:e})})),dY=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-user",iconProps:e})})),dq=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-view-off",iconProps:e})})),dJ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-view",iconProps:e})})),dX=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(d6,{ref:t,icon:"omrs-icon-warning",iconProps:e})})),dQ=dX,d0=cq,d1=ds,d4=de,d2=dA,d3=(0,lr.memo)((0,lr.forwardRef)(function({icon:e,fallback:t,...n},r){let a=(0,lr.useRef)(e?document.getElementById(e):void 0);return(0,lr.useEffect)(()=>{let t=document.getElementById("omrs-svgs-container"),n=new MutationObserver(t=>{for(let n of t)"childList"===n.type&&(a.current=e?document.getElementById(e):void 0)});return t&&n.observe(t,{childList:!0}),()=>n.disconnect()},[e]),(0,ca.jsx)(l4,{value:a.current,fallback:t,children:(0,ca.jsx)(d6,{ref:r,icon:e,iconProps:n})})})),d6=(0,lr.memo)((0,lr.forwardRef)(function({icon:e,iconProps:t},n){let{className:r,fill:a,size:o}=Object.assign({},{fill:"currentColor",size:20},t);(o<=0||o>72)&&(console.error(`Invalid size '${o}' specified for ${e}. Defaulting to 20.`),o=20);let i=(0,lr.useRef)(null);return(0,lr.useImperativeHandle)(n,()=>i.current),(0,lr.useEffect)(()=>{i.current&&"currentColor"!==a&&i.current.style.setProperty("--omrs-icon-fill",a)},[]),(0,ca.jsx)("svg",{ref:i,className:ci()("omrs-icon","-esm-form-engine__icons-module__icon___uq4qr",r),height:o,width:o,viewBox:"0 0 16 16",children:(0,ca.jsx)("use",{href:`#${e}`})})})),d5=({path:e,title:t,basePath:n,icon:r})=>{let{t:a}=(0,lj.useTranslation)(),o=(0,cD.useLocation)(),i=(0,lr.useMemo)(()=>{if(!e)return!1;let t=e.startsWith("/")?e.slice(1):e;if(t.startsWith("http"))return t===window.location.href;let n=t.split("/").map(e=>decodeURIComponent(e)),r=(o.pathname??"").split("/").slice(1).map(e=>decodeURIComponent(e));return r.some((e,t)=>n.every((e,n)=>r[t+n]===e))},[o.pathname,e]);return(0,ca.jsx)("div",{children:(0,ca.jsx)(li,{className:ci()("cds--side-nav__link",{"active-left-nav-link":i}),to:`${n}/${encodeURIComponent(e)}`,children:(0,ca.jsxs)("span",{className:"-esm-form-engine__dashboard-module__menu___WbY42",children:[(0,ca.jsx)(d3,{icon:r,className:"-esm-form-engine__dashboard-module__icon___L-hKL",size:16}),(0,ca.jsx)("span",{children:a(t)})]})})},e)};function d9(e){return function({basePath:t}){return(0,ca.jsx)(cD.BrowserRouter,{children:(0,ca.jsx)(d5,{basePath:t,...e})})}}function d8(e){let t=(0,lr.useRef)(null),n=(0,lr.useRef)(void 0),r=(0,lr.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,lr.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}function d7(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=me(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():me(e[n],null)})}}}function me(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function mt(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let mn="u">typeof document?la().useLayoutEffect:()=>{},mr={prefix:String(Math.round(1e10*Math.random())),current:0},ma=la().createContext(mr),mo=la().createContext(!1),mi=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),ms="function"==typeof la().useId?function(e){let t=la().useId(),[n]=(0,lr.useState)(md()),r=n?"react-aria":`react-aria${mr.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,lr.useContext)(ma),n=function(e=!1){let t=(0,lr.useContext)(ma),n=(0,lr.useRef)(null);if(null===n.current&&!e){let e=la().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=mi.get(e);null==n?mi.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,mi.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function ml(){return!1}function mu(){return!0}function mc(e){return()=>{}}function md(){return"function"==typeof la().useSyncExternalStore?la().useSyncExternalStore(mc,ml,mu):(0,lr.useContext)(mo)}let mm=!!("u">typeof window&&window.document&&window.document.createElement),mp=new Map;function mf(e){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(null),a=ms(t),o=(0,lr.useRef)(null);if(i&&i.register(o,a),mm){let e=mp.get(a);e&&!e.includes(r)?e.push(r):mp.set(a,[r])}return mn(()=>()=>{i&&i.unregister(o),mp.delete(a)},[a]),(0,lr.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),a}function mh(e=[]){let t=mf(),[n,r]=function(e){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(t),a=(0,lr.useRef)(null),o=(0,lr.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}r.current===e.value?o.current():n(e.value)});return mn(()=>{r.current=t,a.current&&o.current()}),[t,(0,lr.useCallback)(e=>{a.current=e(r.current),o.current()},[o])]}(t),a=(0,lr.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return mn(a,[t,a,...e]),n}"u">typeof FinalizationRegistry&&(i=new FinalizationRegistry(e=>{mp.delete(e)}));let mg=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r};function my(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],a=r[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=mt(n,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof a?t[e]=mg(n,a):"id"===e&&n&&a?t.id=function(e,t){if(e===t)return e;let n=mp.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=mp.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,a):"ref"===e&&n&&a?t.ref=d7(n,a):t[e]=void 0!==a?a:n}}return t}let mv=Symbol("default");function mb({values:e,children:t}){for(let[n,r]of e)t=la().createElement(n.Provider,{value:r},t);return t}function mw(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:i,values:s}=e;return(0,lr.useMemo)(()=>{let e,l,u;return e="function"==typeof t?t({...s,defaultClassName:a}):t,l="function"==typeof n?n({...s,defaultStyle:i||{}}):n,u="function"==typeof r?r({...s,defaultChildren:o}):null==r?o:r,{className:null!=e?e:a,style:l||i?{...i,...l}:void 0,children:null!=u?u:o,"data-rac":""}},[t,n,r,a,o,i,s])}function mx(e,t){let n=(0,lr.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||mv;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function mD(e,t,n){let{ref:r,...a}=mx(n,e.slot)||{},o=d8((0,lr.useMemo)(()=>d7(t,r),[t,r])),i=my(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?i.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:i.style={...a.style,...e.style}),[i,o]}function mE(e=!0){let[t,n]=(0,lr.useState)(e),r=(0,lr.useRef)(!1),a=(0,lr.useCallback)(e=>{r.current=!0,n(!!e)},[]);return mn(()=>{r.current||n(!1)},[]),[a,t]}function m_(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}let mS=(0,lr.createContext)(null),mk=null;function mC(e,t="assertive",n=7e3){mk?mk.announce(e,t,n):(mk=new mP,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?mk.announce(e,t,n):setTimeout(()=>{(null==mk?void 0:mk.isAttached())&&(null==mk||mk.announce(e,t,n))},100))}class mP{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,a;if(!this.node)return;let o=document.createElement("div");"object"==typeof e?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,"assertive"===t?null==(r=this.assertiveLog)||r.appendChild(o):null==(a=this.politeLog)||a.appendChild(o),""!==e&&setTimeout(()=>{o.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}let mT=new Set(["id"]),mR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mN=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),mO=new Set(["dir","lang","hidden","inert","translate"]),m$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),mM=/^(data-.*)$/;function mA(e,t={}){let{labelable:n,isLink:r,global:a,events:o=a,propNames:i}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(mT.has(t)||n&&mR.has(t)||r&&mN.has(t)||a&&mO.has(t)||o&&(m$.has(t)||t.endsWith("Capture")&&m$.has(t.slice(0,-7)))||i?.has(t)||mM.test(t))&&(s[t]=e[t]);return s}function mj(e){if(function(){if(null==mI){mI=!1;try{document.createElement("div").focus({get preventScroll(){return mI=!0,!0}})}catch{}}return mI}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let mI=null,mL=e=>e?.ownerDocument??document,mF=e=>e&&"window"in e&&e.window===e?e:mL(e).defaultView||window;function mB(e,t){return!!t&&!!e&&e.contains(t)}function mV(e){return e.target}function mU(e){if(!e)return!1;let t=e.getRootNode(),n=mF(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let mW="u">typeof Element&&"checkVisibility"in Element.prototype;function mH(e,t){return mW?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=mF(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||mH(e.parentElement,e))}let mz=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],mK=mz.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";mz.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let mG=mz.join(':not([hidden]):not([tabindex="-1"]),');function mZ(e,t){return e.matches(mK)&&!mq(e)&&(t?.skipVisibilityCheck||mH(e))}function mY(e){return e.matches(mG)&&mH(e)&&!mq(e)}function mq(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function mJ(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function mX(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function mQ(e){let t=(0,lr.useRef)({isFocused:!1,observer:null});return mn(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,lr.useCallback)(n=>{let r=mV(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=mJ(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let m0=!1;function m1(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function m4(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function m2(e){let t=null;return()=>(null==t&&(t=e()),t)}let m3=m2(function(){return m4(/^Mac/i)}),m6=m2(function(){return m4(/^iPhone/i)}),m5=m2(function(){return m4(/^iPad/i)||m3()&&navigator.maxTouchPoints>1}),m9=m2(function(){return m6()||m5()});m2(function(){return m3()||m9()});let m8=m2(function(){return m1(/AppleWebKit/i)&&!m7()}),m7=m2(function(){return m1(/Chrome/i)}),pe=m2(function(){return m1(/Android/i)}),pt=m2(function(){return m1(/Firefox/i)});function pn(e){return""===e.pointerType&&!!e.isTrusted||(pe()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function pr(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}=t;pt()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(m3()?r=!0:a=!0);let s=m8()&&m3()&&!m5()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});pr.isOpening=n,mj(e),e.dispatchEvent(s),pr.isOpening=!1}pr.isOpening=!1;let pa=null,po=new Set,pi=new Map,ps=!1,pl=!1,pu={Tab:!0,Escape:!0};function pc(e,t){for(let n of po)n(e,t)}function pd(e){ps=!0,pr.isOpening||e.metaKey||!m3()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(pa="keyboard",pc("keyboard",e))}function pm(e){pa="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ps=!0,pc("pointer",e))}function pp(e){!pr.isOpening&&pn(e)&&(ps=!0,pa="virtual")}function pf(e){let t=mF(mV(e)),n=mL(mV(e));mV(e)!==t&&mV(e)!==n&&!m0&&e.isTrusted&&(ps||pl||(pa="virtual",pc("virtual",e)),ps=!1,pl=!1)}function ph(){m0||(ps=!1,pl=!0)}function pg(e){if("u"<typeof window||"u"<typeof document)return;let t=mF(e),n=mL(e);if(pi.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ps=!0,r.apply(this,arguments)},n.addEventListener("keydown",pd,!0),n.addEventListener("keyup",pd,!0),n.addEventListener("click",pp,!0),t.addEventListener("focus",pf,!0),t.addEventListener("blur",ph,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",pm,!0),n.addEventListener("pointermove",pm,!0),n.addEventListener("pointerup",pm,!0)),t.addEventListener("beforeunload",()=>{py(e)},{once:!0}),pi.set(t,{focus:r})}let py=(e,t)=>{let n=mF(e),r=mL(e);t&&r.removeEventListener("DOMContentLoaded",t),pi.has(n)&&(n.HTMLElement.prototype.focus=pi.get(n).focus,r.removeEventListener("keydown",pd,!0),r.removeEventListener("keyup",pd,!0),r.removeEventListener("click",pp,!0),n.removeEventListener("focus",pf,!0),n.removeEventListener("blur",ph,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",pm,!0),r.removeEventListener("pointermove",pm,!0),r.removeEventListener("pointerup",pm,!0)),pi.delete(n))};function pv(){return"pointer"!==pa}"u">typeof document&&("loading"!==(c=mL(void 0)).readyState?pg(void 0):c.addEventListener("DOMContentLoaded",()=>{pg(void 0)}));let pb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),pw=new Map,px=new Set;function pD(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=mV(n);if(!e(n)||!r)return;let a=pw.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),pw.delete(r)),0===pw.size)){for(let e of px)e();px.clear()}};document.body.addEventListener("transitionrun",n=>{let r=mV(n);if(!e(n)||!r)return;let a=pw.get(r);a||(a=new Set,pw.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function pE(e){requestAnimationFrame(()=>{for(let[e]of pw)"isConnected"in e&&!e.isConnected&&pw.delete(e);0===pw.size?e():px.add(e)})}function p_(e){if(!e.isConnected)return;let t=mL(e);if("virtual"===pa){let n=((e=document)=>e.activeElement)(t);pE(()=>{let r=((e=document)=>e.activeElement)(t);(r===n||r===t.body)&&e.isConnected&&mj(e)})}else mj(e)}function pS(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,o=(0,lr.useCallback)(e=>{if(mV(e)===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),i=mQ(o),s=(0,lr.useCallback)(e=>{let t=mV(e),r=mL(t),o=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(n&&n(e),a&&a(!0),i(e))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?o:void 0}}}function pk(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&n.stopPropagation()}}function pC(e,t){mn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}"u">typeof document&&("loading"!==document.readyState?pD():document.addEventListener("DOMContentLoaded",pD));let pP=la().createContext(null);function pT(e,t){let{focusProps:n}=pS(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:pk(e.onKeyDown),onKeyUp:pk(e.onKeyUp)}},a=my(n,r),o=function(e){let t=(0,lr.useContext)(pP)||{};pC(t,e);let{ref:n,...r}=t;return r}(t),i=e.isDisabled?{}:o,s=(0,lr.useRef)(e.autoFocus);(0,lr.useEffect)(()=>{s.current&&t.current&&p_(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:my({...a,tabIndex:l},i)}}la().forwardRef(function(e,t){let{children:n,...r}=e,a=d8(t),o={...r,ref:a};return la().createElement(pP.Provider,{value:o},n)});let pR="default",pN="",pO=new WeakMap;function p$(e){if(m9())"disabled"===pR&&(pR="restoring",setTimeout(()=>{pE(()=>{if("restoring"===pR){let t=mL(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=pN||""),pN="",pR="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&pO.has(e)){let t=pO.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),pO.delete(e)}}function pM(e){let t=e?.defaultView;return t?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let pA=new WeakMap;function pj(e){let t=e??("u">typeof document?document:void 0);if(!t)return pM(t);if(pA.has(t))return pA.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof mF(n).HTMLMetaElement&&(n.nonce||n.content)||pM(t)||void 0;return void 0!==r&&pA.set(t,r),r}let pI=la().createContext({register:()=>{}});pI.displayName="PressResponderContext";let pL=la().useInsertionEffect??mn;function pF(e){let t=(0,lr.useRef)(null);return pL(()=>{t.current=e},[e]),(0,lr.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function pB(){let e=(0,lr.useRef)(new Map),t=(0,lr.useCallback)((t,n,r,a)=>{let o=a?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:a}),t.addEventListener(n,o,a)},[]),n=(0,lr.useCallback)((t,n,r,a)=>{let o=e.current.get(r)?.fn||r;t.removeEventListener(n,o,a),e.current.delete(r)},[]),r=(0,lr.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,lr.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var pV=n(8439),pU=n.n(pV);class pW{#e;constructor(e,t,n,r){this.#e=!0;let a=r?.target??n.currentTarget;const o=a?.getBoundingClientRect();let i,s=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),o&&(null!=l&&null!=u?(i=l-o.left,s=u-o.top):(i=o.width/2,s=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=i,this.y=s,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let pH=Symbol("linkClicked"),pz="react-aria-pressable-style",pK="data-react-aria-pressable";function pG(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:o,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...p}=function(e){let t=(0,lr.useContext)(pI);if(t){let{register:n,ref:r,...a}=t;e=my(a,e),n()}return pC(t,e.ref),e}(e),[f,h]=(0,lr.useState)(!1),g=(0,lr.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:v}=pB(),b=(0,lr.useCallback)((e,t)=>{let a=g.current;if(s||a.didFirePressStart)return!1;let o=!0;if(a.isTriggeringEvent=!0,r){let n=new pW("pressstart",t,e);r(n),o=n.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),o},[s,r,n]),w=(0,lr.useCallback)((e,r,o=!0)=>{let i=g.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(a){let t=new pW("pressend",r,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&o&&!s){let n=new pW("press",r,e);t(n),l&&=n.shouldStopPropagation}return i.isTriggeringEvent=!1,l},[s,a,n,t]),x=pF(w),D=pF((0,lr.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(o){n.isTriggeringEvent=!0;let r=new pW("pressup",t,e);return o(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,o])),E=(0,lr.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&w(pq(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||p$(t.target),t.disposables))n();t.disposables=[]}},[d,v,w]),_=pF(E),S=(0,lr.useCallback)(e=>{c&&E(e)},[c,E]),k=(0,lr.useCallback)(e=>{s||i?.(e)},[s,i]),C=(0,lr.useCallback)((e,t)=>{if(!s&&i){let n=new MouseEvent("click",e);mX(n,t),i(mJ(n))}},[s,i]),P=(0,lr.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(pY(t.nativeEvent,t.currentTarget)&&mB(t.currentTarget,mV(t))){pJ(mV(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=b(t,"keyboard"));let a=t.currentTarget;y(mL(t.currentTarget),"keyup",mt(t=>{pY(t,a)&&!t.repeat&&mB(a,mV(t))&&e.target&&D(pq(e.target,t),"keyboard")},n),!0),r&&t.stopPropagation(),t.metaKey&&m3()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||mB(t.currentTarget,mV(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!pr.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||pn(t.nativeEvent))){let e=b(t,"virtual"),r=D(t,"virtual"),a=x(t,"virtual");k(t),n=e&&r&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",a=D(pq(t.currentTarget,t),r),o=x(pq(t.currentTarget,t),r,!0);n=a&&o,e.isOverTarget=!1,k(t),_(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&pY(t,e.target)){pJ(mV(t),t.key)&&t.preventDefault();let n=mV(t),r=mB(e.target,n);x(pq(e.target,t),"keyboard",r),r&&C(t,e.target),v(),"Enter"!==t.key&&pZ(e.target)&&mB(e.target,n)&&!t[pH]&&(t[pH]=!0,pr(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",n))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!mB(t.currentTarget,mV(t)))return;if(a=t.nativeEvent,!pe()&&0===a.width&&0===a.height||1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(m9()){if("default"===pR){let t=mL(e);pN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}pR="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";pO.set(e,e.style[t]),e.style[t]="none"}}(e.target),o=b(t,e.pointerType);let a=mV(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),y(mL(t.currentTarget),"pointerup",n,!1),y(mL(t.currentTarget),"pointercancel",r,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(mB(t.currentTarget,mV(t))&&0===t.button){if(u){let n=function(e){for(;e&&!mZ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=mF(e),n=t.document.activeElement;if(!n||n===e)return;m0=!0;let r=!1,a=e=>{(mV(e)===n||r)&&e.stopImmediatePropagation()},o=t=>{(mV(t)===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,mj(n),l()))},i=t=>{(mV(t)===e||r)&&t.stopImmediatePropagation()},s=t=>{(mV(t)===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,mj(n),l()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",i,!0),m0=!1,r=!1},u=requestAnimationFrame(l);return l}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{mB(t.currentTarget,mV(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||D(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,b(pq(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x(pq(e.target,t),e.pointerType,!1),S(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(mB(e.target,mV(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?_(t):(mj(e.target),e.target.click()))},80);y(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else _(t);e.isOverTarget=!1}},r=e=>{_(e)};t.onDragStart=e=>{mB(e.currentTarget,mV(e))&&_(e)}}return t},[y,s,u,v,d,S,b,k,C]);return(0,lr.useEffect)(()=>{if(!m)return;let e=mL(m.current);if(!e||!e.head||e.getElementById(pz))return;let t=e.createElement("style");t.id=pz;let n=pj(e);n&&(t.nonce=n),t.textContent=`
|
|
33
33
|
@layer {
|
|
34
|
-
[${
|
|
34
|
+
[${pK}] {
|
|
35
35
|
touch-action: pan-x pan-y pinch-zoom;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`.trim(),e.head.prepend(t)},[m]),(0,lr.useEffect)(()=>{let e=g.current;return()=>{for(let t of(d||p$(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||f,pressProps:my(p,P,{[pz]:!0})}}function pG(e){return"A"===e.tagName&&e.hasAttribute("href")}function pZ(e,t){let{key:n,code:r}=e,a=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof mF(t).HTMLInputElement&&!pX(t,n)||t instanceof mF(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&pG(t))&&"Enter"!==n)}function pY(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function pq(e,t){return e instanceof HTMLInputElement?!pX(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!pG(e))}let pJ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pX(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:pJ.has(e.type)}function pQ(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,o=(0,lr.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=pB(),l=(0,lr.useCallback)(e=>{mB(e.currentTarget,mV(e))&&o.current.isFocusWithin&&!mB(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,o,s]),u=mQ(l),c=(0,lr.useCallback)(e=>{if(!mB(e.currentTarget,mV(e)))return;let t=mV(e),n=mL(t),s=((e=document)=>e.activeElement)(n);if(!o.current.isFocusWithin&&s===t){r&&r(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(n,"focus",e=>{let r=mV(e);if(o.current.isFocusWithin&&!mB(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});mX(e,t),l(mJ(e))}},{capture:!0})}},[r,a,u,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function p0(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:a}=e,o=(0,lr.useRef)({isFocused:!1,isFocusVisible:n||pv()}),[i,s]=(0,lr.useState)(!1),[l,u]=(0,lr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,lr.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,lr.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=pv(),s(e),c()},[c]);t={enabled:i,isTextInput:r},pg(),(0,lr.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,n)=>{var r;let a,i,s,l,u,d,m,p;r=!!t?.isTextInput,i=mL(a=n?mV(n):void 0),l=void 0!==(s=mF(a))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,m=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(i),(r=r||p instanceof l&&!pb.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&n instanceof m&&!pu[n.key]||(e=>{o.current.isFocusVisible=e,c()})(pv())};return po.add(e),()=>{po.delete(e)}},[r,i]);let{focusProps:m}=pS({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=pQ({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:a?p:m}}let p1=!1,p4=0;function p2(e){"touch"===e.pointerType&&(p1=!0,setTimeout(()=>{p1=!1},500))}function p3(){let e=mL(null);if(void 0!==e)return 0===p4&&"u">typeof PointerEvent&&e.addEventListener("pointerup",p2),p4++,()=>{!(--p4>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",p2)}}function p6(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[o,i]=(0,lr.useState)(!1),s=(0,lr.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,lr.useEffect)(p3,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=pB(),{hoverProps:c,triggerHoverEnd:d}=(0,lr.useMemo)(()=>{let e=(e,t)=>{let a=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&a&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),i(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=r=>{p1&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,a||"touch"===o||s.isHovered||!mB(r.currentTarget,mV(r)))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,l(mL(mV(r)),"pointerover",t=>{s.isHovered&&s.target&&!mB(s.target,mV(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!a&&mB(t.currentTarget,mV(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,a,s,l,u]);return(0,lr.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:c,isHovered:o}}if("u">typeof HTMLTemplateElement){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}let p5=(0,lr.createContext)(!1);function p9(e){let t=(t,n)=>(0,lr.useContext)(p5)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,lr.forwardRef)(t)}let p8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),p7=(0,lr.createContext)({}),fe=p9(function(e,t){var n;[e,t]=mD(e,t,p7);let r=((n=e).isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),e=n),{isPending:a}=r,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:m,href:p,target:f,rel:h,type:g="button"}=e;n="button"===r?{type:g,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==r||a?void 0:p,target:"a"===r?f:void 0,type:"input"===r?g:void 0,disabled:"input"===r?a:void 0,"aria-disabled":a&&"input"!==r?a:void 0,rel:"a"===r?h:void 0};let{pressProps:y,isPressed:v}=pK({onPressStart:i,onPressEnd:s,onPressChange:u,onPress:o,onPressUp:l,onClick:m,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:b}=pT(e,t);d&&(b.tabIndex=a?-1:b.tabIndex);let w=my(b,y,mA(e,{labelable:!0}));return{isPressed:v,buttonProps:my(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t),{focusProps:s,isFocused:l,isFocusVisible:u}=p0(e),{hoverProps:c,isHovered:d}=p6({...e,isDisabled:e.isDisabled||a}),m={isHovered:d,isPressed:(r.isPressed||i)&&!a,isFocused:l,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:null!=a&&a},p=mw({...e,values:m,defaultClassName:"react-aria-Button"}),f=mf(o.id),h=mf(),g=o["aria-labelledby"];a&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${f} ${h}`));let y=(0,lr.useRef)(a);return(0,lr.useEffect)(()=>{let e={"aria-labelledby":g||f};!y.current&&l&&a?mC(e,"assertive"):y.current&&l&&!a&&mC(e,"assertive"),y.current=a},[a,l,g,f]),la().createElement("button",{...mA(e,{propNames:p8}),...my(o,s,c),...p,type:"submit"===o.type&&a?"button":o.type,id:f,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":a||void 0,"data-focus-visible":u||void 0},la().createElement(mS.Provider,{value:{id:h}},p.children))});(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null);let ft=(0,lr.createContext)({}),fn=(0,lr.createContext)({}),fr=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,fn);let{elementType:n="span",...r}=e;return la().createElement(n,{className:"react-aria-Text",...r,ref:t})}),fa=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fo=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function fi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return fa.has(t.script)}let t=e.split("-")[0];return fo.has(t)}let fs=Symbol.for("react-aria.i18n.locale");function fl(){let e="u">typeof window&&window[fs]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:fi(e)?"rtl":"ltr"}}let fu=fl(),fc=new Set;function fd(){for(let e of(fu=fl(),fc))e(fu)}function fm(){let e=md(),[t,n]=(0,lr.useState)(fu);return((0,lr.useEffect)(()=>(0===fc.size&&window.addEventListener("languagechange",fd),fc.add(n),()=>{fc.delete(n),0===fc.size&&window.removeEventListener("languagechange",fd)}),[]),e)?{locale:"u">typeof window&&window[fs]||"en-US",direction:"ltr"}:t}let fp=la().createContext(null);function ff(e){let{locale:t,children:n}=e,r=la().useMemo(()=>({locale:t,direction:fi(t)?"rtl":"ltr"}),[t]);return la().createElement(fp.Provider,{value:r},n)}function fh(e){let{children:t}=e,n=fm();return la().createElement(fp.Provider,{value:n},t)}function fg(e){let{locale:t,children:n}=e;return t?la().createElement(ff,{locale:t,children:n}):la().createElement(fh,{children:n})}function fy(){let e=fm();return(0,lr.useContext)(fp)||e}let fv=null;function fb(e,t="assertive",n=7e3){fv?fv.announce(e,t,n):(fv=new fw,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?fv.announce(e,t,n):setTimeout(()=>{fv?.isAttached()&&fv?.announce(e,t,n)},100))}class fw{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}var fx={};function fD(e,t){let n=(0,lr.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}fx={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdběr rozsahu dat",maximumDate:"Posledn\xed dostupn\xe9 datum",minimumDate:"Prvn\xed dostupn\xe9 datum",next:"Dalš\xed",previous:"Předchoz\xed",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm zah\xe1j\xedte v\xfdběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xf8re valg af datoomr\xe5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xf8rste ledige dato",next:"N\xe6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xfcgbares Datum",minimumDate:"Erstes verf\xfcgbares Datum",next:"Weiter",previous:"Zur\xfcck",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xdaltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks",maximumDate:"Viimane saadaolev kuup\xe4ev",minimumDate:"Esimene saadaolev kuup\xe4ev",next:"J\xe4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimiseks",todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",maximumDate:"Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",minimumDate:"Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xe9lectionner la plage de dates",maximumDate:"Derni\xe8re date disponible",minimumDate:"Premi\xe8re date disponible",next:"Suivant",previous:"Pr\xe9c\xe9dent",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez",maximumDate:"Utols\xf3 el\xe9rhető d\xe1tum",minimumDate:"Az első el\xe9rhető d\xe1tum",next:"K\xf6vetkező",previous:"Előző",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xf8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xe5 starte valg av datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wyb\xf3r zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wyb\xf3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xe7\xe3o do intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xe7\xe3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xe7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"\xcenainte",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a \xeencepe selecţia razei pentru dată",todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdber rozsahu d\xe1tumov",maximumDate:"Posledn\xfd dostupn\xfd d\xe1tum",minimumDate:"Prv\xfd dostupn\xfd d\xe1tum",next:"Nasleduj\xface",previous:"Predch\xe1dzaj\xface",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xf6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xe4ngliga datum",minimumDate:"F\xf6rsta tillg\xe4ngliga datum",next:"N\xe4sta",previous:"F\xf6reg\xe5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xf6r att v\xe4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:"Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın",maximumDate:"Son m\xfcsait tarih",minimumDate:"İlk m\xfcsait tarih",next:"Sonraki",previous:"\xd6nceki",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın",todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let fE=new Map;class f_{constructor(e,t={}){this.formatter=fk(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==fP&&(fP="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),fP&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=fk(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===a)return"h23";if(24===r&&23===a)return"h24";if(0===r&&11===a)return"h11";if(12===r&&11===a)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}}let fS={true:{ja:"h11"},false:{}};function fk(e,t={}){if("boolean"==typeof t.hour12&&(null==fC&&(fC="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),fC)){let n=fS[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(fE.has(n))return fE.get(n);let r=new Intl.DateTimeFormat(e,t);return fE.set(n,r),r}let fC=null,fP=null;function fT(e){e=fD(e??{},fR);let{locale:t}=fy();return(0,lr.useMemo)(()=>new f_(t,e),[t,e])}function fR(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}let fN=Symbol.for("react-aria.i18n.locale"),fO=Symbol.for("react-aria.i18n.strings");class f${constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let a=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[fN];if(void 0===d){let e=window[fO];if(!e)return null;for(let n in d={},e)d[n]=new f$({[t]:e[n]},t)}let n=d?.[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}let fM=new Map,fA=new Map;class fj{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let a=this.locale+":"+n,o=fM.get(a);return o||(o=new Intl.PluralRules(this.locale,{type:n}),fM.set(a,o)),"function"==typeof(r=t[o.select(e)]||t.other)?r():r}number(e){let t=fA.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),fA.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}}let fI=new WeakMap;function fL(e,t){let n;return t&&f$.getGlobalDictionaryForPackage(t)||((n=fI.get(e))||(n=new f$(e),fI.set(e,n)),n)}function fF(e,t){let{locale:n}=fy(),r=fL(e,t);return(0,lr.useMemo)(()=>new fj(n,r),[n,r])}function fB(e,t){return e-t*Math.floor(e/t)}function fV(e,t,n,r){let a=(t=fW(e,t))-1,o=-2;return n<=2?o=0:fU(t)&&(o=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+o+r)}function fU(e){return e%4==0&&(e%100!=0||e%400==0)}function fW(e,t){return"BC"===e?1-t:t}function fH(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let fz={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class fK{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),r=fB(t,146097),a=Math.floor(r/36524),o=fB(r,36524),i=Math.floor(o/1461),s=Math.floor(fB(o,1461)/365),[l,u]=fH(400*n+100*a+4*i+s+ +(4!==a&&4!==s)),c=e-fV(l,u,1,1),d=2;e<fV(l,u,3,1)?d=0:fU(u)&&(d=1);let m=Math.floor(((c+d)*12+373)/367),p=e-fV(l,u,m,1)+1;return new hr(l,u,m,p)}toJulianDay(e){return fV(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return fz[fU(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return fU(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}function fG(e,t){let n=e.copy(),r="hour"in n?f2(n,t):0;fZ(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,fY(n),fq(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,fY(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,fY(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function fZ(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function fY(e){for(;e.month<1;)fZ(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,fZ(e,1)}function fq(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function fJ(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),fq(e)}function fX(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function fQ(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),fJ(n),n}function f0(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),f1(n),n}function f1(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function f4(e,t){let n=e%t;return n<0&&(n+=t),n}function f2(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=f4(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=f4(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=f4(e.minute,60),n=Math.floor(e.hour/24),e.hour=f4(e.hour,24),n}function f3(e,t){let n=e.copy();return f2(n,t),n}function f6(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=f9(o,n,0,t.length-1,r?.round),a.era=t[o],fJ(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=f9(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=f9(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=f9(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),fJ(a),a}function f5(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if(r?.hourCycle===12){let e=t>=12;o=12*!!e,i=e?23:11}a.hour=f9(t,n,o,i,r?.round);break}case"minute":a.minute=f9(e.minute,n,0,59,r?.round);break;case"second":a.second=f9(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=f9(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function f9(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function f8(e,t){let n;return n=(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?hm(fG(hg(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):hs(e)-e.offset)+(t.milliseconds||0),n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),hy(hf(n+=36e5*(t.hours||0),e.timeZone),e.calendar)}function f7(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function he(e){let t,n=hy(e,new fK);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function ht(e){return`${he(e)}T${f7(e)}`}function hn(e){let t,n="object"==typeof e[0]?e.shift():new fK;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class hr{#t;constructor(...e){let[t,n,r,a,o]=hn(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,fJ(this)}copy(){return this.era?new hr(this.calendar,this.era,this.year,this.month,this.day):new hr(this.calendar,this.year,this.month,this.day)}add(e){return fG(this,e)}subtract(e){return fG(this,fX(e))}set(e){return fQ(this,e)}cycle(e,t,n){return f6(this,e,t,n)}toDate(e){return hp(this,e)}toString(){return he(this)}compare(e){return hk(this,e)}}class ha{#t;constructor(e=0,t=0,n=0,r=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=r,f1(this)}copy(){return new ha(this.hour,this.minute,this.second,this.millisecond)}add(e){return f3(this,e)}subtract(e){return f3(this,fX(e))}set(e){return f0(this,e)}cycle(e,t,n){return f5(this,e,t,n)}toString(){return f7(this)}compare(e){var t,n;return t=this,n=e,hC(t)-hC(n)}}class ho{#t;constructor(...e){let[t,n,r,a,o]=hn(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,fJ(this)}copy(){return this.era?new ho(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ho(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return fG(this,e)}subtract(e){return fG(this,fX(e))}set(e){return fQ(f0(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return f6(this,e,t,n);default:return f5(this,e,t,n)}}toDate(e,t){return hp(this,e,t)}toString(){return ht(this)}compare(e){var t,n;let r=hk(this,e);return 0===r?(t=this,n=hg(e),hC(t)-hC(n)):r}}class hi{#t;constructor(...e){let[t,n,r,a,o]=hn(e),i=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,this.timeZone=i,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,fJ(this)}copy(){return this.era?new hi(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hi(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return f8(this,e)}subtract(e){return f8(this,fX(e))}set(e,t){let n,r;return 0===(r=f0(fQ(n=hg(this),e),e)).compare(n)?this:hy(hf(hm(r,this.timeZone,t),this.timeZone),this.calendar)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,a=23;if(r?.hourCycle===12){let n=e.hour>=12;t=12*!!n,a=n?23:11}let o=hg(e),i=hy(f0(o,{hour:t}),new fK),s=[hm(i,e.timeZone,"earlier"),hm(i,e.timeZone,"later")].filter(t=>hf(t,e.timeZone).day===i.day)[0],l=hy(f0(o,{hour:a}),new fK),u=[hm(l,e.timeZone,"earlier"),hm(l,e.timeZone,"later")].filter(t=>hf(t,e.timeZone).day===l.day).pop(),c=hs(e)-e.offset,d=Math.floor(c/36e5),m=c%36e5;return hy(hf(c=36e5*f9(d,n,Math.floor(s/36e5),Math.floor(u/36e5),r?.round)+m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return f5(e,t,n,r);case"era":case"year":case"month":case"day":return hy(hf(hm(f6(hg(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){var e;return e=this,new Date(hs(e)-e.offset)}toString(){var e;let t,n,r,a,o;return`${ht(this)}${t=0>Math.sign(e=this.offset)?"-":"+",n=Math.floor((e=Math.abs(e))/36e5),r=Math.floor(e%36e5/6e4),a=Math.floor(e%36e5%6e4/1e3),o=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`,0!==a&&(o+=`:${String(a).padStart(2,"0")}`),o}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,t){if(e instanceof hi){var n,r;return e.timeZone===t?e:(n=e,r=t,hy(hf(hs(n)-n.offset,r),n.calendar))}return hf(hm(e,t,void 0),t)})(e,this.timeZone).toDate().getTime()}}function hs(e){return hl(fW((e=hy(e,new fK)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hl(e,t,n,r,a,o,i){let s=new Date;return s.setUTCHours(r,a,o,i),s.setUTCFullYear(e,t-1,n),s.getTime()}function hu(e,t){if("UTC"===t)return 0;if(e>0&&t===hT())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:o,minute:i,second:s}=hd(e,t);return hl(n,r,a,o,i,s,0)-1e3*Math.floor(e/1e3)}let hc=new Map;function hd(e,t){let n=hc.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),hc.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function hm(e,t,n="compatible"){var r,a,o;let i=hg(e);if("UTC"===t)return hs(i);if(t===hT()&&"compatible"===n){i=hy(i,new fK);let e=new Date,t=fW(i.era,i.year);return e.setFullYear(t,i.month-1,i.day),e.setHours(i.hour,i.minute,i.second,i.millisecond),e.getTime()}let s=hs(i),l=hu(s-864e5,t),u=hu(s+864e5,t),c=(r=i,((a=s-l)==(o=s-u)?[a]:[a,o]).filter(e=>{var n;let a;return n=r,a=hd(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===c.length)return c[0];if(c.length>1)switch(n){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(s-l,s-u);case"compatible":case"later":return Math.max(s-l,s-u);case"reject":throw RangeError("No such absolute time found")}}function hp(e,t,n="compatible"){return new Date(hm(e,t,n))}function hf(e,t){let n=hu(e,t),r=new Date(e+n),a=r.getUTCFullYear();return new hi(a<1?"BC":"AD",a<1?-a+1:a,r.getUTCMonth()+1,r.getUTCDate(),t,n,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function hh(e){return new hr(e.calendar,e.era,e.year,e.month,e.day)}function hg(e,t){let n=0,r=0,a=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:a,millisecond:o}=t),new ho(e.calendar,e.era,e.year,e.month,e.day,n,r,a,o)}function hy(e,t){if(hx(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,fJ(r),r}let hv={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function hb(e,t){return t=hy(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function hw(e,t){return hx(e.calendar,t.calendar)&&hb(e,t)}function hx(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}let hD={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function hE(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?hD[n]:function(e){let t=hM.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return hM.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=h$.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&h$.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&hv[n]||0};hM.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function h_(e){return hf(Date.now(),e)}function hS(e){return hh(h_(e))}function hk(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function hC(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let hP=null;function hT(){return null==hP&&(hP=new Intl.DateTimeFormat().resolvedOptions().timeZone),hP}function hR(e){return e.subtract({days:e.day-1})}function hN(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function hO(e,t,n){let r=hE(e,t,n);return e.subtract({days:r})}let h$=new Map,hM=new Map;function hA(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((hE(hR(e),t,n)+r)/7)}function hj(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function hI(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function hL(e){return e&&e.__esModule?e.default:e}let hF=new WeakMap;function hB(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function hV(e,t,n,r){let a=fF(hL(fx),"@react-aria/calendar"),o=hB(e)||hB(t),i=fT({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=fT({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return(0,lr.useMemo)(()=>{if(hb(e,hR(e))){let o=e,s=t;if(e.calendar.getFormattableMonth&&(o=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),hb(t,hN(e)))return i.format(o.toDate(n));if(hb(t,hN(t)))return r?hU(i,a,o,s,n):i.formatRange(o.toDate(n),s.toDate(n))}return r?hU(s,a,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,s,a,n,r])}function hU(e,t,n,r,a){let o=e.formatRangeToParts(n.toDate(a),r.toDate(a)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<o.length;e++)e<i?s+=o[e].value:e>i&&(l+=o[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function hW(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=mf(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),r||a||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function hH(e,t){let n=(0,lr.useRef)(!0),r=(0,lr.useRef)(null),a=pF(e);(0,lr.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,lr.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&a(),r.current=t},t)}function hz(e,t){var n;let r,a,o,i,s,l=fF((n=fx)&&n.__esModule?n.default:n,"@react-aria/calendar"),u=mA(e),c=hV(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),d=hV(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);hH(()=>{t.isFocused||fb(d)},[d]);let m=(o=fF(hL(fx),"@react-aria/calendar"),"highlightedRange"in t?{start:r,end:a}=t.highlightedRange||{}:r=a=t.value??void 0,i=fT({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hB(r)||hB(a),timeZone:t.timeZone}),s="anchorDate"in t?t.anchorDate:null,(0,lr.useMemo)(()=>{if(!s&&r&&a)if(hb(r,a)){let e=i.format(r.toDate(t.timeZone));return o.format("selectedDateDescription",{date:e})}else{let e=hU(i,o,r,a,t.timeZone);return o.format("selectedRangeDescription",{dateRange:e})}return""},[r,a,s,t.timeZone,o,i]));hH(()=>{m&&fb(m,"polite",4e3)},[m]);let p=mh([!!e.errorMessage,e.isInvalid,e.validationState]);hF.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:p,selectedDateDescription:m});let[f,h]=(0,lr.useState)(!1),g=e.isDisabled||t.isNextVisibleRangeInvalid();g&&f&&(h(!1),t.setFocused(!0));let[y,v]=(0,lr.useState)(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();return b&&y&&(v(!1),t.setFocused(!0)),{calendarProps:my(u,hW({id:e.id,"aria-label":[e["aria-label"],d].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":l.format("next"),isDisabled:g,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":l.format("previous"),isDisabled:b,onFocusChange:v},errorMessageProps:{id:p},title:c}}let hK={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function hG(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...o}=e,{visuallyHiddenProps:i}=function(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,lr.useState)(!1),{focusWithinProps:o}=pQ({isDisabled:!n,onFocusWithinChange:e=>a(e)}),i=(0,lr.useMemo)(()=>r?t:t?{...hK,...t}:hK,[r]);return{visuallyHiddenProps:{...o,style:i}}}(e);return la().createElement(n,my(o,i),t)}function hZ(e,t,n,r){let a=pF(n),o=null==n;(0,lr.useEffect)(()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,o])}function hY(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&"hidden"!==n.overflow&&(a=!0),a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function hq(e,t){let n=e;for(hY(n,t)&&(n=n.parentElement);n&&!hY(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hJ(e,t){let n=[],r=document.scrollingElement||document.documentElement;do hY(e,t)&&n.push(e),e=e.parentElement;while(e&&e!==r);return n}function hX(e,t,n={}){let{block:r="nearest",inline:a="nearest"}=n;if(e===t)return;let o=e.scrollTop,i=e.scrollLeft,s=t.getBoundingClientRect(),l=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,m=e===d?0:l.top,p=e===d?e.clientHeight:l.bottom,f=e===d?0:l.left,h=e===d?e.clientWidth:l.right,g=parseInt(u.scrollMarginTop,10)||0,y=parseInt(u.scrollMarginBottom,10)||0,v=parseInt(u.scrollMarginLeft,10)||0,b=parseInt(u.scrollMarginRight,10)||0,w=parseInt(c.scrollPaddingTop,10)||0,x=parseInt(c.scrollPaddingBottom,10)||0,D=parseInt(c.scrollPaddingLeft,10)||0,E=parseInt(c.scrollPaddingRight,10)||0,_=parseInt(c.borderTopWidth,10)||0,S=parseInt(c.borderBottomWidth,10)||0,k=parseInt(c.borderLeftWidth,10)||0,C=parseInt(c.borderRightWidth,10)||0,P=s.top-g,T=s.bottom+y,R=s.left-v,N=s.right+b,O=e===d?0:k+C,$=e===d?0:_+S,M=e.offsetWidth-e.clientWidth-O,A=e.offsetHeight-e.clientHeight-$,j=m+_+w,I=p-S-x-A,L=f+k+D,F=h-C-E;"rtl"!==c.direction||m9()?F-=M:L+=M;let B=P<j||T>I,V=R<L||N>F;if(B&&"start"===r)o+=P-j;else if(B&&"center"===r)o+=(P+T)/2-(j+I)/2;else if(B&&"end"===r)o+=T-I;else if(B&&"nearest"===r){let e=P-j,t=T-I;o+=Math.abs(e)<=Math.abs(t)?e:t}if(V&&"start"===a)i+=R-L;else if(V&&"center"===a)i+=(R+N)/2-(L+F)/2;else if(V&&"end"===a)i+=N-F;else if(V&&"nearest"===a){let e=R-L,t=N-F;i+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:i,top:o})}function hQ(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:r}=e.getBoundingClientRect(),a=hJ(e,!0);for(let t of a)hX(t,e);let{left:o,top:i}=e.getBoundingClientRect();if(Math.abs(t-o)>1||Math.abs(r-i)>1)for(let e of a=n?hJ(n,!0):[])hX(e,n,{block:"center",inline:"center"})}else{let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:a,top:o}=e.getBoundingClientRect();(Math.abs(t-a)>1||Math.abs(r-o)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let h0=0,h1=new Map;function h4(e){let[t,n]=(0,lr.useState)();return mn(()=>{if(!e)return;let t=h1.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${h0++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},h1.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),h1.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}class h2 extends fK{fromJulianDay(e){let t=super.fromJulianDay(e);return new hr(this,fW(t.era,t.year)- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(h3(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(h3(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function h3(e){let[t,n]=fH(e.year+-543);return new hr(t,n,e.month,e.day)}function h6(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function h5(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-h6(e,n,1,1))/30),a=t+1-h6(e,n,r,1);return[n,r,a]}function h9(e){return Math.floor(e%4/3)}function h8(e,t){return t%13!=0?30:h9(e)+5}class h7{fromJulianDay(e){let[t,n,r]=h5(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new hr(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),h6(1723856,t,e.month,e.day)}getDaysInMonth(e){return h8(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+h9(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class ge extends h7{fromJulianDay(e){let[t,n,r]=h5(1723856,e);return new hr(this,"AA",t+=5500,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class gt extends h7{fromJulianDay(e){let[t,n,r]=h5(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new hr(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),h6(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),h8(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let gn=765433;function gr(e){return 7>fB(7*e+1,19)}function ga(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>fB(3*(n+1),7)&&(n+=1),n}function go(e){let t,n;return ga(e)+(t=ga(e-1),n=ga(e),ga(e+1)-n==356?2:+(n-t==382))}function gi(e){return go(e+1)-go(e)}function gs(e,t){if(t>=6&&!gr(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=gi(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!gr(e):30}class gl{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/gn*19+234)/235)+1,r=go(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=go(--n)));let o=1,i=0;for(;i<a;)i+=gs(n,o),o++;let s=a-(i-=gs(n,--o));return new hr(this,n,o,s)}toJulianDay(e){let t=go(e.year);for(let n=1;n<e.month;n++)t+=gs(e.year,n);return t+e.day+347997}getDaysInMonth(e){return gs(e.year,e.month)}getMonthsInYear(e){return gr(e.year)?13:12}getDaysInYear(e){return gi(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(gr(t.year)&&!gr(e.year)&&t.month>6?e.month--:!gr(t.year)&&gr(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class gu extends fK{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),o=a.year-78,i=e-fV(a.era,a.year,1,1);if(i<80?(o--,i+=(t=fU(a.year-1)?31:30)+155+90+10):(t=fU(a.year)?31:30,i-=80),i<t)n=1,r=i+1;else{let e=i-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new hr(this,o,n,r)}toJulianDay(e){let t,n,[r,a]=fH(e.year+78);return(fU(a)?(t=31,n=fV(r,a,3,21)):(t=30,n=fV(r,a,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&fU(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function gc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function gd(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+gc(t,r,1,1)))/29.5)+1),o=n-gc(t,r,a,1)+1;return new hr(e,r,a,o)}function gm(e){return(14+11*e)%30<11}class gp{fromJulianDay(e){return gd(this,1948440,e)}toJulianDay(e){return gc(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&gm(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return gm(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class gf extends gp{fromJulianDay(e){return gd(this,1948439,e)}toJulianDay(e){return gc(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function gh(e){return 460322+l[e-1300]}function gg(e,t){return(s[e-1300]&1<<11-(t-1))==0?29:30}function gy(e,t){let n=gh(e);for(let r=1;r<t;r++)n+=gg(e,r);return n}function gv(e){return l[e+1-1300]-l[e-1300]}class gb extends gp{constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!l){l=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){l[t-1300]=e;for(let n=1;n<=12;n++)e+=gg(t,n)}}}fromJulianDay(e){let t=e-1948440,n=gh(1300),r=gh(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-gh(++e)+1;let a=gv(e);if(r===a){n=12;break}if(r<a){let t=gg(e,n);for(n=1;r>t;)r-=t,t=gg(e,++n);break}}return new hr(this,e,n,t-gy(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+gy(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):gg(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):gv(e.year)}}let gw=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],gx=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],gD=[1867,1911,1925,1988,2018],gE=["meiji","taisho","showa","heisei","reiwa"];function g_(e){let t=gw.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?gw.length-1:0===t?0:t-1}function gS(e){let t=gD[gE.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new hr(e.year+t,e.month,e.day)}class gk extends fK{fromJulianDay(e){let t=super.fromJulianDay(e),n=g_(t);return new hr(this,gE[n],t.year-gD[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(gS(e))}balanceDate(e){let t=gS(e),n=g_(t);gE[n]!==e.era&&(e.era=gE[n],e.year=t.year-gD[n]),this.constrainDate(e)}constrainDate(e){let t=gE.indexOf(e.era),n=gx[t];if(null!=n){let[r,a,o]=n,i=r-gD[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,n,r]=gw[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return gE}getYearsInEra(e){let t=gE.indexOf(e.era),n=gw[t],r=gw[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(gS(e))}getMinimumMonthInYear(e){let t=gC(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=gC(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function gC(e){if(1===e.year)return gw[gE.indexOf(e.era)]}let gP=[0,31,62,93,124,155,186,216,246,276,306,336];class gT{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-gP[a]+1;return new hr(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=gP[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>fB(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function gR(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function gN(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class gO extends fK{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=gN(fW(t.era,t.year));return new hr(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(g$(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=gN(gR(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(g$(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function g$(e){let[t,n]=fH(gR(e));return new hr(t,n,e.month,e.day)}function gM(e){switch(e){case"buddhist":return new h2;case"ethiopic":return new h7;case"ethioaa":return new ge;case"coptic":return new gt;case"hebrew":return new gl;case"indian":return new gu;case"islamic-civil":return new gp;case"islamic-tbla":return new gf;case"islamic-umalqura":return new gb;case"japanese":return new gk;case"persian":return new gT;case"roc":return new gO;default:return new fK}}function gA(e,t,n){return null!=t&&0>e.compare(t)||null!=n&&e.compare(n)>0}function gj(e,t,n,r,a){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;let i=gI(e,t,n).subtract(o);return gF(e,i,t,n,r,a)}function gI(e,t,n,r,a){let o=e;if(t.years)o=hR(e.subtract({months:e.month-1}));else t.months?o=hR(e):t.weeks&&(o=hO(e,n));return gF(e,o,t,n,r,a)}function gL(e,t,n,r,a){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let i=gI(e,t,n).subtract(o);return gF(e,i,t,n,r,a)}function gF(e,t,n,r,a,o){if(a&&e.compare(a)>=0){let e=hI(t,gI(hh(a),n,r));e&&(t=e)}if(o&&0>=e.compare(o)){let e=hj(t,gL(hh(o),n,r));e&&(t=e)}return t}function gB(e,t,n){if(t){let n=hI(e,hh(t));n&&(e=n)}if(n){let t=hj(e,hh(n));t&&(e=t)}return e}function gV(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let gU="u">typeof document?la().useInsertionEffect??la().useLayoutEffect:()=>{};function gW(e,t,n){let[r,a]=(0,lr.useState)(e||t),o=(0,lr.useRef)(r),i=(0,lr.useRef)(void 0!==e),s=void 0!==e;(0,lr.useEffect)(()=>{i.current,i.current=s},[s]);let l=s?e:r;gU(()=>{o.current=l});let[,u]=(0,lr.useReducer)(()=>({}),{});return[l,(0,lr.useCallback)((e,...t)=>{let r="function"==typeof e?e(o.current):e;Object.is(o.current,r)||(o.current=r,a(r),u(),n?.(r,...t))},[n])]}function gH(e){let t=(0,lr.useMemo)(()=>new f_(e.locale),[e.locale]),n=(0,lr.useMemo)(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:a,visibleDuration:o={months:1},minValue:i,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:d}=e,m=(0,lr.useMemo)(()=>a(n.calendar),[a,n.calendar]),[p,f]=gW(e.value,e.defaultValue??null,e.onChange),h=(0,lr.useMemo)(()=>p?hy(hh(p),m):null,[p,m]),g=(0,lr.useMemo)(()=>p&&"timeZone"in p?p.timeZone:n.timeZone,[p,n.timeZone]),[y,v]=gW((0,lr.useMemo)(()=>e.focusedValue?gB(hy(hh(e.focusedValue),m),i,s):void 0,[e.focusedValue,m,i,s]),(0,lr.useMemo)(()=>gB(e.defaultFocusedValue?hy(hh(e.defaultFocusedValue),m):h||hy(hS(g),m),i,s),[e.defaultFocusedValue,h,g,m,i,s]),e.onFocusChange),[b,w]=(0,lr.useState)(()=>{switch(l){case"start":return gI(y,o,r,i,s);case"end":return gL(y,o,r,i,s);default:return gj(y,o,r,i,s)}}),[x,D]=(0,lr.useState)(e.autoFocus||!1),E=(0,lr.useMemo)(()=>{let e={...o};return e.days?e.days--:e.days=-1,b.add(e)},[b,o]),[_,S]=(0,lr.useState)(m);if(!hx(m,_)){let e=hy(y,m);w(gj(e,o,r,i,s)),v(e),S(m)}function k(e){v(e=gB(e,i,s))}function C(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void f(null);(e=gV(e=gB(e,i,s),b,u))&&(e=hy(e,p?.calendar||new fK),p&&"hour"in p?f(p.set(e)):f(e))}}gA(y,i,s)?v(gB(y,i,s)):0>y.compare(b)?w(gL(y,o,r,i,s)):y.compare(E)>0&&w(gI(y,o,r,i,s));let P=(0,lr.useMemo)(()=>!!h&&(!!(u&&u(h))||gA(h,i,s)),[h,u,i,s]),T=e.isInvalid||"invalid"===e.validationState||P,R=(0,lr.useMemo)(()=>"visible"===c?o:gz(o),[c,o]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:h,setValue:C,visibleRange:{start:b,end:E},minValue:i,maxValue:s,focusedDate:y,timeZone:g,validationState:T?"invalid":null,isValueInvalid:T,setFocusedDate(e){k(e)},focusNextDay(){k(y.add({days:1}))},focusPreviousDay(){k(y.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&k(y.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&k(y.subtract({weeks:1}))},focusNextPage(){let e=b.add(R);v(gB(y.add(R),i,s)),w(gI(gF(y,e,R,r,i,s),R,r))},focusPreviousPage(){let e=b.subtract(R);v(gB(y.subtract(R),i,s)),w(gI(gF(y,e,R,r,i,s),R,r))},focusSectionStart(){o.days?k(b):o.weeks?k(hO(y,r)):(o.months||o.years)&&k(hR(y))},focusSectionEnd(){o.days?k(E):o.weeks?k(hO(y,r,void 0).add({days:6})):(o.months||o.years)&&k(hN(y))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?k(y.add({months:1})):(o.months||o.years)&&k(y.add({years:1})):k(y.add(gz(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?k(y.subtract({months:1})):(o.months||o.years)&&k(y.subtract({years:1})):k(y.subtract(gz(o)))},selectFocusedDate(){u&&u(y)||C(y)},selectDate(e){C(e)},isFocused:x,setFocused:D,isInvalid:e=>gA(e,i,s),isSelected(e){return null!=h&&hb(e,h)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>x&&y&&hb(e,y),isCellDisabled(t){return e.isDisabled||0>t.compare(b)||t.compare(E)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=b.subtract({days:1});return hb(e,b)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=E.add({days:1});return hb(e,E)||this.isInvalid(e)},getDatesInWeek(e,t=b){let n=t.add({weeks:e}),a=[],o=hE(n=hO(n,r,d),r,d);for(let e=0;e<o;e++)a.push(null);for(;a.length<7;){a.push(n);let e=n.add({days:1});if(hb(n,e))break;n=e}for(;a.length<7;)a.push(null);return a}}}function gz(e){let t={...e};for(let n in e)t[n]=1;return t}function gK(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:hh(e),end:hh(t)}):null}function gG(e,t){return(e=hy(e,t?.calendar||new fK),t&&"hour"in t)?t.set(e):e}function gZ(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:0>=r.compare(t.visibleRange.end))&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}let gY=(0,lr.createContext)(null),gq=(0,lr.createContext)(null),gJ=(0,lr.createContext)(null),gX=(0,lr.createContext)(null),gQ=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,gY);let{locale:n}=fy(),r=gH({...e,locale:n,createCalendar:gM}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=hz(e,r),u=mw({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"});return la().createElement("div",{...u,...a,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},la().createElement(mb,{values:[[p7,{slots:{previous:o,next:i}}],[ft,{"aria-hidden":!0,level:2,children:l}],[gJ,r],[gY,e],[fn,{slots:{errorMessage:s}}]]},la().createElement(hG,null,la().createElement("h2",null,a["aria-label"])),u.children,la().createElement(hG,null,la().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),g0=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,gq);let{locale:n}=fy(),r=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:a,locale:o,visibleDuration:i={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=gW(t,n||null,r),[m,p]=(0,lr.useState)(null),f="center";if(c&&c.start&&c.end){let e=gj(hh(c.start),i,o,s,l).add(i).subtract({days:1});c.end.compare(e)>0&&(f="start")}let h=(0,lr.useRef)(null),[g,y]=(0,lr.useState)(null),v=(0,lr.useMemo)(()=>hI(s,g?.start),[s,g]),b=(0,lr.useMemo)(()=>hj(l,g?.end),[l,g]),w=gH({...u,value:c&&c.start,createCalendar:a,locale:o,visibleDuration:i,minValue:v,maxValue:b,selectionAlignment:e.selectionAlignment||f}),x=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(h.current={start:gZ(t,w,-1),end:gZ(t,w,1)},y(h.current)):(h.current=null,y(null))},[D,E]=(0,lr.useState)(w.visibleRange);hw(w.visibleRange.start,D.start)&&hw(w.visibleRange.end,D.end)||(x(m),E(w.visibleRange));let _=e=>{e?(p(e),x(e)):(p(null),x(null))},S=m?gK(m,w.focusedDate):c&&gK(c.start,c.end),k=t=>{if(e.isReadOnly)return;let n=gV(gB(t,v,b),w.visibleRange.start,e.isDateUnavailable);if(n)if(m){let e=gK(m,n);e&&d({start:gG(e.start,c?.start),end:gG(e.end,c?.end)}),_(null)}else _(n)},[C,P]=(0,lr.useState)(!1),{isDateUnavailable:T}=e,R=(0,lr.useMemo)(()=>!!c&&!m&&(!!(T&&(T(c.start)||T(c.end)))||gA(c.start,s,l)||gA(c.end,s,l)),[T,c,m,s,l]),N=e.isInvalid||"invalid"===e.validationState||R;return{...w,value:c,setValue:d,anchorDate:m,setAnchorDate:_,highlightedRange:S,validationState:N?"invalid":null,isValueInvalid:N,selectFocusedDate(){k(w.focusedDate)},selectDate:k,highlightDate(e){m&&w.setFocusedDate(e)},isSelected:e=>!!(S&&e.compare(S.start)>=0&&0>=e.compare(S.end)&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid:e=>w.isInvalid(e)||gA(e,h.current?.start,h.current?.end),isDragging:C,setDragging:P,clearSelection(){_(null),d(null)}}}({...e,locale:n,createCalendar:gM}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=function(e,t,n){let{commitBehavior:r="select",...a}=e,o=hz(a,t),i=(0,lr.useRef)(!1),s=(0,lr.useRef)("u">typeof window?window:null);hZ(s,"pointerdown",e=>{i.current=0===e.width&&0===e.height});let l={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.selectFocusedDate()};return hZ(s,"pointerup",e=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let a=e.target;n.current&&mU(n.current)&&(!mB(n.current,a)||!a.closest('button, [role="button"]'))&&l[r]()}),o.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&mB(n.current,e.relatedTarget)||!t.anchorDate||l[r]())},hZ(n,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),o}(e,r,t),u=mw({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return la().createElement("div",{...u,...a,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},la().createElement(mb,{values:[[p7,{slots:{previous:o,next:i}}],[ft,{"aria-hidden":!0,level:2,children:l}],[gX,r],[gq,e],[fn,{slots:{errorMessage:s}}]]},la().createElement(hG,null,la().createElement("h2",null,a["aria-label"])),u.children,la().createElement(hG,null,la().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),g1=(0,lr.createContext)(null),g4=(0,lr.forwardRef)(function(e,t){var n,r;let a=(0,lr.useContext)(gJ),o=(0,lr.useContext)(gX),i=mx(gY),s=mx(gq),l=null!=a?a:o,u=l.visibleRange.start;e.offset&&(u=u.add(e.offset));let c=null!=(n=null==i?void 0:i.firstDayOfWeek)?n:null==s?void 0:s.firstDayOfWeek,{gridProps:d,headerProps:m,weekDays:p}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:o}=fy(),i=hV(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=hF.get(t),u=hW({"aria-label":[s,i].filter(Boolean).join(", "),"aria-labelledby":l}),c=fT({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=fy(),m=(0,lr.useMemo)(()=>{let e=hO(hS(t.timeZone),d,a);return[...Array(7).keys()].map(n=>{let r=e.add({days:n}).toDate(t.timeZone);return c.format(r)})},[d,t.timeZone,c,a]),p=hA(n,d,a);return{gridProps:my(u,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m,weeksInMonth:p}}({startDate:u,endDate:hN(u),weekdayStyle:e.weekdayStyle,firstDayOfWeek:c},l);return la().createElement(g1.Provider,{value:{headerProps:m,weekDays:p,startDate:u,firstDayOfWeek:c}},la().createElement("table",{...mA(e),...d,ref:t,style:e.style,className:null!=(r=e.className)?r:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:la().createElement(la().Fragment,null,la().createElement(g2,null,e=>la().createElement(g3,null,e)),la().createElement(g6,null,e.children))))}),g2=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,{headerProps:o,weekDays:i}=(0,lr.useContext)(g1);return la().createElement("thead",{...mA(e),...o,ref:t,style:r,className:a||"react-aria-CalendarGridHeader"},la().createElement("tr",null,i.map((e,t)=>la().cloneElement(n(e),{key:t}))))}),g3=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e;return la().createElement("th",{...mA(e),ref:t,style:r,className:a||"react-aria-CalendarHeaderCell"},n)}),g6=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=(0,lr.useContext)(gJ),i=(0,lr.useContext)(gX),s=null!=o?o:i,{startDate:l,firstDayOfWeek:u}=(0,lr.useContext)(g1),{locale:c}=fy(),d=hA(l,c,u);return la().createElement("tbody",{...mA(e),ref:t,style:r,className:a||"react-aria-CalendarGridBody"},[...Array(d).keys()].map(e=>la().createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?la().cloneElement(n(e),{key:t}):la().createElement("td",{key:t})))))}),g5=(0,lr.forwardRef)(function({date:e,...t},n){var r,a,o;let i=(0,lr.useContext)(gJ),s=(0,lr.useContext)(gX),l=null!=i?i:s,{startDate:u}=null!=(r=(0,lr.useContext)(g1))?r:{startDate:l.visibleRange.start},c=(0,lr.useRef)(null),{cellProps:d,buttonProps:m,...p}=function(e,t,n){var r;let a,{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=hF.get(t),u=fF((r=fx)&&r.__esModule?r.default:r,"@react-aria/calendar"),c=fT({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hB(o),timeZone:t.timeZone}),d=t.isSelected(o),m=t.isCellFocused(o)&&!e.isOutsideMonth;i=i||t.isCellDisabled(o);let p=t.isCellUnavailable(o),f=!i&&!p,h=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&0>=o.compare(t.highlightedRange.end):t.value&&hb(t.value,o));h&&(d=!0),o=fD(o,hw);let g=(0,lr.useMemo)(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=hb(o,hS(t.timeZone)),v=(0,lr.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(hb(o,t.value.start)||hb(o,t.value.end))&&(e=l+", "),e+=c.format(g),y?e=u.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=u.format("dateSelected",{date:e})),t.minValue&&hb(o,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&hb(o,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[c,g,u,d,y,o,t,l]),b="";"anchorDate"in t&&m&&!t.isReadOnly&&f&&(b=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let w=h4(b),x=(0,lr.useRef)(!1),D=(0,lr.useRef)(!1),E=(0,lr.useRef)(void 0),{pressProps:_,isPressed:S}=pK({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(e){if(t.isReadOnly){t.setFocusedDate(o),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!h){if(hb(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),D.current=!0;return}else if(hb(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),D.current=!0;return}}let n=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0),x.current=!0};"touch"===e.pointerType?E.current=setTimeout(n,200):n()}},onPressEnd(){D.current=!1,x.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0)),"anchorDate"in t))if(D.current)t.setAnchorDate(o);else if(t.anchorDate&&!x.current)t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0));else{t.selectDate(o);let e=o.add({days:1});t.isInvalid(e)&&(e=o.subtract({days:1})),t.isInvalid(e)||(t.setFocusedDate(e),t.setFocused(!0))}}});i||(a=hb(o,t.focusedDate)?0:-1),(0,lr.useEffect)(()=>{m&&n.current&&(mj(n.current),"pointer"!==pa&&((e=document)=>e.activeElement)()===n.current&&hQ(n.current,{containingElement:hq(n.current)}))},[m,n]);let k=fT({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),C=(0,lr.useMemo)(()=>k.formatToParts(g).find(e=>"day"===e.type).value,[k,g]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":d||void 0,"aria-invalid":h||void 0},buttonProps:my(_,{onFocus(){i||(t.setFocusedDate(o),t.setFocused(!0))},tabIndex:a,role:"button","aria-disabled":!f||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?s:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&f&&t.highlightDate(o)},onPointerDown(e){let t=mV(e);t instanceof HTMLElement&&"releasePointerCapture"in t&&("hasPointerCapture"in t?t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId):t.releasePointerCapture(e.pointerId))},onContextMenu(e){e.preventDefault()}}),isPressed:S,isFocused:m,isSelected:d,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:0>o.compare(t.visibleRange.start)||o.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:C}}({date:e},l,c),{hoverProps:f,isHovered:h}=p6({...t,isDisabled:p.isDisabled}),{focusProps:g,isFocusVisible:y}=p0();y&&(y=p.isFocused);let v=(a=u,o=hy(o=e,a.calendar),a=hR(a),o=hR(o),a.era!==o.era||a.year!==o.year||a.month!==o.month),b=!1,w=!1;"highlightedRange"in l&&l.highlightedRange&&(b=hb(e,l.highlightedRange.start),w=hb(e,l.highlightedRange.end));let x=mw({...t,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:v,isFocusVisible:y,isSelectionStart:b,isSelectionEnd:w,...p}}),D={"data-focused":p.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":p.isInvalid||void 0};return la().createElement("td",{...d,ref:n},la().createElement("div",{...my(mA(t),m,g,f,D,x),ref:c}))}),g9=(0,lr.createContext)({}),g8=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,g9);let{isDisabled:a,isInvalid:o,onHoverStart:i,onHoverChange:s,onHoverEnd:l,...u}=e,{hoverProps:c,isHovered:d}=p6({onHoverStart:i,onHoverChange:s,onHoverEnd:l,isDisabled:a}),{isFocused:m,isFocusVisible:p,focusProps:f}=p0({within:!0});null!=a||(a=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=mw({...e,values:{isHovered:d,isFocusWithin:m,isFocusVisible:p,isDisabled:a,isInvalid:o},defaultClassName:"react-aria-Group"});return la().createElement("div",{...my(u,f,c),...h,ref:t,role:null!=(n=e.role)?n:"group",slot:null!=(r=e.slot)?r:void 0,"data-focus-within":m||void 0,"data-hovered":d||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-invalid":o||void 0},h.children)}),g7=(0,lr.createContext)({}),ye=p9(function(e,t){[e,t]=mD(e,t,g7);let{hoverProps:n,isHovered:r}=p6(e),{isFocused:a,isFocusVisible:o,focusProps:i}=p0({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=mw({...e,values:{isHovered:r,isFocused:a,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return la().createElement("input",{...my((e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a})(e),i,n),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})});function yt(e,t,n,r){return e.createTreeWalker(t,n,r)}let yn=la().createContext(null),yr="react-aria-focus-scope-restore",ya=null;function yo(e){var t,n,r,a,o,i,s,l,u,c;let d,m,p,f,{children:h,contain:g,restoreFocus:y,autoFocus:v}=e,b=(0,lr.useRef)(null),w=(0,lr.useRef)(null),x=(0,lr.useRef)([]),{parentNode:D}=(0,lr.useContext)(yn)||{},E=(0,lr.useMemo)(()=>new yw({scopeRef:x}),[x]);mn(()=>{let e=D||yx.root;if(yx.getTreeNode(e.scopeRef)&&ya&&!yc(ya,e.scopeRef)){let t=yx.getTreeNode(ya);t&&(e=t)}e.addChild(E),yx.addNode(E)},[E,D]),mn(()=>{let e=yx.getTreeNode(x);e&&(e.contain=!!g)},[g]),mn(()=>{let e=b.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==w.current;)t.push(e),e.addEventListener(yr,n),e=e.nextSibling;return x.current=t,()=>{for(let e of t)e.removeEventListener(yr,n)}},[h]),mn(()=>{if(n||r)return;let e=t.current,a=mL(e?e[0]:void 0),o=e=>{let n=mV(e);yl(n,t.current)?ya=t:yu(n)||(ya=null)};return a.addEventListener("focusin",o,!1),e?.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),e?.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t=x,n=y,r=g]),a=x,o=g,d=(0,lr.useRef)(void 0),m=(0,lr.useRef)(void 0),mn(()=>{let e=a.current;if(!o){m.current&&(cancelAnimationFrame(m.current),m.current=void 0);return}let t=mL(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!ys(a)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=a.current;if(!r||!yl(n,r))return;let o=yg(yi(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&(yd(i,!0),i instanceof mF(i).HTMLInputElement&&i.select())},r=e=>{(!ya||yc(ya,a))&&yl(mV(e),a.current)?(ya=a,d.current=mV(e)):ys(a)&&!yu(mV(e),a)?d.current?d.current.focus():ya&&ya.current&&yp(ya.current):ys(a)&&(d.current=mV(e))},i=e=>{m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{let n=pa,r=("virtual"===n||null===n)&&pe()&&m7(),o=((e=document)=>e.activeElement)(t);if(!r&&o&&ys(a)&&!yu(o,a)){ya=a;let t=mV(e);t&&t.isConnected?(d.current=t,d.current?.focus()):ya.current&&yp(ya.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1)),e?.forEach(e=>e.removeEventListener("focusout",i,!1))}},[a,o]),mn(()=>()=>{m.current&&cancelAnimationFrame(m.current)},[m]),i=x,s=y,l=g,p=(0,lr.useRef)("u">typeof document?((e=document)=>e.activeElement)(mL(i.current?i.current[0]:void 0)):null),mn(()=>{let e=i.current,t=mL(e?e[0]:void 0);if(!s||l)return;let n=()=>{(!ya||yc(ya,i))&&yl(((e=document)=>e.activeElement)(t),i.current)&&(ya=i)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[i,l]),mn(()=>{let e=mL(i.current?i.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!ys(i)||t.isComposing)return;let n=e.activeElement;if(!yu(n,i)||!yf(i))return;let r=yx.getTreeNode(i);if(!r)return;let a=r.nodeToRestore,o=yg(e.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!s||!yu(s,i))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(yu(s,i));(t.preventDefault(),t.stopPropagation(),s)?yd(s,!0):yu(a)?yd(a,!0):n.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[i,s,l]),mn(()=>{let e=mL(i.current?i.current[0]:void 0);if(!s)return;let t=yx.getTreeNode(i);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=yx.getTreeNode(i);if(!t)return;let n=t.nodeToRestore,r=((e=document)=>e.activeElement)(e);if(s&&n&&(r&&yu(r,i)||r===e.body&&yf(i))){let t=yx.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(i);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void yh(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(i);e;){if(e.scopeRef&&e.scopeRef.current&&yx.getTreeNode(e.scopeRef))return void yh(ym(e.scopeRef.current,!0));e=e.parent}}})}}},[i,s]),u=x,c=v,f=la().useRef(c),(0,lr.useEffect)(()=>{f.current&&(ya=u,!yl(((e=document)=>e.activeElement)(mL(u.current?u.current[0]:void 0)),ya.current)&&u.current&&yp(u.current)),f.current=!1},[u]),(0,lr.useEffect)(()=>{let e=((e=document)=>e.activeElement)(mL(x.current?x.current[0]:void 0)),t=null;if(yl(e,x.current)){for(let n of yx.traverse())n.scopeRef&&yl(e,n.scopeRef.current)&&(t=n);t===yx.getTreeNode(x)&&(ya=t.scopeRef)}},[x]),mn(()=>()=>{let e=yx.getTreeNode(x)?.parent?.scopeRef??null;(x===ya||yc(x,ya))&&(!e||yx.getTreeNode(e))&&(ya=e),yx.removeTreeNode(x)},[x]);let _=(0,lr.useMemo)(()=>{var e;return e=x,{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:o,accept:i}=t,s=r||((e=document)=>e.activeElement)(mL(n[0]??void 0)),l=n[0].previousElementSibling,u=yg(yi(n),{tabbable:a,accept:i},n);u.currentNode=yl(s,n)?s:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&yd(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:o,accept:i}=t,s=r||((e=document)=>e.activeElement)(mL(n[0]??void 0)),l=n[n.length-1].nextElementSibling,u=yg(yi(n),{tabbable:a,accept:i},n);u.currentNode=yl(s,n)?s:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&yd(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=yg(yi(n),{tabbable:r,accept:a},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&yd(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=yg(yi(n),{tabbable:r,accept:a},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&yd(i,!0),i}}},[]),S=(0,lr.useMemo)(()=>({focusManager:_,parentNode:E}),[E,_]);return la().createElement(yn.Provider,{value:S},la().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:b}),h,la().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:w}))}function yi(e){return e[0].parentElement}function ys(e){let t=yx.getTreeNode(ya);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function yl(e,t){return!!e&&!!t&&t.some(t=>mB(t,e))}function yu(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of yx.traverse(yx.getTreeNode(t)))if(n&&yl(e,n.current))return!0;return!1}function yc(e,t){let n=yx.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function yd(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{p_(e)}catch{}}function ym(e,t=!0){let n=e[0].previousElementSibling,r=yi(e),a=yg(r,{tabbable:t},e);a.currentNode=n;let o=a.nextNode();return t&&!o&&((a=yg(r=yi(e),{tabbable:!1},e)).currentNode=n,o=a.nextNode()),o}function yp(e,t=!0){yd(ym(e,t))}function yf(e){let t=yx.getTreeNode(ya);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function yh(e){e.dispatchEvent(new CustomEvent(yr,{bubbles:!0,cancelable:!0}))&&yd(e)}function yg(e,t,n){let r=t?.tabbable?mY:mZ,a=mL(e?.nodeType===Node.ELEMENT_NODE?e:null),o=yt(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>mB(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(mL(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=mF(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===o.currentNode.tagName&&"radio"===o.currentNode.type&&o.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||yl(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(o.currentNode=t.from),o}function yy(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(mL(r)),u=yg(r,{tabbable:o,accept:s});mB(r,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&i&&(u.currentNode=r,c=u.nextNode()),c&&yd(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(mL(r)),u=yg(r,{tabbable:o,accept:s});if(mB(r,l))u.currentNode=l;else{let e=yv(u);return e&&yd(e,!0),e??null}let c=u.previousNode();if(!c&&i){u.currentNode=r;let e=yv(u);if(!e)return null;c=e}return c&&yd(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=yg(r,{tabbable:a,accept:o}).nextNode();return i&&yd(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=yv(yg(r,{tabbable:a,accept:o}));return i&&yd(i,!0),i??null}}}function yv(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class yb{constructor(){this.fastMap=new Map,this.root=new yw({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let a=new yw({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&yl(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new yb;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class yw{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let yx=new yb;var yD={};function yE(e,t,n){let{direction:r}=fy(),a=(0,lr.useMemo)(()=>yy(t),[t]),o=()=>{if(!t.current)return;let e=window.event?mV(window.event):null,n=yg(t.current,{tabbable:!0});if(e&&(n.currentNode=e,e=n.previousNode()),!e){let t;do(t=n.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=n.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:i}=pK({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return my(i,{onKeyDown:o=>{if(mB(o.currentTarget,mV(o))&&(o.altKey&&("ArrowDown"===o.key||"ArrowUp"===o.key)&&"setOpen"in e&&(o.preventDefault(),o.stopPropagation(),e.setOpen(!0)),!n))switch(o.key){case"ArrowLeft":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=mV(o),n=y_(t.current,e.getBoundingClientRect().left,-1);n&&n.focus()}}else a.focusPrevious();break;case"ArrowRight":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=mV(o),n=y_(t.current,e.getBoundingClientRect().left,1);n&&n.focus()}}else a.focusNext()}}})}function y_(e,t,n){let r=yg(e,{tabbable:!0}),a=r.nextNode(),o=null,i=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<i&&(o=a,i=s),a=r.nextNode()}return o}function yS(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:o="label"}=e;t=mf(t);let i=mf(),s={};return n&&(r=r?`${i} ${r}`:i,s={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:s,fieldProps:hW({id:t,"aria-label":a,"aria-labelledby":r})}}(e),s=mh([!!t,!!n,r,a]),l=mh([!!t,!!n,r,a]);return{labelProps:o,fieldProps:i=my(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function yk(e,t,n){let r=pF(e=>{n&&!e.defaultPrevented&&n(t)});(0,lr.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",r),()=>{t?.removeEventListener("reset",r)}},[e])}function yC(e,t,n){let{validationBehavior:r,focus:a}=e;mn(()=>{if("native"===r&&n?.current&&!n.current.disabled){var e;let r,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,lr.useRef)(!1),i=pF(()=>{o.current||t.resetValidation()}),s=pF(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}(r)===n.current&&(a?a():n.current?.focus(),pa="keyboard",pc("keyboard",null));e.preventDefault()}),l=pF(()=>{t.commitValidation()});(0,lr.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&mV(window.event)instanceof MessagePort,r?.call(t),o.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),t?.addEventListener("reset",i),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),t?.removeEventListener("reset",i),t&&(t.reset=r)}},[n,r])}yD={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalend\xe1ř",day:"den",dayPeriod:"č\xe1st dne",endDate:"Konečn\xe9 datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měs\xedc",second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:"Poč\xe1tečn\xed datum",timeZoneName:"časov\xe9 p\xe1smo",weekday:"den v t\xfddnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xe6ra",hour:"time",minute:"minut",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xe5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xe4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xeda",dayPeriod:"a.\xa0m./p.\xa0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xeda de la semana",year:"a\xf1o"},"et-EE":{calendar:"Kalender",day:"p\xe4ev",dayPeriod:"enne/p\xe4rast l\xf5unat",endDate:"L\xf5ppkuup\xe4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xe4ev",timeZoneName:"ajav\xf6\xf6nd",weekday:"n\xe4dalap\xe4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xe4iv\xe4",dayPeriod:"vuorokaudenaika",endDate:"P\xe4\xe4ttymisp\xe4iv\xe4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xe4iv\xe4",timeZoneName:"aikavy\xf6hyke",weekday:"viikonp\xe4iv\xe4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xe8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:"Date de d\xe9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xe9e"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xe1r",day:"nap",dayPeriod:"napszak",endDate:"Befejező d\xe1tum",era:"\xe9ra",hour:"\xf3ra",minute:"perc",month:"h\xf3nap",second:"m\xe1sodperc",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:"Kezdő d\xe1tum",timeZoneName:"időz\xf3na",weekday:"h\xe9t napja",year:"\xe9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xe5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xe9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xedcio",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:"Dată \xeenceput",timeZoneName:"fus orar",weekday:"ziua din săptăm\xe2nă",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalend\xe1r",day:"deň",dayPeriod:"AM/PM",endDate:"D\xe1tum ukončenia",era:"letopočet",hour:"hodina",minute:"min\xfata",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:"D\xe1tum začatia",timeZoneName:"časov\xe9 p\xe1smo",weekday:"deň t\xfdždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xe5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xe5r"},"tr-TR":{calendar:"Takvim",day:"g\xfcn",dayPeriod:"\xd6\xd6/\xd6S",endDate:"Bitiş Tarihi",era:"\xe7ağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:"Başlangı\xe7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın g\xfcn\xfc",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};let yP=new WeakMap,yT="__reactAriaDateFieldRole",yR="__reactAriaDateFieldFocusManager";function yN(e,t,n){var r;let a,{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=yS({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),m=(0,lr.useRef)(null),{focusWithinProps:p}=pQ({...e,onFocusWithin(n){m.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=fF((r=yD)&&r.__esModule?r.default:r,"@react-aria/datepicker"),h="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",g="hour"===t.maxGranularity?"time":"date",y=h4(t.value?f.format(h,{[g]:t.formatValue({month:"long"})}):""),v="presentation"===e[yT]?u["aria-describedby"]:[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=e[yR],w=(0,lr.useMemo)(()=>b||yy(n),[b,n]),x=yE(t,n,"presentation"===e[yT]);yP.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:w});let D=(0,lr.useRef)(e.autoFocus);a="presentation"===e[yT]?{role:"presentation"}:my(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),(0,lr.useEffect)(()=>{D.current&&w.focusFirst(),D.current=!1},[w]),yk(e.inputRef,t.defaultValue,t.setValue),yC({...e,focus(){w.focusFirst()}},t,e.inputRef);let E={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(E.type="text",E.hidden=!0,E.required=e.isRequired,E.onChange=()=>{});let _=mA(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:my(_,a,x,p,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:E,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:s}}var yO={};yO={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zah\xe1jen\xed mus\xed předch\xe1zet datu ukončen\xed.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybran\xe9 datum nen\xed k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xe6re f\xf8r slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xe6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuup\xe4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date s\xe9lectionn\xe9e n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő d\xe1tumnak a befejező d\xe1tumn\xe1l kor\xe1bbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiv\xe1lasztott d\xe1tum nem \xe9rhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xe0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xedcio deve ser anterior \xe0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de \xeenceput trebuie să fie anterioară datei de sf\xe2rșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"D\xe1tum začiatku mus\xed byť skorš\xed ako d\xe1tum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybrat\xfd d\xe1tum je nedostupn\xfd."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xe5ste vara f\xf6re slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xe4r inte tillg\xe4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Se\xe7ilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}};let y$={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},yM={...y$,customError:!0,valid:!1},yA={isInvalid:!1,validationDetails:y$,validationErrors:[]},yj=(0,lr.createContext)({}),yI="__reactAriaFormValidationState";function yL(e){if(e[yI]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}=e[yI];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:o,validate:i,validationBehavior:s="aria"}=e;n&&(t||="invalid"===n);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:yM}:null,u=(0,lr.useMemo)(()=>i&&null!=a?yB(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return yF(n)}return[]}(i,a)):null,[i,a]);o?.validationDetails.valid&&(o=void 0);let c=(0,lr.useContext)(yj),d=(0,lr.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>yF(c[e])):yF(c[r]):[],[c,r]),[m,p]=(0,lr.useState)(c),[f,h]=(0,lr.useState)(!1);c!==m&&(p(c),h(!1));let g=(0,lr.useMemo)(()=>yB(f?[]:d),[f,d]),y=(0,lr.useRef)(yA),[v,b]=(0,lr.useState)(yA),w=(0,lr.useRef)(yA),[x,D]=(0,lr.useState)(!1);return(0,lr.useEffect)(()=>{if(!x)return;D(!1);let e=u||o||y.current;yV(e,w.current)||(w.current=e,b(e))}),{realtimeValidation:l||g||u||o||yA,displayValidation:"native"===s?l||g||v:l||g||u||o||v,updateValidation(e){"aria"!==s||yV(v,e)?y.current=e:b(e)},resetValidation(){yV(yA,w.current)||(w.current=yA,b(yA)),"native"===s&&D(!1),h(!0)},commitValidation(){"native"===s&&D(!0),h(!0)}}}(e)}function yF(e){return e?Array.isArray(e)?e:[e]:[]}function yB(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:yM}:null}function yV(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function yU(...e){let t=new Set,n=!1,r={...y$};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in n||=a.isInvalid,r)r[e]||=a.validationDetails[e]}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}let yW=new f$((Q=yO)&&Q.__esModule?Q.default:Q);function yH(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function yz(e,t,n,r,a){let o=null!=e&&null!=n&&e.compare(n)>0,i=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&r?.(e)||!1,l=o||i||s,u=[];if(l){let e=yH(),r=new fj(e,f$.getGlobalDictionaryForPackage("@react-stately/datepicker")||yW),l=new f_(e,yZ({},a)),c=l.resolvedOptions().timeZone;i&&null!=t&&u.push(r.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),o&&null!=n&&u.push(r.format("rangeOverflow",{maxValue:l.format(n.toDate(c))})),s&&u.push(r.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let yK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},yG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yZ(e,t){e={...t.shouldForceLeadingZeros?yG:yK,...e};let n=t.granularity||"minute",r=Object.keys(e),a=r.indexOf(t.maxGranularity??"year");a<0&&(a=0);let o=r.indexOf(n);if(o<0&&(o=2),a>o)throw Error("maxGranularity must be greater than granularity");let i=r.slice(a,o+1).reduce((t,n)=>(t[n]=e[n],t),{});return null!=t.hourCycle&&(i.hour12=12===t.hourCycle),i.timeZone=t.timeZone||"UTC",("hour"===n||"minute"===n||"second"===n)&&t.timeZone&&!t.hideTimeZone&&(i.timeZoneName="short"),t.showEra&&0===a&&(i.era="short"),i}function yY(e){return e&&"hour"in e?e:new ha}function yq(e,t){return null===e?null:e?hy(e,t):void 0}function yJ(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[a,o]=(0,lr.useState)([r,n]);return e&&(a[0]!==r||a[1]!==n)&&o([r,n]),t||(t=e?r:a[0]),[t,e?n:a[1]]}let yX=new f$({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"\xf1\xf1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xe9\xe9\xe9\xe9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xe1\xe1\xe1\xe1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class yQ{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset="offset"in(n??{})?n.offset:null,null!=this.hour){let[e,n]=y1(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let e=new yQ(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,n]=y1(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,n){let r=this.copy();return r[e]=t,"hour"===e&&null==r.dayPeriod&&"hour"in n&&(r.dayPeriod=y1(n.hour,this.hourCycle)[0]),"year"===e&&null==r.era&&(r.era=n.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let a=this.copy();if(null==a[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in n){let[e,t]=y1(n.hour,this.hourCycle);a.dayPeriod=e,a.hour=t}else a[e]=n[e];return"year"===e&&null==a.era&&(a.era=n.era),a}switch(e){case"era":{let e=this.calendar.getEras(),n=e.indexOf(a.era);n=y0(n,t,0,e.length-1),a.era=e[n];break}case"year":{let r=new hr(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);a.era=(r=r.cycle(e,t,{round:"year"===e})).era,a.year=r.year;break}case"month":a.month=y0(a.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=y0(a.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=r.some(e=>["year","month","day"].includes(e));if("timeZone"in n&&(!e||null!=a.year&&null!=a.month&&null!=a.day)){let e=this.toValue(n),[r,o]=y1((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);a.hour=o,a.dayPeriod=r,a.offset=e.offset}else{let e=a.hour??0,r=this.getSegmentLimits("hour");a.hour=y0(e,t,r.minValue,r.maxValue),null==a.dayPeriod&&"hour"in n&&(a.dayPeriod=y1(n.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=y0(a.dayPeriod??0,t,0,1);break;case"minute":a.minute=y0(a.minute??0,t,0,59,!0);break;case"second":a.second=y0(a.second??0,t,0,59,!0)}return a}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,n){switch(n){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in n&&null!=this.offset&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function y0(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function y1(e,t){let n=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}var y4=n(9264);let y2={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},y3={year:5,month:2,day:7,hour:2,minute:15,second:15},y6={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function y5(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:a=!1,isReadOnly:o=!1,isRequired:i=!1,minValue:s,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[d,m]=yJ(c,e.granularity),p=m||"UTC";if(c&&!(d in c))throw Error("Invalid granularity "+d+" for value "+c.toString());let[f,h]=(0,lr.useMemo)(()=>{let r=new f_(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,y]=gW(e.value,e.defaultValue??null,e.onChange),[v]=(0,lr.useState)(g),b=(0,lr.useMemo)(()=>yq(g,f)??null,[g,f]),[w,x]=(0,lr.useState)(()=>new yQ(f,h,b)),D="gregory"===f.identifier&&"BC"===w.era,E=(0,lr.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:D,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,m,r,D]),_=(0,lr.useMemo)(()=>yZ({},E),[E]),S=(0,lr.useMemo)(()=>new f_(t,_),[t,_]),k=(0,lr.useMemo)(()=>S.resolvedOptions(),[S]),C=(0,lr.useMemo)(()=>(function(e,t,n,r){if(e)return yq(e,n);let a=hy(h_(r??hT()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?hh(a):r?a:hg(a)})(e.placeholderValue,d,f,m),[e.placeholderValue,d,f,m]),P=(0,lr.useMemo)(()=>{let t="h11"===h||"h12"===h,n=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],r=n.indexOf(e.maxGranularity||"era"),a=n.indexOf("hour"===d&&t?"dayPeriod":d);return n.slice(r,a+1)},[e.maxGranularity,d,h]),[T,R]=(0,lr.useState)(b),[N,O]=(0,lr.useState)(f),[$,M]=(0,lr.useState)(h);b===T&&h===$&&hx(f,N)||(w=new yQ(f,h,b),R(b),O(f),M(h),x(w));let A=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof yQ&&t.isCleared(P))x(new yQ(f,h,b)),y(null);else if(t instanceof yQ){if(t.isComplete(P)){let e=t.toValue(b??C);if(t.validate(e,P)){let t=hy(e,c?.calendar||new fK);if(!g||0!==t.compare(g)){x(new yQ(f,h,b)),y(t);return}}}x(t)}else t=hy(t,c?.calendar||new fK),x(new yQ(f,h,b)),y(t)},j=(0,lr.useMemo)(()=>w.toValue(b??C).toDate(p),[w,p,b,C]),I=(0,lr.useMemo)(()=>(function(e,t,n,r,a,o,i){let s=["hour","minute","second"],l=n.formatToParts(e),u=new(0,y4.K)(o,{useGrouping:!1}),c=new(0,y4.K)(o,{useGrouping:!1,minimumIntegerDigits:2});for(let e of l)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let n=t[e.type]??0;"2-digit"===r[e.type]?e.value=c.format(n):e.value=u.format(n)}let d=[];for(let e of l){var m;let n=y6[e.type]||e.type,r=y2[n];"era"===n&&1===a.getEras().length&&(r=!1);let l=y2[n]&&null==t[e.type],u=y2[n]?(m=e.value,"era"===n||"dayPeriod"===n?m:"year"===n||"month"===n||"day"===n?yX.getStringForLocale(n,o):"––"):null,c={type:n,text:l?u:e.value,...t.getSegmentLimits(n),isPlaceholder:l,placeholder:u,isEditable:r};"hour"===n?(d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),d.push(c),n===i&&d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(n)&&n===i?(d.push(c),d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(j,w,S,k,f,t,d),[j,S,k,w,f,t,d]),L=(e,t)=>{A(w.cycle(e,t,C,P))},F=(0,lr.useMemo)(()=>yz(g,s,l,u,E),[g,s,l,u,E]),B=yL({...e,value:g,builtinValidation:F}),V=B.displayValidation.isInvalid,U=e.validationState||(V?"invalid":null);return{...B,value:b,defaultValue:e.defaultValue??v,dateValue:j,calendar:f,setValue:A,segments:I,dateFormatter:S,validationState:U,isInvalid:V,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:a,isReadOnly:o,isRequired:i,increment(e){L(e,1)},decrement(e){L(e,-1)},incrementPage(e){L(e,y3[e]||1)},decrementPage(e){L(e,-(y3[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===h?11:w.getSegmentLimits(e).maxValue;A(w.set(e,t,C))},decrementToMin(e){let t="hour"===e&&"h12"===h?12:w.getSegmentLimits(e).minValue;A(w.set(e,t,C))},setSegment(e,t){A(w.set(e,t,C))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&w.isComplete(P)){let e=hy(w.toValue(b??C),c?.calendar||new fK);g&&0===e.compare(g)||y(e),x(new yQ(f,h,b))}},clearSegment(e){let t=w;"timeZoneName"!==e&&"literal"!==e&&(t=w.clear(e)),A(t)},formatValue:e=>b?new f_(t,yZ(e,E)).format(j):"",getDateFormatter:(e,t)=>new f_(e,yZ({},{...E,...t}))}}let y9=(0,lr.createContext)(null),y8=(0,lr.createContext)(null),y7=(0,lr.createContext)(null),ve=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(y8),r=(0,lr.useContext)(y7);return n||r?la().createElement(vn,{...e,ref:t}):la().createElement(vt,{...e,ref:t})}),vt=(0,lr.forwardRef)((e,t)=>{let[n,r]=mD({slot:e.slot},t,y9),{locale:a}=fy(),o=y5({...n,locale:a,createCalendar:gM}),i=(0,lr.useRef)(null),{fieldProps:s,inputProps:l}=yN({...n,inputRef:i},o,r);return la().createElement(mb,{values:[[y8,o],[g7,{...l,ref:i}],[g9,{...s,ref:r,isInvalid:o.isInvalid}]]},la().createElement(vn,e))}),vn=(0,lr.forwardRef)((e,t)=>{let{className:n,children:r}=e,a=(0,lr.useContext)(y8),o=(0,lr.useContext)(y7),i=null!=a?a:o;return la().createElement(la().Fragment,null,la().createElement(g8,{...e,ref:t,slot:e.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:i.isInvalid},i.segments.map((e,t)=>(0,lr.cloneElement)(r(e),{key:t}))),la().createElement(ye,null))});function vr({children:e}){let t=(0,lr.useMemo)(()=>({register:()=>{}}),[]);return la().createElement(pI.Provider,{value:t},e)}la().forwardRef(({children:e,...t},n)=>{let r=(0,lr.useRef)(!1),a=(0,lr.useContext)(pI),o=my(a||{},{...t,register(){r.current=!0,a&&a.register()}});return o.ref=d8(n||a?.ref),pC(a,o.ref),(0,lr.useEffect)(()=>{r.current||(r.current=!0)},[]),la().createElement(pI.Provider,{value:o},e)});let va=(0,lr.createContext)({}),vo=la().createContext(null);function vi(e){let t=md(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,o]=(0,lr.useState)(!1),i=(0,lr.useMemo)(()=>({contain:a,setContain:o}),[a,o]),{getContainer:s}=(0,lr.useContext)(va)??{};if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=la().createElement(yo,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},l)),l=la().createElement(vo.Provider,{value:i},la().createElement(vr,null,l)),pV.createPortal(l,n)}let vs=(0,lr.createContext)(null),vl=(0,lr.createContext)(null),vu=(0,lr.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=mD(e,t,vs);let{dialogProps:r,titleProps:a}=function(e,t){let n,r,{role:a="dialog"}=e,o=mh();o=e["aria-label"]?void 0:o;let i=(0,lr.useRef)(!1);return(0,lr.useEffect)(()=>{if(t.current&&!mU(t.current)){p_(t.current);let e=setTimeout(()=>{(((e=document)=>e.activeElement)()===t.current||((e=document)=>e.activeElement)()===document.body)&&(i.current=!0,t.current&&(t.current.blur(),p_(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),n=(0,lr.useContext)(vo),mn(()=>{r?.(!0)},[r=n?.setContain]),(0,lr.useRef)(!1),(0,lr.useEffect)(()=>{}),{dialogProps:{...mA(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":n},t),o=(0,lr.useContext)(vl);r["aria-label"]||r["aria-labelledby"]||(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let i=mw({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==o?void 0:o.close)||(()=>{})}});return la().createElement("section",{...mA(e),...r,...i,ref:t,slot:e.slot||void 0},la().createElement(mb,{values:[[ft,{slots:{[mv]:{},title:{...a,level:2}}}],[p7,{slots:{[mv]:{},close:{onPress:()=>null==o?void 0:o.close()}}}]]},i.children))}),vc=(0,lr.createContext)(null),vd=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(vc);return(null==n?void 0:n.isInvalid)?la().createElement(vm,{...e,ref:t}):null}),vm=(0,lr.forwardRef)((e,t)=>{let n=(0,lr.useContext)(vc),r=mA(e),a=mw({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==a.children?null:la().createElement(fr,{slot:"errorMessage",...r,...a,ref:t})}),vp=(0,lr.createContext)(null),vf=(0,lr.createContext)({}),vh=p9(function(e,t){[e,t]=mD(e,t,vf);let{elementType:n="label",...r}=e;return la().createElement(n,{className:"react-aria-Label",...r,ref:t})}),vg=(0,lr.createContext)({placement:"bottom"}),vy="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,vv=new WeakMap,vb=[];function vw(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function vx(e,t){let n=e,r=0,a=t.toString(),o=a.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=a.indexOf(".");e>=0&&(r=a.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function vD(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,o=vx(2*Math.abs(a)>=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(vx(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(vx((n-t)/r,r))*r),o=vx(o,r)}let vE={top:"top",bottom:"top",left:"left",right:"left"},v_={top:"bottom",bottom:"top",left:"right",right:"left"},vS={top:"left",left:"top"},vk={top:"height",left:"width"},vC={width:"totalWidth",height:"totalHeight"},vP={};function vT(e,t){let n=0,r=0,a=0,o=0,i=0,s=0,l={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;a=u.clientWidth,o=u.clientHeight,n=t?.width??a,r=t?.height??o,l.top=u.scrollTop||e.scrollTop,l.left=u.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,s=t.offsetLeft)}else({width:n,height:r,top:i,left:s}=vA(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,a=n,o=r;return m8()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,i=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:a,totalHeight:o,scroll:l,top:i,left:s}}function vR(e,t,n,r,a,o,i){let s=a.scroll[e]??0,l=r[vk[e]],u=i[e]+r.scroll[vE[e]]+o,c=i[e]+r.scroll[vE[e]]+l-o,d=t-s+r.scroll[vE[e]]+i[e]-r[vE[e]],m=t-s+n+r.scroll[vE[e]]+i[e]-r[vE[e]];return d<u?u-d:m>c?Math.max(c-m,u-d):0}function vN(e){if(vP[e])return vP[e];let[t,n]=e.split(" "),r=vE[t]||"right",a=vS[r];vE[n]||(n="center");let o=vk[r],i=vk[a];return vP[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:o,crossSize:i},vP[e]}function vO(e,t,n,r,a,o,i,s,l,u,c){let{placement:d,crossPlacement:m,axis:p,crossAxis:f,size:h,crossSize:g}=r,y={};y[f]=e[f]??0,"center"===m?y[f]+=((e[g]??0)-(n[g]??0))/2:m!==f&&(y[f]+=(e[g]??0)-(n[g]??0)),y[f]+=o;let v=e[f]-n[g]+l+u,b=e[f]+e[g]-l-u;if(y[f]=vw(y[f],v,b),d===p){let t=s?c[h]:c[vC[h]];y[v_[p]]=Math.floor(t-e[p]+a)}else y[p]=Math.floor(e[p]+e[h]+a);return y}function v$(e,t,n,r,a,o,i,s){let{placement:l,axis:u,size:c}=o;return l===u?Math.max(0,n[u]-(i.scroll[u]??0)-(e[u]+(s?t[u]:0))-(r[u]??0)-r[v_[u]]-a):Math.max(0,e[c]+e[u]+(s?t[u]:0)-n[u]-n[c]+(i.scroll[u]??0)-(r[u]??0)-r[v_[u]]-a)}function vM(e,t){let{top:n,left:r,width:a,height:o}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,o=e.offsetHeight),{top:n,left:r,width:a,height:o}}function vA(e,t){let{top:n,left:r,width:a,height:o}=vM(e,t),{scrollTop:i,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+i-l,left:r+s-u,width:a,height:o}}function vj(e,t,n){let r,a=window.getComputedStyle(e);if("fixed"===a.position)r=vM(e,n);else{r=vA(e,n);let a=vA(t,n),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=a.top,r.left-=a.left}return r.top-=parseInt(a.marginTop,10)||0,r.left-=parseInt(a.marginLeft,10)||0,r}function vI(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let vL=new WeakMap;function vF(e){let{ref:t,box:n,onResize:r}=e,a=pF(r);(0,lr.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&a()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[t,n])}let vB="u">typeof document?window.visualViewport:null;function vV(e,t){if(e.button>0)return!1;let n=mV(e);if(n){let e=n.ownerDocument;if(!e||!mB(e.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let vU=[],vW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vH(e){return e instanceof HTMLInputElement&&!vW.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let vz="u">typeof document&&window.visualViewport,vK=0;function vG(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vZ(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vY(e,t){t||!vz?vq(e):vz.addEventListener("resize",()=>vq(e),{once:!0})}function vq(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=hq(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;vz&&(n=Math.min(n,vz.offsetTop+vz.height));let a=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+a)),behavior:"smooth"})}}n=e.parentElement}}var vJ={};function vX(e){var t;let{onDismiss:n,...r}=e,a=hW(r,fF((t=vJ)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return la().createElement(hG,null,la().createElement("button",{...a,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function vQ(e,t,n){mn(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,pV.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}vJ={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xdfen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xf5peta"},"fi-FI":{dismiss:"Hylk\xe4\xe4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xedt\xe1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let v0=null,v1=new Set,v4=new Map,v2=!1,v3=!1;function v6(e,t){for(let n of v1)n(e,t)}function v5(e){v2=!0,e.metaKey||!m3()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(v0="keyboard",v6("keyboard",e))}function v9(e){v0="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(v2=!0,v6("pointer",e))}function v8(e){pn(e)&&(v2=!0,v0="virtual")}function v7(e){e.target!==window&&e.target!==document&&e.isTrusted&&(v2||v3||(v0="virtual",v6("virtual",e)),v2=!1,v3=!1)}function be(){v2=!1,v3=!0}function bt(e){if("u"<typeof window||v4.get(mF(e)))return;let t=mF(e),n=mL(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){v2=!0,r.apply(this,arguments)},n.addEventListener("keydown",v5,!0),n.addEventListener("keyup",v5,!0),n.addEventListener("click",v8,!0),t.addEventListener("focus",v7,!0),t.addEventListener("blur",be,!1),"u">typeof PointerEvent?(n.addEventListener("pointerdown",v9,!0),n.addEventListener("pointermove",v9,!0),n.addEventListener("pointerup",v9,!0)):(n.addEventListener("mousedown",v9,!0),n.addEventListener("mousemove",v9,!0),n.addEventListener("mouseup",v9,!0)),t.addEventListener("beforeunload",()=>{bn(e)},{once:!0}),v4.set(t,{focus:r})}let bn=(e,t)=>{let n=mF(e),r=mL(e);t&&r.removeEventListener("DOMContentLoaded",t),v4.has(n)&&(n.HTMLElement.prototype.focus=v4.get(n).focus,r.removeEventListener("keydown",v5,!0),r.removeEventListener("keyup",v5,!0),r.removeEventListener("click",v8,!0),n.removeEventListener("focus",v7,!0),n.removeEventListener("blur",be,!1),"u">typeof PointerEvent?(r.removeEventListener("pointerdown",v9,!0),r.removeEventListener("pointermove",v9,!0),r.removeEventListener("pointerup",v9,!0)):(r.removeEventListener("mousedown",v9,!0),r.removeEventListener("mousemove",v9,!0),r.removeEventListener("mouseup",v9,!0)),v4.delete(n))};function br(e){let[t,n]=gW(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,lr.useCallback)(()=>{n(!0)},[n]),a=(0,lr.useCallback)(()=>{n(!1)},[n]),o=(0,lr.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:o}}"u">typeof document&&("loading"!==(m=mL(void 0)).readyState?bt(void 0):m.addEventListener("DOMContentLoaded",()=>{bt(void 0)}));let ba=(0,lr.createContext)(null),bo=(0,lr.createContext)(null),bi=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,ba);let n=(0,lr.useContext)(vl),r=br(e),a=null==e.isOpen&&null==e.defaultOpen&&n?n:r,o=function(e,t){let[n,r]=(0,lr.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let a="exiting"===n;return vQ(e,a,(0,lr.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen)||e.isExiting||!1,i=(0,lr.useContext)(p5),{direction:s}=fy();if(i){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),la().createElement(la().Fragment,null,t)}return!a||a.isOpen||o?la().createElement(bs,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:s}):null});function bs({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var a,o;let i=(0,lr.useRef)(null),[s,l]=(0,lr.useState)(0),c=(0,lr.useRef)(null),d=(0,lr.useContext)(bo),m=d&&"SubmenuTrigger"===r.trigger;mn(()=>{i.current&&e.isOpen&&l(i.current.getBoundingClientRect().width)},[e.isOpen,i]);let{popoverProps:p,underlayProps:f,arrowProps:h,placement:g}=function(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:s,...l}=e,c="SubmenuTrigger"===l.trigger,{overlayProps:d,underlayProps:m}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e,l=(0,lr.useRef)(void 0);(0,lr.useEffect)(()=>{if(a&&!vU.includes(t))return vU.push(t),()=>{let e=vU.indexOf(t);e>=0&&vU.splice(e,1)}},[a,t]);let u=()=>{vU[vU.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,o=(0,lr.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=pF(e=>{n&&vV(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),s=pF(e=>{n&&n(e)});(0,lr.useEffect)(()=>{let e=o.current;if(r)return;let n=mL(t.current);if("u">typeof PointerEvent){let r=n=>{e.isPointerDown&&vV(n,t)&&s(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",i,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",i,!0),n.removeEventListener("click",r,!0)}}},[t,r])}({ref:t,onInteractOutside:o&&a?e=>{(!s||s(mV(e)))&&(vU[vU.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let n=vU[vU.length-1];l.current=n,(!s||s(mV(e)))&&n===t&&e.stopPropagation()}});let{focusWithinProps:c}=pQ({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||yu(e.relatedTarget,ya))&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:s},a??r),{overlayProps:p,arrowProps:f,placement:h,triggerAnchorPoint:g}=function(e){var t;let{direction:n}=fy(),{arrowSize:r,targetRef:a,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:l="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d="u">typeof document?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:v=0}=e,[b,w]=(0,lr.useState)(null),x=[f,l,o.current,a.current,i?.current,s.current,u,c,d,m,p,h,n,y,v,r],D=(0,lr.useRef)(vB?.scale);(0,lr.useEffect)(()=>{h&&(D.current=vB?.scale)},[h]);let E=(0,lr.useCallback)(()=>{var e;if(!1===f||!h||!o.current||!a.current||!d||vB?.scale!==D.current)return;let t=null;if(s.current&&mU(s.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),n=s.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-n.top}).offset>n.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-n.bottom)}let g=o.current;!y&&o.current&&(g.style.top="0px",g.style.bottom="",g.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let b=function(e){let t,n,{placement:r,targetNode:a,overlayNode:o,scrollNode:i,padding:s,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:m,arrowSize:p=0,arrowBoundaryOffset:f=0}=e,h="u">typeof document?window.visualViewport:null,g=o instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!vI(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!vI(t);)t=t.parentElement;return t||document.documentElement}(o):document.documentElement,y=g===document.documentElement,v=window.getComputedStyle(g).position,b=y?vA(a,!1):vj(a,g,!1);if(!y){let{marginTop:e,marginLeft:t}=window.getComputedStyle(a);b.top+=parseInt(e,10)||0,b.left+=parseInt(t,10)||0}let w=vA(o,!0),x={top:parseInt((t=window.getComputedStyle(o)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};w.width+=(x.left??0)+(x.right??0),w.height+=(x.top??0)+(x.bottom??0),i.scrollTop,i.scrollLeft,i.scrollWidth,i.scrollHeight;let D=vT(u,h),E=vT(g,h);if("BODY"!==u.tagName&&"HTML"!==u.tagName||y)n=("BODY"===u.tagName||"HTML"===u.tagName)&&y?{top:0,left:0,width:0,height:0}:vj(u,g,!1);else{let e=vM(g,!1);n={top:-(e.top-D.top),left:-(e.left-D.left),width:0,height:0}}return function(e,t,n,r,a,o,i,s,l,u,c,d,m,p,f,h,g){var y,v,b;let w,x,D,E=vN(e),{size:_,crossAxis:S,crossSize:k,placement:C,crossPlacement:P}=E,T=vO(t,i,n,E,u,c,l,d,p,f,s),R=u,N=v$(i,l,t,r,a+u,E,s,h);if(o&&n[_]>N){let e=vN(`${v_[C]} ${P}`),o=vO(t,i,n,e,u,c,l,d,p,f,s);v$(i,l,t,r,a+u,e,s,h)>N&&(E=e,T=o,R=u)}let O="bottom";"top"===E.axis?"top"===E.placement?O="top":"bottom"===E.placement&&(O="bottom"):"top"===E.crossAxis&&("top"===E.crossPlacement?O="bottom":"bottom"===E.crossPlacement&&(O="top"));let $=vR(S,T[S],n[k],i,s,a,l);T[S]+=$;let M=(y=T,v=n.height,b=O,w=(null!=y.top?y.top:s[vC.height]-(y.bottom??0)-v)-(s.scroll.top??0),x=h?l.top:0,D={top:Math.max(i.top+x,(g?.offsetTop??i.top)+x),bottom:Math.min(i.top+i.height+x,(g?.offsetTop??0)+(g?.height??0))},"top"!==b?Math.max(0,D.bottom-w-((r.top??0)+(r.bottom??0)+a)):Math.max(0,w+v-D.top-((r.top??0)+(r.bottom??0)+a)));m&&m<M&&(M=m),n.height=Math.min(n.height,M),$=vR(S,(T=vO(t,i,n,E,R,c,l,d,p,f,s))[S],n[k],i,s,a,l),T[S]+=$;let A={},j=t[S]-T[S]-r[vE[S]],I=j+.5*t[k],L=p/2+f,F="left"===vE[S]?(r.left??0)+(r.right??0):(r.top??0)+(r.bottom??0),B=n[k]-F-p/2-f,V=vw(I,t[S]+p/2-(T[S]+r[vE[S]]),t[S]+t[k]-p/2-(T[S]+r[vE[S]]));A[S]=vw(V,L,B),({placement:C,crossPlacement:P}=E),p?j=A[S]:"right"===P?j+=t[k]:"center"===P&&(j+=t[k]/2);let U="left"===C||"top"===C?n[_]:0,W={x:"top"===C||"bottom"===C?j:U,y:"left"===C||"right"===C?j:U};return{position:T,maxHeight:M,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:C,triggerAnchorPoint:W}}(r,b,w,x,s,l,D,E,n,c,d,!!v&&"static"!==v,m,p,f,mB(u,g),h)}({placement:(e=l,"rtl"===n?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:o.current,targetNode:a.current,scrollNode:s.current||o.current,padding:u,shouldFlip:c,boundaryElement:d,offset:m,crossOffset:p,maxHeight:y,arrowSize:r??(i?.current?vM(i.current,!0).width:0),arrowBoundaryOffset:v});if(!b.position)return;g.style.top="",g.style.bottom="",g.style.left="",g.style.right="",Object.keys(b.position).forEach(e=>g.style[e]=b.position[e]+"px"),g.style.maxHeight=null!=b.maxHeight?b.maxHeight+"px":"";let x=((e=document)=>e.activeElement)();if(t&&x&&s.current){let e=x.getBoundingClientRect(),n=s.current.getBoundingClientRect(),r=e[t.type]-n[t.type];s.current.scrollTop+=r-t.offset}w(b)},x);mn(E,x),mn(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=E]),vF({ref:o,onResize:E}),vF({ref:a,onResize:E});let _=(0,lr.useRef)(!1);mn(()=>{let e,t=()=>{_.current=!0,clearTimeout(e),e=setTimeout(()=>{_.current=!1},500),E()},n=()=>{_.current&&t()};return vB?.addEventListener("resize",t),vB?.addEventListener("scroll",n),()=>{vB?.removeEventListener("resize",t),vB?.removeEventListener("scroll",n)}},[E]);let S=(0,lr.useCallback)(()=>{_.current||g?.()},[g,_]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,lr.useEffect)(()=>{if(!n||null===r)return;let e=e=>{let n=mV(e);if(!t.current||n instanceof Node&&!mB(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let a=r||vL.get(t.current);a&&a()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}({triggerRef:a,isOpen:h,onClose:g&&S}),{overlayProps:{style:{position:b?"absolute":"fixed",top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b?.position,maxHeight:b?.maxHeight??"100vh"}},placement:b?.placement??null,triggerAnchorPoint:b?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b?.arrowOffsetLeft,top:b?.arrowOffsetTop}},updatePosition:E}}({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o&&!c?t.close:null});return!function(e={}){let{isDisabled:t}=e;mn(()=>{if(!t){let e,t,n,r,a,o,i,s;return 1==++vK&&(u=m9()?(t=vG(document.documentElement,"overflow","hidden"),n=!1,r=document.createElement("style"),(a=pj())&&(r.nonce=a),r.textContent=`
|
|
38
|
+
`.trim(),e.head.prepend(t)},[m]),(0,lr.useEffect)(()=>{let e=g.current;return()=>{for(let t of(d||p$(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||f,pressProps:my(p,P,{[pK]:!0})}}function pZ(e){return"A"===e.tagName&&e.hasAttribute("href")}function pY(e,t){let{key:n,code:r}=e,a=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof mF(t).HTMLInputElement&&!pQ(t,n)||t instanceof mF(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&pZ(t))&&"Enter"!==n)}function pq(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function pJ(e,t){return e instanceof HTMLInputElement?!pQ(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!pZ(e))}let pX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pQ(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:pX.has(e.type)}function p0(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,o=(0,lr.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=pB(),l=(0,lr.useCallback)(e=>{mB(e.currentTarget,mV(e))&&o.current.isFocusWithin&&!mB(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,o,s]),u=mQ(l),c=(0,lr.useCallback)(e=>{if(!mB(e.currentTarget,mV(e)))return;let t=mV(e),n=mL(t),s=((e=document)=>e.activeElement)(n);if(!o.current.isFocusWithin&&s===t){r&&r(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(n,"focus",e=>{let r=mV(e);if(o.current.isFocusWithin&&!mB(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});mX(e,t),l(mJ(e))}},{capture:!0})}},[r,a,u,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function p1(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:a}=e,o=(0,lr.useRef)({isFocused:!1,isFocusVisible:n||pv()}),[i,s]=(0,lr.useState)(!1),[l,u]=(0,lr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,lr.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,lr.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=pv(),s(e),c()},[c]);t={enabled:i,isTextInput:r},pg(),(0,lr.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,n)=>{var r;let a,i,s,l,u,d,m,p;r=!!t?.isTextInput,i=mL(a=n?mV(n):void 0),l=void 0!==(s=mF(a))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,m=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(i),(r=r||p instanceof l&&!pb.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&n instanceof m&&!pu[n.key]||(e=>{o.current.isFocusVisible=e,c()})(pv())};return po.add(e),()=>{po.delete(e)}},[r,i]);let{focusProps:m}=pS({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=p0({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:a?p:m}}let p4=!1,p2=0;function p3(e){"touch"===e.pointerType&&(p4=!0,setTimeout(()=>{p4=!1},500))}function p6(){let e=mL(null);if(void 0!==e)return 0===p2&&"u">typeof PointerEvent&&e.addEventListener("pointerup",p3),p2++,()=>{!(--p2>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",p3)}}function p5(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[o,i]=(0,lr.useState)(!1),s=(0,lr.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,lr.useEffect)(p6,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=pB(),{hoverProps:c,triggerHoverEnd:d}=(0,lr.useMemo)(()=>{let e=(e,t)=>{let a=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&a&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),i(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=r=>{p4&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,a||"touch"===o||s.isHovered||!mB(r.currentTarget,mV(r)))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,l(mL(mV(r)),"pointerover",t=>{s.isHovered&&s.target&&!mB(s.target,mV(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!a&&mB(t.currentTarget,mV(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,a,s,l,u]);return(0,lr.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:c,isHovered:o}}if("u">typeof HTMLTemplateElement){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}let p9=(0,lr.createContext)(!1);function p8(e){let t=(t,n)=>(0,lr.useContext)(p9)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,lr.forwardRef)(t)}let p7=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),fe=(0,lr.createContext)({}),ft=p8(function(e,t){var n;[e,t]=mD(e,t,fe);let r=((n=e).isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),e=n),{isPending:a}=r,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:m,href:p,target:f,rel:h,type:g="button"}=e;n="button"===r?{type:g,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==r||a?void 0:p,target:"a"===r?f:void 0,type:"input"===r?g:void 0,disabled:"input"===r?a:void 0,"aria-disabled":a&&"input"!==r?a:void 0,rel:"a"===r?h:void 0};let{pressProps:y,isPressed:v}=pG({onPressStart:i,onPressEnd:s,onPressChange:u,onPress:o,onPressUp:l,onClick:m,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:b}=pT(e,t);d&&(b.tabIndex=a?-1:b.tabIndex);let w=my(b,y,mA(e,{labelable:!0}));return{isPressed:v,buttonProps:my(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t),{focusProps:s,isFocused:l,isFocusVisible:u}=p1(e),{hoverProps:c,isHovered:d}=p5({...e,isDisabled:e.isDisabled||a}),m={isHovered:d,isPressed:(r.isPressed||i)&&!a,isFocused:l,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:null!=a&&a},p=mw({...e,values:m,defaultClassName:"react-aria-Button"}),f=mf(o.id),h=mf(),g=o["aria-labelledby"];a&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${f} ${h}`));let y=(0,lr.useRef)(a);return(0,lr.useEffect)(()=>{let e={"aria-labelledby":g||f};!y.current&&l&&a?mC(e,"assertive"):y.current&&l&&!a&&mC(e,"assertive"),y.current=a},[a,l,g,f]),la().createElement("button",{...mA(e,{propNames:p7}),...my(o,s,c),...p,type:"submit"===o.type&&a?"button":o.type,id:f,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":a||void 0,"data-focus-visible":u||void 0},la().createElement(mS.Provider,{value:{id:h}},p.children))});(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null),(0,lr.createContext)(null);let fn=(0,lr.createContext)({}),fr=(0,lr.createContext)({}),fa=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,fr);let{elementType:n="span",...r}=e;return la().createElement(n,{className:"react-aria-Text",...r,ref:t})}),fo=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fi=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function fs(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return fo.has(t.script)}let t=e.split("-")[0];return fi.has(t)}let fl=Symbol.for("react-aria.i18n.locale");function fu(){let e="u">typeof window&&window[fl]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:fs(e)?"rtl":"ltr"}}let fc=fu(),fd=new Set;function fm(){for(let e of(fc=fu(),fd))e(fc)}function fp(){let e=md(),[t,n]=(0,lr.useState)(fc);return((0,lr.useEffect)(()=>(0===fd.size&&window.addEventListener("languagechange",fm),fd.add(n),()=>{fd.delete(n),0===fd.size&&window.removeEventListener("languagechange",fm)}),[]),e)?{locale:"u">typeof window&&window[fl]||"en-US",direction:"ltr"}:t}let ff=la().createContext(null);function fh(e){let{locale:t,children:n}=e,r=la().useMemo(()=>({locale:t,direction:fs(t)?"rtl":"ltr"}),[t]);return la().createElement(ff.Provider,{value:r},n)}function fg(e){let{children:t}=e,n=fp();return la().createElement(ff.Provider,{value:n},t)}function fy(e){let{locale:t,children:n}=e;return t?la().createElement(fh,{locale:t,children:n}):la().createElement(fg,{children:n})}function fv(){let e=fp();return(0,lr.useContext)(ff)||e}let fb=null;function fw(e,t="assertive",n=7e3){fb?fb.announce(e,t,n):(fb=new fx,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?fb.announce(e,t,n):setTimeout(()=>{fb?.isAttached()&&fb?.announce(e,t,n)},100))}class fx{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}var fD={};function fE(e,t){let n=(0,lr.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}fD={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdběr rozsahu dat",maximumDate:"Posledn\xed dostupn\xe9 datum",minimumDate:"Prvn\xed dostupn\xe9 datum",next:"Dalš\xed",previous:"Předchoz\xed",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm zah\xe1j\xedte v\xfdběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xf8re valg af datoomr\xe5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xf8rste ledige dato",next:"N\xe6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xfcgbares Datum",minimumDate:"Erstes verf\xfcgbares Datum",next:"Weiter",previous:"Zur\xfcck",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xdaltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks",maximumDate:"Viimane saadaolev kuup\xe4ev",minimumDate:"Esimene saadaolev kuup\xe4ev",next:"J\xe4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimiseks",todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",maximumDate:"Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",minimumDate:"Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xe9lectionner la plage de dates",maximumDate:"Derni\xe8re date disponible",minimumDate:"Premi\xe8re date disponible",next:"Suivant",previous:"Pr\xe9c\xe9dent",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez",maximumDate:"Utols\xf3 el\xe9rhető d\xe1tum",minimumDate:"Az első el\xe9rhető d\xe1tum",next:"K\xf6vetkező",previous:"Előző",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xf8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xe5 starte valg av datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wyb\xf3r zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wyb\xf3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xe7\xe3o do intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xe7\xe3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xe7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"\xcenainte",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a \xeencepe selecţia razei pentru dată",todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdber rozsahu d\xe1tumov",maximumDate:"Posledn\xfd dostupn\xfd d\xe1tum",minimumDate:"Prv\xfd dostupn\xfd d\xe1tum",next:"Nasleduj\xface",previous:"Predch\xe1dzaj\xface",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xf6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xe4ngliga datum",minimumDate:"F\xf6rsta tillg\xe4ngliga datum",next:"N\xe4sta",previous:"F\xf6reg\xe5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xf6r att v\xe4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:"Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın",maximumDate:"Son m\xfcsait tarih",minimumDate:"İlk m\xfcsait tarih",next:"Sonraki",previous:"\xd6nceki",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın",todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let f_=new Map;class fS{constructor(e,t={}){this.formatter=fC(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==fT&&(fT="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),fT&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=fC(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===a)return"h23";if(24===r&&23===a)return"h24";if(0===r&&11===a)return"h11";if(12===r&&11===a)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}}let fk={true:{ja:"h11"},false:{}};function fC(e,t={}){if("boolean"==typeof t.hour12&&(null==fP&&(fP="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),fP)){let n=fk[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(f_.has(n))return f_.get(n);let r=new Intl.DateTimeFormat(e,t);return f_.set(n,r),r}let fP=null,fT=null;function fR(e){e=fE(e??{},fN);let{locale:t}=fv();return(0,lr.useMemo)(()=>new fS(t,e),[t,e])}function fN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}let fO=Symbol.for("react-aria.i18n.locale"),f$=Symbol.for("react-aria.i18n.strings");class fM{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let a=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[fO];if(void 0===d){let e=window[f$];if(!e)return null;for(let n in d={},e)d[n]=new fM({[t]:e[n]},t)}let n=d?.[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}let fA=new Map,fj=new Map;class fI{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let a=this.locale+":"+n,o=fA.get(a);return o||(o=new Intl.PluralRules(this.locale,{type:n}),fA.set(a,o)),"function"==typeof(r=t[o.select(e)]||t.other)?r():r}number(e){let t=fj.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),fj.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}}let fL=new WeakMap;function fF(e,t){let n;return t&&fM.getGlobalDictionaryForPackage(t)||((n=fL.get(e))||(n=new fM(e),fL.set(e,n)),n)}function fB(e,t){let{locale:n}=fv(),r=fF(e,t);return(0,lr.useMemo)(()=>new fI(n,r),[n,r])}function fV(e,t){return e-t*Math.floor(e/t)}function fU(e,t,n,r){let a=(t=fH(e,t))-1,o=-2;return n<=2?o=0:fW(t)&&(o=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+o+r)}function fW(e){return e%4==0&&(e%100!=0||e%400==0)}function fH(e,t){return"BC"===e?1-t:t}function fz(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let fK={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class fG{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),r=fV(t,146097),a=Math.floor(r/36524),o=fV(r,36524),i=Math.floor(o/1461),s=Math.floor(fV(o,1461)/365),[l,u]=fz(400*n+100*a+4*i+s+ +(4!==a&&4!==s)),c=e-fU(l,u,1,1),d=2;e<fU(l,u,3,1)?d=0:fW(u)&&(d=1);let m=Math.floor(((c+d)*12+373)/367),p=e-fU(l,u,m,1)+1;return new ha(l,u,m,p)}toJulianDay(e){return fU(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return fK[fW(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return fW(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}function fZ(e,t){let n=e.copy(),r="hour"in n?f3(n,t):0;fY(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,fq(n),fJ(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,fq(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,fq(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function fY(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function fq(e){for(;e.month<1;)fY(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,fY(e,1)}function fJ(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function fX(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),fJ(e)}function fQ(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function f0(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),fX(n),n}function f1(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),f4(n),n}function f4(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function f2(e,t){let n=e%t;return n<0&&(n+=t),n}function f3(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=f2(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=f2(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=f2(e.minute,60),n=Math.floor(e.hour/24),e.hour=f2(e.hour,24),n}function f6(e,t){let n=e.copy();return f3(n,t),n}function f5(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=f8(o,n,0,t.length-1,r?.round),a.era=t[o],fX(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=f8(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=f8(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=f8(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),fX(a),a}function f9(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if(r?.hourCycle===12){let e=t>=12;o=12*!!e,i=e?23:11}a.hour=f8(t,n,o,i,r?.round);break}case"minute":a.minute=f8(e.minute,n,0,59,r?.round);break;case"second":a.second=f8(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=f8(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function f8(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function f7(e,t){let n;return n=(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?hp(fZ(hy(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):hl(e)-e.offset)+(t.milliseconds||0),n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),hv(hh(n+=36e5*(t.hours||0),e.timeZone),e.calendar)}function he(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function ht(e){let t,n=hv(e,new fG);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function hn(e){return`${ht(e)}T${he(e)}`}function hr(e){let t,n="object"==typeof e[0]?e.shift():new fG;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class ha{#t;constructor(...e){let[t,n,r,a,o]=hr(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,fX(this)}copy(){return this.era?new ha(this.calendar,this.era,this.year,this.month,this.day):new ha(this.calendar,this.year,this.month,this.day)}add(e){return fZ(this,e)}subtract(e){return fZ(this,fQ(e))}set(e){return f0(this,e)}cycle(e,t,n){return f5(this,e,t,n)}toDate(e){return hf(this,e)}toString(){return ht(this)}compare(e){return hC(this,e)}}class ho{#t;constructor(e=0,t=0,n=0,r=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=r,f4(this)}copy(){return new ho(this.hour,this.minute,this.second,this.millisecond)}add(e){return f6(this,e)}subtract(e){return f6(this,fQ(e))}set(e){return f1(this,e)}cycle(e,t,n){return f9(this,e,t,n)}toString(){return he(this)}compare(e){var t,n;return t=this,n=e,hP(t)-hP(n)}}class hi{#t;constructor(...e){let[t,n,r,a,o]=hr(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,fX(this)}copy(){return this.era?new hi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new hi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return fZ(this,e)}subtract(e){return fZ(this,fQ(e))}set(e){return f0(f1(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return f5(this,e,t,n);default:return f9(this,e,t,n)}}toDate(e,t){return hf(this,e,t)}toString(){return hn(this)}compare(e){var t,n;let r=hC(this,e);return 0===r?(t=this,n=hy(e),hP(t)-hP(n)):r}}class hs{#t;constructor(...e){let[t,n,r,a,o]=hr(e),i=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=o,this.timeZone=i,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,fX(this)}copy(){return this.era?new hs(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hs(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return f7(this,e)}subtract(e){return f7(this,fQ(e))}set(e,t){let n,r;return 0===(r=f1(f0(n=hy(this),e),e)).compare(n)?this:hv(hh(hp(r,this.timeZone,t),this.timeZone),this.calendar)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,a=23;if(r?.hourCycle===12){let n=e.hour>=12;t=12*!!n,a=n?23:11}let o=hy(e),i=hv(f1(o,{hour:t}),new fG),s=[hp(i,e.timeZone,"earlier"),hp(i,e.timeZone,"later")].filter(t=>hh(t,e.timeZone).day===i.day)[0],l=hv(f1(o,{hour:a}),new fG),u=[hp(l,e.timeZone,"earlier"),hp(l,e.timeZone,"later")].filter(t=>hh(t,e.timeZone).day===l.day).pop(),c=hl(e)-e.offset,d=Math.floor(c/36e5),m=c%36e5;return hv(hh(c=36e5*f8(d,n,Math.floor(s/36e5),Math.floor(u/36e5),r?.round)+m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return f9(e,t,n,r);case"era":case"year":case"month":case"day":return hv(hh(hp(f5(hy(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){var e;return e=this,new Date(hl(e)-e.offset)}toString(){var e;let t,n,r,a,o;return`${hn(this)}${t=0>Math.sign(e=this.offset)?"-":"+",n=Math.floor((e=Math.abs(e))/36e5),r=Math.floor(e%36e5/6e4),a=Math.floor(e%36e5%6e4/1e3),o=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`,0!==a&&(o+=`:${String(a).padStart(2,"0")}`),o}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,t){if(e instanceof hs){var n,r;return e.timeZone===t?e:(n=e,r=t,hv(hh(hl(n)-n.offset,r),n.calendar))}return hh(hp(e,t,void 0),t)})(e,this.timeZone).toDate().getTime()}}function hl(e){return hu(fH((e=hv(e,new fG)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hu(e,t,n,r,a,o,i){let s=new Date;return s.setUTCHours(r,a,o,i),s.setUTCFullYear(e,t-1,n),s.getTime()}function hc(e,t){if("UTC"===t)return 0;if(e>0&&t===hR())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:o,minute:i,second:s}=hm(e,t);return hu(n,r,a,o,i,s,0)-1e3*Math.floor(e/1e3)}let hd=new Map;function hm(e,t){let n=hd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),hd.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function hp(e,t,n="compatible"){var r,a,o;let i=hy(e);if("UTC"===t)return hl(i);if(t===hR()&&"compatible"===n){i=hv(i,new fG);let e=new Date,t=fH(i.era,i.year);return e.setFullYear(t,i.month-1,i.day),e.setHours(i.hour,i.minute,i.second,i.millisecond),e.getTime()}let s=hl(i),l=hc(s-864e5,t),u=hc(s+864e5,t),c=(r=i,((a=s-l)==(o=s-u)?[a]:[a,o]).filter(e=>{var n;let a;return n=r,a=hm(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===c.length)return c[0];if(c.length>1)switch(n){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(s-l,s-u);case"compatible":case"later":return Math.max(s-l,s-u);case"reject":throw RangeError("No such absolute time found")}}function hf(e,t,n="compatible"){return new Date(hp(e,t,n))}function hh(e,t){let n=hc(e,t),r=new Date(e+n),a=r.getUTCFullYear();return new hs(a<1?"BC":"AD",a<1?-a+1:a,r.getUTCMonth()+1,r.getUTCDate(),t,n,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function hg(e){return new ha(e.calendar,e.era,e.year,e.month,e.day)}function hy(e,t){let n=0,r=0,a=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:a,millisecond:o}=t),new hi(e.calendar,e.era,e.year,e.month,e.day,n,r,a,o)}function hv(e,t){if(hD(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,fX(r),r}let hb={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function hw(e,t){return t=hv(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function hx(e,t){return hD(e.calendar,t.calendar)&&hw(e,t)}function hD(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}let hE={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function h_(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?hE[n]:function(e){let t=hA.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return hA.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=hM.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&hM.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&hb[n]||0};hA.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function hS(e){return hh(Date.now(),e)}function hk(e){return hg(hS(e))}function hC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function hP(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let hT=null;function hR(){return null==hT&&(hT=new Intl.DateTimeFormat().resolvedOptions().timeZone),hT}function hN(e){return e.subtract({days:e.day-1})}function hO(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function h$(e,t,n){let r=h_(e,t,n);return e.subtract({days:r})}let hM=new Map,hA=new Map;function hj(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((h_(hN(e),t,n)+r)/7)}function hI(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function hL(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function hF(e){return e&&e.__esModule?e.default:e}let hB=new WeakMap;function hV(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function hU(e,t,n,r){let a=fB(hF(fD),"@react-aria/calendar"),o=hV(e)||hV(t),i=fR({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=fR({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return(0,lr.useMemo)(()=>{if(hw(e,hN(e))){let o=e,s=t;if(e.calendar.getFormattableMonth&&(o=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),hw(t,hO(e)))return i.format(o.toDate(n));if(hw(t,hO(t)))return r?hW(i,a,o,s,n):i.formatRange(o.toDate(n),s.toDate(n))}return r?hW(s,a,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,s,a,n,r])}function hW(e,t,n,r,a){let o=e.formatRangeToParts(n.toDate(a),r.toDate(a)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<o.length;e++)e<i?s+=o[e].value:e>i&&(l+=o[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function hH(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=mf(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),r||a||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function hz(e,t){let n=(0,lr.useRef)(!0),r=(0,lr.useRef)(null),a=pF(e);(0,lr.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,lr.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&a(),r.current=t},t)}function hK(e,t){var n;let r,a,o,i,s,l=fB((n=fD)&&n.__esModule?n.default:n,"@react-aria/calendar"),u=mA(e),c=hU(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),d=hU(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);hz(()=>{t.isFocused||fw(d)},[d]);let m=(o=fB(hF(fD),"@react-aria/calendar"),"highlightedRange"in t?{start:r,end:a}=t.highlightedRange||{}:r=a=t.value??void 0,i=fR({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hV(r)||hV(a),timeZone:t.timeZone}),s="anchorDate"in t?t.anchorDate:null,(0,lr.useMemo)(()=>{if(!s&&r&&a)if(hw(r,a)){let e=i.format(r.toDate(t.timeZone));return o.format("selectedDateDescription",{date:e})}else{let e=hW(i,o,r,a,t.timeZone);return o.format("selectedRangeDescription",{dateRange:e})}return""},[r,a,s,t.timeZone,o,i]));hz(()=>{m&&fw(m,"polite",4e3)},[m]);let p=mh([!!e.errorMessage,e.isInvalid,e.validationState]);hB.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:p,selectedDateDescription:m});let[f,h]=(0,lr.useState)(!1),g=e.isDisabled||t.isNextVisibleRangeInvalid();g&&f&&(h(!1),t.setFocused(!0));let[y,v]=(0,lr.useState)(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();return b&&y&&(v(!1),t.setFocused(!0)),{calendarProps:my(u,hH({id:e.id,"aria-label":[e["aria-label"],d].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":l.format("next"),isDisabled:g,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":l.format("previous"),isDisabled:b,onFocusChange:v},errorMessageProps:{id:p},title:c}}let hG={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function hZ(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...o}=e,{visuallyHiddenProps:i}=function(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,lr.useState)(!1),{focusWithinProps:o}=p0({isDisabled:!n,onFocusWithinChange:e=>a(e)}),i=(0,lr.useMemo)(()=>r?t:t?{...hG,...t}:hG,[r]);return{visuallyHiddenProps:{...o,style:i}}}(e);return la().createElement(n,my(o,i),t)}function hY(e,t,n,r){let a=pF(n),o=null==n;(0,lr.useEffect)(()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,o])}function hq(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&"hidden"!==n.overflow&&(a=!0),a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function hJ(e,t){let n=e;for(hq(n,t)&&(n=n.parentElement);n&&!hq(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hX(e,t){let n=[],r=document.scrollingElement||document.documentElement;do hq(e,t)&&n.push(e),e=e.parentElement;while(e&&e!==r);return n}function hQ(e,t,n={}){let{block:r="nearest",inline:a="nearest"}=n;if(e===t)return;let o=e.scrollTop,i=e.scrollLeft,s=t.getBoundingClientRect(),l=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,m=e===d?0:l.top,p=e===d?e.clientHeight:l.bottom,f=e===d?0:l.left,h=e===d?e.clientWidth:l.right,g=parseInt(u.scrollMarginTop,10)||0,y=parseInt(u.scrollMarginBottom,10)||0,v=parseInt(u.scrollMarginLeft,10)||0,b=parseInt(u.scrollMarginRight,10)||0,w=parseInt(c.scrollPaddingTop,10)||0,x=parseInt(c.scrollPaddingBottom,10)||0,D=parseInt(c.scrollPaddingLeft,10)||0,E=parseInt(c.scrollPaddingRight,10)||0,_=parseInt(c.borderTopWidth,10)||0,S=parseInt(c.borderBottomWidth,10)||0,k=parseInt(c.borderLeftWidth,10)||0,C=parseInt(c.borderRightWidth,10)||0,P=s.top-g,T=s.bottom+y,R=s.left-v,N=s.right+b,O=e===d?0:k+C,$=e===d?0:_+S,M=e.offsetWidth-e.clientWidth-O,A=e.offsetHeight-e.clientHeight-$,j=m+_+w,I=p-S-x-A,L=f+k+D,F=h-C-E;"rtl"!==c.direction||m9()?F-=M:L+=M;let B=P<j||T>I,V=R<L||N>F;if(B&&"start"===r)o+=P-j;else if(B&&"center"===r)o+=(P+T)/2-(j+I)/2;else if(B&&"end"===r)o+=T-I;else if(B&&"nearest"===r){let e=P-j,t=T-I;o+=Math.abs(e)<=Math.abs(t)?e:t}if(V&&"start"===a)i+=R-L;else if(V&&"center"===a)i+=(R+N)/2-(L+F)/2;else if(V&&"end"===a)i+=N-F;else if(V&&"nearest"===a){let e=R-L,t=N-F;i+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:i,top:o})}function h0(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:r}=e.getBoundingClientRect(),a=hX(e,!0);for(let t of a)hQ(t,e);let{left:o,top:i}=e.getBoundingClientRect();if(Math.abs(t-o)>1||Math.abs(r-i)>1)for(let e of a=n?hX(n,!0):[])hQ(e,n,{block:"center",inline:"center"})}else{let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:a,top:o}=e.getBoundingClientRect();(Math.abs(t-a)>1||Math.abs(r-o)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let h1=0,h4=new Map;function h2(e){let[t,n]=(0,lr.useState)();return mn(()=>{if(!e)return;let t=h4.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${h1++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},h4.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),h4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}class h3 extends fG{fromJulianDay(e){let t=super.fromJulianDay(e);return new ha(this,fH(t.era,t.year)- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(h6(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(h6(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function h6(e){let[t,n]=fz(e.year+-543);return new ha(t,n,e.month,e.day)}function h5(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function h9(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-h5(e,n,1,1))/30),a=t+1-h5(e,n,r,1);return[n,r,a]}function h8(e){return Math.floor(e%4/3)}function h7(e,t){return t%13!=0?30:h8(e)+5}class ge{fromJulianDay(e){let[t,n,r]=h9(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new ha(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),h5(1723856,t,e.month,e.day)}getDaysInMonth(e){return h7(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+h8(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gt extends ge{fromJulianDay(e){let[t,n,r]=h9(1723856,e);return new ha(this,"AA",t+=5500,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class gn extends ge{fromJulianDay(e){let[t,n,r]=h9(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new ha(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),h5(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),h7(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let gr=765433;function ga(e){return 7>fV(7*e+1,19)}function go(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>fV(3*(n+1),7)&&(n+=1),n}function gi(e){let t,n;return go(e)+(t=go(e-1),n=go(e),go(e+1)-n==356?2:+(n-t==382))}function gs(e){return gi(e+1)-gi(e)}function gl(e,t){if(t>=6&&!ga(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=gs(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!ga(e):30}class gu{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/gr*19+234)/235)+1,r=gi(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=gi(--n)));let o=1,i=0;for(;i<a;)i+=gl(n,o),o++;let s=a-(i-=gl(n,--o));return new ha(this,n,o,s)}toJulianDay(e){let t=gi(e.year);for(let n=1;n<e.month;n++)t+=gl(e.year,n);return t+e.day+347997}getDaysInMonth(e){return gl(e.year,e.month)}getMonthsInYear(e){return ga(e.year)?13:12}getDaysInYear(e){return gs(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(ga(t.year)&&!ga(e.year)&&t.month>6?e.month--:!ga(t.year)&&ga(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class gc extends fG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),o=a.year-78,i=e-fU(a.era,a.year,1,1);if(i<80?(o--,i+=(t=fW(a.year-1)?31:30)+155+90+10):(t=fW(a.year)?31:30,i-=80),i<t)n=1,r=i+1;else{let e=i-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new ha(this,o,n,r)}toJulianDay(e){let t,n,[r,a]=fz(e.year+78);return(fW(a)?(t=31,n=fU(r,a,3,21)):(t=30,n=fU(r,a,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&fW(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function gd(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function gm(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+gd(t,r,1,1)))/29.5)+1),o=n-gd(t,r,a,1)+1;return new ha(e,r,a,o)}function gp(e){return(14+11*e)%30<11}class gf{fromJulianDay(e){return gm(this,1948440,e)}toJulianDay(e){return gd(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&gp(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return gp(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class gh extends gf{fromJulianDay(e){return gm(this,1948439,e)}toJulianDay(e){return gd(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function gg(e){return 460322+l[e-1300]}function gy(e,t){return(s[e-1300]&1<<11-(t-1))==0?29:30}function gv(e,t){let n=gg(e);for(let r=1;r<t;r++)n+=gy(e,r);return n}function gb(e){return l[e+1-1300]-l[e-1300]}class gw extends gf{constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!l){l=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){l[t-1300]=e;for(let n=1;n<=12;n++)e+=gy(t,n)}}}fromJulianDay(e){let t=e-1948440,n=gg(1300),r=gg(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-gg(++e)+1;let a=gb(e);if(r===a){n=12;break}if(r<a){let t=gy(e,n);for(n=1;r>t;)r-=t,t=gy(e,++n);break}}return new ha(this,e,n,t-gv(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+gv(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):gy(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):gb(e.year)}}let gx=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],gD=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],gE=[1867,1911,1925,1988,2018],g_=["meiji","taisho","showa","heisei","reiwa"];function gS(e){let t=gx.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?gx.length-1:0===t?0:t-1}function gk(e){let t=gE[g_.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new ha(e.year+t,e.month,e.day)}class gC extends fG{fromJulianDay(e){let t=super.fromJulianDay(e),n=gS(t);return new ha(this,g_[n],t.year-gE[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(gk(e))}balanceDate(e){let t=gk(e),n=gS(t);g_[n]!==e.era&&(e.era=g_[n],e.year=t.year-gE[n]),this.constrainDate(e)}constrainDate(e){let t=g_.indexOf(e.era),n=gD[t];if(null!=n){let[r,a,o]=n,i=r-gE[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,n,r]=gx[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return g_}getYearsInEra(e){let t=g_.indexOf(e.era),n=gx[t],r=gx[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(gk(e))}getMinimumMonthInYear(e){let t=gP(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=gP(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function gP(e){if(1===e.year)return gx[g_.indexOf(e.era)]}let gT=[0,31,62,93,124,155,186,216,246,276,306,336];class gR{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-gT[a]+1;return new ha(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=gT[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>fV(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function gN(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function gO(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class g$ extends fG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=gO(fH(t.era,t.year));return new ha(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(gM(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=gO(gN(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(gM(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function gM(e){let[t,n]=fz(gN(e));return new ha(t,n,e.month,e.day)}function gA(e){switch(e){case"buddhist":return new h3;case"ethiopic":return new ge;case"ethioaa":return new gt;case"coptic":return new gn;case"hebrew":return new gu;case"indian":return new gc;case"islamic-civil":return new gf;case"islamic-tbla":return new gh;case"islamic-umalqura":return new gw;case"japanese":return new gC;case"persian":return new gR;case"roc":return new g$;default:return new fG}}function gj(e,t,n){return null!=t&&0>e.compare(t)||null!=n&&e.compare(n)>0}function gI(e,t,n,r,a){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;let i=gL(e,t,n).subtract(o);return gB(e,i,t,n,r,a)}function gL(e,t,n,r,a){let o=e;if(t.years)o=hN(e.subtract({months:e.month-1}));else t.months?o=hN(e):t.weeks&&(o=h$(e,n));return gB(e,o,t,n,r,a)}function gF(e,t,n,r,a){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let i=gL(e,t,n).subtract(o);return gB(e,i,t,n,r,a)}function gB(e,t,n,r,a,o){if(a&&e.compare(a)>=0){let e=hL(t,gL(hg(a),n,r));e&&(t=e)}if(o&&0>=e.compare(o)){let e=hI(t,gF(hg(o),n,r));e&&(t=e)}return t}function gV(e,t,n){if(t){let n=hL(e,hg(t));n&&(e=n)}if(n){let t=hI(e,hg(n));t&&(e=t)}return e}function gU(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let gW="u">typeof document?la().useInsertionEffect??la().useLayoutEffect:()=>{};function gH(e,t,n){let[r,a]=(0,lr.useState)(e||t),o=(0,lr.useRef)(r),i=(0,lr.useRef)(void 0!==e),s=void 0!==e;(0,lr.useEffect)(()=>{i.current,i.current=s},[s]);let l=s?e:r;gW(()=>{o.current=l});let[,u]=(0,lr.useReducer)(()=>({}),{});return[l,(0,lr.useCallback)((e,...t)=>{let r="function"==typeof e?e(o.current):e;Object.is(o.current,r)||(o.current=r,a(r),u(),n?.(r,...t))},[n])]}function gz(e){let t=(0,lr.useMemo)(()=>new fS(e.locale),[e.locale]),n=(0,lr.useMemo)(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:a,visibleDuration:o={months:1},minValue:i,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:d}=e,m=(0,lr.useMemo)(()=>a(n.calendar),[a,n.calendar]),[p,f]=gH(e.value,e.defaultValue??null,e.onChange),h=(0,lr.useMemo)(()=>p?hv(hg(p),m):null,[p,m]),g=(0,lr.useMemo)(()=>p&&"timeZone"in p?p.timeZone:n.timeZone,[p,n.timeZone]),[y,v]=gH((0,lr.useMemo)(()=>e.focusedValue?gV(hv(hg(e.focusedValue),m),i,s):void 0,[e.focusedValue,m,i,s]),(0,lr.useMemo)(()=>gV(e.defaultFocusedValue?hv(hg(e.defaultFocusedValue),m):h||hv(hk(g),m),i,s),[e.defaultFocusedValue,h,g,m,i,s]),e.onFocusChange),[b,w]=(0,lr.useState)(()=>{switch(l){case"start":return gL(y,o,r,i,s);case"end":return gF(y,o,r,i,s);default:return gI(y,o,r,i,s)}}),[x,D]=(0,lr.useState)(e.autoFocus||!1),E=(0,lr.useMemo)(()=>{let e={...o};return e.days?e.days--:e.days=-1,b.add(e)},[b,o]),[_,S]=(0,lr.useState)(m);if(!hD(m,_)){let e=hv(y,m);w(gI(e,o,r,i,s)),v(e),S(m)}function k(e){v(e=gV(e,i,s))}function C(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void f(null);(e=gU(e=gV(e,i,s),b,u))&&(e=hv(e,p?.calendar||new fG),p&&"hour"in p?f(p.set(e)):f(e))}}gj(y,i,s)?v(gV(y,i,s)):0>y.compare(b)?w(gF(y,o,r,i,s)):y.compare(E)>0&&w(gL(y,o,r,i,s));let P=(0,lr.useMemo)(()=>!!h&&(!!(u&&u(h))||gj(h,i,s)),[h,u,i,s]),T=e.isInvalid||"invalid"===e.validationState||P,R=(0,lr.useMemo)(()=>"visible"===c?o:gK(o),[c,o]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:h,setValue:C,visibleRange:{start:b,end:E},minValue:i,maxValue:s,focusedDate:y,timeZone:g,validationState:T?"invalid":null,isValueInvalid:T,setFocusedDate(e){k(e)},focusNextDay(){k(y.add({days:1}))},focusPreviousDay(){k(y.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&k(y.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&k(y.subtract({weeks:1}))},focusNextPage(){let e=b.add(R);v(gV(y.add(R),i,s)),w(gL(gB(y,e,R,r,i,s),R,r))},focusPreviousPage(){let e=b.subtract(R);v(gV(y.subtract(R),i,s)),w(gL(gB(y,e,R,r,i,s),R,r))},focusSectionStart(){o.days?k(b):o.weeks?k(h$(y,r)):(o.months||o.years)&&k(hN(y))},focusSectionEnd(){o.days?k(E):o.weeks?k(h$(y,r,void 0).add({days:6})):(o.months||o.years)&&k(hO(y))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?k(y.add({months:1})):(o.months||o.years)&&k(y.add({years:1})):k(y.add(gK(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?k(y.subtract({months:1})):(o.months||o.years)&&k(y.subtract({years:1})):k(y.subtract(gK(o)))},selectFocusedDate(){u&&u(y)||C(y)},selectDate(e){C(e)},isFocused:x,setFocused:D,isInvalid:e=>gj(e,i,s),isSelected(e){return null!=h&&hw(e,h)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>x&&y&&hw(e,y),isCellDisabled(t){return e.isDisabled||0>t.compare(b)||t.compare(E)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=b.subtract({days:1});return hw(e,b)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=E.add({days:1});return hw(e,E)||this.isInvalid(e)},getDatesInWeek(e,t=b){let n=t.add({weeks:e}),a=[],o=h_(n=h$(n,r,d),r,d);for(let e=0;e<o;e++)a.push(null);for(;a.length<7;){a.push(n);let e=n.add({days:1});if(hw(n,e))break;n=e}for(;a.length<7;)a.push(null);return a}}}function gK(e){let t={...e};for(let n in e)t[n]=1;return t}function gG(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:hg(e),end:hg(t)}):null}function gZ(e,t){return(e=hv(e,t?.calendar||new fG),t&&"hour"in t)?t.set(e):e}function gY(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:0>=r.compare(t.visibleRange.end))&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}let gq=(0,lr.createContext)(null),gJ=(0,lr.createContext)(null),gX=(0,lr.createContext)(null),gQ=(0,lr.createContext)(null),g0=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,gq);let{locale:n}=fv(),r=gz({...e,locale:n,createCalendar:gA}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=hK(e,r),u=mw({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"});return la().createElement("div",{...u,...a,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},la().createElement(mb,{values:[[fe,{slots:{previous:o,next:i}}],[fn,{"aria-hidden":!0,level:2,children:l}],[gX,r],[gq,e],[fr,{slots:{errorMessage:s}}]]},la().createElement(hZ,null,la().createElement("h2",null,a["aria-label"])),u.children,la().createElement(hZ,null,la().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),g1=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,gJ);let{locale:n}=fv(),r=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:a,locale:o,visibleDuration:i={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=gH(t,n||null,r),[m,p]=(0,lr.useState)(null),f="center";if(c&&c.start&&c.end){let e=gI(hg(c.start),i,o,s,l).add(i).subtract({days:1});c.end.compare(e)>0&&(f="start")}let h=(0,lr.useRef)(null),[g,y]=(0,lr.useState)(null),v=(0,lr.useMemo)(()=>hL(s,g?.start),[s,g]),b=(0,lr.useMemo)(()=>hI(l,g?.end),[l,g]),w=gz({...u,value:c&&c.start,createCalendar:a,locale:o,visibleDuration:i,minValue:v,maxValue:b,selectionAlignment:e.selectionAlignment||f}),x=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(h.current={start:gY(t,w,-1),end:gY(t,w,1)},y(h.current)):(h.current=null,y(null))},[D,E]=(0,lr.useState)(w.visibleRange);hx(w.visibleRange.start,D.start)&&hx(w.visibleRange.end,D.end)||(x(m),E(w.visibleRange));let _=e=>{e?(p(e),x(e)):(p(null),x(null))},S=m?gG(m,w.focusedDate):c&&gG(c.start,c.end),k=t=>{if(e.isReadOnly)return;let n=gU(gV(t,v,b),w.visibleRange.start,e.isDateUnavailable);if(n)if(m){let e=gG(m,n);e&&d({start:gZ(e.start,c?.start),end:gZ(e.end,c?.end)}),_(null)}else _(n)},[C,P]=(0,lr.useState)(!1),{isDateUnavailable:T}=e,R=(0,lr.useMemo)(()=>!!c&&!m&&(!!(T&&(T(c.start)||T(c.end)))||gj(c.start,s,l)||gj(c.end,s,l)),[T,c,m,s,l]),N=e.isInvalid||"invalid"===e.validationState||R;return{...w,value:c,setValue:d,anchorDate:m,setAnchorDate:_,highlightedRange:S,validationState:N?"invalid":null,isValueInvalid:N,selectFocusedDate(){k(w.focusedDate)},selectDate:k,highlightDate(e){m&&w.setFocusedDate(e)},isSelected:e=>!!(S&&e.compare(S.start)>=0&&0>=e.compare(S.end)&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid:e=>w.isInvalid(e)||gj(e,h.current?.start,h.current?.end),isDragging:C,setDragging:P,clearSelection(){_(null),d(null)}}}({...e,locale:n,createCalendar:gA}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=function(e,t,n){let{commitBehavior:r="select",...a}=e,o=hK(a,t),i=(0,lr.useRef)(!1),s=(0,lr.useRef)("u">typeof window?window:null);hY(s,"pointerdown",e=>{i.current=0===e.width&&0===e.height});let l={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.selectFocusedDate()};return hY(s,"pointerup",e=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let a=e.target;n.current&&mU(n.current)&&(!mB(n.current,a)||!a.closest('button, [role="button"]'))&&l[r]()}),o.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&mB(n.current,e.relatedTarget)||!t.anchorDate||l[r]())},hY(n,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),o}(e,r,t),u=mw({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return la().createElement("div",{...u,...a,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},la().createElement(mb,{values:[[fe,{slots:{previous:o,next:i}}],[fn,{"aria-hidden":!0,level:2,children:l}],[gQ,r],[gJ,e],[fr,{slots:{errorMessage:s}}]]},la().createElement(hZ,null,la().createElement("h2",null,a["aria-label"])),u.children,la().createElement(hZ,null,la().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),g4=(0,lr.createContext)(null),g2=(0,lr.forwardRef)(function(e,t){var n,r;let a=(0,lr.useContext)(gX),o=(0,lr.useContext)(gQ),i=mx(gq),s=mx(gJ),l=null!=a?a:o,u=l.visibleRange.start;e.offset&&(u=u.add(e.offset));let c=null!=(n=null==i?void 0:i.firstDayOfWeek)?n:null==s?void 0:s.firstDayOfWeek,{gridProps:d,headerProps:m,weekDays:p}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:o}=fv(),i=hU(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=hB.get(t),u=hH({"aria-label":[s,i].filter(Boolean).join(", "),"aria-labelledby":l}),c=fR({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=fv(),m=(0,lr.useMemo)(()=>{let e=h$(hk(t.timeZone),d,a);return[...Array(7).keys()].map(n=>{let r=e.add({days:n}).toDate(t.timeZone);return c.format(r)})},[d,t.timeZone,c,a]),p=hj(n,d,a);return{gridProps:my(u,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m,weeksInMonth:p}}({startDate:u,endDate:hO(u),weekdayStyle:e.weekdayStyle,firstDayOfWeek:c},l);return la().createElement(g4.Provider,{value:{headerProps:m,weekDays:p,startDate:u,firstDayOfWeek:c}},la().createElement("table",{...mA(e),...d,ref:t,style:e.style,className:null!=(r=e.className)?r:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:la().createElement(la().Fragment,null,la().createElement(g3,null,e=>la().createElement(g6,null,e)),la().createElement(g5,null,e.children))))}),g3=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,{headerProps:o,weekDays:i}=(0,lr.useContext)(g4);return la().createElement("thead",{...mA(e),...o,ref:t,style:r,className:a||"react-aria-CalendarGridHeader"},la().createElement("tr",null,i.map((e,t)=>la().cloneElement(n(e),{key:t}))))}),g6=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e;return la().createElement("th",{...mA(e),ref:t,style:r,className:a||"react-aria-CalendarHeaderCell"},n)}),g5=(0,lr.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=(0,lr.useContext)(gX),i=(0,lr.useContext)(gQ),s=null!=o?o:i,{startDate:l,firstDayOfWeek:u}=(0,lr.useContext)(g4),{locale:c}=fv(),d=hj(l,c,u);return la().createElement("tbody",{...mA(e),ref:t,style:r,className:a||"react-aria-CalendarGridBody"},[...Array(d).keys()].map(e=>la().createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?la().cloneElement(n(e),{key:t}):la().createElement("td",{key:t})))))}),g9=(0,lr.forwardRef)(function({date:e,...t},n){var r,a,o;let i=(0,lr.useContext)(gX),s=(0,lr.useContext)(gQ),l=null!=i?i:s,{startDate:u}=null!=(r=(0,lr.useContext)(g4))?r:{startDate:l.visibleRange.start},c=(0,lr.useRef)(null),{cellProps:d,buttonProps:m,...p}=function(e,t,n){var r;let a,{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=hB.get(t),u=fB((r=fD)&&r.__esModule?r.default:r,"@react-aria/calendar"),c=fR({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hV(o),timeZone:t.timeZone}),d=t.isSelected(o),m=t.isCellFocused(o)&&!e.isOutsideMonth;i=i||t.isCellDisabled(o);let p=t.isCellUnavailable(o),f=!i&&!p,h=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&0>=o.compare(t.highlightedRange.end):t.value&&hw(t.value,o));h&&(d=!0),o=fE(o,hx);let g=(0,lr.useMemo)(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=hw(o,hk(t.timeZone)),v=(0,lr.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(hw(o,t.value.start)||hw(o,t.value.end))&&(e=l+", "),e+=c.format(g),y?e=u.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=u.format("dateSelected",{date:e})),t.minValue&&hw(o,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&hw(o,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[c,g,u,d,y,o,t,l]),b="";"anchorDate"in t&&m&&!t.isReadOnly&&f&&(b=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let w=h2(b),x=(0,lr.useRef)(!1),D=(0,lr.useRef)(!1),E=(0,lr.useRef)(void 0),{pressProps:_,isPressed:S}=pG({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(e){if(t.isReadOnly){t.setFocusedDate(o),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!h){if(hw(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),D.current=!0;return}else if(hw(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),D.current=!0;return}}let n=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0),x.current=!0};"touch"===e.pointerType?E.current=setTimeout(n,200):n()}},onPressEnd(){D.current=!1,x.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0)),"anchorDate"in t))if(D.current)t.setAnchorDate(o);else if(t.anchorDate&&!x.current)t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0));else{t.selectDate(o);let e=o.add({days:1});t.isInvalid(e)&&(e=o.subtract({days:1})),t.isInvalid(e)||(t.setFocusedDate(e),t.setFocused(!0))}}});i||(a=hw(o,t.focusedDate)?0:-1),(0,lr.useEffect)(()=>{m&&n.current&&(mj(n.current),"pointer"!==pa&&((e=document)=>e.activeElement)()===n.current&&h0(n.current,{containingElement:hJ(n.current)}))},[m,n]);let k=fR({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),C=(0,lr.useMemo)(()=>k.formatToParts(g).find(e=>"day"===e.type).value,[k,g]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":d||void 0,"aria-invalid":h||void 0},buttonProps:my(_,{onFocus(){i||(t.setFocusedDate(o),t.setFocused(!0))},tabIndex:a,role:"button","aria-disabled":!f||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?s:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&f&&t.highlightDate(o)},onPointerDown(e){let t=mV(e);t instanceof HTMLElement&&"releasePointerCapture"in t&&("hasPointerCapture"in t?t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId):t.releasePointerCapture(e.pointerId))},onContextMenu(e){e.preventDefault()}}),isPressed:S,isFocused:m,isSelected:d,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:0>o.compare(t.visibleRange.start)||o.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:C}}({date:e},l,c),{hoverProps:f,isHovered:h}=p5({...t,isDisabled:p.isDisabled}),{focusProps:g,isFocusVisible:y}=p1();y&&(y=p.isFocused);let v=(a=u,o=hv(o=e,a.calendar),a=hN(a),o=hN(o),a.era!==o.era||a.year!==o.year||a.month!==o.month),b=!1,w=!1;"highlightedRange"in l&&l.highlightedRange&&(b=hw(e,l.highlightedRange.start),w=hw(e,l.highlightedRange.end));let x=mw({...t,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:v,isFocusVisible:y,isSelectionStart:b,isSelectionEnd:w,...p}}),D={"data-focused":p.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":p.isInvalid||void 0};return la().createElement("td",{...d,ref:n},la().createElement("div",{...my(mA(t),m,g,f,D,x),ref:c}))}),g8=(0,lr.createContext)({}),g7=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,g8);let{isDisabled:a,isInvalid:o,onHoverStart:i,onHoverChange:s,onHoverEnd:l,...u}=e,{hoverProps:c,isHovered:d}=p5({onHoverStart:i,onHoverChange:s,onHoverEnd:l,isDisabled:a}),{isFocused:m,isFocusVisible:p,focusProps:f}=p1({within:!0});null!=a||(a=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=mw({...e,values:{isHovered:d,isFocusWithin:m,isFocusVisible:p,isDisabled:a,isInvalid:o},defaultClassName:"react-aria-Group"});return la().createElement("div",{...my(u,f,c),...h,ref:t,role:null!=(n=e.role)?n:"group",slot:null!=(r=e.slot)?r:void 0,"data-focus-within":m||void 0,"data-hovered":d||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-invalid":o||void 0},h.children)}),ye=(0,lr.createContext)({}),yt=p8(function(e,t){[e,t]=mD(e,t,ye);let{hoverProps:n,isHovered:r}=p5(e),{isFocused:a,isFocusVisible:o,focusProps:i}=p1({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=mw({...e,values:{isHovered:r,isFocused:a,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return la().createElement("input",{...my((e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a})(e),i,n),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})});function yn(e,t,n,r){return e.createTreeWalker(t,n,r)}let yr=la().createContext(null),ya="react-aria-focus-scope-restore",yo=null;function yi(e){var t,n,r,a,o,i,s,l,u,c;let d,m,p,f,{children:h,contain:g,restoreFocus:y,autoFocus:v}=e,b=(0,lr.useRef)(null),w=(0,lr.useRef)(null),x=(0,lr.useRef)([]),{parentNode:D}=(0,lr.useContext)(yr)||{},E=(0,lr.useMemo)(()=>new yx({scopeRef:x}),[x]);mn(()=>{let e=D||yD.root;if(yD.getTreeNode(e.scopeRef)&&yo&&!yd(yo,e.scopeRef)){let t=yD.getTreeNode(yo);t&&(e=t)}e.addChild(E),yD.addNode(E)},[E,D]),mn(()=>{let e=yD.getTreeNode(x);e&&(e.contain=!!g)},[g]),mn(()=>{let e=b.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==w.current;)t.push(e),e.addEventListener(ya,n),e=e.nextSibling;return x.current=t,()=>{for(let e of t)e.removeEventListener(ya,n)}},[h]),mn(()=>{if(n||r)return;let e=t.current,a=mL(e?e[0]:void 0),o=e=>{let n=mV(e);yu(n,t.current)?yo=t:yc(n)||(yo=null)};return a.addEventListener("focusin",o,!1),e?.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),e?.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t=x,n=y,r=g]),a=x,o=g,d=(0,lr.useRef)(void 0),m=(0,lr.useRef)(void 0),mn(()=>{let e=a.current;if(!o){m.current&&(cancelAnimationFrame(m.current),m.current=void 0);return}let t=mL(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!yl(a)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=a.current;if(!r||!yu(n,r))return;let o=yy(ys(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&(ym(i,!0),i instanceof mF(i).HTMLInputElement&&i.select())},r=e=>{(!yo||yd(yo,a))&&yu(mV(e),a.current)?(yo=a,d.current=mV(e)):yl(a)&&!yc(mV(e),a)?d.current?d.current.focus():yo&&yo.current&&yf(yo.current):yl(a)&&(d.current=mV(e))},i=e=>{m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{let n=pa,r=("virtual"===n||null===n)&&pe()&&m7(),o=((e=document)=>e.activeElement)(t);if(!r&&o&&yl(a)&&!yc(o,a)){yo=a;let t=mV(e);t&&t.isConnected?(d.current=t,d.current?.focus()):yo.current&&yf(yo.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1)),e?.forEach(e=>e.removeEventListener("focusout",i,!1))}},[a,o]),mn(()=>()=>{m.current&&cancelAnimationFrame(m.current)},[m]),i=x,s=y,l=g,p=(0,lr.useRef)("u">typeof document?((e=document)=>e.activeElement)(mL(i.current?i.current[0]:void 0)):null),mn(()=>{let e=i.current,t=mL(e?e[0]:void 0);if(!s||l)return;let n=()=>{(!yo||yd(yo,i))&&yu(((e=document)=>e.activeElement)(t),i.current)&&(yo=i)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[i,l]),mn(()=>{let e=mL(i.current?i.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!yl(i)||t.isComposing)return;let n=e.activeElement;if(!yc(n,i)||!yh(i))return;let r=yD.getTreeNode(i);if(!r)return;let a=r.nodeToRestore,o=yy(e.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!s||!yc(s,i))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(yc(s,i));(t.preventDefault(),t.stopPropagation(),s)?ym(s,!0):yc(a)?ym(a,!0):n.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[i,s,l]),mn(()=>{let e=mL(i.current?i.current[0]:void 0);if(!s)return;let t=yD.getTreeNode(i);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=yD.getTreeNode(i);if(!t)return;let n=t.nodeToRestore,r=((e=document)=>e.activeElement)(e);if(s&&n&&(r&&yc(r,i)||r===e.body&&yh(i))){let t=yD.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(i);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void yg(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(i);e;){if(e.scopeRef&&e.scopeRef.current&&yD.getTreeNode(e.scopeRef))return void yg(yp(e.scopeRef.current,!0));e=e.parent}}})}}},[i,s]),u=x,c=v,f=la().useRef(c),(0,lr.useEffect)(()=>{f.current&&(yo=u,!yu(((e=document)=>e.activeElement)(mL(u.current?u.current[0]:void 0)),yo.current)&&u.current&&yf(u.current)),f.current=!1},[u]),(0,lr.useEffect)(()=>{let e=((e=document)=>e.activeElement)(mL(x.current?x.current[0]:void 0)),t=null;if(yu(e,x.current)){for(let n of yD.traverse())n.scopeRef&&yu(e,n.scopeRef.current)&&(t=n);t===yD.getTreeNode(x)&&(yo=t.scopeRef)}},[x]),mn(()=>()=>{let e=yD.getTreeNode(x)?.parent?.scopeRef??null;(x===yo||yd(x,yo))&&(!e||yD.getTreeNode(e))&&(yo=e),yD.removeTreeNode(x)},[x]);let _=(0,lr.useMemo)(()=>{var e;return e=x,{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:o,accept:i}=t,s=r||((e=document)=>e.activeElement)(mL(n[0]??void 0)),l=n[0].previousElementSibling,u=yy(ys(n),{tabbable:a,accept:i},n);u.currentNode=yu(s,n)?s:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&ym(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:o,accept:i}=t,s=r||((e=document)=>e.activeElement)(mL(n[0]??void 0)),l=n[n.length-1].nextElementSibling,u=yy(ys(n),{tabbable:a,accept:i},n);u.currentNode=yu(s,n)?s:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&ym(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=yy(ys(n),{tabbable:r,accept:a},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&ym(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=yy(ys(n),{tabbable:r,accept:a},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&ym(i,!0),i}}},[]),S=(0,lr.useMemo)(()=>({focusManager:_,parentNode:E}),[E,_]);return la().createElement(yr.Provider,{value:S},la().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:b}),h,la().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:w}))}function ys(e){return e[0].parentElement}function yl(e){let t=yD.getTreeNode(yo);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function yu(e,t){return!!e&&!!t&&t.some(t=>mB(t,e))}function yc(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of yD.traverse(yD.getTreeNode(t)))if(n&&yu(e,n.current))return!0;return!1}function yd(e,t){let n=yD.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function ym(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{p_(e)}catch{}}function yp(e,t=!0){let n=e[0].previousElementSibling,r=ys(e),a=yy(r,{tabbable:t},e);a.currentNode=n;let o=a.nextNode();return t&&!o&&((a=yy(r=ys(e),{tabbable:!1},e)).currentNode=n,o=a.nextNode()),o}function yf(e,t=!0){ym(yp(e,t))}function yh(e){let t=yD.getTreeNode(yo);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function yg(e){e.dispatchEvent(new CustomEvent(ya,{bubbles:!0,cancelable:!0}))&&ym(e)}function yy(e,t,n){let r=t?.tabbable?mY:mZ,a=mL(e?.nodeType===Node.ELEMENT_NODE?e:null),o=yn(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>mB(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(mL(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=mF(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===o.currentNode.tagName&&"radio"===o.currentNode.type&&o.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||yu(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(o.currentNode=t.from),o}function yv(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(mL(r)),u=yy(r,{tabbable:o,accept:s});mB(r,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&i&&(u.currentNode=r,c=u.nextNode()),c&&ym(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(mL(r)),u=yy(r,{tabbable:o,accept:s});if(mB(r,l))u.currentNode=l;else{let e=yb(u);return e&&ym(e,!0),e??null}let c=u.previousNode();if(!c&&i){u.currentNode=r;let e=yb(u);if(!e)return null;c=e}return c&&ym(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=yy(r,{tabbable:a,accept:o}).nextNode();return i&&ym(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=yb(yy(r,{tabbable:a,accept:o}));return i&&ym(i,!0),i??null}}}function yb(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class yw{constructor(){this.fastMap=new Map,this.root=new yx({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let a=new yx({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&yu(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new yw;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class yx{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let yD=new yw;var yE={};function y_(e,t,n){let{direction:r}=fv(),a=(0,lr.useMemo)(()=>yv(t),[t]),o=()=>{if(!t.current)return;let e=window.event?mV(window.event):null,n=yy(t.current,{tabbable:!0});if(e&&(n.currentNode=e,e=n.previousNode()),!e){let t;do(t=n.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=n.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:i}=pG({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return my(i,{onKeyDown:o=>{if(mB(o.currentTarget,mV(o))&&(o.altKey&&("ArrowDown"===o.key||"ArrowUp"===o.key)&&"setOpen"in e&&(o.preventDefault(),o.stopPropagation(),e.setOpen(!0)),!n))switch(o.key){case"ArrowLeft":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=mV(o),n=yS(t.current,e.getBoundingClientRect().left,-1);n&&n.focus()}}else a.focusPrevious();break;case"ArrowRight":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=mV(o),n=yS(t.current,e.getBoundingClientRect().left,1);n&&n.focus()}}else a.focusNext()}}})}function yS(e,t,n){let r=yy(e,{tabbable:!0}),a=r.nextNode(),o=null,i=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<i&&(o=a,i=s),a=r.nextNode()}return o}function yk(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:o="label"}=e;t=mf(t);let i=mf(),s={};return n&&(r=r?`${i} ${r}`:i,s={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:s,fieldProps:hH({id:t,"aria-label":a,"aria-labelledby":r})}}(e),s=mh([!!t,!!n,r,a]),l=mh([!!t,!!n,r,a]);return{labelProps:o,fieldProps:i=my(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function yC(e,t,n){let r=pF(e=>{n&&!e.defaultPrevented&&n(t)});(0,lr.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",r),()=>{t?.removeEventListener("reset",r)}},[e])}function yP(e,t,n){let{validationBehavior:r,focus:a}=e;mn(()=>{if("native"===r&&n?.current&&!n.current.disabled){var e;let r,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,lr.useRef)(!1),i=pF(()=>{o.current||t.resetValidation()}),s=pF(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}(r)===n.current&&(a?a():n.current?.focus(),pa="keyboard",pc("keyboard",null));e.preventDefault()}),l=pF(()=>{t.commitValidation()});(0,lr.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&mV(window.event)instanceof MessagePort,r?.call(t),o.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),t?.addEventListener("reset",i),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),t?.removeEventListener("reset",i),t&&(t.reset=r)}},[n,r])}yE={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalend\xe1ř",day:"den",dayPeriod:"č\xe1st dne",endDate:"Konečn\xe9 datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měs\xedc",second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:"Poč\xe1tečn\xed datum",timeZoneName:"časov\xe9 p\xe1smo",weekday:"den v t\xfddnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xe6ra",hour:"time",minute:"minut",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xe5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xe4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xeda",dayPeriod:"a.\xa0m./p.\xa0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xeda de la semana",year:"a\xf1o"},"et-EE":{calendar:"Kalender",day:"p\xe4ev",dayPeriod:"enne/p\xe4rast l\xf5unat",endDate:"L\xf5ppkuup\xe4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xe4ev",timeZoneName:"ajav\xf6\xf6nd",weekday:"n\xe4dalap\xe4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xe4iv\xe4",dayPeriod:"vuorokaudenaika",endDate:"P\xe4\xe4ttymisp\xe4iv\xe4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xe4iv\xe4",timeZoneName:"aikavy\xf6hyke",weekday:"viikonp\xe4iv\xe4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xe8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:"Date de d\xe9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xe9e"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xe1r",day:"nap",dayPeriod:"napszak",endDate:"Befejező d\xe1tum",era:"\xe9ra",hour:"\xf3ra",minute:"perc",month:"h\xf3nap",second:"m\xe1sodperc",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:"Kezdő d\xe1tum",timeZoneName:"időz\xf3na",weekday:"h\xe9t napja",year:"\xe9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xe5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xe9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xedcio",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:"Dată \xeenceput",timeZoneName:"fus orar",weekday:"ziua din săptăm\xe2nă",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalend\xe1r",day:"deň",dayPeriod:"AM/PM",endDate:"D\xe1tum ukončenia",era:"letopočet",hour:"hodina",minute:"min\xfata",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:"D\xe1tum začatia",timeZoneName:"časov\xe9 p\xe1smo",weekday:"deň t\xfdždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xe5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xe5r"},"tr-TR":{calendar:"Takvim",day:"g\xfcn",dayPeriod:"\xd6\xd6/\xd6S",endDate:"Bitiş Tarihi",era:"\xe7ağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:"Başlangı\xe7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın g\xfcn\xfc",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};let yT=new WeakMap,yR="__reactAriaDateFieldRole",yN="__reactAriaDateFieldFocusManager";function yO(e,t,n){var r;let a,{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=yk({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),m=(0,lr.useRef)(null),{focusWithinProps:p}=p0({...e,onFocusWithin(n){m.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=fB((r=yE)&&r.__esModule?r.default:r,"@react-aria/datepicker"),h="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",g="hour"===t.maxGranularity?"time":"date",y=h2(t.value?f.format(h,{[g]:t.formatValue({month:"long"})}):""),v="presentation"===e[yR]?u["aria-describedby"]:[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=e[yN],w=(0,lr.useMemo)(()=>b||yv(n),[b,n]),x=y_(t,n,"presentation"===e[yR]);yT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:w});let D=(0,lr.useRef)(e.autoFocus);a="presentation"===e[yR]?{role:"presentation"}:my(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),(0,lr.useEffect)(()=>{D.current&&w.focusFirst(),D.current=!1},[w]),yC(e.inputRef,t.defaultValue,t.setValue),yP({...e,focus(){w.focusFirst()}},t,e.inputRef);let E={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(E.type="text",E.hidden=!0,E.required=e.isRequired,E.onChange=()=>{});let _=mA(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:my(_,a,x,p,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:E,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:s}}var y$={};y$={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zah\xe1jen\xed mus\xed předch\xe1zet datu ukončen\xed.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybran\xe9 datum nen\xed k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xe6re f\xf8r slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xe6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuup\xe4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date s\xe9lectionn\xe9e n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő d\xe1tumnak a befejező d\xe1tumn\xe1l kor\xe1bbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiv\xe1lasztott d\xe1tum nem \xe9rhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xe0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xedcio deve ser anterior \xe0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de \xeenceput trebuie să fie anterioară datei de sf\xe2rșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"D\xe1tum začiatku mus\xed byť skorš\xed ako d\xe1tum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybrat\xfd d\xe1tum je nedostupn\xfd."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xe5ste vara f\xf6re slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xe4r inte tillg\xe4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Se\xe7ilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}};let yM={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},yA={...yM,customError:!0,valid:!1},yj={isInvalid:!1,validationDetails:yM,validationErrors:[]},yI=(0,lr.createContext)({}),yL="__reactAriaFormValidationState";function yF(e){if(e[yL]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}=e[yL];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:o,validate:i,validationBehavior:s="aria"}=e;n&&(t||="invalid"===n);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:yA}:null,u=(0,lr.useMemo)(()=>i&&null!=a?yV(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return yB(n)}return[]}(i,a)):null,[i,a]);o?.validationDetails.valid&&(o=void 0);let c=(0,lr.useContext)(yI),d=(0,lr.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>yB(c[e])):yB(c[r]):[],[c,r]),[m,p]=(0,lr.useState)(c),[f,h]=(0,lr.useState)(!1);c!==m&&(p(c),h(!1));let g=(0,lr.useMemo)(()=>yV(f?[]:d),[f,d]),y=(0,lr.useRef)(yj),[v,b]=(0,lr.useState)(yj),w=(0,lr.useRef)(yj),[x,D]=(0,lr.useState)(!1);return(0,lr.useEffect)(()=>{if(!x)return;D(!1);let e=u||o||y.current;yU(e,w.current)||(w.current=e,b(e))}),{realtimeValidation:l||g||u||o||yj,displayValidation:"native"===s?l||g||v:l||g||u||o||v,updateValidation(e){"aria"!==s||yU(v,e)?y.current=e:b(e)},resetValidation(){yU(yj,w.current)||(w.current=yj,b(yj)),"native"===s&&D(!1),h(!0)},commitValidation(){"native"===s&&D(!0),h(!0)}}}(e)}function yB(e){return e?Array.isArray(e)?e:[e]:[]}function yV(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:yA}:null}function yU(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function yW(...e){let t=new Set,n=!1,r={...yM};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in n||=a.isInvalid,r)r[e]||=a.validationDetails[e]}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}let yH=new fM((Q=y$)&&Q.__esModule?Q.default:Q);function yz(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function yK(e,t,n,r,a){let o=null!=e&&null!=n&&e.compare(n)>0,i=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&r?.(e)||!1,l=o||i||s,u=[];if(l){let e=yz(),r=new fI(e,fM.getGlobalDictionaryForPackage("@react-stately/datepicker")||yH),l=new fS(e,yY({},a)),c=l.resolvedOptions().timeZone;i&&null!=t&&u.push(r.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),o&&null!=n&&u.push(r.format("rangeOverflow",{maxValue:l.format(n.toDate(c))})),s&&u.push(r.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let yG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},yZ={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yY(e,t){e={...t.shouldForceLeadingZeros?yZ:yG,...e};let n=t.granularity||"minute",r=Object.keys(e),a=r.indexOf(t.maxGranularity??"year");a<0&&(a=0);let o=r.indexOf(n);if(o<0&&(o=2),a>o)throw Error("maxGranularity must be greater than granularity");let i=r.slice(a,o+1).reduce((t,n)=>(t[n]=e[n],t),{});return null!=t.hourCycle&&(i.hour12=12===t.hourCycle),i.timeZone=t.timeZone||"UTC",("hour"===n||"minute"===n||"second"===n)&&t.timeZone&&!t.hideTimeZone&&(i.timeZoneName="short"),t.showEra&&0===a&&(i.era="short"),i}function yq(e){return e&&"hour"in e?e:new ho}function yJ(e,t){return null===e?null:e?hv(e,t):void 0}function yX(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[a,o]=(0,lr.useState)([r,n]);return e&&(a[0]!==r||a[1]!==n)&&o([r,n]),t||(t=e?r:a[0]),[t,e?n:a[1]]}let yQ=new fM({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"\xf1\xf1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xe9\xe9\xe9\xe9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xe1\xe1\xe1\xe1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class y0{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset="offset"in(n??{})?n.offset:null,null!=this.hour){let[e,n]=y4(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let e=new y0(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,n]=y4(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,n){let r=this.copy();return r[e]=t,"hour"===e&&null==r.dayPeriod&&"hour"in n&&(r.dayPeriod=y4(n.hour,this.hourCycle)[0]),"year"===e&&null==r.era&&(r.era=n.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let a=this.copy();if(null==a[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in n){let[e,t]=y4(n.hour,this.hourCycle);a.dayPeriod=e,a.hour=t}else a[e]=n[e];return"year"===e&&null==a.era&&(a.era=n.era),a}switch(e){case"era":{let e=this.calendar.getEras(),n=e.indexOf(a.era);n=y1(n,t,0,e.length-1),a.era=e[n];break}case"year":{let r=new ha(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);a.era=(r=r.cycle(e,t,{round:"year"===e})).era,a.year=r.year;break}case"month":a.month=y1(a.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=y1(a.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=r.some(e=>["year","month","day"].includes(e));if("timeZone"in n&&(!e||null!=a.year&&null!=a.month&&null!=a.day)){let e=this.toValue(n),[r,o]=y4((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);a.hour=o,a.dayPeriod=r,a.offset=e.offset}else{let e=a.hour??0,r=this.getSegmentLimits("hour");a.hour=y1(e,t,r.minValue,r.maxValue),null==a.dayPeriod&&"hour"in n&&(a.dayPeriod=y4(n.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=y1(a.dayPeriod??0,t,0,1);break;case"minute":a.minute=y1(a.minute??0,t,0,59,!0);break;case"second":a.second=y1(a.second??0,t,0,59,!0)}return a}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,n){switch(n){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in n&&null!=this.offset&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function y1(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function y4(e,t){let n=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}var y2=n(9264);let y3={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},y6={year:5,month:2,day:7,hour:2,minute:15,second:15},y5={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function y9(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:a=!1,isReadOnly:o=!1,isRequired:i=!1,minValue:s,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[d,m]=yX(c,e.granularity),p=m||"UTC";if(c&&!(d in c))throw Error("Invalid granularity "+d+" for value "+c.toString());let[f,h]=(0,lr.useMemo)(()=>{let r=new fS(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,y]=gH(e.value,e.defaultValue??null,e.onChange),[v]=(0,lr.useState)(g),b=(0,lr.useMemo)(()=>yJ(g,f)??null,[g,f]),[w,x]=(0,lr.useState)(()=>new y0(f,h,b)),D="gregory"===f.identifier&&"BC"===w.era,E=(0,lr.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:D,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,m,r,D]),_=(0,lr.useMemo)(()=>yY({},E),[E]),S=(0,lr.useMemo)(()=>new fS(t,_),[t,_]),k=(0,lr.useMemo)(()=>S.resolvedOptions(),[S]),C=(0,lr.useMemo)(()=>(function(e,t,n,r){if(e)return yJ(e,n);let a=hv(hS(r??hR()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?hg(a):r?a:hy(a)})(e.placeholderValue,d,f,m),[e.placeholderValue,d,f,m]),P=(0,lr.useMemo)(()=>{let t="h11"===h||"h12"===h,n=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],r=n.indexOf(e.maxGranularity||"era"),a=n.indexOf("hour"===d&&t?"dayPeriod":d);return n.slice(r,a+1)},[e.maxGranularity,d,h]),[T,R]=(0,lr.useState)(b),[N,O]=(0,lr.useState)(f),[$,M]=(0,lr.useState)(h);b===T&&h===$&&hD(f,N)||(w=new y0(f,h,b),R(b),O(f),M(h),x(w));let A=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof y0&&t.isCleared(P))x(new y0(f,h,b)),y(null);else if(t instanceof y0){if(t.isComplete(P)){let e=t.toValue(b??C);if(t.validate(e,P)){let t=hv(e,c?.calendar||new fG);if(!g||0!==t.compare(g)){x(new y0(f,h,b)),y(t);return}}}x(t)}else t=hv(t,c?.calendar||new fG),x(new y0(f,h,b)),y(t)},j=(0,lr.useMemo)(()=>w.toValue(b??C).toDate(p),[w,p,b,C]),I=(0,lr.useMemo)(()=>(function(e,t,n,r,a,o,i){let s=["hour","minute","second"],l=n.formatToParts(e),u=new(0,y2.K)(o,{useGrouping:!1}),c=new(0,y2.K)(o,{useGrouping:!1,minimumIntegerDigits:2});for(let e of l)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let n=t[e.type]??0;"2-digit"===r[e.type]?e.value=c.format(n):e.value=u.format(n)}let d=[];for(let e of l){var m;let n=y5[e.type]||e.type,r=y3[n];"era"===n&&1===a.getEras().length&&(r=!1);let l=y3[n]&&null==t[e.type],u=y3[n]?(m=e.value,"era"===n||"dayPeriod"===n?m:"year"===n||"month"===n||"day"===n?yQ.getStringForLocale(n,o):"––"):null,c={type:n,text:l?u:e.value,...t.getSegmentLimits(n),isPlaceholder:l,placeholder:u,isEditable:r};"hour"===n?(d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),d.push(c),n===i&&d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(n)&&n===i?(d.push(c),d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(j,w,S,k,f,t,d),[j,S,k,w,f,t,d]),L=(e,t)=>{A(w.cycle(e,t,C,P))},F=(0,lr.useMemo)(()=>yK(g,s,l,u,E),[g,s,l,u,E]),B=yF({...e,value:g,builtinValidation:F}),V=B.displayValidation.isInvalid,U=e.validationState||(V?"invalid":null);return{...B,value:b,defaultValue:e.defaultValue??v,dateValue:j,calendar:f,setValue:A,segments:I,dateFormatter:S,validationState:U,isInvalid:V,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:a,isReadOnly:o,isRequired:i,increment(e){L(e,1)},decrement(e){L(e,-1)},incrementPage(e){L(e,y6[e]||1)},decrementPage(e){L(e,-(y6[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===h?11:w.getSegmentLimits(e).maxValue;A(w.set(e,t,C))},decrementToMin(e){let t="hour"===e&&"h12"===h?12:w.getSegmentLimits(e).minValue;A(w.set(e,t,C))},setSegment(e,t){A(w.set(e,t,C))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&w.isComplete(P)){let e=hv(w.toValue(b??C),c?.calendar||new fG);g&&0===e.compare(g)||y(e),x(new y0(f,h,b))}},clearSegment(e){let t=w;"timeZoneName"!==e&&"literal"!==e&&(t=w.clear(e)),A(t)},formatValue:e=>b?new fS(t,yY(e,E)).format(j):"",getDateFormatter:(e,t)=>new fS(e,yY({},{...E,...t}))}}let y8=(0,lr.createContext)(null),y7=(0,lr.createContext)(null),ve=(0,lr.createContext)(null),vt=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(y7),r=(0,lr.useContext)(ve);return n||r?la().createElement(vr,{...e,ref:t}):la().createElement(vn,{...e,ref:t})}),vn=(0,lr.forwardRef)((e,t)=>{let[n,r]=mD({slot:e.slot},t,y8),{locale:a}=fv(),o=y9({...n,locale:a,createCalendar:gA}),i=(0,lr.useRef)(null),{fieldProps:s,inputProps:l}=yO({...n,inputRef:i},o,r);return la().createElement(mb,{values:[[y7,o],[ye,{...l,ref:i}],[g8,{...s,ref:r,isInvalid:o.isInvalid}]]},la().createElement(vr,e))}),vr=(0,lr.forwardRef)((e,t)=>{let{className:n,children:r}=e,a=(0,lr.useContext)(y7),o=(0,lr.useContext)(ve),i=null!=a?a:o;return la().createElement(la().Fragment,null,la().createElement(g7,{...e,ref:t,slot:e.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:i.isInvalid},i.segments.map((e,t)=>(0,lr.cloneElement)(r(e),{key:t}))),la().createElement(yt,null))});function va({children:e}){let t=(0,lr.useMemo)(()=>({register:()=>{}}),[]);return la().createElement(pI.Provider,{value:t},e)}la().forwardRef(({children:e,...t},n)=>{let r=(0,lr.useRef)(!1),a=(0,lr.useContext)(pI),o=my(a||{},{...t,register(){r.current=!0,a&&a.register()}});return o.ref=d8(n||a?.ref),pC(a,o.ref),(0,lr.useEffect)(()=>{r.current||(r.current=!0)},[]),la().createElement(pI.Provider,{value:o},e)});let vo=(0,lr.createContext)({}),vi=la().createContext(null);function vs(e){let t=md(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,o]=(0,lr.useState)(!1),i=(0,lr.useMemo)(()=>({contain:a,setContain:o}),[a,o]),{getContainer:s}=(0,lr.useContext)(vo)??{};if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=la().createElement(yi,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},l)),l=la().createElement(vi.Provider,{value:i},la().createElement(va,null,l)),pU().createPortal(l,n)}let vl=(0,lr.createContext)(null),vu=(0,lr.createContext)(null),vc=(0,lr.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=mD(e,t,vl);let{dialogProps:r,titleProps:a}=function(e,t){let n,r,{role:a="dialog"}=e,o=mh();o=e["aria-label"]?void 0:o;let i=(0,lr.useRef)(!1);return(0,lr.useEffect)(()=>{if(t.current&&!mU(t.current)){p_(t.current);let e=setTimeout(()=>{(((e=document)=>e.activeElement)()===t.current||((e=document)=>e.activeElement)()===document.body)&&(i.current=!0,t.current&&(t.current.blur(),p_(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),n=(0,lr.useContext)(vi),mn(()=>{r?.(!0)},[r=n?.setContain]),(0,lr.useRef)(!1),(0,lr.useEffect)(()=>{}),{dialogProps:{...mA(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":n},t),o=(0,lr.useContext)(vu);r["aria-label"]||r["aria-labelledby"]||(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let i=mw({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==o?void 0:o.close)||(()=>{})}});return la().createElement("section",{...mA(e),...r,...i,ref:t,slot:e.slot||void 0},la().createElement(mb,{values:[[fn,{slots:{[mv]:{},title:{...a,level:2}}}],[fe,{slots:{[mv]:{},close:{onPress:()=>null==o?void 0:o.close()}}}]]},i.children))}),vd=(0,lr.createContext)(null),vm=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(vd);return(null==n?void 0:n.isInvalid)?la().createElement(vp,{...e,ref:t}):null}),vp=(0,lr.forwardRef)((e,t)=>{let n=(0,lr.useContext)(vd),r=mA(e),a=mw({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==a.children?null:la().createElement(fa,{slot:"errorMessage",...r,...a,ref:t})}),vf=(0,lr.createContext)(null),vh=(0,lr.createContext)({}),vg=p8(function(e,t){[e,t]=mD(e,t,vh);let{elementType:n="label",...r}=e;return la().createElement(n,{className:"react-aria-Label",...r,ref:t})}),vy=(0,lr.createContext)({placement:"bottom"}),vv="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,vb=new WeakMap,vw=[];function vx(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function vD(e,t){let n=e,r=0,a=t.toString(),o=a.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=a.indexOf(".");e>=0&&(r=a.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function vE(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,o=vD(2*Math.abs(a)>=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(vD(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(vD((n-t)/r,r))*r),o=vD(o,r)}let v_={top:"top",bottom:"top",left:"left",right:"left"},vS={top:"bottom",bottom:"top",left:"right",right:"left"},vk={top:"left",left:"top"},vC={top:"height",left:"width"},vP={width:"totalWidth",height:"totalHeight"},vT={};function vR(e,t){let n=0,r=0,a=0,o=0,i=0,s=0,l={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;a=u.clientWidth,o=u.clientHeight,n=t?.width??a,r=t?.height??o,l.top=u.scrollTop||e.scrollTop,l.left=u.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,s=t.offsetLeft)}else({width:n,height:r,top:i,left:s}=vj(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,a=n,o=r;return m8()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,i=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:a,totalHeight:o,scroll:l,top:i,left:s}}function vN(e,t,n,r,a,o,i){let s=a.scroll[e]??0,l=r[vC[e]],u=i[e]+r.scroll[v_[e]]+o,c=i[e]+r.scroll[v_[e]]+l-o,d=t-s+r.scroll[v_[e]]+i[e]-r[v_[e]],m=t-s+n+r.scroll[v_[e]]+i[e]-r[v_[e]];return d<u?u-d:m>c?Math.max(c-m,u-d):0}function vO(e){if(vT[e])return vT[e];let[t,n]=e.split(" "),r=v_[t]||"right",a=vk[r];v_[n]||(n="center");let o=vC[r],i=vC[a];return vT[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:o,crossSize:i},vT[e]}function v$(e,t,n,r,a,o,i,s,l,u,c){let{placement:d,crossPlacement:m,axis:p,crossAxis:f,size:h,crossSize:g}=r,y={};y[f]=e[f]??0,"center"===m?y[f]+=((e[g]??0)-(n[g]??0))/2:m!==f&&(y[f]+=(e[g]??0)-(n[g]??0)),y[f]+=o;let v=e[f]-n[g]+l+u,b=e[f]+e[g]-l-u;if(y[f]=vx(y[f],v,b),d===p){let t=s?c[h]:c[vP[h]];y[vS[p]]=Math.floor(t-e[p]+a)}else y[p]=Math.floor(e[p]+e[h]+a);return y}function vM(e,t,n,r,a,o,i,s){let{placement:l,axis:u,size:c}=o;return l===u?Math.max(0,n[u]-(i.scroll[u]??0)-(e[u]+(s?t[u]:0))-(r[u]??0)-r[vS[u]]-a):Math.max(0,e[c]+e[u]+(s?t[u]:0)-n[u]-n[c]+(i.scroll[u]??0)-(r[u]??0)-r[vS[u]]-a)}function vA(e,t){let{top:n,left:r,width:a,height:o}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,o=e.offsetHeight),{top:n,left:r,width:a,height:o}}function vj(e,t){let{top:n,left:r,width:a,height:o}=vA(e,t),{scrollTop:i,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+i-l,left:r+s-u,width:a,height:o}}function vI(e,t,n){let r,a=window.getComputedStyle(e);if("fixed"===a.position)r=vA(e,n);else{r=vj(e,n);let a=vj(t,n),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=a.top,r.left-=a.left}return r.top-=parseInt(a.marginTop,10)||0,r.left-=parseInt(a.marginLeft,10)||0,r}function vL(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let vF=new WeakMap;function vB(e){let{ref:t,box:n,onResize:r}=e,a=pF(r);(0,lr.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&a()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[t,n])}let vV="u">typeof document?window.visualViewport:null;function vU(e,t){if(e.button>0)return!1;let n=mV(e);if(n){let e=n.ownerDocument;if(!e||!mB(e.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let vW=[],vH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vz(e){return e instanceof HTMLInputElement&&!vH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let vK="u">typeof document&&window.visualViewport,vG=0;function vZ(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vY(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vq(e,t){t||!vK?vJ(e):vK.addEventListener("resize",()=>vJ(e),{once:!0})}function vJ(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=hJ(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;vK&&(n=Math.min(n,vK.offsetTop+vK.height));let a=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+a)),behavior:"smooth"})}}n=e.parentElement}}var vX={};function vQ(e){var t;let{onDismiss:n,...r}=e,a=hH(r,fB((t=vX)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return la().createElement(hZ,null,la().createElement("button",{...a,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function v0(e,t,n){mn(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,pV.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}vX={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xdfen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xf5peta"},"fi-FI":{dismiss:"Hylk\xe4\xe4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xedt\xe1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let v1=null,v4=new Set,v2=new Map,v3=!1,v6=!1;function v5(e,t){for(let n of v4)n(e,t)}function v9(e){v3=!0,e.metaKey||!m3()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(v1="keyboard",v5("keyboard",e))}function v8(e){v1="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(v3=!0,v5("pointer",e))}function v7(e){pn(e)&&(v3=!0,v1="virtual")}function be(e){e.target!==window&&e.target!==document&&e.isTrusted&&(v3||v6||(v1="virtual",v5("virtual",e)),v3=!1,v6=!1)}function bt(){v3=!1,v6=!0}function bn(e){if("u"<typeof window||v2.get(mF(e)))return;let t=mF(e),n=mL(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){v3=!0,r.apply(this,arguments)},n.addEventListener("keydown",v9,!0),n.addEventListener("keyup",v9,!0),n.addEventListener("click",v7,!0),t.addEventListener("focus",be,!0),t.addEventListener("blur",bt,!1),"u">typeof PointerEvent?(n.addEventListener("pointerdown",v8,!0),n.addEventListener("pointermove",v8,!0),n.addEventListener("pointerup",v8,!0)):(n.addEventListener("mousedown",v8,!0),n.addEventListener("mousemove",v8,!0),n.addEventListener("mouseup",v8,!0)),t.addEventListener("beforeunload",()=>{br(e)},{once:!0}),v2.set(t,{focus:r})}let br=(e,t)=>{let n=mF(e),r=mL(e);t&&r.removeEventListener("DOMContentLoaded",t),v2.has(n)&&(n.HTMLElement.prototype.focus=v2.get(n).focus,r.removeEventListener("keydown",v9,!0),r.removeEventListener("keyup",v9,!0),r.removeEventListener("click",v7,!0),n.removeEventListener("focus",be,!0),n.removeEventListener("blur",bt,!1),"u">typeof PointerEvent?(r.removeEventListener("pointerdown",v8,!0),r.removeEventListener("pointermove",v8,!0),r.removeEventListener("pointerup",v8,!0)):(r.removeEventListener("mousedown",v8,!0),r.removeEventListener("mousemove",v8,!0),r.removeEventListener("mouseup",v8,!0)),v2.delete(n))};function ba(e){let[t,n]=gH(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,lr.useCallback)(()=>{n(!0)},[n]),a=(0,lr.useCallback)(()=>{n(!1)},[n]),o=(0,lr.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:o}}"u">typeof document&&("loading"!==(m=mL(void 0)).readyState?bn(void 0):m.addEventListener("DOMContentLoaded",()=>{bn(void 0)}));let bo=(0,lr.createContext)(null),bi=(0,lr.createContext)(null),bs=(0,lr.forwardRef)(function(e,t){[e,t]=mD(e,t,bo);let n=(0,lr.useContext)(vu),r=ba(e),a=null==e.isOpen&&null==e.defaultOpen&&n?n:r,o=function(e,t){let[n,r]=(0,lr.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let a="exiting"===n;return v0(e,a,(0,lr.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen)||e.isExiting||!1,i=(0,lr.useContext)(p9),{direction:s}=fv();if(i){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),la().createElement(la().Fragment,null,t)}return!a||a.isOpen||o?la().createElement(bl,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:s}):null});function bl({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var a,o;let i=(0,lr.useRef)(null),[s,l]=(0,lr.useState)(0),c=(0,lr.useRef)(null),d=(0,lr.useContext)(bi),m=d&&"SubmenuTrigger"===r.trigger;mn(()=>{i.current&&e.isOpen&&l(i.current.getBoundingClientRect().width)},[e.isOpen,i]);let{popoverProps:p,underlayProps:f,arrowProps:h,placement:g}=function(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:s,...l}=e,c="SubmenuTrigger"===l.trigger,{overlayProps:d,underlayProps:m}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e,l=(0,lr.useRef)(void 0);(0,lr.useEffect)(()=>{if(a&&!vW.includes(t))return vW.push(t),()=>{let e=vW.indexOf(t);e>=0&&vW.splice(e,1)}},[a,t]);let u=()=>{vW[vW.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,o=(0,lr.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=pF(e=>{n&&vU(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),s=pF(e=>{n&&n(e)});(0,lr.useEffect)(()=>{let e=o.current;if(r)return;let n=mL(t.current);if("u">typeof PointerEvent){let r=n=>{e.isPointerDown&&vU(n,t)&&s(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",i,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",i,!0),n.removeEventListener("click",r,!0)}}},[t,r])}({ref:t,onInteractOutside:o&&a?e=>{(!s||s(mV(e)))&&(vW[vW.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let n=vW[vW.length-1];l.current=n,(!s||s(mV(e)))&&n===t&&e.stopPropagation()}});let{focusWithinProps:c}=p0({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||yc(e.relatedTarget,yo))&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:s},a??r),{overlayProps:p,arrowProps:f,placement:h,triggerAnchorPoint:g}=function(e){var t;let{direction:n}=fv(),{arrowSize:r,targetRef:a,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:l="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d="u">typeof document?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:v=0}=e,[b,w]=(0,lr.useState)(null),x=[f,l,o.current,a.current,i?.current,s.current,u,c,d,m,p,h,n,y,v,r],D=(0,lr.useRef)(vV?.scale);(0,lr.useEffect)(()=>{h&&(D.current=vV?.scale)},[h]);let E=(0,lr.useCallback)(()=>{var e;if(!1===f||!h||!o.current||!a.current||!d||vV?.scale!==D.current)return;let t=null;if(s.current&&mU(s.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),n=s.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-n.top}).offset>n.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-n.bottom)}let g=o.current;!y&&o.current&&(g.style.top="0px",g.style.bottom="",g.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let b=function(e){let t,n,{placement:r,targetNode:a,overlayNode:o,scrollNode:i,padding:s,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:m,arrowSize:p=0,arrowBoundaryOffset:f=0}=e,h="u">typeof document?window.visualViewport:null,g=o instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!vL(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!vL(t);)t=t.parentElement;return t||document.documentElement}(o):document.documentElement,y=g===document.documentElement,v=window.getComputedStyle(g).position,b=y?vj(a,!1):vI(a,g,!1);if(!y){let{marginTop:e,marginLeft:t}=window.getComputedStyle(a);b.top+=parseInt(e,10)||0,b.left+=parseInt(t,10)||0}let w=vj(o,!0),x={top:parseInt((t=window.getComputedStyle(o)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};w.width+=(x.left??0)+(x.right??0),w.height+=(x.top??0)+(x.bottom??0),i.scrollTop,i.scrollLeft,i.scrollWidth,i.scrollHeight;let D=vR(u,h),E=vR(g,h);if("BODY"!==u.tagName&&"HTML"!==u.tagName||y)n=("BODY"===u.tagName||"HTML"===u.tagName)&&y?{top:0,left:0,width:0,height:0}:vI(u,g,!1);else{let e=vA(g,!1);n={top:-(e.top-D.top),left:-(e.left-D.left),width:0,height:0}}return function(e,t,n,r,a,o,i,s,l,u,c,d,m,p,f,h,g){var y,v,b;let w,x,D,E=vO(e),{size:_,crossAxis:S,crossSize:k,placement:C,crossPlacement:P}=E,T=v$(t,i,n,E,u,c,l,d,p,f,s),R=u,N=vM(i,l,t,r,a+u,E,s,h);if(o&&n[_]>N){let e=vO(`${vS[C]} ${P}`),o=v$(t,i,n,e,u,c,l,d,p,f,s);vM(i,l,t,r,a+u,e,s,h)>N&&(E=e,T=o,R=u)}let O="bottom";"top"===E.axis?"top"===E.placement?O="top":"bottom"===E.placement&&(O="bottom"):"top"===E.crossAxis&&("top"===E.crossPlacement?O="bottom":"bottom"===E.crossPlacement&&(O="top"));let $=vN(S,T[S],n[k],i,s,a,l);T[S]+=$;let M=(y=T,v=n.height,b=O,w=(null!=y.top?y.top:s[vP.height]-(y.bottom??0)-v)-(s.scroll.top??0),x=h?l.top:0,D={top:Math.max(i.top+x,(g?.offsetTop??i.top)+x),bottom:Math.min(i.top+i.height+x,(g?.offsetTop??0)+(g?.height??0))},"top"!==b?Math.max(0,D.bottom-w-((r.top??0)+(r.bottom??0)+a)):Math.max(0,w+v-D.top-((r.top??0)+(r.bottom??0)+a)));m&&m<M&&(M=m),n.height=Math.min(n.height,M),$=vN(S,(T=v$(t,i,n,E,R,c,l,d,p,f,s))[S],n[k],i,s,a,l),T[S]+=$;let A={},j=t[S]-T[S]-r[v_[S]],I=j+.5*t[k],L=p/2+f,F="left"===v_[S]?(r.left??0)+(r.right??0):(r.top??0)+(r.bottom??0),B=n[k]-F-p/2-f,V=vx(I,t[S]+p/2-(T[S]+r[v_[S]]),t[S]+t[k]-p/2-(T[S]+r[v_[S]]));A[S]=vx(V,L,B),({placement:C,crossPlacement:P}=E),p?j=A[S]:"right"===P?j+=t[k]:"center"===P&&(j+=t[k]/2);let U="left"===C||"top"===C?n[_]:0,W={x:"top"===C||"bottom"===C?j:U,y:"left"===C||"right"===C?j:U};return{position:T,maxHeight:M,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:C,triggerAnchorPoint:W}}(r,b,w,x,s,l,D,E,n,c,d,!!v&&"static"!==v,m,p,f,mB(u,g),h)}({placement:(e=l,"rtl"===n?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:o.current,targetNode:a.current,scrollNode:s.current||o.current,padding:u,shouldFlip:c,boundaryElement:d,offset:m,crossOffset:p,maxHeight:y,arrowSize:r??(i?.current?vA(i.current,!0).width:0),arrowBoundaryOffset:v});if(!b.position)return;g.style.top="",g.style.bottom="",g.style.left="",g.style.right="",Object.keys(b.position).forEach(e=>g.style[e]=b.position[e]+"px"),g.style.maxHeight=null!=b.maxHeight?b.maxHeight+"px":"";let x=((e=document)=>e.activeElement)();if(t&&x&&s.current){let e=x.getBoundingClientRect(),n=s.current.getBoundingClientRect(),r=e[t.type]-n[t.type];s.current.scrollTop+=r-t.offset}w(b)},x);mn(E,x),mn(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=E]),vB({ref:o,onResize:E}),vB({ref:a,onResize:E});let _=(0,lr.useRef)(!1);mn(()=>{let e,t=()=>{_.current=!0,clearTimeout(e),e=setTimeout(()=>{_.current=!1},500),E()},n=()=>{_.current&&t()};return vV?.addEventListener("resize",t),vV?.addEventListener("scroll",n),()=>{vV?.removeEventListener("resize",t),vV?.removeEventListener("scroll",n)}},[E]);let S=(0,lr.useCallback)(()=>{_.current||g?.()},[g,_]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,lr.useEffect)(()=>{if(!n||null===r)return;let e=e=>{let n=mV(e);if(!t.current||n instanceof Node&&!mB(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let a=r||vF.get(t.current);a&&a()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}({triggerRef:a,isOpen:h,onClose:g&&S}),{overlayProps:{style:{position:b?"absolute":"fixed",top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b?.position,maxHeight:b?.maxHeight??"100vh"}},placement:b?.placement??null,triggerAnchorPoint:b?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b?.arrowOffsetLeft,top:b?.arrowOffsetTop}},updatePosition:E}}({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o&&!c?t.close:null});return!function(e={}){let{isDisabled:t}=e;mn(()=>{if(!t){let e,t,n,r,a,o,i,s;return 1==++vG&&(u=m9()?(t=vZ(document.documentElement,"overflow","hidden"),n=!1,r=document.createElement("style"),(a=pj())&&(r.nonce=a),r.textContent=`
|
|
39
39
|
@layer {
|
|
40
40
|
* {
|
|
41
41
|
overscroll-behavior: contain;
|
|
42
42
|
}
|
|
43
|
-
}`.trim(),document.head.prepend(r),o=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=((e=document)=>e.activeElement)(),n=null!=t&&vH(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||vY(this,n)},i=mt(vZ(document,"touchstart",t=>{let r=mV(t);e=hY(r)?r:hq(r,!0),n=!1;let a=r.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(r,!0)&&(n=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),vZ(document,"touchmove",t=>{if(2!==t.touches.length&&!n){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),vZ(document,"blur",e=>{let t=mV(e),n=e.relatedTarget;if(n&&vH(n))n.focus({preventScroll:!0}),vY(n,vH(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),i(),r.remove(),HTMLElement.prototype.focus=o}):mt((s=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?vG(document.documentElement,"scrollbarGutter","stable"):vG(document.documentElement,"paddingRight",`${s}px`)),vG(document.documentElement,"overflow","hidden"))),()=>{0==--vK&&u()}}},[t])}({isDisabled:o||!t.isOpen}),(0,lr.useEffect)(()=>{if(t.isOpen&&r.current)if(o){var e,n,i=a?.current??r.current;let t=vb[vb.length-1];return t&&!t.visibleNodes.has(i)?(t.visibleNodes.add(i),()=>{t.visibleNodes.delete(i)}):void 0}else{let t,o,i,s,l,u,c,d,m,p,f;return e=[a?.current??r.current],o=(n={shouldUseInert:!0})instanceof(t=mF(e?.[0])).Element?{root:n}:n,i=o?.root??document.body,s=o?.shouldUseInert&&vy,l=new Set(e),u=new Set,c=(e,n)=>{s&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(mB(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=yt(mL(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&m(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)m(e),e=n.nextNode()}},m=e=>{let n=vv.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&c(e,!0),u.add(e),vv.set(e,n+1))},vb.length&&vb[vb.length-1].disconnect(),d(i),(p=new MutationObserver(e=>{for(let n of e)if("childList"===n.type&&n.target.isConnected&&![...l,...u].some(e=>mB(e,n.target)))for(let e of n.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(i,{childList:!0,subtree:!0}),f={visibleNodes:l,hiddenNodes:u,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},vb.push(f),()=>{for(let e of(p.disconnect(),u)){let t=vv.get(e);null!=t&&(1===t?(c(e,!1),vv.delete(e)):vv.set(e,t-1))}f===vb[vb.length-1]?(vb.pop(),vb.length&&vb[vb.length-1].observe()):vb.splice(vb.indexOf(f),1)}}},[o,t.isOpen,r,a]),{popoverProps:my(d,p),arrowProps:f,underlayProps:m,placement:h,triggerAnchorPoint:g}}({...r,offset:null!=(a=r.offset)?a:8,arrowSize:s,groupRef:m?d:c},e),y=r.popoverRef,v=function(e,t=!0){let[n,r]=(0,lr.useState)(!0),a=n&&t;return mn(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),vQ(e,a,(0,lr.useCallback)(()=>r(!1),[])),a}(y,!!g)||r.isEntering||!1,b=mw({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:g,isEntering:v,isExiting:t}}),w=!r.isNonModal||"SubmenuTrigger"===r.trigger,[x,D]=(0,lr.useState)(!1);mn(()=>{y.current&&D(w&&!y.current.querySelector("[role=dialog]"))},[y,w]),(0,lr.useEffect)(()=>{var e;let t,n;x&&y.current&&!y.current.contains(document.activeElement)&&(n=((e=document)=>e.activeElement)(t=mL(e=y.current)),"virtual"===v0?pE(()=>{((e=document)=>e.activeElement)(t)===n&&e.isConnected&&mj(e)}):mj(e))},[x,y]);let E={...p.style,...b.style},_=la().createElement("div",{...my(mA(r),p),...b,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:y,slot:r.slot||void 0,style:E,dir:r.dir,"data-trigger":r.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!r.isNonModal&&la().createElement(vX,{onDismiss:e.close}),la().createElement(vg.Provider,{value:{...h,placement:g,ref:i}},b.children),la().createElement(vX,{onDismiss:e.close}));return m?la().createElement(vi,{...r,shouldContainFocus:x,isExiting:t,portalContainer:null!=(o=null!=n?n:null==d?void 0:d.current)?o:void 0},_):la().createElement(vi,{...r,shouldContainFocus:x,isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&la().createElement("div",{"data-testid":"underlay",...f,style:{position:"fixed",inset:0}}),la().createElement("div",{ref:c,style:{display:"contents"}},la().createElement(bo.Provider,{value:c},_)))}function bl(e){return e?.start!=null&&null!=e.end}let bu=(0,lr.createContext)(null),bc=(0,lr.createContext)(null),bd=(0,lr.createContext)(null),bm=(0,lr.createContext)(null),bp=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,bu);let{validationBehavior:a}=mx(vp)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){let t=br(e),[n,r]=gW(e.value,e.defaultValue||null,e.onChange),[a]=(0,lr.useState)(n),o=n||e.placeholderValue||null,[i,s]=yJ(o,e.granularity),l=null!=n?n.toDate(s??"UTC"):null,u="hour"===i||"minute"===i||"second"===i,c=e.shouldCloseOnSelect??!0,[d,m]=(0,lr.useState)(null),[p,f]=(0,lr.useState)(null);if(n&&(d=n,"hour"in n&&(p=n)),o&&!(i in o))throw Error("Invalid granularity "+i+" for value "+o.toString());let h=n?.calendar.identifier==="gregory"&&"BC"===n.era,g=(0,lr.useMemo)(()=>({granularity:i,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:h}),[i,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,h]),{minValue:y,maxValue:v,isDateUnavailable:b}=e,w=(0,lr.useMemo)(()=>yz(n,y,v,b,g),[n,y,v,b,g]),x=yL({...e,value:n,builtinValidation:w}),D=x.displayValidation.isInvalid,E=e.validationState||(D?"invalid":null),_=(e,t)=>{r("timeZone"in t?t.set(hh(e)):hg(e,t)),m(null),f(null),x.commitValidation()};return{...x,value:n,defaultValue:e.defaultValue??a,setValue:r,dateValue:d,timeValue:p,setDateValue:n=>{let a="function"==typeof c?c():c;u?p||a?_(n,p||yY(e.defaultValue||e.placeholderValue)):m(n):(r(n),x.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?_(d,e):f(e)},granularity:i,hasTime:u,...t,setOpen(r){!r&&!n&&d&&u&&_(d,p||yY(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:E,isInvalid:D,formatValue:(e,t)=>l?new f_(e,yZ(t,g)).format(l):"",getDateFormatter:(e,t)=>new f_(e,yZ({},{...g,...t}))}}({...e,validationBehavior:o}),s=(0,lr.useRef)(null),[l,u]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:c,labelProps:d,fieldProps:m,buttonProps:p,dialogProps:f,calendarProps:h,descriptionProps:g,errorMessageProps:y,...v}=function(e,t,n){var r;let a=mf(),o=mf(),i=mf(),s=fF((r=yD)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:m,descriptionProps:p,errorMessageProps:f}=yS({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),h=yE(t,n),g=m["aria-labelledby"]||m.id,{locale:y}=fy(),v=t.formatValue(y,{month:"long"}),b=h4(v?s.format("selectedDateDescription",{date:v}):""),w=[b["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=mA(e),D=(0,lr.useMemo)(()=>yy(n),[n]),E=(0,lr.useRef)(!1),{focusWithinProps:_}=pQ({...e,isDisabled:t.isOpen,onBlurWithin:t=>{mB(document.getElementById(o),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:my(x,h,m,b,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":w,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{D.focusFirst()}},fieldProps:{...m,id:i,[yT]:"presentation","aria-describedby":w,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[yI]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:f,buttonProps:{...b,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":w,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${g}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...m_(e),label:u,validationBehavior:o},i,s),[b,w]=(0,lr.useState)(null),x=(0,lr.useCallback)(()=>{s.current&&w(s.current.offsetWidth+"px")},[]);vF({ref:s,onResize:x});let{focusProps:D,isFocused:E,isFocusVisible:_}=p0({within:!0}),S=mw({...e,values:{state:i,isFocusWithin:E,isFocusVisible:_,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),k=mA(e);return delete k.id,la().createElement(mb,{values:[[bd,i],[g9,{...c,ref:s,isInvalid:i.isInvalid}],[y9,m],[p7,{...p,isPressed:i.isOpen}],[vf,{...d,ref:l,elementType:"span"}],[gY,h],[vl,i],[ba,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":b}}],[vs,f],[fn,{slots:{description:g,errorMessage:y}}],[vc,v]]},la().createElement("div",{...D,...k,...S,ref:t,slot:e.slot||void 0,"data-focus-within":E||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":_||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))}),bf=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,bc);let{validationBehavior:a}=mx(vp)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){let t=br(e),[n,r]=gW(e.value,e.defaultValue||null,e.onChange),[a]=(0,lr.useState)(n),[o,i]=(0,lr.useState)(()=>n||{start:null,end:null});null==n&&o.start&&o.end&&i(o={start:null,end:null});let s=n||o,l=e=>{i(s=e||{start:null,end:null}),bl(s)?r(s):r(null)},[u,c]=yJ(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,m=e.shouldCloseOnSelect??!0,[p,f]=(0,lr.useState)(null),[h,g]=(0,lr.useState)(null);s&&bl(s)&&(p=s,"hour"in s.start&&(h=s));let y=(e,t)=>{l({start:"timeZone"in t.start?t.start.set(hh(e.start)):hg(e.start,t.start),end:"timeZone"in t.end?t.end.set(hh(e.end)):hg(e.end,t.end)}),f(null),g(null),k.commitValidation()},v=n=>{let r="function"==typeof m?m():m;d?bl(n)&&(r||h?.start&&h?.end)?y(n,{start:h?.start||yY(e.placeholderValue),end:h?.end||yY(e.placeholderValue)}):f(n):bl(n)?(l(n),k.commitValidation()):f(n),r&&t.setOpen(!1)},b=e=>{bl(p)&&bl(e)?y(p,e):g(e)},w=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,x=(0,lr.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,w]),{minValue:D,maxValue:E,isDateUnavailable:_}=e,S=(0,lr.useMemo)(()=>{var e;let t;return e=s,t=yU(yz(e?.start??null,D,E,_,x),yz(e?.end??null,D,E,_,x)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(t=yU(t,{isInvalid:!0,validationErrors:[(f$.getGlobalDictionaryForPackage("@react-stately/datepicker")||yW).getStringForLocale("rangeReversed",yH())],validationDetails:{...y$,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),t},[s,D,E,_,x]),k=yL({...e,value:n,name:(0,lr.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:S}),C=k.displayValidation.isInvalid,P=e.validationState||(C?"invalid":null);return{...k,value:s,defaultValue:e.defaultValue??a,setValue:l,dateRange:p,timeRange:h,granularity:u,hasTime:d,setDate(e,t){"start"===e?v({start:t,end:p?.end??null}):v({start:p?.start??null,end:t})},setTime(e,t){"start"===e?b({start:t,end:h?.end??null}):b({start:h?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:v,setTimeRange:b,...t,setOpen(n){!n&&!(s?.start&&s?.end)&&bl(p)&&d&&y(p,{start:h?.start||yY(e.placeholderValue),end:h?.end||yY(e.placeholderValue)}),t.setOpen(n)},validationState:P,isInvalid:C,formatValue(t,n){let r;if(!s||!s.start||!s.end)return null;let a="timeZone"in s.start?s.start.timeZone:void 0,o=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),i="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=yZ(n,{granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(a||"UTC"),d=s.end.toDate(i||"UTC"),m=new f_(t,u);if(a===i&&o===l&&0!==s.start.compare(s.end)){try{let e=m.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=m}else r=new f_(t,yZ(n,{granularity:l,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:m.format(c),end:r.format(d)}},getDateFormatter:(e,t)=>new f_(e,yZ({},{...x,...t}))}}({...e,validationBehavior:o}),s=(0,lr.useRef)(null),[l,u]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:c,labelProps:d,startFieldProps:m,endFieldProps:p,buttonProps:f,dialogProps:h,calendarProps:g,descriptionProps:y,errorMessageProps:v,...b}=function(e,t,n){var r;let a=fF((r=yD)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=yS({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),m=u["aria-labelledby"]||u.id,{locale:p}=fy(),f=t.formatValue(p,{month:"long"}),h=h4(f?a.format("selectedRangeDescription",{startDate:f.start,endDate:f.end}):""),g={"aria-label":a.format("startDate"),"aria-labelledby":m},y={"aria-label":a.format("endDate"),"aria-labelledby":m},v=mf(),b=mf(),w=yE(t,n),x=[h["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=(0,lr.useMemo)(()=>yy(n,{accept:e=>e.id!==v}),[n,v]),E={[yR]:D,[yT]:"presentation","aria-describedby":x,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},_=mA(e),S=(0,lr.useRef)(!1),{focusWithinProps:k}=pQ({...e,isDisabled:t.isOpen,onBlurWithin:t=>{mB(document.getElementById(b),t.relatedTarget)||(S.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{S.current||(S.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),C=(0,lr.useRef)(yA),P=(0,lr.useRef)(yA);return{groupProps:my(_,w,u,h,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":x,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...l,onClick:()=>{D.focusFirst()}},buttonProps:{...h,id:v,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${v} ${m}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${v} ${m}`},startFieldProps:{...g,...E,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[yI]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){C.current=e,t.updateValidation(yU(e,P.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,...E,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[yI]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(yU(C.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:o,validationErrors:i,validationDetails:s}}({...m_(e),label:u,validationBehavior:o},i,s),[w,x]=(0,lr.useState)(null),D=(0,lr.useCallback)(()=>{s.current&&x(s.current.offsetWidth+"px")},[]);vF({ref:s,onResize:D});let{focusProps:E,isFocused:_,isFocusVisible:S}=p0({within:!0}),k=mw({...e,values:{state:i,isFocusWithin:_,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),C=mA(e);return delete C.id,la().createElement(mb,{values:[[bm,i],[g9,{...c,ref:s,isInvalid:i.isInvalid}],[p7,{...f,isPressed:i.isOpen}],[vf,{...d,ref:l,elementType:"span"}],[gq,g],[vl,i],[ba,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":w}}],[vs,h],[y9,{slots:{start:m,end:p}}],[fn,{slots:{description:y,errorMessage:v}}],[vc,b]]},la().createElement("div",{...E,...C,...k,ref:t,slot:e.slot||void 0,"data-focus-within":_||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))});function bh(e){return la().createElement(fg,e)}function bg(e,t,n=!1){if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(e instanceof hr||e instanceof ho||e instanceof hi)return t?hy(e,t):e;{let n=uG()(e).toDate(),r=new hr(n.getFullYear(),n.getMonth()+1,n.getDate());return t?hy(r,t):r}}function by(e){if(e)return e.toDate(hT())}function bv(e){if("string"==typeof e&&0!==e.trim().length)try{return new Intl.Locale(e.replace(/[_@]/g,"-")).toString()}catch{return}}function bb(e){let t=e??"",n=bv(t);if(!n)return t;try{return new Intl.DisplayNames([n],{type:"language"}).of(n)??t}catch{return t}}function bw(){let e=window.i18next.language,t=bv(e)??e;return"ht"===t&&(t="fr-HT"),t}if("u">typeof navigator){let e=navigator;ee=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;ee=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var bx=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(ee||"en-US"),bD=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},bE={};for(let e=1;e<100;e++)bE[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var b_={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},bS="[1234567890一二三四五六七八九〇\\d]",bk={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},bC={},bP={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},bT={zone:bP,year:bE,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},bR={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(bP).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},bN={...bR,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},bO={},b$=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=bx){return bO[t.toLowerCase()]||(bO[t.toLowerCase()]=new e(t)),bO[t.toLowerCase()]}constructor(e=bx){this.locale=e,this.lookups={...bT},this.vars={...bR};let t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.toInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(n)+this.toInt(r||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=bk:this.buildNumbers(),/^en/i.test(this.locale)||(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(bC[e])return bC[e];if("fullwide"===e||"hanidec"===e)return{group:bS,lookup:{...bk}};let t=b_[e];if(!t)return{group:"\\d",lookup:{...bk}};let n=String.fromCharCode(t),r=String.fromCharCode(t+9),a={};for(let e=0;e<10;e++)a[String.fromCharCode(t+e)]=e;return bC[e]={group:`[${n}-${r}]`,lookup:a},bC[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,bN)bN.hasOwnProperty(n)&&(this.vars[n]=bN[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,o)=>{e[n+a+(o<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let o=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let i=0;i<12;i++){let s=o.formatToParts(n[i]).find(r).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===a?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=i+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let o=0;o<12;o++){let i=a.formatToParts(n[o]).find(r).value.toLocaleLowerCase(this.locale);i=i.replace(/\.$/,""),e[`${i}\\.?`]=!0,t[i]=o+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let o=Intl.DateTimeFormat(this.locale,{weekday:a});for(let i=0;i<7;i++){let s=o.formatToParts(e[i]).find(t).value.toLocaleLowerCase(this.locale);"short"===a?(s=s.replace(/\.$/,""),n.push(`${s}\\.?`)):n.push(s),r[s]=i}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let o=0;o<2;o++){let i=a.formatToParts(e[o]).find(t);if(!i)return;let s=i.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*o}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},bM=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],bA={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},bj=()=>new Date;function bI(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var bL=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let o=e.handler(a);if(o){for(let[e,t]of Object.entries(o))e in n||void 0===t||(n[e]=t);if(t=(t=t.slice(0,a.index)+t.slice(a.index+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},bF=["year","month","day","hour","minute","second","millisecond","offset"],bB={};function bV(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var bU=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],bW={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...bU],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:bU,id:bU,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function bH(e,t=bx){let n=function(e){if(!bB[e]){var t,n;let r,a,o=b$.factory(e);bB[e]=new bL({doneChecker:bV,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:bI(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:bI(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:bI(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${bS}{2,4})\\s*\u5E74\\s*(${bS}{1,2})\\s*\u6708\\s*(${bS}{1,2})\\s*\u65E5$`),handler:bI(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:bI(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:bI(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=bj(),n=e[1].toLowerCase();switch(n){case"tomorrow":t.setUTCDate(t.getUTCDate()+1);break;case"yesterday":t.setUTCDate(t.getUTCDate()-1)}let r={year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()};return"now"===n&&(r.hour=t.getUTCHours(),r.minute=t.getUTCMinutes(),r.second=t.getUTCSeconds(),r.millisecond=t.getUTCMilliseconds()),console.log("today=>",n,r),r}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,n,r]){t=parseFloat(t),"week"===(n=n.length<=2?bA[n]:(n=n.replace(/s$/,"")).toLowerCase())&&(n="day",t*=7),("-"===e||r)&&(t*=-1);let a=bj();return"millisecond"===n?a.setUTCMilliseconds(a.getUTCMilliseconds()+t):"second"===n?a.setUTCSeconds(a.getUTCSeconds()+t):"minute"===n?a.setUTCMinutes(a.getUTCMinutes()+t):"hour"===n?a.setUTCHours(a.getUTCHours()+t):"day"===n?a.setUTCDate(a.getUTCDate()+t):"month"===n?a.setUTCMonth(a.getUTCMonth()+t):"year"===n&&a.setUTCFullYear(a.getUTCFullYear()+t),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:bI(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:bI(["","hour","minute","second","millisecond","zone"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:bI(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:bI(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:bI(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:bI(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:bI(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:bI(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:bI(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:bI(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:bI(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:bI(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:bI(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:bI(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:bI(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([.-])(_MONTH_)\\2+(_DAY_)"),handler:bI(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:bI(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:bI(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:bI(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:bI(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:bI(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:bI(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:bI(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:bI(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:bI(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:bI(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:bI(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:bI(["zone"])}],a=o.baseName.slice(0,5),bM.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(bF.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return t.year<100&&(t.year=bE[t.year]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})})}return bB[e]}(t),r=function(e,t){let n=bW[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function bz(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new bD(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new bD(t.valueOf()-60*e.offset*1e3):t}function bK(e,t=bx){let n=bH(e,t),r=n.invalid?new bD(NaN):bz(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function bG(e,t=bx){return e instanceof Date?new bD(e.valueOf()):"number"==typeof e?new bD(e):bK(e,t)}Date.fromString=bD.fromString=bK,Date.fromAny=bD.fromAny=bG,"u">typeof window&&(window.anyDateParser={fromString:bK,fromAny:bG,fromObject:bz,attempt:bH});var bZ=n(4397),bY=n(7657);let bq=function(e){return null==e};function bJ(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}uG().extend(uZ),uG().extend(bY),uG().extend(bZ);let bX="YYYY-MM-DDTHH:mm:ss.SSSZZ";function bQ(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&uG()(e,bX).isValid()}function b0(e){return uG()(e).isToday()}function b1(e){return bQ(e)?uG()(e,bX).toDate():null}function b4(e,t=!1){let n=uG()(e);return t&&(n=n.utc()),n.format(bX)}function b2(e){return uG()(e).toDate()}var b3=new WeakMap;let b6=new class{register(e,t){bJ(this,b3).set(e,t)}getCalendar(e){if(!e)return;if(e.calendar)return e.calendar;if(e.region){let t=`${e.language}-${e.region}`;if(bJ(this,b3).has(t))return bJ(this,b3).get(t)}if(e.language&&bJ(this,b3).has(e.language))return bJ(this,b3).get(e.language);let t=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return bJ(this,b3).set(`${e.language}${e.region?`-${e.region}`:""}`,t),t}constructor(){!function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,b3,{writable:!0,value:new Map})}};function b5(e,t){b6.register(e,t)}function b9(e){let t=e??bw();return b6.getCalendar(t instanceof Intl.Locale?t:new Intl.Locale(t))}let b8={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function b7(e,t={}){let n=bH(e,bw());if(n.invalid)return console.warn(`Could not parse invalid date '${e}'`),null;!bq(n.day)&&bq(n.month)&&(n=Object.assign({},tp(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},tp(n,"day"),{date:n.day}));let r=uG()().set(n).toDate();return bq(n.year)&&(t.year=!1),bq(n.month)&&(t.month=!1),bq(n.date)&&(t.day=!1),we(r,t)}function we(e,t){let n,r=t?.locale??bw(),a=new Intl.Locale(r),{calendar:o,mode:i,time:s,day:l,month:u,year:c,noToday:d,numberingSystem:m}={...b8,...{noToday:"am"===a.language},...t},p={calendar:o??b9(a),year:c?"numeric":void 0,month:u?"short":void 0,day:l?"2-digit":void 0,numberingSystem:m},f=uG()(e).isToday();if(f&&!d)n=(n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(r)+n.slice(1);else{"en"===a.language&&(r="en-GB");let t=new Intl.DateTimeFormat(r,p).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==i&&c&&l&&(t=t.map(wt("-"))),"wide"==i&&(t=t.map(wt(" — "))),"ethiopic"===p.calendar&&(t=t.filter((e,t,n)=>"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type))),n=t.map(e=>e.value).join("")}return(!0===s||f&&"for today"===s)&&(n+=`, ${wn(e)}`),n}let wt=e=>(t,n,r)=>"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e};function wn(e){return e.toLocaleTimeString(bw(),{hour:"2-digit",minute:"2-digit"})}function wr(e,t){return we(e,{...t,time:!0})}function wa(e,t){let n=b9("string"==typeof t?new Intl.Locale(t):t);return n?hy(e,gM(n)):e}function wo(e,t){return new Intl.DurationFormat(bw(),t).format(e)}function wi(e,t){if(null==e)return null;if("string"==typeof e){let n=bH(e,bw());return n.invalid?(console.warn(`Could not interpret '${e}' as a date`),null):(n.day&&!n.month&&(n={...tp(n,"day"),...{month:n.day}}),n.month&&(n.month-=1),n.day&&(n={...tp(n,"day"),...{date:n.day}}),uG()(t).set(n))}return uG()(e)}let ws=["years","months","days","hours","minutes","seconds"],wl={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"},wu={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function wc(e,t=uG()(),n){let r,a=uG()(t),o=wi(e,a);if(null==o)return null;if("string"==typeof n){let e=wl[n]??n;return{[e]:a.diff(o,e)}}let{thresholds:i,largestUnit:s,smallestUnit:l}=n??{};if(void 0!==s||void 0!==l){let e,t=l?wl[l]??l:void 0;return e="auto"===s||void 0===s?function(e,t,n){let r=ws.indexOf(n);for(let a=0;a<ws.length;a++){let o=ws[a];if(t.diff(e,o)>0)return a<=r?o:n}return n}(o,a,t??"seconds"):wl[s]??s,function(e,t,n,r){let a=ws.indexOf(n),o=ws.indexOf(r),i=ws.slice(a,o+1),s={},l=e;for(let e of i){let n=t.diff(l,e);s[e]=n,l=l.add(n,e)}return s}(o,a,e,t??e)}let u=(r=function(e){let t={...wu};if(e)for(let[n,r]of Object.entries(e))void 0!==r&&(t[wl[n]??n]=r);return t}(i),a.diff(o,"seconds")<r.seconds?"seconds":a.diff(o,"minutes")<r.minutes?"minutes":a.diff(o,"hours")<r.hours?"hours":a.diff(o,"days")<r.days?"days":a.diff(o,"months")<r.months?"months":"years");return{[u]:a.diff(o,u)}}let wd={style:"short",localeMatcher:"lookup"};function wm(e,t=uG()(),n){let r=wc(e,t,n);return null==r?null:wo(r,"object"==typeof n&&n.formatOptions?{...wd,...n.formatOptions}:wd)}let wp=(0,lr.createContext)(null);function wf(){let e=un({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,t=(0,lr.useMemo)(()=>{let t=bw();return e[t]&&(t=e[t]),t},[window.i18next.language]),n=(0,lr.useMemo)(()=>{let e=b9(t);return void 0!==e?gM(e):void 0},[t]),r=(0,lr.useMemo)(()=>new Intl.Locale(t,{calendar:n?.identifier}),[t,n]),a=(0,lr.useMemo)(()=>n?hy(hS(hT()),n):hS(hT()),[n]);return{calendar:n,intlLocale:r,today_:a}}let wh=new hr(1793,1,1);var wg={};function wy(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function wv(e={}){let{locale:t}=fy();return(0,lr.useMemo)(()=>new(0,y4.K)(t,e),[t,e])}wg={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var wb={};wb={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let ww=()=>{};function wx(e){var t;let n=(0,lr.useRef)(void 0),{value:r,textValue:a,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:m,onDecrementPage:p,onDecrementToMin:f,onIncrementToMax:h}=e,g=fF((t=wb)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),y=(0,lr.useRef)(!1),v=(0,lr.useCallback)(()=>{clearTimeout(n.current),y.current=!1},[]),b=pF(()=>{v()});(0,lr.useEffect)(()=>()=>b(),[]);let w=(0,lr.useRef)(!1),x=()=>{w.current=!0},D=()=>{w.current=!1},E=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,lr.useEffect)(()=>{w.current&&(fv&&fv.clear("assertive"),fb(E,"assertive"))},[E]);let _=(0,lr.useCallback)(()=>{v()},[v]),S=pF(c??ww),k=pF(m??ww),C=pF(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r<i)&&(S(),P(60))}),P=pF(e=>{b(),y.current=!0,n.current=window.setTimeout(C,e)}),T=pF(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r>o)&&(k(),R(60))}),R=pF(e=>{b(),y.current=!0,n.current=window.setTimeout(T,e)}),N=e=>{e.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:$}=pB(),M=(0,lr.useRef)(!1),[A,j]=(0,lr.useState)(null);(0,lr.useEffect)(()=>{"touch"===A?P(600):A&&P(400)},[A]);let[I,L]=(0,lr.useState)(null);return(0,lr.useEffect)(()=>{"touch"===I?R(600):I&&R(400)},[I]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":E,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!l&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(d){e.preventDefault(),d?.();break}case"ArrowUp":case"Up":c&&(e.preventDefault(),c?.());break;case"PageDown":if(p){e.preventDefault(),p?.();break}case"ArrowDown":case"Down":m&&(e.preventDefault(),m?.());break;case"Home":f&&(e.preventDefault(),f?.());break;case"End":h&&(e.preventDefault(),h?.())}},onFocus:x,onBlur:D},incrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(c?.(),j("mouse")):(O(window,"pointercancel",_,{capture:!0}),M.current=!1,j("touch")),O(window,"contextmenu",N)},onPressUp:e=>{v(),"touch"===e.pointerType&&(M.current=!0),$(),j(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!y.current&&M.current&&c?.(),M.current=!1,j(null)},onFocus:x,onBlur:D},decrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(m?.(),L("mouse")):(O(window,"pointercancel",_,{capture:!0}),M.current=!1,L("touch"))},onPressUp:e=>{v(),"touch"===e.pointerType&&(M.current=!0),$(),L(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!y.current&&M.current&&m?.(),M.current=!1,L(null)},onFocus:x,onBlur:D}}}let wD=null;var wE=n(2103);function w_(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),o=n.toString().split("."),i=Math.pow(10,Math.max(a[1]&&a[1].length||0,o[1]&&o[1].length||0));t=Math.round(t*i),n=Math.round(n*i),r=("+"===e?t+n:t-n)/i}return r}let wS=(0,lr.createContext)(null),wk=(0,lr.createContext)(null),wC=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,wS);let{validationBehavior:a}=mx(vp)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",{locale:i}=fy(),s=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:o,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===o&&(o=NaN);let m=(0,lr.useCallback)(e=>void 0===r||isNaN(r)?vw(e,t,n):vD(e,t,n,r),[r,t,n]);void 0===o||isNaN(o)||"snap"!==d||(o=m(o)),isNaN(i)||"snap"!==d||(i=m(i));let[p,f]=gW(o,isNaN(i)?NaN:i,s),[h]=(0,lr.useState)(p),[g,y]=(0,lr.useState)(()=>isNaN(p)?"":new(0,y4.K)(l,a).format(p)),v=(0,lr.useMemo)(()=>new(0,wE.d)(l,a),[l,a]),b=(0,lr.useMemo)(()=>v.getNumberingSystem(g),[v,g]),w=(0,lr.useMemo)(()=>new(0,y4.K)(l,{...a,numberingSystem:b}),[l,a,b]),x=(0,lr.useMemo)(()=>w.resolvedOptions(),[w]),D=(0,lr.useCallback)(e=>isNaN(e)||null===e?"":w.format(e),[w]),E=yL({...e,value:p}),_=void 0===r||isNaN(r)?1:r;"percent"===x.style&&(void 0===r||isNaN(r))&&(_=.01);let[S,k]=(0,lr.useState)(p),[C,P]=(0,lr.useState)(l),[T,R]=(0,lr.useState)(a);Object.is(p,S)&&l===C&&a===T||(y(D(p)),k(p),P(l),R(a));let N=(0,lr.useMemo)(()=>v.parse(g),[v,g]),O=(e,r=0)=>{if(isNaN(N))return vD(isNaN(r)?0:r,t,n,_);{let r=vD(N,t,n,_);return"+"===e&&r>N||"-"===e&&r<N?r:vD(w_(e,N,_),t,n,_)}},$=(0,lr.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===n||isNaN(n)||vD(N,t,n,_)>N||w_("+",N,_)<=n),[u,c,t,n,_,N]),M=(0,lr.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||vD(N,t,n,_)<N||w_("-",N,_)>=t),[u,c,t,n,_,N]);return{...E,validate:e=>v.isValidPartialNumber(e,t,n),increment:()=>{let e=O("+",t);e===p&&y(D(e)),f(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(f(vD(n,t,n,_)),E.commitValidation())},decrement:()=>{let e=O("-",n);e===p&&y(D(e)),f(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(f(t),E.commitValidation())},canIncrement:$,canDecrement:M,minValue:t,maxValue:n,numberValue:N,defaultNumberValue:isNaN(i)?h:i,setNumberValue:f,setInputValue:y,inputValue:g,commit:e=>{let t=void 0===e?g:e,n=N;if(void 0!==e&&(n=v.parse(t)),!t.length){f(NaN),y(void 0===o?"":D(p));return}if(isNaN(n))return void y(D(p));let r="snap"===d?m(n):n,a=(r=v.parse(D(r)))!==p;f(r),y(D(void 0===o?r:p)),a&&E.commitValidation()}}}({...e,locale:i,validationBehavior:o}),l=(0,lr.useRef)(null),[u,c]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:m,inputProps:p,incrementButtonProps:f,decrementButtonProps:h,descriptionProps:g,errorMessageProps:y,...v}=function(e,t,n){var r,a,o,i,s,l,u,c,d;let m,{id:p,decrementAriaLabel:f,incrementAriaLabel:h,isDisabled:g,isReadOnly:y,isRequired:v,minValue:b,maxValue:w,autoFocus:x,label:D,formatOptions:E,onBlur:_=()=>{},onFocus:S,onFocusChange:k,onKeyDown:C,onKeyUp:P,description:T,errorMessage:R,isWheelDisabled:N,...O}=e,{increment:$,incrementToMax:M,decrement:A,decrementToMin:j,numberValue:I,inputValue:L,commit:F,commitValidation:B}=t,V=fF((r=wg)&&r.__esModule?r.default:r,"@react-aria/numberfield"),U=(0,lr.useCallback)(()=>{let e=n.current?.value??"";(0,pV.flushSync)(()=>{F()}),n.current?.value!==e&&fb(n.current?.value??"","assertive")},[F,n]),W=mf(p),{focusProps:H}=pS({onBlur(){U()}}),z=wv(E),K=(0,lr.useMemo)(()=>z.resolvedOptions(),[z]),G=wv({...E,currencySign:void 0}),Z=(0,lr.useMemo)(()=>isNaN(I)?"":G.format(I),[G,I]),{spinButtonProps:Y,incrementButtonProps:q,decrementButtonProps:J}=wx({isDisabled:g,isReadOnly:y,isRequired:v,maxValue:w,minValue:b,onIncrement:$,onIncrementToMax:M,onDecrement:A,onDecrementToMin:j,value:I,textValue:Z}),[X,Q]=(0,lr.useState)(!1),{focusWithinProps:ee}=pQ({isDisabled:g,onFocusWithinChange:Q});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,lr.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);hZ(t,"wheel",r?void 0:a)}({onScroll:(0,lr.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?$():e.deltaY<0&&A())},[A,$]),isDisabled:N||g||y||!X},n);let et=(K.maximumFractionDigits??0)>0,en=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,er="numeric";m6()?en?er="text":et&&(er="decimal"):pe()&&(en?er="numeric":et&&(er="decimal"));let ea=mA(e),eo=(0,lr.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"===e.key?((0,pV.flushSync)(()=>{F()}),B()):e.continuePropagation())},[F,B]),{isInvalid:ei,validationErrors:es,validationDetails:el}=t.displayValidation,{labelProps:eu,inputProps:ec,descriptionProps:ed,errorMessageProps:em}=function(e,t,n){let r=pF(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,lr.useEffect)(()=>{if(!wy()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n]);let a=wy()?null:e=>{let n=mV(e).value.slice(0,mV(e).selectionStart)+e.data+mV(e).value.slice(mV(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:o,inputProps:i,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:o=!1,type:i="text",validationBehavior:s="aria"}=e,[l,u]=gW(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=pT(e,t),d=yL({...e,value:l}),{isInvalid:m,validationErrors:p,validationDetails:f}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:y,errorMessageProps:v}=yS({...e,isInvalid:m,errorMessage:e.errorMessage||p}),b=mA(e,{labelable:!0}),w={type:i,pattern:e.pattern},[x]=(0,lr.useState)(l);return yk(t,e.defaultValue??x,u),yC(e,d,t),{labelProps:h,inputProps:my(b,"input"===n?w:void 0,{disabled:r,readOnly:o,required:a&&"native"===s,"aria-required":a&&"aria"===s||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(mV(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(la().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...g}),descriptionProps:y,errorMessageProps:v,isInvalid:m,validationErrors:p,validationDetails:f}}(e,n),c=(0,lr.useRef)(null);return{inputProps:my(i,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;c.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=c.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:o,descriptionProps:s,errorMessageProps:l,...u}}({...O,...ea,name:void 0,form:void 0,label:D,autoFocus:x,isDisabled:g,isReadOnly:y,isRequired:v,validate:void 0,[yI]:t,value:L,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:W,type:"text",inputMode:er,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:_,onFocus:S,onFocusChange:k,onKeyDown:(0,lr.useMemo)(()=>mt(eo,C),[eo,C]),onKeyUp:P,onPaste:t=>{e.onPaste?.(t);let n=mV(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),F(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:R},t,n);yk(n,t.defaultNumberValue,t.setNumberValue),a=t,o=e.validationBehavior,i=e.commitBehavior,s=n,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,mn(()=>{let e=s.current;if("validate"!==i||a.realtimeValidation.isInvalid||!e||e.disabled||(!wD&&"u">typeof document&&((wD=document.createElement("input")).type="number"),!wD))return;wD.min=null==l||isNaN(l)?"":String(l),wD.max=null==u||isNaN(u)?"":String(u),wD.step=null==c||isNaN(c)?"":String(c),wD.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&wD.validity.valid,n=e.validationMessage||wD.validationMessage,r={isInvalid:!t,validationErrors:n?[n]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:wD.validity.rangeOverflow,rangeUnderflow:wD.validity.rangeUnderflow,stepMismatch:wD.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(r),"native"!==o||wD.validity.valid||e.setCustomValidity(wD.validationMessage)});let ep=my(Y,H,ec,{role:null,"aria-roledescription":m9()?null:V.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ep["aria-required"]=void 0);let ef=e=>{((e=document)=>e.activeElement)()!==n.current&&("mouse"===e.pointerType?n.current?.focus():e.target.focus())},eh=e["aria-label"]||("string"==typeof e.label?e.label:"");eh||(m=null!=e.label?eu.id:e["aria-labelledby"]);let eg=mf(),ey=mf(),ev=my(q,{"aria-label":h||V.format("increase",{fieldLabel:eh}).trim(),id:m&&!h?eg:null,"aria-labelledby":m&&!h?`${eg} ${m}`:null,"aria-controls":W,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ef}),eb=my(J,{"aria-label":f||V.format("decrease",{fieldLabel:eh}).trim(),id:m&&!f?ey:null,"aria-labelledby":m&&!f?`${ey} ${m}`:null,"aria-controls":W,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ef});return{groupProps:{...ee,role:"group","aria-disabled":g,"aria-invalid":ei?"true":void 0},labelProps:eu,inputProps:ep,incrementButtonProps:ev,decrementButtonProps:eb,errorMessageProps:em,descriptionProps:ed,isInvalid:ei,validationErrors:es,validationDetails:el}}({...m_(e),label:c,validationBehavior:o},s,l),b=mw({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),w=mA(e);return delete w.id,la().createElement(mb,{values:[[wk,s],[g9,m],[g7,{...p,ref:l}],[vf,{...d,ref:u}],[p7,{slots:{increment:f,decrement:h}}],[fn,{slots:{description:g,errorMessage:y}}],[vc,v]]},la().createElement("div",{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&la().createElement("input",{type:"hidden",name:e.name,value:isNaN(s.numberValue)?"":s.numberValue}))});function wP(e,t){return Number.parseInt(we(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}let wT=(0,lr.forwardRef)(function(e,t){let{className:n}=e,r=(0,lr.useContext)(gJ),a=(0,lr.useContext)(gX),o=r??a,i=(0,lr.useContext)(wp),s=hT(),l=we(o.visibleRange.start.toDate(s),{calendar:i.calendar,locale:i.baseName,day:!1,year:!1,noToday:!0}),u=wP(o.visibleRange.start.toDate(s),i),c=o.maxValue?wP(o.maxValue.toDate(s),i):void 0,d=o.minValue?wP(o.minValue.toDate(s),i):void 0,m=(0,lr.useCallback)(e=>{o.setFocusedDate(o.focusedDate.cycle("year",e-o.focusedDate.year))},[]);return o&&(0,ca.jsxs)("span",{ref:t,className:n,children:[(0,ca.jsx)("span",{children:l}),(0,ca.jsxs)(wC,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:m,value:u,children:[(0,ca.jsx)(ye,{}),(0,ca.jsxs)(g8,{children:[(0,ca.jsx)(fe,{slot:"increment",children:(0,ca.jsx)(cj,{size:8})}),(0,ca.jsx)(fe,{slot:"decrement",children:(0,ca.jsx)(c$,{size:8})})]})]})]})}),wR="-esm-form-engine__datepicker-module__inputGroup___gBam-",wN="-esm-form-engine__datepicker-module__inputSegment___wIJDZ",wO="-esm-form-engine__datepicker-module__dateInputWrapper___LiY68",w$="-esm-form-engine__datepicker-module__invalidText___A4cv4",wM="-esm-form-engine__datepicker-module__flatButton___HcpME",wA="-esm-form-engine__datepicker-module__flatButtonMd___eFpyF",wj="-esm-form-engine__datepicker-module__flatButtonSm___tsawR",wI="-esm-form-engine__datepicker-module__flatButtonLg___4HG5y";function wL({children:e}){let t=(0,lr.useContext)(bd),n=(0,lr.useContext)(bm),r=t??n,a=uA(()=>r?.close());return(0,ca.jsx)(vu,{className:"-esm-form-engine__datepicker-module__dialog___DaqYi",ref:a,children:e})}let wF=(0,lr.forwardRef)(function({variant:e,today_:t,minDate:n,maxDate:r},a){let o="range"===e;return(0,ca.jsx)(bi,{ref:a,className:"-esm-form-engine__datepicker-module__popover___nAPzC",placement:"bottom start",offset:1,isNonModal:!0,children:(0,ca.jsx)(wL,{children:(0,ca.jsxs)(o?g0:gQ,{...o?{minValue:n,maxValue:r,className:"cds--date-picker__calendar"}:{},children:[(0,ca.jsxs)("header",{className:"-esm-form-engine__datepicker-module__header___rPv3L",children:[(0,ca.jsx)(fe,{className:ci()(wM,wA),slot:"previous",children:(0,ca.jsx)(cW,{size:16})}),(0,ca.jsx)(wT,{className:"-esm-form-engine__datepicker-module__monthYear___Rw4qE"}),(0,ca.jsx)(fe,{className:ci()(wM,wA),slot:"next",children:(0,ca.jsx)(cH,{size:16})})]}),(0,ca.jsx)(g4,{className:"-esm-form-engine__datepicker-module__calendarGrid___yKV-n",children:e=>(0,ca.jsx)(g5,{className:ci()("cds--date-picker__day",{"-esm-form-engine__datepicker-module__today___KzMTn":0===t.compare(e)}),date:e},e.toString())})]})})})}),wB=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(bd),[r,a]=mD({slot:e.slot},t,y9),{locale:o}=fy(),i=y5({...r,locale:o,createCalendar:gM}),s=(0,lr.useRef)(null),{fieldProps:l,inputProps:u}=yN({...r,inputRef:s},i,a),c=(0,lr.useCallback)(()=>{i.isDisabled||n.toggle()},[]);return(0,ca.jsxs)(mb,{values:[[y8,i],[g7,{...u,ref:s}],[g9,{...l,ref:a,isInvalid:i.isInvalid}]],children:[(0,ca.jsx)(g8,{...e,id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:i.isDisabled,isInvalid:i.isInvalid,onClick:c,children:i.segments.map((t,n)=>(0,lr.cloneElement)(e.children(t),{key:n}))}),(0,ca.jsx)(ye,{})]})}),wV=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(bd),r=(0,lr.useContext)(bm);return(n??r).isInvalid?(0,ca.jsx)(dX,{ref:t,size:16,...e}):(0,ca.jsx)(cO,{ref:t,size:16,...e})});class wU{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let wW=new Map,wH=(0,lr.forwardRef)(function({segment:e,...t},n){let r=(0,lr.useContext)(y8),a=d8(n),{segmentProps:o}=function(e,t,n){let r,a,o,i,s=(0,lr.useRef)(""),{locale:l,direction:u}=fy(),c=function(){var e;let{locale:t}=fy(),n=fL((e=yD)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,lr.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new wU(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:p,focusManager:f}=yP.get(t),h=e.isPlaceholder?"":e.text,g=(0,lr.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),y=fT({month:"long",timeZone:g.timeZone}),v=fT({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(h=v.format(t.dateValue));else{let e=y.format(t.dateValue);h=e!==h?`${h} \u{2013} ${e}`:e}let{spinButtonProps:b}=wx({value:e.value??void 0,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),w=(0,lr.useMemo)(()=>new(0,wE.d)(l,{maximumFractionDigits:0}),[l]),x=()=>{if(e.text===e.placeholder&&f.focusPrevious(),!w.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=w.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{startsWith:D}=(r=function(e){let{locale:t}=fy(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(wW.has(n))return wW.get(n);let r=new Intl.Collator(t,e);return wW.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,lr.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),o=(0,lr.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),i=(0,lr.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let o=e.slice(n,n+a);if(0===r.compare(t,o))return!0}return!1},[r]),(0,lr.useMemo)(()=>({startsWith:a,endsWith:o,contains:i}),[a,o,i])),E=fT({hour:"numeric",hour12:!0}),_=(0,lr.useMemo)(()=>{let e=new Date;return e.setHours(0),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),S=(0,lr.useMemo)(()=>{let e=new Date;return e.setHours(12),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),k=fT({year:"numeric",era:"narrow",timeZone:"UTC"}),C=(0,lr.useMemo)(()=>{if("era"!==e.type)return[];let n=hy(new hr(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:k.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[k,t.calendar,e.type]),P=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(D(_,n))t.setSegment("dayPeriod",0);else if(D(S,n))t.setSegment("dayPeriod",1);else break;f.focusNext();break;case"era":{let e=C.find(e=>D(e.formatted,n));e&&(t.setSegment("era",e.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(r))return;let a=w.parse(r),o=a;if(void 0!==e.maxValue&&a>e.maxValue&&(o=w.parse(n)),isNaN(a))return;t.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",f.focusNext()):s.current=r}}};hZ((0,lr.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&mB(n.current,e?.anchorNode)&&e.collapse(n.current)});let T=(0,lr.useRef)("");hZ(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&x();break;case"insertCompositionText":T.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&P(r.data)}}),hZ(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=T.current),null!=r&&(D(_,r)||D(S,r))&&P(r))}),mn(()=>{let e=n.current;return()=>{((e=document)=>e.activeElement)()===e&&(f.focusPrevious()||f.focusNext())}},[n,f]);let R=m9()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,lr.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let N=mf(),O=!t.isDisabled&&!t.isReadOnly&&e.isEditable,$="literal"===e.type?"":c.of(e.type),M=hW({"aria-label":`${$}${d?`, ${d}`:""}${m?", ":""}`,"aria-labelledby":m});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let A={caretColor:"transparent"};if("rtl"===u){A.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(A.direction="ltr")}return{segmentProps:my(b,M,{id:N,...R,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(la().version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(m3()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),x()}},onFocus:()=>{s.current="",n.current&&hQ(n.current,{containingElement:hq(n.current)});let e=window.getSelection();e?.collapse(n.current)},style:A,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(e,r,a),{focusProps:i,isFocused:s,isFocusVisible:l}=p0(),{hoverProps:u,isHovered:c}=p6({...t,isDisabled:r.isDisabled||"literal"===e.type}),d=function(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:i,values:s}=e;return(0,lr.useMemo)(()=>{let e,l,u;return e="function"==typeof t?t({...s,defaultClassName:a}):t,l="function"==typeof n?n({...s,defaultStyle:i||{}}):n,u="function"==typeof r?r({...s,defaultChildren:o}):null==r?o:r,{className:e??a,style:l||i?{...i,...l}:void 0,children:u??o,"data-rac":""}},[t,n,r,a,o,i,s])}({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:r.isInvalid,isDisabled:r.isDisabled,isHovered:c,isFocused:s,isFocusVisible:l},defaultChildren:e.text}),m=(0,lr.useCallback)(e=>{e.stopPropagation()},[]);return(0,ca.jsx)("span",{...my(mA(t),o,i,u),...d,ref:a,style:o.style,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":r.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":r.isDisabled||void 0,"data-type":e.type,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":l||void 0,onClick:m})}),wz={short:!1,size:"md"},wK=(0,lr.forwardRef)(function(e,t){let{className:n,defaultValue:r,isDisabled:a,invalid:o,invalidText:i,isInvalid:s,label:l,labelText:u,light:c,maxDate:d,minDate:m,onChange:p,onChangeRaw:f,short:h,size:g,value:y,...v}={...wz,...e},{calendar:b,intlLocale:w,today_:x}=wf(),D=(0,lr.useId)(),E=!!(u??l),_=(0,lr.useMemo)(()=>bg(r,b),[r,b]),S=(0,lr.useMemo)(()=>bg(y,b,!0),[y,b]),k=(0,lr.useMemo)(()=>bg(d,b),[d,b]),C=(0,lr.useMemo)(()=>bg(m??wh,b),[m,b]),P=(0,lr.useMemo)(()=>o||s,[o,s]),T=(0,lr.useMemo)(()=>(f&&p&&console.error("An OpenmrsDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),f??(e=>p?.(by(e)))),[f,p]);return(0,ca.jsx)(bh,{locale:w.toString(),children:(0,ca.jsx)("div",{className:ci()("cds--form-item",n),children:(0,ca.jsx)(mb,{values:[[wp,w]],children:(0,ca.jsxs)(bp,{className:ci()("cds--date-picker","cds--date-picker--single",{"cds--date-picker--short":h,"cds--date-picker--light":c}),defaultValue:_,isDisabled:a,isInvalid:P,maxValue:k,minValue:C,value:S,shouldForceLeadingZeros:"en"===w.language||void 0,...v,onChange:T,children:[(0,ca.jsxs)("div",{className:"cds--date-picker-container",children:[E&&(0,ca.jsx)(vh,{className:ci()("cds--label",{"cds--label--disabled":a}),htmlFor:D,children:u??l}),(0,ca.jsxs)(g8,{className:wR,children:[(0,ca.jsx)(wB,{id:E?D:void 0,ref:t,className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__inputWrapper___uKdT1",{"-esm-form-engine__datepicker-module__inputWrapperSm___0RXJc":"sm"===g,"-esm-form-engine__datepicker-module__inputWrapperMd___4Vff1":"md"===g||!g||0===g.length,"-esm-form-engine__datepicker-module__inputWrapperLg___VCRm5":"lg"===g}),children:e=>"era"!==e.type?(0,ca.jsx)(wH,{className:wN,segment:e}):(0,ca.jsx)(la().Fragment,{})}),(0,ca.jsx)(fe,{className:ci()(wM,{[wj]:"sm"===g,[wA]:"md"===g||!g||0===g.length,[wI]:"lg"===g}),children:(0,ca.jsx)(wV,{})})]}),(0,ca.jsx)(vd,{className:w$,children:i})]}),(0,ca.jsx)(wF,{variant:"single",today_:x})]})})})})}),wG=(0,lr.forwardRef)(function({className:e,defaultValue:t,invalid:n,invalidText:r,isDisabled:a,isInvalid:o,label:i,labelText:s,light:l,maxDate:u,minDate:c,onChange:d,onChangeRaw:m,size:p="md",value:f,...h},g){let{calendar:y,intlLocale:v,today_:b}=wf(),w=(0,lr.useId)(),x=!!(s??i),D=(0,lr.useMemo)(()=>{if(f)return{start:bg(f[0],y,!1),end:bg(f[1],y,!1)}},[f,y]),E=(0,lr.useMemo)(()=>{if(t)return{start:bg(t[0],y,!1),end:bg(t[1],y,!1)}},[t,y]),_=(0,lr.useMemo)(()=>bg(c??wh,y,!0),[c,y]),S=(0,lr.useMemo)(()=>bg(u,y,!0),[u,y]),k=(0,lr.useMemo)(()=>n||o,[n,o]),C=(0,lr.useMemo)(()=>(m&&d&&console.error("An OpenmrsDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),m??(e=>d?.([by(e.start),by(e.end)]))),[m,d]);return(0,ca.jsx)(bh,{locale:v.toString(),children:(0,ca.jsx)("div",{className:ci()("cds--form-item",e),children:(0,ca.jsx)(mb,{values:[[wp,v]],children:(0,ca.jsx)(bf,{id:x?w:void 0,className:ci()("cds--date-picker",{"cds--date-picker--light":l,"cds--date-picker--disabled":a}),isInvalid:k,shouldForceLeadingZeros:"en"===v.language||void 0,maxValue:S,minValue:_,value:D,defaultValue:E,ref:g,isDisabled:a,...h,onChange:C,children:(0,ca.jsxs)("div",{className:"cds--date-picker-container",children:[x&&(0,ca.jsx)(vh,{className:ci()("cds--label",{"cds--label--disabled":a}),htmlFor:w,children:s??i}),(0,ca.jsxs)(g8,{className:wR,children:[(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__datepicker-module__inputsWrapper___xXRQI",{"-esm-form-engine__datepicker-module__inputsWrapperSm___nL+b6":"sm"===p,"-esm-form-engine__datepicker-module__inputsWrapperMd___Kgcps":"md"===p||!p||0===p.length,"-esm-form-engine__datepicker-module__inputsWrapperLg___raaSN":"lg"===p}),children:[(0,ca.jsx)(ve,{className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__startInput___cWw-5",wO),slot:"start",children:e=>(0,ca.jsx)(wH,{className:wN,segment:e})}),(0,ca.jsx)("div",{className:"-esm-form-engine__datepicker-module__separator___Ddb4g",children:(0,ca.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,ca.jsx)(ve,{className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__endInput___xdYOl",wO),slot:"end",children:e=>(0,ca.jsx)(wH,{className:wN,segment:e})})]}),(0,ca.jsx)(fe,{className:ci()(wM,{[wj]:"sm"===p,[wA]:"md"===p||!p||0===p.length,[wI]:"lg"===p}),children:(0,ca.jsx)(wV,{})})]}),(0,ca.jsx)(vd,{className:w$,children:r}),(0,ca.jsx)(wF,{variant:"range",today_:b,minDate:_,maxDate:S})]})})})})})}),wZ=({diagnoses:e})=>{let{diagnosisTags:t}=un({externalModuleName:"@openmrs/esm-styleguide"});return(0,ca.jsx)("div",{className:"-esm-form-engine__diagnosis-tags-module__container___1iigI",children:e.map(e=>{let{rank:n,uuid:r,display:a}=e,o=t[1===n?"primaryColor":"secondaryColor"];return(0,ca.jsx)(cd.Tag,{type:o,children:a},r)})})},wY={action:"-esm-form-engine__empty-card-module__action___oG778",content:"-esm-form-engine__empty-card-module__content___YUXvR",desktopHeading:"-esm-form-engine__empty-card-module__desktopHeading___EljiH",tabletHeading:"-esm-form-engine__empty-card-module__tabletHeading___8mc7w",tile:"-esm-form-engine__empty-card-module__tile___3-rRO"},wq=({width:e="64",height:t="64"})=>(0,ca.jsx)("svg",{width:e,height:t,viewBox:"0 0 64 64",children:(0,ca.jsx)("use",{href:"#omrs-empty-data-illustration"})}),wJ=e=>{let t="tablet"===uT(),n=e.launchForm;return(0,ca.jsx)(cd.Layer,{className:wY.layer,children:(0,ca.jsxs)(cd.Tile,{className:wY.tile,children:[(0,ca.jsx)("div",{className:t?wY.tabletHeading:wY.desktopHeading,children:(0,ca.jsx)("h4",{children:e.headerTitle})}),(0,ca.jsx)(wq,{}),(0,ca.jsx)("p",{className:wY.content,children:aj("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,ca.jsx)("p",{className:wY.action,children:n&&(0,ca.jsx)(cd.Button,{onClick:()=>n(),kind:"ghost",size:t?"lg":"sm",children:aj("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},wX=({error:e,headerTitle:t})=>{let n="tablet"===uT();return(0,ca.jsx)(cd.Layer,{children:(0,ca.jsxs)(cd.Tile,{className:"-esm-form-engine__error-state-module__tile___mzWLn",children:[(0,ca.jsx)("div",{className:n?"-esm-form-engine__error-state-module__tabletHeading___l7Cpn":"-esm-form-engine__error-state-module__desktopHeading___p57fl",children:(0,ca.jsx)("h4",{children:t})}),(0,ca.jsxs)("p",{className:"-esm-form-engine__error-state-module__errorMessage___0fU6v",children:[aj("error","Error")," ",`${e?.response?.status}: `,e?.response?.statusText]}),(0,ca.jsx)("p",{className:"-esm-form-engine__error-state-module__errorCopy___xkVog",children:aj("errorCopy")})]})})},wQ=wX,w0=la().forwardRef((e,t)=>{let{slotName:n,basePath:r,componentContext:a,state:o}=uO(),i=window.location??{pathname:""},s=lv(n??"");return e.isChildOfHeader&&n&&s.length>0?(0,ca.jsxs)(cd.SideNav,{"aria-label":aj("leftNavigation","Left navigation"),className:"-esm-form-engine__left-nav-module__leftNav___czP9T",expanded:!0,isFixedNav:!0,ref:t,...e,children:[(0,ca.jsx)(lx,{name:"global-nav-menu-slot"}),n?(0,ca.jsx)(l4,{value:a,fallback:(0,ca.jsx)(lx,{name:n,state:{basePath:r,currentPath:i,...o}}),children:(0,ca.jsx)(lo.Provider,{value:a,children:(0,ca.jsx)(lx,{name:n,state:{basePath:r,currentPath:i,...o}})})}):null]}):null}),w1=({selectedLocationUuid:e,defaultLocationUuid:t,locationTag:n,locationsPerRequest:r=50,onChange:a})=>{let[o,i]=(0,lr.useState)(""),s=(0,lr.useId)(),{location:l}=function(e){let t=e?`/ws/fhir2/R4/Location?_id=${e}`:null,{data:n,error:r,isLoading:a}=ui()(t,aQ,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,lr.useMemo)(()=>({location:n?.data?.entry?n.data.entry[0]:null,error:t?r:null,isLoading:!!t&&a}),[n,a,r,t])}(t),{locations:u,isLoading:c,hasMore:d,loadingNewData:m,error:p,setPage:f}=function(e,t=0,n=""){let r=ua(n),{data:a,isLoading:o,isValidating:i,setSize:s,error:l}=ux()(function(n,a){if(a){let e=a.data?.link?.find(e=>"next"===e.relation);if(!e)return null;let t=new URL(e.url);return t.origin===window.location.origin?e.url:new URL(`${t.pathname}${t.search?`?${t.search}`:""}`,window.location.origin).toString()}let o=`${aq}/Location?`,i=new URLSearchParams;return i.append("_summary","data"),t&&i.append("_count",""+t),n&&i.append("_getpagesoffset",""+n*t),e&&i.append("_tag",e),"string"==typeof r&&""!==r&&i.append("name:contains",r),o+i.toString()},aQ);return(0,lr.useMemo)(()=>({locations:a?.length?a?.flatMap(e=>e?.data?.entry??[]):[],isLoading:o,totalResults:a?.[0]?.data?.total,hasMore:!!a?.length&&a?.[a.length-1]?.data?.link?.some(e=>"next"===e.relation),loadingNewData:i,error:l||null,setPage:s}),[o,a,i,s,l])}(n,r,o),h=(0,lr.useMemo)(()=>l&&!o&&t?[l,...u.filter(({resource:e})=>e.id!==t)]:u??[],[l,u,t,o]),g=(0,lr.useCallback)(e=>{a(),i(e.trim())},[a]),y=uj((0,lr.useCallback)(()=>{!m&&d&&f(e=>e+1)},[m,d,f])),v=d?Math.max(0,Math.floor(h.length-r/2)):-1;return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)(cd.Search,{"aria-describedby":p?`${s}-error`:void 0,labelText:aj("searchForLocation"),id:s,placeholder:aj("searchForLocation"),onChange:e=>g(e.target.value),size:"lg"}),p&&(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__errorNotification___NfvTe",id:`${s}-error`,children:(0,ca.jsx)(cd.InlineNotification,{kind:"error",subtitle:aj("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:aj("error","Error")})}),(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__searchResults___agplm",children:c?(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__loadingContainer___EHghS",children:Array.from({length:5}).map((e,t)=>(0,ca.jsx)(cd.RadioButtonSkeleton,{className:"-esm-form-engine__location-picker-module__radioButtonSkeleton___up5rH",role:"progressbar"},t))}):(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__locationResultsContainer___06YOS",children:h.length>0?(0,ca.jsx)(cd.RadioButtonGroup,{name:"loginLocations",onChange:e=>{a(e?.toString())},orientation:"vertical",valueSelected:e,children:h.map((e,t)=>(0,ca.jsx)(cd.RadioButton,{className:"-esm-form-engine__location-picker-module__locationRadioButton___yKif7",id:e.resource.id,labelText:(0,ca.jsx)("span",{ref:t===v?y:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id))}):(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__emptyState___cPWp8",children:(0,ca.jsx)("p",{className:"-esm-form-engine__location-picker-module__locationNotFound___b14++",children:aj("noResultsToDisplay")})})}),m&&(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__loadingIcon___GVlrq",children:(0,ca.jsx)(cd.InlineLoading,{description:aj("loading")})})]})})]})},w4=F("modalState",{modalContainer:null,modalStack:[]}),w2=0;async function w3(e,t,n={}){let r=sH(t),a=null;if(e){if(!r)throw Error(`No modal named '${t}' has been registered.`);let{load:o}=r,i=await o(),s=w2++;a=await s7({...i,name:`${t}-${s}`},{...n,domElement:e})}else k(`Failed to launch modal. Please notify your administrator. Modal name: ${t}`);return a}function w6(e){return"TO_BE_DELETED"===e.state||"DELETED"===e.state}function w5(e,t){t?.unmount&&(t.unmountPromise?.catch(()=>{}),t.unmount().catch(t=>{console.error(`The modal '${e}' failed to unmount`,t)}))}function w9(e){return e.find(e=>!w6(e))}function w8(e,t){e.container&&(e.container.style.visibility=t?"unset":"hidden")}let w7=window.getComputedStyle(document.body).overflow;function xe({modalStack:e,modalContainer:t}){if(t)if(e.length){t.style.visibility||(addEventListener("keydown",xn),document.body.style.overflow="hidden",t.style.visibility="unset");let n=w9(e);e.forEach(e=>{switch(e.state){case"NEW":{let n=function({size:e}){let t=document.createElement("div");return t.className=`cds--modal-container cds--modal-container--${e}`,t.setAttribute("role","dialog"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-modal","true"),t}({size:e.props?.size??"md"});e.container=n,e.state="MOUNTING",w3(n,e.modalName,e.props).then(r=>{w6(e)?w5(e.modalName,r):r?(e.parcel=r,t.prepend(n),w8(e,w9(w4.getState().modalStack)===e),r.mountPromise.then(()=>{w6(e)||(e.state="MOUNTED")},t=>{k(t),e.parcel=null,xt(e)})):xt(e)},t=>{k(t),xt(e)});break}case"MOUNTING":case"MOUNTED":w8(e,e===n);break;case"TO_BE_DELETED":e.state="DELETED",e.onClose(),w5(e.modalName,e.parcel),e.container?.remove(),setTimeout(()=>{let t=w4.getState();w4.setState({...t,modalStack:t.modalStack.filter(t=>t!==e)})},0)}})}else t.style.removeProperty("visibility"),document.body.style.overflow=w7,removeEventListener("keydown",xn)}function xt(e){if(w6(e))return;e.state="TO_BE_DELETED";let t=w4.getState();w4.setState({...t,modalStack:[...t.modalStack]})}function xn(e){"Escape"===e.key&&function(){let[e]=w4.getState().modalStack;e&&xt(e)}()}function xr(e){w4.subscribe(xe),w4.setState({...w4.getState(),modalContainer:e})}function xa(e,t={},n=()=>{}){let r=()=>{let e=w4.getState().modalStack.find(e=>e.onClose===n);e&&xt(e)};if(sH(e)){var a;let o,i;a={state:"NEW",onClose:n,modalName:e,props:{close:r,...t}},i=[a,...(o=w4.getState()).modalStack],w4.setState({...o,modalStack:i})}else k(`Failed to launch modal. Please notify your administrator. Modal name: "${e}"`);return r}var xo=n(5992);let xi=({notification:e})=>{let{description:t,action:n,kind:r,critical:a,title:o,onAction:i}=e;return(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:n,kind:r||"info",lowContrast:a,subtitle:t,title:o||"",inline:!0,onActionButtonClick:i})},xs=({subject:e})=>{let[t,n]=(0,lr.useState)([]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(xi,{notification:e},e.id))})},xl=({notification:e})=>{let{actionButtonLabel:t,onActionButtonClick:n=()=>{},subtitle:r,kind:a,title:o,critical:i,progressActionLabel:s,id:l,...u}=e,[c,d]=(0,lr.useState)(t);return(0,ca.jsx)(cd.ActionableNotification,{kind:a||"info",actionButtonLabel:c,ariaLabel:aj("closesActionableNotification","Closes actionable notification"),onActionButtonClick:()=>{n(),s&&d(s)},statusIconDescription:aj("actionableNotification","Actionable notification"),subtitle:r,title:o,lowContrast:i,inline:!0,...u})},xu=({subject:e})=>{let[t,n]=(0,lr.useState)([]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(xl,{notification:e},e.id))})};class xc{subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}next(e){for(let t of[...this.listeners])t(e)}constructor(){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"listeners",new Set)}}let xd=new xc,xm=0,xp=new xc,xf=0;function xh(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(xs,{subject:xd}))}function xg(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&(t instanceof Error||!(0,xo.A)(t)))?(e.description instanceof Error&&(e.description=e.description.toLocaleString()),setTimeout(()=>{xd.next({...e,id:xm++})},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function xy(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(xu,{subject:xp}))}function xv(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:"object"==typeof t&&!(0,xo.A)(t))?setTimeout(()=>{xp.next({...e,id:xf++})},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}let xb=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],xw=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"],xx={container:"-esm-form-engine__numeric-observation-module__container___gS0Wg",card:"-esm-form-engine__numeric-observation-module__card___w0fF5","abnormal-value":"-esm-form-engine__numeric-observation-module__abnormal-value___xuX3W","critical-value":"-esm-form-engine__numeric-observation-module__critical-value___Jynsn",cell:"-esm-form-engine__numeric-observation-module__cell___tMhBJ","critically-high":"-esm-form-engine__numeric-observation-module__critically-high___3L2wx","critically-low":"-esm-form-engine__numeric-observation-module__critically-low___XP+HX",high:"-esm-form-engine__numeric-observation-module__high___JV9do",low:"-esm-form-engine__numeric-observation-module__low___-uDKD","label-container":"-esm-form-engine__numeric-observation-module__label-container___vTf2y","value-container":"-esm-form-engine__numeric-observation-module__value-container___xTUIC",label:"-esm-form-engine__numeric-observation-module__label___-pfmb",value:"-esm-form-engine__numeric-observation-module__value___1A4zt",units:"-esm-form-engine__numeric-observation-module__units___SzvX+","pad-right":"-esm-form-engine__numeric-observation-module__pad-right___ND9XL","off-scale-low":"-esm-form-engine__numeric-observation-module__off-scale-low___gFAv9","off-scale-high":"-esm-form-engine__numeric-observation-module__off-scale-high___aSEmX",arrow:"-esm-form-engine__numeric-observation-module__arrow___9bvsX"},xD=({value:e,unit:t,label:n,interpretation:r,referenceRange:a,conceptUuid:o,variant:i="card",patientUuid:s})=>{let l=(0,lr.useId)(),{referenceRange:u,isLoading:c}=function(e,t){let n=null;e&&(n=t?`${aY}/conceptreferencerange/?patient=${t}&concept=${e}&v=full`:`${aY}/conceptreferencerange/?concept=${e}&v=full`);let{data:r,error:a,isLoading:o}=ui()(n,aQ),i=r?.data?.results?.[0];return{referenceRange:i?{hiNormal:i.hiNormal??null,hiAbsolute:i.hiAbsolute??null,hiCritical:i.hiCritical??null,lowNormal:i.lowNormal??null,lowAbsolute:i.lowAbsolute??null,lowCritical:i.lowCritical??null}:void 0,error:a,isLoading:o}}(a||r?void 0:o,s),d=a??u,m=(0,lr.useMemo)(()=>{if(r)return r?"--"===r?"normal":xb.includes(r)?r.toLowerCase():xw.includes(r)?r:"normal":void 0;if(d&&!c){if(!d||null==e||""===e)return"normal";let t="string"==typeof e?Number.parseFloat(e):e;return Number.isNaN(t)?"normal":null!==d.hiAbsolute&&void 0!==d.hiAbsolute&&t>d.hiAbsolute?"off_scale_high":null!==d.hiCritical&&void 0!==d.hiCritical&&t>=d.hiCritical?"critically_high":null!==d.hiNormal&&void 0!==d.hiNormal&&t>d.hiNormal?"high":null!==d.lowAbsolute&&void 0!==d.lowAbsolute&&t<d.lowAbsolute?"off_scale_low":null!==d.lowCritical&&void 0!==d.lowCritical&&t<=d.lowCritical?"critically_low":null!==d.lowNormal&&void 0!==d.lowNormal&&t<d.lowNormal?"low":"normal"}return"normal"},[r,d,e,c])??"normal",p="critically_low"===m||"critically_high"===m||"off_scale_low"===m||"off_scale_high"===m,f="normal"!==m,h=n?`omrs-numeric-obs-label-${n.replaceAll(/\s+/g,"-").toLowerCase()}-${l}`:void 0,g=`omrs-numeric-obs-value-${l}`,y=`omrs-numeric-obs-unit-${l}`,v=null!=e&&""!==e,b=v?e:aj("notAvailable","Not available"),w=ci()({[xx["critically-low"]]:"critically_low"===m||"off_scale_low"===m,[xx["critically-high"]]:"critically_high"===m||"off_scale_high"===m,[xx.low]:"low"===m,[xx.high]:"high"===m,[xx["off-scale-low"]]:"off_scale_low"===m,[xx["off-scale-high"]]:"off_scale_high"===m}),x=ci()({[xx.container]:!0,[xx.card]:!0,[xx["critical-value"]]:p,[xx["abnormal-value"]]:f&&!p}),D=ci()({[xx.cell]:!0,[w]:!0});return"cell"===i?(0,ca.jsxs)("div",{className:D,children:[b,v&&t?` ${t}`:""]}):(0,ca.jsxs)("section",{className:x,"data-testid":"numeric-observation-card",children:[n&&(0,ca.jsxs)("div",{className:xx["label-container"],children:[(0,ca.jsx)("span",{id:h,className:xx.label,children:n}),f&&(0,ca.jsx)("span",{className:xx[m.replace("_","-")],title:aj("abnormalValue","Abnormal value")})]}),(0,ca.jsxs)("div",{className:xx["value-container"],children:[(0,ca.jsx)("span",{id:g,"aria-labelledby":h&&y?`${h} ${y}`:h||y||void 0,className:xx.value,children:b}),v&&t&&(0,ca.jsx)("span",{id:y,className:xx.units,children:t})]})]})},xE="-esm-form-engine__page-header-module__pageHeader___6TOjO",x_=e=>{if("children"in e){let{children:t,className:n,...r}=e;return(0,ca.jsx)("div",{className:ci()(xE,n),...r,children:t})}{let{title:t,illustration:n,className:r,...a}=e;return(0,ca.jsx)("div",{className:ci()(xE,r),...a,children:(0,ca.jsx)(xS,{title:t,illustration:n})})}},xS=({title:e,illustration:t,className:n})=>{let[r,a]=(0,lr.useState)(null);return(0,lr.useEffect)(()=>{t3("@openmrs/esm-styleguide").then(e=>{a(e)})},[]),(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__page-header-module__pageHeaderContent___mCImT",n),children:[t,(0,ca.jsxs)("div",{className:"-esm-form-engine__page-header-module__pageLabels___kqDS+",children:[r?.implementationName&&(0,ca.jsx)("p",{children:aj(r.implementationName)}),(0,ca.jsx)("p",{className:"-esm-form-engine__page-header-module__pageName___SbZBC",children:e})]})]})},xk=({totalItems:e,pageSize:t,onPageNumberChange:n,pageNumber:r,dashboardLinkUrl:a,currentItems:o,dashboardLinkLabel:i})=>{let{pageSizes:s,pageItemsCount:l}=uF(t,e,r,o),u="tablet"===uT(),c=aj("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:e,pageItemsCount:l});return(0,ca.jsx)(ca.Fragment,{children:e>0&&(0,ca.jsxs)("div",{className:ci()({"-esm-form-engine__pagination-module__tablet___82gj1":u,"-esm-form-engine__pagination-module__desktop___6yI8e":!u}),children:[(0,ca.jsxs)("div",{children:[c,a&&(0,ca.jsx)(li,{to:a,className:"-esm-form-engine__pagination-module__configurableLink___oIqma",children:i??aj("seeAll","See all")})]}),(0,ca.jsx)(cd.Pagination,{className:"-esm-form-engine__pagination-module__pagination___A-Lcg",page:r,pageSize:t,pageSizes:s,totalItems:e,onChange:n,pageRangeText:(e,t)=>aj("paginationOfPages","of {{count}} pages",{count:t}),size:u?"lg":"sm"})]})})};function xC(e){return xT(xN(e,"usual","official"))}function xP(e){return xC(e)}function xT(e){var t;let n;return e?e.text??(n=(t=e).given??[],(t.family?n.concat(t.family):n).join(" ")):""}function xR(e){return xT(e)}function xN(e,...t){for(let n of(0==t.length&&(t=["usual"]),t)){let t=e.name?.find(e=>{var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(t)return t}}function xO(e,t=uG()()){let n=uG()(t),r=wi(e,n);if(null==r)return null;let a=n.diff(r,"hours"),o=n.diff(r,"days"),i=n.diff(r,"weeks"),s=n.diff(r,"months"),l=n.diff(r,"years"),u={};if(a<2)u.minutes=n.diff(r,"minutes");else if(o<2)u.hours=a;else if(i<4)u.days=o;else if(l<1){let e=n.subtract(i,"weeks").diff(r,"days");u.weeks=i,u.days=e}else if(l<2){let e=n.subtract(s,"months").diff(r,"days");u.months=s,u.days=e}else if(l<18){let e=n.subtract(l,"year").diff(r,"months");u.years=l,u.months=e}else u.years=l;return u}function x$(e,t=uG()()){let n=xO(e,t);if(null==n)return null;let r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),wo(n,r)}let xM={container:"-esm-form-engine__patient-banner-patient-info-module__container___iC32K",activePatientContainer:"-esm-form-engine__patient-banner-patient-info-module__activePatientContainer___OoDPd",patientBanner:"-esm-form-engine__patient-banner-patient-info-module__patientBanner___swajU",patientName:"-esm-form-engine__patient-banner-patient-info-module__patientName___+2+Xi",patientAvatar:"-esm-form-engine__patient-banner-patient-info-module__patientAvatar___Rdf75",patientAvatarButton:"-esm-form-engine__patient-banner-patient-info-module__patientAvatarButton___A1q8c",patientInfo:"-esm-form-engine__patient-banner-patient-info-module__patientInfo___L-cOQ",demographics:"-esm-form-engine__patient-banner-patient-info-module__demographics___IDhb0",row:"-esm-form-engine__patient-banner-patient-info-module__row___TP7gU",flexRow:"-esm-form-engine__patient-banner-patient-info-module__flexRow___vNMt2",tagsSlot:"-esm-form-engine__patient-banner-patient-info-module__tagsSlot___0Dvjn",identifiers:"-esm-form-engine__patient-banner-patient-info-module__identifiers___d3GTJ",identifier:"-esm-form-engine__patient-banner-patient-info-module__identifier___kc6eq",primaryIdentifier:"-esm-form-engine__patient-banner-patient-info-module__primaryIdentifier___ZxRUU",secondaryIdentifier:"-esm-form-engine__patient-banner-patient-info-module__secondaryIdentifier___eQh8x",value:"-esm-form-engine__patient-banner-patient-info-module__value___CoAOR",tag:"-esm-form-engine__patient-banner-patient-info-module__tag___InccN",gender:"-esm-form-engine__patient-banner-patient-info-module__gender___vfinx",separator:"-esm-form-engine__patient-banner-patient-info-module__separator___3OIBl",tooltipPadding:"-esm-form-engine__patient-banner-patient-info-module__tooltipPadding___hBqWG",tooltipSmallText:"-esm-form-engine__patient-banner-patient-info-module__tooltipSmallText___bPnkq",actionsButtonText:"-esm-form-engine__patient-banner-patient-info-module__actionsButtonText___VNvm7"};function xA({showIdentifierLabel:e,type:t,value:n}){return(0,ca.jsx)("span",{className:xM.primaryIdentifier,children:(0,ca.jsxs)(cd.Tag,{className:xM.tag,type:"gray",children:[e&&t?.text&&(0,ca.jsxs)("span",{className:xM.label,children:[t.text,": "]}),(0,ca.jsx)("span",{className:xM.value,children:n})]})})}function xj({showIdentifierLabel:e,type:t,value:n}){return(0,ca.jsxs)(cd.FormLabel,{className:xM.secondaryIdentifier,id:`patient-banner-identifier-${n}`,children:[e&&(0,ca.jsxs)("span",{className:xM.label,children:[t?.text,": "]}),(0,ca.jsx)("span",{className:xM.value,children:n})]})}function xI({identifiers:e,showIdentifierLabel:t}){let{excludePatientIdentifierCodeTypes:n}=un(),{primaryIdentifierCode:r}=uU(),a=e?.filter(e=>{let t=e.type?.coding?.[0]?.code;return t&&!n?.uuids.includes(t)})??[];return(0,ca.jsx)(ca.Fragment,{children:a?.length?a.map(({value:e,type:n},o)=>(0,ca.jsxs)(la().Fragment,{children:[(0,ca.jsx)("span",{className:xM.identifier,children:n?.coding?.[0]?.code===r?(0,ca.jsx)(xA,{showIdentifierLabel:t,type:n,value:e}):(0,ca.jsx)(xj,{showIdentifierLabel:t,type:n,value:e})}),o<a.length-1&&(0,ca.jsx)("span",{className:xM.separator,children:"\xb7"})]},e)):""})}let xL={Female:c4,Male:c2,Other:c3,Unknown:c6},xF=({gender:e})=>{let t=xL[e];return t?(0,ca.jsx)(t,{fill:"#525252"}):null},xB={male:"Male",female:"Female",other:"Other",unknown:"Unknown"};function xV({patient:e,renderedFrom:t}){var n;let r,a,o=xC(e),i=e?.gender&&(a=xB[r=(n=e.gender).toLowerCase()]??"Unknown",{displayText:aj(r,n),iconKey:a}),s=(0,lr.useMemo)(()=>({patientUuid:e.id,patient:e,renderedFrom:t}),[e.id,e,t]);return(0,ca.jsxs)("div",{className:xM.patientInfo,children:[(0,ca.jsx)("div",{className:ci()(xM.row,xM.patientNameRow),children:(0,ca.jsxs)("div",{className:xM.flexRow,children:[(0,ca.jsx)("span",{className:xM.patientName,children:o}),i&&(0,ca.jsxs)("div",{className:xM.gender,children:[(0,ca.jsx)(xF,{gender:i.iconKey}),(0,ca.jsx)("span",{children:i.displayText})]}),(0,ca.jsx)(lx,{className:xM.tagsSlot,name:"patient-banner-tags-slot",state:s})]})}),(0,ca.jsxs)("div",{className:xM.demographics,children:[e.birthDate&&(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("span",{children:x$(e.birthDate)}),(0,ca.jsx)("span",{className:xM.separator,children:"\xb7"}),(0,ca.jsx)("span",{children:b7(e.birthDate,{time:!1})}),(0,ca.jsx)("span",{className:xM.separator,children:"\xb7"})]}),(0,ca.jsx)(xI,{identifiers:e.identifier,showIdentifierLabel:!0}),(0,ca.jsx)(lx,{className:xM.extensionSlot,name:"patient-banner-bottom-slot",state:s})]})]})}var xU=n(8282);function xW({patient:e,patientUuid:t,actionsSlotName:n,additionalActionsSlotState:r}){let[a,o]=(0,lr.useState)(!1),{extensions:i}=lb(n),s="tablet"===uT(),l=uA(()=>o(!1),a),u=(0,lr.useRef)(null),c=(0,lr.useRef)(null),d=(0,lr.useId)(),m=`patient-actions-menu-trigger-${d}`,p=`patient-actions-menu-${d}`,f=(0,lr.useCallback)(()=>o(e=>!e),[]),h=(0,lr.useCallback)(()=>{o(!1),u.current?.focus()},[]),g=(0,lr.useCallback)(e=>{if("Escape"===e.key&&a){e.stopPropagation(),h();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&a){e.preventDefault();let t=c.current?.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t?.length)return;let n=document.activeElement?.closest?.('[role="menuitem"]')??document.activeElement,r=Array.from(t).indexOf(n);if(-1===r)return void t["ArrowDown"===e.key?0:t.length-1]?.focus();let a=r+("ArrowDown"===e.key?1:-1),o=a<0?t.length-1:a>=t.length?0:a;t[o]?.focus()}},[h,a]);(0,lr.useEffect)(()=>{if(a&&c.current){let e=c.current.querySelector('[role="menuitem"]:not([disabled])');e?.focus()}},[a]);let y=(0,lr.useMemo)(()=>({patientUuid:t,patient:e,closeMenu:h,...r}),[t,e,h,r]);return 0===i.length?null:(0,ca.jsx)("div",{className:"-esm-form-engine__patient-banner-actions-menu-module__overflowMenuContainer___FbFcO",children:(0,ca.jsxs)("div",{"data-overflow-menu":!0,className:ci()("cds--overflow-menu",cf),ref:l,children:[(0,ca.jsxs)("button",{className:ci()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":a},cy),"aria-controls":p,"aria-expanded":a,"aria-haspopup":"true",id:m,onClick:f,onKeyDown:g,ref:u,children:[(0,ca.jsx)("span",{className:"-esm-form-engine__patient-banner-actions-menu-module__actionsButtonText___hk4xW",children:aj("actions","Actions")})," ",(0,ca.jsx)(xU.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,ca.jsxs)("div",{className:ci()("cds--overflow-menu-options","cds--overflow-menu--flip",ch,{[cg]:a}),"aria-labelledby":m,"data-floating-menu-direction":"bottom",id:p,onKeyDown:g,ref:c,role:"menu",tabIndex:-1,children:[(0,ca.jsx)("ul",{className:ci()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":s}),children:(0,ca.jsx)(lx,{name:n,state:y},n)}),(0,ca.jsx)("span",{})]})]})})}var xH=n(5570),xz=n.n(xH);function xK(e){let{patientPhotoConceptUuid:t}=un({externalModuleName:"@openmrs/esm-styleguide"}),n=t?`${aY}/obs?patient=${e}&concept=${t}&v=full`:null,{data:r,error:a,isLoading:o}=lL()(e?n:null,aQ),i=r?.data?.results[0];return{data:i?{dateTime:i?.obsDatetime,imageSrc:i?.value?.links?.uri}:null,error:a,isLoading:o}}let xG=({width:e=56,height:t=56,"aria-label":n})=>{let{t:r}=(0,lj.useTranslation)();return(0,ca.jsxs)("svg",{"aria-label":n??r("patientPhotoPlaceholder","Patient photo placeholder"),width:e,height:t,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ca.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,ca.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},xZ="-esm-form-engine__patient-photo-module__avatar___thboZ";function xY({patientUuid:e,patientName:t,alt:n}){let{data:r,isLoading:a}=xK(e),[o,i]=(0,lr.useState)(null),[s,l]=(0,lr.useState)(!1),u=(0,lr.useMemo)(()=>xz().generate(e),[e]);(0,lr.useEffect)(()=>{if(r?.imageSrc){let e=new URL(r.imageSrc,window.location.origin).pathname;l(!0);let t=!1,n=new Image;return n.onload=()=>{t||(i(e),l(!1))},n.onerror=()=>{t||(i(null),l(!1))},n.src=e,()=>{t=!0}}i(null),l(!1)},[r?.imageSrc]);let c=(0,lr.useMemo)(()=>n||(o?aj("patientPhotoAlt","Profile photo of {{patientName}}",{patientName:t}):aj("patientAvatarAlt","Avatar for {{patientName}}",{patientName:t})),[n,o,t]);return a||s?(0,ca.jsx)(cd.SkeletonIcon,{className:"-esm-form-engine__patient-photo-module__skeleton___WWtyX","data-testid":"skeleton-icon"}):r?.imageSrc&&!o?(0,ca.jsx)(xG,{"aria-label":aj("patientPhotoPlaceholder","Photo placeholder for {{patientName}}",{patientName:t})}):o?(0,ca.jsx)("div",{"aria-label":c,children:(0,ca.jsx)("img",{className:xZ,src:o,alt:c,title:t})}):(0,ca.jsx)("div",{"aria-label":c,children:(0,ca.jsx)("div",{className:xZ,title:t,style:{backgroundImage:u.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,ca.jsx)("span",{className:"-esm-form-engine__patient-photo-module__initials___xLeEF",children:function(e,t=3){return e.split(/\s+/).filter(Boolean).slice(0,t).map(e=>e[0]).join("")}(t)})})})}let xq=["omrs-pict-appointments","omrs-pict-assessment-1","omrs-pict-assessment-2","omrs-pict-blood-bank","omrs-pict-cardiology","omrs-pict-ct-scan","omrs-pict-dentistry","omrs-pict-digital-trust","omrs-pict-emergency-department","omrs-pict-facility","omrs-pict-geriatrics","omrs-pict-gynaecology","omrs-pict-in-patient","omrs-pict-laboratory","omrs-pict-labs-2","omrs-pict-metadata-export","omrs-pict-obstetrics","omrs-pict-patient-search","omrs-pict-patients","omrs-pict-payments-desk","omrs-pict-pharmacy","omrs-pict-pharmacy-2","omrs-pict-registration","omrs-pict-service-queues","omrs-pict-stock-management","omrs-pict-transfer","omrs-pict-triage","omrs-pict-x-ray"],xJ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-appointments",pictogramProps:e})})),xX=xJ,xQ=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-assessment-1",pictogramProps:e})})),x0=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-assessment-2",pictogramProps:e})})),x1=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-blood-bank",pictogramProps:e})})),x4=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-cardiology",pictogramProps:e})})),x2=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-ct-scan",pictogramProps:e})})),x3=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-dentistry",pictogramProps:e})})),x6=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-digital-trust",pictogramProps:e})})),x5=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-emergency-department",pictogramProps:e})})),x9=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-facility",pictogramProps:e})})),x8=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-geriatrics",pictogramProps:e})})),x7=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-gynaecology",pictogramProps:e})})),De=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-in-patient",pictogramProps:e})})),Dt=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-laboratory",pictogramProps:e})})),Dn=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-labs-2",pictogramProps:e})})),Dr=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-metadata-export",pictogramProps:e})})),Da=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-obstetrics",pictogramProps:e})})),Do=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-patient-search",pictogramProps:e})})),Di=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-patients",pictogramProps:e})})),Ds=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-payments-desk",pictogramProps:e})})),Dl=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-pharmacy",pictogramProps:e})})),Du=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-pharmacy-2",pictogramProps:e})})),Dc=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-registration",pictogramProps:e})})),Dd=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-service-queues",pictogramProps:e})})),Dm=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-stock-management",pictogramProps:e})})),Dp=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-transfer",pictogramProps:e})})),Df=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-triage",pictogramProps:e})})),Dh=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Db,{ref:t,pictogram:"omrs-pict-x-ray",pictogramProps:e})})),Dg=x9,Dy=Di,Dv=(0,lr.memo)((0,lr.forwardRef)(function({pictogram:e,fallback:t,...n},r){let a=(0,lr.useRef)(document.getElementById(e));return(0,lr.useEffect)(()=>{let t=document.getElementById("omrs-svgs-container"),n=new MutationObserver(t=>{for(let n of t)"childList"===n.type&&(a.current=document.getElementById(e))});return t&&n.observe(t,{childList:!0}),()=>n.disconnect()},[e]),(0,ca.jsx)(l4,{value:a.current,fallback:t,children:(0,ca.jsx)(Db,{ref:r,pictogram:e,pictogramProps:n})})})),Db=(0,lr.memo)((0,lr.forwardRef)(function({pictogram:e,pictogramProps:t},n){let{className:r,size:a}=Object.assign({},{size:92},t);return(a<=26||a>144)&&(console.error(`Invalid size '${a}' specified for ${e}. Defaulting to 92.`),a=92),(0,ca.jsx)("svg",{ref:n,className:ci()("-esm-form-engine__pictograms-module__pictogram___ooPKM",r),height:a,width:a,children:(0,ca.jsx)("use",{href:`#${e}`})})})),Dw=({children:e})=>"tablet"===uT()?(0,ca.jsx)(cd.Layer,{children:e}):(0,ca.jsx)(ca.Fragment,{children:e}),Dx=({snackbar:e,closeSnackbar:t})=>{let{actionButtonLabel:n="",kind:r="success",onActionButtonClick:a=()=>{},isLowContrast:o="error"!==r,progressActionLabel:i,subtitle:s="",timeoutInMs:l=5e3,autoClose:u="error"!==r,title:c,id:d,...m}=e,[p,f]=(0,lr.useState)(n),[h,g]=(0,lr.useState)(!0),[y,v]=(0,lr.useState)(!1),b=(0,lr.useCallback)(()=>{setTimeout(t,250)},[t]),w=(0,lr.useCallback)(()=>{v(!0),b()},[b]);return(0,lr.useEffect)(()=>{if(u){let e=setTimeout(w,l);return()=>clearTimeout(e)}},[l,u,w]),(0,lr.useEffect)(()=>{g(!1),window.setTimeout(()=>{g(!0)},0)},[]),(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:p,"aria-label":aj("closeSnackbar","Close snackbar"),className:ci()("-esm-form-engine__snackbar-module__slideIn___senVE",{"-esm-form-engine__snackbar-module__animated___8eltL":h,"-esm-form-engine__snackbar-module__slideOut___BIIXm":y}),kind:r,lowContrast:o,onActionButtonClick:()=>{a(),w(),i&&f(i)},onClose:b,statusIconDescription:aj("snackbarNotification","Snackbar notification"),subtitle:s,title:c,...m})},DD=({subject:e})=>{let[t,n]=(0,lr.useState)([]),r=(0,lr.useCallback)(e=>{n(t=>t.filter(t=>t!==e))},[]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(Dx,{snackbar:e,closeSnackbar:()=>r(e)},e.id))})},DE=new xc,D_=0;function DS(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(DD,{subject:DE}))}function Dk(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(()=>{DE.next({...e,id:D_++})},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}let DC=({toast:e,closeToast:t})=>{let{description:n,kind:r,critical:a,title:o,actionButtonLabel:i,onActionButtonClick:s=()=>{}}=e,l=(0,lr.useCallback)(()=>{s(),t()},[t,s]);return(0,ca.jsx)("div",{children:(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:i,kind:r||"info",lowContrast:a,subtitle:n,title:o||"",onActionButtonClick:l,onClose:t})})},DP=({subject:e})=>{let[t,n]=(0,lr.useState)([]),r=(0,lr.useCallback)(e=>{n(t=>t.filter(t=>t!==e))},[]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(DC,{toast:e,closeToast:()=>r(e)},e.id))})},DT=new xc,DR=0;function DN(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(DP,{subject:DT}))}function DO(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,xo.A)(t))?setTimeout(()=>{DT.next({...e,id:DR++})},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}function D$(e,t=!1){if(t)return!0;let n=DL[e];return!n||!n()}function DM(e,t){let n=DK.getState()?.workspaceGroup,r=n?.name;r&&e===r&&Dq(()=>{let r=D1(e);r&&(r.setState({},!0),r.subscribe(()=>{})()),"function"==typeof n?.cleanup&&n.cleanup(),DK.setState(e=>({...e,workspaceGroup:void 0})),"function"==typeof t&&t()},r?e=>e.currentWorkspaceGroup===r:()=>!0)}function DA(e,t){let{name:n,additionalProps:r}=t;sq(n);let a=()=>{DW(e.name,{ignoreChanges:!0,onWorkspaceClose:()=>Dj(n,r),closeWorkspaceGroup:!1})};D$(e.name)?a():DX("closing-workspace-launching-new-workspace",a,e.title??e.name)}function Dj(e,t){let n=sq(e),r=DK.getState().workspaceGroup;if(r&&!r.members?.includes(e))return void DM(r.name,()=>{Dj(e,t)});let a=DK.getState().workspaceGroup?.name,o={...n,title:DQ(n,t),closeWorkspace:(t={})=>DW(e,t),closeWorkspaceWithSavedChanges:t=>DW(e,{ignoreChanges:!0,...t}),promptBeforeClosing:t=>{var n,r;return n=e,r=t,void(DL[n]=r)},setTitle:(t,n)=>{o.title=t,o.titleNode=n,DK.setState(t=>{let n=t.openWorkspaces.map(t=>t.name===e?o:t);return{...t,openWorkspaces:n}})},currentWorkspaceGroup:a,additionalProps:t??{}};function i(e,t){DK.setState(n=>{let r=[e,...t??n.openWorkspaces],a=DY(e);return{...n,openWorkspaces:r,workspaceWindowState:a}})}a&&D1(a,t);let s=DK.getState().openWorkspaces,l=s.findIndex(t=>t.name===e),u=s.find(e=>e.type==o.type);if(0===s.length)i(o);else if(s[0].canHide||0===l)if(l>=0){let t=s[l];i({...t,additionalProps:o.additionalProps,...t.title===DQ(t,t.additionalProps)&&{title:DQ(o,o.additionalProps)}},s.filter(t=>t.name!=e))}else u?(i(u,DK.getState().openWorkspaces.filter(e=>e.type!=o.type)),DA(u,{name:e,additionalProps:t})):i(o);else DA(s[0],{name:e,additionalProps:t})}function DI({targetUrl:e,contextKey:t,workspaceName:n,additionalProps:r}){DH(t),Dj(n,r),aF({to:e})}let DL={};function DF(e,t){DL[e]=t}function DB(e){return DL[e]}function DV(){let e=DK.getState();DK.setState({...e,prompt:null})}let DU={ignoreChanges:!1,onWorkspaceClose:()=>{},closeWorkspaceGroup:!0};function DW(e,t={}){t={...DU,...t};let n=()=>{let n=DK.getState();n.openWorkspaces.find(t=>t.name===e);let r=n.openWorkspaces.filter(t=>t.name!=e),a=DK.getState().workspaceGroup?.name;a&&t.closeWorkspaceGroup&&DM(a),DL[e]=()=>!1,DK.setState(e=>({...e,prompt:null,openWorkspaces:r,workspaceWindowState:DY(r?.[0])})),t?.onWorkspaceClose?.()};return D$(e,t?.ignoreChanges)?(n(),!0):(DX("closing-workspace",n,sq(e).title??e),!1)}function DH(e){DK.getState().context!=e&&DK.setState({context:e,openWorkspaces:[],prompt:null})}let Dz={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},DK=F("workspace",Dz);function DG(){return DK}function DZ(e){let t=DK.getState();DK.setState({...t,workspaceWindowState:e})}function DY(e){return e?.preferredWindowSize??"normal"}function Dq(e=()=>{},t=()=>!0){let n=DK.getState().openWorkspaces.filter(t).every(({name:e})=>D$(e)),r=()=>{D0(),e?.()};n?r():DX("closing-all-workspaces",r)}function DJ(){let{workspaceWindowState:e,openWorkspaces:t,prompt:n,workspaceGroup:r}=ld(DK);return(0,lr.useMemo)(()=>({active:t.length>0,prompt:n,workspaceWindowState:e,workspaces:t,workspaceGroup:r}),[t,e,n,r])}function DX(e,t=()=>{},n=""){let r;switch(e){case"closing-workspace":r={title:aj("unsavedChangesTitleText","Unsaved changes"),body:aj("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:()=>{t?.()},confirmText:aj("discard","Discard")};break;case"closing-all-workspaces":{let e=DK.getState().openWorkspaces.filter(({name:e})=>!D$(e)).map(({title:e},t)=>`${t+1}. ${e}`);r={title:aj("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:aj("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:e.join(",")}),onConfirm:()=>{t?.()},confirmText:aj("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:e.length})};break}case"closing-workspace-launching-new-workspace":r={title:aj("unsavedChangesTitleText","Unsaved changes"),body:aj("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:()=>{DK.setState(e=>({...e,prompt:null})),t?.()},confirmText:aj("openAnyway","Open anyway")};break;default:console.error(`Workspace system trying to open unknown prompt type "${e}" in function "showWorkspacePrompts"`),t?.();return}DK.setState(e=>({...e,prompt:r}))}function DQ(e,t){return t?.workspaceTitle??e.title}function D0(){DK.setState(Dz)}function D1(e,t={}){if(!e||"default"===e)return;let n=V(e,{});return t&&n.setState(e=>({...e,...t})),n}let D4="-esm-form-engine__action-menu-button-module__container___F68g0",D2="-esm-form-engine__action-menu-button-module__elementContainer___D1ACn",D3="-esm-form-engine__action-menu-button-module__active___HAE75";function D6({getIcon:e,formOpenInTheBackground:t,tagContent:n}){return(0,ca.jsxs)(ca.Fragment,{children:[e({size:16}),t?(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button-module__interruptedTag___CQ2Xs",children:"!"}):(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button-module__countTag___3mn9k",children:n})]})}let D5=({getIcon:e,label:t,iconDescription:n,handler:r,type:a,tagContent:o})=>{let i=uT(),{workspaces:s,workspaceWindowState:l}=DJ(),u=s?.findIndex(({type:e})=>e===a)??-1,c="hidden"!==l&&0===u,d=u>0||0===u&&"hidden"===l;return"tablet"===i||"phone"===i?(0,ca.jsxs)(cd.Button,{className:ci()(D4,{[D3]:c}),iconDescription:n,kind:"ghost",onClick:r,role:"button",tabIndex:0,size:"md",children:[(0,ca.jsx)("span",{className:D2,children:(0,ca.jsx)(D6,{formOpenInTheBackground:d,getIcon:e,tagContent:o})}),(0,ca.jsx)("span",{children:t})]}):(0,ca.jsx)(cd.IconButton,{align:"left","aria-label":n,className:ci()(D4,{[D3]:c}),enterDelayMs:300,kind:"ghost",label:t,onClick:r,size:"md",children:(0,ca.jsx)("div",{className:D2,children:(0,ca.jsx)(D6,{formOpenInTheBackground:d,getIcon:e,tagContent:o})})})};var D9=n(8742);let D8=la().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?la().createElement(D9.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},et||(et=la().createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):la().createElement(D9.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},en||(en=la().createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)});var D7=n(4240),Ee=n(8622),Et=/[\\^$.*+?()[\]{}|]/g,En=RegExp(Et.source);let Er=function(e){return(e=e8(e))&&En.test(e)?e.replace(Et,"\\$&"):e};function Ea({contextKey:e}){let{prompt:t}=DJ();return(0,lr.useEffect)(()=>{RegExp(`/${Er(e)}(/|$)`).test(window.location.pathname)||console.warn(`WorkspaceContainer has provided an invalid context key: "${e}". The context key must be part of the URL path, with no initial or trailing slash.`)},[]),(0,lr.useEffect)(()=>(DH(e),()=>{DH(null)}),[e]),(0,lr.useEffect)(()=>{let t=t=>{let{detail:{cancelNavigation:n,newUrl:r}}=t,a=RegExp(`/${Er(e)}(/|$)`),o=new URL(r),i=a.test(o.pathname),s=DK.getState().openWorkspaces.every(({name:e})=>D$(e));i||(s?D0():(n?.(),Dq(()=>{aF({to:r})})))};return window.addEventListener("single-spa:before-routing-event",t),()=>{window.removeEventListener("single-spa:before-routing-event",t)}},[]),null!=t?(0,ca.jsxs)(cd.ComposedModal,{open:!0,onClose:DV,children:[(0,ca.jsx)(cd.ModalHeader,{title:t.title}),(0,ca.jsx)(cd.ModalBody,{children:(0,ca.jsx)("p",{className:"-esm-form-engine__workspace-notification-module__messageBody___dkytJ",children:t.body})}),(0,ca.jsxs)(cd.ModalFooter,{children:[(0,ca.jsx)(cd.Button,{kind:"secondary",onClick:DV,children:t.cancelText??aj("cancel")}),(0,ca.jsx)(cd.Button,{kind:"danger",onClick:t.onConfirm,children:t.confirmText??aj("confirm")})]})]}):null}function Eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach(function(t){El(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function El(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){return(Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ec(e,t){return(Ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ed(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Em=function(e){var t=lr.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&Ec(i,t);var n,r,a,o=(n=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Eu(i);e=n?Reflect.construct(t,arguments,Eu(this).constructor):t.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return Ed(this)});function i(e){var t;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),El(Ed(t=o.call(this,e)),"handleRef",function(e){t.el=e}),El(Ed(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),El(Ed(t),"getParcelProps",function(){var e=Ei(Ei({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,Ei({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return lP&&lP.Consumer?lr.createElement(lP.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=lP&&lP.Consumer?lr.createElement(lP.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return lr.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],Es(i.prototype,r),a&&Es(i,a),i}();El(Em,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function Ep({workspace:e,additionalPropsFromPage:t}){let[n,r]=(0,lr.useState)(),a=function(e){let[t,n]=(0,lr.useState)({}),[r,a]=(0,lr.useState)(e);return(0,lr.useEffect)(()=>{r!==e&&a(e)},[e]),(0,lr.useEffect)(()=>{let e,t=D1(r);return t&&(n(t.getState()),e=t.subscribe(n)),()=>{t&&e?.()}},[r]),t}(e.currentWorkspaceGroup);(0,lr.useEffect)(()=>{let t=!0;return e.load().then(e=>{t&&r(e)}),()=>{t=!1}},[e]);let o=(0,lr.useMemo)(()=>e&&{closeWorkspace:e.closeWorkspace,closeWorkspaceWithSavedChanges:e.closeWorkspaceWithSavedChanges,promptBeforeClosing:e.promptBeforeClosing,setTitle:e.setTitle,...t,...a,...e.additionalProps},[e,t,a]);return n?(0,ca.jsx)(Em,{config:n,mountParcel:lt,...o},e.name):(0,ca.jsx)(cd.InlineLoading,{className:"-esm-form-engine__workspace-module__loader___jEP+q",description:`${aj("loading","Loading")} ...`})}function Ef({isWithinWorkspace:e,name:t,actionMenuProps:n={}}){let[r,a]=(0,lr.useState)(!1),o=(0,lr.useRef)(window.innerHeight),{featureName:i}=(0,lr.useContext)(lo),s=uT();(0,lr.useEffect)(()=>{let e=()=>{a(!uR(s)&&o.current>window.innerHeight),o.current!=window.innerHeight&&(o.current=window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]);let l=`action-menu-${t&&"default"!=t?t:i}-items-slot`;return(0,ca.jsx)("aside",{className:ci()("-esm-form-engine__action-menu-module__sideRail___iVmKs",{"-esm-form-engine__action-menu-module__withinWorkspace___YZfet":e,"-esm-form-engine__action-menu-module__sideRailHidden___bCdyQ":r,"-esm-form-engine__action-menu-module__sideRailVisible___+oJCY":!r}),children:(0,ca.jsx)("div",{className:"-esm-form-engine__action-menu-module__container___sf6Et",children:(0,ca.jsx)(lx,{className:"-esm-form-engine__action-menu-module__chartExtensions___l+r+Y",name:l,state:n})})})}function Eh({contextKey:e,overlay:t,showSiderailAndBottomNav:n,additionalWorkspaceProps:r,actionMenuProps:a}){let o=uT(),{workspaces:i,workspaceWindowState:s,workspaceGroup:l}=DJ(),u=l?.name,c=i[0],d="hidden"===s||null==c,m=c?.width??(t?"wider":"narrow"),p=(0,lr.useMemo)(()=>n||u&&!d,[u,d,n]);return l7(!d&&!uR(o)),(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)("div",{className:n?"-esm-form-engine__workspace-module__workspaceContainerWithActionMenu___kZRyN":"-esm-form-engine__workspace-module__workspaceContainerWithoutActionMenu___1OJIb",children:[(0,ca.jsx)("aside",{className:ci()(t?"-esm-form-engine__workspace-module__workspaceOverlayOuterContainer___8RiIj":"-esm-form-engine__workspace-module__workspaceWindowSpacer___F1W-O",{"-esm-form-engine__workspace-module__hiddenRelative___7oRNR":d,"-esm-form-engine__workspace-module__narrowWorkspace___R3CN9":"narrow"===m,"-esm-form-engine__workspace-module__widerWorkspace___L-pDK":"wider"===m,"-esm-form-engine__workspace-module__extraWideWorkspace___D50Zj":"extra-wide"===m}),children:(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceFixedContainer___9E2Or",{"-esm-form-engine__workspace-module__maximizedWindow___d+PZ5":"maximized"===s,"-esm-form-engine__workspace-module__hiddenFixed___kBFgl":d}),children:i.map((e,t)=>(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceInnerContainer___VEPNB",{"-esm-form-engine__workspace-module__hiddenExtraWorkspace___E7d4h":0!==t}),children:(0,ca.jsx)(lr.Suspense,{fallback:null,children:(0,ca.jsx)(lj.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,ca.jsx)(Eg,{workspaceInstance:e,additionalWorkspaceProps:r})})})},`workspace-container-${e?e.name:`empty-${t}`}`))})}),(0,ca.jsx)(Ea,{contextKey:e})]}),p&&(0,ca.jsx)(Ef,{name:u,isWithinWorkspace:!n,actionMenuProps:a})]})}function Eg({workspaceInstance:e,additionalWorkspaceProps:t}){let{t:n}=(0,lj.useTranslation)(),r=uT(),{workspaceWindowState:a,workspaceGroup:o}=DJ(),i=o?.name,s="maximized"===a;(0,lr.useEffect)(()=>{let t=n(e.title);t!==e.title&&e.setTitle(t)},[e.title,n,e.setTitle]);let{featureName:l}=(0,lr.useContext)(lo),u=(0,lr.useCallback)(()=>{DZ(s?"normal":"maximized")},[s]),{canHide:c=!1,canMaximize:d=!1,currentWorkspaceGroup:m="",closeWorkspace:p}=(0,lr.useMemo)(()=>e??{},[e]),f=(0,lr.useMemo)(()=>({...t,...e?.additionalProps}),[t,e]);return e&&(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)(cd.Header,{"aria-label":aj("workspaceHeader","Workspace Header"),className:"-esm-form-engine__workspace-module__header___nMH1R",children:[!uR(r)&&!c&&(0,ca.jsx)(cd.HeaderMenuButton,{"aria-label":aj("close","Close"),renderMenuIcon:(0,ca.jsx)(cC,{}),onClick:()=>p()}),(0,ca.jsx)(cd.HeaderName,{prefix:"",children:e.titleNode??n(e.title)}),(0,ca.jsx)("div",{className:"-esm-form-engine__workspace-module__overlayHeaderSpacer___vxoMd"}),(0,ca.jsxs)(cd.HeaderGlobalBar,{className:"-esm-form-engine__workspace-module__headerButtons___lek95",children:[(0,ca.jsx)(lx,{name:`workspace-header-group-${e.currentWorkspaceGroup}-slot`,state:f}),(0,ca.jsx)(lx,{name:`workspace-header-type-${e.type}-slot`,state:f}),(0,ca.jsx)(lx,{name:`workspace-header-${l}-slot`,state:f}),uR(r)&&(0,ca.jsxs)(ca.Fragment,{children:[(d||s)&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":s?aj("minimize","Minimize"):aj("maximize","Maximize"),onClick:u,children:s?(0,ca.jsx)(D8,{}):(0,ca.jsx)(D7.hz,{})}),c&&!i?(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide","Hide"),onClick:()=>DZ("hidden"),children:(0,ca.jsx)(cP,{})}):(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close","Close"),onClick:()=>p?.(),children:(0,ca.jsx)(cK,{})})]}),"tablet"===r&&c&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close","Close"),onClick:()=>p?.(),children:(0,ca.jsx)(Ee.d3,{})})]})]}),(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceContent___FFe+u",{"-esm-form-engine__workspace-module__marginWorkspaceContent___SEV31":!!m}),children:(0,ca.jsx)(Ep,{workspace:e,additionalPropsFromPage:t},e.name)})]})}var Ey=new Uint8Array(16);let Ev=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Eb=[],Ew=0;Ew<256;++Ew)Eb.push((Ew+256).toString(16).substr(1));let Ex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Eb[e[t+0]]+Eb[e[t+1]]+Eb[e[t+2]]+Eb[e[t+3]]+"-"+Eb[e[t+4]]+Eb[e[t+5]]+"-"+Eb[e[t+6]]+Eb[e[t+7]]+"-"+Eb[e[t+8]]+Eb[e[t+9]]+"-"+Eb[e[t+10]]+Eb[e[t+11]]+Eb[e[t+12]]+Eb[e[t+13]]+Eb[e[t+14]]+Eb[e[t+15]]).toLowerCase();if(!("string"==typeof n&&Ev.test(n)))throw TypeError("Stringified UUID is invalid");return n},ED=function(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!er&&!(er="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return er(Ey)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return Ex(r)};async function EE(e,t){let{openedGroup:n}=sX.getState();if(n){if(n.groupName===e&&Ek(n.props,t))return!0;else if(!await EC({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1}))return!1}return sX.setState(n=>({...n,openedGroup:{groupName:e,props:t},openedWindows:[]})),!0}async function E_(e){let{openedGroup:t,openedWindows:n}=sX.getState();if(t){if(n.length>0&&!(e||await EC({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})))return!1;sX.setState(e=>({...e,openedGroup:null,openedWindows:[]}))}return!0}async function ES(e,t=null,n=null,r=null){let a=sX.getState();if(!a.registeredWorkspacesByName[e])throw Error(`Unable to launch workspace ${e}. Workspace is not registered`);let o=sQ(e);if(!o)throw Error(`Unable to launch workspace ${e}. Workspace is not registered to a workspace window`);let{openedGroup:i}=a,{name:s}=o,l=s0(s);if(!l)throw Error(`Unable to launch workspace ${e}. Workspace window ${o.name} is not registered to a workspace group`);let u=s1(e);if(i&&(i.groupName!==l.name||!Ek(i.props,r)))return!!await EC({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:r},openedWindows:[{windowName:s,openedWorkspaces:[EO(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0);if(u>=0){let r=a.openedWindows[u],o=a.openedGroup?.props??{},i=a.isMostRecentlyOpenedWindowHidden,{openedWorkspaces:c}=r;if(Ek(r.props,n)){let d=c.find(t=>t.workspaceName===e);return d&&Ek(d.props,t)?((i||u!==a.openedWindows.length-1)&&sX.setState(EP.restoreWindow(a,s)),!0):!!await EC({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:a?.openedGroup?.props??o},openedWindows:[...a.openedWindows.filter((e,t)=>t!==u),{windowName:s,openedWorkspaces:[EO(e,t)],props:r?.props??n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}return!!await EC({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:o??a?.openedGroup?.props},openedWindows:[...a.openedWindows.filter((e,t)=>t!==u),{windowName:s,openedWorkspaces:[EO(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}return"closable"!=l.persistence?(sX.setState({...a,openedGroup:{groupName:l.name,props:r??a?.openedGroup?.props??null},openedWindows:[...a.openedWindows,{windowName:s,openedWorkspaces:[EO(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0):!!await EC({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:o.name})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:r??a?.openedGroup?.props??null},openedWindows:[{windowName:s,openedWorkspaces:[EO(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}function Ek(e,t){return null==e||null==t||T(e,t)}function EC(e){function t(e,t){let n=[];for(let r=e.openedWorkspaces.length-1;r>=0;r--){let a=e.openedWorkspaces[r];if(a.hasUnsavedChanges&&n.push(a),t&&a.workspaceName===t)break}return n}let{openedWindows:n,workspaceTitleByWorkspaceName:r}=sX.getState(),a=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":a=n.flatMap(e=>t(e));break;case"CLOSE_WINDOW":{let r=n.find(t=>t.windowName===e.windowName);if(!r)throw Error(`Window ${e.windowName} not found in opened windows.`);a=t(r);break}case"CLOSE_WORKSPACE":{let r=n.find(t=>t.windowName===e.windowName);if(!r)throw Error(`Window ${e.windowName} not found in opened windows.`);a=t(r,e.workspaceName);break}case"CLOSE_OTHER_WINDOWS":a=n.filter(t=>t.windowName!==e.windowNameToSpare).flatMap(e=>t(e))}return 0===a.length?Promise.resolve(!0):new Promise(e=>{let t=xa("workspace2-close-prompt",{size:"sm",onConfirm:()=>{t(),e(!0)},onCancel:()=>{t(),e(!1)},affectedWorkspaceTitles:a.map(e=>r[e.workspaceName])})})}let EP={setWindowMaximized(e,t,n){let r=e.openedWindows.findIndex(e=>e.windowName===t),a=[...e.openedWindows],o={...a[r],maximized:n};return a[r]=o,{...e,openedWindows:a}},hideWindow:e=>({...e,isMostRecentlyOpenedWindowHidden:!0}),restoreWindow(e,t){let n=e.openedWindows.findIndex(e=>e.windowName===t),r=e.openedWindows[n],a=[...e.openedWindows.filter((e,t)=>t!==n),r];return{...e,openedWindows:a,isMostRecentlyOpenedWindowHidden:!1}},closeWorkspace(e,t){let n=s1(t);if(n<0)return e;let r={...e.openedWindows[n]},a=r.openedWorkspaces.findIndex(e=>e.workspaceName===t),o=[...e.openedWindows];r.openedWorkspaces=r.openedWorkspaces.slice(0,a);let i=e.isMostRecentlyOpenedWindowHidden;if(0===r.openedWorkspaces.length){let t=n===e.openedWindows.length-1;o.splice(n,1),t&&o.length>0&&(i=!1)}else o[n]=r;return{...e,openedWindows:o,isMostRecentlyOpenedWindowHidden:i}},openChildWorkspace(e,t,n,r){let a=e.registeredWorkspacesByName[n];if(!a)throw Error(`No workspace named "${n}" registered`);let o=e.registeredWorkspacesByName[t];if(!o)throw Error(`No workspace named "${t}" registered`);if(o.window!==a.window)throw Error(`Child workspace ${n} does not belong to the same workspace window as parent workspace ${t}`);let i=e.openedWindows.findIndex(e=>e.windowName===a.window);if(-1==i)throw Error(`Cannot open child workspace ${n} as window ${a.window} is not opened`);let{openedWorkspaces:s}=e.openedWindows[i],l=s.findIndex(e=>e.workspaceName===t);if(-1===l)throw Error(`Cannot open child workspace ${n} from parent workspace ${t} as the parent is not opened within the workspace window`);let u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map((e,t)=>t==i?{...e,openedWorkspaces:[...u,EO(n,r)]}:e)}},setHasUnsavedChanges(e,t,n){let r=s1(t);if(r<0)return e;let a={...e.openedWindows[r]},o=a.openedWorkspaces.findIndex(e=>e.workspaceName===t);if(o<0)return e;a.openedWorkspaces[o]={...a.openedWorkspaces[o],hasUnsavedChanges:n};let i=[...e.openedWindows];return i[r]=a,{...e,openedWindows:i}},setWorkspaceTitle(e,t,n){let r={...e.workspaceTitleByWorkspaceName};return null===n?delete r[t]:r[t]=n,{...e,workspaceTitleByWorkspaceName:r}}};function ET(){return lm(sX,EP)}let ER=()=>(0,lr.useContext)(lP),EN=()=>Object.keys(sX.getState().registeredWorkspacesByName);function EO(e,t){return{workspaceName:e,props:t??{},hasUnsavedChanges:!1,uuid:ED()}}let E$={workspaceOuterContainer:"-esm-form-engine__workspace2-module__workspaceOuterContainer___jaqGm",narrowWorkspace:"-esm-form-engine__workspace2-module__narrowWorkspace___o1wsL",widerWorkspace:"-esm-form-engine__workspace2-module__widerWorkspace___gdEOi",extraWideWorkspace:"-esm-form-engine__workspace2-module__extraWideWorkspace___U9xlJ",workspaceMiddleContainer:"-esm-form-engine__workspace2-module__workspaceMiddleContainer___0AdtX",maximized:"-esm-form-engine__workspace2-module__maximized___aKCbE",hidden:"-esm-form-engine__workspace2-module__hidden___n1US5",workspaceInnerContainer:"-esm-form-engine__workspace2-module__workspaceInnerContainer___1g+qk",workspaceSpacer:"-esm-form-engine__workspace2-module__workspaceSpacer___P2T9y",loader:"-esm-form-engine__workspace2-module__loader___fCfzZ",hiddenExtraWorkspace:"-esm-form-engine__workspace2-module__hiddenExtraWorkspace___hvPSi",header:"-esm-form-engine__workspace2-module__header___MXXx9",headerButtons:"-esm-form-engine__workspace2-module__headerButtons___sJdnC",workspaceContent:"-esm-form-engine__workspace2-module__workspaceContent___6NuXT",overlayHeaderSpacer:"-esm-form-engine__workspace2-module__overlayHeaderSpacer___PLO6T",isActionMenuOpened:"-esm-form-engine__workspace2-module__isActionMenuOpened___X3Vj6",showActionMenu:"-esm-form-engine__workspace2-module__showActionMenu___HSun1",marginWorkspaceContent:"-esm-form-engine__workspace2-module__marginWorkspaceContent___DCfWz",workspaceContainerWithActionMenu:"-esm-form-engine__workspace2-module__workspaceContainerWithActionMenu___G9MdI",workspaceFixedContainer:"-esm-form-engine__workspace2-module__workspaceFixedContainer___uIldI",workspaceContainerWithoutActionMenu:"-esm-form-engine__workspace2-module__workspaceContainerWithoutActionMenu___lBudZ"},EM=({title:e,children:t,hasUnsavedChanges:n=!1})=>{let r=uT(),{setWindowMaximized:a,hideWindow:o,setHasUnsavedChanges:i,openedWindows:s,openedGroup:l,registeredGroupsByName:u,registeredWindowsByName:c,registeredWorkspacesByName:d,workspaceTitleByWorkspaceName:m,setWorkspaceTitle:p,isMostRecentlyOpenedWindowHidden:f}=ET(),{workspaceName:h,isRootWorkspace:g,closeWorkspace:y,showActionMenu:v}=ER(),b=s1(h),w=s[b],x=w?.openedWorkspaces.find(e=>e.workspaceName===h);if((0,lr.useEffect)(()=>{x?.hasUnsavedChanges!=n&&i(h,n??!1)},[x?.hasUnsavedChanges,n,h,i]),(0,lr.useEffect)(()=>{m[h]!==e&&p(h,e)},[m,h,e,p]),b<0||null==l||null==x)return null;let D=u[l.groupName];if(!D)throw Error(`Cannot find registered workspace group ${l.groupName}`);let E=d[h].window,_=c[E];if(!_)throw Error(`Cannot find registered workspace window ${E}`);let{icon:S,canMaximize:k}=_,C="closable"===D.persistence,P=!!S&&!C,{maximized:T}=w,R=_?.width??"narrow",N=Object.values(c).some(e=>e.group===l.groupName&&void 0!==e.icon),O=b<s.length-1||f;return(0,ca.jsxs)("div",{className:ci()(E$.workspaceOuterContainer,{[E$.narrowWorkspace]:"narrow"===R,[E$.widerWorkspace]:"wider"===R,[E$.extraWideWorkspace]:"extra-wide"===R,[E$.isActionMenuOpened]:N}),children:[(0,ca.jsx)("div",{className:ci()(E$.workspaceSpacer,{[E$.hidden]:O})}),(0,ca.jsx)("div",{className:ci()(E$.workspaceMiddleContainer,{[E$.maximized]:T,[E$.hidden]:O,[E$.isRootWorkspace]:g,[E$.showActionMenu]:v}),children:(0,ca.jsxs)("div",{className:ci()(E$.workspaceInnerContainer,{[E$.maximized]:T,[E$.hidden]:O,[E$.isRootWorkspace]:g}),children:[(0,ca.jsxs)(cd.Header,{"aria-label":aj("workspaceHeader"),className:E$.header,children:[(0,ca.jsx)(cd.HeaderName,{prefix:"",children:e}),(0,ca.jsx)("div",{className:E$.overlayHeaderSpacer}),(0,ca.jsx)(cd.HeaderGlobalBar,{className:E$.headerButtons,children:uR(r)?(0,ca.jsxs)(ca.Fragment,{children:[(k||T)&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":T?aj("minimize"):aj("maximize"),onClick:()=>a(E,!T),children:T?(0,ca.jsx)(D8,{}):(0,ca.jsx)(D7.hz,{})}),P&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide"),onClick:()=>o(),children:(0,ca.jsx)(cP,{})}),!C&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close"),onClick:()=>y({closeWindow:!0}),children:(0,ca.jsx)(cK,{})})]}):(0,ca.jsxs)(ca.Fragment,{children:[P&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide"),onClick:()=>o(),children:(0,ca.jsx)(Ee.d3,{})}),(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close"),onClick:()=>{C?E_():y({closeWindow:!0})},children:(0,ca.jsx)(cK,{})})]})})]}),(0,ca.jsx)("div",{className:ci()(E$.workspaceContent),children:t})]})})]})},EA="-esm-form-engine__action-menu-button2-module__container___pahg-",Ej="-esm-form-engine__action-menu-button2-module__elementContainer___PzOdc",EI="-esm-form-engine__action-menu-button2-module__active___4O4Bs",EL="-esm-form-engine__action-menu-button2-module__focused___+k5kD";function EF({getIcon:e,hasUnsavedChanges:t,tagContent:n}){return(0,ca.jsxs)(ca.Fragment,{children:[e({size:16}),t?(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button2-module__interruptedTag___mS2yr",children:"!"}):(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button2-module__countTag___rb5CW",children:n})]})}let EB=({icon:e,label:t,tagContent:n,workspaceToLaunch:r,onBeforeWorkspaceLaunch:a})=>{let o=uT(),{openedWindows:i,restoreWindow:s,hideWindow:l,isMostRecentlyOpenedWindowHidden:u}=ET(),{extension:c}=(0,lr.useContext)(lo),d=i.findIndex(e=>e.windowName===c?.extensionId),m=i[d],p=null!=m,f=p&&(d<i.length-1||u),h=p&&!f,g=m?.openedWorkspaces.some(e=>e.hasUnsavedChanges)??!1,y=async()=>{if(p)f?s(m.windowName):l();else if(await (a?.()??!0)){let{workspaceName:e,workspaceProps:t,windowProps:n}=r;ES(e,t,n)}};return"tablet"===o||"phone"===o?(0,ca.jsxs)(cd.Button,{className:ci()(EA,{[EI]:p&&!h,[EL]:h}),iconDescription:t,kind:"ghost",onClick:y,role:"button",tabIndex:0,size:"md",children:[(0,ca.jsx)("span",{className:Ej,children:(0,ca.jsx)(EF,{hasUnsavedChanges:g,getIcon:e,tagContent:n})}),(0,ca.jsx)("span",{children:t})]}):(0,ca.jsx)(cd.IconButton,{align:"left","aria-label":t,className:ci()(EA,{[EI]:p&&!h,[EL]:h}),enterDelayMs:300,kind:"ghost",label:t,onClick:y,size:"md",children:(0,ca.jsx)("div",{className:Ej,children:(0,ca.jsx)(EF,{hasUnsavedChanges:g,getIcon:e,tagContent:n})})})};function EV({showContactDetails:e,toggleContactDetails:t,className:n}){return(0,ca.jsx)(cd.Button,{className:n,iconDescription:"Toggle contact details",kind:"ghost",onClick:t,renderIcon:e?cz:cU,children:e?aj("showLess","Show less"):aj("showMore","Show more")})}let EU={contactDetails:"-esm-form-engine__patient-banner-contact-details-module__contactDetails___rhdjA",deceased:"-esm-form-engine__patient-banner-contact-details-module__deceased___K4NPg",heading:"-esm-form-engine__patient-banner-contact-details-module__heading___zj6Zt",row:"-esm-form-engine__patient-banner-contact-details-module__row___+Bx+P",col:"-esm-form-engine__patient-banner-contact-details-module__col___0H31P",relationship:"-esm-form-engine__patient-banner-contact-details-module__relationship___CZmay"},EW=({patientUuid:e})=>{let{cohorts:t=[],isLoading:n}=function(e){let t=e?`${aY}/cohortm/cohortmember?patient=${e}&v=custom:(uuid,patient:ref,cohort:(uuid,name,startDate,endDate))`:null,{data:n,isLoading:r}=lL()(t,aQ),a=n?.data?.results.map(e=>({uuid:e.cohort.uuid,name:e.cohort.name,startDate:e.cohort.startDate,endDate:e.cohort.endDate}));return(0,lr.useMemo)(()=>({cohorts:a,isLoading:r}),[r,a])}(e);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)("p",{className:EU.heading,children:[aj("patientLists","Patient Lists")," (",t?.length??0,")"]}),n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsxs)("ul",{children:[(()=>{if(t?.length>0){let e=t.sort((e,t)=>b2(e?.startDate).getTime()-b2(t?.startDate).getTime()).slice(0,3);return e?.map(e=>(0,ca.jsx)("li",{children:(0,ca.jsx)(li,{to:`${window.spaBase}/home/patient-lists/${e.uuid}`,children:e.name},e.uuid)},e.uuid))}return(0,ca.jsx)("li",{children:"--"})})(),t.length>3&&(0,ca.jsx)("li",{className:EU.link,children:(0,ca.jsx)(li,{to:`${window.spaBase}/home/patient-lists`,children:aj("seeMoreLists","See {{count}} more lists",{count:t?.length-3})})})]})]})},EH=({patientId:e})=>{let{patient:t,isLoading:n}=uV(e),r=t?.address?.find(e=>"home"===e.use),a=e=>e.split("#")[1];return n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EU.heading,children:aj("address","Address")}),(0,ca.jsx)("ul",{children:r?Object.entries(r).filter(([e])=>"id"!==e&&"use"!==e).map(([e,t])=>"extension"===e?r.extension?.[0]?.extension?.map((t,n)=>(0,ca.jsxs)("li",{children:[aj(a(t.url),a(t.url)),": ",t.valueString]},`address-${e}-${n}`)):(0,ca.jsxs)("li",{children:[aj(e,e),": ",t]},`address-${e}`)):(0,ca.jsx)("li",{children:"--"})})]})},Ez=({patientUuid:e})=>{let{isLoading:t,contactAttributes:n}=(e=>{let{contactAttributeTypes:t=[]}=un({externalModuleName:"@openmrs/esm-patient-banner-app"}),{attributes:n,error:r,isLoading:a}=(e=>{let{data:t,error:n,isLoading:r}=ui()(`${aY}/patient/${e}?v=custom:(uuid,display,identifiers:(identifier,uuid,preferred,location:(uuid,name),identifierType:(uuid,name,format,formatDescription,validator)),person:(uuid,display,gender,birthdate,dead,age,deathDate,birthdateEstimated,causeOfDeath,preferredName:(uuid,preferred,givenName,middleName,familyName),attributes,preferredAddress:(uuid,preferred,address1,address2,cityVillage,longitude,stateProvince,latitude,country,postalCode,countyDistrict,address3,address4,address5,address6,address7)))`,aQ);return{isLoading:r,attributes:t?.data.person.attributes??[],error:n}})(e);return{contactAttributes:(0,lr.useMemo)(()=>n.filter(({attributeType:e})=>t?.some(t=>e.uuid===t)),[n,t]),isLoading:a,error:r}})(e),r=(0,lr.useMemo)(()=>n?[...n?.map(e=>[e.attributeType.display?aj(e.attributeType.display,e.attributeType.display):"",e.value])]:[],[n]);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EU.heading,children:aj("contactDetails","Contact Details")}),t?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsx)("ul",{children:r.length?r.map(([e,t],n)=>(0,ca.jsxs)("li",{children:[e,": ",t]},`${e}-${t}-${n}`)):(0,ca.jsx)("li",{children:"--"})})]})},EK=({patientId:e})=>{let{data:t,isLoading:n}=function(e){let t=`${aY}/relationship?v=custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))&person=${e}`,{data:n,error:r,isLoading:a,isValidating:o}=lL()(e?t:null,aQ),i=n?.data?.results?.length?function(e,t){let n=[];for(let r of t)e===r.personA.uuid?n.push({uuid:`${r.uuid}`,display:r.personB.display,relativeAge:r.personB.age,relativeUuid:r.personB.uuid,relationshipType:r.relationshipType.bIsToA}):n.push({uuid:`${r.uuid}`,display:r.personA.display,relativeAge:r.personA.age,relativeUuid:r.personA.uuid,relationshipType:r.relationshipType.aIsToB});return n}(e,n.data.results):null;return{data:n?i:null,error:r,isLoading:a,isValidating:o}}(e);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EU.heading,children:aj("relationships","Relationships")}),n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsx)("ul",{children:t&&t.length>0?(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsxs)("li",{className:EU.relationship,children:[(0,ca.jsx)("div",{children:(0,ca.jsx)(li,{to:`${window.spaBase}/patient/${e.relativeUuid}/chart`,children:e.display})}),(0,ca.jsx)("div",{children:e.relationshipType}),(0,ca.jsx)("div",{children:`${e.relativeAge?e.relativeAge:"--"} ${e.relativeAge?1===e.relativeAge?aj("yearAbbreviation","yr"):aj("yearsAbbreviation","yrs"):""}`})]},e.uuid))}):(0,ca.jsx)("li",{children:"--"})})]})};function EG({patientId:e,deceased:t}){return(0,ca.jsxs)("div",{className:ci()(EU.contactDetails,{[EU.deceased]:t}),children:[(0,ca.jsxs)("div",{className:EU.row,children:[(0,ca.jsx)("div",{className:EU.col,children:(0,ca.jsx)(EH,{patientId:e})}),(0,ca.jsx)("div",{className:EU.col,children:(0,ca.jsx)(Ez,{patientUuid:e})})]}),(0,ca.jsxs)("div",{className:EU.row,children:[(0,ca.jsx)("div",{className:EU.col,children:(0,ca.jsx)(EK,{patientId:e})}),(0,ca.jsx)("div",{className:EU.col,children:(0,ca.jsx)(EW,{patientUuid:e})})]})]})}function EZ(e){let t=document.querySelector("template#loading-spinner");if(t){let n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,e=>e);return e.appendChild(n),()=>r.forEach(e=>e.remove())}return()=>{}}let EY="-esm-form-engine__action-menu2-module__container___5s3CM";function Eq({workspaceGroup:e,groupProps:t}){let n=uT(),{persistence:r}=e;return(0,ca.jsx)("aside",{className:"-esm-form-engine__action-menu2-module__sideRail___qwAz4",children:(0,ca.jsxs)("div",{className:EY,children:["closable"==r&&uR(n)&&(0,ca.jsx)(cd.IconButton,{align:"left",onClick:()=>E_(),label:aj("close"),kind:"ghost",children:(0,ca.jsx)(cK,{})}),(0,ca.jsx)(lo.Provider,{value:{moduleName:e.moduleName,featureName:e.name},children:(0,ca.jsx)(lx,{className:EY,name:e.name,state:{groupProps:t}})})]})})}function EJ(e){let t=new URL(e,window.location.origin).pathname,n=new URL(window.getOpenmrsSpaBase?.()??"/",window.location.origin).pathname,r=n.endsWith("/")?n.slice(0,-1):n,a=null;return r?r===t?a="/":t.startsWith(`${r}/`)&&(a=t.slice(r.length)):a=t,{full:t,spaRelative:a}}let EX=({lifeCycle:e,openedWorkspace:t,openedWindow:n,isRootWorkspace:r,isLeafWorkspace:a,showActionMenu:o})=>{let{openedGroup:i,closeWorkspace:s,openChildWorkspace:l}=ET(),u=(0,lr.useMemo)(()=>t&&{closeWorkspace:async(e={})=>{let{closeWindow:r=!1,discardUnsavedChanges:a=!1}=e;return r?!!(a||await EC({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName}))&&(s(n.openedWorkspaces[0].workspaceName),!0):!!(a||await EC({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:t.workspaceName}))&&(s(t.workspaceName),!0)},launchChildWorkspace:async(e,r)=>{let a=t.workspaceName,{openedWorkspaces:o}=n,i=o.findIndex(e=>e.workspaceName===a);-1===i||i!==o.length-1&&o.slice(i+1).some(e=>e.hasUnsavedChanges)&&!await EC({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:o[i+1].workspaceName})||l(a,e,r||{})},workspaceName:t.workspaceName,workspaceProps:t.props,windowProps:n.props,groupProps:i&&i.props?i.props:null,workspaceMeta:sX.getState().registeredWorkspacesByName[t.workspaceName]?.meta??{},isRootWorkspace:r,isLeafWorkspace:a,windowName:n.windowName,showActionMenu:o},[t,s,i,n]);if(!e){let{registeredWorkspacesByName:e}=sX.getState(),n=e[t.workspaceName],a=n&&n.window?n.window:void 0,{registeredWindowsByName:s}=sX.getState(),l=a?s[a]:void 0,u=l&&l.width?l.width:"narrow",c=Object.values(s).some(e=>e.group===i?.groupName&&void 0!==e.icon);return(0,ca.jsxs)("div",{className:ci()(E$.workspaceOuterContainer,{[E$.narrowWorkspace]:"narrow"===u,[E$.widerWorkspace]:"wider"===u,[E$.extraWideWorkspace]:"extra-wide"===u,[E$.isActionMenuOpened]:c}),children:[(0,ca.jsx)("div",{className:E$.workspaceSpacer}),(0,ca.jsx)("div",{className:ci()(E$.workspaceMiddleContainer,{[E$.isRootWorkspace]:r,[E$.showActionMenu]:o}),children:(0,ca.jsx)("div",{className:ci()(E$.workspaceInnerContainer,{[E$.isRootWorkspace]:r}),children:(0,ca.jsx)(cd.InlineLoading,{className:E$.loader,description:`${aj("loading")} ...`})})})]})}return(0,ca.jsx)(Em,{config:e,mountParcel:lt,...u},t.workspaceName)},EQ=({openedWindow:e,showActionMenu:t})=>{let{openedWorkspaces:n}=e,[r,a]=(0,lr.useState)({}),{registeredWorkspacesByName:o}=sX.getState();return(0,lr.useEffect)(()=>{let e=!1;return Promise.all(n.map(async e=>{let{moduleName:t,component:n}=o[e.workspaceName];return[e.uuid,await u2(t,n)]})).then(t=>{e||a(Object.fromEntries(t))}),()=>{e=!0}},[n]),(0,ca.jsx)(ca.Fragment,{children:n.map((a,o)=>(0,ca.jsx)(EX,{openedWorkspace:a,openedWindow:e,lifeCycle:r[a.uuid],isRootWorkspace:0===o,isLeafWorkspace:o===n.length-1,showActionMenu:t},a.uuid))})};function E0(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(E1,{}))}function E1(){let{openedGroup:e,openedWindows:t,registeredGroupsByName:n,registeredWindowsByName:r}=ET();if((0,lr.useEffect)(()=>ie("before-page-changed",t=>{let{newPage:r,cancelNavigation:a,oldUrl:o,newUrl:i}=t;if(!e)return;if(r)return void a(E_().then(e=>!e));let s=n[e.groupName],l=s?.scopePattern;l&&function(e,t,n){try{let r=new RegExp(e),a=EJ(t),o=EJ(n);if(null===a.spaRelative||null===o.spaRelative)return!0;let i=r.exec(a.spaRelative),s=r.exec(o.spaRelative);if(i&&s||(i=r.exec(a.full),s=r.exec(o.full)),!i||!s)return!0;if(i.length>1)return!i.slice(1).every((e,t)=>e===s[t+1]);return!1}catch{return!0}}(l,o,i)&&a(E_().then(e=>!e))}),[e,n]),!e)return null;let a=n[e.groupName],o=t.some(e=>e.maximized),{name:i}=a,s=Object.values(r).filter(e=>e.group===i&&void 0!==e.icon).sort((e,t)=>(e.order??Number.MAX_VALUE)-(t.order??Number.MAX_VALUE)).length>0;return(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__workspace-windows-and-menu-module__workspaceWindowsAndMenuContainer___gN2f4",{"-esm-form-engine__workspace-windows-and-menu-module__overlay___fqI+X":a.overlay,"-esm-form-engine__workspace-windows-and-menu-module__hasMaximizedWindow___J7wBw":o}),children:[(0,ca.jsx)("div",{className:"-esm-form-engine__workspace-windows-and-menu-module__workspaceWindowsContainer___zpk7G",children:t.map(e=>(0,ca.jsx)(EQ,{openedWindow:e,showActionMenu:s},e.windowName))}),s&&(0,ca.jsx)(Eq,{workspaceGroup:a,groupProps:e.props})]})}function E4(e,t,n){if(null==e)return n;let r=bv(e);if(!r)return console.warn(`matchLocale: invalid requested locale tag: ${JSON.stringify(e)}`),n;let a=[];for(let e of t){let t=bv(e);if(!t){console.warn(`matchLocale: skipping invalid available locale tag: ${JSON.stringify(e)}`);continue}a.push({canonical:t,original:e})}let o=r;for(;o;){let e=a.find(e=>e.canonical===o);if(e)return e.original;let t=o+"-",n=a.find(e=>e.canonical.startsWith(t));if(n)return n.original;if("ht"===o){o="fr-HT";continue}let r=o.lastIndexOf("-");if(-1===r)break;let i=(o=o.slice(0,r)).lastIndexOf("-");-1!==i&&o.length-i==2&&(o=o.slice(0,i))}return n}function E2(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}function E3(e){return!!e&&e.constructor===Object}var E6=n(7229);function E5(e){let[t,n,r]=e.split(".");return`${t}.${n}.${r}`}function E9(e,t){return E6(function(e){let t=e.indexOf("-");if(t>=0){let n=E5(e.slice(0,t)),r=e.slice(t+1);return`${n}-${r}`}return E5(e)}(t),e,{includePrerelease:!0})}async function E8(e,t={}){let n,{shouldRetry:r,getDelay:a,onError:o}=t;r=r??(e=>e<=5),a=a??(e=>(function(e,t=!1){return 1e3*Math.pow(2,t?e+1:e)})(e));let i=0;do try{return await E7(a(i)),await e()}catch(e){o?.(e,i),n=e}while(r(i++));throw n}async function E7(e){if(!(e<=0))return new Promise(t=>setTimeout(t,e))}function _e(e,t,n,r){}function _t(e){}function _n(e){return Promise.resolve([])}function _r(e){return Promise.resolve([])}function _a(e){return Promise.resolve({success:!1,result:void 0,error:"No service worker has been registered. Offline-related features have been removed from the framework."})}function _o(e){return()=>{}}function _i(){return!0}}}]);
|
|
43
|
+
}`.trim(),document.head.prepend(r),o=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=((e=document)=>e.activeElement)(),n=null!=t&&vz(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||vq(this,n)},i=mt(vY(document,"touchstart",t=>{let r=mV(t);e=hq(r)?r:hJ(r,!0),n=!1;let a=r.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(r,!0)&&(n=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),vY(document,"touchmove",t=>{if(2!==t.touches.length&&!n){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),vY(document,"blur",e=>{let t=mV(e),n=e.relatedTarget;if(n&&vz(n))n.focus({preventScroll:!0}),vq(n,vz(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),i(),r.remove(),HTMLElement.prototype.focus=o}):mt((s=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?vZ(document.documentElement,"scrollbarGutter","stable"):vZ(document.documentElement,"paddingRight",`${s}px`)),vZ(document.documentElement,"overflow","hidden"))),()=>{0==--vG&&u()}}},[t])}({isDisabled:o||!t.isOpen}),(0,lr.useEffect)(()=>{if(t.isOpen&&r.current)if(o){var e,n,i=a?.current??r.current;let t=vw[vw.length-1];return t&&!t.visibleNodes.has(i)?(t.visibleNodes.add(i),()=>{t.visibleNodes.delete(i)}):void 0}else{let t,o,i,s,l,u,c,d,m,p,f;return e=[a?.current??r.current],o=(n={shouldUseInert:!0})instanceof(t=mF(e?.[0])).Element?{root:n}:n,i=o?.root??document.body,s=o?.shouldUseInert&&vv,l=new Set(e),u=new Set,c=(e,n)=>{s&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(mB(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=yn(mL(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&m(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)m(e),e=n.nextNode()}},m=e=>{let n=vb.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&c(e,!0),u.add(e),vb.set(e,n+1))},vw.length&&vw[vw.length-1].disconnect(),d(i),(p=new MutationObserver(e=>{for(let n of e)if("childList"===n.type&&n.target.isConnected&&![...l,...u].some(e=>mB(e,n.target)))for(let e of n.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(i,{childList:!0,subtree:!0}),f={visibleNodes:l,hiddenNodes:u,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},vw.push(f),()=>{for(let e of(p.disconnect(),u)){let t=vb.get(e);null!=t&&(1===t?(c(e,!1),vb.delete(e)):vb.set(e,t-1))}f===vw[vw.length-1]?(vw.pop(),vw.length&&vw[vw.length-1].observe()):vw.splice(vw.indexOf(f),1)}}},[o,t.isOpen,r,a]),{popoverProps:my(d,p),arrowProps:f,underlayProps:m,placement:h,triggerAnchorPoint:g}}({...r,offset:null!=(a=r.offset)?a:8,arrowSize:s,groupRef:m?d:c},e),y=r.popoverRef,v=function(e,t=!0){let[n,r]=(0,lr.useState)(!0),a=n&&t;return mn(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),v0(e,a,(0,lr.useCallback)(()=>r(!1),[])),a}(y,!!g)||r.isEntering||!1,b=mw({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:g,isEntering:v,isExiting:t}}),w=!r.isNonModal||"SubmenuTrigger"===r.trigger,[x,D]=(0,lr.useState)(!1);mn(()=>{y.current&&D(w&&!y.current.querySelector("[role=dialog]"))},[y,w]),(0,lr.useEffect)(()=>{var e;let t,n;x&&y.current&&!y.current.contains(document.activeElement)&&(n=((e=document)=>e.activeElement)(t=mL(e=y.current)),"virtual"===v1?pE(()=>{((e=document)=>e.activeElement)(t)===n&&e.isConnected&&mj(e)}):mj(e))},[x,y]);let E={...p.style,...b.style},_=la().createElement("div",{...my(mA(r),p),...b,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:y,slot:r.slot||void 0,style:E,dir:r.dir,"data-trigger":r.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!r.isNonModal&&la().createElement(vQ,{onDismiss:e.close}),la().createElement(vy.Provider,{value:{...h,placement:g,ref:i}},b.children),la().createElement(vQ,{onDismiss:e.close}));return m?la().createElement(vs,{...r,shouldContainFocus:x,isExiting:t,portalContainer:null!=(o=null!=n?n:null==d?void 0:d.current)?o:void 0},_):la().createElement(vs,{...r,shouldContainFocus:x,isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&la().createElement("div",{"data-testid":"underlay",...f,style:{position:"fixed",inset:0}}),la().createElement("div",{ref:c,style:{display:"contents"}},la().createElement(bi.Provider,{value:c},_)))}function bu(e){return e?.start!=null&&null!=e.end}let bc=(0,lr.createContext)(null),bd=(0,lr.createContext)(null),bm=(0,lr.createContext)(null),bp=(0,lr.createContext)(null),bf=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,bc);let{validationBehavior:a}=mx(vf)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){let t=ba(e),[n,r]=gH(e.value,e.defaultValue||null,e.onChange),[a]=(0,lr.useState)(n),o=n||e.placeholderValue||null,[i,s]=yX(o,e.granularity),l=null!=n?n.toDate(s??"UTC"):null,u="hour"===i||"minute"===i||"second"===i,c=e.shouldCloseOnSelect??!0,[d,m]=(0,lr.useState)(null),[p,f]=(0,lr.useState)(null);if(n&&(d=n,"hour"in n&&(p=n)),o&&!(i in o))throw Error("Invalid granularity "+i+" for value "+o.toString());let h=n?.calendar.identifier==="gregory"&&"BC"===n.era,g=(0,lr.useMemo)(()=>({granularity:i,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:h}),[i,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,h]),{minValue:y,maxValue:v,isDateUnavailable:b}=e,w=(0,lr.useMemo)(()=>yK(n,y,v,b,g),[n,y,v,b,g]),x=yF({...e,value:n,builtinValidation:w}),D=x.displayValidation.isInvalid,E=e.validationState||(D?"invalid":null),_=(e,t)=>{r("timeZone"in t?t.set(hg(e)):hy(e,t)),m(null),f(null),x.commitValidation()};return{...x,value:n,defaultValue:e.defaultValue??a,setValue:r,dateValue:d,timeValue:p,setDateValue:n=>{let a="function"==typeof c?c():c;u?p||a?_(n,p||yq(e.defaultValue||e.placeholderValue)):m(n):(r(n),x.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?_(d,e):f(e)},granularity:i,hasTime:u,...t,setOpen(r){!r&&!n&&d&&u&&_(d,p||yq(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:E,isInvalid:D,formatValue:(e,t)=>l?new fS(e,yY(t,g)).format(l):"",getDateFormatter:(e,t)=>new fS(e,yY({},{...g,...t}))}}({...e,validationBehavior:o}),s=(0,lr.useRef)(null),[l,u]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:c,labelProps:d,fieldProps:m,buttonProps:p,dialogProps:f,calendarProps:h,descriptionProps:g,errorMessageProps:y,...v}=function(e,t,n){var r;let a=mf(),o=mf(),i=mf(),s=fB((r=yE)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:m,descriptionProps:p,errorMessageProps:f}=yk({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),h=y_(t,n),g=m["aria-labelledby"]||m.id,{locale:y}=fv(),v=t.formatValue(y,{month:"long"}),b=h2(v?s.format("selectedDateDescription",{date:v}):""),w=[b["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=mA(e),D=(0,lr.useMemo)(()=>yv(n),[n]),E=(0,lr.useRef)(!1),{focusWithinProps:_}=p0({...e,isDisabled:t.isOpen,onBlurWithin:t=>{mB(document.getElementById(o),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:my(x,h,m,b,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":w,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{D.focusFirst()}},fieldProps:{...m,id:i,[yR]:"presentation","aria-describedby":w,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[yL]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:f,buttonProps:{...b,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":w,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${g}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...m_(e),label:u,validationBehavior:o},i,s),[b,w]=(0,lr.useState)(null),x=(0,lr.useCallback)(()=>{s.current&&w(s.current.offsetWidth+"px")},[]);vB({ref:s,onResize:x});let{focusProps:D,isFocused:E,isFocusVisible:_}=p1({within:!0}),S=mw({...e,values:{state:i,isFocusWithin:E,isFocusVisible:_,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),k=mA(e);return delete k.id,la().createElement(mb,{values:[[bm,i],[g8,{...c,ref:s,isInvalid:i.isInvalid}],[y8,m],[fe,{...p,isPressed:i.isOpen}],[vh,{...d,ref:l,elementType:"span"}],[gq,h],[vu,i],[bo,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":b}}],[vl,f],[fr,{slots:{description:g,errorMessage:y}}],[vd,v]]},la().createElement("div",{...D,...k,...S,ref:t,slot:e.slot||void 0,"data-focus-within":E||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":_||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))}),bh=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,bd);let{validationBehavior:a}=mx(vf)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){let t=ba(e),[n,r]=gH(e.value,e.defaultValue||null,e.onChange),[a]=(0,lr.useState)(n),[o,i]=(0,lr.useState)(()=>n||{start:null,end:null});null==n&&o.start&&o.end&&i(o={start:null,end:null});let s=n||o,l=e=>{i(s=e||{start:null,end:null}),bu(s)?r(s):r(null)},[u,c]=yX(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,m=e.shouldCloseOnSelect??!0,[p,f]=(0,lr.useState)(null),[h,g]=(0,lr.useState)(null);s&&bu(s)&&(p=s,"hour"in s.start&&(h=s));let y=(e,t)=>{l({start:"timeZone"in t.start?t.start.set(hg(e.start)):hy(e.start,t.start),end:"timeZone"in t.end?t.end.set(hg(e.end)):hy(e.end,t.end)}),f(null),g(null),k.commitValidation()},v=n=>{let r="function"==typeof m?m():m;d?bu(n)&&(r||h?.start&&h?.end)?y(n,{start:h?.start||yq(e.placeholderValue),end:h?.end||yq(e.placeholderValue)}):f(n):bu(n)?(l(n),k.commitValidation()):f(n),r&&t.setOpen(!1)},b=e=>{bu(p)&&bu(e)?y(p,e):g(e)},w=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,x=(0,lr.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,w]),{minValue:D,maxValue:E,isDateUnavailable:_}=e,S=(0,lr.useMemo)(()=>{var e;let t;return e=s,t=yW(yK(e?.start??null,D,E,_,x),yK(e?.end??null,D,E,_,x)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(t=yW(t,{isInvalid:!0,validationErrors:[(fM.getGlobalDictionaryForPackage("@react-stately/datepicker")||yH).getStringForLocale("rangeReversed",yz())],validationDetails:{...yM,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),t},[s,D,E,_,x]),k=yF({...e,value:n,name:(0,lr.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:S}),C=k.displayValidation.isInvalid,P=e.validationState||(C?"invalid":null);return{...k,value:s,defaultValue:e.defaultValue??a,setValue:l,dateRange:p,timeRange:h,granularity:u,hasTime:d,setDate(e,t){"start"===e?v({start:t,end:p?.end??null}):v({start:p?.start??null,end:t})},setTime(e,t){"start"===e?b({start:t,end:h?.end??null}):b({start:h?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:v,setTimeRange:b,...t,setOpen(n){!n&&!(s?.start&&s?.end)&&bu(p)&&d&&y(p,{start:h?.start||yq(e.placeholderValue),end:h?.end||yq(e.placeholderValue)}),t.setOpen(n)},validationState:P,isInvalid:C,formatValue(t,n){let r;if(!s||!s.start||!s.end)return null;let a="timeZone"in s.start?s.start.timeZone:void 0,o=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),i="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=yY(n,{granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(a||"UTC"),d=s.end.toDate(i||"UTC"),m=new fS(t,u);if(a===i&&o===l&&0!==s.start.compare(s.end)){try{let e=m.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=m}else r=new fS(t,yY(n,{granularity:l,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:m.format(c),end:r.format(d)}},getDateFormatter:(e,t)=>new fS(e,yY({},{...x,...t}))}}({...e,validationBehavior:o}),s=(0,lr.useRef)(null),[l,u]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:c,labelProps:d,startFieldProps:m,endFieldProps:p,buttonProps:f,dialogProps:h,calendarProps:g,descriptionProps:y,errorMessageProps:v,...b}=function(e,t,n){var r;let a=fB((r=yE)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=yk({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),m=u["aria-labelledby"]||u.id,{locale:p}=fv(),f=t.formatValue(p,{month:"long"}),h=h2(f?a.format("selectedRangeDescription",{startDate:f.start,endDate:f.end}):""),g={"aria-label":a.format("startDate"),"aria-labelledby":m},y={"aria-label":a.format("endDate"),"aria-labelledby":m},v=mf(),b=mf(),w=y_(t,n),x=[h["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=(0,lr.useMemo)(()=>yv(n,{accept:e=>e.id!==v}),[n,v]),E={[yN]:D,[yR]:"presentation","aria-describedby":x,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},_=mA(e),S=(0,lr.useRef)(!1),{focusWithinProps:k}=p0({...e,isDisabled:t.isOpen,onBlurWithin:t=>{mB(document.getElementById(b),t.relatedTarget)||(S.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{S.current||(S.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),C=(0,lr.useRef)(yj),P=(0,lr.useRef)(yj);return{groupProps:my(_,w,u,h,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":x,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...l,onClick:()=>{D.focusFirst()}},buttonProps:{...h,id:v,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${v} ${m}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${v} ${m}`},startFieldProps:{...g,...E,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[yL]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){C.current=e,t.updateValidation(yW(e,P.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,...E,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[yL]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(yW(C.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:o,validationErrors:i,validationDetails:s}}({...m_(e),label:u,validationBehavior:o},i,s),[w,x]=(0,lr.useState)(null),D=(0,lr.useCallback)(()=>{s.current&&x(s.current.offsetWidth+"px")},[]);vB({ref:s,onResize:D});let{focusProps:E,isFocused:_,isFocusVisible:S}=p1({within:!0}),k=mw({...e,values:{state:i,isFocusWithin:_,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),C=mA(e);return delete C.id,la().createElement(mb,{values:[[bp,i],[g8,{...c,ref:s,isInvalid:i.isInvalid}],[fe,{...f,isPressed:i.isOpen}],[vh,{...d,ref:l,elementType:"span"}],[gJ,g],[vu,i],[bo,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":w}}],[vl,h],[y8,{slots:{start:m,end:p}}],[fr,{slots:{description:y,errorMessage:v}}],[vd,b]]},la().createElement("div",{...E,...C,...k,ref:t,slot:e.slot||void 0,"data-focus-within":_||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))});function bg(e){return la().createElement(fy,e)}function by(e,t,n=!1){if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(e instanceof ha||e instanceof hi||e instanceof hs)return t?hv(e,t):e;{let n=uG()(e).toDate(),r=new ha(n.getFullYear(),n.getMonth()+1,n.getDate());return t?hv(r,t):r}}function bv(e){if(e)return e.toDate(hR())}function bb(e){if("string"==typeof e&&0!==e.trim().length)try{return new Intl.Locale(e.replace(/[_@]/g,"-")).toString()}catch{return}}function bw(e){let t=e??"",n=bb(t);if(!n)return t;try{return new Intl.DisplayNames([n],{type:"language"}).of(n)??t}catch{return t}}function bx(){let e=window.i18next.language,t=bb(e)??e;return"ht"===t&&(t="fr-HT"),t}if("u">typeof navigator){let e=navigator;ee=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;ee=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var bD=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(ee||"en-US"),bE=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},b_={};for(let e=1;e<100;e++)b_[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var bS={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},bk="[1234567890一二三四五六七八九〇\\d]",bC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},bP={},bT={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},bR={zone:bT,year:b_,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},bN={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(bT).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},bO={...bN,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},b$={},bM=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=bD){return b$[t.toLowerCase()]||(b$[t.toLowerCase()]=new e(t)),b$[t.toLowerCase()]}constructor(e=bD){this.locale=e,this.lookups={...bR},this.vars={...bN};let t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.toInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(n)+this.toInt(r||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=bC:this.buildNumbers(),/^en/i.test(this.locale)||(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(bP[e])return bP[e];if("fullwide"===e||"hanidec"===e)return{group:bk,lookup:{...bC}};let t=bS[e];if(!t)return{group:"\\d",lookup:{...bC}};let n=String.fromCharCode(t),r=String.fromCharCode(t+9),a={};for(let e=0;e<10;e++)a[String.fromCharCode(t+e)]=e;return bP[e]={group:`[${n}-${r}]`,lookup:a},bP[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,bO)bO.hasOwnProperty(n)&&(this.vars[n]=bO[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,o)=>{e[n+a+(o<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let o=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let i=0;i<12;i++){let s=o.formatToParts(n[i]).find(r).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===a?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=i+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let o=0;o<12;o++){let i=a.formatToParts(n[o]).find(r).value.toLocaleLowerCase(this.locale);i=i.replace(/\.$/,""),e[`${i}\\.?`]=!0,t[i]=o+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let o=Intl.DateTimeFormat(this.locale,{weekday:a});for(let i=0;i<7;i++){let s=o.formatToParts(e[i]).find(t).value.toLocaleLowerCase(this.locale);"short"===a?(s=s.replace(/\.$/,""),n.push(`${s}\\.?`)):n.push(s),r[s]=i}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let o=0;o<2;o++){let i=a.formatToParts(e[o]).find(t);if(!i)return;let s=i.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*o}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},bA=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],bj={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},bI=()=>new Date;function bL(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var bF=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let o=e.handler(a);if(o){for(let[e,t]of Object.entries(o))e in n||void 0===t||(n[e]=t);if(t=(t=t.slice(0,a.index)+t.slice(a.index+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},bB=["year","month","day","hour","minute","second","millisecond","offset"],bV={};function bU(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var bW=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],bH={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...bW],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:bW,id:bW,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function bz(e,t=bD){let n=function(e){if(!bV[e]){var t,n;let r,a,o=bM.factory(e);bV[e]=new bF({doneChecker:bU,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:bL(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:bL(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:bL(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${bk}{2,4})\\s*\u5E74\\s*(${bk}{1,2})\\s*\u6708\\s*(${bk}{1,2})\\s*\u65E5$`),handler:bL(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:bL(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:bL(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=bI(),n=e[1].toLowerCase();switch(n){case"tomorrow":t.setUTCDate(t.getUTCDate()+1);break;case"yesterday":t.setUTCDate(t.getUTCDate()-1)}let r={year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()};return"now"===n&&(r.hour=t.getUTCHours(),r.minute=t.getUTCMinutes(),r.second=t.getUTCSeconds(),r.millisecond=t.getUTCMilliseconds()),console.log("today=>",n,r),r}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,n,r]){t=parseFloat(t),"week"===(n=n.length<=2?bj[n]:(n=n.replace(/s$/,"")).toLowerCase())&&(n="day",t*=7),("-"===e||r)&&(t*=-1);let a=bI();return"millisecond"===n?a.setUTCMilliseconds(a.getUTCMilliseconds()+t):"second"===n?a.setUTCSeconds(a.getUTCSeconds()+t):"minute"===n?a.setUTCMinutes(a.getUTCMinutes()+t):"hour"===n?a.setUTCHours(a.getUTCHours()+t):"day"===n?a.setUTCDate(a.getUTCDate()+t):"month"===n?a.setUTCMonth(a.getUTCMonth()+t):"year"===n&&a.setUTCFullYear(a.getUTCFullYear()+t),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:bL(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:bL(["","hour","minute","second","millisecond","zone"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:bL(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:bL(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:bL(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:bL(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:bL(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:bL(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:bL(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:bL(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:bL(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:bL(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:bL(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:bL(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:bL(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([.-])(_MONTH_)\\2+(_DAY_)"),handler:bL(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:bL(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:bL(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:bL(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:bL(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:bL(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:bL(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:bL(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:bL(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:bL(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:bL(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:bL(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:bL(["zone"])}],a=o.baseName.slice(0,5),bA.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(bB.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return t.year<100&&(t.year=b_[t.year]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})})}return bV[e]}(t),r=function(e,t){let n=bH[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function bK(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new bE(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new bE(t.valueOf()-60*e.offset*1e3):t}function bG(e,t=bD){let n=bz(e,t),r=n.invalid?new bE(NaN):bK(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function bZ(e,t=bD){return e instanceof Date?new bE(e.valueOf()):"number"==typeof e?new bE(e):bG(e,t)}Date.fromString=bE.fromString=bG,Date.fromAny=bE.fromAny=bZ,"u">typeof window&&(window.anyDateParser={fromString:bG,fromAny:bZ,fromObject:bK,attempt:bz});var bY=n(4397),bq=n(7657);let bJ=function(e){return null==e};function bX(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}uG().extend(uZ),uG().extend(bq),uG().extend(bY);let bQ="YYYY-MM-DDTHH:mm:ss.SSSZZ";function b0(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&uG()(e,bQ).isValid()}function b1(e){return uG()(e).isToday()}function b4(e){return b0(e)?uG()(e,bQ).toDate():null}function b2(e,t=!1){let n=uG()(e);return t&&(n=n.utc()),n.format(bQ)}function b3(e){return uG()(e).toDate()}var b6=new WeakMap;let b5=new class{register(e,t){bX(this,b6).set(e,t)}getCalendar(e){if(!e)return;if(e.calendar)return e.calendar;if(e.region){let t=`${e.language}-${e.region}`;if(bX(this,b6).has(t))return bX(this,b6).get(t)}if(e.language&&bX(this,b6).has(e.language))return bX(this,b6).get(e.language);let t=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return bX(this,b6).set(`${e.language}${e.region?`-${e.region}`:""}`,t),t}constructor(){!function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,b6,{writable:!0,value:new Map})}};function b9(e,t){b5.register(e,t)}function b8(e){let t=e??bx();return b5.getCalendar(t instanceof Intl.Locale?t:new Intl.Locale(t))}let b7={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function we(e,t={}){let n=bz(e,bx());if(n.invalid)return console.warn(`Could not parse invalid date '${e}'`),null;!bJ(n.day)&&bJ(n.month)&&(n=Object.assign({},tp(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},tp(n,"day"),{date:n.day}));let r=uG()().set(n).toDate();return bJ(n.year)&&(t.year=!1),bJ(n.month)&&(t.month=!1),bJ(n.date)&&(t.day=!1),wt(r,t)}function wt(e,t){let n,r=t?.locale??bx(),a=new Intl.Locale(r),{calendar:o,mode:i,time:s,day:l,month:u,year:c,noToday:d,numberingSystem:m}={...b7,...{noToday:"am"===a.language},...t},p={calendar:o??b8(a),year:c?"numeric":void 0,month:u?"short":void 0,day:l?"2-digit":void 0,numberingSystem:m},f=uG()(e).isToday();if(f&&!d)n=(n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(r)+n.slice(1);else{"en"===a.language&&(r="en-GB");let t=new Intl.DateTimeFormat(r,p).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==i&&c&&l&&(t=t.map(wn("-"))),"wide"==i&&(t=t.map(wn(" — "))),"ethiopic"===p.calendar&&(t=t.filter((e,t,n)=>"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type))),n=t.map(e=>e.value).join("")}return(!0===s||f&&"for today"===s)&&(n+=`, ${wr(e)}`),n}let wn=e=>(t,n,r)=>"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e};function wr(e){return e.toLocaleTimeString(bx(),{hour:"2-digit",minute:"2-digit"})}function wa(e,t){return wt(e,{...t,time:!0})}function wo(e,t){let n=b8("string"==typeof t?new Intl.Locale(t):t);return n?hv(e,gA(n)):e}function wi(e,t){return new Intl.DurationFormat(bx(),t).format(e)}function ws(e,t){if(null==e)return null;if("string"==typeof e){let n=bz(e,bx());return n.invalid?(console.warn(`Could not interpret '${e}' as a date`),null):(n.day&&!n.month&&(n={...tp(n,"day"),...{month:n.day}}),n.month&&(n.month-=1),n.day&&(n={...tp(n,"day"),...{date:n.day}}),uG()(t).set(n))}return uG()(e)}let wl=["years","months","days","hours","minutes","seconds"],wu={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"},wc={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function wd(e,t=uG()(),n){let r,a=uG()(t),o=ws(e,a);if(null==o)return null;if("string"==typeof n){let e=wu[n]??n;return{[e]:a.diff(o,e)}}let{thresholds:i,largestUnit:s,smallestUnit:l}=n??{};if(void 0!==s||void 0!==l){let e,t=l?wu[l]??l:void 0;return e="auto"===s||void 0===s?function(e,t,n){let r=wl.indexOf(n);for(let a=0;a<wl.length;a++){let o=wl[a];if(t.diff(e,o)>0)return a<=r?o:n}return n}(o,a,t??"seconds"):wu[s]??s,function(e,t,n,r){let a=wl.indexOf(n),o=wl.indexOf(r),i=wl.slice(a,o+1),s={},l=e;for(let e of i){let n=t.diff(l,e);s[e]=n,l=l.add(n,e)}return s}(o,a,e,t??e)}let u=(r=function(e){let t={...wc};if(e)for(let[n,r]of Object.entries(e))void 0!==r&&(t[wu[n]??n]=r);return t}(i),a.diff(o,"seconds")<r.seconds?"seconds":a.diff(o,"minutes")<r.minutes?"minutes":a.diff(o,"hours")<r.hours?"hours":a.diff(o,"days")<r.days?"days":a.diff(o,"months")<r.months?"months":"years");return{[u]:a.diff(o,u)}}let wm={style:"short",localeMatcher:"lookup"};function wp(e,t=uG()(),n){let r=wd(e,t,n);return null==r?null:wi(r,"object"==typeof n&&n.formatOptions?{...wm,...n.formatOptions}:wm)}let wf=(0,lr.createContext)(null);function wh(){let e=un({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,t=(0,lr.useMemo)(()=>{let t=bx();return e[t]&&(t=e[t]),t},[window.i18next.language]),n=(0,lr.useMemo)(()=>{let e=b8(t);return void 0!==e?gA(e):void 0},[t]),r=(0,lr.useMemo)(()=>new Intl.Locale(t,{calendar:n?.identifier}),[t,n]),a=(0,lr.useMemo)(()=>n?hv(hk(hR()),n):hk(hR()),[n]);return{calendar:n,intlLocale:r,today_:a}}let wg=new ha(1793,1,1);var wy={};function wv(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function wb(e={}){let{locale:t}=fv();return(0,lr.useMemo)(()=>new(0,y2.K)(t,e),[t,e])}wy={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var ww={};ww={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let wx=()=>{};function wD(e){var t;let n=(0,lr.useRef)(void 0),{value:r,textValue:a,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:m,onDecrementPage:p,onDecrementToMin:f,onIncrementToMax:h}=e,g=fB((t=ww)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),y=(0,lr.useRef)(!1),v=(0,lr.useCallback)(()=>{clearTimeout(n.current),y.current=!1},[]),b=pF(()=>{v()});(0,lr.useEffect)(()=>()=>b(),[]);let w=(0,lr.useRef)(!1),x=()=>{w.current=!0},D=()=>{w.current=!1},E=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,lr.useEffect)(()=>{w.current&&(fb&&fb.clear("assertive"),fw(E,"assertive"))},[E]);let _=(0,lr.useCallback)(()=>{v()},[v]),S=pF(c??wx),k=pF(m??wx),C=pF(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r<i)&&(S(),P(60))}),P=pF(e=>{b(),y.current=!0,n.current=window.setTimeout(C,e)}),T=pF(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r>o)&&(k(),R(60))}),R=pF(e=>{b(),y.current=!0,n.current=window.setTimeout(T,e)}),N=e=>{e.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:$}=pB(),M=(0,lr.useRef)(!1),[A,j]=(0,lr.useState)(null);(0,lr.useEffect)(()=>{"touch"===A?P(600):A&&P(400)},[A]);let[I,L]=(0,lr.useState)(null);return(0,lr.useEffect)(()=>{"touch"===I?R(600):I&&R(400)},[I]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":E,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!l&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(d){e.preventDefault(),d?.();break}case"ArrowUp":case"Up":c&&(e.preventDefault(),c?.());break;case"PageDown":if(p){e.preventDefault(),p?.();break}case"ArrowDown":case"Down":m&&(e.preventDefault(),m?.());break;case"Home":f&&(e.preventDefault(),f?.());break;case"End":h&&(e.preventDefault(),h?.())}},onFocus:x,onBlur:D},incrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(c?.(),j("mouse")):(O(window,"pointercancel",_,{capture:!0}),M.current=!1,j("touch")),O(window,"contextmenu",N)},onPressUp:e=>{v(),"touch"===e.pointerType&&(M.current=!0),$(),j(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!y.current&&M.current&&c?.(),M.current=!1,j(null)},onFocus:x,onBlur:D},decrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(m?.(),L("mouse")):(O(window,"pointercancel",_,{capture:!0}),M.current=!1,L("touch"))},onPressUp:e=>{v(),"touch"===e.pointerType&&(M.current=!0),$(),L(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!y.current&&M.current&&m?.(),M.current=!1,L(null)},onFocus:x,onBlur:D}}}let wE=null;var w_=n(2103);function wS(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),o=n.toString().split("."),i=Math.pow(10,Math.max(a[1]&&a[1].length||0,o[1]&&o[1].length||0));t=Math.round(t*i),n=Math.round(n*i),r=("+"===e?t+n:t-n)/i}return r}let wk=(0,lr.createContext)(null),wC=(0,lr.createContext)(null),wP=(0,lr.forwardRef)(function(e,t){var n,r;[e,t]=mD(e,t,wk);let{validationBehavior:a}=mx(vf)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",{locale:i}=fv(),s=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:o,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===o&&(o=NaN);let m=(0,lr.useCallback)(e=>void 0===r||isNaN(r)?vx(e,t,n):vE(e,t,n,r),[r,t,n]);void 0===o||isNaN(o)||"snap"!==d||(o=m(o)),isNaN(i)||"snap"!==d||(i=m(i));let[p,f]=gH(o,isNaN(i)?NaN:i,s),[h]=(0,lr.useState)(p),[g,y]=(0,lr.useState)(()=>isNaN(p)?"":new(0,y2.K)(l,a).format(p)),v=(0,lr.useMemo)(()=>new(0,w_.d)(l,a),[l,a]),b=(0,lr.useMemo)(()=>v.getNumberingSystem(g),[v,g]),w=(0,lr.useMemo)(()=>new(0,y2.K)(l,{...a,numberingSystem:b}),[l,a,b]),x=(0,lr.useMemo)(()=>w.resolvedOptions(),[w]),D=(0,lr.useCallback)(e=>isNaN(e)||null===e?"":w.format(e),[w]),E=yF({...e,value:p}),_=void 0===r||isNaN(r)?1:r;"percent"===x.style&&(void 0===r||isNaN(r))&&(_=.01);let[S,k]=(0,lr.useState)(p),[C,P]=(0,lr.useState)(l),[T,R]=(0,lr.useState)(a);Object.is(p,S)&&l===C&&a===T||(y(D(p)),k(p),P(l),R(a));let N=(0,lr.useMemo)(()=>v.parse(g),[v,g]),O=(e,r=0)=>{if(isNaN(N))return vE(isNaN(r)?0:r,t,n,_);{let r=vE(N,t,n,_);return"+"===e&&r>N||"-"===e&&r<N?r:vE(wS(e,N,_),t,n,_)}},$=(0,lr.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===n||isNaN(n)||vE(N,t,n,_)>N||wS("+",N,_)<=n),[u,c,t,n,_,N]),M=(0,lr.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||vE(N,t,n,_)<N||wS("-",N,_)>=t),[u,c,t,n,_,N]);return{...E,validate:e=>v.isValidPartialNumber(e,t,n),increment:()=>{let e=O("+",t);e===p&&y(D(e)),f(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(f(vE(n,t,n,_)),E.commitValidation())},decrement:()=>{let e=O("-",n);e===p&&y(D(e)),f(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(f(t),E.commitValidation())},canIncrement:$,canDecrement:M,minValue:t,maxValue:n,numberValue:N,defaultNumberValue:isNaN(i)?h:i,setNumberValue:f,setInputValue:y,inputValue:g,commit:e=>{let t=void 0===e?g:e,n=N;if(void 0!==e&&(n=v.parse(t)),!t.length){f(NaN),y(void 0===o?"":D(p));return}if(isNaN(n))return void y(D(p));let r="snap"===d?m(n):n,a=(r=v.parse(D(r)))!==p;f(r),y(D(void 0===o?r:p)),a&&E.commitValidation()}}}({...e,locale:i,validationBehavior:o}),l=(0,lr.useRef)(null),[u,c]=mE(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:m,inputProps:p,incrementButtonProps:f,decrementButtonProps:h,descriptionProps:g,errorMessageProps:y,...v}=function(e,t,n){var r,a,o,i,s,l,u,c,d;let m,{id:p,decrementAriaLabel:f,incrementAriaLabel:h,isDisabled:g,isReadOnly:y,isRequired:v,minValue:b,maxValue:w,autoFocus:x,label:D,formatOptions:E,onBlur:_=()=>{},onFocus:S,onFocusChange:k,onKeyDown:C,onKeyUp:P,description:T,errorMessage:R,isWheelDisabled:N,...O}=e,{increment:$,incrementToMax:M,decrement:A,decrementToMin:j,numberValue:I,inputValue:L,commit:F,commitValidation:B}=t,V=fB((r=wy)&&r.__esModule?r.default:r,"@react-aria/numberfield"),U=(0,lr.useCallback)(()=>{let e=n.current?.value??"";(0,pV.flushSync)(()=>{F()}),n.current?.value!==e&&fw(n.current?.value??"","assertive")},[F,n]),W=mf(p),{focusProps:H}=pS({onBlur(){U()}}),z=wb(E),K=(0,lr.useMemo)(()=>z.resolvedOptions(),[z]),G=wb({...E,currencySign:void 0}),Z=(0,lr.useMemo)(()=>isNaN(I)?"":G.format(I),[G,I]),{spinButtonProps:Y,incrementButtonProps:q,decrementButtonProps:J}=wD({isDisabled:g,isReadOnly:y,isRequired:v,maxValue:w,minValue:b,onIncrement:$,onIncrementToMax:M,onDecrement:A,onDecrementToMin:j,value:I,textValue:Z}),[X,Q]=(0,lr.useState)(!1),{focusWithinProps:ee}=p0({isDisabled:g,onFocusWithinChange:Q});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,lr.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);hY(t,"wheel",r?void 0:a)}({onScroll:(0,lr.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?$():e.deltaY<0&&A())},[A,$]),isDisabled:N||g||y||!X},n);let et=(K.maximumFractionDigits??0)>0,en=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,er="numeric";m6()?en?er="text":et&&(er="decimal"):pe()&&(en?er="numeric":et&&(er="decimal"));let ea=mA(e),eo=(0,lr.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"===e.key?((0,pV.flushSync)(()=>{F()}),B()):e.continuePropagation())},[F,B]),{isInvalid:ei,validationErrors:es,validationDetails:el}=t.displayValidation,{labelProps:eu,inputProps:ec,descriptionProps:ed,errorMessageProps:em}=function(e,t,n){let r=pF(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,lr.useEffect)(()=>{if(!wv()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n]);let a=wv()?null:e=>{let n=mV(e).value.slice(0,mV(e).selectionStart)+e.data+mV(e).value.slice(mV(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:o,inputProps:i,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:o=!1,type:i="text",validationBehavior:s="aria"}=e,[l,u]=gH(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=pT(e,t),d=yF({...e,value:l}),{isInvalid:m,validationErrors:p,validationDetails:f}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:y,errorMessageProps:v}=yk({...e,isInvalid:m,errorMessage:e.errorMessage||p}),b=mA(e,{labelable:!0}),w={type:i,pattern:e.pattern},[x]=(0,lr.useState)(l);return yC(t,e.defaultValue??x,u),yP(e,d,t),{labelProps:h,inputProps:my(b,"input"===n?w:void 0,{disabled:r,readOnly:o,required:a&&"native"===s,"aria-required":a&&"aria"===s||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(mV(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(la().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...g}),descriptionProps:y,errorMessageProps:v,isInvalid:m,validationErrors:p,validationDetails:f}}(e,n),c=(0,lr.useRef)(null);return{inputProps:my(i,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;c.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=c.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:o,descriptionProps:s,errorMessageProps:l,...u}}({...O,...ea,name:void 0,form:void 0,label:D,autoFocus:x,isDisabled:g,isReadOnly:y,isRequired:v,validate:void 0,[yL]:t,value:L,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:W,type:"text",inputMode:er,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:_,onFocus:S,onFocusChange:k,onKeyDown:(0,lr.useMemo)(()=>mt(eo,C),[eo,C]),onKeyUp:P,onPaste:t=>{e.onPaste?.(t);let n=mV(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),F(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:R},t,n);yC(n,t.defaultNumberValue,t.setNumberValue),a=t,o=e.validationBehavior,i=e.commitBehavior,s=n,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,mn(()=>{let e=s.current;if("validate"!==i||a.realtimeValidation.isInvalid||!e||e.disabled||(!wE&&"u">typeof document&&((wE=document.createElement("input")).type="number"),!wE))return;wE.min=null==l||isNaN(l)?"":String(l),wE.max=null==u||isNaN(u)?"":String(u),wE.step=null==c||isNaN(c)?"":String(c),wE.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&wE.validity.valid,n=e.validationMessage||wE.validationMessage,r={isInvalid:!t,validationErrors:n?[n]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:wE.validity.rangeOverflow,rangeUnderflow:wE.validity.rangeUnderflow,stepMismatch:wE.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(r),"native"!==o||wE.validity.valid||e.setCustomValidity(wE.validationMessage)});let ep=my(Y,H,ec,{role:null,"aria-roledescription":m9()?null:V.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ep["aria-required"]=void 0);let ef=e=>{((e=document)=>e.activeElement)()!==n.current&&("mouse"===e.pointerType?n.current?.focus():e.target.focus())},eh=e["aria-label"]||("string"==typeof e.label?e.label:"");eh||(m=null!=e.label?eu.id:e["aria-labelledby"]);let eg=mf(),ey=mf(),ev=my(q,{"aria-label":h||V.format("increase",{fieldLabel:eh}).trim(),id:m&&!h?eg:null,"aria-labelledby":m&&!h?`${eg} ${m}`:null,"aria-controls":W,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ef}),eb=my(J,{"aria-label":f||V.format("decrease",{fieldLabel:eh}).trim(),id:m&&!f?ey:null,"aria-labelledby":m&&!f?`${ey} ${m}`:null,"aria-controls":W,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ef});return{groupProps:{...ee,role:"group","aria-disabled":g,"aria-invalid":ei?"true":void 0},labelProps:eu,inputProps:ep,incrementButtonProps:ev,decrementButtonProps:eb,errorMessageProps:em,descriptionProps:ed,isInvalid:ei,validationErrors:es,validationDetails:el}}({...m_(e),label:c,validationBehavior:o},s,l),b=mw({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),w=mA(e);return delete w.id,la().createElement(mb,{values:[[wC,s],[g8,m],[ye,{...p,ref:l}],[vh,{...d,ref:u}],[fe,{slots:{increment:f,decrement:h}}],[fr,{slots:{description:g,errorMessage:y}}],[vd,v]]},la().createElement("div",{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&la().createElement("input",{type:"hidden",name:e.name,value:isNaN(s.numberValue)?"":s.numberValue}))});function wT(e,t){return Number.parseInt(wt(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}let wR=(0,lr.forwardRef)(function(e,t){let{className:n}=e,r=(0,lr.useContext)(gX),a=(0,lr.useContext)(gQ),o=r??a,i=(0,lr.useContext)(wf),s=hR(),l=wt(o.visibleRange.start.toDate(s),{calendar:i.calendar,locale:i.baseName,day:!1,year:!1,noToday:!0}),u=wT(o.visibleRange.start.toDate(s),i),c=o.maxValue?wT(o.maxValue.toDate(s),i):void 0,d=o.minValue?wT(o.minValue.toDate(s),i):void 0,m=(0,lr.useCallback)(e=>{o.setFocusedDate(o.focusedDate.cycle("year",e-o.focusedDate.year))},[]);return o&&(0,ca.jsxs)("span",{ref:t,className:n,children:[(0,ca.jsx)("span",{children:l}),(0,ca.jsxs)(wP,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:m,value:u,children:[(0,ca.jsx)(yt,{}),(0,ca.jsxs)(g7,{children:[(0,ca.jsx)(ft,{slot:"increment",children:(0,ca.jsx)(cj,{size:8})}),(0,ca.jsx)(ft,{slot:"decrement",children:(0,ca.jsx)(c$,{size:8})})]})]})]})}),wN="-esm-form-engine__datepicker-module__inputGroup___gBam-",wO="-esm-form-engine__datepicker-module__inputSegment___wIJDZ",w$="-esm-form-engine__datepicker-module__dateInputWrapper___LiY68",wM="-esm-form-engine__datepicker-module__invalidText___A4cv4",wA="-esm-form-engine__datepicker-module__flatButton___HcpME",wj="-esm-form-engine__datepicker-module__flatButtonMd___eFpyF",wI="-esm-form-engine__datepicker-module__flatButtonSm___tsawR",wL="-esm-form-engine__datepicker-module__flatButtonLg___4HG5y";function wF({children:e}){let t=(0,lr.useContext)(bm),n=(0,lr.useContext)(bp),r=t??n,a=uA(()=>r?.close());return(0,ca.jsx)(vc,{className:"-esm-form-engine__datepicker-module__dialog___DaqYi",ref:a,children:e})}let wB=(0,lr.forwardRef)(function({variant:e,today_:t,minDate:n,maxDate:r},a){let o="range"===e;return(0,ca.jsx)(bs,{ref:a,className:"-esm-form-engine__datepicker-module__popover___nAPzC",placement:"bottom start",offset:1,isNonModal:!0,children:(0,ca.jsx)(wF,{children:(0,ca.jsxs)(o?g1:g0,{...o?{minValue:n,maxValue:r,className:"cds--date-picker__calendar"}:{},children:[(0,ca.jsxs)("header",{className:"-esm-form-engine__datepicker-module__header___rPv3L",children:[(0,ca.jsx)(ft,{className:ci()(wA,wj),slot:"previous",children:(0,ca.jsx)(cW,{size:16})}),(0,ca.jsx)(wR,{className:"-esm-form-engine__datepicker-module__monthYear___Rw4qE"}),(0,ca.jsx)(ft,{className:ci()(wA,wj),slot:"next",children:(0,ca.jsx)(cH,{size:16})})]}),(0,ca.jsx)(g2,{className:"-esm-form-engine__datepicker-module__calendarGrid___yKV-n",children:e=>(0,ca.jsx)(g9,{className:ci()("cds--date-picker__day",{"-esm-form-engine__datepicker-module__today___KzMTn":0===t.compare(e)}),date:e},e.toString())})]})})})}),wV=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(bm),[r,a]=mD({slot:e.slot},t,y8),{locale:o}=fv(),i=y9({...r,locale:o,createCalendar:gA}),s=(0,lr.useRef)(null),{fieldProps:l,inputProps:u}=yO({...r,inputRef:s},i,a),c=(0,lr.useCallback)(()=>{i.isDisabled||n.toggle()},[]);return(0,ca.jsxs)(mb,{values:[[y7,i],[ye,{...u,ref:s}],[g8,{...l,ref:a,isInvalid:i.isInvalid}]],children:[(0,ca.jsx)(g7,{...e,id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:i.isDisabled,isInvalid:i.isInvalid,onClick:c,children:i.segments.map((t,n)=>(0,lr.cloneElement)(e.children(t),{key:n}))}),(0,ca.jsx)(yt,{})]})}),wU=(0,lr.forwardRef)(function(e,t){let n=(0,lr.useContext)(bm),r=(0,lr.useContext)(bp);return(n??r).isInvalid?(0,ca.jsx)(dX,{ref:t,size:16,...e}):(0,ca.jsx)(cO,{ref:t,size:16,...e})});class wW{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let wH=new Map,wz=(0,lr.forwardRef)(function({segment:e,...t},n){let r=(0,lr.useContext)(y7),a=d8(n),{segmentProps:o}=function(e,t,n){let r,a,o,i,s=(0,lr.useRef)(""),{locale:l,direction:u}=fv(),c=function(){var e;let{locale:t}=fv(),n=fF((e=yE)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,lr.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new wW(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:p,focusManager:f}=yT.get(t),h=e.isPlaceholder?"":e.text,g=(0,lr.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),y=fR({month:"long",timeZone:g.timeZone}),v=fR({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(h=v.format(t.dateValue));else{let e=y.format(t.dateValue);h=e!==h?`${h} \u{2013} ${e}`:e}let{spinButtonProps:b}=wD({value:e.value??void 0,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),w=(0,lr.useMemo)(()=>new(0,w_.d)(l,{maximumFractionDigits:0}),[l]),x=()=>{if(e.text===e.placeholder&&f.focusPrevious(),!w.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=w.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{startsWith:D}=(r=function(e){let{locale:t}=fv(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(wH.has(n))return wH.get(n);let r=new Intl.Collator(t,e);return wH.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,lr.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),o=(0,lr.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),i=(0,lr.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let o=e.slice(n,n+a);if(0===r.compare(t,o))return!0}return!1},[r]),(0,lr.useMemo)(()=>({startsWith:a,endsWith:o,contains:i}),[a,o,i])),E=fR({hour:"numeric",hour12:!0}),_=(0,lr.useMemo)(()=>{let e=new Date;return e.setHours(0),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),S=(0,lr.useMemo)(()=>{let e=new Date;return e.setHours(12),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),k=fR({year:"numeric",era:"narrow",timeZone:"UTC"}),C=(0,lr.useMemo)(()=>{if("era"!==e.type)return[];let n=hv(new ha(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:k.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[k,t.calendar,e.type]),P=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(D(_,n))t.setSegment("dayPeriod",0);else if(D(S,n))t.setSegment("dayPeriod",1);else break;f.focusNext();break;case"era":{let e=C.find(e=>D(e.formatted,n));e&&(t.setSegment("era",e.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(r))return;let a=w.parse(r),o=a;if(void 0!==e.maxValue&&a>e.maxValue&&(o=w.parse(n)),isNaN(a))return;t.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",f.focusNext()):s.current=r}}};hY((0,lr.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&mB(n.current,e?.anchorNode)&&e.collapse(n.current)});let T=(0,lr.useRef)("");hY(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&x();break;case"insertCompositionText":T.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&P(r.data)}}),hY(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=T.current),null!=r&&(D(_,r)||D(S,r))&&P(r))}),mn(()=>{let e=n.current;return()=>{((e=document)=>e.activeElement)()===e&&(f.focusPrevious()||f.focusNext())}},[n,f]);let R=m9()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,lr.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let N=mf(),O=!t.isDisabled&&!t.isReadOnly&&e.isEditable,$="literal"===e.type?"":c.of(e.type),M=hH({"aria-label":`${$}${d?`, ${d}`:""}${m?", ":""}`,"aria-labelledby":m});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let A={caretColor:"transparent"};if("rtl"===u){A.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(A.direction="ltr")}return{segmentProps:my(b,M,{id:N,...R,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(la().version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(m3()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),x()}},onFocus:()=>{s.current="",n.current&&h0(n.current,{containingElement:hJ(n.current)});let e=window.getSelection();e?.collapse(n.current)},style:A,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(e,r,a),{focusProps:i,isFocused:s,isFocusVisible:l}=p1(),{hoverProps:u,isHovered:c}=p5({...t,isDisabled:r.isDisabled||"literal"===e.type}),d=function(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:i,values:s}=e;return(0,lr.useMemo)(()=>{let e,l,u;return e="function"==typeof t?t({...s,defaultClassName:a}):t,l="function"==typeof n?n({...s,defaultStyle:i||{}}):n,u="function"==typeof r?r({...s,defaultChildren:o}):null==r?o:r,{className:e??a,style:l||i?{...i,...l}:void 0,children:u??o,"data-rac":""}},[t,n,r,a,o,i,s])}({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:r.isInvalid,isDisabled:r.isDisabled,isHovered:c,isFocused:s,isFocusVisible:l},defaultChildren:e.text}),m=(0,lr.useCallback)(e=>{e.stopPropagation()},[]);return(0,ca.jsx)("span",{...my(mA(t),o,i,u),...d,ref:a,style:o.style,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":r.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":r.isDisabled||void 0,"data-type":e.type,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":l||void 0,onClick:m})}),wK={short:!1,size:"md"},wG=(0,lr.forwardRef)(function(e,t){let{className:n,defaultValue:r,isDisabled:a,invalid:o,invalidText:i,isInvalid:s,label:l,labelText:u,light:c,maxDate:d,minDate:m,onChange:p,onChangeRaw:f,short:h,size:g,value:y,...v}={...wK,...e},{calendar:b,intlLocale:w,today_:x}=wh(),D=(0,lr.useId)(),E=!!(u??l),_=(0,lr.useMemo)(()=>by(r,b),[r,b]),S=(0,lr.useMemo)(()=>by(y,b,!0),[y,b]),k=(0,lr.useMemo)(()=>by(d,b),[d,b]),C=(0,lr.useMemo)(()=>by(m??wg,b),[m,b]),P=(0,lr.useMemo)(()=>o||s,[o,s]),T=(0,lr.useMemo)(()=>(f&&p&&console.error("An OpenmrsDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),f??(e=>p?.(bv(e)))),[f,p]);return(0,ca.jsx)(bg,{locale:w.toString(),children:(0,ca.jsx)("div",{className:ci()("cds--form-item",n),children:(0,ca.jsx)(mb,{values:[[wf,w]],children:(0,ca.jsxs)(bf,{className:ci()("cds--date-picker","cds--date-picker--single",{"cds--date-picker--short":h,"cds--date-picker--light":c}),defaultValue:_,isDisabled:a,isInvalid:P,maxValue:k,minValue:C,value:S,shouldForceLeadingZeros:"en"===w.language||void 0,...v,onChange:T,children:[(0,ca.jsxs)("div",{className:"cds--date-picker-container",children:[E&&(0,ca.jsx)(vg,{className:ci()("cds--label",{"cds--label--disabled":a}),htmlFor:D,children:u??l}),(0,ca.jsxs)(g7,{className:wN,children:[(0,ca.jsx)(wV,{id:E?D:void 0,ref:t,className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__inputWrapper___uKdT1",{"-esm-form-engine__datepicker-module__inputWrapperSm___0RXJc":"sm"===g,"-esm-form-engine__datepicker-module__inputWrapperMd___4Vff1":"md"===g||!g||0===g.length,"-esm-form-engine__datepicker-module__inputWrapperLg___VCRm5":"lg"===g}),children:e=>"era"!==e.type?(0,ca.jsx)(wz,{className:wO,segment:e}):(0,ca.jsx)(la().Fragment,{})}),(0,ca.jsx)(ft,{className:ci()(wA,{[wI]:"sm"===g,[wj]:"md"===g||!g||0===g.length,[wL]:"lg"===g}),children:(0,ca.jsx)(wU,{})})]}),(0,ca.jsx)(vm,{className:wM,children:i})]}),(0,ca.jsx)(wB,{variant:"single",today_:x})]})})})})}),wZ=(0,lr.forwardRef)(function({className:e,defaultValue:t,invalid:n,invalidText:r,isDisabled:a,isInvalid:o,label:i,labelText:s,light:l,maxDate:u,minDate:c,onChange:d,onChangeRaw:m,size:p="md",value:f,...h},g){let{calendar:y,intlLocale:v,today_:b}=wh(),w=(0,lr.useId)(),x=!!(s??i),D=(0,lr.useMemo)(()=>{if(f)return{start:by(f[0],y,!1),end:by(f[1],y,!1)}},[f,y]),E=(0,lr.useMemo)(()=>{if(t)return{start:by(t[0],y,!1),end:by(t[1],y,!1)}},[t,y]),_=(0,lr.useMemo)(()=>by(c??wg,y,!0),[c,y]),S=(0,lr.useMemo)(()=>by(u,y,!0),[u,y]),k=(0,lr.useMemo)(()=>n||o,[n,o]),C=(0,lr.useMemo)(()=>(m&&d&&console.error("An OpenmrsDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),m??(e=>d?.([bv(e.start),bv(e.end)]))),[m,d]);return(0,ca.jsx)(bg,{locale:v.toString(),children:(0,ca.jsx)("div",{className:ci()("cds--form-item",e),children:(0,ca.jsx)(mb,{values:[[wf,v]],children:(0,ca.jsx)(bh,{id:x?w:void 0,className:ci()("cds--date-picker",{"cds--date-picker--light":l,"cds--date-picker--disabled":a}),isInvalid:k,shouldForceLeadingZeros:"en"===v.language||void 0,maxValue:S,minValue:_,value:D,defaultValue:E,ref:g,isDisabled:a,...h,onChange:C,children:(0,ca.jsxs)("div",{className:"cds--date-picker-container",children:[x&&(0,ca.jsx)(vg,{className:ci()("cds--label",{"cds--label--disabled":a}),htmlFor:w,children:s??i}),(0,ca.jsxs)(g7,{className:wN,children:[(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__datepicker-module__inputsWrapper___xXRQI",{"-esm-form-engine__datepicker-module__inputsWrapperSm___nL+b6":"sm"===p,"-esm-form-engine__datepicker-module__inputsWrapperMd___Kgcps":"md"===p||!p||0===p.length,"-esm-form-engine__datepicker-module__inputsWrapperLg___raaSN":"lg"===p}),children:[(0,ca.jsx)(vt,{className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__startInput___cWw-5",w$),slot:"start",children:e=>(0,ca.jsx)(wz,{className:wO,segment:e})}),(0,ca.jsx)("div",{className:"-esm-form-engine__datepicker-module__separator___Ddb4g",children:(0,ca.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,ca.jsx)(vt,{className:ci()("cds--date-picker-input__wrapper","-esm-form-engine__datepicker-module__endInput___xdYOl",w$),slot:"end",children:e=>(0,ca.jsx)(wz,{className:wO,segment:e})})]}),(0,ca.jsx)(ft,{className:ci()(wA,{[wI]:"sm"===p,[wj]:"md"===p||!p||0===p.length,[wL]:"lg"===p}),children:(0,ca.jsx)(wU,{})})]}),(0,ca.jsx)(vm,{className:wM,children:r}),(0,ca.jsx)(wB,{variant:"range",today_:b,minDate:_,maxDate:S})]})})})})})}),wY=({diagnoses:e})=>{let{diagnosisTags:t}=un({externalModuleName:"@openmrs/esm-styleguide"});return(0,ca.jsx)("div",{className:"-esm-form-engine__diagnosis-tags-module__container___1iigI",children:e.map(e=>{let{rank:n,uuid:r,display:a}=e,o=t[1===n?"primaryColor":"secondaryColor"];return(0,ca.jsx)(cd.Tag,{type:o,children:a},r)})})},wq={action:"-esm-form-engine__empty-card-module__action___oG778",content:"-esm-form-engine__empty-card-module__content___YUXvR",desktopHeading:"-esm-form-engine__empty-card-module__desktopHeading___EljiH",tabletHeading:"-esm-form-engine__empty-card-module__tabletHeading___8mc7w",tile:"-esm-form-engine__empty-card-module__tile___3-rRO"},wJ=({width:e="64",height:t="64"})=>(0,ca.jsx)("svg",{width:e,height:t,viewBox:"0 0 64 64",children:(0,ca.jsx)("use",{href:"#omrs-empty-data-illustration"})}),wX=e=>{let t="tablet"===uT(),n=e.launchForm;return(0,ca.jsx)(cd.Layer,{className:wq.layer,children:(0,ca.jsxs)(cd.Tile,{className:wq.tile,children:[(0,ca.jsx)("div",{className:t?wq.tabletHeading:wq.desktopHeading,children:(0,ca.jsx)("h4",{children:e.headerTitle})}),(0,ca.jsx)(wJ,{}),(0,ca.jsx)("p",{className:wq.content,children:aj("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,ca.jsx)("p",{className:wq.action,children:n&&(0,ca.jsx)(cd.Button,{onClick:()=>n(),kind:"ghost",size:t?"lg":"sm",children:aj("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},wQ=({error:e,headerTitle:t})=>{let n="tablet"===uT();return(0,ca.jsx)(cd.Layer,{children:(0,ca.jsxs)(cd.Tile,{className:"-esm-form-engine__error-state-module__tile___mzWLn",children:[(0,ca.jsx)("div",{className:n?"-esm-form-engine__error-state-module__tabletHeading___l7Cpn":"-esm-form-engine__error-state-module__desktopHeading___p57fl",children:(0,ca.jsx)("h4",{children:t})}),(0,ca.jsxs)("p",{className:"-esm-form-engine__error-state-module__errorMessage___0fU6v",children:[aj("error","Error")," ",`${e?.response?.status}: `,e?.response?.statusText]}),(0,ca.jsx)("p",{className:"-esm-form-engine__error-state-module__errorCopy___xkVog",children:aj("errorCopy")})]})})},w0=wQ,w1=la().forwardRef((e,t)=>{let{slotName:n,basePath:r,componentContext:a,state:o}=uO(),i=window.location??{pathname:""},s=lv(n??"");return e.isChildOfHeader&&n&&s.length>0?(0,ca.jsxs)(cd.SideNav,{"aria-label":aj("leftNavigation","Left navigation"),className:"-esm-form-engine__left-nav-module__leftNav___czP9T",expanded:!0,isFixedNav:!0,ref:t,...e,children:[(0,ca.jsx)(lx,{name:"global-nav-menu-slot"}),n?(0,ca.jsx)(l4,{value:a,fallback:(0,ca.jsx)(lx,{name:n,state:{basePath:r,currentPath:i,...o}}),children:(0,ca.jsx)(lo.Provider,{value:a,children:(0,ca.jsx)(lx,{name:n,state:{basePath:r,currentPath:i,...o}})})}):null]}):null}),w4=({selectedLocationUuid:e,defaultLocationUuid:t,locationTag:n,locationsPerRequest:r=50,onChange:a})=>{let[o,i]=(0,lr.useState)(""),s=(0,lr.useId)(),{location:l}=function(e){let t=e?`/ws/fhir2/R4/Location?_id=${e}`:null,{data:n,error:r,isLoading:a}=ui()(t,aQ,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,lr.useMemo)(()=>({location:n?.data?.entry?n.data.entry[0]:null,error:t?r:null,isLoading:!!t&&a}),[n,a,r,t])}(t),{locations:u,isLoading:c,hasMore:d,loadingNewData:m,error:p,setPage:f}=function(e,t=0,n=""){let r=ua(n),{data:a,isLoading:o,isValidating:i,setSize:s,error:l}=ux()(function(n,a){if(a){let e=a.data?.link?.find(e=>"next"===e.relation);if(!e)return null;let t=new URL(e.url);return t.origin===window.location.origin?e.url:new URL(`${t.pathname}${t.search?`?${t.search}`:""}`,window.location.origin).toString()}let o=`${aq}/Location?`,i=new URLSearchParams;return i.append("_summary","data"),t&&i.append("_count",""+t),n&&i.append("_getpagesoffset",""+n*t),e&&i.append("_tag",e),"string"==typeof r&&""!==r&&i.append("name:contains",r),o+i.toString()},aQ);return(0,lr.useMemo)(()=>({locations:a?.length?a?.flatMap(e=>e?.data?.entry??[]):[],isLoading:o,totalResults:a?.[0]?.data?.total,hasMore:!!a?.length&&a?.[a.length-1]?.data?.link?.some(e=>"next"===e.relation),loadingNewData:i,error:l||null,setPage:s}),[o,a,i,s,l])}(n,r,o),h=(0,lr.useMemo)(()=>l&&!o&&t?[l,...u.filter(({resource:e})=>e.id!==t)]:u??[],[l,u,t,o]),g=(0,lr.useCallback)(e=>{a(),i(e.trim())},[a]),y=uj((0,lr.useCallback)(()=>{!m&&d&&f(e=>e+1)},[m,d,f])),v=d?Math.max(0,Math.floor(h.length-r/2)):-1;return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)(cd.Search,{"aria-describedby":p?`${s}-error`:void 0,labelText:aj("searchForLocation"),id:s,placeholder:aj("searchForLocation"),onChange:e=>g(e.target.value),size:"lg"}),p&&(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__errorNotification___NfvTe",id:`${s}-error`,children:(0,ca.jsx)(cd.InlineNotification,{kind:"error",subtitle:aj("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:aj("error","Error")})}),(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__searchResults___agplm",children:c?(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__loadingContainer___EHghS",children:Array.from({length:5}).map((e,t)=>(0,ca.jsx)(cd.RadioButtonSkeleton,{className:"-esm-form-engine__location-picker-module__radioButtonSkeleton___up5rH",role:"progressbar"},t))}):(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__locationResultsContainer___06YOS",children:h.length>0?(0,ca.jsx)(cd.RadioButtonGroup,{name:"loginLocations",onChange:e=>{a(e?.toString())},orientation:"vertical",valueSelected:e,children:h.map((e,t)=>(0,ca.jsx)(cd.RadioButton,{className:"-esm-form-engine__location-picker-module__locationRadioButton___yKif7",id:e.resource.id,labelText:(0,ca.jsx)("span",{ref:t===v?y:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id))}):(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__emptyState___cPWp8",children:(0,ca.jsx)("p",{className:"-esm-form-engine__location-picker-module__locationNotFound___b14++",children:aj("noResultsToDisplay")})})}),m&&(0,ca.jsx)("div",{className:"-esm-form-engine__location-picker-module__loadingIcon___GVlrq",children:(0,ca.jsx)(cd.InlineLoading,{description:aj("loading")})})]})})]})},w2=F("modalState",{modalContainer:null,modalStack:[]}),w3=0;async function w6(e,t,n={}){let r=sH(t),a=null;if(e){if(!r)throw Error(`No modal named '${t}' has been registered.`);let{load:o}=r,i=await o(),s=w3++;a=await s7({...i,name:`${t}-${s}`},{...n,domElement:e})}else k(`Failed to launch modal. Please notify your administrator. Modal name: ${t}`);return a}function w5(e){return"TO_BE_DELETED"===e.state||"DELETED"===e.state}function w9(e,t){t?.unmount&&(t.unmountPromise?.catch(()=>{}),t.unmount().catch(t=>{console.error(`The modal '${e}' failed to unmount`,t)}))}function w8(e){return e.find(e=>!w5(e))}function w7(e,t){e.container&&(e.container.style.visibility=t?"unset":"hidden")}let xe=window.getComputedStyle(document.body).overflow;function xt({modalStack:e,modalContainer:t}){if(t)if(e.length){t.style.visibility||(addEventListener("keydown",xr),document.body.style.overflow="hidden",t.style.visibility="unset");let n=w8(e);e.forEach(e=>{switch(e.state){case"NEW":{let n=function({size:e}){let t=document.createElement("div");return t.className=`cds--modal-container cds--modal-container--${e}`,t.setAttribute("role","dialog"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-modal","true"),t}({size:e.props?.size??"md"});e.container=n,e.state="MOUNTING",w6(n,e.modalName,e.props).then(r=>{w5(e)?w9(e.modalName,r):r?(e.parcel=r,t.prepend(n),w7(e,w8(w2.getState().modalStack)===e),r.mountPromise.then(()=>{w5(e)||(e.state="MOUNTED")},t=>{k(t),e.parcel=null,xn(e)})):xn(e)},t=>{k(t),xn(e)});break}case"MOUNTING":case"MOUNTED":w7(e,e===n);break;case"TO_BE_DELETED":e.state="DELETED",e.onClose(),w9(e.modalName,e.parcel),e.container?.remove(),setTimeout(()=>{let t=w2.getState();w2.setState({...t,modalStack:t.modalStack.filter(t=>t!==e)})},0)}})}else t.style.removeProperty("visibility"),document.body.style.overflow=xe,removeEventListener("keydown",xr)}function xn(e){if(w5(e))return;e.state="TO_BE_DELETED";let t=w2.getState();w2.setState({...t,modalStack:[...t.modalStack]})}function xr(e){"Escape"===e.key&&function(){let[e]=w2.getState().modalStack;e&&xn(e)}()}function xa(e){w2.subscribe(xt),w2.setState({...w2.getState(),modalContainer:e})}function xo(e,t={},n=()=>{}){let r=()=>{let e=w2.getState().modalStack.find(e=>e.onClose===n);e&&xn(e)};if(sH(e)){var a;let o,i;a={state:"NEW",onClose:n,modalName:e,props:{close:r,...t}},i=[a,...(o=w2.getState()).modalStack],w2.setState({...o,modalStack:i})}else k(`Failed to launch modal. Please notify your administrator. Modal name: "${e}"`);return r}var xi=n(5992);let xs=({notification:e})=>{let{description:t,action:n,kind:r,critical:a,title:o,onAction:i}=e;return(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:n,kind:r||"info",lowContrast:a,subtitle:t,title:o||"",inline:!0,onActionButtonClick:i})},xl=({subject:e})=>{let[t,n]=(0,lr.useState)([]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(xs,{notification:e},e.id))})},xu=({notification:e})=>{let{actionButtonLabel:t,onActionButtonClick:n=()=>{},subtitle:r,kind:a,title:o,critical:i,progressActionLabel:s,id:l,...u}=e,[c,d]=(0,lr.useState)(t);return(0,ca.jsx)(cd.ActionableNotification,{kind:a||"info",actionButtonLabel:c,ariaLabel:aj("closesActionableNotification","Closes actionable notification"),onActionButtonClick:()=>{n(),s&&d(s)},statusIconDescription:aj("actionableNotification","Actionable notification"),subtitle:r,title:o,lowContrast:i,inline:!0,...u})},xc=({subject:e})=>{let[t,n]=(0,lr.useState)([]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(xu,{notification:e},e.id))})};class xd{subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}next(e){for(let t of[...this.listeners])t(e)}constructor(){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"listeners",new Set)}}let xm=new xd,xp=0,xf=new xd,xh=0;function xg(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(xl,{subject:xm}))}function xy(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&(t instanceof Error||!(0,xi.A)(t)))?(e.description instanceof Error&&(e.description=e.description.toLocaleString()),setTimeout(()=>{xm.next({...e,id:xp++})},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function xv(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(xc,{subject:xf}))}function xb(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:"object"==typeof t&&!(0,xi.A)(t))?setTimeout(()=>{xf.next({...e,id:xh++})},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}let xw=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],xx=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"],xD={container:"-esm-form-engine__numeric-observation-module__container___gS0Wg",card:"-esm-form-engine__numeric-observation-module__card___w0fF5","abnormal-value":"-esm-form-engine__numeric-observation-module__abnormal-value___xuX3W","critical-value":"-esm-form-engine__numeric-observation-module__critical-value___Jynsn",cell:"-esm-form-engine__numeric-observation-module__cell___tMhBJ","critically-high":"-esm-form-engine__numeric-observation-module__critically-high___3L2wx","critically-low":"-esm-form-engine__numeric-observation-module__critically-low___XP+HX",high:"-esm-form-engine__numeric-observation-module__high___JV9do",low:"-esm-form-engine__numeric-observation-module__low___-uDKD","label-container":"-esm-form-engine__numeric-observation-module__label-container___vTf2y","value-container":"-esm-form-engine__numeric-observation-module__value-container___xTUIC",label:"-esm-form-engine__numeric-observation-module__label___-pfmb",value:"-esm-form-engine__numeric-observation-module__value___1A4zt",units:"-esm-form-engine__numeric-observation-module__units___SzvX+","pad-right":"-esm-form-engine__numeric-observation-module__pad-right___ND9XL","off-scale-low":"-esm-form-engine__numeric-observation-module__off-scale-low___gFAv9","off-scale-high":"-esm-form-engine__numeric-observation-module__off-scale-high___aSEmX",arrow:"-esm-form-engine__numeric-observation-module__arrow___9bvsX"},xE=({value:e,unit:t,label:n,interpretation:r,referenceRange:a,conceptUuid:o,variant:i="card",patientUuid:s})=>{let l=(0,lr.useId)(),{referenceRange:u,isLoading:c}=function(e,t){let n=null;e&&(n=t?`${aY}/conceptreferencerange/?patient=${t}&concept=${e}&v=full`:`${aY}/conceptreferencerange/?concept=${e}&v=full`);let{data:r,error:a,isLoading:o}=ui()(n,aQ),i=r?.data?.results?.[0];return{referenceRange:i?{hiNormal:i.hiNormal??null,hiAbsolute:i.hiAbsolute??null,hiCritical:i.hiCritical??null,lowNormal:i.lowNormal??null,lowAbsolute:i.lowAbsolute??null,lowCritical:i.lowCritical??null}:void 0,error:a,isLoading:o}}(a||r?void 0:o,s),d=a??u,m=(0,lr.useMemo)(()=>{if(r)return r?"--"===r?"normal":xw.includes(r)?r.toLowerCase():xx.includes(r)?r:"normal":void 0;if(d&&!c){if(!d||null==e||""===e)return"normal";let t="string"==typeof e?Number.parseFloat(e):e;return Number.isNaN(t)?"normal":null!==d.hiAbsolute&&void 0!==d.hiAbsolute&&t>d.hiAbsolute?"off_scale_high":null!==d.hiCritical&&void 0!==d.hiCritical&&t>=d.hiCritical?"critically_high":null!==d.hiNormal&&void 0!==d.hiNormal&&t>d.hiNormal?"high":null!==d.lowAbsolute&&void 0!==d.lowAbsolute&&t<d.lowAbsolute?"off_scale_low":null!==d.lowCritical&&void 0!==d.lowCritical&&t<=d.lowCritical?"critically_low":null!==d.lowNormal&&void 0!==d.lowNormal&&t<d.lowNormal?"low":"normal"}return"normal"},[r,d,e,c])??"normal",p="critically_low"===m||"critically_high"===m||"off_scale_low"===m||"off_scale_high"===m,f="normal"!==m,h=n?`omrs-numeric-obs-label-${n.replaceAll(/\s+/g,"-").toLowerCase()}-${l}`:void 0,g=`omrs-numeric-obs-value-${l}`,y=`omrs-numeric-obs-unit-${l}`,v=null!=e&&""!==e,b=v?e:aj("notAvailable","Not available"),w=ci()({[xD["critically-low"]]:"critically_low"===m||"off_scale_low"===m,[xD["critically-high"]]:"critically_high"===m||"off_scale_high"===m,[xD.low]:"low"===m,[xD.high]:"high"===m,[xD["off-scale-low"]]:"off_scale_low"===m,[xD["off-scale-high"]]:"off_scale_high"===m}),x=ci()({[xD.container]:!0,[xD.card]:!0,[xD["critical-value"]]:p,[xD["abnormal-value"]]:f&&!p}),D=ci()({[xD.cell]:!0,[w]:!0});return"cell"===i?(0,ca.jsxs)("div",{className:D,children:[b,v&&t?` ${t}`:""]}):(0,ca.jsxs)("section",{className:x,"data-testid":"numeric-observation-card",children:[n&&(0,ca.jsxs)("div",{className:xD["label-container"],children:[(0,ca.jsx)("span",{id:h,className:xD.label,children:n}),f&&(0,ca.jsx)("span",{className:xD[m.replace("_","-")],title:aj("abnormalValue","Abnormal value")})]}),(0,ca.jsxs)("div",{className:xD["value-container"],children:[(0,ca.jsx)("span",{id:g,"aria-labelledby":h&&y?`${h} ${y}`:h||y||void 0,className:xD.value,children:b}),v&&t&&(0,ca.jsx)("span",{id:y,className:xD.units,children:t})]})]})},x_="-esm-form-engine__page-header-module__pageHeader___6TOjO",xS=e=>{if("children"in e){let{children:t,className:n,...r}=e;return(0,ca.jsx)("div",{className:ci()(x_,n),...r,children:t})}{let{title:t,illustration:n,className:r,...a}=e;return(0,ca.jsx)("div",{className:ci()(x_,r),...a,children:(0,ca.jsx)(xk,{title:t,illustration:n})})}},xk=({title:e,illustration:t,className:n})=>{let[r,a]=(0,lr.useState)(null);return(0,lr.useEffect)(()=>{t3("@openmrs/esm-styleguide").then(e=>{a(e)})},[]),(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__page-header-module__pageHeaderContent___mCImT",n),children:[t,(0,ca.jsxs)("div",{className:"-esm-form-engine__page-header-module__pageLabels___kqDS+",children:[r?.implementationName&&(0,ca.jsx)("p",{children:aj(r.implementationName)}),(0,ca.jsx)("p",{className:"-esm-form-engine__page-header-module__pageName___SbZBC",children:e})]})]})},xC=({totalItems:e,pageSize:t,onPageNumberChange:n,pageNumber:r,dashboardLinkUrl:a,currentItems:o,dashboardLinkLabel:i})=>{let{pageSizes:s,pageItemsCount:l}=uF(t,e,r,o),u="tablet"===uT(),c=aj("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:e,pageItemsCount:l});return(0,ca.jsx)(ca.Fragment,{children:e>0&&(0,ca.jsxs)("div",{className:ci()({"-esm-form-engine__pagination-module__tablet___82gj1":u,"-esm-form-engine__pagination-module__desktop___6yI8e":!u}),children:[(0,ca.jsxs)("div",{children:[c,a&&(0,ca.jsx)(li,{to:a,className:"-esm-form-engine__pagination-module__configurableLink___oIqma",children:i??aj("seeAll","See all")})]}),(0,ca.jsx)(cd.Pagination,{className:"-esm-form-engine__pagination-module__pagination___A-Lcg",page:r,pageSize:t,pageSizes:s,totalItems:e,onChange:n,pageRangeText:(e,t)=>aj("paginationOfPages","of {{count}} pages",{count:t}),size:u?"lg":"sm"})]})})};function xP(e){return xR(xO(e,"usual","official"))}function xT(e){return xP(e)}function xR(e){var t;let n;return e?e.text??(n=(t=e).given??[],(t.family?n.concat(t.family):n).join(" ")):""}function xN(e){return xR(e)}function xO(e,...t){for(let n of(0==t.length&&(t=["usual"]),t)){let t=e.name?.find(e=>{var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(t)return t}}function x$(e,t=uG()()){let n=uG()(t),r=ws(e,n);if(null==r)return null;let a=n.diff(r,"hours"),o=n.diff(r,"days"),i=n.diff(r,"weeks"),s=n.diff(r,"months"),l=n.diff(r,"years"),u={};if(a<2)u.minutes=n.diff(r,"minutes");else if(o<2)u.hours=a;else if(i<4)u.days=o;else if(l<1){let e=n.subtract(i,"weeks").diff(r,"days");u.weeks=i,u.days=e}else if(l<2){let e=n.subtract(s,"months").diff(r,"days");u.months=s,u.days=e}else if(l<18){let e=n.subtract(l,"year").diff(r,"months");u.years=l,u.months=e}else u.years=l;return u}function xM(e,t=uG()()){let n=x$(e,t);if(null==n)return null;let r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),wi(n,r)}let xA={container:"-esm-form-engine__patient-banner-patient-info-module__container___iC32K",activePatientContainer:"-esm-form-engine__patient-banner-patient-info-module__activePatientContainer___OoDPd",patientBanner:"-esm-form-engine__patient-banner-patient-info-module__patientBanner___swajU",patientName:"-esm-form-engine__patient-banner-patient-info-module__patientName___+2+Xi",patientAvatar:"-esm-form-engine__patient-banner-patient-info-module__patientAvatar___Rdf75",patientAvatarButton:"-esm-form-engine__patient-banner-patient-info-module__patientAvatarButton___A1q8c",patientInfo:"-esm-form-engine__patient-banner-patient-info-module__patientInfo___L-cOQ",demographics:"-esm-form-engine__patient-banner-patient-info-module__demographics___IDhb0",row:"-esm-form-engine__patient-banner-patient-info-module__row___TP7gU",flexRow:"-esm-form-engine__patient-banner-patient-info-module__flexRow___vNMt2",tagsSlot:"-esm-form-engine__patient-banner-patient-info-module__tagsSlot___0Dvjn",identifiers:"-esm-form-engine__patient-banner-patient-info-module__identifiers___d3GTJ",identifier:"-esm-form-engine__patient-banner-patient-info-module__identifier___kc6eq",primaryIdentifier:"-esm-form-engine__patient-banner-patient-info-module__primaryIdentifier___ZxRUU",secondaryIdentifier:"-esm-form-engine__patient-banner-patient-info-module__secondaryIdentifier___eQh8x",value:"-esm-form-engine__patient-banner-patient-info-module__value___CoAOR",tag:"-esm-form-engine__patient-banner-patient-info-module__tag___InccN",gender:"-esm-form-engine__patient-banner-patient-info-module__gender___vfinx",separator:"-esm-form-engine__patient-banner-patient-info-module__separator___3OIBl",tooltipPadding:"-esm-form-engine__patient-banner-patient-info-module__tooltipPadding___hBqWG",tooltipSmallText:"-esm-form-engine__patient-banner-patient-info-module__tooltipSmallText___bPnkq",actionsButtonText:"-esm-form-engine__patient-banner-patient-info-module__actionsButtonText___VNvm7"};function xj({showIdentifierLabel:e,type:t,value:n}){return(0,ca.jsx)("span",{className:xA.primaryIdentifier,children:(0,ca.jsxs)(cd.Tag,{className:xA.tag,type:"gray",children:[e&&t?.text&&(0,ca.jsxs)("span",{className:xA.label,children:[t.text,": "]}),(0,ca.jsx)("span",{className:xA.value,children:n})]})})}function xI({showIdentifierLabel:e,type:t,value:n}){return(0,ca.jsxs)(cd.FormLabel,{className:xA.secondaryIdentifier,id:`patient-banner-identifier-${n}`,children:[e&&(0,ca.jsxs)("span",{className:xA.label,children:[t?.text,": "]}),(0,ca.jsx)("span",{className:xA.value,children:n})]})}function xL({identifiers:e,showIdentifierLabel:t}){let{excludePatientIdentifierCodeTypes:n}=un(),{primaryIdentifierCode:r}=uU(),a=e?.filter(e=>{let t=e.type?.coding?.[0]?.code;return t&&!n?.uuids.includes(t)})??[];return(0,ca.jsx)(ca.Fragment,{children:a?.length?a.map(({value:e,type:n},o)=>(0,ca.jsxs)(la().Fragment,{children:[(0,ca.jsx)("span",{className:xA.identifier,children:n?.coding?.[0]?.code===r?(0,ca.jsx)(xj,{showIdentifierLabel:t,type:n,value:e}):(0,ca.jsx)(xI,{showIdentifierLabel:t,type:n,value:e})}),o<a.length-1&&(0,ca.jsx)("span",{className:xA.separator,children:"\xb7"})]},e)):""})}let xF={Female:c4,Male:c2,Other:c3,Unknown:c6},xB=({gender:e})=>{let t=xF[e];return t?(0,ca.jsx)(t,{fill:"#525252"}):null},xV={male:"Male",female:"Female",other:"Other",unknown:"Unknown"};function xU({patient:e,renderedFrom:t}){var n;let r,a,o=xP(e),i=e?.gender&&(a=xV[r=(n=e.gender).toLowerCase()]??"Unknown",{displayText:aj(r,n),iconKey:a}),s=(0,lr.useMemo)(()=>({patientUuid:e.id,patient:e,renderedFrom:t}),[e.id,e,t]);return(0,ca.jsxs)("div",{className:xA.patientInfo,children:[(0,ca.jsx)("div",{className:ci()(xA.row,xA.patientNameRow),children:(0,ca.jsxs)("div",{className:xA.flexRow,children:[(0,ca.jsx)("span",{className:xA.patientName,children:o}),i&&(0,ca.jsxs)("div",{className:xA.gender,children:[(0,ca.jsx)(xB,{gender:i.iconKey}),(0,ca.jsx)("span",{children:i.displayText})]}),(0,ca.jsx)(lx,{className:xA.tagsSlot,name:"patient-banner-tags-slot",state:s})]})}),(0,ca.jsxs)("div",{className:xA.demographics,children:[e.birthDate&&(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("span",{children:xM(e.birthDate)}),(0,ca.jsx)("span",{className:xA.separator,children:"\xb7"}),(0,ca.jsx)("span",{children:we(e.birthDate,{time:!1})}),(0,ca.jsx)("span",{className:xA.separator,children:"\xb7"})]}),(0,ca.jsx)(xL,{identifiers:e.identifier,showIdentifierLabel:!0}),(0,ca.jsx)(lx,{className:xA.extensionSlot,name:"patient-banner-bottom-slot",state:s})]})]})}var xW=n(8282);function xH({patient:e,patientUuid:t,actionsSlotName:n,additionalActionsSlotState:r}){let[a,o]=(0,lr.useState)(!1),{extensions:i}=lb(n),s="tablet"===uT(),l=uA(()=>o(!1),a),u=(0,lr.useRef)(null),c=(0,lr.useRef)(null),d=(0,lr.useId)(),m=`patient-actions-menu-trigger-${d}`,p=`patient-actions-menu-${d}`,f=(0,lr.useCallback)(()=>o(e=>!e),[]),h=(0,lr.useCallback)(()=>{o(!1),u.current?.focus()},[]),g=(0,lr.useCallback)(e=>{if("Escape"===e.key&&a){e.stopPropagation(),h();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&a){e.preventDefault();let t=c.current?.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t?.length)return;let n=document.activeElement?.closest?.('[role="menuitem"]')??document.activeElement,r=Array.from(t).indexOf(n);if(-1===r)return void t["ArrowDown"===e.key?0:t.length-1]?.focus();let a=r+("ArrowDown"===e.key?1:-1),o=a<0?t.length-1:a>=t.length?0:a;t[o]?.focus()}},[h,a]);(0,lr.useEffect)(()=>{if(a&&c.current){let e=c.current.querySelector('[role="menuitem"]:not([disabled])');e?.focus()}},[a]);let y=(0,lr.useMemo)(()=>({patientUuid:t,patient:e,closeMenu:h,...r}),[t,e,h,r]);return 0===i.length?null:(0,ca.jsx)("div",{className:"-esm-form-engine__patient-banner-actions-menu-module__overflowMenuContainer___FbFcO",children:(0,ca.jsxs)("div",{"data-overflow-menu":!0,className:ci()("cds--overflow-menu",cf),ref:l,children:[(0,ca.jsxs)("button",{className:ci()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":a},cy),"aria-controls":p,"aria-expanded":a,"aria-haspopup":"true",id:m,onClick:f,onKeyDown:g,ref:u,children:[(0,ca.jsx)("span",{className:"-esm-form-engine__patient-banner-actions-menu-module__actionsButtonText___hk4xW",children:aj("actions","Actions")})," ",(0,ca.jsx)(xW.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,ca.jsxs)("div",{className:ci()("cds--overflow-menu-options","cds--overflow-menu--flip",ch,{[cg]:a}),"aria-labelledby":m,"data-floating-menu-direction":"bottom",id:p,onKeyDown:g,ref:c,role:"menu",tabIndex:-1,children:[(0,ca.jsx)("ul",{className:ci()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":s}),children:(0,ca.jsx)(lx,{name:n,state:y},n)}),(0,ca.jsx)("span",{})]})]})})}var xz=n(5570),xK=n.n(xz);function xG(e){let{patientPhotoConceptUuid:t}=un({externalModuleName:"@openmrs/esm-styleguide"}),n=t?`${aY}/obs?patient=${e}&concept=${t}&v=full`:null,{data:r,error:a,isLoading:o}=lL()(e?n:null,aQ),i=r?.data?.results[0];return{data:i?{dateTime:i?.obsDatetime,imageSrc:i?.value?.links?.uri}:null,error:a,isLoading:o}}let xZ=({width:e=56,height:t=56,"aria-label":n})=>{let{t:r}=(0,lj.useTranslation)();return(0,ca.jsxs)("svg",{"aria-label":n??r("patientPhotoPlaceholder","Patient photo placeholder"),width:e,height:t,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ca.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,ca.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},xY="-esm-form-engine__patient-photo-module__avatar___thboZ";function xq({patientUuid:e,patientName:t,alt:n}){let{data:r,isLoading:a}=xG(e),[o,i]=(0,lr.useState)(null),[s,l]=(0,lr.useState)(!1),u=(0,lr.useMemo)(()=>xK().generate(e),[e]);(0,lr.useEffect)(()=>{if(r?.imageSrc){let e=new URL(r.imageSrc,window.location.origin).pathname;l(!0);let t=!1,n=new Image;return n.onload=()=>{t||(i(e),l(!1))},n.onerror=()=>{t||(i(null),l(!1))},n.src=e,()=>{t=!0}}i(null),l(!1)},[r?.imageSrc]);let c=(0,lr.useMemo)(()=>n||(o?aj("patientPhotoAlt","Profile photo of {{patientName}}",{patientName:t}):aj("patientAvatarAlt","Avatar for {{patientName}}",{patientName:t})),[n,o,t]);return a||s?(0,ca.jsx)(cd.SkeletonIcon,{className:"-esm-form-engine__patient-photo-module__skeleton___WWtyX","data-testid":"skeleton-icon"}):r?.imageSrc&&!o?(0,ca.jsx)(xZ,{"aria-label":aj("patientPhotoPlaceholder","Photo placeholder for {{patientName}}",{patientName:t})}):o?(0,ca.jsx)("div",{"aria-label":c,children:(0,ca.jsx)("img",{className:xY,src:o,alt:c,title:t})}):(0,ca.jsx)("div",{"aria-label":c,children:(0,ca.jsx)("div",{className:xY,title:t,style:{backgroundImage:u.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,ca.jsx)("span",{className:"-esm-form-engine__patient-photo-module__initials___xLeEF",children:function(e,t=3){return e.split(/\s+/).filter(Boolean).slice(0,t).map(e=>e[0]).join("")}(t)})})})}let xJ=["omrs-pict-appointments","omrs-pict-assessment-1","omrs-pict-assessment-2","omrs-pict-blood-bank","omrs-pict-cardiology","omrs-pict-ct-scan","omrs-pict-dentistry","omrs-pict-digital-trust","omrs-pict-emergency-department","omrs-pict-facility","omrs-pict-geriatrics","omrs-pict-gynaecology","omrs-pict-in-patient","omrs-pict-laboratory","omrs-pict-labs-2","omrs-pict-metadata-export","omrs-pict-obstetrics","omrs-pict-patient-search","omrs-pict-patients","omrs-pict-payments-desk","omrs-pict-pharmacy","omrs-pict-pharmacy-2","omrs-pict-registration","omrs-pict-service-queues","omrs-pict-stock-management","omrs-pict-transfer","omrs-pict-triage","omrs-pict-x-ray"],xX=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-appointments",pictogramProps:e})})),xQ=xX,x0=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-assessment-1",pictogramProps:e})})),x1=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-assessment-2",pictogramProps:e})})),x4=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-blood-bank",pictogramProps:e})})),x2=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-cardiology",pictogramProps:e})})),x3=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-ct-scan",pictogramProps:e})})),x6=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-dentistry",pictogramProps:e})})),x5=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-digital-trust",pictogramProps:e})})),x9=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-emergency-department",pictogramProps:e})})),x8=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-facility",pictogramProps:e})})),x7=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-geriatrics",pictogramProps:e})})),De=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-gynaecology",pictogramProps:e})})),Dt=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-in-patient",pictogramProps:e})})),Dn=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-laboratory",pictogramProps:e})})),Dr=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-labs-2",pictogramProps:e})})),Da=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-metadata-export",pictogramProps:e})})),Do=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-obstetrics",pictogramProps:e})})),Di=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-patient-search",pictogramProps:e})})),Ds=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-patients",pictogramProps:e})})),Dl=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-payments-desk",pictogramProps:e})})),Du=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-pharmacy",pictogramProps:e})})),Dc=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-pharmacy-2",pictogramProps:e})})),Dd=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-registration",pictogramProps:e})})),Dm=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-service-queues",pictogramProps:e})})),Dp=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-stock-management",pictogramProps:e})})),Df=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-transfer",pictogramProps:e})})),Dh=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-triage",pictogramProps:e})})),Dg=(0,lr.memo)((0,lr.forwardRef)(function(e,t){return(0,ca.jsx)(Dw,{ref:t,pictogram:"omrs-pict-x-ray",pictogramProps:e})})),Dy=x8,Dv=Ds,Db=(0,lr.memo)((0,lr.forwardRef)(function({pictogram:e,fallback:t,...n},r){let a=(0,lr.useRef)(document.getElementById(e));return(0,lr.useEffect)(()=>{let t=document.getElementById("omrs-svgs-container"),n=new MutationObserver(t=>{for(let n of t)"childList"===n.type&&(a.current=document.getElementById(e))});return t&&n.observe(t,{childList:!0}),()=>n.disconnect()},[e]),(0,ca.jsx)(l4,{value:a.current,fallback:t,children:(0,ca.jsx)(Dw,{ref:r,pictogram:e,pictogramProps:n})})})),Dw=(0,lr.memo)((0,lr.forwardRef)(function({pictogram:e,pictogramProps:t},n){let{className:r,size:a}=Object.assign({},{size:92},t);return(a<=26||a>144)&&(console.error(`Invalid size '${a}' specified for ${e}. Defaulting to 92.`),a=92),(0,ca.jsx)("svg",{ref:n,className:ci()("-esm-form-engine__pictograms-module__pictogram___ooPKM",r),height:a,width:a,children:(0,ca.jsx)("use",{href:`#${e}`})})})),Dx=({children:e})=>"tablet"===uT()?(0,ca.jsx)(cd.Layer,{children:e}):(0,ca.jsx)(ca.Fragment,{children:e}),DD=({snackbar:e,closeSnackbar:t})=>{let{actionButtonLabel:n="",kind:r="success",onActionButtonClick:a=()=>{},isLowContrast:o="error"!==r,progressActionLabel:i,subtitle:s="",timeoutInMs:l=5e3,autoClose:u="error"!==r,title:c,id:d,...m}=e,[p,f]=(0,lr.useState)(n),[h,g]=(0,lr.useState)(!0),[y,v]=(0,lr.useState)(!1),b=(0,lr.useCallback)(()=>{setTimeout(t,250)},[t]),w=(0,lr.useCallback)(()=>{v(!0),b()},[b]);return(0,lr.useEffect)(()=>{if(u){let e=setTimeout(w,l);return()=>clearTimeout(e)}},[l,u,w]),(0,lr.useEffect)(()=>{g(!1),window.setTimeout(()=>{g(!0)},0)},[]),(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:p,"aria-label":aj("closeSnackbar","Close snackbar"),className:ci()("-esm-form-engine__snackbar-module__slideIn___senVE",{"-esm-form-engine__snackbar-module__animated___8eltL":h,"-esm-form-engine__snackbar-module__slideOut___BIIXm":y}),kind:r,lowContrast:o,onActionButtonClick:()=>{a(),w(),i&&f(i)},onClose:b,statusIconDescription:aj("snackbarNotification","Snackbar notification"),subtitle:s,title:c,...m})},DE=({subject:e})=>{let[t,n]=(0,lr.useState)([]),r=(0,lr.useCallback)(e=>{n(t=>t.filter(t=>t!==e))},[]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(DD,{snackbar:e,closeSnackbar:()=>r(e)},e.id))})},D_=new xd,DS=0;function Dk(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(DE,{subject:D_}))}function DC(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(()=>{D_.next({...e,id:DS++})},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}let DP=({toast:e,closeToast:t})=>{let{description:n,kind:r,critical:a,title:o,actionButtonLabel:i,onActionButtonClick:s=()=>{}}=e,l=(0,lr.useCallback)(()=>{s(),t()},[t,s]);return(0,ca.jsx)("div",{children:(0,ca.jsx)(cd.ActionableNotification,{actionButtonLabel:i,kind:r||"info",lowContrast:a,subtitle:n,title:o||"",onActionButtonClick:l,onClose:t})})},DT=({subject:e})=>{let[t,n]=(0,lr.useState)([]),r=(0,lr.useCallback)(e=>{n(t=>t.filter(t=>t!==e))},[]);return(0,lr.useEffect)(()=>{let t=e.subscribe(e=>n(t=>[...t.filter(t=>t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick),e]));return()=>t.unsubscribe()},[e]),(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsx)(DP,{toast:e,closeToast:()=>r(e)},e.id))})},DR=new xd,DN=0;function DO(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(DT,{subject:DR}))}function D$(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,xi.A)(t))?setTimeout(()=>{DR.next({...e,id:DN++})},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}function DM(e,t=!1){if(t)return!0;let n=DF[e];return!n||!n()}function DA(e,t){let n=DG.getState()?.workspaceGroup,r=n?.name;r&&e===r&&DJ(()=>{let r=D4(e);r&&(r.setState({},!0),r.subscribe(()=>{})()),"function"==typeof n?.cleanup&&n.cleanup(),DG.setState(e=>({...e,workspaceGroup:void 0})),"function"==typeof t&&t()},r?e=>e.currentWorkspaceGroup===r:()=>!0)}function Dj(e,t){let{name:n,additionalProps:r}=t;sq(n);let a=()=>{DH(e.name,{ignoreChanges:!0,onWorkspaceClose:()=>DI(n,r),closeWorkspaceGroup:!1})};DM(e.name)?a():DQ("closing-workspace-launching-new-workspace",a,e.title??e.name)}function DI(e,t){let n=sq(e),r=DG.getState().workspaceGroup;if(r&&!r.members?.includes(e))return void DA(r.name,()=>{DI(e,t)});let a=DG.getState().workspaceGroup?.name,o={...n,title:D0(n,t),closeWorkspace:(t={})=>DH(e,t),closeWorkspaceWithSavedChanges:t=>DH(e,{ignoreChanges:!0,...t}),promptBeforeClosing:t=>{var n,r;return n=e,r=t,void(DF[n]=r)},setTitle:(t,n)=>{o.title=t,o.titleNode=n,DG.setState(t=>{let n=t.openWorkspaces.map(t=>t.name===e?o:t);return{...t,openWorkspaces:n}})},currentWorkspaceGroup:a,additionalProps:t??{}};function i(e,t){DG.setState(n=>{let r=[e,...t??n.openWorkspaces],a=Dq(e);return{...n,openWorkspaces:r,workspaceWindowState:a}})}a&&D4(a,t);let s=DG.getState().openWorkspaces,l=s.findIndex(t=>t.name===e),u=s.find(e=>e.type==o.type);if(0===s.length)i(o);else if(s[0].canHide||0===l)if(l>=0){let t=s[l];i({...t,additionalProps:o.additionalProps,...t.title===D0(t,t.additionalProps)&&{title:D0(o,o.additionalProps)}},s.filter(t=>t.name!=e))}else u?(i(u,DG.getState().openWorkspaces.filter(e=>e.type!=o.type)),Dj(u,{name:e,additionalProps:t})):i(o);else Dj(s[0],{name:e,additionalProps:t})}function DL({targetUrl:e,contextKey:t,workspaceName:n,additionalProps:r}){Dz(t),DI(n,r),aF({to:e})}let DF={};function DB(e,t){DF[e]=t}function DV(e){return DF[e]}function DU(){let e=DG.getState();DG.setState({...e,prompt:null})}let DW={ignoreChanges:!1,onWorkspaceClose:()=>{},closeWorkspaceGroup:!0};function DH(e,t={}){t={...DW,...t};let n=()=>{let n=DG.getState();n.openWorkspaces.find(t=>t.name===e);let r=n.openWorkspaces.filter(t=>t.name!=e),a=DG.getState().workspaceGroup?.name;a&&t.closeWorkspaceGroup&&DA(a),DF[e]=()=>!1,DG.setState(e=>({...e,prompt:null,openWorkspaces:r,workspaceWindowState:Dq(r?.[0])})),t?.onWorkspaceClose?.()};return DM(e,t?.ignoreChanges)?(n(),!0):(DQ("closing-workspace",n,sq(e).title??e),!1)}function Dz(e){DG.getState().context!=e&&DG.setState({context:e,openWorkspaces:[],prompt:null})}let DK={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},DG=F("workspace",DK);function DZ(){return DG}function DY(e){let t=DG.getState();DG.setState({...t,workspaceWindowState:e})}function Dq(e){return e?.preferredWindowSize??"normal"}function DJ(e=()=>{},t=()=>!0){let n=DG.getState().openWorkspaces.filter(t).every(({name:e})=>DM(e)),r=()=>{D1(),e?.()};n?r():DQ("closing-all-workspaces",r)}function DX(){let{workspaceWindowState:e,openWorkspaces:t,prompt:n,workspaceGroup:r}=ld(DG);return(0,lr.useMemo)(()=>({active:t.length>0,prompt:n,workspaceWindowState:e,workspaces:t,workspaceGroup:r}),[t,e,n,r])}function DQ(e,t=()=>{},n=""){let r;switch(e){case"closing-workspace":r={title:aj("unsavedChangesTitleText","Unsaved changes"),body:aj("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:()=>{t?.()},confirmText:aj("discard","Discard")};break;case"closing-all-workspaces":{let e=DG.getState().openWorkspaces.filter(({name:e})=>!DM(e)).map(({title:e},t)=>`${t+1}. ${e}`);r={title:aj("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:aj("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:e.join(",")}),onConfirm:()=>{t?.()},confirmText:aj("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:e.length})};break}case"closing-workspace-launching-new-workspace":r={title:aj("unsavedChangesTitleText","Unsaved changes"),body:aj("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:()=>{DG.setState(e=>({...e,prompt:null})),t?.()},confirmText:aj("openAnyway","Open anyway")};break;default:console.error(`Workspace system trying to open unknown prompt type "${e}" in function "showWorkspacePrompts"`),t?.();return}DG.setState(e=>({...e,prompt:r}))}function D0(e,t){return t?.workspaceTitle??e.title}function D1(){DG.setState(DK)}function D4(e,t={}){if(!e||"default"===e)return;let n=V(e,{});return t&&n.setState(e=>({...e,...t})),n}let D2="-esm-form-engine__action-menu-button-module__container___F68g0",D3="-esm-form-engine__action-menu-button-module__elementContainer___D1ACn",D6="-esm-form-engine__action-menu-button-module__active___HAE75";function D5({getIcon:e,formOpenInTheBackground:t,tagContent:n}){return(0,ca.jsxs)(ca.Fragment,{children:[e({size:16}),t?(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button-module__interruptedTag___CQ2Xs",children:"!"}):(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button-module__countTag___3mn9k",children:n})]})}let D9=({getIcon:e,label:t,iconDescription:n,handler:r,type:a,tagContent:o})=>{let i=uT(),{workspaces:s,workspaceWindowState:l}=DX(),u=s?.findIndex(({type:e})=>e===a)??-1,c="hidden"!==l&&0===u,d=u>0||0===u&&"hidden"===l;return"tablet"===i||"phone"===i?(0,ca.jsxs)(cd.Button,{className:ci()(D2,{[D6]:c}),iconDescription:n,kind:"ghost",onClick:r,role:"button",tabIndex:0,size:"md",children:[(0,ca.jsx)("span",{className:D3,children:(0,ca.jsx)(D5,{formOpenInTheBackground:d,getIcon:e,tagContent:o})}),(0,ca.jsx)("span",{children:t})]}):(0,ca.jsx)(cd.IconButton,{align:"left","aria-label":n,className:ci()(D2,{[D6]:c}),enterDelayMs:300,kind:"ghost",label:t,onClick:r,size:"md",children:(0,ca.jsx)("div",{className:D3,children:(0,ca.jsx)(D5,{formOpenInTheBackground:d,getIcon:e,tagContent:o})})})};var D8=n(8742);let D7=la().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?la().createElement(D8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},et||(et=la().createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):la().createElement(D8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},en||(en=la().createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)});var Ee=n(4240),Et=n(8622),En=/[\\^$.*+?()[\]{}|]/g,Er=RegExp(En.source);let Ea=function(e){return(e=e8(e))&&Er.test(e)?e.replace(En,"\\$&"):e};function Eo({contextKey:e}){let{prompt:t}=DX();return(0,lr.useEffect)(()=>{RegExp(`/${Ea(e)}(/|$)`).test(window.location.pathname)||console.warn(`WorkspaceContainer has provided an invalid context key: "${e}". The context key must be part of the URL path, with no initial or trailing slash.`)},[]),(0,lr.useEffect)(()=>(Dz(e),()=>{Dz(null)}),[e]),(0,lr.useEffect)(()=>{let t=t=>{let{detail:{cancelNavigation:n,newUrl:r}}=t,a=RegExp(`/${Ea(e)}(/|$)`),o=new URL(r),i=a.test(o.pathname),s=DG.getState().openWorkspaces.every(({name:e})=>DM(e));i||(s?D1():(n?.(),DJ(()=>{aF({to:r})})))};return window.addEventListener("single-spa:before-routing-event",t),()=>{window.removeEventListener("single-spa:before-routing-event",t)}},[]),null!=t?(0,ca.jsxs)(cd.ComposedModal,{open:!0,onClose:DU,children:[(0,ca.jsx)(cd.ModalHeader,{title:t.title}),(0,ca.jsx)(cd.ModalBody,{children:(0,ca.jsx)("p",{className:"-esm-form-engine__workspace-notification-module__messageBody___dkytJ",children:t.body})}),(0,ca.jsxs)(cd.ModalFooter,{children:[(0,ca.jsx)(cd.Button,{kind:"secondary",onClick:DU,children:t.cancelText??aj("cancel")}),(0,ca.jsx)(cd.Button,{kind:"danger",onClick:t.onConfirm,children:t.confirmText??aj("confirm")})]})]}):null}function Ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach(function(t){Eu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ec(e){return(Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ed(e,t){return(Ed=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Em(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ep=function(e){var t=lr.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&Ed(i,t);var n,r,a,o=(n=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ec(i);e=n?Reflect.construct(t,arguments,Ec(this).constructor):t.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return Em(this)});function i(e){var t;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),Eu(Em(t=o.call(this,e)),"handleRef",function(e){t.el=e}),Eu(Em(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),Eu(Em(t),"getParcelProps",function(){var e=Es(Es({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,Es({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return lP&&lP.Consumer?lr.createElement(lP.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=lP&&lP.Consumer?lr.createElement(lP.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return lr.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],El(i.prototype,r),a&&El(i,a),i}();Eu(Ep,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function Ef({workspace:e,additionalPropsFromPage:t}){let[n,r]=(0,lr.useState)(),a=function(e){let[t,n]=(0,lr.useState)({}),[r,a]=(0,lr.useState)(e);return(0,lr.useEffect)(()=>{r!==e&&a(e)},[e]),(0,lr.useEffect)(()=>{let e,t=D4(r);return t&&(n(t.getState()),e=t.subscribe(n)),()=>{t&&e?.()}},[r]),t}(e.currentWorkspaceGroup);(0,lr.useEffect)(()=>{let t=!0;return e.load().then(e=>{t&&r(e)}),()=>{t=!1}},[e]);let o=(0,lr.useMemo)(()=>e&&{closeWorkspace:e.closeWorkspace,closeWorkspaceWithSavedChanges:e.closeWorkspaceWithSavedChanges,promptBeforeClosing:e.promptBeforeClosing,setTitle:e.setTitle,...t,...a,...e.additionalProps},[e,t,a]);return n?(0,ca.jsx)(Ep,{config:n,mountParcel:lt,...o},e.name):(0,ca.jsx)(cd.InlineLoading,{className:"-esm-form-engine__workspace-module__loader___jEP+q",description:`${aj("loading","Loading")} ...`})}function Eh({isWithinWorkspace:e,name:t,actionMenuProps:n={}}){let[r,a]=(0,lr.useState)(!1),o=(0,lr.useRef)(window.innerHeight),{featureName:i}=(0,lr.useContext)(lo),s=uT();(0,lr.useEffect)(()=>{let e=()=>{a(!uR(s)&&o.current>window.innerHeight),o.current!=window.innerHeight&&(o.current=window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]);let l=`action-menu-${t&&"default"!=t?t:i}-items-slot`;return(0,ca.jsx)("aside",{className:ci()("-esm-form-engine__action-menu-module__sideRail___iVmKs",{"-esm-form-engine__action-menu-module__withinWorkspace___YZfet":e,"-esm-form-engine__action-menu-module__sideRailHidden___bCdyQ":r,"-esm-form-engine__action-menu-module__sideRailVisible___+oJCY":!r}),children:(0,ca.jsx)("div",{className:"-esm-form-engine__action-menu-module__container___sf6Et",children:(0,ca.jsx)(lx,{className:"-esm-form-engine__action-menu-module__chartExtensions___l+r+Y",name:l,state:n})})})}function Eg({contextKey:e,overlay:t,showSiderailAndBottomNav:n,additionalWorkspaceProps:r,actionMenuProps:a}){let o=uT(),{workspaces:i,workspaceWindowState:s,workspaceGroup:l}=DX(),u=l?.name,c=i[0],d="hidden"===s||null==c,m=c?.width??(t?"wider":"narrow"),p=(0,lr.useMemo)(()=>n||u&&!d,[u,d,n]);return l7(!d&&!uR(o)),(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)("div",{className:n?"-esm-form-engine__workspace-module__workspaceContainerWithActionMenu___kZRyN":"-esm-form-engine__workspace-module__workspaceContainerWithoutActionMenu___1OJIb",children:[(0,ca.jsx)("aside",{className:ci()(t?"-esm-form-engine__workspace-module__workspaceOverlayOuterContainer___8RiIj":"-esm-form-engine__workspace-module__workspaceWindowSpacer___F1W-O",{"-esm-form-engine__workspace-module__hiddenRelative___7oRNR":d,"-esm-form-engine__workspace-module__narrowWorkspace___R3CN9":"narrow"===m,"-esm-form-engine__workspace-module__widerWorkspace___L-pDK":"wider"===m,"-esm-form-engine__workspace-module__extraWideWorkspace___D50Zj":"extra-wide"===m}),children:(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceFixedContainer___9E2Or",{"-esm-form-engine__workspace-module__maximizedWindow___d+PZ5":"maximized"===s,"-esm-form-engine__workspace-module__hiddenFixed___kBFgl":d}),children:i.map((e,t)=>(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceInnerContainer___VEPNB",{"-esm-form-engine__workspace-module__hiddenExtraWorkspace___E7d4h":0!==t}),children:(0,ca.jsx)(lr.Suspense,{fallback:null,children:(0,ca.jsx)(lj.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,ca.jsx)(Ey,{workspaceInstance:e,additionalWorkspaceProps:r})})})},`workspace-container-${e?e.name:`empty-${t}`}`))})}),(0,ca.jsx)(Eo,{contextKey:e})]}),p&&(0,ca.jsx)(Eh,{name:u,isWithinWorkspace:!n,actionMenuProps:a})]})}function Ey({workspaceInstance:e,additionalWorkspaceProps:t}){let{t:n}=(0,lj.useTranslation)(),r=uT(),{workspaceWindowState:a,workspaceGroup:o}=DX(),i=o?.name,s="maximized"===a;(0,lr.useEffect)(()=>{let t=n(e.title);t!==e.title&&e.setTitle(t)},[e.title,n,e.setTitle]);let{featureName:l}=(0,lr.useContext)(lo),u=(0,lr.useCallback)(()=>{DY(s?"normal":"maximized")},[s]),{canHide:c=!1,canMaximize:d=!1,currentWorkspaceGroup:m="",closeWorkspace:p}=(0,lr.useMemo)(()=>e??{},[e]),f=(0,lr.useMemo)(()=>({...t,...e?.additionalProps}),[t,e]);return e&&(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)(cd.Header,{"aria-label":aj("workspaceHeader","Workspace Header"),className:"-esm-form-engine__workspace-module__header___nMH1R",children:[!uR(r)&&!c&&(0,ca.jsx)(cd.HeaderMenuButton,{"aria-label":aj("close","Close"),renderMenuIcon:(0,ca.jsx)(cC,{}),onClick:()=>p()}),(0,ca.jsx)(cd.HeaderName,{prefix:"",children:e.titleNode??n(e.title)}),(0,ca.jsx)("div",{className:"-esm-form-engine__workspace-module__overlayHeaderSpacer___vxoMd"}),(0,ca.jsxs)(cd.HeaderGlobalBar,{className:"-esm-form-engine__workspace-module__headerButtons___lek95",children:[(0,ca.jsx)(lx,{name:`workspace-header-group-${e.currentWorkspaceGroup}-slot`,state:f}),(0,ca.jsx)(lx,{name:`workspace-header-type-${e.type}-slot`,state:f}),(0,ca.jsx)(lx,{name:`workspace-header-${l}-slot`,state:f}),uR(r)&&(0,ca.jsxs)(ca.Fragment,{children:[(d||s)&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":s?aj("minimize","Minimize"):aj("maximize","Maximize"),onClick:u,children:s?(0,ca.jsx)(D7,{}):(0,ca.jsx)(Ee.hz,{})}),c&&!i?(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide","Hide"),onClick:()=>DY("hidden"),children:(0,ca.jsx)(cP,{})}):(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close","Close"),onClick:()=>p?.(),children:(0,ca.jsx)(cK,{})})]}),"tablet"===r&&c&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close","Close"),onClick:()=>p?.(),children:(0,ca.jsx)(Et.d3,{})})]})]}),(0,ca.jsx)("div",{className:ci()("-esm-form-engine__workspace-module__workspaceContent___FFe+u",{"-esm-form-engine__workspace-module__marginWorkspaceContent___SEV31":!!m}),children:(0,ca.jsx)(Ef,{workspace:e,additionalPropsFromPage:t},e.name)})]})}var Ev=new Uint8Array(16);let Eb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Ew=[],Ex=0;Ex<256;++Ex)Ew.push((Ex+256).toString(16).substr(1));let ED=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ew[e[t+0]]+Ew[e[t+1]]+Ew[e[t+2]]+Ew[e[t+3]]+"-"+Ew[e[t+4]]+Ew[e[t+5]]+"-"+Ew[e[t+6]]+Ew[e[t+7]]+"-"+Ew[e[t+8]]+Ew[e[t+9]]+"-"+Ew[e[t+10]]+Ew[e[t+11]]+Ew[e[t+12]]+Ew[e[t+13]]+Ew[e[t+14]]+Ew[e[t+15]]).toLowerCase();if(!("string"==typeof n&&Eb.test(n)))throw TypeError("Stringified UUID is invalid");return n},EE=function(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!er&&!(er="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return er(Ev)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return ED(r)};async function E_(e,t){let{openedGroup:n}=sX.getState();if(n){if(n.groupName===e&&EC(n.props,t))return!0;else if(!await EP({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1}))return!1}return sX.setState(n=>({...n,openedGroup:{groupName:e,props:t},openedWindows:[]})),!0}async function ES(e){let{openedGroup:t,openedWindows:n}=sX.getState();if(t){if(n.length>0&&!(e||await EP({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})))return!1;sX.setState(e=>({...e,openedGroup:null,openedWindows:[]}))}return!0}async function Ek(e,t=null,n=null,r=null){let a=sX.getState();if(!a.registeredWorkspacesByName[e])throw Error(`Unable to launch workspace ${e}. Workspace is not registered`);let o=sQ(e);if(!o)throw Error(`Unable to launch workspace ${e}. Workspace is not registered to a workspace window`);let{openedGroup:i}=a,{name:s}=o,l=s0(s);if(!l)throw Error(`Unable to launch workspace ${e}. Workspace window ${o.name} is not registered to a workspace group`);let u=s1(e);if(i&&(i.groupName!==l.name||!EC(i.props,r)))return!!await EP({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:r},openedWindows:[{windowName:s,openedWorkspaces:[E$(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0);if(u>=0){let r=a.openedWindows[u],o=a.openedGroup?.props??{},i=a.isMostRecentlyOpenedWindowHidden,{openedWorkspaces:c}=r;if(EC(r.props,n)){let d=c.find(t=>t.workspaceName===e);return d&&EC(d.props,t)?((i||u!==a.openedWindows.length-1)&&sX.setState(ET.restoreWindow(a,s)),!0):!!await EP({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:a?.openedGroup?.props??o},openedWindows:[...a.openedWindows.filter((e,t)=>t!==u),{windowName:s,openedWorkspaces:[E$(e,t)],props:r?.props??n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}return!!await EP({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:o??a?.openedGroup?.props},openedWindows:[...a.openedWindows.filter((e,t)=>t!==u),{windowName:s,openedWorkspaces:[E$(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}return"closable"!=l.persistence?(sX.setState({...a,openedGroup:{groupName:l.name,props:r??a?.openedGroup?.props??null},openedWindows:[...a.openedWindows,{windowName:s,openedWorkspaces:[E$(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0):!!await EP({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:o.name})&&(sX.setState({...a,openedGroup:{groupName:l.name,props:r??a?.openedGroup?.props??null},openedWindows:[{windowName:s,openedWorkspaces:[E$(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1}),!0)}function EC(e,t){return null==e||null==t||T(e,t)}function EP(e){function t(e,t){let n=[];for(let r=e.openedWorkspaces.length-1;r>=0;r--){let a=e.openedWorkspaces[r];if(a.hasUnsavedChanges&&n.push(a),t&&a.workspaceName===t)break}return n}let{openedWindows:n,workspaceTitleByWorkspaceName:r}=sX.getState(),a=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":a=n.flatMap(e=>t(e));break;case"CLOSE_WINDOW":{let r=n.find(t=>t.windowName===e.windowName);if(!r)throw Error(`Window ${e.windowName} not found in opened windows.`);a=t(r);break}case"CLOSE_WORKSPACE":{let r=n.find(t=>t.windowName===e.windowName);if(!r)throw Error(`Window ${e.windowName} not found in opened windows.`);a=t(r,e.workspaceName);break}case"CLOSE_OTHER_WINDOWS":a=n.filter(t=>t.windowName!==e.windowNameToSpare).flatMap(e=>t(e))}return 0===a.length?Promise.resolve(!0):new Promise(e=>{let t=xo("workspace2-close-prompt",{size:"sm",onConfirm:()=>{t(),e(!0)},onCancel:()=>{t(),e(!1)},affectedWorkspaceTitles:a.map(e=>r[e.workspaceName])})})}let ET={setWindowMaximized(e,t,n){let r=e.openedWindows.findIndex(e=>e.windowName===t),a=[...e.openedWindows],o={...a[r],maximized:n};return a[r]=o,{...e,openedWindows:a}},hideWindow:e=>({...e,isMostRecentlyOpenedWindowHidden:!0}),restoreWindow(e,t){let n=e.openedWindows.findIndex(e=>e.windowName===t),r=e.openedWindows[n],a=[...e.openedWindows.filter((e,t)=>t!==n),r];return{...e,openedWindows:a,isMostRecentlyOpenedWindowHidden:!1}},closeWorkspace(e,t){let n=s1(t);if(n<0)return e;let r={...e.openedWindows[n]},a=r.openedWorkspaces.findIndex(e=>e.workspaceName===t),o=[...e.openedWindows];r.openedWorkspaces=r.openedWorkspaces.slice(0,a);let i=e.isMostRecentlyOpenedWindowHidden;if(0===r.openedWorkspaces.length){let t=n===e.openedWindows.length-1;o.splice(n,1),t&&o.length>0&&(i=!1)}else o[n]=r;return{...e,openedWindows:o,isMostRecentlyOpenedWindowHidden:i}},openChildWorkspace(e,t,n,r){let a=e.registeredWorkspacesByName[n];if(!a)throw Error(`No workspace named "${n}" registered`);let o=e.registeredWorkspacesByName[t];if(!o)throw Error(`No workspace named "${t}" registered`);if(o.window!==a.window)throw Error(`Child workspace ${n} does not belong to the same workspace window as parent workspace ${t}`);let i=e.openedWindows.findIndex(e=>e.windowName===a.window);if(-1==i)throw Error(`Cannot open child workspace ${n} as window ${a.window} is not opened`);let{openedWorkspaces:s}=e.openedWindows[i],l=s.findIndex(e=>e.workspaceName===t);if(-1===l)throw Error(`Cannot open child workspace ${n} from parent workspace ${t} as the parent is not opened within the workspace window`);let u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map((e,t)=>t==i?{...e,openedWorkspaces:[...u,E$(n,r)]}:e)}},setHasUnsavedChanges(e,t,n){let r=s1(t);if(r<0)return e;let a={...e.openedWindows[r]},o=a.openedWorkspaces.findIndex(e=>e.workspaceName===t);if(o<0)return e;a.openedWorkspaces[o]={...a.openedWorkspaces[o],hasUnsavedChanges:n};let i=[...e.openedWindows];return i[r]=a,{...e,openedWindows:i}},setWorkspaceTitle(e,t,n){let r={...e.workspaceTitleByWorkspaceName};return null===n?delete r[t]:r[t]=n,{...e,workspaceTitleByWorkspaceName:r}}};function ER(){return lm(sX,ET)}let EN=()=>(0,lr.useContext)(lP),EO=()=>Object.keys(sX.getState().registeredWorkspacesByName);function E$(e,t){return{workspaceName:e,props:t??{},hasUnsavedChanges:!1,uuid:EE()}}let EM={workspaceOuterContainer:"-esm-form-engine__workspace2-module__workspaceOuterContainer___jaqGm",narrowWorkspace:"-esm-form-engine__workspace2-module__narrowWorkspace___o1wsL",widerWorkspace:"-esm-form-engine__workspace2-module__widerWorkspace___gdEOi",extraWideWorkspace:"-esm-form-engine__workspace2-module__extraWideWorkspace___U9xlJ",workspaceMiddleContainer:"-esm-form-engine__workspace2-module__workspaceMiddleContainer___0AdtX",maximized:"-esm-form-engine__workspace2-module__maximized___aKCbE",hidden:"-esm-form-engine__workspace2-module__hidden___n1US5",workspaceInnerContainer:"-esm-form-engine__workspace2-module__workspaceInnerContainer___1g+qk",workspaceSpacer:"-esm-form-engine__workspace2-module__workspaceSpacer___P2T9y",loader:"-esm-form-engine__workspace2-module__loader___fCfzZ",hiddenExtraWorkspace:"-esm-form-engine__workspace2-module__hiddenExtraWorkspace___hvPSi",header:"-esm-form-engine__workspace2-module__header___MXXx9",headerButtons:"-esm-form-engine__workspace2-module__headerButtons___sJdnC",workspaceContent:"-esm-form-engine__workspace2-module__workspaceContent___6NuXT",overlayHeaderSpacer:"-esm-form-engine__workspace2-module__overlayHeaderSpacer___PLO6T",isActionMenuOpened:"-esm-form-engine__workspace2-module__isActionMenuOpened___X3Vj6",showActionMenu:"-esm-form-engine__workspace2-module__showActionMenu___HSun1",marginWorkspaceContent:"-esm-form-engine__workspace2-module__marginWorkspaceContent___DCfWz",workspaceContainerWithActionMenu:"-esm-form-engine__workspace2-module__workspaceContainerWithActionMenu___G9MdI",workspaceFixedContainer:"-esm-form-engine__workspace2-module__workspaceFixedContainer___uIldI",workspaceContainerWithoutActionMenu:"-esm-form-engine__workspace2-module__workspaceContainerWithoutActionMenu___lBudZ"},EA=({title:e,children:t,hasUnsavedChanges:n=!1})=>{let r=uT(),{setWindowMaximized:a,hideWindow:o,setHasUnsavedChanges:i,openedWindows:s,openedGroup:l,registeredGroupsByName:u,registeredWindowsByName:c,registeredWorkspacesByName:d,workspaceTitleByWorkspaceName:m,setWorkspaceTitle:p,isMostRecentlyOpenedWindowHidden:f}=ER(),{workspaceName:h,isRootWorkspace:g,closeWorkspace:y,showActionMenu:v}=EN(),b=s1(h),w=s[b],x=w?.openedWorkspaces.find(e=>e.workspaceName===h);if((0,lr.useEffect)(()=>{x?.hasUnsavedChanges!=n&&i(h,n??!1)},[x?.hasUnsavedChanges,n,h,i]),(0,lr.useEffect)(()=>{m[h]!==e&&p(h,e)},[m,h,e,p]),b<0||null==l||null==x)return null;let D=u[l.groupName];if(!D)throw Error(`Cannot find registered workspace group ${l.groupName}`);let E=d[h].window,_=c[E];if(!_)throw Error(`Cannot find registered workspace window ${E}`);let{icon:S,canMaximize:k}=_,C="closable"===D.persistence,P=!!S&&!C,{maximized:T}=w,R=_?.width??"narrow",N=Object.values(c).some(e=>e.group===l.groupName&&void 0!==e.icon),O=b<s.length-1||f;return(0,ca.jsxs)("div",{className:ci()(EM.workspaceOuterContainer,{[EM.narrowWorkspace]:"narrow"===R,[EM.widerWorkspace]:"wider"===R,[EM.extraWideWorkspace]:"extra-wide"===R,[EM.isActionMenuOpened]:N}),children:[(0,ca.jsx)("div",{className:ci()(EM.workspaceSpacer,{[EM.hidden]:O})}),(0,ca.jsx)("div",{className:ci()(EM.workspaceMiddleContainer,{[EM.maximized]:T,[EM.hidden]:O,[EM.isRootWorkspace]:g,[EM.showActionMenu]:v}),children:(0,ca.jsxs)("div",{className:ci()(EM.workspaceInnerContainer,{[EM.maximized]:T,[EM.hidden]:O,[EM.isRootWorkspace]:g}),children:[(0,ca.jsxs)(cd.Header,{"aria-label":aj("workspaceHeader"),className:EM.header,children:[(0,ca.jsx)(cd.HeaderName,{prefix:"",children:e}),(0,ca.jsx)("div",{className:EM.overlayHeaderSpacer}),(0,ca.jsx)(cd.HeaderGlobalBar,{className:EM.headerButtons,children:uR(r)?(0,ca.jsxs)(ca.Fragment,{children:[(k||T)&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":T?aj("minimize"):aj("maximize"),onClick:()=>a(E,!T),children:T?(0,ca.jsx)(D7,{}):(0,ca.jsx)(Ee.hz,{})}),P&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide"),onClick:()=>o(),children:(0,ca.jsx)(cP,{})}),!C&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close"),onClick:()=>y({closeWindow:!0}),children:(0,ca.jsx)(cK,{})})]}):(0,ca.jsxs)(ca.Fragment,{children:[P&&(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("hide"),onClick:()=>o(),children:(0,ca.jsx)(Et.d3,{})}),(0,ca.jsx)(cd.HeaderGlobalAction,{"aria-label":aj("close"),onClick:()=>{C?ES():y({closeWindow:!0})},children:(0,ca.jsx)(cK,{})})]})})]}),(0,ca.jsx)("div",{className:ci()(EM.workspaceContent),children:t})]})})]})},Ej="-esm-form-engine__action-menu-button2-module__container___pahg-",EI="-esm-form-engine__action-menu-button2-module__elementContainer___PzOdc",EL="-esm-form-engine__action-menu-button2-module__active___4O4Bs",EF="-esm-form-engine__action-menu-button2-module__focused___+k5kD";function EB({getIcon:e,hasUnsavedChanges:t,tagContent:n}){return(0,ca.jsxs)(ca.Fragment,{children:[e({size:16}),t?(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button2-module__interruptedTag___mS2yr",children:"!"}):(0,ca.jsx)("span",{className:"-esm-form-engine__action-menu-button2-module__countTag___rb5CW",children:n})]})}let EV=({icon:e,label:t,tagContent:n,workspaceToLaunch:r,onBeforeWorkspaceLaunch:a})=>{let o=uT(),{openedWindows:i,restoreWindow:s,hideWindow:l,isMostRecentlyOpenedWindowHidden:u}=ER(),{extension:c}=(0,lr.useContext)(lo),d=i.findIndex(e=>e.windowName===c?.extensionId),m=i[d],p=null!=m,f=p&&(d<i.length-1||u),h=p&&!f,g=m?.openedWorkspaces.some(e=>e.hasUnsavedChanges)??!1,y=async()=>{if(p)f?s(m.windowName):l();else if(await (a?.()??!0)){let{workspaceName:e,workspaceProps:t,windowProps:n}=r;Ek(e,t,n)}};return"tablet"===o||"phone"===o?(0,ca.jsxs)(cd.Button,{className:ci()(Ej,{[EL]:p&&!h,[EF]:h}),iconDescription:t,kind:"ghost",onClick:y,role:"button",tabIndex:0,size:"md",children:[(0,ca.jsx)("span",{className:EI,children:(0,ca.jsx)(EB,{hasUnsavedChanges:g,getIcon:e,tagContent:n})}),(0,ca.jsx)("span",{children:t})]}):(0,ca.jsx)(cd.IconButton,{align:"left","aria-label":t,className:ci()(Ej,{[EL]:p&&!h,[EF]:h}),enterDelayMs:300,kind:"ghost",label:t,onClick:y,size:"md",children:(0,ca.jsx)("div",{className:EI,children:(0,ca.jsx)(EB,{hasUnsavedChanges:g,getIcon:e,tagContent:n})})})};function EU({showContactDetails:e,toggleContactDetails:t,className:n}){return(0,ca.jsx)(cd.Button,{className:n,iconDescription:"Toggle contact details",kind:"ghost",onClick:t,renderIcon:e?cz:cU,children:e?aj("showLess","Show less"):aj("showMore","Show more")})}let EW={contactDetails:"-esm-form-engine__patient-banner-contact-details-module__contactDetails___rhdjA",deceased:"-esm-form-engine__patient-banner-contact-details-module__deceased___K4NPg",heading:"-esm-form-engine__patient-banner-contact-details-module__heading___zj6Zt",row:"-esm-form-engine__patient-banner-contact-details-module__row___+Bx+P",col:"-esm-form-engine__patient-banner-contact-details-module__col___0H31P",relationship:"-esm-form-engine__patient-banner-contact-details-module__relationship___CZmay"},EH=({patientUuid:e})=>{let{cohorts:t=[],isLoading:n}=function(e){let t=e?`${aY}/cohortm/cohortmember?patient=${e}&v=custom:(uuid,patient:ref,cohort:(uuid,name,startDate,endDate))`:null,{data:n,isLoading:r}=lL()(t,aQ),a=n?.data?.results.map(e=>({uuid:e.cohort.uuid,name:e.cohort.name,startDate:e.cohort.startDate,endDate:e.cohort.endDate}));return(0,lr.useMemo)(()=>({cohorts:a,isLoading:r}),[r,a])}(e);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsxs)("p",{className:EW.heading,children:[aj("patientLists","Patient Lists")," (",t?.length??0,")"]}),n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsxs)("ul",{children:[(()=>{if(t?.length>0){let e=t.sort((e,t)=>b3(e?.startDate).getTime()-b3(t?.startDate).getTime()).slice(0,3);return e?.map(e=>(0,ca.jsx)("li",{children:(0,ca.jsx)(li,{to:`${window.spaBase}/home/patient-lists/${e.uuid}`,children:e.name},e.uuid)},e.uuid))}return(0,ca.jsx)("li",{children:"--"})})(),t.length>3&&(0,ca.jsx)("li",{className:EW.link,children:(0,ca.jsx)(li,{to:`${window.spaBase}/home/patient-lists`,children:aj("seeMoreLists","See {{count}} more lists",{count:t?.length-3})})})]})]})},Ez=({patientId:e})=>{let{patient:t,isLoading:n}=uV(e),r=t?.address?.find(e=>"home"===e.use),a=e=>e.split("#")[1];return n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EW.heading,children:aj("address","Address")}),(0,ca.jsx)("ul",{children:r?Object.entries(r).filter(([e])=>"id"!==e&&"use"!==e).map(([e,t])=>"extension"===e?r.extension?.[0]?.extension?.map((t,n)=>(0,ca.jsxs)("li",{children:[aj(a(t.url),a(t.url)),": ",t.valueString]},`address-${e}-${n}`)):(0,ca.jsxs)("li",{children:[aj(e,e),": ",t]},`address-${e}`)):(0,ca.jsx)("li",{children:"--"})})]})},EK=({patientUuid:e})=>{let{isLoading:t,contactAttributes:n}=(e=>{let{contactAttributeTypes:t=[]}=un({externalModuleName:"@openmrs/esm-patient-banner-app"}),{attributes:n,error:r,isLoading:a}=(e=>{let{data:t,error:n,isLoading:r}=ui()(`${aY}/patient/${e}?v=custom:(uuid,display,identifiers:(identifier,uuid,preferred,location:(uuid,name),identifierType:(uuid,name,format,formatDescription,validator)),person:(uuid,display,gender,birthdate,dead,age,deathDate,birthdateEstimated,causeOfDeath,preferredName:(uuid,preferred,givenName,middleName,familyName),attributes,preferredAddress:(uuid,preferred,address1,address2,cityVillage,longitude,stateProvince,latitude,country,postalCode,countyDistrict,address3,address4,address5,address6,address7)))`,aQ);return{isLoading:r,attributes:t?.data.person.attributes??[],error:n}})(e);return{contactAttributes:(0,lr.useMemo)(()=>n.filter(({attributeType:e})=>t?.some(t=>e.uuid===t)),[n,t]),isLoading:a,error:r}})(e),r=(0,lr.useMemo)(()=>n?[...n?.map(e=>[e.attributeType.display?aj(e.attributeType.display,e.attributeType.display):"",e.value])]:[],[n]);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EW.heading,children:aj("contactDetails","Contact Details")}),t?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsx)("ul",{children:r.length?r.map(([e,t],n)=>(0,ca.jsxs)("li",{children:[e,": ",t]},`${e}-${t}-${n}`)):(0,ca.jsx)("li",{children:"--"})})]})},EG=({patientId:e})=>{let{data:t,isLoading:n}=function(e){let t=`${aY}/relationship?v=custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))&person=${e}`,{data:n,error:r,isLoading:a,isValidating:o}=lL()(e?t:null,aQ),i=n?.data?.results?.length?function(e,t){let n=[];for(let r of t)e===r.personA.uuid?n.push({uuid:`${r.uuid}`,display:r.personB.display,relativeAge:r.personB.age,relativeUuid:r.personB.uuid,relationshipType:r.relationshipType.bIsToA}):n.push({uuid:`${r.uuid}`,display:r.personA.display,relativeAge:r.personA.age,relativeUuid:r.personA.uuid,relationshipType:r.relationshipType.aIsToB});return n}(e,n.data.results):null;return{data:n?i:null,error:r,isLoading:a,isValidating:o}}(e);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)("p",{className:EW.heading,children:aj("relationships","Relationships")}),n?(0,ca.jsx)(cd.InlineLoading,{description:`${aj("loading","Loading")} ...`,role:"progressbar"}):(0,ca.jsx)("ul",{children:t&&t.length>0?(0,ca.jsx)(ca.Fragment,{children:t.map(e=>(0,ca.jsxs)("li",{className:EW.relationship,children:[(0,ca.jsx)("div",{children:(0,ca.jsx)(li,{to:`${window.spaBase}/patient/${e.relativeUuid}/chart`,children:e.display})}),(0,ca.jsx)("div",{children:e.relationshipType}),(0,ca.jsx)("div",{children:`${e.relativeAge?e.relativeAge:"--"} ${e.relativeAge?1===e.relativeAge?aj("yearAbbreviation","yr"):aj("yearsAbbreviation","yrs"):""}`})]},e.uuid))}):(0,ca.jsx)("li",{children:"--"})})]})};function EZ({patientId:e,deceased:t}){return(0,ca.jsxs)("div",{className:ci()(EW.contactDetails,{[EW.deceased]:t}),children:[(0,ca.jsxs)("div",{className:EW.row,children:[(0,ca.jsx)("div",{className:EW.col,children:(0,ca.jsx)(Ez,{patientId:e})}),(0,ca.jsx)("div",{className:EW.col,children:(0,ca.jsx)(EK,{patientUuid:e})})]}),(0,ca.jsxs)("div",{className:EW.row,children:[(0,ca.jsx)("div",{className:EW.col,children:(0,ca.jsx)(EG,{patientId:e})}),(0,ca.jsx)("div",{className:EW.col,children:(0,ca.jsx)(EH,{patientUuid:e})})]})]})}function EY(e){let t=document.querySelector("template#loading-spinner");if(t){let n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,e=>e);return e.appendChild(n),()=>r.forEach(e=>e.remove())}return()=>{}}let Eq="-esm-form-engine__action-menu2-module__container___5s3CM";function EJ({workspaceGroup:e,groupProps:t}){let n=uT(),{persistence:r}=e;return(0,ca.jsx)("aside",{className:"-esm-form-engine__action-menu2-module__sideRail___qwAz4",children:(0,ca.jsxs)("div",{className:Eq,children:["closable"==r&&uR(n)&&(0,ca.jsx)(cd.IconButton,{align:"left",onClick:()=>ES(),label:aj("close"),kind:"ghost",children:(0,ca.jsx)(cK,{})}),(0,ca.jsx)(lo.Provider,{value:{moduleName:e.moduleName,featureName:e.name},children:(0,ca.jsx)(lx,{className:Eq,name:e.name,state:{groupProps:t}})})]})})}function EX(e){let t=new URL(e,window.location.origin).pathname,n=new URL(window.getOpenmrsSpaBase?.()??"/",window.location.origin).pathname,r=n.endsWith("/")?n.slice(0,-1):n,a=null;return r?r===t?a="/":t.startsWith(`${r}/`)&&(a=t.slice(r.length)):a=t,{full:t,spaRelative:a}}let EQ=({lifeCycle:e,openedWorkspace:t,openedWindow:n,isRootWorkspace:r,isLeafWorkspace:a,showActionMenu:o})=>{let{openedGroup:i,closeWorkspace:s,openChildWorkspace:l}=ER(),u=(0,lr.useMemo)(()=>t&&{closeWorkspace:async(e={})=>{let{closeWindow:r=!1,discardUnsavedChanges:a=!1}=e;return r?!!(a||await EP({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName}))&&(s(n.openedWorkspaces[0].workspaceName),!0):!!(a||await EP({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:t.workspaceName}))&&(s(t.workspaceName),!0)},launchChildWorkspace:async(e,r)=>{let a=t.workspaceName,{openedWorkspaces:o}=n,i=o.findIndex(e=>e.workspaceName===a);-1===i||i!==o.length-1&&o.slice(i+1).some(e=>e.hasUnsavedChanges)&&!await EP({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:o[i+1].workspaceName})||l(a,e,r||{})},workspaceName:t.workspaceName,workspaceProps:t.props,windowProps:n.props,groupProps:i&&i.props?i.props:null,workspaceMeta:sX.getState().registeredWorkspacesByName[t.workspaceName]?.meta??{},isRootWorkspace:r,isLeafWorkspace:a,windowName:n.windowName,showActionMenu:o},[t,s,i,n]);if(!e){let{registeredWorkspacesByName:e}=sX.getState(),n=e[t.workspaceName],a=n&&n.window?n.window:void 0,{registeredWindowsByName:s}=sX.getState(),l=a?s[a]:void 0,u=l&&l.width?l.width:"narrow",c=Object.values(s).some(e=>e.group===i?.groupName&&void 0!==e.icon);return(0,ca.jsxs)("div",{className:ci()(EM.workspaceOuterContainer,{[EM.narrowWorkspace]:"narrow"===u,[EM.widerWorkspace]:"wider"===u,[EM.extraWideWorkspace]:"extra-wide"===u,[EM.isActionMenuOpened]:c}),children:[(0,ca.jsx)("div",{className:EM.workspaceSpacer}),(0,ca.jsx)("div",{className:ci()(EM.workspaceMiddleContainer,{[EM.isRootWorkspace]:r,[EM.showActionMenu]:o}),children:(0,ca.jsx)("div",{className:ci()(EM.workspaceInnerContainer,{[EM.isRootWorkspace]:r}),children:(0,ca.jsx)(cd.InlineLoading,{className:EM.loader,description:`${aj("loading")} ...`})})})]})}return(0,ca.jsx)(Ep,{config:e,mountParcel:lt,...u},t.workspaceName)},E0=({openedWindow:e,showActionMenu:t})=>{let{openedWorkspaces:n}=e,[r,a]=(0,lr.useState)({}),{registeredWorkspacesByName:o}=sX.getState();return(0,lr.useEffect)(()=>{let e=!1;return Promise.all(n.map(async e=>{let{moduleName:t,component:n}=o[e.workspaceName];return[e.uuid,await u2(t,n)]})).then(t=>{e||a(Object.fromEntries(t))}),()=>{e=!0}},[n]),(0,ca.jsx)(ca.Fragment,{children:n.map((a,o)=>(0,ca.jsx)(EQ,{openedWorkspace:a,openedWindow:e,lifeCycle:r[a.uuid],isRootWorkspace:0===o,isLeafWorkspace:o===n.length-1,showActionMenu:t},a.uuid))})};function E1(e){e&&(0,lD.createRoot)(e).render((0,ca.jsx)(E4,{}))}function E4(){let{openedGroup:e,openedWindows:t,registeredGroupsByName:n,registeredWindowsByName:r}=ER();if((0,lr.useEffect)(()=>ie("before-page-changed",t=>{let{newPage:r,cancelNavigation:a,oldUrl:o,newUrl:i}=t;if(!e)return;if(r)return void a(ES().then(e=>!e));let s=n[e.groupName],l=s?.scopePattern;l&&function(e,t,n){try{let r=new RegExp(e),a=EX(t),o=EX(n);if(null===a.spaRelative||null===o.spaRelative)return!0;let i=r.exec(a.spaRelative),s=r.exec(o.spaRelative);if(i&&s||(i=r.exec(a.full),s=r.exec(o.full)),!i||!s)return!0;if(i.length>1)return!i.slice(1).every((e,t)=>e===s[t+1]);return!1}catch{return!0}}(l,o,i)&&a(ES().then(e=>!e))}),[e,n]),!e)return null;let a=n[e.groupName],o=t.some(e=>e.maximized),{name:i}=a,s=Object.values(r).filter(e=>e.group===i&&void 0!==e.icon).sort((e,t)=>(e.order??Number.MAX_VALUE)-(t.order??Number.MAX_VALUE)).length>0;return(0,ca.jsxs)("div",{className:ci()("-esm-form-engine__workspace-windows-and-menu-module__workspaceWindowsAndMenuContainer___gN2f4",{"-esm-form-engine__workspace-windows-and-menu-module__overlay___fqI+X":a.overlay,"-esm-form-engine__workspace-windows-and-menu-module__hasMaximizedWindow___J7wBw":o}),children:[(0,ca.jsx)("div",{className:"-esm-form-engine__workspace-windows-and-menu-module__workspaceWindowsContainer___zpk7G",children:t.map(e=>(0,ca.jsx)(E0,{openedWindow:e,showActionMenu:s},e.windowName))}),s&&(0,ca.jsx)(EJ,{workspaceGroup:a,groupProps:e.props})]})}function E2(e,t,n){if(null==e)return n;let r=bb(e);if(!r)return console.warn(`matchLocale: invalid requested locale tag: ${JSON.stringify(e)}`),n;let a=[];for(let e of t){let t=bb(e);if(!t){console.warn(`matchLocale: skipping invalid available locale tag: ${JSON.stringify(e)}`);continue}a.push({canonical:t,original:e})}let o=r;for(;o;){let e=a.find(e=>e.canonical===o);if(e)return e.original;let t=o+"-",n=a.find(e=>e.canonical.startsWith(t));if(n)return n.original;if("ht"===o){o="fr-HT";continue}let r=o.lastIndexOf("-");if(-1===r)break;let i=(o=o.slice(0,r)).lastIndexOf("-");-1!==i&&o.length-i==2&&(o=o.slice(0,i))}return n}function E3(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}function E6(e){return!!e&&e.constructor===Object}var E5=n(7229);function E9(e){let[t,n,r]=e.split(".");return`${t}.${n}.${r}`}function E8(e,t){return E5(function(e){let t=e.indexOf("-");if(t>=0){let n=E9(e.slice(0,t)),r=e.slice(t+1);return`${n}-${r}`}return E9(e)}(t),e,{includePrerelease:!0})}async function E7(e,t={}){let n,{shouldRetry:r,getDelay:a,onError:o}=t;r=r??(e=>e<=5),a=a??(e=>(function(e,t=!1){return 1e3*Math.pow(2,t?e+1:e)})(e));let i=0;do try{return await _e(a(i)),await e()}catch(e){o?.(e,i),n=e}while(r(i++));throw n}async function _e(e){if(!(e<=0))return new Promise(t=>setTimeout(t,e))}function _t(e,t,n,r){}function _n(e){}function _r(e){return Promise.resolve([])}function _a(e){return Promise.resolve([])}function _o(e){return Promise.resolve({success:!1,result:void 0,error:"No service worker has been registered. Offline-related features have been removed from the framework."})}function _i(e){return()=>{}}function _s(){return!0}}}]);
|