@openmrs/esm-active-visits-app 9.2.1-pre.7827 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/3451.js +1 -1
- package/dist/3750.js +1 -1
- package/dist/5441.js +1 -1
- package/dist/8804.js +1 -1
- package/dist/8862.js +1 -1
- package/dist/9900.js +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-active-visits-app.js +3 -3
- package/dist/openmrs-esm-active-visits-app.js.buildmanifest.json +32 -32
- package/dist/openmrs-esm-active-visits-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +3 -4
package/.turbo/turbo-build.log
CHANGED
package/dist/3451.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.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.
|
|
30
30
|
To fix this, ensure that you define the "name" field inside the feature flag definition.`,t);else console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)})}}function mi(){mn.sort((e,t)=>e.appName.localeCompare(t.appName,"en"));let e=new Map;for(let t of mn){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);let n=e.get(t.appName),r=`${t.appName}-page-${n}`,i=t.containerDomId??"omrs-apps-container",a=document.getElementById(i),o=`single-spa-application:${r}`;if(a){let e=document.createElement("div");e.id=o,a?.appendChild(e)}else throw Error(`${t.appName} ${t.component} cannot be mounted to "${i}"; DOM element does not exist.`);!function(e,t){let n=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);!1===n?console.warn(`A registered page definition is missing a route and thus cannot be registered.
|
|
31
31
|
To fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.`,e):t.component?rS(e,()=>h7(t.appName,t.component),function(e,{online:t,offline:n,featureFlag:r}){return window.offlineEnabled?i=>!!(navigator.onLine&&(t??!0)||!navigator.onLine&&n)&&(!r||!!uk(r))&&e(i):e}(function e(t){if(Array.isArray(t)){let n=t.map(e);return e=>n.some(t=>t(e))}return"string"==typeof t?rP(window.getOpenmrsSpaBase()+t):t instanceof RegExp?e=>t.test(e.pathname.replace(window.getOpenmrsSpaBase(),"")):()=>t}(n),t)):console.warn(`A registered page definition is missing a component and thus cannot be registered.
|
|
32
|
-
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,t)}}function ma(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mo=ma();function ms(e,t){if(mo){if("string"==typeof t)if(t.startsWith("http"))return mu(e,t);else try{let n=JSON.parse(t);if(mp(n))return mu(e,n);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}else if(t instanceof URL)return mu(e,t.toString());else if(mp(t))return mu(e,t);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`,t)}}function mc(e){mo&&localStorage.removeItem(h6+e)}function ml(){if(mo)for(let e of Object.keys(localStorage))e.startsWith(h6)&&localStorage.removeItem(e)}function mu(e,t){localStorage.setItem(h6+e,JSON.stringify(t))}function mp(e){if(e&&"object"==typeof e){let t=Object.prototype.hasOwnProperty;return!(t.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||t.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||t.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||t.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function md(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&mp(t))}var mf={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 mh(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<mf.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>mf.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>mf.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<mf.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>mf.SMALL_DESKTOP_MAX)}var mm=!1;function mg(){mm||(window.addEventListener("resize",mh),mh(),mm=!0)}var m_=n(16709),mv=n.n(m_),my=n(46062),mb=n.n(my),mA=n(44036),m$=n.n(mA),mw=n(96793),mk=n.n(mw),mx=n(17892),mC=n.n(mx),mE=n(11173),mS=n.n(mE),mD=n(42464),mz=n.n(mD),mB=n(6370),mO={};mO.styleTagTransform=mz(),mO.setAttributes=mC(),mO.insert=mk().bind(null,"head"),mO.domAPI=m$(),mO.insertStyleElement=mS(),mb()(mB.Z,mO);let mM=mB.Z&&mB.Z.locals?mB.Z.locals:void 0;function mP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e){var t,n=e.title,r=e.children,i="tablet"===hN();return fA().createElement("div",{className:mv()((mP(t={},mM.tabletHeader,i),mP(t,mM.desktopHeader,!i),t))},fA().createElement("h4",null,n),r)}var mI=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],mN={primaryColor:{_type:tb.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[nl.oneOf(mI)]},secondaryColor:{_type:tb.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[nl.oneOf(mI)]}},mF={"Brand color #1":{_default:"#005d5d",_type:tb.String},"Brand color #2":{_default:"#004144",_type:tb.String},"Brand color #3":{_default:"#007d79",_type:tb.String},excludePatientIdentifierCodeTypes:{uuids:{_type:tb.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:tb.UUID}}},implementationName:{_type:tb.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:tb.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:tb.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:[nl.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:tb.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:tb.String}},diagnosisTags:mN},mj=n(19331),mR=n(72530),mL={};mL.styleTagTransform=mz(),mL.setAttributes=mC(),mL.insert=mk().bind(null,"head"),mL.domAPI=m$(),mL.insertStyleElement=mS(),mb()(mR.Z,mL);let mV=mR.Z&&mR.Z.locals?mR.Z.locals:void 0;function mW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mH=(0,fb.createContext)(null);function mU(){var e=(0,fb.useContext)(mH);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function mq(e){var t,n=e.menuTitle,r=e.children,i=(t=fA().useState(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return mW(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mW(e,t)}}(t,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.")}()),a=i[0],o=i[1],s=hV(function(){return o(!1)},a),c="tablet"===hN(),l=(0,fb.useCallback)(function(){return o(function(e){return!e})},[]),u=(0,fb.useRef)(null),p=(0,fb.useRef)(null),d=(0,fb.useId)(),f="custom-overflow-menu-trigger-".concat(d),h="custom-overflow-menu-".concat(d),m=(0,fb.useCallback)(function(){var e;o(!1),null==(e=u.current)||e.focus()},[]),g=(0,fb.useMemo)(function(){return{closeMenu:m}},[m]),v=(0,fb.useCallback)(function(e){"Escape"===e.key&&a&&(e.stopPropagation(),m())},[m,a]),y=fb.Children.toArray(r);(0,fb.useEffect)(function(){if(a&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[a]);var b=(0,fb.useCallback)(function(e){e.currentIndex;var t,n,r,i,a,o,s=e.direction,c=null==(t=p.current)?void 0:t.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==c?void 0:c.length){var l=null!=(a=null==(r=document.activeElement)||null==(n=r.closest)?void 0:n.call(r,'[role="menuitem"]'))?a:document.activeElement,u=Array.from(c).indexOf(l);if(-1===u){null==(o=c[s>0?0:c.length-1])||o.focus();return}var d=u+s,f=d<0?c.length-1:d>=c.length?0:d;null==(i=c[f])||i.focus()}},[]),A=y.map(function(e,t){return(0,fb.isValidElement)(e)?(0,fb.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:b,index:t}):e});return fA().createElement("div",{"data-overflow-menu":!0,className:mv()("cds--overflow-menu",mV.container),ref:s},fA().createElement("button",{className:mv()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":a},mV.overflowMenuButton),"aria-controls":h,"aria-expanded":a,"aria-haspopup":"true",id:f,onClick:l,onKeyDown:v,ref:u},n),fA().createElement("div",{className:mv()("cds--overflow-menu-options","cds--overflow-menu--flip",mV.menu,mG({},mV.show,a)),"aria-labelledby":f,"data-floating-menu-direction":"bottom",id:h,onKeyDown:v,ref:p,role:"menu",tabIndex:-1},fA().createElement("ul",{className:mv()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c})},fA().createElement(mH.Provider,{value:g},A)),fA().createElement("span",null)))}function mK(e){var t,n,r=(0,fb.useContext)(mH);return fA().createElement(mj.laM,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){mG(e,t,n[t])})}return e}({},e),n=n={closeMenu:null==r?void 0:r.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function mZ(){return(mZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}(eu=ey||(ey={})).Pop="POP",eu.Push="PUSH",eu.Replace="REPLACE";let mY="popstate";function mJ(e,t){if(!1===e||null==e)throw Error(t)}function mX(e,t){return{usr:e.state,key:e.key,idx:t}}function mQ(e,t,n,r){return void 0===n&&(n=null),mZ({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m1(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function m0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m1(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(ep=eb||(eb={})).data="data",ep.deferred="deferred",ep.redirect="redirect",ep.error="error";function m2(){return(m2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Symbol("deferred");let m3=fb.createContext(null),m4=fb.createContext(null);function m5(){return null!=fb.useContext(m4)}fb.Component;let m6=(e,t,n)=>{};function m8(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ey.Pop,navigator:a,static:o=!1,future:s}=e;m5()&&mJ(!1);let c=t.replace(/^\/*/,"/"),l=fb.useMemo(()=>({basename:c,navigator:a,static:o,future:m2({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);"string"==typeof r&&(r=m1(r));let{pathname:u="/",search:p="",hash:d="",state:f=null,key:h="default"}=r,m=fb.useMemo(()=>{let e=function(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}(u,c);return null==e?null:{location:{pathname:e,search:p,hash:d,state:f,key:h},navigationType:i}},[c,u,p,d,f,h,i]);return null==m?null:fb.createElement(m3.Provider,{value:l},fb.createElement(m4.Provider,{children:n,value:m}))}fb.startTransition;var m7=((ed=m7||{})[ed.pending=0]="pending",ed[ed.success=1]="success",ed[ed.error=2]="error",ed);new Promise(()=>{}),fb.Component;var m9=n(3445);try{window.__reactRouterVersion="6"}catch(e){}let ge=fb.startTransition;function gt(e){let{basename:t,children:n,future:r,window:i}=e,a=fb.useRef();null==a.current&&(a.current=function(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=ey.Pop,c=null,l=u();function u(){return(o.state||{idx:null}).idx}function p(){s=ey.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:m0(e);return mJ(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==l&&(l=0,o.replaceState(mZ({},o.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error("A history only accepts one active listener");return i.addEventListener(mY,p),c=e,()=>{i.removeEventListener(mY,p),c=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=ey.Push;let n=mQ(f.location,e,t);let r=mX(n,l=u()+1),p=f.createHref(n);try{o.pushState(r,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(p)}a&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=ey.Replace;let r=mQ(f.location,e,t);n&&n(r,e);let i=mX(r,l=u()),p=f.createHref(r);o.replaceState(i,"",p),a&&c&&c({action:s,location:f.location,delta:0})},go:e=>o.go(e)};return f}(function(e,t){let{pathname:n,search:r,hash:i}=e.location;return mQ("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m0(t)},null,{window:i,v5Compat:!0}));let o=a.current,[s,c]=fb.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=fb.useCallback(e=>{l&&ge?ge(()=>c(e)):c(e)},[c,l]);return fb.useLayoutEffect(()=>o.listen(u),[o,u]),fb.useEffect(()=>{var e;(null==r?void 0:r.v7_startTransition)===void 0&&m6("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==r?void 0:r.v7_relativeSplatPath)===void 0&&m6("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),e&&(void 0===e.v7_fetcherPersist&&m6("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===e.v7_normalizeFormMethod&&m6("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===e.v7_partialHydration&&m6("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===e.v7_skipActionErrorRevalidation&&m6("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))},[r]),fb.createElement(m8,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}m9.flushSync,fb.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ef=eA||(eA={})).UseScrollRestoration="useScrollRestoration",ef.UseSubmit="useSubmit",ef.UseSubmitFetcher="useSubmitFetcher",ef.UseFetcher="useFetcher",ef.useViewTransitionState="useViewTransitionState",(eh=e$||(e$={})).UseFetcher="useFetcher",eh.UseFetchers="useFetchers",eh.UseScrollRestoration="useScrollRestoration";var gn=n(20708),gr=n(23148),gi={};gi.styleTagTransform=mz(),gi.setAttributes=mC(),gi.insert=mk().bind(null,"head"),gi.domAPI=m$(),gi.insertStyleElement=mS(),mb()(gr.Z,gi);let ga=gr.Z&&gr.Z.locals?gr.Z.locals:void 0;var go=function(e){var t=e.path,n=e.title,r=e.basePath,i=e.icon,a=(0,fZ.useTranslation)().t,o=(m5()||mJ(!1),fb.useContext(m4).location),s=(0,fb.useMemo)(function(){if(!t)return!1;var e,n=t.startsWith("/")?t.slice(1):t;if(n.startsWith("http"))return n===window.location.href;var r=n.split("/").map(function(e){return decodeURIComponent(e)}),i=(null!=(e=o.pathname)?e:"").split("/").slice(1).map(function(e){return decodeURIComponent(e)});return i.some(function(e,t){return r.every(function(e,n){return i[t+n]===e})})},[o.pathname,t]);return fA().createElement("div",{key:t},fA().createElement(gn.ConfigurableLink,{className:mv()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(t))},fA().createElement("span",{className:ga.menu},fA().createElement(gn.MaybeIcon,{icon:i,className:ga.icon,size:16}),fA().createElement("span",null,a(n)))))};function gs(e){return function(t){var n=t.basePath;return fA().createElement(gt,null,fA().createElement(go,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({basePath:n},e)))}}function gc(e,t){return e-t*Math.floor(e/t)}function gl(e,t,n,r){let i=(t=gp(e,t))-1,a=-2;return n<=2?a=0:gu(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function gu(e){return e%4==0&&(e%100!=0||e%400==0)}function gp(e,t){return"BC"===e?1-t:t}function gd(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let gf={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 gh{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),r=gc(t,146097),i=Math.floor(r/36524),a=gc(r,36524),o=Math.floor(a/1461),s=Math.floor(gc(a,1461)/365),[c,l]=gd(400*n+100*i+4*o+s+ +(4!==i&&4!==s)),u=e-gl(c,l,1,1),p=2;e<gl(c,l,3,1)?p=0:gu(l)&&(p=1);let d=Math.floor(((u+p)*12+373)/367),f=e-gl(c,l,d,1)+1;return new _n(c,l,d,f)}toJulianDay(e){return gl(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return gf[gu(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return gu(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 gm={"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 gg(e,t){return t=gW(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function g_(e,t){return gv(e.calendar,t.calendar)&&gg(e,t)}function gv(e,t){var n,r,i,a;return null!=(a=null!=(i=null==(n=e.isEqual)?void 0:n.call(e,t))?i:null==(r=t.isEqual)?void 0:r.call(t,e))?a:e.identifier===t.identifier}let gy={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function gb(e,t,n){let r,i=Math.ceil(e.calendar.toJulianDay(e)+1-(n?gy[n]:(r=function(e){if(Intl.Locale){let t=gz.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&gz.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(t))&&gm[r]||0))%7;return i<0&&(i+=7),i}function gA(e){return gR(Date.now(),e)}function g$(e){return gL(gA(e))}function gw(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function gk(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let gx=null;function gC(){return null==gx&&(gx=new Intl.DateTimeFormat().resolvedOptions().timeZone),gx}function gE(e){return e.subtract({days:e.day-1})}function gS(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gD(e,t,n){let r=gb(e,t,n);return e.subtract({days:r})}let gz=new Map;function gB(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function gO(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function gM(e){return gP(gp((e=gW(e,new gh)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gP(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function gT(e,t){if("UTC"===t)return 0;if(e>0&&t===gC())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:i,hour:a,minute:o,second:s}=gN(e,t);return gP(n,r,i,a,o,s,0)-1e3*Math.floor(e/1e3)}let gI=new Map;function gN(e,t){let n=gI.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),gI.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function gF(e,t,n="compatible"){var r,i,a;let o=gV(e);if("UTC"===t)return gM(o);if(t===gC()&&"compatible"===n){o=gW(o,new gh);let e=new Date,t=gp(o.era,o.year);return e.setFullYear(t,o.month-1,o.day),e.setHours(o.hour,o.minute,o.second,o.millisecond),e.getTime()}let s=gM(o),c=gT(s-864e5,t),l=gT(s+864e5,t),u=(r=o,((i=s-c)==(a=s-l)?[i]:[i,a]).filter(e=>{var n;let i;return n=r,i=gN(e,t),n.year===i.year&&n.month===i.month&&n.day===i.day&&n.hour===i.hour&&n.minute===i.minute&&n.second===i.second}));if(1===u.length)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(s-c,s-l);case"compatible":case"later":return Math.max(s-c,s-l);case"reject":throw RangeError("No such absolute time found")}}function gj(e,t,n="compatible"){return new Date(gF(e,t,n))}function gR(e,t){let n=gT(e,t),r=new Date(e+n),i=r.getUTCFullYear();return new _c(i<1?"BC":"AD",i<1?-i+1:i,r.getUTCMonth()+1,r.getUTCDate(),t,n,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function gL(e){return new _n(e.calendar,e.era,e.year,e.month,e.day)}function gV(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new _o(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function gW(e,t){if(gv(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,gK(r),r}function gG(e,t){let n=e.copy(),r="hour"in n?g0(n,t):0;gH(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,gU(n),gq(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,gU(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,gU(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=null==(a=(o=n.calendar).isInverseEra)?void 0:a.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function gH(e,t){var n,r;(null==(n=(r=e.calendar).isInverseEra)?void 0:n.call(r,e))&&(t=-t),e.year+=t}function gU(e){for(;e.month<1;)gH(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,gH(e,1)}function gq(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 gK(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gq(e)}function gZ(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function gY(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),gK(n),n}function gJ(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),gX(n),n}function gX(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 gQ(e,t){let n=e%t;return n<0&&(n+=t),n}function g0(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=gQ(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=gQ(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=gQ(e.minute,60),n=Math.floor(e.hour/24),e.hour=gQ(e.hour,24),n}function g1(e,t){let n=e.copy();return g0(n,t),n}function g2(e,t,n,r){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=g4(a,n,0,t.length-1,null==r?void 0:r.round),i.era=t[a],gK(i);break}case"year":var a,o;(null==(a=(o=i.calendar).isInverseEra)?void 0:a.call(o,i))&&(n=-n),i.year=g4(e.year,n,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=g4(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=g4(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),gK(i),i}function g3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if((null==r?void 0:r.hourCycle)===12){let e=t>=12;a=12*!!e,o=e?23:11}i.hour=g4(t,n,a,o,null==r?void 0:r.round);break}case"minute":i.minute=g4(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":i.second=g4(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=g4(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return i}function g4(e,t,n,r,i=!1){if(i){(e+=Math.sign(t))<n&&(e=r);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function g5(e,t){let n;return n=(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?gF(gG(gV(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):gM(e)-e.offset)+(t.milliseconds||0),n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),gW(gR(n+=36e5*(t.hours||0),e.timeZone),e.calendar)}function g6(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 g8(e){let t,n=gW(e,new gh);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function g7(e){return`${g8(e)}T${g6(e)}`}function g9(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}function _e(e){let t,n="object"==typeof e[0]?e.shift():new gh;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var _t=new WeakMap;class _n{copy(){return this.era?new _n(this.calendar,this.era,this.year,this.month,this.day):new _n(this.calendar,this.year,this.month,this.day)}add(e){return gG(this,e)}subtract(e){return gG(this,gZ(e))}set(e){return gY(this,e)}cycle(e,t,n){return g2(this,e,t,n)}toDate(e){return gj(this,e)}toString(){return g8(this)}compare(e){return gw(this,e)}constructor(...e){g9(this,_t,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,gK(this)}}var _r=new WeakMap;class _i{copy(){return new _i(this.hour,this.minute,this.second,this.millisecond)}add(e){return g1(this,e)}subtract(e){return g1(this,gZ(e))}set(e){return gJ(this,e)}cycle(e,t,n){return g3(this,e,t,n)}toString(){return g6(this)}compare(e){return gk(this)-gk(e)}constructor(e=0,t=0,n=0,r=0){g9(this,_r,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,gX(this)}}var _a=new WeakMap;class _o{copy(){return this.era?new _o(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new _o(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return gG(this,e)}subtract(e){return gG(this,gZ(e))}set(e){return gY(gJ(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return g2(this,e,t,n);default:return g3(this,e,t,n)}}toDate(e,t){return gj(this,e,t)}toString(){return g7(this)}compare(e){let t=gw(this,e);if(0===t){var n;return n=gV(e),gk(this)-gk(n)}return t}constructor(...e){g9(this,_a,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,gK(this)}}var _s=new WeakMap;class _c{copy(){return this.era?new _c(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new _c(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return g5(this,e)}subtract(e){return g5(this,gZ(e))}set(e,t){let n,r;return 0===(r=gJ(gY(n=gV(this),e),e)).compare(n)?this:gW(gR(gF(r,this.timeZone,t),this.timeZone),this.calendar)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,i=23;if((null==r?void 0:r.hourCycle)===12){let n=e.hour>=12;t=12*!!n,i=n?23:11}let a=gV(e),o=gW(gJ(a,{hour:t}),new gh),s=[gF(o,e.timeZone,"earlier"),gF(o,e.timeZone,"later")].filter(t=>gR(t,e.timeZone).day===o.day)[0],c=gW(gJ(a,{hour:i}),new gh),l=[gF(c,e.timeZone,"earlier"),gF(c,e.timeZone,"later")].filter(t=>gR(t,e.timeZone).day===c.day).pop(),u=gM(e)-e.offset,p=Math.floor(u/36e5),d=u%36e5;return gW(gR(u=36e5*g4(p,n,Math.floor(s/36e5),Math.floor(l/36e5),null==r?void 0:r.round)+d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return g3(e,t,n,r);case"era":case"year":case"month":case"day":return gW(gR(gF(g2(gV(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return new Date(gM(this)-this.offset)}toString(){var e;let t,n,r;return`${g7(this)}${t=0>Math.sign(e=this.offset)?"-":"+",n=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,t,n){if(e instanceof _c){var r,i;return e.timeZone===t?e:(r=e,i=t,gW(gR(gM(r)-r.offset,i),r.calendar))}return gR(gF(e,t,void 0),t)})(e,this.timeZone).toDate().getTime()}constructor(...e){g9(this,_s,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,gK(this)}}class _l extends gh{fromJulianDay(e){let t=super.fromJulianDay(e);return new _n(this,gp(t.era,t.year)- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(_u(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(_u(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function _u(e){let[t,n]=gd(e.year+-543);return new _n(t,n,e.month,e.day)}function _p(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function _d(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-_p(e,n,1,1))/30),i=t+1-_p(e,n,r,1);return[n,r,i]}function _f(e){return Math.floor(e%4/3)}function _h(e,t){return t%13!=0?30:_f(e)+5}class _m{fromJulianDay(e){let[t,n,r]=_d(1723856,e),i="AM";return t<=0&&(i="AA",t+=5500),new _n(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),_p(1723856,t,e.month,e.day)}getDaysInMonth(e){return _h(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+_f(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _g extends _m{fromJulianDay(e){let[t,n,r]=_d(1723856,e);return new _n(this,"AA",t+=5500,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class __ extends _m{fromJulianDay(e){let[t,n,r]=_d(1824665,e),i="CE";return t<=0&&(i="BCE",t=1-t),new _n(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_p(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_h(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let _v=765433;function _y(e){return 7>gc(7*e+1,19)}function _b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>gc(3*(n+1),7)&&(n+=1),n}function _A(e){let t,n;return _b(e)+(t=_b(e-1),n=_b(e),_b(e+1)-n==356?2:+(n-t==382))}function _$(e){return _A(e+1)-_A(e)}function _w(e,t){if(t>=6&&!_y(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=_$(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!_y(e):30}class _k{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/_v*19+234)/235)+1,r=_A(n),i=Math.floor(t-r);for(;i<1;)i=Math.floor(t-(r=_A(--n)));let a=1,o=0;for(;o<i;)o+=_w(n,a),a++;let s=i-(o-=_w(n,--a));return new _n(this,n,a,s)}toJulianDay(e){let t=_A(e.year);for(let n=1;n<e.month;n++)t+=_w(e.year,n);return t+e.day+347997}getDaysInMonth(e){return _w(e.year,e.month)}getMonthsInYear(e){return _y(e.year)?13:12}getDaysInYear(e){return _$(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(_y(t.year)&&!_y(e.year)&&t.month>6?e.month--:!_y(t.year)&&_y(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _x extends gh{fromJulianDay(e){let t,n,r,i=super.fromJulianDay(e),a=i.year-78,o=e-gl(i.era,i.year,1,1);if(o<80?(a--,o+=(t=gu(i.year-1)?31:30)+155+90+10):(t=gu(i.year)?31:30,o-=80),o<t)n=1,r=o+1;else{let e=o-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new _n(this,a,n,r)}toJulianDay(e){let t,n,[r,i]=gd(e.year+78);return(gu(i)?(t=31,n=gl(r,i,3,21)):(t=30,n=gl(r,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&gu(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 _C(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function _E(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+_C(t,r,1,1)))/29.5)+1),a=n-_C(t,r,i,1)+1;return new _n(e,r,i,a)}function _S(e){return(14+11*e)%30<11}class _D{fromJulianDay(e){return _E(this,1948440,e)}toJulianDay(e){return _C(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&_S(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return _S(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _z extends _D{fromJulianDay(e){return _E(this,1948439,e)}toJulianDay(e){return _C(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _B(e){return 460322+c[e-1300]}function _O(e,t){return(s[e-1300]&1<<11-(t-1))==0?29:30}function _M(e,t){let n=_B(e);for(let r=1;r<t;r++)n+=_O(e,r);return n}function _P(e){return c[e+1-1300]-c[e-1300]}class _T extends _D{fromJulianDay(e){let t=e-1948440,n=_B(1300),r=_B(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-_B(++e)+1;let i=_P(e);if(r===i){n=12;break}if(r<i){let t=_O(e,n);for(n=1;r>t;)r-=t,t=_O(e,++n);break}}return new _n(this,e,n,t-_M(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_M(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_O(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_P(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!c){c=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){c[t-1300]=e;for(let n=1;n<=12;n++)e+=_O(t,n)}}}}let _I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_N=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_F=[1867,1911,1925,1988,2018],_j=["meiji","taisho","showa","heisei","reiwa"];function _R(e){let t=_I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?_I.length-1:0===t?0:t-1}function _L(e){let t=_F[_j.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new _n(e.year+t,e.month,e.day)}class _V extends gh{fromJulianDay(e){let t=super.fromJulianDay(e),n=_R(t);return new _n(this,_j[n],t.year-_F[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(_L(e))}balanceDate(e){let t=_L(e),n=_R(t);_j[n]!==e.era&&(e.era=_j[n],e.year=t.year-_F[n]),this.constrainDate(e)}constrainDate(e){let t=_j.indexOf(e.era),n=_N[t];if(null!=n){let[r,i,a]=n,o=r-_F[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,n,r]=_I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return _j}getYearsInEra(e){let t=_j.indexOf(e.era),n=_I[t],r=_I[t+1];if(null==r)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(_L(e))}getMinimumMonthInYear(e){let t=_W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=_W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function _W(e){if(1===e.year)return _I[_j.indexOf(e.era)]}let _G=[0,31,62,93,124,155,186,216,246,276,306,336];class _H{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=r<216?Math.floor(r/31):Math.floor((r-6)/30),a=r-_G[i]+1;return new _n(this,n,i+1,a)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=_G[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>gc(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function _U(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function _q(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class _K extends gh{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=_q(gp(t.era,t.year));return new _n(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(_Z(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=_q(_U(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(_Z(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function _Z(e){let[t,n]=gd(_U(e));return new _n(t,n,e.month,e.day)}function _Y(e){switch(e){case"buddhist":return new _l;case"ethiopic":return new _m;case"ethioaa":return new _g;case"coptic":return new __;case"hebrew":return new _k;case"indian":return new _x;case"islamic-civil":return new _D;case"islamic-tbla":return new _z;case"islamic-umalqura":return new _T;case"japanese":return new _V;case"persian":return new _H;case"roc":return new _K;default:return new gh}}let _J=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_X=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _Q(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return _J.has(t.script)}let t=e.split("-")[0];return _X.has(t)}let _0={prefix:String(Math.round(1e10*Math.random())),current:0},_1=fb.createContext(_0),_2=fb.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let _3=new WeakMap,_4="function"==typeof fb.useId?function(e){let t=fb.useId(),[n]=(0,fb.useState)(_7()),r=n?"react-aria":`react-aria${_0.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,fb.useContext)(_1),n=function(e=!1){let t=(0,fb.useContext)(_1),n=(0,fb.useRef)(null);if(null===n.current&&!e){var r,i;let e=null==(i=fb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=i.ReactCurrentOwner)?void 0:r.current;if(e){let n=_3.get(e);null==n?_3.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,_3.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function _5(){return!1}function _6(){return!0}function _8(e){return()=>{}}function _7(){return"function"==typeof fb.useSyncExternalStore?fb.useSyncExternalStore(_8,_5,_6):(0,fb.useContext)(_2)}let _9=Symbol.for("react-aria.i18n.locale");function ve(){let e="undefined"!=typeof window&&window[_9]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_Q(e)?"rtl":"ltr"}}let vt=ve(),vn=new Set;function vr(){for(let e of(vt=ve(),vn))e(vt)}function vi(){let e=_7(),[t,n]=(0,fb.useState)(vt);return((0,fb.useEffect)(()=>(0===vn.size&&window.addEventListener("languagechange",vr),vn.add(n),()=>{vn.delete(n),0===vn.size&&window.removeEventListener("languagechange",vr)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let va=fb.createContext(null);function vo(e){let{locale:t,children:n}=e,r=vi(),i=fb.useMemo(()=>t?{locale:t,direction:_Q(t)?"rtl":"ltr"}:r,[r,t]);return fb.createElement(va.Provider,{value:i},n)}function vs(){let e=vi();return(0,fb.useContext)(va)||e}function vc(e){let t=(0,fb.useRef)(null),n=(0,fb.useRef)(void 0),r=(0,fb.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,fb.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}function vl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function vu(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let vp="undefined"!=typeof document?fb.useLayoutEffect:()=>{};function vd(e){let t=(0,fb.useRef)(null);return vp(()=>{t.current=e},[e]),(0,fb.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}let vf=!!("undefined"!=typeof window&&window.document&&window.document.createElement),vh=new Map;function vm(e){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(null),i=_4(t),a=(0,fb.useRef)(null);if(l&&l.register(a,i),vf){let e=vh.get(i);e&&!e.includes(r)?e.push(r):vh.set(i,[r])}return vp(()=>()=>{l&&l.unregister(a),vh.delete(i)},[i]),(0,fb.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function vg(e=[]){let t=vm(),[n,r]=function(e){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(null),i=vd(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}t===e.value?i():n(e.value)});vp(()=>{r.current&&i()});let a=vd(e=>{r.current=e(t),i()});return[t,a]}(t),i=(0,fb.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return vp(i,[t,i,...e]),n}"undefined"!=typeof FinalizationRegistry&&(l=new FinalizationRegistry(e=>{vh.delete(e)}));let v_=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r};function vv(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=vu(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=v_(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=vh.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=vh.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}let vy=Symbol("default");function vb({values:e,children:t}){for(let[n,r]of e)t=fb.createElement(n.Provider,{value:r},t);return t}function vA(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s}=e;return(0,fb.useMemo)(()=>{let e,c,l;return e="function"==typeof t?t({...s,defaultClassName:i}):t,c="function"==typeof n?n({...s,defaultStyle:o||{}}):n,l="function"==typeof r?r({...s,defaultChildren:a}):null==r?a:r,{className:null!=e?e:i,style:c||o?{...o,...c}:void 0,children:null!=l?l:a,"data-rac":""}},[t,n,r,i,a,o,s])}function v$(e,t){let n=(0,fb.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||vy;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function vw(e,t,n){let{ref:r,...i}=v$(n,e.slot)||{},a=vc((0,fb.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=vl(e,t);return n||(n="function"==typeof r),r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():vl(e[n],null)})}}})(t,r),[t,r])),o=vv(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&("function"==typeof i.style||"function"==typeof e.style?o.style=t=>{let n="function"==typeof i.style?i.style(t):i.style,r={...t.defaultStyle,...n},a="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:o.style={...i.style,...e.style}),[o,a]}function vk(e=!0){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(!1),i=(0,fb.useCallback)(e=>{r.current=!0,n(!!e)},[]);return vp(()=>{r.current||n(!1)},[]),[i,t]}function vx(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}let vC=(0,fb.createContext)(null),vE=null;function vS(e,t="assertive",n=7e3){vE?vE.announce(e,t,n):(vE=new vD,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?vE.announce(e,t,n):setTimeout(()=>{(null==vE?void 0:vE.isAttached())&&(null==vE||vE.announce(e,t,n))},100))}class vD{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,i;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===t?null==(r=this.assertiveLog)||r.appendChild(a):null==(i=this.politeLog)||i.appendChild(a),""!==e&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"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 vz=new Set(["id"]),vB=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vO=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vM=/^(data-.*)$/;function vP(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(vz.has(t)||n&&vB.has(t)||r&&vO.has(t)||(null==i?void 0:i.has(t))||vM.test(t))&&(a[t]=e[t]);return a}let vT=["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"])'],vI=vT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let vN=vT.join(':not([hidden]):not([tabindex="-1"]),');function vF(e){return e.matches(vI)}function vj(e){return e.matches(vN)}let vR=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},vL=e=>e&&"window"in e&&e.window===e?e:vR(e).defaultView||window;function vV(e){if(function(){if(null==vW){vW=!1;try{document.createElement("div").focus({get preventScroll(){return vW=!0,!0}})}catch{}}return vW}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let vW=null;function vG(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function vH(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function vU(e){let t=(0,fb.useRef)({isFocused:!1,observer:null});vp(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=vd(t=>{null==e||e(t)});return(0,fb.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(vG(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let vq=!1;function vK(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function vZ(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function vY(e){let t=null;return()=>(null==t&&(t=e()),t)}let vJ=vY(function(){return vZ(/^Mac/i)}),vX=vY(function(){return vZ(/^iPhone/i)}),vQ=vY(function(){return vZ(/^iPad/i)||vJ()&&navigator.maxTouchPoints>1}),v0=vY(function(){return vX()||vQ()});vY(function(){return vJ()||v0()});let v1=vY(function(){return vK(/AppleWebKit/i)&&!v2()}),v2=vY(function(){return vK(/Chrome/i)}),v3=vY(function(){return vK(/Android/i)}),v4=vY(function(){return vK(/Firefox/i)}),v5=new Map,v6=new Set;function v8(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=v5.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),v5.delete(n.target)),0===v5.size)){for(let e of v6)e();v6.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=v5.get(n.target);r||(r=new Set,v5.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function v7(e){requestAnimationFrame(()=>{for(let[e]of v5)"isConnected"in e&&!e.isConnected&&v5.delete(e);0===v5.size?e():v6.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?v8():document.addEventListener("DOMContentLoaded",v8));let v9="default",ye="",yt=new WeakMap;function yn(e){if(v0())"disabled"===v9&&(v9="restoring",setTimeout(()=>{v7(()=>{if("restoring"===v9){let t=vR(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=ye||""),ye="",v9="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yt.has(e)){let t=yt.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),yt.delete(e)}}let yr=fb.createContext({register:()=>{}});function yi(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ya(e,t,n){var r=yi(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}function yo(e,t){vp(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ys(){let e=(0,fb.useRef)(new Map),t=(0,fb.useCallback)((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,fb.useCallback)((t,n,r,i)=>{var a;let o=(null==(a=e.current.get(r))?void 0:a.fn)||r;t.removeEventListener(n,o,i),e.current.delete(r)},[]),r=(0,fb.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,fb.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}yr.displayName="PressResponderContext";function yc(e,t){return!!t&&!!e&&e.contains(t)}let yl=(e=document)=>e.activeElement;function yu(e){return e.target}function yp(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;v4()&&(null==(i=window.event)||null==(r=i.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(vJ()?a=!0:o=!0);let l=v1()&&vJ()&&!vQ()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,bubbles:!0,cancelable:!0});yp.isOpening=n,vV(e),e.dispatchEvent(l),yp.isOpening=!1}function yd(e){return 0===e.mozInputSource&&!!e.isTrusted||(v3()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yp.isOpening=!1;var yf=new WeakMap;class yh{continuePropagation(){ya(this,yf,!1)}get shouldStopPropagation(){var e;return e=yi(this,yf,"get"),e.get?e.get.call(this):e.value}constructor(e,t,n,r){var i;g9(this,yf,{writable:!0,value:void 0}),ya(this,yf,!0);let a=null!=(i=null==r?void 0:r.target)?i:n.currentTarget,o=null==a?void 0:a.getBoundingClientRect(),s,c=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),o&&(null!=l&&null!=u?(s=l-o.left,c=u-o.top):(s=o.width/2,c=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}let ym=Symbol("linkClicked"),yg="react-aria-pressable-style",y_="data-react-aria-pressable";function yv(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:d,...f}=function(e){let t=(0,fb.useContext)(yr);if(t){let{register:n,...r}=t;e=vv(r,e),n()}return yo(t,e.ref),e}(e),[h,m]=(0,fb.useState)(!1),g=(0,fb.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:y}=ys(),b=vd((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new yh("pressstart",t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,m(!0),a}),A=vd((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new yh("pressend",r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),m(!1),t&&a&&!s){let n=new yh("press",r,e);t(n),c&&(c=n.shouldStopPropagation)}return o.isTriggeringEvent=!1,c}),$=vd((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new yh("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=vd(e=>{let t=g.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&A(yA(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),p||yn(t.target),t.disposables))n();t.disposables=[]}}),k=vd(e=>{u&&w(e)}),x=vd(e=>{null==o||o(e)}),C=vd((e,t)=>{if(o){let n=new MouseEvent("click",e);vH(n,t),o(vG(n))}}),E=(0,fb.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(yb(t.nativeEvent,t.currentTarget)&&yc(t.currentTarget,yu(t.nativeEvent))){var r;y$(yu(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=b(t,"keyboard");let r=t.currentTarget;v(vR(t.currentTarget),"keyup",vu(t=>{yb(t,r)&&!t.repeat&&yc(r,yu(t))&&e.target&&$(yA(e.target,t),"keyboard")},n),!0)}i&&t.stopPropagation(),t.metaKey&&vJ()&&(null==(r=e.metaKeyEvents)||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||yc(t.currentTarget,yu(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!yp.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||yd(t.nativeEvent))){let e=b(t,"virtual"),r=$(t,"virtual"),i=A(t,"virtual");x(t),n=e&&r&&i}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",i=$(yA(t.currentTarget,t),r),a=A(yA(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,x(t),w(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&yb(t,e.target)){y$(yu(t),t.key)&&t.preventDefault();let n=yu(t),i=yc(e.target,yu(t));A(yA(e.target,t),"keyboard",i),i&&C(t,e.target),y(),"Enter"!==t.key&&yy(e.target)&&yc(e.target,n)&&!t[ym]&&(t[ym]=!0,yp(e.target,t,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(t.key)}else if("Meta"===t.key&&(null==(n=e.metaKeyEvents)?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null==(i=e.target)||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!yc(t.currentTarget,yu(t.nativeEvent)))return;if(i=t.nativeEvent,!v3()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||function(e){if(v0()){if("default"===v9){let t=vR(e);ye=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}v9="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";yt.set(e,e.style[t]),e.style[t]="none"}}(e.target),a=b(t,e.pointerType);let i=yu(t.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(t.pointerId),v(vR(t.currentTarget),"pointerup",n,!1),v(vR(t.currentTarget),"pointercancel",r,!1)}a&&t.stopPropagation()},t.onMouseDown=t=>{if(yc(t.currentTarget,yu(t.nativeEvent))&&0===t.button){if(l){let n=function(e){for(;e&&!vF(e);)e=e.parentElement;let t=vL(e),n=t.document.activeElement;if(!n||n===e)return;vq=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,vV(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,vV(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),vq=!1,r=!1},l=requestAnimationFrame(c);return c}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{yc(t.currentTarget,yu(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||$(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,b(yA(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(yA(e.target,t),e.pointerType,!1),k(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(yc(e.target,yu(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?w(t):(vV(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(t);e.isOverTarget=!1}},r=e=>{w(e)};t.onDragStart=e=>{yc(e.currentTarget,yu(e.nativeEvent))&&w(e)}}return t},[v,s,l,y,p,w,k,A,b,$,x,C]);return(0,fb.useEffect)(()=>{if(!d)return;let e=vR(d.current);if(!e||!e.head||e.getElementById(yg))return;let t=e.createElement("style");t.id=yg,t.textContent=`
|
|
32
|
+
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,t)}}function ma(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mo=ma();function ms(e,t){if(mo){if("string"==typeof t)if(t.startsWith("http"))return mu(e,t);else try{let n=JSON.parse(t);if(mp(n))return mu(e,n);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}else if(t instanceof URL)return mu(e,t.toString());else if(mp(t))return mu(e,t);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`,t)}}function mc(e){mo&&localStorage.removeItem(h6+e)}function ml(){if(mo)for(let e of Object.keys(localStorage))e.startsWith(h6)&&localStorage.removeItem(e)}function mu(e,t){localStorage.setItem(h6+e,JSON.stringify(t))}function mp(e){if(e&&"object"==typeof e){let t=Object.prototype.hasOwnProperty;return!(t.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||t.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||t.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||t.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function md(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&mp(t))}var mf={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 mh(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<mf.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>mf.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>mf.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<mf.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>mf.SMALL_DESKTOP_MAX)}var mm=!1;function mg(){mm||(window.addEventListener("resize",mh),mh(),mm=!0)}var m_=n(16709),mv=n.n(m_),my=n(46062),mb=n.n(my),mA=n(44036),m$=n.n(mA),mw=n(96793),mk=n.n(mw),mx=n(17892),mC=n.n(mx),mE=n(11173),mS=n.n(mE),mD=n(42464),mz=n.n(mD),mB=n(6370),mO={};mO.styleTagTransform=mz(),mO.setAttributes=mC(),mO.insert=mk().bind(null,"head"),mO.domAPI=m$(),mO.insertStyleElement=mS(),mb()(mB.Z,mO);let mM=mB.Z&&mB.Z.locals?mB.Z.locals:void 0;function mP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e){var t,n=e.title,r=e.children,i="tablet"===hN();return fA().createElement("div",{className:mv()((mP(t={},mM.tabletHeader,i),mP(t,mM.desktopHeader,!i),t))},fA().createElement("h4",null,n),r)}var mI=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],mN={primaryColor:{_type:tb.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[nl.oneOf(mI)]},secondaryColor:{_type:tb.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[nl.oneOf(mI)]}},mF={"Brand color #1":{_default:"#005d5d",_type:tb.String},"Brand color #2":{_default:"#004144",_type:tb.String},"Brand color #3":{_default:"#007d79",_type:tb.String},excludePatientIdentifierCodeTypes:{uuids:{_type:tb.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:tb.UUID}}},implementationName:{_type:tb.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:tb.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:tb.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:[nl.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:tb.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:tb.String}},diagnosisTags:mN},mj=n(19331),mR=n(72530),mL={};mL.styleTagTransform=mz(),mL.setAttributes=mC(),mL.insert=mk().bind(null,"head"),mL.domAPI=m$(),mL.insertStyleElement=mS(),mb()(mR.Z,mL);let mV=mR.Z&&mR.Z.locals?mR.Z.locals:void 0;function mW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mH=(0,fb.createContext)(null);function mU(){var e=(0,fb.useContext)(mH);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function mq(e){var t,n=e.menuTitle,r=e.children,i=(t=fA().useState(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return mW(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mW(e,t)}}(t,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.")}()),a=i[0],o=i[1],s=hV(function(){return o(!1)},a),c="tablet"===hN(),l=(0,fb.useCallback)(function(){return o(function(e){return!e})},[]),u=(0,fb.useRef)(null),p=(0,fb.useRef)(null),d=(0,fb.useId)(),f="custom-overflow-menu-trigger-".concat(d),h="custom-overflow-menu-".concat(d),m=(0,fb.useCallback)(function(){var e;o(!1),null==(e=u.current)||e.focus()},[]),g=(0,fb.useMemo)(function(){return{closeMenu:m}},[m]),v=(0,fb.useCallback)(function(e){"Escape"===e.key&&a&&(e.stopPropagation(),m())},[m,a]),y=fb.Children.toArray(r);(0,fb.useEffect)(function(){if(a&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[a]);var b=(0,fb.useCallback)(function(e){e.currentIndex;var t,n,r,i,a,o,s=e.direction,c=null==(t=p.current)?void 0:t.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==c?void 0:c.length){var l=null!=(a=null==(r=document.activeElement)||null==(n=r.closest)?void 0:n.call(r,'[role="menuitem"]'))?a:document.activeElement,u=Array.from(c).indexOf(l);if(-1===u){null==(o=c[s>0?0:c.length-1])||o.focus();return}var d=u+s,f=d<0?c.length-1:d>=c.length?0:d;null==(i=c[f])||i.focus()}},[]),A=y.map(function(e,t){return(0,fb.isValidElement)(e)?(0,fb.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:b,index:t}):e});return fA().createElement("div",{"data-overflow-menu":!0,className:mv()("cds--overflow-menu",mV.container),ref:s},fA().createElement("button",{className:mv()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":a},mV.overflowMenuButton),"aria-controls":h,"aria-expanded":a,"aria-haspopup":"true",id:f,onClick:l,onKeyDown:v,ref:u},n),fA().createElement("div",{className:mv()("cds--overflow-menu-options","cds--overflow-menu--flip",mV.menu,mG({},mV.show,a)),"aria-labelledby":f,"data-floating-menu-direction":"bottom",id:h,onKeyDown:v,ref:p,role:"menu",tabIndex:-1},fA().createElement("ul",{className:mv()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c})},fA().createElement(mH.Provider,{value:g},A)),fA().createElement("span",null)))}function mK(e){var t,n,r=(0,fb.useContext)(mH);return fA().createElement(mj.laM,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){mG(e,t,n[t])})}return e}({},e),n=n={closeMenu:null==r?void 0:r.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function mZ(){return(mZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}(eu=ey||(ey={})).Pop="POP",eu.Push="PUSH",eu.Replace="REPLACE";let mY="popstate";function mJ(e,t){if(!1===e||null==e)throw Error(t)}function mX(e,t){return{usr:e.state,key:e.key,idx:t}}function mQ(e,t,n,r){return void 0===n&&(n=null),mZ({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m1(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function m0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m1(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(ep=eb||(eb={})).data="data",ep.deferred="deferred",ep.redirect="redirect",ep.error="error";function m2(){return(m2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Symbol("deferred");let m3=fb.createContext(null),m4=fb.createContext(null);function m5(){return null!=fb.useContext(m4)}fb.Component;let m6=(e,t,n)=>{};function m8(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ey.Pop,navigator:a,static:o=!1,future:s}=e;m5()&&mJ(!1);let c=t.replace(/^\/*/,"/"),l=fb.useMemo(()=>({basename:c,navigator:a,static:o,future:m2({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);"string"==typeof r&&(r=m1(r));let{pathname:u="/",search:p="",hash:d="",state:f=null,key:h="default"}=r,m=fb.useMemo(()=>{let e=function(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}(u,c);return null==e?null:{location:{pathname:e,search:p,hash:d,state:f,key:h},navigationType:i}},[c,u,p,d,f,h,i]);return null==m?null:fb.createElement(m3.Provider,{value:l},fb.createElement(m4.Provider,{children:n,value:m}))}fb.startTransition;var m7=((ed=m7||{})[ed.pending=0]="pending",ed[ed.success=1]="success",ed[ed.error=2]="error",ed);new Promise(()=>{}),fb.Component;var m9=n(3445);try{window.__reactRouterVersion="6"}catch(e){}let ge=fb.startTransition;function gt(e){let{basename:t,children:n,future:r,window:i}=e,a=fb.useRef();null==a.current&&(a.current=function(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=ey.Pop,c=null,l=u();function u(){return(o.state||{idx:null}).idx}function p(){s=ey.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:m0(e);return mJ(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==l&&(l=0,o.replaceState(mZ({},o.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error("A history only accepts one active listener");return i.addEventListener(mY,p),c=e,()=>{i.removeEventListener(mY,p),c=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=ey.Push;let n=mQ(f.location,e,t);let r=mX(n,l=u()+1),p=f.createHref(n);try{o.pushState(r,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(p)}a&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=ey.Replace;let r=mQ(f.location,e,t);n&&n(r,e);let i=mX(r,l=u()),p=f.createHref(r);o.replaceState(i,"",p),a&&c&&c({action:s,location:f.location,delta:0})},go:e=>o.go(e)};return f}(function(e,t){let{pathname:n,search:r,hash:i}=e.location;return mQ("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m0(t)},null,{window:i,v5Compat:!0}));let o=a.current,[s,c]=fb.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=fb.useCallback(e=>{l&&ge?ge(()=>c(e)):c(e)},[c,l]);return fb.useLayoutEffect(()=>o.listen(u),[o,u]),fb.useEffect(()=>{var e;(null==r?void 0:r.v7_startTransition)===void 0&&m6("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==r?void 0:r.v7_relativeSplatPath)===void 0&&m6("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),e&&(void 0===e.v7_fetcherPersist&&m6("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===e.v7_normalizeFormMethod&&m6("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===e.v7_partialHydration&&m6("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===e.v7_skipActionErrorRevalidation&&m6("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))},[r]),fb.createElement(m8,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}m9.flushSync,fb.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ef=eA||(eA={})).UseScrollRestoration="useScrollRestoration",ef.UseSubmit="useSubmit",ef.UseSubmitFetcher="useSubmitFetcher",ef.UseFetcher="useFetcher",ef.useViewTransitionState="useViewTransitionState",(eh=e$||(e$={})).UseFetcher="useFetcher",eh.UseFetchers="useFetchers",eh.UseScrollRestoration="useScrollRestoration";var gn=n(93798),gr=n(23148),gi={};gi.styleTagTransform=mz(),gi.setAttributes=mC(),gi.insert=mk().bind(null,"head"),gi.domAPI=m$(),gi.insertStyleElement=mS(),mb()(gr.Z,gi);let ga=gr.Z&&gr.Z.locals?gr.Z.locals:void 0;var go=function(e){var t=e.path,n=e.title,r=e.basePath,i=e.icon,a=(0,fZ.useTranslation)().t,o=(m5()||mJ(!1),fb.useContext(m4).location),s=(0,fb.useMemo)(function(){if(!t)return!1;var e,n=t.startsWith("/")?t.slice(1):t;if(n.startsWith("http"))return n===window.location.href;var r=n.split("/").map(function(e){return decodeURIComponent(e)}),i=(null!=(e=o.pathname)?e:"").split("/").slice(1).map(function(e){return decodeURIComponent(e)});return i.some(function(e,t){return r.every(function(e,n){return i[t+n]===e})})},[o.pathname,t]);return fA().createElement("div",{key:t},fA().createElement(gn.ConfigurableLink,{className:mv()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(t))},fA().createElement("span",{className:ga.menu},fA().createElement(gn.MaybeIcon,{icon:i,className:ga.icon,size:16}),fA().createElement("span",null,a(n)))))};function gs(e){return function(t){var n=t.basePath;return fA().createElement(gt,null,fA().createElement(go,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({basePath:n},e)))}}function gc(e,t){return e-t*Math.floor(e/t)}function gl(e,t,n,r){let i=(t=gp(e,t))-1,a=-2;return n<=2?a=0:gu(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function gu(e){return e%4==0&&(e%100!=0||e%400==0)}function gp(e,t){return"BC"===e?1-t:t}function gd(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let gf={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 gh{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),r=gc(t,146097),i=Math.floor(r/36524),a=gc(r,36524),o=Math.floor(a/1461),s=Math.floor(gc(a,1461)/365),[c,l]=gd(400*n+100*i+4*o+s+ +(4!==i&&4!==s)),u=e-gl(c,l,1,1),p=2;e<gl(c,l,3,1)?p=0:gu(l)&&(p=1);let d=Math.floor(((u+p)*12+373)/367),f=e-gl(c,l,d,1)+1;return new _n(c,l,d,f)}toJulianDay(e){return gl(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return gf[gu(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return gu(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 gm={"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 gg(e,t){return t=gW(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function g_(e,t){return gv(e.calendar,t.calendar)&&gg(e,t)}function gv(e,t){var n,r,i,a;return null!=(a=null!=(i=null==(n=e.isEqual)?void 0:n.call(e,t))?i:null==(r=t.isEqual)?void 0:r.call(t,e))?a:e.identifier===t.identifier}let gy={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function gb(e,t,n){let r,i=Math.ceil(e.calendar.toJulianDay(e)+1-(n?gy[n]:(r=function(e){if(Intl.Locale){let t=gz.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&gz.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(t))&&gm[r]||0))%7;return i<0&&(i+=7),i}function gA(e){return gR(Date.now(),e)}function g$(e){return gL(gA(e))}function gw(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function gk(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let gx=null;function gC(){return null==gx&&(gx=new Intl.DateTimeFormat().resolvedOptions().timeZone),gx}function gE(e){return e.subtract({days:e.day-1})}function gS(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gD(e,t,n){let r=gb(e,t,n);return e.subtract({days:r})}let gz=new Map;function gB(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function gO(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function gM(e){return gP(gp((e=gW(e,new gh)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gP(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function gT(e,t){if("UTC"===t)return 0;if(e>0&&t===gC())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:i,hour:a,minute:o,second:s}=gN(e,t);return gP(n,r,i,a,o,s,0)-1e3*Math.floor(e/1e3)}let gI=new Map;function gN(e,t){let n=gI.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),gI.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function gF(e,t,n="compatible"){var r,i,a;let o=gV(e);if("UTC"===t)return gM(o);if(t===gC()&&"compatible"===n){o=gW(o,new gh);let e=new Date,t=gp(o.era,o.year);return e.setFullYear(t,o.month-1,o.day),e.setHours(o.hour,o.minute,o.second,o.millisecond),e.getTime()}let s=gM(o),c=gT(s-864e5,t),l=gT(s+864e5,t),u=(r=o,((i=s-c)==(a=s-l)?[i]:[i,a]).filter(e=>{var n;let i;return n=r,i=gN(e,t),n.year===i.year&&n.month===i.month&&n.day===i.day&&n.hour===i.hour&&n.minute===i.minute&&n.second===i.second}));if(1===u.length)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(s-c,s-l);case"compatible":case"later":return Math.max(s-c,s-l);case"reject":throw RangeError("No such absolute time found")}}function gj(e,t,n="compatible"){return new Date(gF(e,t,n))}function gR(e,t){let n=gT(e,t),r=new Date(e+n),i=r.getUTCFullYear();return new _c(i<1?"BC":"AD",i<1?-i+1:i,r.getUTCMonth()+1,r.getUTCDate(),t,n,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function gL(e){return new _n(e.calendar,e.era,e.year,e.month,e.day)}function gV(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new _o(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function gW(e,t){if(gv(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,gK(r),r}function gG(e,t){let n=e.copy(),r="hour"in n?g0(n,t):0;gH(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,gU(n),gq(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,gU(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,gU(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=null==(a=(o=n.calendar).isInverseEra)?void 0:a.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function gH(e,t){var n,r;(null==(n=(r=e.calendar).isInverseEra)?void 0:n.call(r,e))&&(t=-t),e.year+=t}function gU(e){for(;e.month<1;)gH(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,gH(e,1)}function gq(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 gK(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gq(e)}function gZ(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function gY(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),gK(n),n}function gJ(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),gX(n),n}function gX(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 gQ(e,t){let n=e%t;return n<0&&(n+=t),n}function g0(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=gQ(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=gQ(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=gQ(e.minute,60),n=Math.floor(e.hour/24),e.hour=gQ(e.hour,24),n}function g1(e,t){let n=e.copy();return g0(n,t),n}function g2(e,t,n,r){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=g4(a,n,0,t.length-1,null==r?void 0:r.round),i.era=t[a],gK(i);break}case"year":var a,o;(null==(a=(o=i.calendar).isInverseEra)?void 0:a.call(o,i))&&(n=-n),i.year=g4(e.year,n,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=g4(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=g4(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),gK(i),i}function g3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if((null==r?void 0:r.hourCycle)===12){let e=t>=12;a=12*!!e,o=e?23:11}i.hour=g4(t,n,a,o,null==r?void 0:r.round);break}case"minute":i.minute=g4(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":i.second=g4(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=g4(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return i}function g4(e,t,n,r,i=!1){if(i){(e+=Math.sign(t))<n&&(e=r);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function g5(e,t){let n;return n=(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?gF(gG(gV(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):gM(e)-e.offset)+(t.milliseconds||0),n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),gW(gR(n+=36e5*(t.hours||0),e.timeZone),e.calendar)}function g6(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 g8(e){let t,n=gW(e,new gh);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function g7(e){return`${g8(e)}T${g6(e)}`}function g9(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}function _e(e){let t,n="object"==typeof e[0]?e.shift():new gh;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var _t=new WeakMap;class _n{copy(){return this.era?new _n(this.calendar,this.era,this.year,this.month,this.day):new _n(this.calendar,this.year,this.month,this.day)}add(e){return gG(this,e)}subtract(e){return gG(this,gZ(e))}set(e){return gY(this,e)}cycle(e,t,n){return g2(this,e,t,n)}toDate(e){return gj(this,e)}toString(){return g8(this)}compare(e){return gw(this,e)}constructor(...e){g9(this,_t,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,gK(this)}}var _r=new WeakMap;class _i{copy(){return new _i(this.hour,this.minute,this.second,this.millisecond)}add(e){return g1(this,e)}subtract(e){return g1(this,gZ(e))}set(e){return gJ(this,e)}cycle(e,t,n){return g3(this,e,t,n)}toString(){return g6(this)}compare(e){return gk(this)-gk(e)}constructor(e=0,t=0,n=0,r=0){g9(this,_r,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,gX(this)}}var _a=new WeakMap;class _o{copy(){return this.era?new _o(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new _o(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return gG(this,e)}subtract(e){return gG(this,gZ(e))}set(e){return gY(gJ(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return g2(this,e,t,n);default:return g3(this,e,t,n)}}toDate(e,t){return gj(this,e,t)}toString(){return g7(this)}compare(e){let t=gw(this,e);if(0===t){var n;return n=gV(e),gk(this)-gk(n)}return t}constructor(...e){g9(this,_a,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,gK(this)}}var _s=new WeakMap;class _c{copy(){return this.era?new _c(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new _c(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return g5(this,e)}subtract(e){return g5(this,gZ(e))}set(e,t){let n,r;return 0===(r=gJ(gY(n=gV(this),e),e)).compare(n)?this:gW(gR(gF(r,this.timeZone,t),this.timeZone),this.calendar)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,i=23;if((null==r?void 0:r.hourCycle)===12){let n=e.hour>=12;t=12*!!n,i=n?23:11}let a=gV(e),o=gW(gJ(a,{hour:t}),new gh),s=[gF(o,e.timeZone,"earlier"),gF(o,e.timeZone,"later")].filter(t=>gR(t,e.timeZone).day===o.day)[0],c=gW(gJ(a,{hour:i}),new gh),l=[gF(c,e.timeZone,"earlier"),gF(c,e.timeZone,"later")].filter(t=>gR(t,e.timeZone).day===c.day).pop(),u=gM(e)-e.offset,p=Math.floor(u/36e5),d=u%36e5;return gW(gR(u=36e5*g4(p,n,Math.floor(s/36e5),Math.floor(l/36e5),null==r?void 0:r.round)+d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return g3(e,t,n,r);case"era":case"year":case"month":case"day":return gW(gR(gF(g2(gV(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return new Date(gM(this)-this.offset)}toString(){var e;let t,n,r;return`${g7(this)}${t=0>Math.sign(e=this.offset)?"-":"+",n=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,t,n){if(e instanceof _c){var r,i;return e.timeZone===t?e:(r=e,i=t,gW(gR(gM(r)-r.offset,i),r.calendar))}return gR(gF(e,t,void 0),t)})(e,this.timeZone).toDate().getTime()}constructor(...e){g9(this,_s,{writable:!0,value:void 0});let[t,n,r,i,a]=_e(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,gK(this)}}class _l extends gh{fromJulianDay(e){let t=super.fromJulianDay(e);return new _n(this,gp(t.era,t.year)- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(_u(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(_u(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function _u(e){let[t,n]=gd(e.year+-543);return new _n(t,n,e.month,e.day)}function _p(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function _d(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-_p(e,n,1,1))/30),i=t+1-_p(e,n,r,1);return[n,r,i]}function _f(e){return Math.floor(e%4/3)}function _h(e,t){return t%13!=0?30:_f(e)+5}class _m{fromJulianDay(e){let[t,n,r]=_d(1723856,e),i="AM";return t<=0&&(i="AA",t+=5500),new _n(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),_p(1723856,t,e.month,e.day)}getDaysInMonth(e){return _h(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+_f(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _g extends _m{fromJulianDay(e){let[t,n,r]=_d(1723856,e);return new _n(this,"AA",t+=5500,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class __ extends _m{fromJulianDay(e){let[t,n,r]=_d(1824665,e),i="CE";return t<=0&&(i="BCE",t=1-t),new _n(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_p(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_h(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let _v=765433;function _y(e){return 7>gc(7*e+1,19)}function _b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>gc(3*(n+1),7)&&(n+=1),n}function _A(e){let t,n;return _b(e)+(t=_b(e-1),n=_b(e),_b(e+1)-n==356?2:+(n-t==382))}function _$(e){return _A(e+1)-_A(e)}function _w(e,t){if(t>=6&&!_y(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=_$(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!_y(e):30}class _k{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/_v*19+234)/235)+1,r=_A(n),i=Math.floor(t-r);for(;i<1;)i=Math.floor(t-(r=_A(--n)));let a=1,o=0;for(;o<i;)o+=_w(n,a),a++;let s=i-(o-=_w(n,--a));return new _n(this,n,a,s)}toJulianDay(e){let t=_A(e.year);for(let n=1;n<e.month;n++)t+=_w(e.year,n);return t+e.day+347997}getDaysInMonth(e){return _w(e.year,e.month)}getMonthsInYear(e){return _y(e.year)?13:12}getDaysInYear(e){return _$(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(_y(t.year)&&!_y(e.year)&&t.month>6?e.month--:!_y(t.year)&&_y(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _x extends gh{fromJulianDay(e){let t,n,r,i=super.fromJulianDay(e),a=i.year-78,o=e-gl(i.era,i.year,1,1);if(o<80?(a--,o+=(t=gu(i.year-1)?31:30)+155+90+10):(t=gu(i.year)?31:30,o-=80),o<t)n=1,r=o+1;else{let e=o-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new _n(this,a,n,r)}toJulianDay(e){let t,n,[r,i]=gd(e.year+78);return(gu(i)?(t=31,n=gl(r,i,3,21)):(t=30,n=gl(r,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&gu(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 _C(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function _E(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+_C(t,r,1,1)))/29.5)+1),a=n-_C(t,r,i,1)+1;return new _n(e,r,i,a)}function _S(e){return(14+11*e)%30<11}class _D{fromJulianDay(e){return _E(this,1948440,e)}toJulianDay(e){return _C(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&_S(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return _S(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _z extends _D{fromJulianDay(e){return _E(this,1948439,e)}toJulianDay(e){return _C(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _B(e){return 460322+c[e-1300]}function _O(e,t){return(s[e-1300]&1<<11-(t-1))==0?29:30}function _M(e,t){let n=_B(e);for(let r=1;r<t;r++)n+=_O(e,r);return n}function _P(e){return c[e+1-1300]-c[e-1300]}class _T extends _D{fromJulianDay(e){let t=e-1948440,n=_B(1300),r=_B(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-_B(++e)+1;let i=_P(e);if(r===i){n=12;break}if(r<i){let t=_O(e,n);for(n=1;r>t;)r-=t,t=_O(e,++n);break}}return new _n(this,e,n,t-_M(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_M(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_O(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_P(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!c){c=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){c[t-1300]=e;for(let n=1;n<=12;n++)e+=_O(t,n)}}}}let _I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_N=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_F=[1867,1911,1925,1988,2018],_j=["meiji","taisho","showa","heisei","reiwa"];function _R(e){let t=_I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?_I.length-1:0===t?0:t-1}function _L(e){let t=_F[_j.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new _n(e.year+t,e.month,e.day)}class _V extends gh{fromJulianDay(e){let t=super.fromJulianDay(e),n=_R(t);return new _n(this,_j[n],t.year-_F[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(_L(e))}balanceDate(e){let t=_L(e),n=_R(t);_j[n]!==e.era&&(e.era=_j[n],e.year=t.year-_F[n]),this.constrainDate(e)}constrainDate(e){let t=_j.indexOf(e.era),n=_N[t];if(null!=n){let[r,i,a]=n,o=r-_F[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,n,r]=_I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return _j}getYearsInEra(e){let t=_j.indexOf(e.era),n=_I[t],r=_I[t+1];if(null==r)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(_L(e))}getMinimumMonthInYear(e){let t=_W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=_W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function _W(e){if(1===e.year)return _I[_j.indexOf(e.era)]}let _G=[0,31,62,93,124,155,186,216,246,276,306,336];class _H{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=r<216?Math.floor(r/31):Math.floor((r-6)/30),a=r-_G[i]+1;return new _n(this,n,i+1,a)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=_G[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>gc(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function _U(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function _q(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class _K extends gh{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=_q(gp(t.era,t.year));return new _n(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(_Z(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=_q(_U(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(_Z(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function _Z(e){let[t,n]=gd(_U(e));return new _n(t,n,e.month,e.day)}function _Y(e){switch(e){case"buddhist":return new _l;case"ethiopic":return new _m;case"ethioaa":return new _g;case"coptic":return new __;case"hebrew":return new _k;case"indian":return new _x;case"islamic-civil":return new _D;case"islamic-tbla":return new _z;case"islamic-umalqura":return new _T;case"japanese":return new _V;case"persian":return new _H;case"roc":return new _K;default:return new gh}}let _J=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_X=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _Q(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return _J.has(t.script)}let t=e.split("-")[0];return _X.has(t)}let _0={prefix:String(Math.round(1e10*Math.random())),current:0},_1=fb.createContext(_0),_2=fb.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let _3=new WeakMap,_4="function"==typeof fb.useId?function(e){let t=fb.useId(),[n]=(0,fb.useState)(_7()),r=n?"react-aria":`react-aria${_0.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,fb.useContext)(_1),n=function(e=!1){let t=(0,fb.useContext)(_1),n=(0,fb.useRef)(null);if(null===n.current&&!e){var r,i;let e=null==(i=fb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=i.ReactCurrentOwner)?void 0:r.current;if(e){let n=_3.get(e);null==n?_3.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,_3.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function _5(){return!1}function _6(){return!0}function _8(e){return()=>{}}function _7(){return"function"==typeof fb.useSyncExternalStore?fb.useSyncExternalStore(_8,_5,_6):(0,fb.useContext)(_2)}let _9=Symbol.for("react-aria.i18n.locale");function ve(){let e="undefined"!=typeof window&&window[_9]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_Q(e)?"rtl":"ltr"}}let vt=ve(),vn=new Set;function vr(){for(let e of(vt=ve(),vn))e(vt)}function vi(){let e=_7(),[t,n]=(0,fb.useState)(vt);return((0,fb.useEffect)(()=>(0===vn.size&&window.addEventListener("languagechange",vr),vn.add(n),()=>{vn.delete(n),0===vn.size&&window.removeEventListener("languagechange",vr)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let va=fb.createContext(null);function vo(e){let{locale:t,children:n}=e,r=vi(),i=fb.useMemo(()=>t?{locale:t,direction:_Q(t)?"rtl":"ltr"}:r,[r,t]);return fb.createElement(va.Provider,{value:i},n)}function vs(){let e=vi();return(0,fb.useContext)(va)||e}function vc(e){let t=(0,fb.useRef)(null),n=(0,fb.useRef)(void 0),r=(0,fb.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,fb.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}function vl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function vu(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let vp="undefined"!=typeof document?fb.useLayoutEffect:()=>{};function vd(e){let t=(0,fb.useRef)(null);return vp(()=>{t.current=e},[e]),(0,fb.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}let vf=!!("undefined"!=typeof window&&window.document&&window.document.createElement),vh=new Map;function vm(e){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(null),i=_4(t),a=(0,fb.useRef)(null);if(l&&l.register(a,i),vf){let e=vh.get(i);e&&!e.includes(r)?e.push(r):vh.set(i,[r])}return vp(()=>()=>{l&&l.unregister(a),vh.delete(i)},[i]),(0,fb.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function vg(e=[]){let t=vm(),[n,r]=function(e){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(null),i=vd(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}t===e.value?i():n(e.value)});vp(()=>{r.current&&i()});let a=vd(e=>{r.current=e(t),i()});return[t,a]}(t),i=(0,fb.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return vp(i,[t,i,...e]),n}"undefined"!=typeof FinalizationRegistry&&(l=new FinalizationRegistry(e=>{vh.delete(e)}));let v_=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r};function vv(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=vu(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=v_(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=vh.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=vh.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}let vy=Symbol("default");function vb({values:e,children:t}){for(let[n,r]of e)t=fb.createElement(n.Provider,{value:r},t);return t}function vA(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s}=e;return(0,fb.useMemo)(()=>{let e,c,l;return e="function"==typeof t?t({...s,defaultClassName:i}):t,c="function"==typeof n?n({...s,defaultStyle:o||{}}):n,l="function"==typeof r?r({...s,defaultChildren:a}):null==r?a:r,{className:null!=e?e:i,style:c||o?{...o,...c}:void 0,children:null!=l?l:a,"data-rac":""}},[t,n,r,i,a,o,s])}function v$(e,t){let n=(0,fb.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||vy;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function vw(e,t,n){let{ref:r,...i}=v$(n,e.slot)||{},a=vc((0,fb.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=vl(e,t);return n||(n="function"==typeof r),r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():vl(e[n],null)})}}})(t,r),[t,r])),o=vv(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&("function"==typeof i.style||"function"==typeof e.style?o.style=t=>{let n="function"==typeof i.style?i.style(t):i.style,r={...t.defaultStyle,...n},a="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:o.style={...i.style,...e.style}),[o,a]}function vk(e=!0){let[t,n]=(0,fb.useState)(e),r=(0,fb.useRef)(!1),i=(0,fb.useCallback)(e=>{r.current=!0,n(!!e)},[]);return vp(()=>{r.current||n(!1)},[]),[i,t]}function vx(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}let vC=(0,fb.createContext)(null),vE=null;function vS(e,t="assertive",n=7e3){vE?vE.announce(e,t,n):(vE=new vD,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?vE.announce(e,t,n):setTimeout(()=>{(null==vE?void 0:vE.isAttached())&&(null==vE||vE.announce(e,t,n))},100))}class vD{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,i;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===t?null==(r=this.assertiveLog)||r.appendChild(a):null==(i=this.politeLog)||i.appendChild(a),""!==e&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"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 vz=new Set(["id"]),vB=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vO=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vM=/^(data-.*)$/;function vP(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(vz.has(t)||n&&vB.has(t)||r&&vO.has(t)||(null==i?void 0:i.has(t))||vM.test(t))&&(a[t]=e[t]);return a}let vT=["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"])'],vI=vT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let vN=vT.join(':not([hidden]):not([tabindex="-1"]),');function vF(e){return e.matches(vI)}function vj(e){return e.matches(vN)}let vR=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},vL=e=>e&&"window"in e&&e.window===e?e:vR(e).defaultView||window;function vV(e){if(function(){if(null==vW){vW=!1;try{document.createElement("div").focus({get preventScroll(){return vW=!0,!0}})}catch{}}return vW}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let vW=null;function vG(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function vH(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function vU(e){let t=(0,fb.useRef)({isFocused:!1,observer:null});vp(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=vd(t=>{null==e||e(t)});return(0,fb.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(vG(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let vq=!1;function vK(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function vZ(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function vY(e){let t=null;return()=>(null==t&&(t=e()),t)}let vJ=vY(function(){return vZ(/^Mac/i)}),vX=vY(function(){return vZ(/^iPhone/i)}),vQ=vY(function(){return vZ(/^iPad/i)||vJ()&&navigator.maxTouchPoints>1}),v0=vY(function(){return vX()||vQ()});vY(function(){return vJ()||v0()});let v1=vY(function(){return vK(/AppleWebKit/i)&&!v2()}),v2=vY(function(){return vK(/Chrome/i)}),v3=vY(function(){return vK(/Android/i)}),v4=vY(function(){return vK(/Firefox/i)}),v5=new Map,v6=new Set;function v8(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=v5.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),v5.delete(n.target)),0===v5.size)){for(let e of v6)e();v6.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=v5.get(n.target);r||(r=new Set,v5.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function v7(e){requestAnimationFrame(()=>{for(let[e]of v5)"isConnected"in e&&!e.isConnected&&v5.delete(e);0===v5.size?e():v6.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?v8():document.addEventListener("DOMContentLoaded",v8));let v9="default",ye="",yt=new WeakMap;function yn(e){if(v0())"disabled"===v9&&(v9="restoring",setTimeout(()=>{v7(()=>{if("restoring"===v9){let t=vR(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=ye||""),ye="",v9="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yt.has(e)){let t=yt.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),yt.delete(e)}}let yr=fb.createContext({register:()=>{}});function yi(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ya(e,t,n){var r=yi(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}function yo(e,t){vp(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ys(){let e=(0,fb.useRef)(new Map),t=(0,fb.useCallback)((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,fb.useCallback)((t,n,r,i)=>{var a;let o=(null==(a=e.current.get(r))?void 0:a.fn)||r;t.removeEventListener(n,o,i),e.current.delete(r)},[]),r=(0,fb.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,fb.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}yr.displayName="PressResponderContext";function yc(e,t){return!!t&&!!e&&e.contains(t)}let yl=(e=document)=>e.activeElement;function yu(e){return e.target}function yp(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;v4()&&(null==(i=window.event)||null==(r=i.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(vJ()?a=!0:o=!0);let l=v1()&&vJ()&&!vQ()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,bubbles:!0,cancelable:!0});yp.isOpening=n,vV(e),e.dispatchEvent(l),yp.isOpening=!1}function yd(e){return 0===e.mozInputSource&&!!e.isTrusted||(v3()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yp.isOpening=!1;var yf=new WeakMap;class yh{continuePropagation(){ya(this,yf,!1)}get shouldStopPropagation(){var e;return e=yi(this,yf,"get"),e.get?e.get.call(this):e.value}constructor(e,t,n,r){var i;g9(this,yf,{writable:!0,value:void 0}),ya(this,yf,!0);let a=null!=(i=null==r?void 0:r.target)?i:n.currentTarget,o=null==a?void 0:a.getBoundingClientRect(),s,c=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),o&&(null!=l&&null!=u?(s=l-o.left,c=u-o.top):(s=o.width/2,c=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}let ym=Symbol("linkClicked"),yg="react-aria-pressable-style",y_="data-react-aria-pressable";function yv(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:d,...f}=function(e){let t=(0,fb.useContext)(yr);if(t){let{register:n,...r}=t;e=vv(r,e),n()}return yo(t,e.ref),e}(e),[h,m]=(0,fb.useState)(!1),g=(0,fb.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:y}=ys(),b=vd((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new yh("pressstart",t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,m(!0),a}),A=vd((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new yh("pressend",r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),m(!1),t&&a&&!s){let n=new yh("press",r,e);t(n),c&&(c=n.shouldStopPropagation)}return o.isTriggeringEvent=!1,c}),$=vd((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new yh("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=vd(e=>{let t=g.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&A(yA(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),p||yn(t.target),t.disposables))n();t.disposables=[]}}),k=vd(e=>{u&&w(e)}),x=vd(e=>{null==o||o(e)}),C=vd((e,t)=>{if(o){let n=new MouseEvent("click",e);vH(n,t),o(vG(n))}}),E=(0,fb.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(yb(t.nativeEvent,t.currentTarget)&&yc(t.currentTarget,yu(t.nativeEvent))){var r;y$(yu(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=b(t,"keyboard");let r=t.currentTarget;v(vR(t.currentTarget),"keyup",vu(t=>{yb(t,r)&&!t.repeat&&yc(r,yu(t))&&e.target&&$(yA(e.target,t),"keyboard")},n),!0)}i&&t.stopPropagation(),t.metaKey&&vJ()&&(null==(r=e.metaKeyEvents)||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||yc(t.currentTarget,yu(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!yp.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||yd(t.nativeEvent))){let e=b(t,"virtual"),r=$(t,"virtual"),i=A(t,"virtual");x(t),n=e&&r&&i}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",i=$(yA(t.currentTarget,t),r),a=A(yA(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,x(t),w(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&yb(t,e.target)){y$(yu(t),t.key)&&t.preventDefault();let n=yu(t),i=yc(e.target,yu(t));A(yA(e.target,t),"keyboard",i),i&&C(t,e.target),y(),"Enter"!==t.key&&yy(e.target)&&yc(e.target,n)&&!t[ym]&&(t[ym]=!0,yp(e.target,t,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(t.key)}else if("Meta"===t.key&&(null==(n=e.metaKeyEvents)?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null==(i=e.target)||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!yc(t.currentTarget,yu(t.nativeEvent)))return;if(i=t.nativeEvent,!v3()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||function(e){if(v0()){if("default"===v9){let t=vR(e);ye=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}v9="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";yt.set(e,e.style[t]),e.style[t]="none"}}(e.target),a=b(t,e.pointerType);let i=yu(t.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(t.pointerId),v(vR(t.currentTarget),"pointerup",n,!1),v(vR(t.currentTarget),"pointercancel",r,!1)}a&&t.stopPropagation()},t.onMouseDown=t=>{if(yc(t.currentTarget,yu(t.nativeEvent))&&0===t.button){if(l){let n=function(e){for(;e&&!vF(e);)e=e.parentElement;let t=vL(e),n=t.document.activeElement;if(!n||n===e)return;vq=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,vV(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,vV(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),vq=!1,r=!1},l=requestAnimationFrame(c);return c}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{yc(t.currentTarget,yu(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||$(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,b(yA(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(yA(e.target,t),e.pointerType,!1),k(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(yc(e.target,yu(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?w(t):(vV(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(t);e.isOverTarget=!1}},r=e=>{w(e)};t.onDragStart=e=>{yc(e.currentTarget,yu(e.nativeEvent))&&w(e)}}return t},[v,s,l,y,p,w,k,A,b,$,x,C]);return(0,fb.useEffect)(()=>{if(!d)return;let e=vR(d.current);if(!e||!e.head||e.getElementById(yg))return;let t=e.createElement("style");t.id=yg,t.textContent=`
|
|
33
33
|
@layer {
|
|
34
34
|
[${y_}] {
|
|
35
35
|
touch-action: pan-x pan-y pinch-zoom;
|
package/dist/3750.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_active_visits_app=globalThis.webpackChunk_openmrs_esm_active_visits_app||[]).push([["3750"],{16134:function(t,e,a){a.r(e),a.d(e,{default:()=>v});var s=a(27350),i=a.n(s),n=a(19331),l=a(68892),r=a(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_active_visits_app=globalThis.webpackChunk_openmrs_esm_active_visits_app||[]).push([["3750"],{16134:function(t,e,a){a.r(e),a.d(e,{default:()=>v});var s=a(27350),i=a.n(s),n=a(19331),l=a(68892),r=a(93798),c=a(93498),o=a(8923),u=a.n(o);let m=function(){var t,e="".concat(r.restBaseUrl,"/visit?includeInactive=true&v=").concat("custom:(uuid,startDatetime,stopDatetime)","&fromStartDate=").concat(u()().format("YYYY-MM-DD")),a=(0,c.ZP)(e,r.openmrsFetch),s=a.data,i=a.error,n=a.isLoading;return{data:null==s||null==(t=s.data)?void 0:t.results,error:i,isLoading:n}};var d=a(1035);let v=function(){var t,e=m().data,a=(0,l.useTranslation)().t;return i().createElement(n.n9L,{className:d.Z.tileContainer},i().createElement("h2",{className:d.Z.tileHeader},a("totalVisits","Total Visits Today")),i().createElement("div",{className:d.Z.displayDetails},i().createElement("div",{className:d.Z.countLabel},a("patients","Patients")),i().createElement("div",{className:d.Z.displayData},null!=(t=null==e?void 0:e.length)?t:0)))}}}]);
|