From 4c889ac91528ffad7d19235870dd026bae342be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helena=20Beranov=C3=A1?= Date: Wed, 10 Jul 2024 17:00:42 +0200 Subject: [PATCH] Updates --- asset-manifest.json | 6 +++--- index.html | 2 +- static/js/{main.da84d18c.js => main.a3613c1a.js} | 6 +++--- ...da84d18c.js.LICENSE.txt => main.a3613c1a.js.LICENSE.txt} | 0 static/js/main.a3613c1a.js.map | 1 + static/js/main.da84d18c.js.map | 1 - 6 files changed, 8 insertions(+), 8 deletions(-) rename static/js/{main.da84d18c.js => main.a3613c1a.js} (75%) rename static/js/{main.da84d18c.js.LICENSE.txt => main.a3613c1a.js.LICENSE.txt} (100%) create mode 100644 static/js/main.a3613c1a.js.map delete mode 100644 static/js/main.da84d18c.js.map diff --git a/asset-manifest.json b/asset-manifest.json index e6fc979..90b5b7b 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/team-project/static/css/main.6df73797.css", - "main.js": "/team-project/static/js/main.da84d18c.js", + "main.js": "/team-project/static/js/main.a3613c1a.js", "static/media/eliska.png": "/team-project/static/media/eliska.21a0a4278f1994629975.png", "static/media/profile4.png": "/team-project/static/media/profile4.767dd63e6ca8e4aed8d6.png", "static/media/profile1.png": "/team-project/static/media/profile1.71acc65ef65285dd46f7.png", @@ -10,10 +10,10 @@ "static/media/background.png": "/team-project/static/media/background.d185591cafa84c168602.png", "index.html": "/team-project/index.html", "main.6df73797.css.map": "/team-project/static/css/main.6df73797.css.map", - "main.da84d18c.js.map": "/team-project/static/js/main.da84d18c.js.map" + "main.a3613c1a.js.map": "/team-project/static/js/main.a3613c1a.js.map" }, "entrypoints": [ "static/css/main.6df73797.css", - "static/js/main.da84d18c.js" + "static/js/main.a3613c1a.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 4ad0559..906298f 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -PhysioReact
\ No newline at end of file +PhysioReact
\ No newline at end of file diff --git a/static/js/main.da84d18c.js b/static/js/main.a3613c1a.js similarity index 75% rename from static/js/main.da84d18c.js rename to static/js/main.a3613c1a.js index 3ad5c89..26dfddc 100644 --- a/static/js/main.da84d18c.js +++ b/static/js/main.a3613c1a.js @@ -1,3 +1,3 @@ -/*! For license information please see main.da84d18c.js.LICENSE.txt */ -(()=>{var e={5552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Jt,CompositeItem:()=>en,FloatingArrow:()=>sn,FloatingDelayGroup:()=>En,FloatingFocusManager:()=>tr,FloatingList:()=>Kt,FloatingNode:()=>hn,FloatingOverlay:()=>rr,FloatingPortal:()=>Qn,FloatingTree:()=>mn,arrow:()=>xt,autoPlacement:()=>bt,autoUpdate:()=>Xe,computePosition:()=>st,detectOverflow:()=>Ge,flip:()=>gt,getOverflowAncestors:()=>x,hide:()=>wt,inline:()=>kt,inner:()=>_r,limitShift:()=>vt,offset:()=>ht,platform:()=>$e,safePolygon:()=>zr,shift:()=>mt,size:()=>yt,useClick:()=>ir,useClientPoint:()=>lr,useDelayGroup:()=>Dn,useDelayGroupContext:()=>Sn,useDismiss:()=>fr,useFloating:()=>hr,useFloatingNodeId:()=>pn,useFloatingParentNodeId:()=>dn,useFloatingPortalNode:()=>qn,useFloatingRootContext:()=>pr,useFloatingTree:()=>fn,useFocus:()=>mr,useHover:()=>wn,useId:()=>an,useInnerOffset:()=>Ir,useInteractions:()=>br,useListItem:()=>qt,useListNavigation:()=>Dr,useMergeRefs:()=>St,useRole:()=>Pr,useTransitionStatus:()=>Or,useTransitionStyles:()=>Tr,useTypeahead:()=>jr});var r=n(5043),o=n.t(r,2);function a(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof i(e).Node}function u(e){return e instanceof Element||e instanceof i(e).Element}function c(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(e){return["table","td","th"].includes(a(e))}function h(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function m(e){const t=v(),n=y(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function v(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(a(e))}function y(e){return i(e).getComputedStyle(e)}function b(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function k(e){const t=w(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&f(t)?t:k(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=k(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=i(o);return a?t.concat(s,s.visualViewport||[],f(o)?o:[],s.frameElement&&n?x(s.frameElement):[]):t.concat(o,x(o,[],n))}function S(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function E(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function D(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function C(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function P(e){return!(0!==e.mozInputSource||!e.isTrusted)||(O()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function N(e){return!C().includes("jsdom/")&&(!O()&&0===e.width&&0===e.height||O()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function M(){return/apple/i.test(navigator.vendor)}function O(){const e=/android/i;return e.test(D())||e.test(C())}function T(){return D().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function j(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function R(e){return(null==e?void 0:e.ownerDocument)||document}function _(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function I(e){return"composedPath"in e?e.composedPath()[0]:e.target}const L="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function z(e){return c(e)&&e.matches(L)}function F(e){e.preventDefault(),e.stopPropagation()}function A(e){return!!e&&("combobox"===e.getAttribute("role")&&z(e))}const Y=["top","right","bottom","left"],W=["start","end"],H=Y.reduce(((e,t)=>e.concat(t,t+"-"+W[0],t+"-"+W[1])),[]),B=Math.min,U=Math.max,V=Math.round,K=Math.floor,q=e=>({x:e,y:e}),Q={left:"right",right:"left",bottom:"top",top:"bottom"},$={start:"end",end:"start"};function X(e,t,n){return U(e,B(t,n))}function G(e,t){return"function"===typeof e?e(t):e}function Z(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function ee(e){return"x"===e?"y":"x"}function te(e){return"y"===e?"height":"width"}function ne(e){return["top","bottom"].includes(Z(e))?"y":"x"}function re(e){return ee(ne(e))}function oe(e,t,n){void 0===n&&(n=!1);const r=J(e),o=re(e),a=te(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ie(i)),[i,ie(i)]}function ae(e){return e.replace(/start|end/g,(e=>$[e]))}function ie(e){return e.replace(/left|right|bottom|top/g,(e=>Q[e]))}function se(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function le(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var ue=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ce=ue.join(","),de="undefined"===typeof Element,fe=de?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pe=!de&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},he=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},me=function(e,t,n){if(he(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ce));return t&&fe.call(e,ce)&&r.unshift(e),r=r.filter(n)},ve=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!he(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),l=e(s.length?s:i.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{fe.call(i,ce)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var u=i.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(i),c=!he(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(u&&c){var d=e(!0===u?i.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},ge=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ye=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!ge(e)?0:e.tabIndex},be=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},we=function(e){return"INPUT"===e.tagName},ke=function(e){return function(e){return we(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||pe(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(fe.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xe(e)}else{if("function"===typeof r){for(var a=e;e;){var i=e.parentElement,s=pe(e);if(i&&!i.shadowRoot&&!0===r(i))return xe(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&pe(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var l,u,c;s=!(null===(u=i=null===(l=a=pe(i))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Ee=function(e,t){return!(t.disabled||he(t)||function(e){return we(e)&&"hidden"===e.type}(t)||Se(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},Pe=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=function(e,t){var n=ye(e);return n<0&&t&&!ge(e)?0:n}(i,a),l=a?e(t.candidates):i;0===s?a?n.push.apply(n,l):n.push(i):r.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:l})})),r.sort(be).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Ne=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ve([e],t.includeContainer,{filter:De.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ce}):me(e,t.includeContainer,De.bind(null,t)),Pe(n)},Me=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==fe.call(e,ce)&&De(t,e)},Oe=n(7950);function Te(e,t,n){let{reference:r,floating:o}=e;const a=ne(t),i=re(t),s=te(i),l=Z(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(J(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function je(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=G(t,e),h=se(p),m=s[f?"floating"===d?"reference":"floating":d],v=le(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=le(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function Re(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _e(e){return Y.some((t=>e[t]>=0))}function Ie(e){const t=B(...e.map((e=>e.left))),n=B(...e.map((e=>e.top)));return{x:t,y:n,width:U(...e.map((e=>e.right)))-t,height:U(...e.map((e=>e.bottom)))-n}}function Le(e){const t=y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=c(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=V(n)!==a||V(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ze(e){return u(e)?e:e.contextElement}function Fe(e){const t=ze(e);if(!c(t))return q(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Le(t);let i=(a?V(n.width):n.width)/r,s=(a?V(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ae=q(0);function Ye(e){const t=i(e);return v()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ae}function We(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=ze(e);let s=q(1);t&&(r?u(r)&&(s=Fe(r)):s=Fe(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==i(e))&&t}(a,n,r)?Ye(a):q(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const e=i(a),t=r&&u(r)?i(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Fe(o),t=o.getBoundingClientRect(),r=y(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=a,d+=s,n=i(o),o=n.frameElement}}return le({width:f,height:p,x:c,y:d})}function He(e){return We(s(e)).left+b(e).scrollLeft}function Be(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=i(e),r=s(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){a=o.width,l=o.height;const e=v();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:u,y:c}}(e,n);else if("document"===t)r=function(e){const t=s(e),n=b(e),r=e.ownerDocument.body,o=U(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=U(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+He(e);const l=-n.scrollTop;return"rtl"===y(r).direction&&(i+=U(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(u(t))r=function(e,t){const n=We(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=c(e)?Fe(e):q(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ye(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return le(r)}function Ue(e,t){const n=w(e);return!(n===t||!u(n)||g(n))&&("fixed"===y(n).position||Ue(n,t))}function Ve(e,t,n){const r=c(t),o=s(t),i="fixed"===n,l=We(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=q(0);if(r||!r&&!i)if(("body"!==a(t)||f(o))&&(u=b(t)),r){const e=We(t,!0,i,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&(d.x=He(o));return{x:l.left+u.scrollLeft-d.x,y:l.top+u.scrollTop-d.y,width:l.width,height:l.height}}function Ke(e){return"static"===y(e).position}function qe(e,t){return c(e)&&"fixed"!==y(e).position?t?t(e):e.offsetParent:null}function Qe(e,t){const n=i(e);if(h(e))return n;if(!c(e)){let t=w(e);for(;t&&!g(t);){if(u(t)&&!Ke(t))return t;t=w(t)}return n}let r=qe(e,t);for(;r&&p(r)&&Ke(r);)r=qe(r,t);return r&&g(r)&&Ke(r)&&!m(r)?n:r||function(e){let t=w(e);for(;c(t)&&!g(t);){if(h(t))return null;if(m(t))return t;t=w(t)}return null}(e)||n}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=s(r),u=!!t&&h(t.floating);if(r===l||u&&i)return n;let d={scrollLeft:0,scrollTop:0},p=q(1);const m=q(0),v=c(r);if((v||!v&&!i)&&(("body"!==a(r)||f(l))&&(d=b(r)),c(r))){const e=We(r);p=Fe(r),m.x=e.x+r.clientLeft,m.y=e.y+r.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+m.x,y:n.y*p.y-d.scrollTop*p.y+m.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?h(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=x(e,[],!1).filter((e=>u(e)&&"body"!==a(e))),o=null;const i="fixed"===y(e).position;let s=i?w(e):e;for(;u(s)&&!g(s);){const t=y(s),n=m(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||f(s)&&!n&&Ue(e,s))?r=r.filter((e=>e!==s)):o=t,s=w(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],l=i.reduce(((e,n)=>{const r=Be(t,n,o);return e.top=U(r.top,e.top),e.right=B(r.right,e.right),e.bottom=B(r.bottom,e.bottom),e.left=U(r.left,e.left),e}),Be(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Qe,getElementRects:async function(e){const t=this.getOffsetParent||Qe,n=this.getDimensions,r=await n(e.floating);return{reference:Ve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Le(e);return{width:t,height:n}},getScale:Fe,isElement:u,isRTL:function(e){return"rtl"===y(e).direction}};function Xe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:u=!1}=r,c=ze(e),d=o||a?[...c?x(c):[],...x(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=c&&l?function(e,t){let n,r=null;const o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-K(c)+"px "+-K(o.clientWidth-(u+d))+"px "+-K(o.clientHeight-(c+f))+"px "+-K(u)+"px",threshold:U(0,B(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}(c,n):null;let p,h=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!u&&m.observe(c),m.observe(t));let v=u?We(e):null;return u&&function t(){const r=We(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(p)}}const Ge=je,Ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Z(n),s=J(n),l="y"===ne(n),u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,d=G(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"===typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Je=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:a,middlewareData:i,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:f=H,autoAlignment:p=!0,...h}=G(e,t),m=void 0!==d||f===H?function(e,t,n){return(e?[...n.filter((t=>J(t)===e)),...n.filter((t=>J(t)!==e))]:n.filter((e=>Z(e)===e))).filter((n=>!e||J(n)===e||!!t&&ae(n)!==n))}(d||null,p,f):f,v=await je(t,h),g=(null==(n=i.autoPlacement)?void 0:n.index)||0,y=m[g];if(null==y)return{};const b=oe(y,a,await(null==l.isRTL?void 0:l.isRTL(u.floating)));if(s!==y)return{reset:{placement:m[0]}};const w=[v[Z(y)],v[b[0]],v[b[1]]],k=[...(null==(r=i.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:w}],x=m[g+1];if(x)return{data:{index:g+1,overflows:k},reset:{placement:x}};const S=k.map((e=>{const t=J(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),E=(null==(o=S.filter((e=>e[2].slice(0,J(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||S[0][0];return E!==s?{data:{index:g+1,overflows:k},reset:{placement:E}}:{}}}},et=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},c=await je(t,l),d=ne(Z(o)),f=ee(d);let p=u[f],h=u[d];if(a){const e="y"===f?"bottom":"right";p=X(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=X(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},tt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=G(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=Z(o),y=ne(s),b=Z(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),k=f||(b||!m?[ie(s)]:function(e){const t=ie(e);return[ae(e),t,ae(t)]}(s)),x="none"!==h;!f&&x&&k.push(...function(e,t,n,r){const o=J(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(Z(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(ae)))),a}(s,m,h,w));const S=[s,...k],E=await je(t,v),D=[];let C=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&D.push(E[g]),d){const e=oe(o,i,w);D.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:D}],!D.every((e=>e<=0))){var P,N;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(N=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var M;const e=null==(M=C.filter((e=>{if(x){const t=ne(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},nt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=(()=>{}),...s}=G(e,t),l=await je(t,s),u=Z(n),c=J(n),d="y"===ne(n),{width:f,height:p}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=c===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=u,h="end"===c?"top":"bottom");const v=p-l.top-l.bottom,g=f-l.left-l.right,y=B(p-l[h],v),b=B(f-l[m],g),w=!t.middlewareData.shift;let k=y,x=b;if(d?x=c||w?B(b,g):g:k=c||w?B(y,v):v,w&&!c){const e=U(l.left,0),t=U(l.right,0),n=U(l.top,0),r=U(l.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:U(l.left,l.right)):k=p-2*(0!==n||0!==r?n+r:U(l.top,l.bottom))}await i({...t,availableWidth:x,availableHeight:k});const S=await o.getDimensions(a.floating);return f!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},rt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=G(e,t);switch(r){case"referenceHidden":{const e=Re(await je(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_e(e)}}}case"escaped":{const e=Re(await je(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_e(e)}}}default:return{}}}}},ot=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=G(e,t)||{};if(null==u)return{};const d=se(c),f={x:n,y:r},p=re(o),h=te(p),m=await i.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],k=f[p]-a.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let S=x?x[b]:0;S&&await(null==i.isElement?void 0:i.isElement(x))||(S=s.floating[b]||a.floating[h]);const E=w/2-k/2,D=S/2-m[h]/2-1,C=B(d[g],D),P=B(d[y],D),N=C,M=S-m[h]-P,O=S/2-m[h]/2+E,T=X(N,O,M),j=!l.arrow&&null!=J(o)&&O!==T&&a.reference[h]/2-(Oe.y-t.y)),n=[];let r=null;for(let o=0;or.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map((e=>le(Ie(e))))}(c),f=le(Ie(c)),p=se(s);const h=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=u)return d.find((e=>l>e.left-p.left&&le.top-p.top&&u=2){if("y"===ne(n)){const e=d[0],t=d[d.length-1],r="top"===Z(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===Z(n),t=U(...d.map((e=>e.right))),r=B(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return f}},floating:r.floating,strategy:i});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},it=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=G(e,t),c={x:n,y:r},d=ne(o),f=ee(d);let p=c[f],h=c[d];const m=G(s,t),v="number"===typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;pn&&(p=n)}if(u){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(Z(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);hr&&(h=r)}return{[f]:p,[d]:h}}}},st=(e,t,n)=>{const r=new Map,o={platform:$e,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Te(u,r,l),f=r,p={},h=0;for(let m=0;m{t.current=e})),t}const pt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ot({element:n.current,padding:r}).fn(t):{}:n?ot({element:n,padding:r}).fn(t):{};var o}}),ht=(e,t)=>({...Ze(e),options:[e,t]}),mt=(e,t)=>({...et(e),options:[e,t]}),vt=(e,t)=>({...it(e),options:[e,t]}),gt=(e,t)=>({...tt(e),options:[e,t]}),yt=(e,t)=>({...nt(e),options:[e,t]}),bt=(e,t)=>({...Je(e),options:[e,t]}),wt=(e,t)=>({...rt(e),options:[e,t]}),kt=(e,t)=>({...at(e),options:[e,t]}),xt=(e,t)=>({...pt(e),options:[e,t]});function St(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Et={...o},Dt=Et.useInsertionEffect||(e=>e());function Ct(e){const t=r.useRef((()=>{0}));return Dt((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.current.length}function Rt(e,t){return It(e,{disabledIndices:t})}function _t(e,t){return It(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function It(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current;let s=n;do{s+=r?-a:a}while(s>=0&&s<=i.length-1&&Yt(i,s,o));return s}function Lt(e,t){let{event:n,orientation:r,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:l,prevIndex:u,stopEvent:c=!1}=t,d=u;if(n.key===Pt){if(c&&F(n),-1===u)d=l;else if(d=It(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),o&&(u-ae?n:n-a}jt(e,d)&&(d=u)}if(n.key===Nt&&(c&&F(n),-1===u?d=s:(d=It(e,{startingIndex:u,amount:a,disabledIndices:i}),o&&u+a>l&&(d=It(e,{startingIndex:u%a-a,amount:a,disabledIndices:i}))),jt(e,d)&&(d=u)),"both"===r){const t=K(u/a);n.key===Ot&&(c&&F(n),u%a!==a-1?(d=It(e,{startingIndex:u,disabledIndices:i}),o&&Tt(d,a,t)&&(d=It(e,{startingIndex:u-u%a-1,disabledIndices:i}))):o&&(d=It(e,{startingIndex:u-u%a-1,disabledIndices:i})),Tt(d,a,t)&&(d=u)),n.key===Mt&&(c&&F(n),u%a!==0?(d=It(e,{startingIndex:u,decrement:!0,disabledIndices:i}),o&&Tt(d,a,t)&&(d=It(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i}))):o&&(d=It(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i})),Tt(d,a,t)&&(d=u));const r=K(l/a)===t;jt(e,d)&&(d=o&&r?n.key===Mt?l:It(e,{startingIndex:u-u%a-1,disabledIndices:i}):u)}return d}function zt(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;nnull==r[e]))?(e.forEach((e=>{r[e]=a})),l=!0):o++}})),[...r]}function Ft(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*r:a;case"br":return n.lastIndexOf(e)}}function At(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function Yt(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let Wt=0;function Ht(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Wt);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():Wt=requestAnimationFrame(a)}var Bt="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function Ut(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Vt=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Kt(e){const{children:t,elementsRef:n,labelsRef:o}=e,[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),l=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Bt((()=>{const e=new Map(a);Array.from(e.keys()).sort(Ut).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(Vt.Provider,{value:r.useMemo((()=>({register:s,unregister:l,map:a,elementsRef:n,labelsRef:o})),[s,l,a,n,o])},t)}function qt(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:o,map:a,elementsRef:i,labelsRef:s}=r.useContext(Vt),[l,u]=r.useState(null),c=r.useRef(null),d=r.useCallback((e=>{if(c.current=e,null!==l&&(i.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,i,s,t]);return Bt((()=>{const e=c.current;if(e)return n(e),()=>{o(e)}}),[n,o]),Bt((()=>{const e=c.current?a.get(c.current):null;null!=e&&u(e)}),[a]),r.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function Qt(e,t){return"function"===typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const $t=r.createContext({activeIndex:0,onNavigate:()=>{}}),Xt=[Mt,Ot],Gt=[Pt,Nt],Zt=[...Xt,...Gt],Jt=r.forwardRef((function(e,t){const{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s,activeIndex:l,onNavigate:u,itemSizes:c,dense:d=!1,...f}=e,[p,h]=r.useState(0),m=null!=l?l:p,v=Ct(null!=u?u:h),g=r.useRef([]),y=n&&"function"!==typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:v})),[m,v]),w=i>1;const k={...f,...y,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Zt.includes(e.key))return;let t=m;const n=Rt(g,s),r=_t(g,s);if(w){const l=c||Array.from({length:g.current.length},(()=>({width:1,height:1}))),u=zt(l,i,d),f=u.findIndex((e=>null!=e&&!Yt(g.current,e,s))),p=u.reduce(((e,t,n)=>null==t||Yt(g.current,t,s)?e:n),-1);t=u[Lt({current:u.map((e=>e?g.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:At([...s||g.current.map(((e,t)=>Yt(g.current,t)?t:void 0)),void 0],u),minIndex:f,maxIndex:p,prevIndex:Ft(m>r?n:m,l,u,i,e.key===Nt?"bl":e.key===Ot?"tr":"tl")})]}const l={horizontal:[Ot],vertical:[Nt],both:[Ot,Nt]}[o],u={horizontal:[Mt],vertical:[Pt],both:[Mt,Pt]}[o],f=w?Zt:{horizontal:Xt,vertical:Gt,both:Zt}[o];t===m&&[...l,...u].includes(e.key)&&(t=a&&t===r&&l.includes(e.key)?n:a&&t===n&&u.includes(e.key)?r:It(g,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:s})),t===m||jt(g,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),v(t),queueMicrotask((()=>{Ht(g.current[t])})))}(e)}};return r.createElement($t.Provider,{value:b},r.createElement(Kt,{elementsRef:g},Qt(n,k)))})),en=r.forwardRef((function(e,t){const{render:n,...o}=e,a=n&&"function"!==typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext($t),{ref:l,index:u}=qt(),c=St([l,t,a.ref]),d=i===u;return Qt(n,{...o,...a,ref:c,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(u)}})}));function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+rn++;const an=Et.useId||function(){const[e,t]=r.useState((()=>nn?on():void 0));return Bt((()=>{null==e&&t(on())}),[]),r.useEffect((()=>{nn=!0}),[]),e};const sn=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:f,style:{transform:p,...h}={},...m}=e;const v=an(),[g,b]=r.useState(!1);if(Bt((()=>{if(!o)return;"rtl"===y(o).direction&&b(!0)}),[o]),!o)return null;const w=2*u,k=w/2,x=i/2*(l/-8+1),S=s/2*l/4,[E,D]=n.split("-"),C=!!f,P="top"===E||"bottom"===E,N=c&&"end"===D?"bottom":"top";let M=c&&"end"===D?"right":"left";c&&g&&(M="end"===D?"left":"right");const O=null!=(null==a?void 0:a.x)?c||a.x:"",T=null!=(null==a?void 0:a.y)?c||a.y:"",j=f||"M0,0 H"+i+" L"+(i-x)+","+(s-S)+" Q"+i/2+","+s+" "+x+","+(s-S)+" Z",R={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[E];return r.createElement("svg",tn({},m,{"aria-hidden":!0,ref:t,width:C?i:i+w,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[M]:O,[N]:T,[E]:P||C?"100%":"calc(100% - "+w/2+"px)",transform:""+R+(null!=p?p:""),...h}}),w>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:j}),r.createElement("path",{stroke:w&&!f?m.fill:"none",d:j}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-k,y:k*(C?-1:1),width:i+w,height:i})))}));function ln(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const un=r.createContext(null),cn=r.createContext(null),dn=()=>{var e;return(null==(e=r.useContext(un))?void 0:e.id)||null},fn=()=>r.useContext(cn);function pn(e){const t=an(),n=fn(),r=dn(),o=e||r;return Bt((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function hn(e){const{children:t,id:n}=e,o=dn();return r.createElement(un.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function mn(e){const{children:t}=e,n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>ln()))[0];return r.createElement(cn.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function vn(e){return"data-floating-ui-"+e}function gn(e){const t=(0,r.useRef)(e);return Bt((()=>{t.current=e})),t}const yn=vn("safe-polygon");function bn(e,t,n){return n&&!j(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function wn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,m=fn(),v=dn(),g=gn(d),y=gn(c),b=gn(n),w=r.useRef(),k=r.useRef(-1),x=r.useRef(),S=r.useRef(-1),D=r.useRef(!0),C=r.useRef(!1),P=r.useRef((()=>{})),N=r.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);r.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(S.current),D.current=!0)}}),[l,i]),r.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){N()&&o(!1,e,"hover")}const t=R(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,n,o,l,g,N]);const M=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=bn(y.current,"close",w.current);r&&!x.current?(clearTimeout(k.current),k.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(k.current),o(!1,e,n))}),[y,o]),O=Ct((()=>{P.current(),x.current=void 0})),T=Ct((()=>{if(C.current){const e=R(s.floating).body;e.style.pointerEvents="",e.removeAttribute(yn),C.current=!1}}));r.useEffect((()=>{if(l&&u(s.domReference)){var e;const t=s.domReference;return n&&t.addEventListener("mouseleave",c),null==(e=s.floating)||e.addEventListener("mouseleave",c),h&&t.addEventListener("mousemove",r,{once:!0}),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",i),()=>{var e;n&&t.removeEventListener("mouseleave",c),null==(e=s.floating)||e.removeEventListener("mouseleave",c),h&&t.removeEventListener("mousemove",r),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",i)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(k.current),D.current=!1,f&&!j(w.current)||p>0&&!bn(y.current,"open"))return;const t=bn(y.current,"open",w.current);t?k.current=window.setTimeout((()=>{b.current||o(!0,e,"hover")}),t):o(!0,e,"hover")}function i(e){if(t())return;P.current();const r=R(s.floating);if(clearTimeout(S.current),g.current&&a.current.floatingContext){n||clearTimeout(k.current),x.current=g.current({...a.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){T(),O(),M(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(P.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==w.current||!E(s.floating,e.relatedTarget))&&M(e)}function c(e){t()||a.current.floatingContext&&(null==g.current||g.current({...a.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){T(),O(),M(e)}})(e))}}),[s,l,e,f,p,h,M,O,T,o,n,b,m,y,g,a]),Bt((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&N()){const e=R(s.floating).body;e.setAttribute(yn,""),e.style.pointerEvents="none",C.current=!0;const n=s.floating;if(u(s.domReference)&&n){var t;const e=s.domReference,r=null==m||null==(t=m.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[l,n,v,s,m,g,N]),Bt((()=>{n||(w.current=void 0,O(),T())}),[n,O,T]),r.useEffect((()=>()=>{O(),clearTimeout(k.current),clearTimeout(S.current),T()}),[l,s.domReference,O,T]);const _=r.useMemo((()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){D.current||b.current||o(!0,t,"hover")}f&&!j(w.current)||n||0===p||(clearTimeout(S.current),"touch"===w.current?r():S.current=window.setTimeout(r,p))}}}),[f,o,n,b,p]),I=r.useMemo((()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){M(e.nativeEvent,!1)}})),[M]);return r.useMemo((()=>l?{reference:_,floating:I}:{}),[l,_,I])}const kn=()=>{},xn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:kn,setState:kn,isInstantPhase:!1}),Sn=()=>r.useContext(xn);function En(e){const{children:t,delay:n,timeoutMs:o=0}=e,[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),l=r.useCallback((e=>{i({currentId:e})}),[]);return Bt((()=>{a.currentId?null===s.current?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)}),[a.currentId,a.isInstantPhase]),r.createElement(xn.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:l})),[a,l])},t)}function Dn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:a}=t,i=null!=a?a:o,s=Sn(),{currentId:l,setCurrentId:u,initialDelay:c,setState:d,timeoutMs:f}=s;return Bt((()=>{l&&(d({delay:{open:1,close:bn(c,"close")}}),l!==i&&r(!1))}),[i,r,d,l,c]),Bt((()=>{function e(){r(!1),d({delay:c,currentId:null})}if(l&&!n&&l===i){if(f){const t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}}),[n,d,l,i,r,c,f]),Bt((()=>{u!==kn&&n&&u(i)}),[n,u,i]),s}function Cn(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Pn=new WeakMap,Nn=new WeakSet,Mn={},On=0;const Tn=()=>"undefined"!==typeof HTMLElement&&"inert"in HTMLElement.prototype,jn=e=>e&&(e.host||jn(e.parentNode)),Rn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=jn(t);return e.contains(n)?n:null})).filter((e=>null!=e));function _n(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=R(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Rn(t,e),l=new Set,u=new Set(s),c=[];Mn[o]||(Mn[o]=new WeakMap);const d=Mn[o];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==a(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Pn.get(t)||0)+1,a=(d.get(t)||0)+1;Pn.set(t,r),d.set(t,a),c.push(t),1===r&&n&&Nn.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),On++,()=>{c.forEach((e=>{const t=(Pn.get(e)||0)-1,n=(d.get(e)||0)-1;Pn.set(e,t),d.set(e,n),t||(!Nn.has(e)&&i&&e.removeAttribute(i),Nn.delete(e)),n||e.removeAttribute(o)})),On--,On||(Pn=new WeakMap,Pn=new WeakMap,Nn=new WeakSet,Mn={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const In=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ln(e,t){const n=Ne(e,In());"prev"===t&&n.reverse();const r=n.indexOf(S(R(e)));return n.slice(r+1)[0]}function zn(){return Ln(document.body,"next")}function Fn(){return Ln(document.body,"prev")}function An(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!E(n,r)}function Yn(e){Ne(e,In()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Wn(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Hn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Bn(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Un=r.forwardRef((function(e,t){const[n,o]=r.useState();Bt((()=>(M()&&o("button"),document.addEventListener("keydown",Bn),()=>{document.removeEventListener("keydown",Bn)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[vn("focus-guard")]:"",style:Hn};return r.createElement("span",tn({},e,a))})),Vn=r.createContext(null),Kn=vn("portal");function qn(e){void 0===e&&(e={});const{id:t,root:n}=e,o=an(),a=$n(),[i,s]=r.useState(null),l=r.useRef(null);return Bt((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),Bt((()=>{if(!o)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Kn,""),e.appendChild(n),l.current=n,s(n)}),[t,o]),Bt((()=>{if(!o)return;if(l.current)return;let e=n||(null==a?void 0:a.portalNode);e&&!u(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const i=document.createElement("div");i.id=o,i.setAttribute(Kn,""),e=r||e,e.appendChild(i),l.current=i,s(i)}),[t,n,o,a]),i}function Qn(e){const{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e,i=qn({id:n,root:o}),[s,l]=r.useState(null),u=r.useRef(null),c=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&(null==s||!s.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&An(e)){("focusin"===e.type?Wn:Yn)(i)}}}),[i,a,null==s?void 0:s.modal]),r.createElement(Vn.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:l})),[a,i])},p&&i&&r.createElement(Un,{"data-type":"outside",ref:u,onFocus:e=>{if(An(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=Fn()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&r.createElement("span",{"aria-owns":i.id,style:Hn}),i&&Oe.createPortal(t,i),p&&i&&r.createElement(Un,{"data-type":"outside",ref:c,onFocus:e=>{if(An(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=zn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const $n=()=>r.useContext(Vn),Xn=20;let Gn=[];function Zn(e){Gn=Gn.filter((e=>e.isConnected));let t=e;if(t&&"body"!==a(t)){if(!Me(t,In())){const e=Ne(t,In())[0];e&&(t=e)}Gn.push(t),Gn.length>Xn&&(Gn=Gn.slice(-Xn))}}function Jn(){return Gn.slice().reverse().find((e=>e.isConnected))}const er=r.forwardRef((function(e,t){return r.createElement("button",tn({},e,{type:"button",ref:t,tabIndex:-1,style:Hn}))}));function tr(e){const{context:t,children:n,disabled:o=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:u=!1,modal:d=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0}=e,{open:h,refs:m,nodeId:v,onOpenChange:g,events:y,dataRef:b,floatingId:w,elements:{domReference:k,floating:x}}=t,D="number"===typeof s&&s<0,C=A(k)&&D,M=!Tn()||i,O=gn(a),T=gn(s),j=gn(l),_=fn(),L=$n(),z=r.useRef(null),Y=r.useRef(null),W=r.useRef(!1),H=r.useRef(!1),B=r.useRef(-1),U=null!=L,V=null==x?void 0:x.firstElementChild,K=(null==V?void 0:V.id)===w?V:x,q=Ct((function(e){return void 0===e&&(e=K),e?Ne(e,In()):[]})),Q=Ct((e=>{const t=q(e);return O.current.map((e=>k&&"reference"===e?k:K&&"floating"===e?K:t)).filter(Boolean).flat()}));function $(e){return!o&&f&&d?r.createElement(er,{ref:"start"===e?z:Y,onClick:e=>g(!1,e.nativeEvent)},"string"===typeof f?f:"Dismiss"):null}r.useEffect((()=>{if(o)return;if(!d)return;function e(e){if("Tab"===e.key){E(K,S(R(K)))&&0===q().length&&!C&&F(e);const t=Q(),n=I(e);"reference"===O.current[0]&&n===k&&(F(e),e.shiftKey?Ht(t[t.length-1]):Ht(t[1])),"floating"===O.current[1]&&n===K&&e.shiftKey&&(F(e),Ht(t[0]))}}const t=R(K);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,k,K,d,O,C,q,Q]),r.useEffect((()=>{if(!o&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=I(e),n=q().indexOf(t);-1!==n&&(B.current=n)}}),[o,x,q]),r.useEffect((()=>{if(!o&&p)return x&&c(k)?(k.addEventListener("focusout",t),k.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{k.removeEventListener("focusout",t),k.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){H.current=!0,setTimeout((()=>{H.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(E(k,t)||E(x,t)||E(t,x)||E(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(vn("focus-guard"))||_&&(Cn(_.nodesRef.current,v).find((e=>{var n,r;return E(null==(n=e.context)?void 0:n.elements.floating,t)||E(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(_.nodesRef.current,v).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(u&&n&&S(R(K))===R(K).body){c(K)&&(null==K||K.focus());const e=B.current,t=q(),n=t[e]||t[t.length-1]||K;c(n)&&n.focus()}!C&&d||!t||!n||H.current||t===Jn()||(W.current=!0,g(!1,e))}))}}),[o,k,x,K,d,v,_,L,g,p,u,q,C]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+vn("portal")+"]"))||[]);if(x){const e=[x,...t,z.current,Y.current,O.current.includes("reference")||C?k:null].filter((e=>null!=e)),n=d||C?_n(e,M,!M):_n(e);return()=>{n()}}}),[o,k,x,d,O,L,C,M]),Bt((()=>{if(o||!c(K))return;const e=S(R(K));queueMicrotask((()=>{const t=Q(K),n=T.current,r=("number"===typeof n?t[n]:n.current)||K,o=E(K,e);D||o||!h||Ht(r,{preventScroll:r===K})}))}),[o,h,K,D,Q,T]),Bt((()=>{if(o||!K)return;let e=!1;const t=R(K),n=S(t);let r=b.current.openEvent;function a(t){let{open:n,reason:o,event:a,nested:i}=t;n&&(r=a),"escape-key"===o&&m.domReference.current&&Zn(m.domReference.current),"hover"===o&&"mouseleave"===a.type&&(W.current=!0),"outside-press"===o&&(i?(W.current=!1,e=!0):W.current=!(P(a)||N(a)))}return Zn(n),y.on("openchange",a),()=>{y.off("openchange",a);const n=S(t),o=E(x,n)||_&&Cn(_.nodesRef.current,v).some((e=>{var t;return E(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r&&["click","mousedown"].includes(r.type))&&m.domReference.current&&Zn(m.domReference.current);const i=Jn();j.current&&!W.current&&c(i)&&(i===n||n===t.body||o)&&Ht(i,{cancelPrevious:!1,preventScroll:e})}}),[o,x,K,j,b,m,y,_,v]),Bt((()=>{if(!o&&L)return L.setFocusManagerState({modal:d,closeOnFocusOut:p,open:h,onOpenChange:g,refs:m}),()=>{L.setFocusManagerState(null)}}),[o,L,d,h,g,m,p]),Bt((()=>{if(o)return;if(!K)return;if("function"!==typeof MutationObserver)return;if(D)return;const e=()=>{const e=K.getAttribute("tabindex"),t=q(),n=S(R(x)),r=t.indexOf(n);-1!==r&&(B.current=r),O.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&K.setAttribute("tabindex","0"):"-1"!==e&&K.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(K,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,x,K,m,O,q,D]);const X=!o&&M&&(!d||!C)&&(U||d);return r.createElement(r.Fragment,null,X&&r.createElement(Un,{"data-type":"inside",ref:null==L?void 0:L.beforeInsideRef,onFocus:e=>{if(d){const e=Q();Ht("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(W.current=!1,An(e,L.portalNode)){const e=zn()||k;null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!C&&$("start"),n,$("end"),X&&r.createElement(Un,{"data-type":"inside",ref:null==L?void 0:L.afterInsideRef,onFocus:e=>{if(d)Ht(Q()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(p&&(W.current=!0),An(e,L.portalNode)){const e=Fn()||k;null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}}))}const nr=new Set,rr=r.forwardRef((function(e,t){const{lockScroll:n=!1,...o}=e,a=an();return Bt((()=>{if(!n)return;nr.add(a);const e=/iP(hone|ad|od)|iOS/.test(D()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{nr.delete(a),0===nr.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}}),[a,n]),r.createElement("div",tn({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function or(e){return c(e.target)&&"BUTTON"===e.target.tagName}function ar(e){return z(e)}function ir(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,f=r.useRef(),p=r.useRef(!1),h=r.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(j(t,!0)&&c||(!n||!u||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:j(t,!0)&&c||(!n||!u||a.current.openEvent&&"click"!==a.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||or(e)||(" "!==e.key||ar(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||or(e)||ar(i)||" "===e.key&&p.current&&(p.current=!1,o(!n||!u,e.nativeEvent,"click"))}})),[a,i,l,c,d,o,n,u]);return r.useMemo((()=>s?{reference:h}:{}),[s,h])}function sr(e){return null!=e&&null!=e.clientX}function lr(e,t){void 0===t&&(t={});const{open:n,dataRef:o,elements:{floating:a,domReference:s},refs:l}=e,{enabled:u=!0,axis:c="both",x:d=null,y:f=null}=t,p=r.useRef(!1),h=r.useRef(null),[m,v]=r.useState(),[g,y]=r.useState([]),b=Ct(((e,t)=>{p.current||o.current.openEvent&&!sr(o.current.openEvent)||l.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var a;const i=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let c=i.width,d=i.height,f=i.x,p=i.y;return null==n&&t.x&&s&&(n=i.x-t.x),null==r&&t.y&&l&&(r=i.y-t.y),f-=n||0,p-=r||0,c=0,d=0,!o||u?(c="y"===t.axis?i.width:0,d="x"===t.axis?i.height:0,f=s&&null!=t.x?t.x:f,p=l&&null!=t.y?t.y:p):o&&!u&&(d="x"===t.axis?i.height:d,c="y"===t.axis?i.width:c),o=!0,{width:c,height:d,x:f,y:p,top:p,right:f+c,bottom:p+d,left:f}}}}(s,{x:e,y:t,axis:c,dataRef:o,pointerType:m}))})),w=Ct((e=>{null==d&&null==f&&(n?h.current||y([]):b(e.clientX,e.clientY))})),k=j(m)?a:n,x=r.useCallback((()=>{if(!k||!u||null!=d||null!=f)return;const e=i(a);function t(n){const r=I(n);E(a,r)?(e.removeEventListener("mousemove",t),h.current=null):b(n.clientX,n.clientY)}if(!o.current.openEvent||sr(o.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),h.current=null};return h.current=n,n}l.setPositionReference(s)}),[k,u,d,f,a,o,l,s,b]);r.useEffect((()=>x()),[x,g]),r.useEffect((()=>{u&&!a&&(p.current=!1)}),[u,a]),r.useEffect((()=>{!u&&n&&(p.current=!0)}),[u,n]),Bt((()=>{!u||null==d&&null==f||(p.current=!1,b(d,f))}),[u,d,f,b]);const S=r.useMemo((()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}}),[w]);return r.useMemo((()=>u?{reference:S}:{}),[u,S])}const ur={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},cr={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dr=e=>{var t,n;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function fr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:b}=t,k=fn(),S=Ct("function"===typeof d?d:()=>!1),D="function"===typeof d?S:d,C=r.useRef(!1),P=r.useRef(!1),{escapeKey:N,outsidePress:M}=dr(v),{escapeKey:O,outsidePress:T}=dr(b),j=Ct((e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;const r=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=k?Cn(k.nodesRef.current,r):[];if(!N&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),L=Ct((e=>{var t;const n=()=>{var t;j(e),null==(t=I(e))||t.removeEventListener("keydown",n)};null==(t=I(e))||t.addEventListener("keydown",n)})),z=Ct((e=>{var t;const n=C.current;C.current=!1;const r=P.current;if(P.current=!1,"click"===f&&r)return;if(n)return;if("function"===typeof D&&!D(e))return;const s=I(e),l="["+vn("inert")+"]",d=R(a.floating).querySelectorAll(l);let p=u(s)?s:null;for(;p&&!g(p);){const e=w(p);if(g(e)||!u(e))break;p=e}if(d.length&&u(s)&&!s.matches("html,body")&&!E(s,a.floating)&&Array.from(d).every((e=>!E(p,e))))return;if(c(s)&&Y){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n){"rtl"===y(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth)}if(r||t&&e.offsetY>s.clientHeight)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=k&&Cn(k.nodesRef.current,h).some((t=>{var n;return _(e,null==(n=t.context)?void 0:n.elements.floating)}));if(_(e,a.floating)||_(e,a.domReference)||m)return;const v=k?Cn(k.nodesRef.current,h):[];if(v.length>0){let e=!0;if(v.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),F=Ct((e=>{var t;const n=()=>{var t;z(e),null==(t=I(e))||t.removeEventListener(f,n)};null==(t=I(e))||t.addEventListener(f,n)}));r.useEffect((()=>{if(!n||!s)return;function e(e){o(!1,e,"ancestor-scroll")}i.current.__escapeKeyBubbles=N,i.current.__outsidePressBubbles=M;const t=R(a.floating);l&&t.addEventListener("keydown",O?L:j,O),D&&t.addEventListener(f,T?F:z,T);let r=[];return m&&(u(a.domReference)&&(r=x(a.domReference)),u(a.floating)&&(r=r.concat(x(a.floating))),!u(a.reference)&&a.reference&&a.reference.contextElement&&(r=r.concat(x(a.reference.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{l&&t.removeEventListener("keydown",O?L:j,O),D&&t.removeEventListener(f,T?F:z,T),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[i,a,l,D,f,n,o,m,s,N,M,j,O,L,z,T,F]),r.useEffect((()=>{C.current=!1}),[D,f]);const A=r.useMemo((()=>({onKeyDown:j,[ur[h]]:e=>{p&&o(!1,e.nativeEvent,"reference-press")}})),[j,o,p,h]),Y=r.useMemo((()=>({onKeyDown:j,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[cr[f]]:()=>{C.current=!0}})),[j,f]);return r.useMemo((()=>s?{reference:A,floating:Y}:{}),[s,A,Y])}function pr(e){const{open:t=!1,onOpenChange:n,elements:o}=e,a=an(),i=r.useRef({}),[s]=r.useState((()=>ln())),l=null!=dn();const[u,c]=r.useState(o.reference),d=Ct(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:c})),[]),p=r.useMemo((()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference})),[u,o.reference,o.floating]);return r.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:a,refs:f})),[t,d,p,s,a,f])}function hr(e){void 0===e&&(e={});const{nodeId:t}=e,n=pr({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=r.useState(null),[l,c]=r.useState(null),d=(null==a?void 0:a.reference)||i,f=r.useRef(null),p=fn();Bt((()=>{d&&(f.current=d)}),[d]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);ut(p,o)||h(o);const[m,v]=r.useState(null),[g,y]=r.useState(null),b=r.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=r.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),k=i||m,x=s||g,S=r.useRef(null),E=r.useRef(null),D=r.useRef(d),C=null!=u,P=ft(u),N=ft(a),M=r.useCallback((()=>{if(!S.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),st(S.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!ut(D.current,t)&&(D.current=t,Oe.flushSync((()=>{f(t)})))}))}),[p,t,n,N]);lt((()=>{!1===c&&D.current.isPositioned&&(D.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const O=r.useRef(!1);lt((()=>(O.current=!0,()=>{O.current=!1})),[]),lt((()=>{if(k&&(S.current=k),x&&(E.current=x),k&&x){if(P.current)return P.current(k,x,M);M()}}),[k,x,M,P,C]);const T=r.useMemo((()=>({reference:S,floating:E,setReference:b,setFloating:w})),[b,w]),j=r.useMemo((()=>({reference:k,floating:x})),[k,x]),R=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=dt(j.floating,d.x),r=dt(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ct(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,j.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:M,refs:T,elements:j,floatingStyles:R})),[d,M,T,j,R])}({...e,elements:{...a,...l&&{reference:l}}}),m=r.useCallback((e=>{const t=u(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)}),[h.refs]),v=r.useCallback((e=>{(u(e)||null===e)&&(f.current=e,s(e)),(u(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!u(e))&&h.refs.setReference(e)}),[h.refs]),g=r.useMemo((()=>({...h.refs,setReference:v,setPositionReference:m,domReference:f})),[h.refs,v,m]),y=r.useMemo((()=>({...h.elements,domReference:d})),[h.elements,d]),b=r.useMemo((()=>({...h,...o,refs:g,elements:y,nodeId:t})),[h,g,y,t,o]);return Bt((()=>{o.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...h,context:b,refs:g,elements:y})),[h,g,y,b])}function mr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:a,dataRef:s,elements:l}=e,{enabled:d=!0,visibleOnly:f=!0}=t,p=r.useRef(!1),h=r.useRef(),m=r.useRef(!0);r.useEffect((()=>{if(!d)return;const e=i(l.domReference);function t(){!n&&c(l.domReference)&&l.domReference===S(R(l.domReference))&&(p.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[l.domReference,n,d]),r.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[a,d]),r.useEffect((()=>()=>{clearTimeout(h.current)}),[]);const v=r.useMemo((()=>({onPointerDown(e){N(e.nativeEvent)||(m.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=I(e.nativeEvent);if(f&&u(t))try{if(M()&&T())throw Error();if(!t.matches(":focus-visible"))return}catch(n){if(!m.current&&!z(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=u(t)&&t.hasAttribute(vn("focus-guard"))&&"outside"===t.getAttribute("data-type");h.current=window.setTimeout((()=>{var e;const a=S(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(E(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,a)||E(l.domReference,a)||r||o(!1,n,"focus"))}))}})),[s,l.domReference,o,f]);return r.useMemo((()=>d?{reference:v}:{}),[d,v])}const vr="active",gr="selected";function yr(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[vr]:t,[gr]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1},...a,...t.map((t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[vr,gr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;ae(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function br(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),a=r.useCallback((t=>yr(t,e,"reference")),t),i=r.useCallback((t=>yr(t,e,"floating")),n),s=r.useCallback((t=>yr(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s})),[a,i,s])}let wr=!1;function kr(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function xr(e,t){return kr(t,e===Pt||e===Nt,e===Mt||e===Ot)}function Sr(e,t,n){return kr(t,e===Nt,n?e===Mt:e===Ot)||"Enter"===e||" "===e||""===e}function Er(e,t,n){return kr(t,n?e===Ot:e===Mt,e===Pt)}function Dr(e,t){const{open:n,onOpenChange:o,elements:a}=e,{listRef:i,activeIndex:s,onNavigate:l=(()=>{}),enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:h=!1,rtl:m=!1,virtual:v=!1,focusItemOnOpen:g="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:b=!0,disabledIndices:w,orientation:k="vertical",cols:x=1,scrollItemIntoView:D=!0,virtualItemRef:C,itemSizes:O,dense:j=!1}=t;const _=dn(),I=fn(),L=Ct(l),z=r.useRef(g),Y=r.useRef(null!=d?d:-1),W=r.useRef(null),H=r.useRef(!0),B=r.useRef(L),U=r.useRef(!!a.floating),V=r.useRef(!1),K=r.useRef(!1),q=gn(w),Q=gn(n),$=gn(D),X=gn(a.floating),G=gn(d),[Z,J]=r.useState(),[ee,te]=r.useState(),ne=Ct((function(e,t,n){function r(e){v?(J(e.id),null==I||I.events.emit("virtualfocus",e),C&&(C.current=e)):Ht(e,{preventScroll:!0,sync:!(!T()||!M())&&(wr||V.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const a=e.current[t.current]||o;if(!a)return;o||r(a);const i=$.current;i&&oe&&(n||!H.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"===typeof i?{block:"nearest",inline:"nearest"}:i))}))}));Bt((()=>{document.createElement("div").focus({get preventScroll(){return wr=!0,!1}})}),[]),Bt((()=>{u&&(n&&a.floating?z.current&&null!=d&&(K.current=!0,Y.current=d,L(d)):U.current&&(Y.current=-1,B.current(null)))}),[u,n,a.floating,d,L]),Bt((()=>{if(u&&n&&a.floating)if(null==s){if(V.current=!1,null!=G.current)return;if(U.current&&(Y.current=-1,ne(i,Y)),!U.current&&z.current&&(null!=W.current||!0===z.current&&null==W.current)){let e=0;const t=()=>{if(null==i.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else Y.current=null==W.current||Sr(W.current,k,m)||h?Rt(i,q.current):_t(i,q.current),W.current=null,L(Y.current)};t()}}else jt(i,s)||(Y.current=s,ne(i,Y,K.current),K.current=!1)}),[u,n,a.floating,s,G,h,i,k,m,L,ne,q]),Bt((()=>{var e;if(!u||a.floating||!I||v||!U.current)return;const t=I.nodesRef.current,n=null==(e=t.find((e=>e.id===_)))||null==(e=e.context)?void 0:e.elements.floating,r=S(R(a.floating)),o=t.some((e=>e.context&&E(e.context.elements.floating,r)));n&&!o&&H.current&&n.focus({preventScroll:!0})}),[u,a.floating,I,_,v]),Bt((()=>{if(u&&I&&v&&!_)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e)};function e(e){te(e.id),C&&(C.current=e)}}),[u,I,v,_,C]),Bt((()=>{B.current=L,U.current=!!a.floating})),Bt((()=>{n||(W.current=null)}),[n]);const re=null!=s,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&L(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...y&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;H.current&&"touch"!==t&&(Y.current=-1,ne(i,Y),L(null),v||Ht(X.current,{preventScroll:!0}))}}}}),[n,X,ne,y,i,L,v]),ae=Ct((e=>{if(H.current=!1,V.current=!0,!Q.current&&e.currentTarget===X.current)return;if(h&&Er(e.key,k,m))return F(e),o(!1,e.nativeEvent,"list-navigation"),void(c(a.domReference)&&!v&&a.domReference.focus());const t=Y.current,r=Rt(i,w),s=_t(i,w);if("Home"===e.key&&(F(e),Y.current=r,L(Y.current)),"End"===e.key&&(F(e),Y.current=s,L(Y.current)),x>1){const t=O||Array.from({length:i.current.length},(()=>({width:1,height:1}))),n=zt(t,x,j),o=n.findIndex((e=>null!=e&&!Yt(i.current,e,w))),a=n.reduce(((e,t,n)=>null==t||Yt(i.current,t,w)?e:n),-1);if(Y.current=n[Lt({current:n.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:k,loop:p,cols:x,disabledIndices:At([...w||i.current.map(((e,t)=>Yt(i.current,t)?t:void 0)),void 0],n),minIndex:o,maxIndex:a,prevIndex:Ft(Y.current>s?r:Y.current,t,n,x,e.key===Nt?"bl":e.key===Ot?"tr":"tl"),stopEvent:!0})],L(Y.current),"both"===k)return}if(xr(e.key,k)){if(F(e),n&&!v&&S(e.currentTarget.ownerDocument)===e.currentTarget)return Y.current=Sr(e.key,k,m)?r:s,void L(Y.current);Sr(e.key,k,m)?Y.current=p?t>=s?f&&t!==i.current.length?-1:r:It(i,{startingIndex:t,disabledIndices:w}):Math.min(s,It(i,{startingIndex:t,disabledIndices:w})):Y.current=p?t<=r?f&&-1!==t?i.current.length:s:It(i,{startingIndex:t,decrement:!0,disabledIndices:w}):Math.max(r,It(i,{startingIndex:t,decrement:!0,disabledIndices:w})),jt(i,Y.current)?L(null):L(Y.current)}})),ie=r.useMemo((()=>v&&n&&re&&{"aria-activedescendant":ee||Z}),[v,n,re,ee,Z]),se=r.useMemo((()=>({"aria-orientation":"both"===k?void 0:k,...!A(a.domReference)&&ie,onKeyDown:ae,onPointerMove(){H.current=!0}})),[ie,ae,a.domReference,k]),le=r.useMemo((()=>{const e=q.current,t=i.current.find((e=>(null==e?void 0:e.id)===Z));function r(e){"auto"===g&&P(e.nativeEvent)&&(z.current=!0)}return{...ie,onKeyDown(r){H.current=!1;const a=0===r.key.indexOf("Arrow"),s=function(e,t,n){return kr(t,n?e===Mt:e===Ot,e===Nt)}(r.key,k,m),l=Er(r.key,k,m),u=xr(r.key,k),c=(h?s:u)||"Enter"===r.key||""===r.key.trim();if(v&&n){const e=null==I?void 0:I.nodesRef.current.find((e=>null==e.parentId)),n=I&&e?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),Cn(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(I.nodesRef.current,e.id):null;if(a&&n&&C){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(s||l){var f,p;const o=(null==(f=n.context)?void 0:f.elements.domReference)===r.currentTarget,a=l&&!o?null==(p=n.context)?void 0:p.elements.domReference:s?t:null;a&&(F(r),a.dispatchEvent(e),te(void 0))}var g;if(u&&n.context)if(n.context.open&&n.parentId&&r.currentTarget!==n.context.elements.domReference)return F(r),void(null==(g=n.context.elements.domReference)||g.dispatchEvent(e))}return ae(r)}(n||b||!a)&&(c&&(W.current=h&&u?null:r.key),h?s&&(F(r),n?(Y.current=Rt(i,e),L(Y.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=d&&(Y.current=d),F(r),!n&&b?o(!0,r.nativeEvent,"list-navigation"):ae(r),n&&L(Y.current)))},onFocus(){n&&!v&&L(null)},onPointerDown:function(e){z.current=g,"auto"===g&&N(e.nativeEvent)&&(z.current=!0)},onMouseDown:r,onClick:r}}),[Z,ie,ae,q,g,i,h,L,o,n,b,k,m,d,I,v,C]);return r.useMemo((()=>u?{reference:le,floating:se,item:oe}:{}),[u,le,se,oe])}const Cr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Pr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(n=Cr.get(s))?n:s,u=an(),c=null!=dn(),d=r.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?a:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:u},..."menu"===l&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,a,c,o,u,s]),f=r.useMemo((()=>{const e={id:a,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":u}}}),[l,a,u,s]),p=r.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[a,s]);return r.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}const Nr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Mr(e,t){return"function"===typeof e?e(t):e}function Or(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"===typeof a?a:a.close)||0,[s,l]=r.useState("unmounted"),u=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return u||"close"!==s||l("unmounted"),Bt((()=>{if(o){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,o]),{isMounted:u,status:s}}function Tr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,l=e.placement,u=l.split("-")[0],c=r.useMemo((()=>({side:u,placement:l})),[u,l]),d="number"===typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=r.useState((()=>({...Mr(i,c),...Mr(n,c)}))),{isMounted:v,status:g}=Or(e,{duration:s}),y=gn(n),b=gn(o),w=gn(a),k=gn(i);return Bt((()=>{const e=Mr(y.current,c),t=Mr(w.current,c),n=Mr(k.current,c),r=Mr(b.current,c)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===g&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===g&&m({transitionProperty:Object.keys(r).map(Nr).join(","),transitionDuration:f+"ms",...n,...r}),"close"===g){const r=t||e;m({transitionProperty:Object.keys(r).map(Nr).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,y,b,k,f,g,c]),{isMounted:v,styles:h}}function jr(e,t){var n;const{open:o,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:u,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=r.useRef(),v=r.useRef(""),g=r.useRef(null!=(n=null!=h?h:s)?n:-1),y=r.useRef(null),b=Ct(l),w=Ct(u),k=gn(d),x=gn(p);Bt((()=>{o&&(clearTimeout(m.current),y.current=null,v.current="")}),[o]),Bt((()=>{var e;o&&""===v.current&&(g.current=null!=(e=null!=h?h:s)?e:-1)}),[o,h,s]);const S=Ct((e=>{e?a.current.typing||(a.current.typing=e,w(e)):a.current.typing&&(a.current.typing=e,w(e))})),E=Ct((e=>{function t(e,t,n){const r=k.current?k.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=i.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(n,n,v.current)?S(!1):" "===e.key&&F(e)),null==n||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&(F(e),S(!0));n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&v.current===e.key&&(v.current="",g.current=y.current),v.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{v.current="",g.current=y.current,S(!1)}),f);const r=g.current,a=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],v.current);-1!==a?(b(a),y.current=a):" "!==e.key&&(v.current="",S(!1))})),D=r.useMemo((()=>({onKeyDown:E})),[E]),C=r.useMemo((()=>({onKeyDown:E,onKeyUp(e){" "===e.key&&S(!1)}})),[E,S]);return r.useMemo((()=>c?{reference:D,floating:C}:{}),[c,D,C])}function Rr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const _r=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=G(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[i];if(!p)return{};const h={...t,...await ht(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-a).fn(t)},m=(null==u?void 0:u.current)||f,v=await Ge(Rr(h,m.scrollHeight),c),g=await Ge(h,{...c,elementContext:"reference"}),y=Math.max(0,v.top),b=h.y+y,w=Math.max(0,m.scrollHeight-y-Math.max(0,v.bottom));return m.style.maxHeight=w+"px",m.scrollTop=y,o&&(m.offsetHeight=-l||g.bottom>=-l?Oe.flushSync((()=>o(!0))):Oe.flushSync((()=>o(!1)))),r&&(r.current=await Ge(Rr({...h,y:b},m.offsetHeight),c)),{y:b}}});function Ir(e,t){const{open:n,elements:o}=e,{enabled:a=!0,overflowRef:i,scrollRef:s,onChange:l}=t,u=Ct(l),c=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);r.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),Oe.flushSync((()=>{u((e=>e+Math[l](n,a*s)))}))):/firefox/i.test(C())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=i.current&&(f.current={...i.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,o.floating,i,s,u]);const p=r.useMemo((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(i.current&&e&&c.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&Oe.flushSync((()=>u((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[o.floating,u,i,s]);return r.useMemo((()=>a?{floating:p}:{}),[a,p])}function Lr(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=r!==u>=r&&n<=(l-e)*(r-a)/(u-a)+e&&(o=!o)}return o}function zr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:d,elements:f,onClose:p,nodeId:h,tree:m}=e;return function(e){function v(){clearTimeout(o),p()}if(clearTimeout(o),!f.domReference||!f.floating||null==d||null==n||null==c)return;const{clientX:g,clientY:y}=e,b=[g,y],w=I(e),k="mouseleave"===e.type,x=E(f.floating,w),S=E(f.domReference,w),D=f.domReference.getBoundingClientRect(),C=f.floating.getBoundingClientRect(),P=d.split("-")[0],N=n>C.right-C.width/2,M=c>C.bottom-C.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,D),T=C.width>D.width,j=C.height>D.height,R=(T?D:C).left,_=(T?D:C).right,L=(j?D:C).top,z=(j?D:C).bottom;if(x&&(a=!0,!k))return;if(S&&(a=!1),S&&!k)return void(a=!0);if(k&&u(e.relatedTarget)&&E(f.floating,e.relatedTarget))return;if(m&&Cn(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===P&&c>=D.bottom-1||"bottom"===P&&c<=D.top+1||"left"===P&&n>=D.right-1||"right"===P&&n<=D.left+1)return v();let F=[];switch(P){case"top":F=[[R,D.top+1],[R,C.bottom-1],[_,C.bottom-1],[_,D.top+1]];break;case"bottom":F=[[R,C.top+1],[R,D.bottom-1],[_,D.bottom-1],[_,C.top+1]];break;case"left":F=[[C.right-1,z],[C.right-1,L],[D.left+1,L],[D.left+1,z]];break;case"right":F=[[D.right-1,z],[D.right-1,L],[C.left+1,L],[C.left+1,z]]}if(!Lr([g,y],F)){if(a&&!O)return v();if(!k&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===s||0===r)return i=e,s=t,l=n,null;const o=e-i,a=t-s,u=Math.sqrt(o*o+a*a);return i=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Lr([g,y],function(e){let[n,r]=e;switch(P){case"top":return[[T?n+t/2:N?n+4*t:n-4*t,r+t+1],[T?n-t/2:N?n+4*t:n-4*t,r+t+1],...[[C.left,N||T?C.bottom-t:C.top],[C.right,N?T?C.bottom-t:C.top:C.bottom-t]]];case"bottom":return[[T?n+t/2:N?n+4*t:n-4*t,r-t],[T?n-t/2:N?n+4*t:n-4*t,r-t],...[[C.left,N||T?C.top+t:C.bottom],[C.right,N?T?C.top+t:C.bottom:C.top+t]]];case"left":{const e=[n+t+1,j?r+t/2:M?r+4*t:r-4*t],o=[n+t+1,j?r-t/2:M?r+4*t:r-4*t];return[...[[M||j?C.right-t:C.left,C.top],[M?j?C.right-t:C.left:C.right-t,C.bottom]],e,o]}case"right":return[[n-t,j?r+t/2:M?r+4*t:r-4*t],[n-t,j?r-t/2:M?r+4*t:r-4*t],...[[M||j?C.left+t:C.right,C.top],[M?j?C.left+t:C.right:C.left+t,C.bottom]]]}}([n,c]))?!a&&r&&(o=window.setTimeout(v,40)):v()}}};return c.__options={blockPointerEvents:n},c}},2949:e=>{function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n{"use strict";t.addLeadingZeros=function(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}},2222:(e,t,n)=>{"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return r.enUS}});var r=n(8757)},6868:(e,t)=>{"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},4578:(e,t,n)=>{"use strict";t.formatters=void 0;var r=n(5440),o=n(9871),a=n(8890),i=n(2252),s=n(7941),l=n(427),u=n(7630);const c="midnight",d="noon",f="morning",p="afternoon",h="evening",m="night";t.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return u.lightFormatters.y(e,t)},Y:function(e,t,n,r){const o=(0,s.getWeekYear)(e,r),a=o>0?o:1-o;if("YY"===t){const e=a%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,l.addLeadingZeros)(a,t.length)},R:function(e,t){const n=(0,a.getISOWeekYear)(e);return(0,l.addLeadingZeros)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return u.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,i.getWeek)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.addLeadingZeros)(o,t.length)},I:function(e,t,n){const r=(0,o.getISOWeek)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.addLeadingZeros)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):u.lightFormatters.d(e,t)},D:function(e,t,n){const o=(0,r.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,l.addLeadingZeros)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,l.addLeadingZeros)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.addLeadingZeros)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?d:0===r?c:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?h:r>=12?p:r>=4?f:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return u.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):u.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):u.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):u.lightFormatters.s(e,t)},S:function(e,t){return u.lightFormatters.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return g(r);case"XXXX":case"XX":return y(r);default:return y(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return g(r);case"xxxx":case"xx":return y(r);default:return y(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(r,":");default:return"GMT"+y(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(r,":");default:return"GMT"+y(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.addLeadingZeros)(r,t.length)}};function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+(0,l.addLeadingZeros)(a,2)}function g(e,t){if(e%60===0){return(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2)}return y(e,t)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,l.addLeadingZeros)(r%60,2)}},7630:(e,t,n)=>{"use strict";t.lightFormatters=void 0;var r=n(427);t.lightFormatters={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.addLeadingZeros)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,r.addLeadingZeros)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,r.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,r.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),a=Math.trunc(o*Math.pow(10,n-3));return(0,r.addLeadingZeros)(a,t.length)}}},5916:(e,t)=>{"use strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.longFormatters={p:r,P:(e,t)=>{const o=e.match(/(P+)(p+)?/)||[],a=o[1],i=o[2];if(!i)return n(e,t);let s;switch(a){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",n(a,t)).replace("{{time}}",r(i,t))}}},3300:(e,t,n)=>{"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,r.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n};var r=n(5551)},8913:(e,t)=>{"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return r.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),o.includes(e))throw new RangeError(r)};const n=/^D+$/,r=/^Y+$/,o=["D","DD","YY","YYYY"]},8620:(e,t,n)=>{"use strict";t.addDays=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,o.constructFrom)(e,NaN);if(!t)return n;return n.setDate(n.getDate()+t),n};var r=n(5551),o=n(4161)},5608:(e,t,n)=>{"use strict";t.addHours=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInHour)};var r=n(3773),o=n(9757)},3773:(e,t,n)=>{"use strict";t.addMilliseconds=function(e,t){const n=+(0,r.toDate)(e);return(0,o.constructFrom)(e,n+t)};var r=n(5551),o=n(4161)},86:(e,t,n)=>{"use strict";t.addMinutes=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInMinute)};var r=n(3773),o=n(9757)},4640:(e,t,n)=>{"use strict";t.addMonths=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,o.constructFrom)(e,NaN);if(!t)return n;const a=n.getDate(),i=(0,o.constructFrom)(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const s=i.getDate();return a>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)};var r=n(5551),o=n(4161)},1634:(e,t,n)=>{"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,r.addMonths)(e,n)};var r=n(4640)},2570:(e,t,n)=>{"use strict";t.addSeconds=function(e,t){return(0,r.addMilliseconds)(e,1e3*t)};var r=n(3773)},9994:(e,t,n)=>{"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,r.addDays)(e,n)};var r=n(8620)},709:(e,t,n)=>{"use strict";t.addYears=function(e,t){return(0,r.addMonths)(e,12*t)};var r=n(4640)},9757:(e,t)=>{"use strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secondsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsInQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsInHour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void 0;t.daysInWeek=7;const n=t.daysInYear=365.2425,r=t.maxTime=24*Math.pow(10,8)*60*60*1e3,o=(t.minTime=-r,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minutesInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.monthsInYear=12,t.quartersInYear=4,t.secondsInHour=3600),a=(t.secondsInMinute=60,t.secondsInDay=24*o),i=(t.secondsInWeek=7*a,t.secondsInYear=a*n),s=t.secondsInMonth=i/12;t.secondsInQuarter=3*s},4161:(e,t)=>{"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},3439:(e,t,n)=>{"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,o.startOfDay)(e),i=(0,o.startOfDay)(t),s=+n-(0,a.getTimezoneOffsetInMilliseconds)(n),l=+i-(0,a.getTimezoneOffsetInMilliseconds)(i);return Math.round((s-l)/r.millisecondsInDay)};var r=n(9757),o=n(6191),a=n(3300)},5575:(e,t,n)=>{"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),a=n.getFullYear()-o.getFullYear(),i=n.getMonth()-o.getMonth();return 12*a+i};var r=n(5551)},5309:(e,t,n)=>{"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,o.toDate)(e),a=(0,o.toDate)(t),i=n.getFullYear()-a.getFullYear(),s=(0,r.getQuarter)(n)-(0,r.getQuarter)(a);return 4*i+s};var r=n(2918),o=n(5551)},9840:(e,t,n)=>{"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()-o.getFullYear()};var r=n(5551)},2412:(e,t,n)=>{"use strict";t.endOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(23,59,59,999),t};var r=n(5551)},8268:(e,t,n)=>{"use strict";t.endOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var r=n(5551)},4016:(e,t,n)=>{"use strict";t.endOfWeek=function(e,t){var n,a,i,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(a=null!==(i=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==a?a:null===(u=c.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0,f=(0,r.toDate)(e),p=f.getDay(),h=6+(p{"use strict";t.endOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var r=n(5551)},4333:(e,t,n)=>{"use strict";t.format=t.formatDate=function(e,t,n){var f,p,v,g,y,b,w,k,x,S,E,D,C,P;const N=(0,o.getDefaultOptions)(),M=null!==(f=null!==(p=null===n||void 0===n?void 0:n.locale)&&void 0!==p?p:N.locale)&&void 0!==f?f:r.defaultLocale,O=null!==(v=null!==(g=null!==(y=null!==(b=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==b?b:null===n||void 0===n||null===(w=n.locale)||void 0===w||null===(w=w.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==y?y:N.firstWeekContainsDate)&&void 0!==g?g:null===(k=N.locale)||void 0===k||null===(k=k.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==v?v:1,T=null!==(x=null!==(S=null!==(E=null!==(D=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==D?D:null===n||void 0===n||null===(C=n.locale)||void 0===C||null===(C=C.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==E?E:N.weekStartsOn)&&void 0!==S?S:null===(P=N.locale)||void 0===P||null===(P=P.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==x?x:0,j=(0,u.toDate)(e);if(!(0,l.isValid)(j))throw new RangeError("Invalid time value");let R=t.match(d).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,i.longFormatters[t])(e,M.formatLong)}return e})).join("").match(c).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:m(e)};if(a.formatters[t])return{isToken:!0,value:e};if(t.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));M.localize.preprocessor&&(R=M.localize.preprocessor(j,R));const _={firstWeekContainsDate:O,weekStartsOn:T,locale:M};return R.map((r=>{if(!r.isToken)return r.value;const o=r.value;(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,s.isProtectedWeekYearToken)(o))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,s.isProtectedDayOfYearToken)(o))||(0,s.warnOrThrowProtectedError)(o,t,String(e));return(0,a.formatters[o[0]])(j,o,M.localize,_)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return a.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}});var r=n(2222),o=n(6868),a=n(4578),i=n(5916),s=n(8913),l=n(9858),u=n(5551);const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,p=/''/g,h=/[a-zA-Z]/;function m(e){const t=e.match(f);return t?t[1].replace(p,"'"):e}},5528:(e,t,n)=>{"use strict";t.getDate=function(e){const t=(0,r.toDate)(e);return t.getDate()};var r=n(5551)},7600:(e,t,n)=>{"use strict";t.getDay=function(e){const t=(0,r.toDate)(e);return t.getDay()};var r=n(5551)},5440:(e,t,n)=>{"use strict";t.getDayOfYear=function(e){const t=(0,a.toDate)(e),n=(0,r.differenceInCalendarDays)(t,(0,o.startOfYear)(t));return n+1};var r=n(3439),o=n(7332),a=n(5551)},272:(e,t,n)=>{"use strict";t.getDaysInMonth=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),a=t.getMonth(),i=(0,o.constructFrom)(e,0);return i.setFullYear(n,a+1,0),i.setHours(0,0,0,0),i.getDate()};var r=n(5551),o=n(4161)},7153:(e,t,n)=>{"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,r.getDefaultOptions)())};var r=n(6868)},5857:(e,t,n)=>{"use strict";t.getHours=function(e){const t=(0,r.toDate)(e);return t.getHours()};var r=n(5551)},8601:(e,t,n)=>{"use strict";t.getISODay=function(e){let t=(0,r.toDate)(e).getDay();0===t&&(t=7);return t};var r=n(5551)},9871:(e,t,n)=>{"use strict";t.getISOWeek=function(e){const t=(0,i.toDate)(e),n=+(0,o.startOfISOWeek)(t)-+(0,a.startOfISOWeekYear)(t);return Math.round(n/r.millisecondsInWeek)+1};var r=n(9757),o=n(1048),a=n(2329),i=n(5551)},8890:(e,t,n)=>{"use strict";t.getISOWeekYear=function(e){const t=(0,a.toDate)(e),n=t.getFullYear(),i=(0,r.constructFrom)(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const s=(0,o.startOfISOWeek)(i),l=(0,r.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const u=(0,o.startOfISOWeek)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var r=n(4161),o=n(1048),a=n(5551)},8667:(e,t,n)=>{"use strict";t.getMinutes=function(e){const t=(0,r.toDate)(e);return t.getMinutes()};var r=n(5551)},8920:(e,t,n)=>{"use strict";t.getMonth=function(e){const t=(0,r.toDate)(e);return t.getMonth()};var r=n(5551)},2918:(e,t,n)=>{"use strict";t.getQuarter=function(e){const t=(0,r.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var r=n(5551)},2808:(e,t,n)=>{"use strict";t.getSeconds=function(e){const t=(0,r.toDate)(e);return t.getSeconds()};var r=n(5551)},7025:(e,t,n)=>{"use strict";t.getTime=function(e){const t=(0,r.toDate)(e);return t.getTime()};var r=n(5551)},2252:(e,t,n)=>{"use strict";t.getWeek=function(e,t){const n=(0,i.toDate)(e),s=+(0,o.startOfWeek)(n,t)-+(0,a.startOfWeekYear)(n,t);return Math.round(s/r.millisecondsInWeek)+1};var r=n(9757),o=n(9249),a=n(568),i=n(5551)},7941:(e,t,n)=>{"use strict";t.getWeekYear=function(e,t){var n,s,l,u,c,d;const f=(0,a.toDate)(e),p=f.getFullYear(),h=(0,i.getDefaultOptions)(),m=null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:h.firstWeekContainsDate)&&void 0!==s?s:null===(d=h.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,v=(0,r.constructFrom)(e,0);v.setFullYear(p+1,0,m),v.setHours(0,0,0,0);const g=(0,o.startOfWeek)(v,t),y=(0,r.constructFrom)(e,0);y.setFullYear(p,0,m),y.setHours(0,0,0,0);const b=(0,o.startOfWeek)(y,t);return f.getTime()>=g.getTime()?p+1:f.getTime()>=b.getTime()?p:p-1};var r=n(4161),o=n(9249),a=n(5551),i=n(6868)},309:(e,t,n)=>{"use strict";t.getYear=function(e){return(0,r.toDate)(e).getFullYear()};var r=n(5551)},1882:(e,t,n)=>{"use strict";t.isAfter=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getTime()>o.getTime()};var r=n(5551)},4593:(e,t,n)=>{"use strict";t.isBefore=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return+n<+o};var r=n(5551)},1890:(e,t)=>{"use strict";t.isDate=function(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},6500:(e,t,n)=>{"use strict";t.isEqual=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return+n===+o};var r=n(5551)},8444:(e,t,n)=>{"use strict";t.isSameDay=function(e,t){const n=(0,r.startOfDay)(e),o=(0,r.startOfDay)(t);return+n===+o};var r=n(6191)},8060:(e,t,n)=>{"use strict";t.isSameMonth=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()};var r=n(5551)},8322:(e,t,n)=>{"use strict";t.isSameQuarter=function(e,t){const n=(0,r.startOfQuarter)(e),o=(0,r.startOfQuarter)(t);return+n===+o};var r=n(1125)},4265:(e,t,n)=>{"use strict";t.isSameYear=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()};var r=n(5551)},9858:(e,t,n)=>{"use strict";t.isValid=function(e){if(!(0,r.isDate)(e)&&"number"!==typeof e)return!1;const t=(0,o.toDate)(e);return!isNaN(Number(t))};var r=n(1890),o=n(5551)},4148:(e,t,n)=>{"use strict";t.isWithinInterval=function(e,t){const n=+(0,r.toDate)(e),[o,a]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return n>=o&&n<=a};var r=n(5551)},3997:(e,t)=>{"use strict";t.buildFormatLongFn=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},9555:(e,t)=>{"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},9387:(e,t)=>{"use strict";t.buildMatchFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;ne.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.length)}}}},4273:(e,t)=>{"use strict";t.buildMatchPatternFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(o.length)}}}},8757:(e,t,n)=>{"use strict";t.enUS=void 0;var r=n(8203),o=n(342),a=n(9104),i=n(6608),s=n(4986);t.enUS={code:"en-US",formatDistance:r.formatDistance,formatLong:o.formatLong,formatRelative:a.formatRelative,localize:i.localize,match:s.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},8203:(e,t)=>{"use strict";t.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.formatDistance=(e,t,r)=>{let o;const a=n[e];return o="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o}},342:(e,t,n)=>{"use strict";t.formatLong=void 0;var r=n(3997);t.formatLong={date:(0,r.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},9104:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.formatRelative=(e,t,r,o)=>n[e]},6608:(e,t,n)=>{"use strict";t.localize=void 0;var r=n(9555);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},4986:(e,t,n)=>{"use strict";t.match=void 0;var r=n(9387),o=n(4273);t.match={ordinalNumber:(0,o.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},8442:(e,t,n)=>{"use strict";t.max=function(e){let t;return e.forEach((function(e){const n=(0,r.toDate)(e);(void 0===t||t{"use strict";t.min=function(e){let t;return e.forEach((e=>{const n=(0,r.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)};var r=n(5551)},4251:(e,t,n)=>{"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return s.longFormatters}}),t.parse=function(e,t,n,g){var y,b,w,k,x,S,E,D,C,P,N,M,O,T;const j=(0,o.getDefaultOptions)(),R=null!==(y=null!==(b=null===g||void 0===g?void 0:g.locale)&&void 0!==b?b:j.locale)&&void 0!==y?y:a.defaultLocale,_=null!==(w=null!==(k=null!==(x=null!==(S=null===g||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==S?S:null===g||void 0===g||null===(E=g.locale)||void 0===E||null===(E=E.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==x?x:j.firstWeekContainsDate)&&void 0!==k?k:null===(D=j.locale)||void 0===D||null===(D=D.options)||void 0===D?void 0:D.firstWeekContainsDate)&&void 0!==w?w:1,I=null!==(C=null!==(P=null!==(N=null!==(M=null===g||void 0===g?void 0:g.weekStartsOn)&&void 0!==M?M:null===g||void 0===g||null===(O=g.locale)||void 0===O||null===(O=O.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==N?N:j.weekStartsOn)&&void 0!==P?P:null===(T=j.locale)||void 0===T||null===(T=T.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==C?C:0;if(""===t)return""===e?(0,i.toDate)(n):(0,r.constructFrom)(n,NaN);const L={firstWeekContainsDate:_,weekStartsOn:I,locale:R},z=[new c.DateToSystemTimezoneSetter],F=t.match(f).map((e=>{const t=e[0];if(t in s.longFormatters){return(0,s.longFormatters[t])(e,R.formatLong)}return e})).join("").match(d),A=[];for(let o of F){null!==g&&void 0!==g&&g.useAdditionalWeekYearTokens||!(0,l.isProtectedWeekYearToken)(o)||(0,l.warnOrThrowProtectedError)(o,t,e),null!==g&&void 0!==g&&g.useAdditionalDayOfYearTokens||!(0,l.isProtectedDayOfYearToken)(o)||(0,l.warnOrThrowProtectedError)(o,t,e);const a=o[0],i=u.parsers[a];if(i){const{incompatibleTokens:t}=i;if(Array.isArray(t)){const e=A.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError("The format string mustn't contain `".concat(e.fullToken,"` and `").concat(o,"` at the same time"))}else if("*"===i.incompatibleTokens&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(o,"` and any other token at the same time"));A.push({token:a,fullToken:o});const s=i.run(e,o,R.match,L);if(!s)return(0,r.constructFrom)(n,NaN);z.push(s.setter),e=s.rest}else{if(a.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===o?o="'":"'"===a&&(o=o.match(p)[1].replace(h,"'")),0!==e.indexOf(o))return(0,r.constructFrom)(n,NaN);e=e.slice(o.length)}}if(e.length>0&&m.test(e))return(0,r.constructFrom)(n,NaN);const Y=z.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>z.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let W=(0,i.toDate)(n);if(isNaN(W.getTime()))return(0,r.constructFrom)(n,NaN);const H={};for(const o of Y){if(!o.validate(W,L))return(0,r.constructFrom)(n,NaN);const e=o.set(W,H,L);Array.isArray(e)?(W=e[0],Object.assign(H,e[1])):W=e}return(0,r.constructFrom)(n,W)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return u.parsers}});var r=n(4161),o=n(7153),a=n(2222),i=n(5551),s=n(5916),l=n(8913),u=n(7109),c=n(7318);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,m=/\S/,v=/[a-zA-Z]/},3458:(e,t,n)=>{"use strict";t.parseISO=function(e,t){var n;const f=null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2,p=function(e){const t={},n=e.split(o.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],o.timeZoneDelimiter.test(t.date)&&(t.date=e.split(o.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=o.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let h;if(p.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(p.date,f);h=function(e,t){if(null===t)return new Date(NaN);const n=e.match(a);if(!n)return new Date(NaN);const r=!!n[4],o=l(n[1]),i=l(n[2])-1,s=l(n[3]),u=l(n[4]),f=l(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,f)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,u,f):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(c[t]||(d(e)?29:28))}(t,i,s)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!h||isNaN(h.getTime()))return new Date(NaN);const m=h.getTime();let v,g=0;if(p.time&&(g=function(e){const t=e.match(i);if(!t)return NaN;const n=u(t[1]),o=u(t[2]),a=u(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,a))return NaN;return n*r.millisecondsInHour+o*r.millisecondsInMinute+1e3*a}(p.time),isNaN(g)))return new Date(NaN);if(!p.timezone){const e=new Date(m+g),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}if(v=function(e){if("Z"===e)return 0;const t=e.match(s);if(!t)return 0;const n="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(o*r.millisecondsInHour+a*r.millisecondsInMinute)}(p.timezone),isNaN(v))return new Date(NaN);return new Date(m+g+v)};var r=n(9757);const o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,i=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,s=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function u(e){return e&&parseFloat(e.replace(",","."))||0}const c=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400===0||e%4===0&&e%100!==0}},9758:(e,t,n)=>{"use strict";t.Parser=void 0;var r=n(7318);t.Parser=class{run(e,t,n,o){const a=this.parse(e,t,n,o);return a?{setter:new r.ValueSetter(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}},7318:(e,t,n)=>{"use strict";var r=n(3693).default;t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var o=n(3583),a=n(4161);class i{constructor(){r(this,"subPriority",0)}validate(e,t){return!0}}t.Setter=i;t.ValueSetter=class extends i{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}};t.DateToSystemTimezoneSetter=class extends i{constructor(){super(...arguments),r(this,"priority",10),r(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:(0,a.constructFrom)(e,(0,o.transpose)(e,Date))}}},3704:(e,t)=>{"use strict";t.timezonePatterns=t.numericPatterns=void 0;t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},7109:(e,t,n)=>{"use strict";t.parsers=void 0;var r=n(7615),o=n(8550),a=n(9967),i=n(5065),s=n(2403),l=n(3245),u=n(96),c=n(8403),d=n(4818),f=n(3118),p=n(5428),h=n(6099),m=n(1931),v=n(1755),g=n(4227),y=n(3023),b=n(610),w=n(6282),k=n(9766),x=n(3438),S=n(4690),E=n(8829),D=n(5640),C=n(9495),P=n(9271),N=n(7223),M=n(7804),O=n(2135),T=n(7271),j=n(6990),R=n(3883);t.parsers={G:new r.EraParser,y:new o.YearParser,Y:new a.LocalWeekYearParser,R:new i.ISOWeekYearParser,u:new s.ExtendedYearParser,Q:new l.QuarterParser,q:new u.StandAloneQuarterParser,M:new c.MonthParser,L:new d.StandAloneMonthParser,w:new f.LocalWeekParser,I:new p.ISOWeekParser,d:new h.DateParser,D:new m.DayOfYearParser,E:new v.DayParser,e:new g.LocalDayParser,c:new y.StandAloneLocalDayParser,i:new b.ISODayParser,a:new w.AMPMParser,b:new k.AMPMMidnightParser,B:new x.DayPeriodParser,h:new S.Hour1to12Parser,H:new E.Hour0to23Parser,K:new D.Hour0To11Parser,k:new C.Hour1To24Parser,m:new P.MinuteParser,s:new N.SecondParser,S:new M.FractionOfSecondParser,X:new O.ISOTimezoneWithZParser,x:new T.ISOTimezoneParser,t:new j.TimestampSecondsParser,T:new R.TimestampMillisecondsParser}},9766:(e,t,n)=>{"use strict";var r=n(3693).default;t.AMPMMidnightParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}}t.AMPMMidnightParser=i},6282:(e,t,n)=>{"use strict";var r=n(3693).default;t.AMPMParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}}t.AMPMParser=i},6099:(e,t,n)=>{"use strict";var r=n(3693).default;t.DateParser=void 0;var o=n(3704),a=n(9758),i=n(4636);const s=[31,28,31,30,31,30,31,31,30,31,30,31],l=[31,29,31,30,31,30,31,31,30,31,30,31];class u extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subPriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return(0,i.parseNumericPattern)(o.numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear(),r=(0,i.isLeapYearIndex)(n),o=e.getMonth();return r?t>=1&&t<=l[o]:t>=1&&t<=s[o]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}t.DateParser=u},1931:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayOfYearParser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subpriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return(0,i.parseNumericPattern)(o.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear();return(0,i.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}t.DayOfYearParser=s},1755:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayParser=void 0;var o=n(8844),a=n(9758);class i extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.DayParser=i},3438:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayPeriodParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}}t.DayPeriodParser=i},7615:(e,t,n)=>{"use strict";var r=n(3693).default;t.EraParser=void 0;var o=n(9758);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",140),r(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}t.EraParser=a},2403:(e,t,n)=>{"use strict";var r=n(3693).default;t.ExtendedYearParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return"u"===t?(0,a.parseNDigitsSigned)(4,e):(0,a.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}t.ExtendedYearParser=i},7804:(e,t,n)=>{"use strict";var r=n(3693).default;t.FractionOfSecondParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",30),r(this,"incompatibleTokens",["t","T"])}parse(e,t){return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}}t.FractionOfSecondParser=i},5640:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour0To11Parser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return(0,i.parseNumericPattern)(o.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}t.Hour0To11Parser=s},8829:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour0to23Parser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return(0,i.parseNumericPattern)(o.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}}t.Hour0to23Parser=s},9495:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour1To24Parser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return(0,i.parseNumericPattern)(o.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}t.Hour1To24Parser=s},4690:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour1to12Parser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return(0,i.parseNumericPattern)(o.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}}t.Hour1to12Parser=s},610:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISODayParser=void 0;var o=n(261),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,i.parseNDigits)(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return(0,i.mapValue)(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return(0,i.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return(0,i.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return(0,i.mapValue)(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,o.setISODay)(e,n)).setHours(0,0,0,0),e}}t.ISODayParser=s},7271:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOTimezoneParser=void 0;var o=n(4161),a=n(3300),i=n(3704),s=n(9758),l=n(4636);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return(0,l.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,l.parseTimezonePattern)(i.timezonePatterns.basic,e);case"xxxx":return(0,l.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,l.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.constructFrom)(e,e.getTime()-(0,a.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneParser=u},2135:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOTimezoneWithZParser=void 0;var o=n(4161),a=n(3300),i=n(3704),s=n(9758),l=n(4636);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return(0,l.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,l.parseTimezonePattern)(i.timezonePatterns.basic,e);case"XXXX":return(0,l.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,l.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.constructFrom)(e,e.getTime()-(0,a.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneWithZParser=u},5428:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOWeekParser=void 0;var o=n(5267),a=n(1048),i=n(3704),s=n(9758),l=n(4636);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return(0,l.parseNumericPattern)(i.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,a.startOfISOWeek)((0,o.setISOWeek)(e,n))}}t.ISOWeekParser=u},5065:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOWeekYearParser=void 0;var o=n(1048),a=n(4161),i=n(9758),s=n(4636);class l extends i.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return"R"===t?(0,s.parseNDigitsSigned)(4,e):(0,s.parseNDigitsSigned)(t.length,e)}set(e,t,n){const r=(0,a.constructFrom)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.startOfISOWeek)(r)}}t.ISOWeekYearParser=l},4227:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalDayParser=void 0;var o=n(8844),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),o);case"eo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.LocalDayParser=s},3118:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalWeekParser=void 0;var o=n(5056),a=n(9249),i=n(3704),s=n(9758),l=n(4636);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return(0,l.parseNumericPattern)(i.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,a.startOfWeek)((0,o.setWeek)(e,n,r),r)}}t.LocalWeekParser=u},9967:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalWeekYearParser=void 0;var o=n(7941),a=n(9249),i=n(9758),s=n(4636);class l extends i.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,s.mapValue)((0,s.parseNDigits)(4,e),r);case"Yo":return(0,s.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,s.mapValue)((0,s.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=(0,o.getWeekYear)(e,r);if(n.isTwoDigitYear){const t=(0,s.normalizeTwoDigitYear)(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,a.startOfWeek)(e,r)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,a.startOfWeek)(e,r)}}t.LocalWeekYearParser=l},9271:(e,t,n)=>{"use strict";var r=n(3693).default;t.MinuteParser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",60),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return(0,i.parseNumericPattern)(o.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}}t.MinuteParser=s},8403:(e,t,n)=>{"use strict";var r=n(3693).default;t.MonthParser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),r(this,"priority",110)}parse(e,t,n){const r=e=>e-1;switch(t){case"M":return(0,i.mapValue)((0,i.parseNumericPattern)(o.numericPatterns.month,e),r);case"MM":return(0,i.mapValue)((0,i.parseNDigits)(2,e),r);case"Mo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=s},3245:(e,t,n)=>{"use strict";var r=n(3693).default;t.QuarterParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return(0,a.parseNDigits)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}t.QuarterParser=i},7223:(e,t,n)=>{"use strict";var r=n(3693).default;t.SecondParser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",50),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return(0,i.parseNumericPattern)(o.numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}}t.SecondParser=s},3023:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneLocalDayParser=void 0;var o=n(8844),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),o);case"co":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.StandAloneLocalDayParser=s},4818:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneMonthParser=void 0;var o=n(3704),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",110),r(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const r=e=>e-1;switch(t){case"L":return(0,i.mapValue)((0,i.parseNumericPattern)(o.numericPatterns.month,e),r);case"LL":return(0,i.mapValue)((0,i.parseNDigits)(2,e),r);case"Lo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.StandAloneMonthParser=s},96:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneQuarterParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return(0,a.parseNDigits)(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}t.StandAloneQuarterParser=i},3883:(e,t,n)=>{"use strict";var r=n(3693).default;t.TimestampMillisecondsParser=void 0;var o=n(4161),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",20),r(this,"incompatibleTokens","*")}parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,o.constructFrom)(e,n),{timestampIsSet:!0}]}}t.TimestampMillisecondsParser=s},6990:(e,t,n)=>{"use strict";var r=n(3693).default;t.TimestampSecondsParser=void 0;var o=n(4161),a=n(9758),i=n(4636);class s extends a.Parser{constructor(){super(...arguments),r(this,"priority",40),r(this,"incompatibleTokens","*")}parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,o.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}}t.TimestampSecondsParser=s},8550:(e,t,n)=>{"use strict";var r=n(3693).default;t.YearParser=void 0;var o=n(9758),a=n(4636);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,a.mapValue)((0,a.parseNDigits)(4,e),r);case"yo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=(0,a.normalizeTwoDigitYear)(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}t.YearParser=i},4636:(e,t,n)=>{"use strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},t.isLeapYearIndex=function(e){return e%400===0||e%4===0&&e%100!==0},t.mapValue=function(e,t){if(!e)return e;return{value:t(e.value),rest:e.rest}},t.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o},t.parseAnyDigitsSigned=function(e){return a(o.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return a(o.numericPatterns.singleDigit,t);case 2:return a(o.numericPatterns.twoDigits,t);case 3:return a(o.numericPatterns.threeDigits,t);case 4:return a(o.numericPatterns.fourDigits,t);default:return a(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return a(o.numericPatterns.singleDigitSigned,t);case 2:return a(o.numericPatterns.twoDigitsSigned,t);case 3:return a(o.numericPatterns.threeDigitsSigned,t);case 4:return a(o.numericPatterns.fourDigitsSigned,t);default:return a(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=a,t.parseTimezonePattern=function(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const o="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:o*(a*r.millisecondsInHour+i*r.millisecondsInMinute+s*r.millisecondsInSecond),rest:t.slice(n[0].length)}};var r=n(9757),o=n(3704);function a(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},3848:(e,t,n)=>{"use strict";t.set=function(e,t){let n=(0,a.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);null!=t.year&&n.setFullYear(t.year);null!=t.month&&(n=(0,o.setMonth)(n,t.month));null!=t.date&&n.setDate(t.date);null!=t.hours&&n.setHours(t.hours);null!=t.minutes&&n.setMinutes(t.minutes);null!=t.seconds&&n.setSeconds(t.seconds);null!=t.milliseconds&&n.setMilliseconds(t.milliseconds);return n};var r=n(4161),o=n(2844),a=n(5551)},8844:(e,t,n)=>{"use strict";t.setDay=function(e,t,n){var i,s,l,u,c,d;const f=(0,a.getDefaultOptions)(),p=null!==(i=null!==(s=null!==(l=null!==(u=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==i?i:0,h=(0,o.toDate)(e),m=h.getDay(),v=(t%7+7)%7,g=7-p,y=t<0||t>6?t-(m+g)%7:(v+g)%7-(m+g)%7;return(0,r.addDays)(h,y)};var r=n(8620),o=n(5551),a=n(6868)},3525:(e,t,n)=>{"use strict";t.setHours=function(e,t){const n=(0,r.toDate)(e);return n.setHours(t),n};var r=n(5551)},261:(e,t,n)=>{"use strict";t.setISODay=function(e,t){const n=(0,a.toDate)(e),i=(0,o.getISODay)(n),s=t-i;return(0,r.addDays)(n,s)};var r=n(8620),o=n(8601),a=n(5551)},5267:(e,t,n)=>{"use strict";t.setISOWeek=function(e,t){const n=(0,o.toDate)(e),a=(0,r.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*a),n};var r=n(9871),o=n(5551)},4503:(e,t,n)=>{"use strict";t.setMinutes=function(e,t){const n=(0,r.toDate)(e);return n.setMinutes(t),n};var r=n(5551)},2844:(e,t,n)=>{"use strict";t.setMonth=function(e,t){const n=(0,a.toDate)(e),i=n.getFullYear(),s=n.getDate(),l=(0,r.constructFrom)(e,0);l.setFullYear(i,t,15),l.setHours(0,0,0,0);const u=(0,o.getDaysInMonth)(l);return n.setMonth(t,Math.min(s,u)),n};var r=n(4161),o=n(272),a=n(5551)},3410:(e,t,n)=>{"use strict";t.setQuarter=function(e,t){const n=(0,o.toDate)(e),a=Math.trunc(n.getMonth()/3)+1,i=t-a;return(0,r.setMonth)(n,n.getMonth()+3*i)};var r=n(2844),o=n(5551)},671:(e,t,n)=>{"use strict";t.setSeconds=function(e,t){const n=(0,r.toDate)(e);return n.setSeconds(t),n};var r=n(5551)},5056:(e,t,n)=>{"use strict";t.setWeek=function(e,t,n){const a=(0,o.toDate)(e),i=(0,r.getWeek)(a,n)-t;return a.setDate(a.getDate()-7*i),a};var r=n(2252),o=n(5551)},4521:(e,t,n)=>{"use strict";t.setYear=function(e,t){const n=(0,o.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);return n.setFullYear(t),n};var r=n(4161),o=n(5551)},6191:(e,t,n)=>{"use strict";t.startOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(0,0,0,0),t};var r=n(5551)},1048:(e,t,n)=>{"use strict";t.startOfISOWeek=function(e){return(0,r.startOfWeek)(e,{weekStartsOn:1})};var r=n(9249)},2329:(e,t,n)=>{"use strict";t.startOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,a.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.startOfISOWeek)(n)};var r=n(8890),o=n(1048),a=n(4161)},1619:(e,t,n)=>{"use strict";t.startOfMonth=function(e){const t=(0,r.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(5551)},1125:(e,t,n)=>{"use strict";t.startOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t};var r=n(5551)},9249:(e,t,n)=>{"use strict";t.startOfWeek=function(e,t){var n,a,i,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(a=null!==(i=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==a?a:null===(u=c.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0,f=(0,r.toDate)(e),p=f.getDay(),h=(p{"use strict";t.startOfWeekYear=function(e,t){var n,s,l,u,c,d;const f=(0,i.getDefaultOptions)(),p=null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:f.firstWeekContainsDate)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,h=(0,o.getWeekYear)(e,t),m=(0,r.constructFrom)(e,0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);return(0,a.startOfWeek)(m,t)};var r=n(4161),o=n(7941),a=n(9249),i=n(6868)},7332:(e,t,n)=>{"use strict";t.startOfYear=function(e){const t=(0,r.toDate)(e),n=(0,o.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var r=n(5551),o=n(4161)},3613:(e,t,n)=>{"use strict";t.subDays=function(e,t){return(0,r.addDays)(e,-t)};var r=n(8620)},6221:(e,t,n)=>{"use strict";t.subMonths=function(e,t){return(0,r.addMonths)(e,-t)};var r=n(4640)},899:(e,t,n)=>{"use strict";t.subQuarters=function(e,t){return(0,r.addQuarters)(e,-t)};var r=n(1634)},4357:(e,t,n)=>{"use strict";t.subWeeks=function(e,t){return(0,r.addWeeks)(e,-t)};var r=n(9994)},6198:(e,t,n)=>{"use strict";t.subYears=function(e,t){return(0,r.addYears)(e,-t)};var r=n(709)},5551:(e,t)=>{"use strict";t.toDate=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}},3583:(e,t,n)=>{"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,r.constructFrom)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n};var r=n(4161)},2740:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},9197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,i){var s=o||"<>",l=i||r;if(null==n[r])return t?new Error("Required "+a+" `"+l+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),d=6;d{"use strict";var r=n(3218);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1899:function(e,t,n){!function(e,t,n,r,o,a,i,s,l,u,c,d,f,p,h,m,v,g,y,b,w,k,x,S,E,D,C,P,N,M,O,T,j,R,_,I,L,z,F,A,Y,W,H,B,U,V,K,q,Q,$,X,G,Z,J,ee,te,ne,re,oe,ae,ie,se,le,ue,ce){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var fe=de(n),pe=de(r),he=de(ce),me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?n[0]:n;return e&&Ce(e,o,r)||""}function Ne(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return K.setHours(q.setMinutes(X.setSeconds(e,s),a),r)}function Me(e){return Z.startOfDay(e)}function Oe(e,t,n){var r=Be(t||He());return te.startOfWeek(e,{locale:r,weekStartsOn:n})}function Te(e){return J.startOfMonth(e)}function je(e){return ne.startOfYear(e)}function Re(e){return ee.startOfQuarter(e)}function _e(){return Z.startOfDay(Ee())}function Ie(e){return v.endOfDay(e)}function Le(e,t){return e&&t?F.isSameYear(e,t):!e&&!t}function ze(e,t){return e&&t?L.isSameMonth(e,t):!e&&!t}function Fe(e,t){return e&&t?z.isSameQuarter(e,t):!e&&!t}function Ae(e,t){return e&&t?I.isSameDay(e,t):!e&&!t}function Ye(e,t){return e&&t?_.isEqual(e,t):!e&&!t}function We(e,t,n){var r,o=Z.startOfDay(t),a=v.endOfDay(n);try{r=Y.isWithinInterval(e,{start:o,end:a})}catch(e){r=!1}return r}function He(){return ke().__localeId__}function Be(e){if("string"==typeof e){var t=ke();return t.__localeData__?t.__localeData__[e]:void 0}return e}function Ue(e,t){return Ce(Q.setMonth(Ee(),e),"LLLL",t)}function Ve(e,t){return Ce(Q.setMonth(Ee(),e),"LLL",t)}function Ke(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,u=n.filterDate;return tt(e,{minDate:r,maxDate:o})||a&&a.some((function(t){var n;return t instanceof Date?Ae(e,t):Ae(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||i&&i.some((function(t){var n=t.start,r=t.end;return Y.isWithinInterval(e,{start:n,end:r})}))||s&&!s.some((function(t){return Ae(e,t)}))||l&&!l.some((function(t){var n=t.start,r=t.end;return Y.isWithinInterval(e,{start:n,end:r})}))||u&&!u(Ee(e))||!1}function qe(e,t){var n=void 0===t?{}:t,r=n.excludeDates,o=n.excludeDateIntervals;return o&&o.length>0?o.some((function(t){var n=t.start,r=t.end;return Y.isWithinInterval(e,{start:n,end:r})})):r&&r.some((function(t){var n;return t instanceof Date?Ae(e,t):Ae(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||!1}function Qe(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return tt(e,{minDate:r?J.startOfMonth(r):void 0,maxDate:o?g.endOfMonth(o):void 0})||(null==a?void 0:a.some((function(t){return ze(e,t instanceof Date?t:t.date)})))||i&&!i.some((function(t){return ze(e,t)}))||s&&!s(Ee(e))||!1}function $e(e,t,n,r){var o=O.getYear(e),a=C.getMonth(e),i=O.getYear(t),s=C.getMonth(t),l=O.getYear(r);return o===i&&o===l?a<=n&&n<=s:o=n||lo)}function Xe(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates;return tt(e,{minDate:r,maxDate:o})||a&&a.some((function(t){return ze(t instanceof Date?t:t.date,e)}))||i&&!i.some((function(t){return ze(t,e)}))||!1}function Ge(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return tt(e,{minDate:r,maxDate:o})||(null==a?void 0:a.some((function(t){return Fe(e,t instanceof Date?t:t.date)})))||i&&!i.some((function(t){return Fe(e,t)}))||s&&!s(Ee(e))||!1}function Ze(e,t,n){if(!t||!n)return!1;if(!A.isValid(t)||!A.isValid(n))return!1;var r=O.getYear(t),o=O.getYear(n);return r<=e&&o>=e}function Je(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return tt(l,{minDate:r?ne.startOfYear(r):void 0,maxDate:o?b.endOfYear(o):void 0})||(null==a?void 0:a.some((function(e){return Le(l,e instanceof Date?e:e.date)})))||i&&!i.some((function(e){return Le(l,e)}))||s&&!s(Ee(l))||!1}function et(e,t,n,r){var o=O.getYear(e),a=P.getQuarter(e),i=O.getYear(t),s=P.getQuarter(t),l=O.getYear(r);return o===i&&o===l?a<=n&&n<=s:o=n||lo)}function tt(e,t){var n,r=void 0===t?{}:t,o=r.minDate,a=r.maxDate;return null!==(n=o&&f.differenceInCalendarDays(e,o)<0||a&&f.differenceInCalendarDays(e,a)>0)&&void 0!==n&&n}function nt(e,t){return t.some((function(t){return S.getHours(t)===S.getHours(e)&&D.getMinutes(t)===D.getMinutes(e)&&N.getSeconds(t)===N.getSeconds(e)}))}function rt(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,o=n.includeTimes,a=n.filterTime;return r&&nt(e,r)||o&&!nt(e,o)||a&&!a(e)||!1}function ot(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o=Ee();o=K.setHours(o,S.getHours(e)),o=q.setMinutes(o,D.getMinutes(e)),o=X.setSeconds(o,N.getSeconds(e));var a=Ee();a=K.setHours(a,S.getHours(n)),a=q.setMinutes(a,D.getMinutes(n)),a=X.setSeconds(a,N.getSeconds(n));var i,s=Ee();s=K.setHours(s,S.getHours(r)),s=q.setMinutes(s,D.getMinutes(r)),s=X.setSeconds(s,N.getSeconds(r));try{i=!Y.isWithinInterval(o,{start:a,end:s})}catch(e){i=!1}return i}function at(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=oe.subMonths(e,1);return r&&p.differenceInCalendarMonths(r,a)>0||o&&o.every((function(e){return p.differenceInCalendarMonths(e,a)>0}))||!1}function it(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,a=s.addMonths(e,1);return r&&p.differenceInCalendarMonths(a,r)>0||o&&o.every((function(e){return p.differenceInCalendarMonths(a,e)>0}))||!1}function st(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=se.subYears(e,1);return r&&m.differenceInCalendarYears(r,a)>0||o&&o.every((function(e){return m.differenceInCalendarYears(e,a)>0}))||!1}function lt(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,a=d.addYears(e,1);return r&&m.differenceInCalendarYears(a,r)>0||o&&o.every((function(e){return m.differenceInCalendarYears(a,e)>0}))||!1}function ut(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return f.differenceInCalendarDays(e,t)>=0}));return H.min(r)}return n?H.min(n):t}function ct(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return f.differenceInCalendarDays(e,t)<=0}));return W.max(r)}return n?W.max(n):t}function dt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var r=new Map,o=0,a=e.length;o=6,u=!t&&!r.isWeekInMonth(a);if(l||u){if(!r.props.peekNextMonth)break;o=!0}}return e},r.onMonthClick=function(e,t){var n=r.isMonthDisabledForLabelDate(t),o=n.isDisabled,a=n.labelDate;o||r.handleDayClick(Te(a),e)},r.onMonthMouseEnter=function(e){var t=r.isMonthDisabledForLabelDate(e),n=t.isDisabled,o=t.labelDate;n||r.handleDayMouseEnter(Te(o))},r.handleMonthNavigation=function(e,t){var n,o,a,i;null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,t),null===(i=null===(a=r.MONTH_REFS[e])||void 0===a?void 0:a.current)||void 0===i||i.focus()},r.handleKeyboardNavigation=function(e,t,n){var o,a=r.props,i=a.selected,l=a.preSelection,u=a.setPreSelection,c=a.minDate,d=a.maxDate,f=a.showFourColumnMonthYearPicker,p=a.showTwoColumnMonthYearPicker;if(l){var h=Mt(f,p),m=r.getVerticalOffset(h),v=null===(o=Nt[h])||void 0===o?void 0:o.grid,g=function(e,t,n){var r,o,a=t,i=n;switch(e){case be.ArrowRight:a=s.addMonths(t,1),i=11===n?0:n+1;break;case be.ArrowLeft:a=oe.subMonths(t,1),i=0===n?11:n-1;break;case be.ArrowUp:a=oe.subMonths(t,m),i=(null===(r=null==v?void 0:v[0])||void 0===r?void 0:r.includes(n))?n+12-m:n-m;break;case be.ArrowDown:a=s.addMonths(t,m),i=(null===(o=null==v?void 0:v[v.length-1])||void 0===o?void 0:o.includes(n))?n-12+m:n+m}return{newCalculatedDate:a,newCalculatedMonth:i}};if(t!==be.Enter){var y=function(e,t,n){for(var o=e,a=!1,i=0,s=g(o,t,n),l=s.newCalculatedDate,u=s.newCalculatedMonth;!a;){if(i>=40){l=t,u=n;break}var f;c&&ld&&(o=be.ArrowLeft,l=(f=g(o,l,u)).newCalculatedDate,u=f.newCalculatedMonth),Xe(l,r.props)?(l=(f=g(o,l,u)).newCalculatedDate,u=f.newCalculatedMonth):a=!0,i++}return{newCalculatedDate:l,newCalculatedMonth:u}}(t,l,n),b=y.newCalculatedDate,w=y.newCalculatedMonth;switch(t){case be.ArrowRight:case be.ArrowLeft:case be.ArrowUp:case be.ArrowDown:r.handleMonthNavigation(w,b)}}else r.isMonthDisabled(n)||(r.onMonthClick(e,n),null==u||u(i))}},r.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=Nt[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},r.onMonthKeyDown=function(e,t){var n=r.props,o=n.disabledKeyboardNavigation,a=n.handleOnMonthKeyDown,i=e.key;i!==be.Tab&&e.preventDefault(),o||r.handleKeyboardNavigation(e,i,t),a&&a(e)},r.onQuarterClick=function(e,t){var n=$.setQuarter(r.props.day,t);Ge(n,r.props)||r.handleDayClick(Re(n),e)},r.onQuarterMouseEnter=function(e){var t=$.setQuarter(r.props.day,e);Ge(t,r.props)||r.handleDayMouseEnter(Re(t))},r.handleQuarterNavigation=function(e,t){var n,o,a,i;r.isDisabled(t)||r.isExcluded(t)||(null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,t),null===(i=null===(a=r.QUARTER_REFS[e-1])||void 0===a?void 0:a.current)||void 0===i||i.focus())},r.onQuarterKeyDown=function(e,t){var n,o,a=e.key;if(!r.props.disabledKeyboardNavigation)switch(a){case be.Enter:r.onQuarterClick(e,t),null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,r.props.selected);break;case be.ArrowRight:if(!r.props.preSelection)break;r.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(r.props.preSelection,1));break;case be.ArrowLeft:if(!r.props.preSelection)break;r.handleQuarterNavigation(1===t?4:t-1,ae.subQuarters(r.props.preSelection,1))}},r.isMonthDisabledForLabelDate=function(e){var t,n=r.props,o=n.day,a=n.minDate,i=n.maxDate,s=n.excludeDates,l=n.includeDates,u=Q.setMonth(o,e);return{isDisabled:null!==(t=(a||i||s||l)&&Qe(u,r.props))&&void 0!==t&&t,labelDate:u}},r.isMonthDisabled=function(e){return r.isMonthDisabledForLabelDate(e).isDisabled},r.getMonthClassNames=function(e){var n=r.props,o=n.day,a=n.startDate,i=n.endDate,s=n.selected,l=n.preSelection,u=n.monthClassName,c=u?u(Q.setMonth(o,e)):void 0;return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),c,{"react-datepicker__month-text--disabled":r.isMonthDisabled(e),"react-datepicker__month-text--selected":s?r.isSelectedMonth(o,e,s):void 0,"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&l&&r.isSelectedMonth(o,e,l),"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":a&&i?$e(a,i,e,o):void 0,"react-datepicker__month-text--range-start":r.isRangeStartMonth(e),"react-datepicker__month-text--range-end":r.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":r.isCurrentMonth(o,e)})},r.getTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=C.getMonth(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getQuarterTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=P.getQuarter(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getAriaLabel=function(e){var t=r.props,n=t.chooseDayAriaLabelPrefix,o=void 0===n?"Choose":n,a=t.disabledDayAriaLabelPrefix,i=void 0===a?"Not available":a,s=t.day,l=t.locale,u=Q.setMonth(s,e),c=r.isDisabled(u)||r.isExcluded(u)?i:o;return"".concat(c," ").concat(Ce(u,"MMMM yyyy",l))},r.getQuarterClassNames=function(e){var n=r.props,o=n.day,a=n.startDate,i=n.endDate,s=n.selected,l=n.minDate,u=n.maxDate,c=n.preSelection,d=n.disabledKeyboardNavigation;return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":(l||u)&&Ge($.setQuarter(o,e),r.props),"react-datepicker__quarter-text--selected":s?r.isSelectedQuarter(o,e,s):void 0,"react-datepicker__quarter-text--keyboard-selected":!d&&c&&r.isSelectedQuarter(o,e,c),"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":a&&i?et(a,i,e,o):void 0,"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(e)})},r.getMonthContent=function(e){var t=r.props,n=t.showFullMonthYearPicker,o=t.renderMonthContent,a=t.locale,i=t.day,s=Ve(e,a),l=Ue(e,a);return o?o(e,s,l,i):n?l:s},r.getQuarterContent=function(e){var t,n=r.props,o=n.renderQuarterContent,a=function(e,t){return Ce($.setQuarter(Ee(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==o?void 0:o(e,a))&&void 0!==t?t:a},r.renderMonths=function(){var e,t=r.props,n=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,a=t.day,i=t.selected,s=null===(e=Nt[Mt(o,n)])||void 0===e?void 0:e.grid;return null==s?void 0:s.map((function(e,t){return fe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map((function(e,t){return fe.default.createElement("div",{ref:r.MONTH_REFS[e],key:t,onClick:function(t){r.onMonthClick(t,e)},onKeyDown:function(t){bt(t)&&(t.preventDefault(),t.key=be.Enter),r.onMonthKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onMonthMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onMonthMouseEnter(e)}:void 0,tabIndex:Number(r.getTabIndex(e)),className:r.getMonthClassNames(e),"aria-disabled":r.isMonthDisabled(e),role:"option","aria-label":r.getAriaLabel(e),"aria-current":r.isCurrentMonth(a,e)?"date":void 0,"aria-selected":i?r.isSelectedMonth(a,e,i):void 0},r.getMonthContent(e))})))}))},r.renderQuarters=function(){var e=r.props,t=e.day,n=e.selected;return fe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,o){return fe.default.createElement("div",{key:o,ref:r.QUARTER_REFS[o],role:"option",onClick:function(t){r.onQuarterClick(t,e)},onKeyDown:function(t){r.onQuarterKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onQuarterMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onQuarterMouseEnter(e)}:void 0,className:r.getQuarterClassNames(e),"aria-selected":n?r.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(r.getQuarterTabIndex(e)),"aria-current":r.isCurrentQuarter(t,e)?"date":void 0},r.getQuarterContent(e))})))},r.getClassNames=function(){var e=r.props,n=e.selectingDate,o=e.selectsStart,a=e.selectsEnd,i=e.showMonthYearPicker,s=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(o||a)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})},r}return ve(r,e),r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,a=void 0===o?"Month ":o,i=a?a.trim()+" ":"";return fe.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(i).concat(Ce(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},r}(n.Component),Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map((function(e,n){return fe.default.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?fe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return ve(t,e),t.prototype.render=function(){return fe.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(n.Component),jt=pe.default(Tt),Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map((function(e,t){return fe.default.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return fe.default.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},fe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return fe.default.createElement(jt,ge({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ve(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return Ve(e,t.props.locale)}:function(e){return Ue(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return fe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function _t(e,t){for(var n=[],r=Te(e),o=Te(t);!T.isAfter(r,o);)n.push(Ee(r)),r=s.addMonths(r,1);return n}var It=function(e){function n(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map((function(e){var t=M.getTime(e),r=Le(n.props.date,e)&&ze(n.props.date,e);return fe.default.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?fe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Ce(e,n.props.dateFormat,n.props.locale))}))},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:_t(n.props.minDate,n.props.maxDate)},n}return ve(n,e),n.prototype.render=function(){var e=t.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return fe.default.createElement("div",{className:e},this.renderOptions())},n}(n.Component),Lt=pe.default(It),zt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=Te(t.props.minDate),n=Te(t.props.maxDate),r=[];!T.isAfter(e,n);){var o=M.getTime(e);r.push(fe.default.createElement("option",{key:o,value:o},Ce(e,t.props.dateFormat,t.props.locale))),e=s.addMonths(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return fe.default.createElement("select",{value:M.getTime(Te(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=Ce(t.props.date,t.props.dateFormat,t.props.locale);return fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return fe.default.createElement(Lt,ge({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=Ee(e);Le(t.props.date,n)&&ze(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ve(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Ft=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var e,r,o;n.list&&(n.list.scrollTop=null!==(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==o?o:0)}))},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&ot(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&rt(e,n.props)||null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,vt(n.props.selected).getTime()===vt(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&ot(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&rt(e,n.props)},n.liClasses=function(e){var r,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*S.getHours(e)+60*D.getMinutes(e)+N.getSeconds(e))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:t.defaultProps.intervals))!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(e,t){var r,o;e.key===be.Space&&(e.preventDefault(),e.key=be.Enter),(e.key===be.ArrowUp||e.key===be.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===be.ArrowDown||e.key===be.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===be.Enter&&n.handleClick(t),null===(o=(r=n.props).handleOnKeyDown)||void 0===o||o.call(r,e)},n.renderTimes=function(){for(var e,r=[],o=n.props.format?n.props.format:"p",a=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Ee(),l=Me(s),u=n.props.injectTimes&&n.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),c=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(s),d=c/a,f=0;f=u?o.updateFocusOnPaginate(Math.abs(u-(e-c))):null===(i=null===(a=o.YEAR_REFS[e-c])||void 0===a?void 0:a.current)||void 0===i||i.focus())}},o.isSameDay=function(e,t){return Ae(e,t)},o.isCurrentYear=function(e){return e===O.getYear(Ee())},o.isRangeStart=function(e){return o.props.startDate&&o.props.endDate&&Le(G.setYear(Ee(),e),o.props.startDate)},o.isRangeEnd=function(e){return o.props.startDate&&o.props.endDate&&Le(G.setYear(Ee(),e),o.props.endDate)},o.isInRange=function(e){return Ze(e,o.props.startDate,o.props.endDate)},o.isInSelectingRange=function(e){var t=o.props,n=t.selectsStart,r=t.selectsEnd,a=t.selectsRange,i=t.startDate,s=t.endDate;return!(!(n||r||a)||!o.selectingDate())&&(n&&s?Ze(e,o.selectingDate(),s):(r&&i||!(!a||!i||s))&&Ze(e,i,o.selectingDate()))},o.isSelectingRangeStart=function(e){var t;if(!o.isInSelectingRange(e))return!1;var n=o.props,r=n.startDate,a=n.selectsStart;return Le(G.setYear(Ee(),e),a?null!==(t=o.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},o.isSelectingRangeEnd=function(e){var t;if(!o.isInSelectingRange(e))return!1;var n=o.props,r=n.endDate,a=n.selectsEnd,i=n.selectsRange;return Le(G.setYear(Ee(),e),a||i?null!==(t=o.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},o.isKeyboardSelected=function(e){if(void 0!==o.props.date&&null!=o.props.selected&&null!=o.props.preSelection){var t=je(G.setYear(o.props.date,e));return!o.props.disabledKeyboardNavigation&&!o.props.inline&&!Ae(t,je(o.props.selected))&&Ae(t,je(o.props.preSelection))}},o.onYearClick=function(e,t){var n=o.props.date;void 0!==n&&o.handleYearClick(je(G.setYear(n,t)),e)},o.onYearKeyDown=function(e,t){var n,r,a=e.key,i=o.props,s=i.date,l=i.yearItemNumber,u=i.handleOnKeyDown;if(a!==be.Tab&&e.preventDefault(),!o.props.disabledKeyboardNavigation)switch(a){case be.Enter:if(null==o.props.selected)break;o.onYearClick(e,t),null===(r=(n=o.props).setPreSelection)||void 0===r||r.call(n,o.props.selected);break;case be.ArrowRight:if(null==o.props.preSelection)break;o.handleYearNavigation(t+1,d.addYears(o.props.preSelection,1));break;case be.ArrowLeft:if(null==o.props.preSelection)break;o.handleYearNavigation(t-1,se.subYears(o.props.preSelection,1));break;case be.ArrowUp:if(void 0===s||void 0===l||null==o.props.preSelection)break;var c=mt(s,l).startPeriod;if((h=t-(p=3))=c&&tm&&(f=l%p,t<=m&&t>m-f?p=f:p+=f,h=t+p),o.handleYearNavigation(h,d.addYears(o.props.preSelection,p))}u&&u(e)},o.getYearClassNames=function(e){var n=o.props,r=n.date,a=n.minDate,i=n.maxDate,s=n.selected,l=n.excludeDates,u=n.includeDates,c=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),r?null==d?void 0:d(G.setYear(r,e)):void 0,{"react-datepicker__year-text--selected":s?e===O.getYear(s):void 0,"react-datepicker__year-text--disabled":(a||i||l||u||c)&&Je(e,o.props),"react-datepicker__year-text--keyboard-selected":o.isKeyboardSelected(e),"react-datepicker__year-text--range-start":o.isRangeStart(e),"react-datepicker__year-text--range-end":o.isRangeEnd(e),"react-datepicker__year-text--in-range":o.isInRange(e),"react-datepicker__year-text--in-selecting-range":o.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":o.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":o.isSelectingRangeEnd(e),"react-datepicker__year-text--today":o.isCurrentYear(e)})},o.getYearTabIndex=function(e){return o.props.disabledKeyboardNavigation||null==o.props.preSelection?"-1":e===O.getYear(o.props.preSelection)?"0":"-1"},o.getYearContainerClassNames=function(){var e=o.props,n=e.selectingDate,r=e.selectsStart,a=e.selectsEnd,i=e.selectsRange;return t.clsx("react-datepicker__year",{"react-datepicker__year--selecting-range":n&&(r||a||i)})},o.getYearContent=function(e){return o.props.renderYearContent?o.props.renderYearContent(e):e},o}return ve(r,e),r.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,o=n.yearItemNumber,a=n.onYearMouseEnter,i=n.onYearMouseLeave;if(void 0===r)return null;for(var s=mt(r,o),l=s.startPeriod,u=s.endPeriod,c=function(n){t.push(fe.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){bt(t)&&(t.preventDefault(),t.key=be.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return a(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return i(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return i(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,f=l;f<=u;f++)c(f);return fe.default.createElement("div",{className:this.getYearContainerClassNames()},fe.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},r}(n.Component);function Yt(e,t,n,r){for(var o=[],a=0;a<2*t+1;a++){var i=e+t-a,s=!0;n&&(s=O.getYear(n)<=i),r&&s&&(s=O.getYear(r)>=i),s&&o.push(i)}return o}var Wt,Ht=function(e){function r(t){var r=e.call(this,t)||this;r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return fe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?fe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?O.getYear(r.props.minDate):null,o=r.props.maxDate?O.getYear(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=t.yearDropdownItemNumber,a=t.scrollableYearDropdown,i=o||(a?10:5);return r.state={yearsList:Yt(r.props.year,i,r.props.minDate,r.props.maxDate)},r.dropdownRef=n.createRef(),r}return ve(r,e),r.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},r.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return fe.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())},r}(n.Component),Bt=pe.default(Ht),Ut=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?O.getYear(t.props.minDate):1900,n=t.props.maxDate?O.getYear(t.props.maxDate):2100,r=[],o=e;o<=n;o++)r.push(fe.default.createElement("option",{key:o,value:o},o));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return fe.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},fe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return fe.default.createElement(Bt,ge({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},(function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)}))},t.handleYearChange=function(e,n){t.onSelect(e,n),t.setOpen()},t.onSelect=function(e,n){t.props.onSelect&&t.props.onSelect(e,n)},t.setOpen=function(){t.props.setOpen&&t.props.setOpen(!0)},t}return ve(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Vt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Kt=function(e){function r(a){var i=e.call(this,a)||this;return i.monthContainer=void 0,i.handleClickOutside=function(e){i.props.onClickOutside(e)},i.setClickOutsideRef=function(){return i.containerRef.current},i.handleDropdownFocus=function(e){var t,n,r,o;r=e.target,o=(r.className||"").split(/\s+/),Vt.some((function(e){return o.indexOf(e)>=0}))&&(null===(n=(t=i.props).onDropdownFocus)||void 0===n||n.call(t,e))},i.getDateInView=function(){var e=i.props,t=e.preSelection,n=e.selected,r=e.openToDate,o=ut(i.props),a=ct(i.props),s=Ee();return r||n||t||(o&&j.isBefore(s,o)?o:a&&T.isAfter(s,a)?a:s)},i.increaseMonth=function(){i.setState((function(e){var t=e.date;return{date:s.addMonths(t,1)}}),(function(){return i.handleMonthChange(i.state.date)}))},i.decreaseMonth=function(){i.setState((function(e){var t=e.date;return{date:oe.subMonths(t,1)}}),(function(){return i.handleMonthChange(i.state.date)}))},i.handleDayClick=function(e,t,n){i.props.onSelect(e,t,n),i.props.setPreSelection&&i.props.setPreSelection(e)},i.handleDayMouseEnter=function(e){i.setState({selectingDate:e}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(e)},i.handleMonthMouseLeave=function(){i.setState({selectingDate:void 0}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()},i.handleYearMouseEnter=function(e,t){i.setState({selectingDate:G.setYear(Ee(),t)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(e,t)},i.handleYearMouseLeave=function(e,t){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(e,t)},i.handleYearChange=function(e){i.props.onYearChange&&(i.props.onYearChange(e),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(e),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(e)},i.handleMonthChange=function(e){i.handleCustomMonthChange(e),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(e),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(e)},i.handleCustomMonthChange=function(e){i.props.onMonthChange&&(i.props.onMonthChange(e),i.setState({isRenderAriaLiveMessage:!0}))},i.handleMonthYearChange=function(e){i.handleYearChange(e),i.handleMonthChange(e)},i.changeYear=function(e){i.setState((function(t){var n=t.date;return{date:G.setYear(n,Number(e))}}),(function(){return i.handleYearChange(i.state.date)}))},i.changeMonth=function(e){i.setState((function(t){var n=t.date;return{date:Q.setMonth(n,Number(e))}}),(function(){return i.handleMonthChange(i.state.date)}))},i.changeMonthYear=function(e){i.setState((function(t){var n=t.date;return{date:G.setYear(Q.setMonth(n,C.getMonth(e)),O.getYear(e))}}),(function(){return i.handleMonthYearChange(i.state.date)}))},i.header=function(e){void 0===e&&(e=i.state.date);var n=Oe(e,i.props.locale,i.props.calendarStartDay),r=[];return i.props.showWeekNumbers&&r.push(fe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),r.concat([0,1,2,3,4,5,6].map((function(e){var r=o.addDays(n,e),a=i.formatWeekday(r,i.props.locale),s=i.props.weekDayClassName?i.props.weekDayClassName(r):void 0;return fe.default.createElement("div",{key:e,"aria-label":Ce(r,"EEEE",i.props.locale),className:t.clsx("react-datepicker__day-name",s)},a)})))},i.formatWeekday=function(e,t){return i.props.formatWeekDay?function(e,t,n){return t(Ce(e,"EEEE",n))}(e,i.props.formatWeekDay,t):i.props.useWeekdaysShort?function(e,t){return Ce(e,"EEE",t)}(e,t):function(e,t){return Ce(e,"EEEEEE",t)}(e,t)},i.decreaseYear=function(){i.setState((function(e){var t,n=e.date;return{date:se.subYears(n,i.props.showYearPicker?null!==(t=i.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))},i.clearSelectingDate=function(){i.setState({selectingDate:void 0})},i.renderPreviousButton=function(){var e;if(!i.props.renderCustomHeader){var t;switch(!0){case i.props.showMonthYearPicker:t=st(i.state.date,i.props);break;case i.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.yearItemNumber,a=void 0===o?xe:o,i=mt(je(se.subYears(e,a)),a).endPeriod,s=r&&O.getYear(r);return s&&s>i||!1}(i.state.date,i.props);break;case i.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=ne.startOfYear(e),i=ae.subQuarters(a,1);return r&&h.differenceInCalendarQuarters(r,i)>0||o&&o.every((function(e){return h.differenceInCalendarQuarters(e,i)>0}))||!1}(i.state.date,i.props);break;default:t=at(i.state.date,i.props)}if(((null!==(e=i.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||i.props.showDisabledMonthNavigation||!t)&&!i.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--previous"],o=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(o=i.decreaseYear),t&&i.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--previous--disabled"),o=void 0);var a=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,s=i.props,l=s.previousMonthButtonLabel,u=void 0===l?r.defaultProps.previousMonthButtonLabel:l,c=s.previousYearButtonLabel,d=void 0===c?r.defaultProps.previousYearButtonLabel:c,f=i.props,p=f.previousMonthAriaLabel,m=void 0===p?"string"==typeof u?u:"Previous Month":p,v=f.previousYearAriaLabel,g=void 0===v?"string"==typeof d?d:"Previous Year":v;return fe.default.createElement("button",{type:"button",className:n.join(" "),onClick:o,onKeyDown:i.props.handleOnKeyDown,"aria-label":a?g:m},fe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},a?d:u))}}},i.increaseYear=function(){i.setState((function(e){var t,n=e.date;return{date:d.addYears(n,i.props.showYearPicker?null!==(t=i.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))},i.renderNextButton=function(){var e;if(!i.props.renderCustomHeader){var t;switch(!0){case i.props.showMonthYearPicker:t=lt(i.state.date,i.props);break;case i.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.yearItemNumber,a=void 0===o?xe:o,i=mt(d.addYears(e,a),a).startPeriod,s=r&&O.getYear(r);return s&&s0||o&&o.every((function(e){return h.differenceInCalendarQuarters(i,e)>0}))||!1}(i.state.date,i.props);break;default:t=it(i.state.date,i.props)}if(((null!==(e=i.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||i.props.showDisabledMonthNavigation||!t)&&!i.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var o=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(o=i.increaseYear),t&&i.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),o=void 0);var a=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,s=i.props,u=s.nextMonthButtonLabel,c=void 0===u?r.defaultProps.nextMonthButtonLabel:u,f=s.nextYearButtonLabel,p=void 0===f?r.defaultProps.nextYearButtonLabel:f,m=i.props,v=m.nextMonthAriaLabel,g=void 0===v?"string"==typeof c?c:"Next Month":v,y=m.nextYearAriaLabel,w=void 0===y?"string"==typeof p?p:"Next Year":y;return fe.default.createElement("button",{type:"button",className:n.join(" "),onClick:o,onKeyDown:i.props.handleOnKeyDown,"aria-label":a?w:g},fe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},a?p:c))}}},i.renderCurrentMonth=function(e){void 0===e&&(e=i.state.date);var t=["react-datepicker__current-month"];return i.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),fe.default.createElement("h2",{className:t.join(" ")},Ce(e,i.props.dateFormat,i.props.locale))},i.renderYearDropdown=function(e){if(void 0===e&&(e=!1),i.props.showYearDropdown&&!e)return fe.default.createElement(Ut,ge({},r.defaultProps,i.props,{date:i.state.date,onChange:i.changeYear,year:O.getYear(i.state.date)}))},i.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),i.props.showMonthDropdown&&!e)return fe.default.createElement(Rt,ge({},r.defaultProps,i.props,{month:C.getMonth(i.state.date),onChange:i.changeMonth}))},i.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),i.props.showMonthYearDropdown&&!e)return fe.default.createElement(zt,ge({},r.defaultProps,i.props,{date:i.state.date,onChange:i.changeMonthYear}))},i.handleTodayButtonClick=function(e){i.props.onSelect(_e(),e),i.props.setPreSelection&&i.props.setPreSelection(_e())},i.renderTodayButton=function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return fe.default.createElement("div",{className:"react-datepicker__today-button",onClick:i.handleTodayButtonClick},i.props.todayButton)},i.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return fe.default.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(t),fe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(0!==n),i.renderMonthYearDropdown(0!==n),i.renderYearDropdown(0!==n)),fe.default.createElement("div",{className:"react-datepicker__day-names"},i.header(t)))},i.renderCustomHeader=function(e){var t,n,r=e.monthDate,o=e.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var a=at(i.state.date,i.props),s=it(i.state.date,i.props),l=st(i.state.date,i.props),u=lt(i.state.date,i.props),c=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},null===(n=(t=i.props).renderCustomHeader)||void 0===n?void 0:n.call(t,ge(ge({},i.state),{customHeaderCount:o,monthDate:r,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:s,prevYearButtonDisabled:l,nextYearButtonDisabled:u})),c&&fe.default.createElement("div",{className:"react-datepicker__day-names"},i.header(r)))},i.renderYearHeader=function(e){var t=e.monthDate,n=i.props,o=n.showYearPicker,a=n.yearItemNumber,s=mt(t,void 0===a?r.defaultProps.yearItemNumber:a),l=s.startPeriod,u=s.endPeriod;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},o?"".concat(l," - ").concat(u):O.getYear(t))},i.renderHeader=function(e){var t=e.monthDate,n=e.i,r={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==i.props.renderCustomHeader:return i.renderCustomHeader(r);case i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker:return i.renderYearHeader(r);default:return i.renderDefaultHeader(r)}},i.renderMonths=function(){var e,t;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var n=[],o=null!==(e=i.props.monthsShown)&&void 0!==e?e:r.defaultProps.monthsShown,a=i.props.showPreviousMonths?o-1:0,l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker?d.addYears(i.state.date,a):oe.subMonths(i.state.date,a),u=null!==(t=i.props.monthSelectedIn)&&void 0!==t?t:a,c=0;c0;n.push(fe.default.createElement("div",{key:h,ref:function(e){i.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},i.renderHeader({monthDate:p,i:c}),fe.default.createElement(Ot,ge({},r.defaultProps,i.props,{ariaLabelPrefix:i.props.monthAriaLabelPrefix,day:p,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,handleOnMonthKeyDown:i.props.handleOnKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,orderInDisplay:c,selectingDate:i.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:v}))))}return n}},i.renderYears=function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?fe.default.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader({monthDate:i.state.date}),fe.default.createElement(At,ge({},r.defaultProps,i.props,{selectingDate:i.state.selectingDate,date:i.state.date,onDayClick:i.handleDayClick,clearSelectingDate:i.clearSelectingDate,onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0},i.renderTimeSection=function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return fe.default.createElement(Ft,ge({},r.defaultProps,i.props,{onChange:i.props.onTimeChange,format:i.props.timeFormat,intervals:i.props.timeIntervals,monthRef:i.state.monthContainer}))},i.renderInputTimeSection=function(){var e=i.props.selected?new Date(i.props.selected):void 0,t=e&&De(e)&&Boolean(i.props.selected)?"".concat(ht(e.getHours()),":").concat(ht(e.getMinutes())):"";if(i.props.showTimeInput)return fe.default.createElement(kt,ge({},r.defaultProps,i.props,{date:e,timeString:t,onChange:i.props.onTimeChange}))},i.renderAriaLiveRegion=function(){var e,t,n=mt(i.state.date,null!==(e=i.props.yearItemNumber)&&void 0!==e?e:r.defaultProps.yearItemNumber),o=n.startPeriod,a=n.endPeriod;return t=i.props.showYearPicker?"".concat(o," - ").concat(a):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?O.getYear(i.state.date):"".concat(Ue(C.getMonth(i.state.date),i.props.locale)," ").concat(O.getYear(i.state.date)),fe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&t)},i.renderChildren=function(){if(i.props.children)return fe.default.createElement("div",{className:"react-datepicker__children-container"},i.props.children)},i.containerRef=n.createRef(),i.state={date:i.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},i}return ve(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:xe}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},r.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||Ae(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Ae(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!ze(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}},r.prototype.render=function(){var e=this.props.container||we;return fe.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},fe.default.createElement(e,{className:t.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(n.Component),qt=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,a="react-datepicker__calendar-icon";return"string"==typeof t?fe.default.createElement("i",{className:"".concat(a," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):fe.default.isValidElement(t)?fe.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(a," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof o&&o(e)}}):fe.default.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},fe.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Qt=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return ve(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return he.default.createPortal(this.props.children,this.el)},t}(n.Component),$t=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},Xt=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter($t)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=n.createRef(),r}return ve(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?fe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},fe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,fe.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),Gt=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return ve(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,o=e.className,a=e.wrapperClassName,i=e.hidePopper,s=void 0===i?r.defaultProps.hidePopper:i,l=e.popperComponent,u=e.targetComponent,c=e.enableTabLoop,d=e.popperOnKeyDown,f=e.portalId,p=e.portalHost,h=e.popperProps,m=e.showArrow,v=void 0;if(!s){var g=t.clsx("react-datepicker-popper",o);v=fe.default.createElement(Xt,{enableTabLoop:c},fe.default.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:g,"data-placement":h.placement,onKeyDown:d},l,m&&fe.default.createElement(ue.FloatingArrow,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(v=n.createElement(this.props.popperContainer,{},v)),f&&!s&&(v=fe.default.createElement(Qt,{portalId:f,portalHost:p},v));var y=t.clsx("react-datepicker-wrapper",a);return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{ref:h.refs.setReference,className:y},u),v)},r}(n.Component),Zt=(Wt=Gt,function(e){var t,r="boolean"!=typeof e.hidePopper||e.hidePopper,o=n.useRef(null),a=ue.useFloating(ge({open:!r,whileElementsMounted:ue.autoUpdate,placement:e.popperPlacement,middleware:ye([ue.flip({padding:15}),ue.offset(10),ue.arrow({element:o})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),i=ge(ge({},e),{hidePopper:r,popperProps:ge(ge({},a),{arrowRef:o})});return fe.default.createElement(Wt,ge({},i))}),Jt="react-datepicker-ignore-onclickoutside",en=pe.default(Kt),tn="Date input not valid.",nn=function(e){function r(a){var i=e.call(this,a)||this;return i.calendar=null,i.input=null,i.getPreSelection=function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Ee()},i.modifyHolidays=function(){var e;return null===(e=i.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return De(n)?ye(ye([],e,!0),[ge(ge({},t),{date:n})],!1):e}),[])},i.calcInitialState=function(){var e,t=i.getPreSelection(),n=ut(i.props),r=ct(i.props),o=n&&j.isBefore(t,Me(n))?n:r&&T.isAfter(t,Ie(r))?r:t;return{open:i.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=i.props.selectsRange?i.props.startDate:i.props.selected)&&void 0!==e?e:o,highlightDates:dt(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},i.resetHiddenStatus=function(){i.setState(ge(ge({},i.state),{wasHidden:!1}))},i.setHiddenStatus=function(){i.setState(ge(ge({},i.state),{wasHidden:!0}))},i.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&i.setHiddenStatus()},i.clearPreventFocusTimeout=function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)},i.setFocus=function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})},i.setBlur=function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()},i.setOpen=function(e,t){void 0===t&&(t=!1),i.setState({open:e,preSelection:e&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:on},(function(){e||i.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&i.setBlur(),i.setState({inputValue:null})}))}))},i.inputOk=function(){return R.isDate(i.state.preSelection)},i.isCalendarOpen=function(){return void 0===i.props.open?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open},i.handleFocus=function(e){var t,n,r=i.state.wasHidden,o=!r||i.state.open;r&&i.resetHiddenStatus(),!i.state.preventFocus&&o&&(null===(n=(t=i.props).onFocus)||void 0===n||n.call(t,e),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})},i.sendFocusBackToInput=function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},(function(){i.preventFocusTimeout=setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))}))},i.cancelFocusInput=function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=void 0},i.deferFocusInput=function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout((function(){return i.setFocus()}),1)},i.handleDropdownFocus=function(){i.cancelFocusInput()},i.handleBlur=function(e){var t,n;(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&(null===(n=(t=i.props).onBlur)||void 0===n||n.call(t,e)),i.setState({focused:!1})},i.handleCalendarClickOutside=function(e){var t,n;i.props.inline||i.setOpen(!1),null===(n=(t=i.props).onClickOutside)||void 0===n||n.call(t,e),i.props.withPortal&&e.preventDefault()},i.handleChange=function(){for(var e=[],t=0;t0&&(i=B.parse(e,u.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),De(i)||(i=new Date(e))}return De(i)&&l?i:null}((null==n?void 0:n.target)instanceof HTMLInputElement?n.target.value:"",s,i.props.locale,u,i.props.minDate);i.props.showTimeSelectOnly&&i.props.selected&&c&&!Ae(c,i.props.selected)&&(c=V.set(i.props.selected,{hours:S.getHours(c),minutes:D.getMinutes(c),seconds:N.getSeconds(c)})),!c&&(null==n?void 0:n.target)instanceof HTMLInputElement&&(null==n?void 0:n.target.value)||i.setSelected(c,n,!0)}},i.handleSelect=function(e,t,n){if(i.props.shouldCloseOnSelect&&!i.props.showTimeSelect&&i.sendFocusBackToInput(),i.props.onChangeRaw&&i.props.onChangeRaw(t),i.setSelected(e,t,!1,n),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(e);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var r=i.props,o=r.startDate,a=r.endDate;!o||a||!i.props.swapRange&&yt(e,o)||i.setOpen(!1)}},i.setSelected=function(e,t,n,r){var o=e;if(i.props.showYearPicker){if(null!==o&&Je(O.getYear(o),i.props))return}else if(i.props.showMonthYearPicker){if(null!==o&&Qe(o,i.props))return}else if(null!==o&&Ke(o,i.props))return;var a=i.props,s=a.onChange,l=a.selectsRange,u=a.startDate,c=a.endDate,d=a.selectsMultiple,f=a.selectedDates,p=a.minTime,h=a.swapRange;if(!Ye(i.props.selected,o)||i.props.allowSameDay||l||d)if(null!==o&&(!i.props.selected||n&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(o=Ne(o,{hour:S.getHours(i.props.selected),minute:D.getMinutes(i.props.selected),second:N.getSeconds(i.props.selected)})),n||!i.props.showTimeSelect&&!i.props.showTimeSelectOnly||p&&(o=Ne(o,{hour:p.getHours(),minute:p.getMinutes(),second:p.getSeconds()})),i.props.inline||i.setState({preSelection:o}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:r})),l){var m=u&&c;u||c?u&&!c&&(null===o?s([null,null],t):yt(o,u)?s(h?[o,u]:[o,null],t):s([u,o],t)):s([o,null],t),m&&s([o,null],t)}else d?null!==o&&((null==f?void 0:f.length)?f.some((function(e){return Ae(e,o)}))?s(f.filter((function(e){return!Ae(e,o)})),t):s(ye(ye([],f,!0),[o],!1),t):s([o],t)):s(o,t);n||(i.props.onSelect(o,t),i.setState({inputValue:null}))},i.setPreSelection=function(e){var t=R.isDate(i.props.minDate),n=R.isDate(i.props.maxDate),r=!0;if(e){var o=Me(e);if(t&&n)r=We(e,i.props.minDate,i.props.maxDate);else if(t){var a=Me(i.props.minDate);r=T.isAfter(e,a)||Ye(o,a)}else if(n){var s=Ie(i.props.maxDate);r=j.isBefore(e,s)||Ye(o,s)}}r&&i.setState({preSelection:e})},i.toggleCalendar=function(){i.setOpen(!i.state.open)},i.handleTimeChange=function(e){if(!i.props.selectsRange&&!i.props.selectsMultiple){var t=i.props.selected?i.props.selected:i.getPreSelection(),n=i.props.selected?e:Ne(t,{hour:S.getHours(e),minute:D.getMinutes(e)});i.setState({preSelection:n}),i.props.onChange(n),i.props.shouldCloseOnSelect&&!i.props.showTimeInput&&(i.sendFocusBackToInput(),i.setOpen(!1)),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}},i.onInputClick=function(){var e,t;i.props.disabled||i.props.readOnly||i.setOpen(!0),null===(t=(e=i.props).onInputClick)||void 0===t||t.call(e)},i.onInputKeyDown=function(e){var t,n,r,o,a;null===(n=(t=i.props).onKeyDown)||void 0===n||n.call(t,e);var s=e.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(s===be.ArrowDown||s===be.ArrowUp){e.preventDefault();var l=i.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":i.props.showWeekPicker&&i.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':i.props.showFullMonthYearPicker||i.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null===(r=i.calendar)||void 0===r?void 0:r.componentNode)instanceof Element&&i.calendar.componentNode.querySelector(l);return void(u instanceof HTMLElement&&u.focus({preventScroll:!0}))}var c=Ee(i.state.preSelection);s===be.Enter?(e.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===on?(i.handleSelect(c,e),!i.props.shouldCloseOnSelect&&i.setPreSelection(c)):i.setOpen(!1)):s===be.Escape?(e.preventDefault(),i.sendFocusBackToInput(),i.setOpen(!1)):s===be.Tab&&i.setOpen(!1),i.inputOk()||null===(a=(o=i.props).onInputError)||void 0===a||a.call(o,{code:1,msg:tn})}}else s!==be.ArrowDown&&s!==be.ArrowUp&&s!==be.Enter||i.onInputClick()},i.onPortalKeyDown=function(e){e.key===be.Escape&&(e.preventDefault(),i.setState({preventFocus:!0},(function(){i.setOpen(!1),setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))})))},i.onDayKeyDown=function(e){var t,n,r,a,l=i.props,u=l.minDate,f=l.maxDate,p=l.disabledKeyboardNavigation,h=l.showWeekPicker,m=l.shouldCloseOnSelect,v=l.locale,g=l.calendarStartDay,b=l.adjustDateOnChange,w=l.inline;if(null===(n=(t=i.props).onKeyDown)||void 0===n||n.call(t,e),!p){var k=e.key,x=e.shiftKey,S=Ee(i.state.preSelection),E=function(e,t){var n=t;switch(e){case be.ArrowRight:n=h?c.addWeeks(t,1):o.addDays(t,1);break;case be.ArrowLeft:n=h?ie.subWeeks(t,1):re.subDays(t,1);break;case be.ArrowUp:n=ie.subWeeks(t,1);break;case be.ArrowDown:n=c.addWeeks(t,1);break;case be.PageUp:n=x?se.subYears(t,1):oe.subMonths(t,1);break;case be.PageDown:n=x?d.addYears(t,1):s.addMonths(t,1);break;case be.Home:n=Oe(t,v,g);break;case be.End:n=function(e){return y.endOfWeek(e)}(t)}return n};if(k===be.Enter)return e.preventDefault(),i.handleSelect(S,e),void(!m&&i.setPreSelection(S));if(k===be.Escape)return e.preventDefault(),i.setOpen(!1),void(i.inputOk()||null===(a=(r=i.props).onInputError)||void 0===a||a.call(r,{code:1,msg:tn}));var D=null;switch(k){case be.ArrowLeft:case be.ArrowRight:case be.ArrowUp:case be.ArrowDown:case be.PageUp:case be.PageDown:case be.Home:case be.End:D=function(e,t){for(var n=e,r=!1,o=0,a=E(e,t);!r;){if(o>=40){a=t;break}u&&af&&(n=be.ArrowLeft,a=Ke(f,i.props)?E(n,a):f),Ke(a,i.props)?(n!==be.PageUp&&n!==be.Home||(n=be.ArrowRight),n!==be.PageDown&&n!==be.End||(n=be.ArrowLeft),a=E(n,a)):r=!0,o++}return a}(k,S)}if(D){if(e.preventDefault(),i.setState({lastPreSelectChange:on}),b&&i.setSelected(D),i.setPreSelection(D),w){var P=C.getMonth(S),N=C.getMonth(D),M=O.getYear(S),T=O.getYear(D);P!==N||M!==T?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}else i.props.onInputError&&i.props.onInputError({code:1,msg:tn})}},i.onPopperKeyDown=function(e){e.key===be.Escape&&(e.preventDefault(),i.sendFocusBackToInput())},i.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),i.sendFocusBackToInput();var t=i.props,n=t.selectsRange;(0,t.onChange)(n?[null,null]:null,e),i.props.selectsRange?i.props.onChange([null,null],e):i.props.onChange(null,e),i.setState({inputValue:null})},i.clear=function(){i.onClearClick()},i.onScroll=function(e){"boolean"==typeof i.props.closeOnScroll&&i.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||i.setOpen(!1):"function"==typeof i.props.closeOnScroll&&i.props.closeOnScroll(e)&&i.setOpen(!1)},i.renderCalendar=function(){var e,t;return i.props.inline||i.isCalendarOpen()?fe.default.createElement(en,ge({ref:function(e){i.calendar=e}},i.props,i.state,{setOpen:i.setOpen,dateFormat:null!==(e=i.props.dateFormatCalendar)&&void 0!==e?e:r.defaultProps.dateFormatCalendar,onSelect:i.handleSelect,onClickOutside:i.handleCalendarClickOutside,holidays:ft(i.modifyHolidays()),outsideClickIgnoreClass:Jt,onDropdownFocus:i.handleDropdownFocus,onTimeChange:i.handleTimeChange,className:i.props.calendarClassName,container:i.props.calendarContainer,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,setPreSelection:i.setPreSelection,dropdownMode:null!==(t=i.props.dropdownMode)&&void 0!==t?t:r.defaultProps.dropdownMode}),i.props.children):null},i.renderAriaLiveRegion=function(){var e,t=i.props,n=t.dateFormat,o=void 0===n?r.defaultProps.dateFormat:n,a=t.locale,s=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return e=i.props.selectsRange?"Selected start date: ".concat(Pe(i.props.startDate,{dateFormat:s,locale:a}),". ").concat(i.props.endDate?"End date: "+Pe(i.props.endDate,{dateFormat:s,locale:a}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(Pe(i.props.selected,{dateFormat:o,locale:a})):i.props.showYearPicker?"Selected year: ".concat(Pe(i.props.selected,{dateFormat:"yyyy",locale:a})):i.props.showMonthYearPicker?"Selected month: ".concat(Pe(i.props.selected,{dateFormat:"MMMM yyyy",locale:a})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(Pe(i.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):"Selected date: ".concat(Pe(i.props.selected,{dateFormat:s,locale:a})),fe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},i.renderDateInput=function(){var e,o,a,s=t.clsx(i.props.className,((e={})[Jt]=i.state.open,e)),l=i.props.customInput||fe.default.createElement("input",{type:"text"}),u=i.props.customInputRef||"ref",c=i.props,d=c.dateFormat,f=void 0===d?r.defaultProps.dateFormat:d,p=c.locale,h="string"==typeof i.props.value?i.props.value:"string"==typeof i.state.inputValue?i.state.inputValue:i.props.selectsRange?function(e,t,n){if(!e)return"";var r=Pe(e,n),o=t?Pe(t,n):"";return"".concat(r," - ").concat(o)}(i.props.startDate,i.props.endDate,{dateFormat:f,locale:p}):i.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?Pe(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=Pe(e[1],t);return"".concat(n,", ").concat(r)}var o=e.length-1;return"".concat(n," (+").concat(o,")")}(null!==(a=i.props.selectedDates)&&void 0!==a?a:[],{dateFormat:f,locale:p}):Pe(i.props.selected,{dateFormat:f,locale:p});return n.cloneElement(l,((o={})[u]=function(e){i.input=e},o.value=h,o.onBlur=i.handleBlur,o.onChange=i.handleChange,o.onClick=i.onInputClick,o.onFocus=i.handleFocus,o.onKeyDown=i.onInputKeyDown,o.id=i.props.id,o.name=i.props.name,o.form=i.props.form,o.autoFocus=i.props.autoFocus,o.placeholder=i.props.placeholderText,o.disabled=i.props.disabled,o.autoComplete=i.props.autoComplete,o.className=t.clsx(l.props.className,s),o.title=i.props.title,o.readOnly=i.props.readOnly,o.required=i.props.required,o.tabIndex=i.props.tabIndex,o["aria-describedby"]=i.props.ariaDescribedBy,o["aria-invalid"]=i.props.ariaInvalid,o["aria-labelledby"]=i.props.ariaLabelledBy,o["aria-required"]=i.props.ariaRequired,o))},i.renderClearButton=function(){var e=i.props,n=e.isClearable,r=e.disabled,o=e.selected,a=e.startDate,s=e.endDate,l=e.clearButtonTitle,u=e.clearButtonClassName,c=void 0===u?"":u,d=e.ariaLabelClose,f=void 0===d?"Close":d,p=e.selectedDates;return n&&(null!=o||null!=a||null!=s||(null==p?void 0:p.length))?fe.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":f,onClick:i.onClearClick,title:l,tabIndex:-1}):null},i.state=i.calcInitialState(),i.preventFocusTimeout=void 0,i}return ve(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:xe,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var n,r,o,a,i,s;e.inline&&(i=e.selected,s=this.props.selected,i&&s?C.getMonth(i)!==C.getMonth(s)||O.getYear(i)!==O.getYear(s):i!==s)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:dt(this.props.highlightDates)}),t.focused||Ye(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===t.open&&!1===this.state.open&&(null===(a=(o=this.props).onCalendarClose)||void 0===a||a.call(o)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,r=e.icon,o=e.calendarIconClassname,a=e.calendarIconClassName,i=e.toggleCalendarOnIconClick,s=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),fe.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&fe.default.createElement(qt,ge({icon:r,className:t.clsx(a,!a&&o,s&&"react-datepicker-ignore-onclickoutside")},i?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?fe.default.createElement(Xt,{enableTabLoop:this.props.enableTabLoop},fe.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=fe.default.createElement(Qt,ge({portalId:this.props.portalId},this.props),t)),fe.default.createElement("div",null,this.renderInputContainer(),t)}return fe.default.createElement(Zt,ge({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(n.Component),rn="input",on="navigate";e.CalendarContainer=we,e.default=nn,e.getDefaultLocale=He,e.registerLocale=function(e,t){var n=ke();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){ke().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2949),n(5043),n(2547),n(8620),n(5608),n(86),n(4640),n(1634),n(2570),n(9994),n(709),n(3439),n(5575),n(5309),n(9840),n(2412),n(8268),n(4016),n(4889),n(4333),n(5528),n(7600),n(5857),n(9871),n(8667),n(8920),n(2918),n(2808),n(7025),n(309),n(1882),n(4593),n(1890),n(6500),n(8444),n(8060),n(8322),n(4265),n(9858),n(4148),n(8442),n(1972),n(4251),n(3458),n(3848),n(3525),n(4503),n(2844),n(3410),n(671),n(4521),n(6191),n(1619),n(1125),n(9249),n(7332),n(3613),n(6221),n(899),n(4357),n(6198),n(5551),n(5552),n(7950))},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n