@kenyaemr/esm-version-app 5.4.2-pre.2653 → 5.4.2-pre.2659

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- Wrote version info v5.4.1-162-gdb6a6c6-dirty to release-version.js
1
+ Wrote version info v5.4.1-164-g3dd31ad-dirty to release-version.js
2
2
  WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
3
3
  │ Assets:
4
4
  │ 178.js (1.877 MiB)
5
5
  │ 167.js (659.259 KiB)
6
6
 
7
- Rspack compiled with 1 warning in 14.10 s
7
+ Rspack compiled with 1 warning in 19.45 s
package/dist/178.js CHANGED
@@ -29,7 +29,7 @@ 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.`,n):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.`,n);else console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,n)})}}function mJ(){mK.sort((e,n)=>e.appName.localeCompare(n.appName,"en"));let e=new Map;for(let n of mK){e.has(n.appName)?e.set(n.appName,e.get(n.appName)+1):e.set(n.appName,0);let t=e.get(n.appName),r=`${n.appName}-page-${t}`,o=n.containerDomId??"omrs-apps-container",i=document.getElementById(o),a=`single-spa-application:${r}`;if(i){let e=document.createElement("div");e.id=a,i?.appendChild(e)}else throw Error(`${n.appName} ${n.component} cannot be mounted to "${o}"; DOM element does not exist.`);!function(e,n){let t=void 0!==n.route?n.route:void 0!==n.routeRegex&&new RegExp(n.routeRegex);!1===t?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):n.component?rS(e,()=>mG(n.appName,n.component),function(e,{online:n,offline:t,featureFlag:r}){return window.offlineEnabled?o=>!!(navigator.onLine&&(n??!0)||!navigator.onLine&&t)&&(!r||!!uc(r))&&e(o):e}(function e(n){if(Array.isArray(n)){let t=n.map(e);return e=>t.some(n=>n(e))}return"string"==typeof n?rM(window.getOpenmrsSpaBase()+n):n instanceof RegExp?e=>n.test(e.pathname.replace(window.getOpenmrsSpaBase(),"")):()=>n}(t),n)):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,n)}}function mX(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mZ=mX();function mQ(e,n){if(mZ){if("string"==typeof n)if(n.startsWith("http"))return m2(e,n);else try{let t=JSON.parse(n);if(m3(t))return m2(e,t);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,n)}catch(n){console.error(`Could not add routes override for ${e}: `,n)}else if(n instanceof URL)return m2(e,n.toString());else if(m3(n))return m2(e,n);console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,n)}}function m0(e){mZ&&localStorage.removeItem(mV+e)}function m1(){if(!mZ)return;let e=window.localStorage;for(let n=0;n<e.length;n++){let t=e.key(n);t?.startsWith(mV)&&e.removeItem(t)}}function m2(e,n){localStorage.setItem(mV+e,JSON.stringify(n))}function m3(e){if(e&&"object"==typeof e){let n=Object.prototype.hasOwnProperty;return!(n.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||n.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||n.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||n.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function m4(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&m3(n))}var m5={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 m6(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<m5.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>m5.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>m5.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<m5.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<m5.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<m5.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>m5.SMALL_DESKTOP_MAX)}function m7(){window.addEventListener("resize",m6),m6()}var m8=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],m9={primaryColor:{_type:nb.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[tl.oneOf(m8)]},secondaryColor:{_type:nb.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[tl.oneOf(m8)]}},he={"Brand color #1":{_default:"#005d5d",_type:nb.String},"Brand color #2":{_default:"#004144",_type:nb.String},"Brand color #3":{_default:"#007d79",_type:nb.String},excludePatientIdentifierCodeTypes:{uuids:{_type:nb.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:nb.UUID}}},implementationName:{_type:nb.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:nb.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:nb.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:[tl.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:nb.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:nb.String}},diagnosisTags:m9},hn=t(7113),ht=t.n(hn),hr=t(2591),ho=t.n(hr),hi=t(1740),ha=t.n(hi),hs=t(8128),hl=t.n(hs),hc=t(855),hu=t.n(hc),hd=t(3051),hp=t.n(hd),hf=t(3656),hm=t.n(hf),hh=t(4555),h_={};h_.styleTagTransform=hm(),h_.setAttributes=hu(),h_.insert=hl().bind(null,"head"),h_.domAPI=ha(),h_.insertStyleElement=hp(),ho()(hh.A,h_);let hg=hh.A&&hh.A.locals?hh.A.locals:void 0;function hy(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function hb(e){var n,t,r,o=e.menuTitle,i=e.children,a=(n=p5().useState(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(i.push(t.value),i.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw r}}return i}}(n,2)||function(e,n){if(e){if("string"==typeof e)return hy(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hy(e,n)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1],c=mC(function(){return l(!1)},s),u="tablet"===mA(),d=(0,p4.useCallback)(function(){return l(function(e){return!e})},[]);return p5().createElement("div",{"data-overflow-menu":!0,className:ht()("cds--overflow-menu",hg.container),ref:c},p5().createElement("button",{className:ht()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},hg.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:d},o),p5().createElement("div",{className:ht()("cds--overflow-menu-options","cds--overflow-menu--flip",hg.menu,(t={},r=hg.show,r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t)),tabIndex:0,"data-floating-menu-direction":"bottom",role:"menu","aria-labelledby":"custom-actions-overflow-menu-trigger",id:"custom-actions-overflow-menu"},p5().createElement("ul",{className:ht()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":u})},i),p5().createElement("span",null)))}var hv=t(5721),hA=t(9979),h$=t(6033),hk={};hk.styleTagTransform=hm(),hk.setAttributes=hu(),hk.insert=hl().bind(null,"head"),hk.domAPI=ha(),hk.insertStyleElement=hp(),ho()(h$.A,hk);let hx=h$.A&&h$.A.locals?h$.A.locals:void 0;var hw=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,i=(0,fB.useTranslation)().t,a=(0,hv.useLocation)(),s=(0,p4.useMemo)(function(){if(!n)return!1;var e,t=n.startsWith("/")?n.slice(1):n;if(t.startsWith("http"))return t===window.location.href;var r=t.split("/").map(function(e){return decodeURIComponent(e)}),o=(null!=(e=a.pathname)?e:"").split("/").slice(-1*r.length).map(function(e){return decodeURIComponent(e)});return j(r,o)},[a.pathname,n]);return p5().createElement("div",{key:n},p5().createElement(hA.ConfigurableLink,{className:ht()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},p5().createElement("span",{className:hx.menu},p5().createElement(hA.MaybeIcon,{icon:o,className:hx.icon,size:16}),p5().createElement("span",null,i(t)))))};function hC(e,n){return e-n*Math.floor(e/n)}function hE(e,n,t,r){let o=(n=hS(e,n))-1,i=-2;return t<=2?i=0:hD(n)&&(i=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*t-362)/12+i+r)}function hD(e){return e%4==0&&(e%100!=0||e%400==0)}function hS(e,n){return"BC"===e?1-n:n}function hB(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let hT={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 hP{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=hC(n,146097),o=Math.floor(r/36524),i=hC(r,36524),a=Math.floor(i/1461),s=Math.floor(hC(i,1461)/365),[l,c]=hB(400*t+100*o+4*a+s+ +(4!==o&&4!==s)),u=e-hE(l,c,1,1),d=2;e<hE(l,c,3,1)?d=0:hD(c)&&(d=1);let p=Math.floor(((u+d)*12+373)/367),f=e-hE(l,c,p,1)+1;return new _k(l,c,p,f)}toJulianDay(e){return hE(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return hT[hD(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return hD(e.year)?366:365}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"}}let hO={"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 hz(e,n){return n=h7(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function hM(e,n){return hI(e.calendar,n.calendar)&&hz(e,n)}function hI(e,n){var t,r,o,i;return null!=(i=null!=(o=null==(t=e.isEqual)?void 0:t.call(e,n))?o:null==(r=n.isEqual)?void 0:r.call(n,e))?i:e.identifier===n.identifier}let hN={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function hF(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?hN[t]:(r=function(e){if(Intl.Locale){let n=hK.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&hK.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&hO[r]||0))%7;return o<0&&(o+=7),o}function hj(e){return h4(Date.now(),e)}function hR(e){return h5(hj(e))}function hL(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function hV(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let hH=null;function hG(){return null==hH&&(hH=new Intl.DateTimeFormat().resolvedOptions().timeZone),hH}function hU(e){return e.subtract({days:e.day-1})}function hq(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function hW(e,n,t){let r=hF(e,n,t);return e.subtract({days:r})}let hK=new Map;function hY(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function hJ(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function hX(e){return hZ(hS((e=h7(e,new hP)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hZ(e,n,t,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,n-1,t),s.getTime()}function hQ(e,n){if("UTC"===n)return 0;if(e>0&&n===hG())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:i,minute:a,second:s}=h1(e,n);return hZ(t,r,o,i,a,s,0)-1e3*Math.floor(e/1e3)}let h0=new Map;function h1(e,n){let t=h0.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),h0.set(n,t));let r=t.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}function h2(e,n,t="compatible"){var r,o,i;let a=h6(e);if("UTC"===n)return hX(a);if(n===hG()&&"compatible"===t){a=h7(a,new hP);let e=new Date,n=hS(a.era,a.year);return e.setFullYear(n,a.month-1,a.day),e.setHours(a.hour,a.minute,a.second,a.millisecond),e.getTime()}let s=hX(a),l=hQ(s-864e5,n),c=hQ(s+864e5,n),u=(r=a,((o=s-l)==(i=s-c)?[o]:[o,i]).filter(e=>{var t;let o;return t=r,o=h1(e,n),t.year===o.year&&t.month===o.month&&t.day===o.day&&t.hour===o.hour&&t.minute===o.minute&&t.second===o.second}));if(1===u.length)return u[0];if(u.length>1)switch(t){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(s-l,s-c);case"compatible":case"later":return Math.max(s-l,s-c);case"reject":throw RangeError("No such absolute time found")}}function h3(e,n,t="compatible"){return new Date(h2(e,n,t))}function h4(e,n){let t=hQ(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new _S(o<1?"BC":"AD",o<1?-o+1:o,r.getUTCMonth()+1,r.getUTCDate(),n,t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function h5(e){return new _k(e.calendar,e.era,e.year,e.month,e.day)}function h6(e,n){let t=0,r=0,o=0,i=0;if("timeZone"in e)({hour:t,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:o,millisecond:i}=n),new _E(e.calendar,e.era,e.year,e.month,e.day,t,r,o,i)}function h7(e,n){if(hI(e.calendar,n))return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,_t(r),r}function h8(e,n){let t=e.copy(),r="hour"in t?_l(t,n):0;h9(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,_e(t),_n(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,_e(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,_e(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let o=t.calendar.getYearsInEra(t);if(t.year>o){var i,a;let e=null==(i=(a=t.calendar).isInverseEra)?void 0:i.call(a,t);t.year=o,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let s=t.calendar.getMonthsInYear(t);return t.month>s&&(t.month=s,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function h9(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function _e(e){for(;e.month<1;)h9(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,h9(e,1)}function _n(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 _t(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),_n(e)}function _r(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function _o(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),_t(t),t}function _i(e,n){let t=e.copy();return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),_a(t),t}function _a(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 _s(e,n){let t=e%n;return t<0&&(t+=n),t}function _l(e,n){let t;return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=_s(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=_s(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=_s(e.minute,60),t=Math.floor(e.hour/24),e.hour=_s(e.hour,24),t}function _c(e,n){let t=e.copy();return _l(t,n),t}function _u(e,n,t,r){let o=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),i=n.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=_p(i,t,0,n.length-1,null==r?void 0:r.round),o.era=n[i],_t(o);break}case"year":var i,a;(null==(i=(a=o.calendar).isInverseEra)?void 0:i.call(a,o))&&(t=-t),o.year=_p(e.year,t,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=_p(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=_p(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),_t(o),o}function _d(e,n,t,r){let o=e.copy();switch(n){case"hour":{let n=e.hour,i=0,a=23;if((null==r?void 0:r.hourCycle)===12){let e=n>=12;i=12*!!e,a=e?23:11}o.hour=_p(n,t,i,a,null==r?void 0:r.round);break}case"minute":o.minute=_p(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=_p(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=_p(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function _p(e,n,t,r,o=!1){if(o){(e+=Math.sign(n))<t&&(e=r);let o=Math.abs(n);(e=n>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function _f(e,n){let t;return t=(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days?h2(h8(h6(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):hX(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),h7(h4(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}let _m=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,_h=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function __(e,n,t){let r=Number(e);if(r<n||r>t)throw RangeError(`Value out of range: ${n} <= ${r} <= ${t}`);return r}function _g(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 _y(e){let n,t=h7(e,new hP);return n="BC"===t.era?1===t.year?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function _b(e){return`${_y(e)}T${_g(e)}`}function _v(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function _A(e){let n,t="object"==typeof e[0]?e.shift():new hP;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var _$=new WeakMap;class _k{copy(){return this.era?new _k(this.calendar,this.era,this.year,this.month,this.day):new _k(this.calendar,this.year,this.month,this.day)}add(e){return h8(this,e)}subtract(e){return h8(this,_r(e))}set(e){return _o(this,e)}cycle(e,n,t){return _u(this,e,n,t)}toDate(e){return h3(this,e)}toString(){return _y(this)}compare(e){return hL(this,e)}constructor(...e){_v(this,_$,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,_t(this)}}var _x=new WeakMap;class _w{copy(){return new _w(this.hour,this.minute,this.second,this.millisecond)}add(e){return _c(this,e)}subtract(e){return _c(this,_r(e))}set(e){return _i(this,e)}cycle(e,n,t){return _d(this,e,n,t)}toString(){return _g(this)}compare(e){return hV(this)-hV(e)}constructor(e=0,n=0,t=0,r=0){_v(this,_x,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,_a(this)}}var _C=new WeakMap;class _E{copy(){return this.era?new _E(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new _E(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return h8(this,e)}subtract(e){return h8(this,_r(e))}set(e){return _o(_i(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return _u(this,e,n,t);default:return _d(this,e,n,t)}}toDate(e,n){return h3(this,e,n)}toString(){return _b(this)}compare(e){let n=hL(this,e);if(0===n){var t;return t=h6(e),hV(this)-hV(t)}return n}constructor(...e){_v(this,_C,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,_t(this)}}var _D=new WeakMap;class _S{copy(){return this.era?new _S(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new _S(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return _f(this,e)}subtract(e){return _f(this,_r(e))}set(e,n){let t,r;return 0===(r=_i(_o(t=h6(this),e),e)).compare(t)?this:h7(h4(h2(r,this.timeZone,n),this.timeZone),this.calendar)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,o=23;if((null==r?void 0:r.hourCycle)===12){let t=e.hour>=12;n=12*!!t,o=t?23:11}let i=h6(e),a=h7(_i(i,{hour:n}),new hP),s=[h2(a,e.timeZone,"earlier"),h2(a,e.timeZone,"later")].filter(n=>h4(n,e.timeZone).day===a.day)[0],l=h7(_i(i,{hour:o}),new hP),c=[h2(l,e.timeZone,"earlier"),h2(l,e.timeZone,"later")].filter(n=>h4(n,e.timeZone).day===l.day).pop(),u=hX(e)-e.offset,d=Math.floor(u/36e5),p=u%36e5;return h7(h4(u=36e5*_p(d,t,Math.floor(s/36e5),Math.floor(c/36e5),null==r?void 0:r.round)+p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return _d(e,n,t,r);case"era":case"year":case"month":case"day":return h7(h4(h2(_u(h6(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(hX(this)-this.offset)}toString(){var e;let n,t,r;return`${_b(this)}${n=0>Math.sign(e=this.offset)?"-":"+",t=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,n,t){if(e instanceof _S){var r,o;return e.timeZone===n?e:(r=e,o=n,h7(h4(hX(r)-r.offset,o),r.calendar))}return h4(h2(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){_v(this,_D,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e),a=e.shift(),s=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,this.timeZone=a,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,_t(this)}}class _B extends hP{fromJulianDay(e){let n=super.fromJulianDay(e);return new _k(this,hS(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(_T(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(_T(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function _T(e){let[n,t]=hB(e.year+-543);return new _k(n,t,e.month,e.day)}function _P(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function _O(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-_P(e,t,1,1))/30),o=n+1-_P(e,t,r,1);return[t,r,o]}function _z(e){return Math.floor(e%4/3)}function _M(e,n){return n%13!=0?30:_z(e)+5}class _I{fromJulianDay(e){let[n,t,r]=_O(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new _k(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),_P(1723856,n,e.month,e.day)}getDaysInMonth(e){return _M(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+_z(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _N extends _I{fromJulianDay(e){let[n,t,r]=_O(1723856,e);return new _k(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class _F extends _I{fromJulianDay(e){let[n,t,r]=_O(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new _k(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),_P(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),_M(n,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 _j=765433;function _R(e){return 7>hC(7*e+1,19)}function _L(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>hC(3*(t+1),7)&&(t+=1),t}function _V(e){let n,t;return _L(e)+(n=_L(e-1),t=_L(e),_L(e+1)-t==356?2:+(t-n==382))}function _H(e){return _V(e+1)-_V(e)}function _G(e,n){if(n>=6&&!_R(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=_H(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?30*!!_R(e):30}class _U{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/_j*19+234)/235)+1,r=_V(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=_V(--t)));let i=1,a=0;for(;a<o;)a+=_G(t,i),i++;let s=o-(a-=_G(t,--i));return new _k(this,t,i,s)}toJulianDay(e){let n=_V(e.year);for(let t=1;t<e.month;t++)n+=_G(e.year,t);return n+e.day+347997}getDaysInMonth(e){return _G(e.year,e.month)}getMonthsInYear(e){return _R(e.year)?13:12}getDaysInYear(e){return _H(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(_R(n.year)&&!_R(e.year)&&n.month>6?e.month--:!_R(n.year)&&_R(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _q extends hP{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),i=o.year-78,a=e-hE(o.era,o.year,1,1);if(a<80?(i--,a+=(n=hD(o.year-1)?31:30)+155+90+10):(n=hD(o.year)?31:30,a-=80),a<n)t=1,r=a+1;else{let e=a-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new _k(this,i,t,r)}toJulianDay(e){let n,t,[r,o]=hB(e.year+78);return(hD(o)?(n=31,t=hE(r,o,3,21)):(n=30,t=hE(r,o,3,22)),1===e.month)?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=(e.month-7)*30),t+=e.day-1)}getDaysInMonth(e){return 1===e.month&&hD(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 _W(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function _K(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+_W(n,r,1,1)))/29.5)+1),i=t-_W(n,r,o,1)+1;return new _k(e,r,o,i)}function _Y(e){return(14+11*e)%30<11}class _J{fromJulianDay(e){return _K(this,1948440,e)}toJulianDay(e){return _W(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&_Y(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return _Y(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _X extends _J{fromJulianDay(e){return _K(this,1948439,e)}toJulianDay(e){return _W(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _Z(e){return 460322+l[e-1300]}function _Q(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function _0(e,n){let t=_Z(e);for(let r=1;r<n;r++)t+=_Q(e,r);return t}function _1(e){return l[e+1-1300]-l[e-1300]}class _2 extends _J{fromJulianDay(e){let n=e-1948440,t=_Z(1300),r=_Z(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-_Z(++e)+1;let o=_1(e);if(r===o){t=12;break}if(r<o){let n=_Q(e,t);for(t=1;r>n;)r-=n,n=_Q(e,++t);break}}return new _k(this,e,t,n-_0(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_0(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_Q(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_1(e.year)}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 n=1300;n<=1600;n++){l[n-1300]=e;for(let t=1;t<=12;t++)e+=_Q(n,t)}}}}let _3=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_5=[1867,1911,1925,1988,2018],_6=["meiji","taisho","showa","heisei","reiwa"];function _7(e){let n=_3.findIndex(([n,t,r])=>!!(e.year<n)||e.year===n&&!!(e.month<t)||e.year===n&&e.month===t&&!!(e.day<r));return -1===n?_3.length-1:0===n?0:n-1}function _8(e){let n=_5[_6.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new _k(e.year+n,e.month,e.day)}class _9 extends hP{fromJulianDay(e){let n=super.fromJulianDay(e),t=_7(n);return new _k(this,_6[t],n.year-_5[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(_8(e))}balanceDate(e){let n=_8(e),t=_7(n);_6[t]!==e.era&&(e.era=_6[t],e.year=n.year-_5[t]),this.constrainDate(e)}constrainDate(e){let n=_6.indexOf(e.era),t=_4[n];if(null!=t){let[r,o,i]=t,a=r-_5[n];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(i,e.day)))}if(1===e.year&&n>=0){let[,t,r]=_3[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return _6}getYearsInEra(e){let n=_6.indexOf(e.era),t=_3[n],r=_3[n+1];if(null==r)return 9999-t[0]+1;let o=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(_8(e))}getMinimumMonthInYear(e){let n=ge(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=ge(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ge(e){if(1===e.year)return _3[_6.indexOf(e.era)]}let gn=[0,31,62,93,124,155,186,216,246,276,306,336];class gt{fromJulianDay(e){let n=e-1948320,t=1+Math.floor((33*n+3)/12053),r=n-(365*(t-1)+Math.floor((8*t+21)/33)),o=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-gn[o]+1;return new _k(this,t,o+1,i)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=gn[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>hC(25*e.year+11,33)?30:29}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 go(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class gi extends hP{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=go(hS(n.era,n.year));return new _k(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(ga(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=go(gr(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(ga(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function ga(e){let[n,t]=hB(gr(e));return new _k(n,t,e.month,e.day)}function gs(e){switch(e){case"buddhist":return new _B;case"ethiopic":return new _I;case"ethioaa":return new _N;case"coptic":return new _F;case"hebrew":return new _U;case"indian":return new _q;case"islamic-civil":return new _J;case"islamic-tbla":return new _X;case"islamic-umalqura":return new _2;case"japanese":return new _9;case"persian":return new gt;case"roc":return new gi;default:return new hP}}let gl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gc=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gu(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return gl.has(n.script)}let n=e.split("-")[0];return gc.has(n)}let gd={prefix:String(Math.round(1e10*Math.random())),current:0},gp=p4.createContext(gd),gf=p4.createContext(!1),gm=("undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap),gh="function"==typeof p4.useId?function(e){let n=p4.useId(),[t]=(0,p4.useState)(gb()),r=t?"react-aria":`react-aria${gd.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,p4.useContext)(gp),t=function(e=!1){let n=(0,p4.useContext)(gp),t=(0,p4.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=p4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=gm.get(e);null==t?gm.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,gm.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function g_(){return!1}function gg(){return!0}function gy(e){return()=>{}}function gb(){return"function"==typeof p4.useSyncExternalStore?p4.useSyncExternalStore(gy,g_,gg):(0,p4.useContext)(gf)}let gv=Symbol.for("react-aria.i18n.locale");function gA(){let e="undefined"!=typeof window&&window[gv]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gu(e)?"rtl":"ltr"}}let g$=gA(),gk=new Set;function gx(){for(let e of(g$=gA(),gk))e(g$)}function gw(){let e=gb(),[n,t]=(0,p4.useState)(g$);return((0,p4.useEffect)(()=>(0===gk.size&&window.addEventListener("languagechange",gx),gk.add(t),()=>{gk.delete(t),0===gk.size&&window.removeEventListener("languagechange",gx)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let gC=p4.createContext(null);function gE(e){let{locale:n,children:t}=e,r=p4.useMemo(()=>({locale:n,direction:gu(n)?"rtl":"ltr"}),[n]);return p4.createElement(gC.Provider,{value:r},t)}function gD(e){let{children:n}=e,t=gw();return p4.createElement(gC.Provider,{value:t},n)}function gS(e){let{locale:n,children:t}=e;return n?p4.createElement(gE,{locale:n,children:t}):p4.createElement(gD,{children:t})}function gB(){let e=gw();return(0,p4.useContext)(gC)||e}function gT(e){let n=(0,p4.useRef)(null),t=(0,p4.useRef)(void 0),r=(0,p4.useCallback)(n=>{if("function"==typeof e){let t=e(n);return()=>{"function"==typeof t?t():e(null)}}if(e)return e.current=n,()=>{e.current=null}},[e]);return(0,p4.useMemo)(()=>({get current(){return n.current},set current(value){n.current=value,t.current&&(t.current(),t.current=void 0),null!=value&&(t.current=r(value))}}),[r])}function gP(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function gO(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let gz="undefined"!=typeof document?p4.useLayoutEffect:()=>{},gM=null!=(ed=p4.useInsertionEffect)?ed:gz;function gI(e){let n=(0,p4.useRef)(null);return gM(()=>{n.current=e},[e]),(0,p4.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let gN=!!("undefined"!=typeof window&&window.document&&window.document.createElement),gF=new Map;function gj(e){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(null),o=gh(n),i=(0,p4.useRef)(null);if(c&&c.register(i,o),gN){let e=gF.get(o);e&&!e.includes(r)?e.push(r):gF.set(o,[r])}return gz(()=>()=>{c&&c.unregister(i),gF.delete(o)},[o]),(0,p4.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function gR(e=[]){let n=gj(),[t,r]=function(e){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(null),o=gI(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});gz(()=>{r.current&&o()});let i=gI(e=>{r.current=e(n),o()});return[n,i]}(n),o=(0,p4.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return gz(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{gF.delete(e)}));let gL=function(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=function e(n){var t,r,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(r=e(n[t]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=n);return r};function gV(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],o=r[e];"function"==typeof t&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?n[e]=gO(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=gL(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=gF.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=gF.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let gH=Symbol("default");function gG({values:e,children:n}){for(let[t,r]of e)n=p4.createElement(t.Provider,{value:r},n);return n}function gU(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return(0,p4.useMemo)(()=>{let e,l,c;return e="function"==typeof n?n({...s,defaultClassName:o}):n,l="function"==typeof t?t({...s,defaultStyle:a||{}}):t,c="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:null!=e?e:o,style:l||a?{...a,...l}:void 0,children:null!=c?c:i,"data-rac":""}},[n,t,r,o,i,a,s])}function gq(e,n){let t=(0,p4.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||gH;if(!t.slots[e]){let e=new Intl.ListFormat().format(Object.keys(t.slots).map(e=>`"${e}"`)),r=n?`Invalid slot "${n}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return t.slots[e]}return t}function gW(e,n,t){let{ref:r,...o}=gq(t,e.slot)||{},i=gT((0,p4.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=gP(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():gP(e[t],null)})}}})(n,r),[n,r])),a=gV(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?a.style=n=>{let t="function"==typeof o.style?o.style(n):o.style,r={...n.defaultStyle,...t},i="function"==typeof e.style?e.style({...n,defaultStyle:r}):e.style;return{...r,...i}}:a.style={...o.style,...e.style}),[a,i]}function gK(e=!0){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(!1),o=(0,p4.useCallback)(e=>{r.current=!0,t(!!e)},[]);return gz(()=>{r.current||t(!1)},[]),[o,n]}function gY(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let gJ=(0,p4.createContext)(null),gX=null;function gZ(e,n="assertive",t=7e3){gX?gX.announce(e,n,t):(gX=new gQ,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?gX.announce(e,n,t):setTimeout(()=>{(null==gX?void 0:gX.isAttached())&&(null==gX||gX.announce(e,n,t))},100))}class gQ{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=7e3){var r,o;if(!this.node)return;let i=document.createElement("div");"object"==typeof e?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,"assertive"===n?null==(r=this.assertiveLog)||r.appendChild(i):null==(o=this.politeLog)||o.appendChild(i),""!==e&&setTimeout(()=>{i.remove()},t)}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,"undefined"!=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 g0=new Set(["id"]),g1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),g2=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g3=new Set(["dir","lang","hidden","inert","translate"]),g4=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"]),g5=/^(data-.*)$/;function g6(e,n={}){let{labelable:t,isLink:r,global:o,events:i=o,propNames:a}=n,s={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(g0.has(n)||t&&g1.has(n)||r&&g2.has(n)||o&&g3.has(n)||i&&g4.has(n)||n.endsWith("Capture")&&g4.has(n.slice(0,-7))||(null==a?void 0:a.has(n))||g5.test(n))&&(s[n]=e[n]);return s}let g7=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},g8=e=>e&&"window"in e&&e.window===e?e:g7(e).defaultView||window,g9="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function ye(e,n){return g9?e.checkVisibility()&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let n=g8(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:t,visibility:r}=e.style,o="none"!==t&&"hidden"!==r&&"collapse"!==r;if(o){let{getComputedStyle:n}=e.ownerDocument.defaultView,{display:t,visibility:r}=n(e);o="none"!==t&&"hidden"!==r&&"collapse"!==r}return o}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!n||"SUMMARY"===n.nodeName||e.hasAttribute("open"))&&(!e.parentElement||ye(e.parentElement,e))}let yn=["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"],yt=yn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let yr=yn.join(':not([hidden]):not([tabindex="-1"]),');function yo(e){return e.matches(yt)&&ye(e)&&!ya(e)}function yi(e){return e.matches(yr)&&ye(e)&&!ya(e)}function ya(e){let n=e;for(;null!=n;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function ys(e){if(function(){if(null==yl){yl=!1;try{document.createElement("div").focus({get preventScroll(){return yl=!0,!0}})}catch{}}return yl}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let yl=null;function yc(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function yu(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function yd(e){let n=(0,p4.useRef)({isFocused:!1,observer:null});gz(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=gI(n=>{null==e||e(n)});return(0,p4.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{n.current.isFocused=!1,r.disabled&&t(yc(e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)},{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&r.disabled){var e;null==(e=n.current.observer)||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}}),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let yp=!1;function yf(e){var n;if("undefined"==typeof window||null==window.navigator)return!1;let t=null==(n=window.navigator.userAgentData)?void 0:n.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function ym(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(n=window.navigator.userAgentData)?void 0:n.platform)||window.navigator.platform)}function yh(e){let n=null;return()=>(null==n&&(n=e()),n)}let y_=yh(function(){return ym(/^Mac/i)}),yg=yh(function(){return ym(/^iPhone/i)}),yy=yh(function(){return ym(/^iPad/i)||y_()&&navigator.maxTouchPoints>1}),yb=yh(function(){return yg()||yy()});yh(function(){return y_()||yb()});let yv=yh(function(){return yf(/AppleWebKit/i)&&!yA()}),yA=yh(function(){return yf(/Chrome/i)}),y$=yh(function(){return yf(/Android/i)}),yk=yh(function(){return yf(/Firefox/i)}),yx=new Map,yw=new Set;function yC(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yx.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yx.delete(t.target)),0===yx.size)){for(let e of yw)e();yw.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=yx.get(t.target);r||(r=new Set,yx.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function yE(e){requestAnimationFrame(()=>{for(let[e]of yx)"isConnected"in e&&!e.isConnected&&yx.delete(e);0===yx.size?e():yw.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?yC():document.addEventListener("DOMContentLoaded",yC));let yD="default",yS="",yB=new WeakMap;function yT(e){if(yb())"disabled"===yD&&(yD="restoring",setTimeout(()=>{yE(()=>{if("restoring"===yD){let n=g7(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=yS||""),yS="",yD="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yB.has(e)){let n=yB.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),yB.delete(e)}}let yP=p4.createContext({register:()=>{}});function yO(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function yz(e,n,t){var r=yO(e,n,"set");if(r.set)r.set.call(e,t);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=t}return t}function yM(e,n){gz(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function yI(){let e=(0,p4.useRef)(new Map),n=(0,p4.useCallback)((n,t,r,o)=>{let i=(null==o?void 0:o.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:i,options:o}),n.addEventListener(t,i,o)},[]),t=(0,p4.useCallback)((n,t,r,o)=>{var i;let a=(null==(i=e.current.get(r))?void 0:i.fn)||r;n.removeEventListener(t,a,o),e.current.delete(r)},[]),r=(0,p4.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,p4.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}yP.displayName="PressResponderContext";function yN(e,n){return!!n&&!!e&&e.contains(n)}function yF(e){return e.target}function yj(e,n,t=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=n;yk()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(y_()?i=!0:a=!0);let c=yv()&&y_()&&!yy()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});yj.isOpening=t,ys(e),e.dispatchEvent(c),yj.isOpening=!1}function yR(e){return""===e.pointerType&&!!e.isTrusted||(y$()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yj.isOpening=!1;var yL=t(3144),yV=new WeakMap;class yH{continuePropagation(){yz(this,yV,!1)}get shouldStopPropagation(){var e;return e=yO(this,yV,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;_v(this,yV,{writable:!0,value:void 0}),yz(this,yV,!0);let i=null!=(o=null==r?void 0:r.target)?o:t.currentTarget;const a=null==i?void 0:i.getBoundingClientRect();let s,l=0,c,u=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,u=t.clientY),a&&(null!=c&&null!=u?(s=c-a.left,l=u-a.top):(s=a.width/2,l=a.height/2)),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.x=s,this.y=l}}let yG=Symbol("linkClicked"),yU="react-aria-pressable-style",yq="data-react-aria-pressable";function yW(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...f}=function(e){let n=(0,p4.useContext)(yP);if(n){let{register:t,...r}=n;e=gV(r,e),t()}return yM(n,e.ref),e}(e),[m,h]=(0,p4.useState)(!1),g=(0,p4.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=yI(),v=gI((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let i=!0;if(o.isTriggeringEvent=!0,r){let t=new yH("pressstart",n,e);r(t),i=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,h(!0),i}),A=gI((e,r,i=!0)=>{let a=g.current;if(!a.didFirePressStart)return!1;a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(o){let n=new yH("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),h(!1),n&&i&&!s){let t=new yH("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return a.isTriggeringEvent=!1,l}),$=gI((e,n)=>{let t=g.current;if(s)return!1;if(i){t.isTriggeringEvent=!0;let r=new yH("pressup",n,e);return i(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),k=gI(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(yJ(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),d||yT(n.target),n.disposables))t();n.disposables=[]}}),x=gI(e=>{u&&k(e)}),w=gI(e=>{null==a||a(e)}),C=gI((e,n)=>{if(a){let t=new MouseEvent("click",e);yu(t,n),a(yc(t))}}),E=(0,p4.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(yY(n.nativeEvent,n.currentTarget)&&yN(n.currentTarget,yF(n.nativeEvent))){var r;yX(yF(n.nativeEvent),n.key)&&n.preventDefault();let o=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=v(n,"keyboard");let r=n.currentTarget;y(g7(n.currentTarget),"keyup",gO(n=>{yY(n,r)&&!n.repeat&&yN(r,yF(n))&&e.target&&$(yJ(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&y_()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||yN(n.currentTarget,yF(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!yj.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||yR(n.nativeEvent))){let e=v(n,"virtual"),r=$(n,"virtual"),o=A(n,"virtual");w(n),t=e&&r&&o}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||n.nativeEvent.pointerType||"virtual",o=$(yJ(n.currentTarget,n),r),i=A(yJ(n.currentTarget,n),r,!0);t=o&&i,e.isOverTarget=!1,w(n),k(n)}e.ignoreEmulatedMouseEvents=!1,t&&n.stopPropagation()}}},t=n=>{var t,r,o;if(e.isPressed&&e.target&&yY(n,e.target)){yX(yF(n),n.key)&&n.preventDefault();let t=yF(n),o=yN(e.target,yF(n));A(yJ(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&yK(e.target)&&yN(e.target,t)&&!n[yG]&&(n[yG]=!0,yj(e.target,n,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(n.key)}else if("Meta"===n.key&&(null==(t=e.metaKeyEvents)?void 0:t.size)){let n=e.metaKeyEvents;for(let t of(e.metaKeyEvents=void 0,n.values()))null==(o=e.target)||o.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{var o;if(0!==n.button||!yN(n.currentTarget,yF(n.nativeEvent)))return;if(o=n.nativeEvent,!y$()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType){e.pointerType="virtual";return}e.pointerType=n.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,d||function(e){if(yb()){if("default"===yD){let n=g7(e);yS=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}yD="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";yB.set(e,e.style[n]),e.style[n]="none"}}(e.target),i=v(n,e.pointerType);let o=yF(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(g7(n.currentTarget),"pointerup",t,!1),y(g7(n.currentTarget),"pointercancel",r,!1)}i&&n.stopPropagation()},n.onMouseDown=n=>{if(yN(n.currentTarget,yF(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!yo(e);)e=e.parentElement;let n=g8(e),t=n.document.activeElement;if(!t||t===e)return;yp=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},i=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,ys(t),l()))},a=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,ys(t),l()))};n.addEventListener("blur",o,!0),n.addEventListener("focusout",i,!0),n.addEventListener("focusin",s,!0),n.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(c),n.removeEventListener("blur",o,!0),n.removeEventListener("focusout",i,!0),n.removeEventListener("focusin",s,!0),n.removeEventListener("focus",a,!0),yp=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{yN(n.currentTarget,yF(n.nativeEvent))&&"virtual"!==e.pointerType&&(0!==n.button||e.isPressed||$(n,e.pointerType||n.pointerType))},n.onPointerEnter=n=>{n.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,v(yJ(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(yJ(e.target,n),e.pointerType,!1),x(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(yN(e.target,yF(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?k(n):(ys(e.target),e.target.click()))},80);y(n.currentTarget,"click",()=>t=!0,!0),e.disposables.push(()=>clearTimeout(r))}else k(n);e.isOverTarget=!1}},r=e=>{k(e)};n.onDragStart=e=>{yN(e.currentTarget,yF(e.nativeEvent))&&k(e)}}return n},[y,s,c,b,d,k,x,A,v,$,w,C]);return(0,p4.useEffect)(()=>{if(!p)return;let e=g7(p.current);if(!e||!e.head||e.getElementById(yU))return;let n=e.createElement("style");n.id=yU,n.textContent=`
32
+ To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,n)}}function mX(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mZ=mX();function mQ(e,n){if(mZ){if("string"==typeof n)if(n.startsWith("http"))return m2(e,n);else try{let t=JSON.parse(n);if(m3(t))return m2(e,t);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,n)}catch(n){console.error(`Could not add routes override for ${e}: `,n)}else if(n instanceof URL)return m2(e,n.toString());else if(m3(n))return m2(e,n);console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,n)}}function m0(e){mZ&&localStorage.removeItem(mV+e)}function m1(){if(!mZ)return;let e=window.localStorage;for(let n=0;n<e.length;n++){let t=e.key(n);t?.startsWith(mV)&&e.removeItem(t)}}function m2(e,n){localStorage.setItem(mV+e,JSON.stringify(n))}function m3(e){if(e&&"object"==typeof e){let n=Object.prototype.hasOwnProperty;return!(n.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||n.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||n.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||n.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function m4(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&m3(n))}var m5={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 m6(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<m5.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>m5.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>m5.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<m5.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<m5.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<m5.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>m5.SMALL_DESKTOP_MAX)}function m7(){window.addEventListener("resize",m6),m6()}var m8=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],m9={primaryColor:{_type:nb.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[tl.oneOf(m8)]},secondaryColor:{_type:nb.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[tl.oneOf(m8)]}},he={"Brand color #1":{_default:"#005d5d",_type:nb.String},"Brand color #2":{_default:"#004144",_type:nb.String},"Brand color #3":{_default:"#007d79",_type:nb.String},excludePatientIdentifierCodeTypes:{uuids:{_type:nb.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:nb.UUID}}},implementationName:{_type:nb.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:nb.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:nb.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:[tl.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:nb.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:nb.String}},diagnosisTags:m9},hn=t(7113),ht=t.n(hn),hr=t(2591),ho=t.n(hr),hi=t(1740),ha=t.n(hi),hs=t(8128),hl=t.n(hs),hc=t(855),hu=t.n(hc),hd=t(3051),hp=t.n(hd),hf=t(3656),hm=t.n(hf),hh=t(4555),h_={};h_.styleTagTransform=hm(),h_.setAttributes=hu(),h_.insert=hl().bind(null,"head"),h_.domAPI=ha(),h_.insertStyleElement=hp(),ho()(hh.A,h_);let hg=hh.A&&hh.A.locals?hh.A.locals:void 0;function hy(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function hb(e){var n,t,r,o=e.menuTitle,i=e.children,a=(n=p5().useState(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(i.push(t.value),i.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw r}}return i}}(n,2)||function(e,n){if(e){if("string"==typeof e)return hy(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hy(e,n)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1],c=mC(function(){return l(!1)},s),u="tablet"===mA(),d=(0,p4.useCallback)(function(){return l(function(e){return!e})},[]);return p5().createElement("div",{"data-overflow-menu":!0,className:ht()("cds--overflow-menu",hg.container),ref:c},p5().createElement("button",{className:ht()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},hg.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:d},o),p5().createElement("div",{className:ht()("cds--overflow-menu-options","cds--overflow-menu--flip",hg.menu,(t={},r=hg.show,r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t)),tabIndex:0,"data-floating-menu-direction":"bottom",role:"menu","aria-labelledby":"custom-actions-overflow-menu-trigger",id:"custom-actions-overflow-menu"},p5().createElement("ul",{className:ht()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":u})},i),p5().createElement("span",null)))}var hv=t(5721),hA=t(2722),h$=t(6033),hk={};hk.styleTagTransform=hm(),hk.setAttributes=hu(),hk.insert=hl().bind(null,"head"),hk.domAPI=ha(),hk.insertStyleElement=hp(),ho()(h$.A,hk);let hx=h$.A&&h$.A.locals?h$.A.locals:void 0;var hw=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,i=(0,fB.useTranslation)().t,a=(0,hv.useLocation)(),s=(0,p4.useMemo)(function(){if(!n)return!1;var e,t=n.startsWith("/")?n.slice(1):n;if(t.startsWith("http"))return t===window.location.href;var r=t.split("/").map(function(e){return decodeURIComponent(e)}),o=(null!=(e=a.pathname)?e:"").split("/").slice(-1*r.length).map(function(e){return decodeURIComponent(e)});return j(r,o)},[a.pathname,n]);return p5().createElement("div",{key:n},p5().createElement(hA.ConfigurableLink,{className:ht()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},p5().createElement("span",{className:hx.menu},p5().createElement(hA.MaybeIcon,{icon:o,className:hx.icon,size:16}),p5().createElement("span",null,i(t)))))};function hC(e,n){return e-n*Math.floor(e/n)}function hE(e,n,t,r){let o=(n=hS(e,n))-1,i=-2;return t<=2?i=0:hD(n)&&(i=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*t-362)/12+i+r)}function hD(e){return e%4==0&&(e%100!=0||e%400==0)}function hS(e,n){return"BC"===e?1-n:n}function hB(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let hT={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 hP{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=hC(n,146097),o=Math.floor(r/36524),i=hC(r,36524),a=Math.floor(i/1461),s=Math.floor(hC(i,1461)/365),[l,c]=hB(400*t+100*o+4*a+s+ +(4!==o&&4!==s)),u=e-hE(l,c,1,1),d=2;e<hE(l,c,3,1)?d=0:hD(c)&&(d=1);let p=Math.floor(((u+d)*12+373)/367),f=e-hE(l,c,p,1)+1;return new _k(l,c,p,f)}toJulianDay(e){return hE(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return hT[hD(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return hD(e.year)?366:365}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"}}let hO={"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 hz(e,n){return n=h7(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function hM(e,n){return hI(e.calendar,n.calendar)&&hz(e,n)}function hI(e,n){var t,r,o,i;return null!=(i=null!=(o=null==(t=e.isEqual)?void 0:t.call(e,n))?o:null==(r=n.isEqual)?void 0:r.call(n,e))?i:e.identifier===n.identifier}let hN={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function hF(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?hN[t]:(r=function(e){if(Intl.Locale){let n=hK.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&hK.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&hO[r]||0))%7;return o<0&&(o+=7),o}function hj(e){return h4(Date.now(),e)}function hR(e){return h5(hj(e))}function hL(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function hV(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let hH=null;function hG(){return null==hH&&(hH=new Intl.DateTimeFormat().resolvedOptions().timeZone),hH}function hU(e){return e.subtract({days:e.day-1})}function hq(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function hW(e,n,t){let r=hF(e,n,t);return e.subtract({days:r})}let hK=new Map;function hY(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function hJ(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function hX(e){return hZ(hS((e=h7(e,new hP)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hZ(e,n,t,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,n-1,t),s.getTime()}function hQ(e,n){if("UTC"===n)return 0;if(e>0&&n===hG())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:i,minute:a,second:s}=h1(e,n);return hZ(t,r,o,i,a,s,0)-1e3*Math.floor(e/1e3)}let h0=new Map;function h1(e,n){let t=h0.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),h0.set(n,t));let r=t.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}function h2(e,n,t="compatible"){var r,o,i;let a=h6(e);if("UTC"===n)return hX(a);if(n===hG()&&"compatible"===t){a=h7(a,new hP);let e=new Date,n=hS(a.era,a.year);return e.setFullYear(n,a.month-1,a.day),e.setHours(a.hour,a.minute,a.second,a.millisecond),e.getTime()}let s=hX(a),l=hQ(s-864e5,n),c=hQ(s+864e5,n),u=(r=a,((o=s-l)==(i=s-c)?[o]:[o,i]).filter(e=>{var t;let o;return t=r,o=h1(e,n),t.year===o.year&&t.month===o.month&&t.day===o.day&&t.hour===o.hour&&t.minute===o.minute&&t.second===o.second}));if(1===u.length)return u[0];if(u.length>1)switch(t){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(s-l,s-c);case"compatible":case"later":return Math.max(s-l,s-c);case"reject":throw RangeError("No such absolute time found")}}function h3(e,n,t="compatible"){return new Date(h2(e,n,t))}function h4(e,n){let t=hQ(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new _S(o<1?"BC":"AD",o<1?-o+1:o,r.getUTCMonth()+1,r.getUTCDate(),n,t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function h5(e){return new _k(e.calendar,e.era,e.year,e.month,e.day)}function h6(e,n){let t=0,r=0,o=0,i=0;if("timeZone"in e)({hour:t,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:o,millisecond:i}=n),new _E(e.calendar,e.era,e.year,e.month,e.day,t,r,o,i)}function h7(e,n){if(hI(e.calendar,n))return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,_t(r),r}function h8(e,n){let t=e.copy(),r="hour"in t?_l(t,n):0;h9(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,_e(t),_n(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,_e(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,_e(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let o=t.calendar.getYearsInEra(t);if(t.year>o){var i,a;let e=null==(i=(a=t.calendar).isInverseEra)?void 0:i.call(a,t);t.year=o,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let s=t.calendar.getMonthsInYear(t);return t.month>s&&(t.month=s,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function h9(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function _e(e){for(;e.month<1;)h9(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,h9(e,1)}function _n(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 _t(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),_n(e)}function _r(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function _o(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),_t(t),t}function _i(e,n){let t=e.copy();return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),_a(t),t}function _a(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 _s(e,n){let t=e%n;return t<0&&(t+=n),t}function _l(e,n){let t;return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=_s(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=_s(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=_s(e.minute,60),t=Math.floor(e.hour/24),e.hour=_s(e.hour,24),t}function _c(e,n){let t=e.copy();return _l(t,n),t}function _u(e,n,t,r){let o=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),i=n.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=_p(i,t,0,n.length-1,null==r?void 0:r.round),o.era=n[i],_t(o);break}case"year":var i,a;(null==(i=(a=o.calendar).isInverseEra)?void 0:i.call(a,o))&&(t=-t),o.year=_p(e.year,t,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=_p(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=_p(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),_t(o),o}function _d(e,n,t,r){let o=e.copy();switch(n){case"hour":{let n=e.hour,i=0,a=23;if((null==r?void 0:r.hourCycle)===12){let e=n>=12;i=12*!!e,a=e?23:11}o.hour=_p(n,t,i,a,null==r?void 0:r.round);break}case"minute":o.minute=_p(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=_p(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=_p(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function _p(e,n,t,r,o=!1){if(o){(e+=Math.sign(n))<t&&(e=r);let o=Math.abs(n);(e=n>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function _f(e,n){let t;return t=(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days?h2(h8(h6(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):hX(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),h7(h4(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}let _m=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,_h=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function __(e,n,t){let r=Number(e);if(r<n||r>t)throw RangeError(`Value out of range: ${n} <= ${r} <= ${t}`);return r}function _g(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 _y(e){let n,t=h7(e,new hP);return n="BC"===t.era?1===t.year?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function _b(e){return`${_y(e)}T${_g(e)}`}function _v(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function _A(e){let n,t="object"==typeof e[0]?e.shift():new hP;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var _$=new WeakMap;class _k{copy(){return this.era?new _k(this.calendar,this.era,this.year,this.month,this.day):new _k(this.calendar,this.year,this.month,this.day)}add(e){return h8(this,e)}subtract(e){return h8(this,_r(e))}set(e){return _o(this,e)}cycle(e,n,t){return _u(this,e,n,t)}toDate(e){return h3(this,e)}toString(){return _y(this)}compare(e){return hL(this,e)}constructor(...e){_v(this,_$,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,_t(this)}}var _x=new WeakMap;class _w{copy(){return new _w(this.hour,this.minute,this.second,this.millisecond)}add(e){return _c(this,e)}subtract(e){return _c(this,_r(e))}set(e){return _i(this,e)}cycle(e,n,t){return _d(this,e,n,t)}toString(){return _g(this)}compare(e){return hV(this)-hV(e)}constructor(e=0,n=0,t=0,r=0){_v(this,_x,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,_a(this)}}var _C=new WeakMap;class _E{copy(){return this.era?new _E(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new _E(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return h8(this,e)}subtract(e){return h8(this,_r(e))}set(e){return _o(_i(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return _u(this,e,n,t);default:return _d(this,e,n,t)}}toDate(e,n){return h3(this,e,n)}toString(){return _b(this)}compare(e){let n=hL(this,e);if(0===n){var t;return t=h6(e),hV(this)-hV(t)}return n}constructor(...e){_v(this,_C,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,_t(this)}}var _D=new WeakMap;class _S{copy(){return this.era?new _S(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new _S(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return _f(this,e)}subtract(e){return _f(this,_r(e))}set(e,n){let t,r;return 0===(r=_i(_o(t=h6(this),e),e)).compare(t)?this:h7(h4(h2(r,this.timeZone,n),this.timeZone),this.calendar)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,o=23;if((null==r?void 0:r.hourCycle)===12){let t=e.hour>=12;n=12*!!t,o=t?23:11}let i=h6(e),a=h7(_i(i,{hour:n}),new hP),s=[h2(a,e.timeZone,"earlier"),h2(a,e.timeZone,"later")].filter(n=>h4(n,e.timeZone).day===a.day)[0],l=h7(_i(i,{hour:o}),new hP),c=[h2(l,e.timeZone,"earlier"),h2(l,e.timeZone,"later")].filter(n=>h4(n,e.timeZone).day===l.day).pop(),u=hX(e)-e.offset,d=Math.floor(u/36e5),p=u%36e5;return h7(h4(u=36e5*_p(d,t,Math.floor(s/36e5),Math.floor(c/36e5),null==r?void 0:r.round)+p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return _d(e,n,t,r);case"era":case"year":case"month":case"day":return h7(h4(h2(_u(h6(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(hX(this)-this.offset)}toString(){var e;let n,t,r;return`${_b(this)}${n=0>Math.sign(e=this.offset)?"-":"+",t=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,n,t){if(e instanceof _S){var r,o;return e.timeZone===n?e:(r=e,o=n,h7(h4(hX(r)-r.offset,o),r.calendar))}return h4(h2(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){_v(this,_D,{writable:!0,value:void 0});let[n,t,r,o,i]=_A(e),a=e.shift(),s=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=i,this.timeZone=a,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,_t(this)}}class _B extends hP{fromJulianDay(e){let n=super.fromJulianDay(e);return new _k(this,hS(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(_T(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(_T(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function _T(e){let[n,t]=hB(e.year+-543);return new _k(n,t,e.month,e.day)}function _P(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function _O(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-_P(e,t,1,1))/30),o=n+1-_P(e,t,r,1);return[t,r,o]}function _z(e){return Math.floor(e%4/3)}function _M(e,n){return n%13!=0?30:_z(e)+5}class _I{fromJulianDay(e){let[n,t,r]=_O(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new _k(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),_P(1723856,n,e.month,e.day)}getDaysInMonth(e){return _M(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+_z(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _N extends _I{fromJulianDay(e){let[n,t,r]=_O(1723856,e);return new _k(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class _F extends _I{fromJulianDay(e){let[n,t,r]=_O(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new _k(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),_P(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),_M(n,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 _j=765433;function _R(e){return 7>hC(7*e+1,19)}function _L(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>hC(3*(t+1),7)&&(t+=1),t}function _V(e){let n,t;return _L(e)+(n=_L(e-1),t=_L(e),_L(e+1)-t==356?2:+(t-n==382))}function _H(e){return _V(e+1)-_V(e)}function _G(e,n){if(n>=6&&!_R(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=_H(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?30*!!_R(e):30}class _U{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/_j*19+234)/235)+1,r=_V(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=_V(--t)));let i=1,a=0;for(;a<o;)a+=_G(t,i),i++;let s=o-(a-=_G(t,--i));return new _k(this,t,i,s)}toJulianDay(e){let n=_V(e.year);for(let t=1;t<e.month;t++)n+=_G(e.year,t);return n+e.day+347997}getDaysInMonth(e){return _G(e.year,e.month)}getMonthsInYear(e){return _R(e.year)?13:12}getDaysInYear(e){return _H(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(_R(n.year)&&!_R(e.year)&&n.month>6?e.month--:!_R(n.year)&&_R(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _q extends hP{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),i=o.year-78,a=e-hE(o.era,o.year,1,1);if(a<80?(i--,a+=(n=hD(o.year-1)?31:30)+155+90+10):(n=hD(o.year)?31:30,a-=80),a<n)t=1,r=a+1;else{let e=a-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new _k(this,i,t,r)}toJulianDay(e){let n,t,[r,o]=hB(e.year+78);return(hD(o)?(n=31,t=hE(r,o,3,21)):(n=30,t=hE(r,o,3,22)),1===e.month)?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=(e.month-7)*30),t+=e.day-1)}getDaysInMonth(e){return 1===e.month&&hD(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 _W(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function _K(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+_W(n,r,1,1)))/29.5)+1),i=t-_W(n,r,o,1)+1;return new _k(e,r,o,i)}function _Y(e){return(14+11*e)%30<11}class _J{fromJulianDay(e){return _K(this,1948440,e)}toJulianDay(e){return _W(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&_Y(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return _Y(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _X extends _J{fromJulianDay(e){return _K(this,1948439,e)}toJulianDay(e){return _W(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _Z(e){return 460322+l[e-1300]}function _Q(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function _0(e,n){let t=_Z(e);for(let r=1;r<n;r++)t+=_Q(e,r);return t}function _1(e){return l[e+1-1300]-l[e-1300]}class _2 extends _J{fromJulianDay(e){let n=e-1948440,t=_Z(1300),r=_Z(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-_Z(++e)+1;let o=_1(e);if(r===o){t=12;break}if(r<o){let n=_Q(e,t);for(t=1;r>n;)r-=n,n=_Q(e,++t);break}}return new _k(this,e,t,n-_0(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_0(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_Q(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_1(e.year)}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 n=1300;n<=1600;n++){l[n-1300]=e;for(let t=1;t<=12;t++)e+=_Q(n,t)}}}}let _3=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_5=[1867,1911,1925,1988,2018],_6=["meiji","taisho","showa","heisei","reiwa"];function _7(e){let n=_3.findIndex(([n,t,r])=>!!(e.year<n)||e.year===n&&!!(e.month<t)||e.year===n&&e.month===t&&!!(e.day<r));return -1===n?_3.length-1:0===n?0:n-1}function _8(e){let n=_5[_6.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new _k(e.year+n,e.month,e.day)}class _9 extends hP{fromJulianDay(e){let n=super.fromJulianDay(e),t=_7(n);return new _k(this,_6[t],n.year-_5[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(_8(e))}balanceDate(e){let n=_8(e),t=_7(n);_6[t]!==e.era&&(e.era=_6[t],e.year=n.year-_5[t]),this.constrainDate(e)}constrainDate(e){let n=_6.indexOf(e.era),t=_4[n];if(null!=t){let[r,o,i]=t,a=r-_5[n];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(i,e.day)))}if(1===e.year&&n>=0){let[,t,r]=_3[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return _6}getYearsInEra(e){let n=_6.indexOf(e.era),t=_3[n],r=_3[n+1];if(null==r)return 9999-t[0]+1;let o=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(_8(e))}getMinimumMonthInYear(e){let n=ge(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=ge(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ge(e){if(1===e.year)return _3[_6.indexOf(e.era)]}let gn=[0,31,62,93,124,155,186,216,246,276,306,336];class gt{fromJulianDay(e){let n=e-1948320,t=1+Math.floor((33*n+3)/12053),r=n-(365*(t-1)+Math.floor((8*t+21)/33)),o=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-gn[o]+1;return new _k(this,t,o+1,i)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=gn[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>hC(25*e.year+11,33)?30:29}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 go(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class gi extends hP{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=go(hS(n.era,n.year));return new _k(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(ga(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=go(gr(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(ga(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function ga(e){let[n,t]=hB(gr(e));return new _k(n,t,e.month,e.day)}function gs(e){switch(e){case"buddhist":return new _B;case"ethiopic":return new _I;case"ethioaa":return new _N;case"coptic":return new _F;case"hebrew":return new _U;case"indian":return new _q;case"islamic-civil":return new _J;case"islamic-tbla":return new _X;case"islamic-umalqura":return new _2;case"japanese":return new _9;case"persian":return new gt;case"roc":return new gi;default:return new hP}}let gl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gc=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gu(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return gl.has(n.script)}let n=e.split("-")[0];return gc.has(n)}let gd={prefix:String(Math.round(1e10*Math.random())),current:0},gp=p4.createContext(gd),gf=p4.createContext(!1),gm=("undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap),gh="function"==typeof p4.useId?function(e){let n=p4.useId(),[t]=(0,p4.useState)(gb()),r=t?"react-aria":`react-aria${gd.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,p4.useContext)(gp),t=function(e=!1){let n=(0,p4.useContext)(gp),t=(0,p4.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=p4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=gm.get(e);null==t?gm.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,gm.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function g_(){return!1}function gg(){return!0}function gy(e){return()=>{}}function gb(){return"function"==typeof p4.useSyncExternalStore?p4.useSyncExternalStore(gy,g_,gg):(0,p4.useContext)(gf)}let gv=Symbol.for("react-aria.i18n.locale");function gA(){let e="undefined"!=typeof window&&window[gv]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gu(e)?"rtl":"ltr"}}let g$=gA(),gk=new Set;function gx(){for(let e of(g$=gA(),gk))e(g$)}function gw(){let e=gb(),[n,t]=(0,p4.useState)(g$);return((0,p4.useEffect)(()=>(0===gk.size&&window.addEventListener("languagechange",gx),gk.add(t),()=>{gk.delete(t),0===gk.size&&window.removeEventListener("languagechange",gx)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let gC=p4.createContext(null);function gE(e){let{locale:n,children:t}=e,r=p4.useMemo(()=>({locale:n,direction:gu(n)?"rtl":"ltr"}),[n]);return p4.createElement(gC.Provider,{value:r},t)}function gD(e){let{children:n}=e,t=gw();return p4.createElement(gC.Provider,{value:t},n)}function gS(e){let{locale:n,children:t}=e;return n?p4.createElement(gE,{locale:n,children:t}):p4.createElement(gD,{children:t})}function gB(){let e=gw();return(0,p4.useContext)(gC)||e}function gT(e){let n=(0,p4.useRef)(null),t=(0,p4.useRef)(void 0),r=(0,p4.useCallback)(n=>{if("function"==typeof e){let t=e(n);return()=>{"function"==typeof t?t():e(null)}}if(e)return e.current=n,()=>{e.current=null}},[e]);return(0,p4.useMemo)(()=>({get current(){return n.current},set current(value){n.current=value,t.current&&(t.current(),t.current=void 0),null!=value&&(t.current=r(value))}}),[r])}function gP(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function gO(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let gz="undefined"!=typeof document?p4.useLayoutEffect:()=>{},gM=null!=(ed=p4.useInsertionEffect)?ed:gz;function gI(e){let n=(0,p4.useRef)(null);return gM(()=>{n.current=e},[e]),(0,p4.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let gN=!!("undefined"!=typeof window&&window.document&&window.document.createElement),gF=new Map;function gj(e){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(null),o=gh(n),i=(0,p4.useRef)(null);if(c&&c.register(i,o),gN){let e=gF.get(o);e&&!e.includes(r)?e.push(r):gF.set(o,[r])}return gz(()=>()=>{c&&c.unregister(i),gF.delete(o)},[o]),(0,p4.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function gR(e=[]){let n=gj(),[t,r]=function(e){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(null),o=gI(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});gz(()=>{r.current&&o()});let i=gI(e=>{r.current=e(n),o()});return[n,i]}(n),o=(0,p4.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return gz(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{gF.delete(e)}));let gL=function(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=function e(n){var t,r,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(r=e(n[t]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=n);return r};function gV(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],o=r[e];"function"==typeof t&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?n[e]=gO(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=gL(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=gF.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=gF.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let gH=Symbol("default");function gG({values:e,children:n}){for(let[t,r]of e)n=p4.createElement(t.Provider,{value:r},n);return n}function gU(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return(0,p4.useMemo)(()=>{let e,l,c;return e="function"==typeof n?n({...s,defaultClassName:o}):n,l="function"==typeof t?t({...s,defaultStyle:a||{}}):t,c="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:null!=e?e:o,style:l||a?{...a,...l}:void 0,children:null!=c?c:i,"data-rac":""}},[n,t,r,o,i,a,s])}function gq(e,n){let t=(0,p4.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||gH;if(!t.slots[e]){let e=new Intl.ListFormat().format(Object.keys(t.slots).map(e=>`"${e}"`)),r=n?`Invalid slot "${n}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return t.slots[e]}return t}function gW(e,n,t){let{ref:r,...o}=gq(t,e.slot)||{},i=gT((0,p4.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=gP(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():gP(e[t],null)})}}})(n,r),[n,r])),a=gV(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?a.style=n=>{let t="function"==typeof o.style?o.style(n):o.style,r={...n.defaultStyle,...t},i="function"==typeof e.style?e.style({...n,defaultStyle:r}):e.style;return{...r,...i}}:a.style={...o.style,...e.style}),[a,i]}function gK(e=!0){let[n,t]=(0,p4.useState)(e),r=(0,p4.useRef)(!1),o=(0,p4.useCallback)(e=>{r.current=!0,t(!!e)},[]);return gz(()=>{r.current||t(!1)},[]),[o,n]}function gY(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let gJ=(0,p4.createContext)(null),gX=null;function gZ(e,n="assertive",t=7e3){gX?gX.announce(e,n,t):(gX=new gQ,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?gX.announce(e,n,t):setTimeout(()=>{(null==gX?void 0:gX.isAttached())&&(null==gX||gX.announce(e,n,t))},100))}class gQ{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=7e3){var r,o;if(!this.node)return;let i=document.createElement("div");"object"==typeof e?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,"assertive"===n?null==(r=this.assertiveLog)||r.appendChild(i):null==(o=this.politeLog)||o.appendChild(i),""!==e&&setTimeout(()=>{i.remove()},t)}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,"undefined"!=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 g0=new Set(["id"]),g1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),g2=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g3=new Set(["dir","lang","hidden","inert","translate"]),g4=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"]),g5=/^(data-.*)$/;function g6(e,n={}){let{labelable:t,isLink:r,global:o,events:i=o,propNames:a}=n,s={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(g0.has(n)||t&&g1.has(n)||r&&g2.has(n)||o&&g3.has(n)||i&&g4.has(n)||n.endsWith("Capture")&&g4.has(n.slice(0,-7))||(null==a?void 0:a.has(n))||g5.test(n))&&(s[n]=e[n]);return s}let g7=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},g8=e=>e&&"window"in e&&e.window===e?e:g7(e).defaultView||window,g9="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function ye(e,n){return g9?e.checkVisibility()&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let n=g8(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:t,visibility:r}=e.style,o="none"!==t&&"hidden"!==r&&"collapse"!==r;if(o){let{getComputedStyle:n}=e.ownerDocument.defaultView,{display:t,visibility:r}=n(e);o="none"!==t&&"hidden"!==r&&"collapse"!==r}return o}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!n||"SUMMARY"===n.nodeName||e.hasAttribute("open"))&&(!e.parentElement||ye(e.parentElement,e))}let yn=["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"],yt=yn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let yr=yn.join(':not([hidden]):not([tabindex="-1"]),');function yo(e){return e.matches(yt)&&ye(e)&&!ya(e)}function yi(e){return e.matches(yr)&&ye(e)&&!ya(e)}function ya(e){let n=e;for(;null!=n;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function ys(e){if(function(){if(null==yl){yl=!1;try{document.createElement("div").focus({get preventScroll(){return yl=!0,!0}})}catch{}}return yl}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let yl=null;function yc(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function yu(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function yd(e){let n=(0,p4.useRef)({isFocused:!1,observer:null});gz(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=gI(n=>{null==e||e(n)});return(0,p4.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{n.current.isFocused=!1,r.disabled&&t(yc(e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)},{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&r.disabled){var e;null==(e=n.current.observer)||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}}),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let yp=!1;function yf(e){var n;if("undefined"==typeof window||null==window.navigator)return!1;let t=null==(n=window.navigator.userAgentData)?void 0:n.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function ym(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(n=window.navigator.userAgentData)?void 0:n.platform)||window.navigator.platform)}function yh(e){let n=null;return()=>(null==n&&(n=e()),n)}let y_=yh(function(){return ym(/^Mac/i)}),yg=yh(function(){return ym(/^iPhone/i)}),yy=yh(function(){return ym(/^iPad/i)||y_()&&navigator.maxTouchPoints>1}),yb=yh(function(){return yg()||yy()});yh(function(){return y_()||yb()});let yv=yh(function(){return yf(/AppleWebKit/i)&&!yA()}),yA=yh(function(){return yf(/Chrome/i)}),y$=yh(function(){return yf(/Android/i)}),yk=yh(function(){return yf(/Firefox/i)}),yx=new Map,yw=new Set;function yC(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yx.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yx.delete(t.target)),0===yx.size)){for(let e of yw)e();yw.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=yx.get(t.target);r||(r=new Set,yx.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function yE(e){requestAnimationFrame(()=>{for(let[e]of yx)"isConnected"in e&&!e.isConnected&&yx.delete(e);0===yx.size?e():yw.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?yC():document.addEventListener("DOMContentLoaded",yC));let yD="default",yS="",yB=new WeakMap;function yT(e){if(yb())"disabled"===yD&&(yD="restoring",setTimeout(()=>{yE(()=>{if("restoring"===yD){let n=g7(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=yS||""),yS="",yD="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yB.has(e)){let n=yB.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),yB.delete(e)}}let yP=p4.createContext({register:()=>{}});function yO(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function yz(e,n,t){var r=yO(e,n,"set");if(r.set)r.set.call(e,t);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=t}return t}function yM(e,n){gz(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function yI(){let e=(0,p4.useRef)(new Map),n=(0,p4.useCallback)((n,t,r,o)=>{let i=(null==o?void 0:o.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:i,options:o}),n.addEventListener(t,i,o)},[]),t=(0,p4.useCallback)((n,t,r,o)=>{var i;let a=(null==(i=e.current.get(r))?void 0:i.fn)||r;n.removeEventListener(t,a,o),e.current.delete(r)},[]),r=(0,p4.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,p4.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}yP.displayName="PressResponderContext";function yN(e,n){return!!n&&!!e&&e.contains(n)}function yF(e){return e.target}function yj(e,n,t=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=n;yk()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(y_()?i=!0:a=!0);let c=yv()&&y_()&&!yy()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});yj.isOpening=t,ys(e),e.dispatchEvent(c),yj.isOpening=!1}function yR(e){return""===e.pointerType&&!!e.isTrusted||(y$()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yj.isOpening=!1;var yL=t(3144),yV=new WeakMap;class yH{continuePropagation(){yz(this,yV,!1)}get shouldStopPropagation(){var e;return e=yO(this,yV,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;_v(this,yV,{writable:!0,value:void 0}),yz(this,yV,!0);let i=null!=(o=null==r?void 0:r.target)?o:t.currentTarget;const a=null==i?void 0:i.getBoundingClientRect();let s,l=0,c,u=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,u=t.clientY),a&&(null!=c&&null!=u?(s=c-a.left,l=u-a.top):(s=a.width/2,l=a.height/2)),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.x=s,this.y=l}}let yG=Symbol("linkClicked"),yU="react-aria-pressable-style",yq="data-react-aria-pressable";function yW(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...f}=function(e){let n=(0,p4.useContext)(yP);if(n){let{register:t,...r}=n;e=gV(r,e),t()}return yM(n,e.ref),e}(e),[m,h]=(0,p4.useState)(!1),g=(0,p4.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=yI(),v=gI((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let i=!0;if(o.isTriggeringEvent=!0,r){let t=new yH("pressstart",n,e);r(t),i=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,h(!0),i}),A=gI((e,r,i=!0)=>{let a=g.current;if(!a.didFirePressStart)return!1;a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(o){let n=new yH("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),h(!1),n&&i&&!s){let t=new yH("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return a.isTriggeringEvent=!1,l}),$=gI((e,n)=>{let t=g.current;if(s)return!1;if(i){t.isTriggeringEvent=!0;let r=new yH("pressup",n,e);return i(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),k=gI(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(yJ(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),d||yT(n.target),n.disposables))t();n.disposables=[]}}),x=gI(e=>{u&&k(e)}),w=gI(e=>{null==a||a(e)}),C=gI((e,n)=>{if(a){let t=new MouseEvent("click",e);yu(t,n),a(yc(t))}}),E=(0,p4.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(yY(n.nativeEvent,n.currentTarget)&&yN(n.currentTarget,yF(n.nativeEvent))){var r;yX(yF(n.nativeEvent),n.key)&&n.preventDefault();let o=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=v(n,"keyboard");let r=n.currentTarget;y(g7(n.currentTarget),"keyup",gO(n=>{yY(n,r)&&!n.repeat&&yN(r,yF(n))&&e.target&&$(yJ(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&y_()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||yN(n.currentTarget,yF(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!yj.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||yR(n.nativeEvent))){let e=v(n,"virtual"),r=$(n,"virtual"),o=A(n,"virtual");w(n),t=e&&r&&o}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||n.nativeEvent.pointerType||"virtual",o=$(yJ(n.currentTarget,n),r),i=A(yJ(n.currentTarget,n),r,!0);t=o&&i,e.isOverTarget=!1,w(n),k(n)}e.ignoreEmulatedMouseEvents=!1,t&&n.stopPropagation()}}},t=n=>{var t,r,o;if(e.isPressed&&e.target&&yY(n,e.target)){yX(yF(n),n.key)&&n.preventDefault();let t=yF(n),o=yN(e.target,yF(n));A(yJ(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&yK(e.target)&&yN(e.target,t)&&!n[yG]&&(n[yG]=!0,yj(e.target,n,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(n.key)}else if("Meta"===n.key&&(null==(t=e.metaKeyEvents)?void 0:t.size)){let n=e.metaKeyEvents;for(let t of(e.metaKeyEvents=void 0,n.values()))null==(o=e.target)||o.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{var o;if(0!==n.button||!yN(n.currentTarget,yF(n.nativeEvent)))return;if(o=n.nativeEvent,!y$()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType){e.pointerType="virtual";return}e.pointerType=n.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,d||function(e){if(yb()){if("default"===yD){let n=g7(e);yS=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}yD="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";yB.set(e,e.style[n]),e.style[n]="none"}}(e.target),i=v(n,e.pointerType);let o=yF(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(g7(n.currentTarget),"pointerup",t,!1),y(g7(n.currentTarget),"pointercancel",r,!1)}i&&n.stopPropagation()},n.onMouseDown=n=>{if(yN(n.currentTarget,yF(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!yo(e);)e=e.parentElement;let n=g8(e),t=n.document.activeElement;if(!t||t===e)return;yp=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},i=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,ys(t),l()))},a=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,ys(t),l()))};n.addEventListener("blur",o,!0),n.addEventListener("focusout",i,!0),n.addEventListener("focusin",s,!0),n.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(c),n.removeEventListener("blur",o,!0),n.removeEventListener("focusout",i,!0),n.removeEventListener("focusin",s,!0),n.removeEventListener("focus",a,!0),yp=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{yN(n.currentTarget,yF(n.nativeEvent))&&"virtual"!==e.pointerType&&(0!==n.button||e.isPressed||$(n,e.pointerType||n.pointerType))},n.onPointerEnter=n=>{n.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,v(yJ(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(yJ(e.target,n),e.pointerType,!1),x(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(yN(e.target,yF(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?k(n):(ys(e.target),e.target.click()))},80);y(n.currentTarget,"click",()=>t=!0,!0),e.disposables.push(()=>clearTimeout(r))}else k(n);e.isOverTarget=!1}},r=e=>{k(e)};n.onDragStart=e=>{yN(e.currentTarget,yF(e.nativeEvent))&&k(e)}}return n},[y,s,c,b,d,k,x,A,v,$,w,C]);return(0,p4.useEffect)(()=>{if(!p)return;let e=g7(p.current);if(!e||!e.head||e.getElementById(yU))return;let n=e.createElement("style");n.id=yU,n.textContent=`
33
33
  @layer {
34
34
  [${yq}] {
35
35
  touch-action: pan-x pan-y pinch-zoom;
package/dist/286.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[]).push([["286"],{4078:function(e,n,t){"use strict";t.d(n,{A:()=>l});var a=t(1452),i=t.n(a),s=t(4567),o=t.n(s)()(i());o.push([e.id,".-esm-version__about__main___ygFSI{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___sinxi{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___Q7mqH{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___LYoZH{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___LYoZH h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___LYoZH h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___LYoZH img{margin-left:.25rem}.-esm-version__about__aboutBody___Pv2r4{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___Pv2r4 p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourcesContent:["@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@use '@carbon/styles/scss/colors';\n\n.main {\n display: flex;\n justify-items: center;\n flex-direction: column;\n}\n\n.aboutPage {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.container {\n display: flex;\n justify-content: center;\n margin: 1rem;\n flex-direction: column;\n align-items: center;\n border: 0.5px solid colors.$gray-30;\n width: 23rem;\n}\n\n.title {\n display: flex;\n align-items: center;\n padding-bottom: 0.25rem;\n margin-bottom: 0.25rem;\n border-bottom: 0.5px solid colors.$gray-30;\n width: 100%;\n justify-content: center;\n\n h3 {\n @include type.type-style('body-compact-02');\n }\n\n h4 {\n @include type.type-style('body-compact-01');\n }\n\n img {\n margin-left: 0.25rem;\n }\n}\n\n.aboutBody {\n display: grid;\n grid-template-columns: 1fr 1fr;\n column-gap: 0.25rem;\n\n & p {\n @include type.type-style('label-01');\n margin-bottom: 0.25rem;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={main:"-esm-version__about__main___ygFSI",aboutPage:"-esm-version__about__aboutPage___sinxi",container:"-esm-version__about__container___Q7mqH",title:"-esm-version__about__title___LYoZH",aboutBody:"-esm-version__about__aboutBody___Pv2r4"};let l=o},5830:function(e,n,t){"use strict";t.d(n,{Q:()=>a});var a={}},9101:function(e,n,t){"use strict";t.r(n),t.d(n,{about:()=>S,startupApp:()=>D,importTranslations:()=>B});var a=t(9979),i=t(5830),s=t(5400),o=t.n(s),l=t(5721),p=t(2591),r=t.n(p),c=t(1740),u=t.n(c),d=t(8128),f=t.n(d),g=t(855),h=t.n(g),y=t(3051),m=t.n(y),b=t(3656),$=t.n(b),A=t(4078),v={};v.styleTagTransform=$(),v.setAttributes=h(),v.insert=f().bind(null,"head"),v.domAPI=u(),v.insertStyleElement=m(),r()(A.A,v);let w=A.A&&A.A.locals?A.A.locals:void 0;var x=t(4924),k=t(438);let z=function(){var e=(0,s.useMemo)(function(){var e;return(null!=(e=window.installedModules)?e:[]).filter(function(e){return!!e&&!!e[1]}).map(function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}})},[]);return o().createElement(k.StructuredListWrapper,{ariaLabel:"Structured list"},o().createElement(k.StructuredListHead,null,o().createElement(k.StructuredListRow,{head:!0,tabIndex:0},o().createElement(k.StructuredListCell,{head:!0},"Module name"),o().createElement(k.StructuredListCell,{head:!0},"Version"))),o().createElement(k.StructuredListBody,null,e.map(function(e){var n;return o().createElement(k.StructuredListRow,{tabIndex:0},o().createElement(k.StructuredListCell,null,e.name),o().createElement(k.StructuredListCell,null,null!=(n=e.version)?n:"No version found"," "))})))};var _=t(8766);let C=function(){var e,n,t,i,s,l=(i=(t=(0,x.A)("ws/rest/v1/module?v=custom:(uuid,name,version)",a.openmrsFetch)).data,s=t.isLoading,{modules:null!=(n=null==i||null==(e=i.data)?void 0:e.results)?n:[],isLoading:s}),p=l.modules;l.isLoading;var r=p.find(function(e){return"kenyaemr"===e.uuid}),c=w.title,u=w.container,d=w.aboutBody,f=w.aboutPage,g=_.VERSION;return o().createElement("div",{className:w.main},o().createElement("div",{className:f},o().createElement("div",{className:u},o().createElement("div",{className:c},o().createElement("div",null,o().createElement("h3",null,"Government of Kenya"),o().createElement("h4",null,"Ministry of Health")),o().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),o().createElement("div",{className:d},o().createElement("p",null,"KenyaEMR Version"),o().createElement("p",null,"v".concat(null==r?void 0:r.version)),o().createElement("p",null,"SPA Version"),o().createElement("p",null,"v".concat(g.version)),o().createElement("p",null,"Build date time"),o().createElement("p",null,(0,a.formatDatetime)(new Date(g.buildDate),{mode:"standard"}))))),o().createElement(z,null))};var M=window.getOpenmrsSpaBase(),E="@kenyaemr/esm-version-app",B=t(1437),S=(0,a.getSyncLifecycle)(function(){return o().createElement(l.BrowserRouter,{basename:M},o().createElement(C,null))},{featureName:"esm-version-app",moduleName:E});function D(){(0,a.defineConfigSchema)(E,i.Q)}},8766:function(e,n,t){"use strict";t.r(n),t.d(n,{VERSION:()=>a});var a={dirty:!0,raw:"v5.4.1-162-gdb6a6c6-dirty",hash:"gdb6a6c6",distance:162,tag:"v5.4.1",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v5.4.1",major:5,minor:4,patch:1,prerelease:[],build:[],version:"5.4.1"},suffix:"162-gdb6a6c6-dirty",semverString:"5.4.1+162.gdb6a6c6",version:"5.4.2-pre.2653",buildDate:"2025-10-15T09:07:37.179Z"}},1437:function(e,n,t){var a={"./en.json":["1066","127"],"./sw.json":["3987","40"],"./am.json":["2735","916"]};function i(e){if(!t.o(a,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=a[e],i=n[0];return t.e(n[1]).then(function(){return t(i)})}i.keys=()=>Object.keys(a),i.id=1437,e.exports=i}}]);
1
+ (globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[]).push([["286"],{4078:function(e,n,t){"use strict";t.d(n,{A:()=>l});var a=t(1452),i=t.n(a),s=t(4567),o=t.n(s)()(i());o.push([e.id,".-esm-version__about__main___ygFSI{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___sinxi{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___Q7mqH{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___LYoZH{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___LYoZH h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___LYoZH h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___LYoZH img{margin-left:.25rem}.-esm-version__about__aboutBody___Pv2r4{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___Pv2r4 p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourcesContent:["@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@use '@carbon/styles/scss/colors';\n\n.main {\n display: flex;\n justify-items: center;\n flex-direction: column;\n}\n\n.aboutPage {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.container {\n display: flex;\n justify-content: center;\n margin: 1rem;\n flex-direction: column;\n align-items: center;\n border: 0.5px solid colors.$gray-30;\n width: 23rem;\n}\n\n.title {\n display: flex;\n align-items: center;\n padding-bottom: 0.25rem;\n margin-bottom: 0.25rem;\n border-bottom: 0.5px solid colors.$gray-30;\n width: 100%;\n justify-content: center;\n\n h3 {\n @include type.type-style('body-compact-02');\n }\n\n h4 {\n @include type.type-style('body-compact-01');\n }\n\n img {\n margin-left: 0.25rem;\n }\n}\n\n.aboutBody {\n display: grid;\n grid-template-columns: 1fr 1fr;\n column-gap: 0.25rem;\n\n & p {\n @include type.type-style('label-01');\n margin-bottom: 0.25rem;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={main:"-esm-version__about__main___ygFSI",aboutPage:"-esm-version__about__aboutPage___sinxi",container:"-esm-version__about__container___Q7mqH",title:"-esm-version__about__title___LYoZH",aboutBody:"-esm-version__about__aboutBody___Pv2r4"};let l=o},5830:function(e,n,t){"use strict";t.d(n,{Q:()=>a});var a={}},9101:function(e,n,t){"use strict";t.r(n),t.d(n,{about:()=>S,startupApp:()=>D,importTranslations:()=>B});var a=t(2722),i=t(5830),s=t(5400),o=t.n(s),l=t(5721),p=t(2591),r=t.n(p),c=t(1740),u=t.n(c),d=t(8128),f=t.n(d),g=t(855),h=t.n(g),y=t(3051),m=t.n(y),b=t(3656),$=t.n(b),A=t(4078),v={};v.styleTagTransform=$(),v.setAttributes=h(),v.insert=f().bind(null,"head"),v.domAPI=u(),v.insertStyleElement=m(),r()(A.A,v);let w=A.A&&A.A.locals?A.A.locals:void 0;var x=t(4924),k=t(438);let z=function(){var e=(0,s.useMemo)(function(){var e;return(null!=(e=window.installedModules)?e:[]).filter(function(e){return!!e&&!!e[1]}).map(function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}})},[]);return o().createElement(k.StructuredListWrapper,{ariaLabel:"Structured list"},o().createElement(k.StructuredListHead,null,o().createElement(k.StructuredListRow,{head:!0,tabIndex:0},o().createElement(k.StructuredListCell,{head:!0},"Module name"),o().createElement(k.StructuredListCell,{head:!0},"Version"))),o().createElement(k.StructuredListBody,null,e.map(function(e){var n;return o().createElement(k.StructuredListRow,{tabIndex:0},o().createElement(k.StructuredListCell,null,e.name),o().createElement(k.StructuredListCell,null,null!=(n=e.version)?n:"No version found"," "))})))};var _=t(8766);let C=function(){var e,n,t,i,s,l=(i=(t=(0,x.A)("ws/rest/v1/module?v=custom:(uuid,name,version)",a.openmrsFetch)).data,s=t.isLoading,{modules:null!=(n=null==i||null==(e=i.data)?void 0:e.results)?n:[],isLoading:s}),p=l.modules;l.isLoading;var r=p.find(function(e){return"kenyaemr"===e.uuid}),c=w.title,u=w.container,d=w.aboutBody,f=w.aboutPage,g=_.VERSION;return o().createElement("div",{className:w.main},o().createElement("div",{className:f},o().createElement("div",{className:u},o().createElement("div",{className:c},o().createElement("div",null,o().createElement("h3",null,"Government of Kenya"),o().createElement("h4",null,"Ministry of Health")),o().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),o().createElement("div",{className:d},o().createElement("p",null,"KenyaEMR Version"),o().createElement("p",null,"v".concat(null==r?void 0:r.version)),o().createElement("p",null,"SPA Version"),o().createElement("p",null,"v".concat(g.version)),o().createElement("p",null,"Build date time"),o().createElement("p",null,(0,a.formatDatetime)(new Date(g.buildDate),{mode:"standard"}))))),o().createElement(z,null))};var M=window.getOpenmrsSpaBase(),E="@kenyaemr/esm-version-app",B=t(1437),S=(0,a.getSyncLifecycle)(function(){return o().createElement(l.BrowserRouter,{basename:M},o().createElement(C,null))},{featureName:"esm-version-app",moduleName:E});function D(){(0,a.defineConfigSchema)(E,i.Q)}},8766:function(e,n,t){"use strict";t.r(n),t.d(n,{VERSION:()=>a});var a={dirty:!0,raw:"v5.4.1-164-g3dd31ad-dirty",hash:"g3dd31ad",distance:164,tag:"v5.4.1",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v5.4.1",major:5,minor:4,patch:1,prerelease:[],build:[],version:"5.4.1"},suffix:"164-g3dd31ad-dirty",semverString:"5.4.1+164.g3dd31ad",version:"5.4.2-pre.2659",buildDate:"2025-10-15T12:49:41.104Z"}},1437:function(e,n,t){var a={"./en.json":["1066","127"],"./sw.json":["3987","40"],"./am.json":["2735","916"]};function i(e){if(!t.o(a,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=a[e],i=n[0];return t.e(n[1]).then(function(){return t(i)})}i.keys=()=>Object.keys(a),i.id=1437,e.exports=i}}]);