@okam/stack-ui 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Check-6ea26e42.mjs +7 -0
- package/Check-c61ded33.js +1 -0
- package/components/fields/Checkbox/Checkbox.interface.d.ts +3 -1
- package/index.js +5 -5
- package/index.mjs +449 -445
- package/package.json +1 -1
- package/theme/Checkbox/index.d.ts +11 -6
- package/Check-5b690106.js +0 -1
- package/Check-f0e31d77.mjs +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "lodash.isequal";
|
|
3
|
+
import { memo as m } from "react";
|
|
4
|
+
const e = (t) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", viewBox: "0 0 48 48", ...t, children: /* @__PURE__ */ o("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z" }) }), h = m(e, r);
|
|
5
|
+
export {
|
|
6
|
+
h as default
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("lodash.isequal"),r=require("react"),s=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",viewBox:"0 0 48 48",...t,children:e.jsx("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),i=r.memo(s,o);exports.default=i;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type React from 'react';
|
|
1
2
|
import type { Noop, RefCallBack } from 'react-hook-form';
|
|
2
3
|
import type { TDefaultComponent } from '../../../types/components';
|
|
3
4
|
export interface TCheckboxProps extends TDefaultComponent {
|
|
@@ -11,8 +12,9 @@ export interface TCheckboxProps extends TDefaultComponent {
|
|
|
11
12
|
ariaLabel?: string;
|
|
12
13
|
value?: string;
|
|
13
14
|
onBlur?: Noop;
|
|
14
|
-
onChange?: () => void;
|
|
15
|
+
onChange?: (isSelected: boolean) => void;
|
|
15
16
|
inputRef?: RefCallBack;
|
|
17
|
+
icon?: React.ReactNode;
|
|
16
18
|
}
|
|
17
19
|
export interface TCheckboxLabelStyles {
|
|
18
20
|
isDisabled?: boolean;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),a=require("react/jsx-runtime"),g=require("tailwind-variants"),_t=require("radash"),y=require("react-aria"),Vt=require("react-div-100vh"),Qt=require("@react-stately/overlays"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),a=require("react/jsx-runtime"),g=require("tailwind-variants"),_t=require("radash"),y=require("react-aria"),Vt=require("react-div-100vh"),Qt=require("@react-stately/overlays"),N=require("react-spring"),G=require("@react-aria/overlays"),_=require("@react-aria/focus"),rt=require("react-stately"),Wt=require("isomorphic-dompurify"),Ht=require("lodash.isequal"),fe=require("@react-aria/i18n"),je=require("lodash"),ae=require("react-hook-form"),Gt=require("@react-aria/checkbox"),zt=require("@react-aria/visually-hidden"),Kt=require("@react-stately/toggle"),Xt=require("react-i18next"),ke=require("@react-aria/datepicker"),nt=require("@react-stately/datepicker"),Te=require("@react-aria/calendar"),Zt=require("@react-stately/calendar"),er=require("@react-aria/utils");function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const rr=tr(h),ot=e=>e;function nr(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);return r===void 0?null:r}return[t,e.Provider]}const or={typography:()=>""},[st,sr]=nr();function at({children:e,brandTheme:t=or}){const r=h.useMemo(()=>({brandTheme:t}),[t]);return a.jsx(sr,{value:r,children:e})}const it=e=>({children:r})=>a.jsx(at,{brandTheme:e,children:r}),ar=g.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),ir=g.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"}}}),lr=g.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),cr=g.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),ur=g.tv({base:"font-body text-inherit h-auto grid grid-rows-[0fr] transition-all duration-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{isOpen:{true:"pb-8 pt-3 grid-rows-[1fr]",false:""},textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),dr=g.tv({base:"overflow-hidden",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),fr=g.tv({base:"w-full bg-slate-100"}),lt=g.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),hr=g.tv({extend:lt,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),mr=g.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),Z=g.tv({base:`
|
|
2
2
|
flex
|
|
3
3
|
items-center
|
|
4
4
|
justify-center
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
text-white
|
|
40
40
|
pointer-events-none
|
|
41
41
|
!border-error
|
|
42
|
-
`},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),br=g.tv({base:"inline-block text-gray-800"}),gr=g.tv({base:"flex items-center justify-between pb-4"}),pr=g.tv({base:"flex items-center gap-1"}),yr=g.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),xr=g.tv({base:"flex-1"}),$r=g.tv({base:"text-center"}),vr=g.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),wr=g.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Dr=g.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),
|
|
42
|
+
`},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),br=g.tv({base:"inline-block text-gray-800"}),gr=g.tv({base:"flex items-center justify-between pb-4"}),pr=g.tv({base:"flex items-center gap-1"}),yr=g.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),xr=g.tv({base:"flex-1"}),$r=g.tv({base:"text-center"}),vr=g.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),wr=g.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Dr=g.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Mr=g.tv({base:"text-gray-2 flex flex-row items-start hover:cursor-pointer focus-ring-black",variants:{isDisabled:{true:"text-gray-6"}}}),Cr=g.tv({base:"w-5 h-5 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Pr=g.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),jr=g.tv({base:"text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"}),kr=g.tv({base:"relative inline-flex flex-col text-left"}),Tr=g.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),Sr=g.tv({base:"fixed inset-0"}),Rr=g.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Ir=g.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),Ar=g.tv({base:"focus-ring-black"}),Br=g.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),Er=g.tv({base:"text-color-1-500 font-bold px-2"}),L=g.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),Nr=g.tv({base:"focus-ring-black"}),Fr=g.tv({base:" w-screen h-screen relative flex items-center m-auto justify-center"}),Lr=g.tv({base:`
|
|
43
43
|
absolute
|
|
44
44
|
xl:top-10
|
|
45
45
|
xl:right-20
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
w-[2.5rem]
|
|
52
52
|
h-[2.5rem]
|
|
53
53
|
focus-ring-black
|
|
54
|
-
`}),
|
|
54
|
+
`}),Or=g.tv({extend:L,base:"sr-only"}),qr=g.tv({base:"flex print:hidden relative",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row",column:"flex-col"}}}),Ur=g.tv({base:"relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",variants:{isOpen:{true:"",false:""}}}),Yr=g.tv({base:"!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row pl-14 h-16 left-0",column:"flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"},isOpen:{true:"opacity-100 visible",false:""}}}),Jr=g.tv({base:`
|
|
55
55
|
flex
|
|
56
56
|
items-center
|
|
57
57
|
justify-center
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
focus-ring-black
|
|
66
66
|
z-10
|
|
67
67
|
has-focus-ring:z-20
|
|
68
|
-
`,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),
|
|
68
|
+
`,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),_r=g.tv({base:"text-white"}),Vr=g.tv({base:""}),Qr=g.tv({base:"m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"}),Wr=g.tv({base:"h-full w-full flex justify-end"}),Hr=g.tv({base:"bg-black h-full w-full overflow-y-auto"}),Gr=g.tv({base:`
|
|
69
69
|
w-full
|
|
70
70
|
min-h-32
|
|
71
71
|
rounded-2xl
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
placeholder:text-gray-2
|
|
81
81
|
focus-ring-black
|
|
82
82
|
|
|
83
|
-
`,variants:{isError:{true:"border-red-500"}}}),Gr=ot({main:e=>fr(e),gridItem:e=>mr(e),grid:e=>hr(e),container:e=>lt(e),accordion:{container:e=>ar(e),button:e=>ir(e),title:e=>lr(e),icon:e=>cr(e),region:e=>ur(e),content:e=>dr(e)},calendar:{container:e=>br(e),header:e=>gr(e),navigationButtonsContainer:e=>pr(e),navigationButtons:e=>yr(e),table:e=>xr(e),dayLabel:e=>$r(e),cellContainer:e=>vr(e),cell:e=>wr(e),cellDate:e=>Dr(e)},datePicker:{container:e=>jr(e),button:e=>Tr(e),icon:e=>Ar(e),dateField:e=>Rr(e),dateSegment:e=>Ir(e),label:e=>Br(e),calendarPopover:e=>Sr(e),calendarUnderlay:e=>kr(e)},popover:{button:e=>Z(e),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:e=>L(e),button:e=>Z(e),sidePanel:{wrapper:e=>Vr(e),container:e=>Qr(e),innerContainer:e=>Wr(e)},lightBox:{wrapper:e=>Er(e),container:e=>Nr(e),closeBtn:e=>Fr(e),label:e=>Lr(e)},shareButton:{icon:e=>Jr(e),button:e=>qr(e),container:e=>Or(e),linksList:e=>Ur(e),link:e=>Yr(e),linkIcons:e=>_r(e)},checkbox:{label:e=>Cr(e),checkBox:e=>Mr(e),checkMark:e=>Pr(e),errorMessage:e=>L(e)},select:{button:e=>Z(e),ul:e=>L({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>Z(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>Hr(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:e=>L({...e,size:"footnotes",isError:!0})}}),zr=h.memo(it(Gr)),b=(e,t={},r=null)=>{const n=st();if(n!=null&&e!=null){const{brandTheme:o}=n,s=_t.get(o,e);if(typeof s=="function"){const i=s?.(t);if(typeof i=="string")return i}}if(r)return r},k=({as:e="span",themeName:t="typography",tokens:r,customTheme:n,children:o,...s})=>{const i=b(t,r,n);return a.jsx(e,{...s,className:i,children:o})},Se=h.forwardRef((e,t)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),ct=h.forwardRef((e,t)=>{const{as:r="a",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",...u}=e,d=t,{linkProps:p}=y.useLink({...e,elementType:s?.toString(),onPress:n},t??d),f=b(c,l,i);return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:d,...p,...u,className:f,children:o})})}),ut=h.forwardRef((e,t)=>{const{as:r="button",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",isDisabled:u=!1,...d}=e,p=t,{buttonProps:f}=y.useButton({...e,isDisabled:u,elementType:s,onPress:n},t??p),m=b(c,l,i);return a.jsx(y.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),V=h.forwardRef((e,t)=>{const{as:r}=e;return r==="a"?a.jsx(ct,{ref:t,...e}):a.jsx(ut,{ref:t,...e})}),Kr=e=>{const{as:t}=e,r=h.useRef(null);return t==="a"?a.jsx(ct,{ref:r,...e}):a.jsx(ut,{ref:r,...e})},Q=h.memo(Kr),Xr=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Zr=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),dt=h.memo(Zr),en=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),tn=e=>{const{icon:t,...r}=e,n=h.useMemo(()=>h.lazy(()=>Xr(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-a6edacd9.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-4eeead7e.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>wn),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-810d374a.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-5b690106.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-3d464239.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-5709c683.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-e65fe8bd.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-f2646126.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-d986225c.js")),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>require("./FacebookRounded-d75848d2.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-cbe70168.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>en),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-2f8ef20d.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-6a2b2b7a.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-db71325e.js")),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>require("./LinkedIn-4745de60.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-a1aec200.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-75849570.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-608e1dd8.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-1eb11c0c.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-8b72aa64.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-578304b2.js")),"../icons/X.tsx":()=>Promise.resolve().then(()=>require("./X-ed6c3d62.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-5dbf2e75.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-5baa4a6c.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return a.jsx(h.Suspense,{fallback:a.jsx(dt,{className:"overflow-visible pointer-events-none"}),children:a.jsx(n,{...r,className:"overflow-visible pointer-events-none",...e})})},S=e=>{const{icon:t,as:r="span",tokens:n,customTheme:o,themeName:s="icon",children:i,...l}=e,c=b(s,n,o);return typeof t!="string"?a.jsxs(r,{...l,className:c,children:[i,t]}):a.jsxs(r,{className:c,children:[i,a.jsx(tn,{icon:t,...l})]})},rn=e=>{const{customTheme:t,themeName:r="accordion",id:n,tokens:o,title:s,ariaLabel:i,onClick:l,icon:c,children:u}=e,[d,p]=h.useState(!1),f=b(`${r}.container`,{...o,isOpen:d},t),m=b(`${r}.title`,{...o,isOpen:d},t),$=b(`${r}.icon`,{...o,isOpen:d},t),x=b(`${r}.region`,{...o,isOpen:d},t),v=b(`${r}.content`,{...o,isOpen:d},t);return a.jsxs("div",{className:f,id:`accordion-control-${n}`,"aria-label":i,"aria-expanded":d,"aria-controls":`accordion-content-${n}`,children:[a.jsxs(Q,{themeName:`${r}.button`,tokens:{...o,isOpen:d},handlePress:()=>{p(!d),l?.(d)},as:"button",id:`accordion-control-${n}`,"aria-label":i,children:[a.jsx("div",{className:m,children:s}),a.jsx("div",{className:$,children:a.jsx(S,{icon:c??"ArrowDown"})})]}),a.jsx("div",{className:x,role:"region",id:`accordion-content-${n}`,"aria-labelledby":`accordion-control-${n}`,children:a.jsx("div",{className:v,children:u})})]})},nn=e=>{const{sharingLinksList:t,id:r,isOpen:n,setIsOpen:o,onShare:s,themeName:i="shareButton",tokens:l,customTheme:c}=e,u=b(`${i}.linksList`,{...l,isOpen:n},c),d=y.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=l??{};m==="row"&&(f.key==="ArrowRight"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d.focusPrevious({wrap:!0}),f.preventDefault()))};return a.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:t?.map(f=>{const{ariaLabel:m,onClick:$,href:x,icon:v,key:w}=f;return a.jsx(Q,{themeName:`${i}.link`,tokens:{...l,isOpen:n},handlePress:()=>{s?.(w),$?.(w)},"aria-label":m,...x?{href:x,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:a.jsx(S,{themeName:`${i}.linkIcons`,icon:v})},w)})})},on=e=>{const{ariaLabel:t,icon:r,id:n,sharingLinksList:o,onShare:s,customTheme:i,themeName:l="shareButton",tokens:c,...u}=e,[d,p]=h.useState(!1),f=b(`${l}.container`,c,i),m=()=>{p(!d)};return a.jsxs("div",{className:f,children:[a.jsx(V,{themeName:`${l}.button`,tokens:{...c,isOpen:d},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:a.jsx(S,{themeName:`${l}.icon`,icon:r??"Share"})}),d&&a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(nn,{id:n,sharingLinksList:o,onShare:s,isOpen:d,setIsOpen:p,themeName:l,customTheme:i,tokens:c})})]})};function ft(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[t,e.Provider]}const ht=(e,t,r)=>{const n=Qt.useOverlayTriggerState({defaultOpen:e,onOpenChange:d=>t?.(d)}),o=h.useRef(null),s=h.useRef(null);h.useEffect(()=>{if(e){n.open();return}n.close()},[e]);const i=()=>{n.open()},l=()=>{n.close(),r?.()},{buttonProps:c}=y.useButton({elementType:"div",onPress:i},o),{buttonProps:u}=y.useButton({onPress:l},s);return{state:n,openButtonProps:c,closeButtonProps:u,handleOpen:i,handleClose:l,openButtonRef:o,closeButtonRef:s}},[mt,sn]=ft();function an({children:e,defaultSelectedKey:t}){const{state:r,closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}=ht(!1),l=h.useMemo(()=>({defaultSelectedKey:t,overlayState:r,buttonProps:{closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}}),[r,t,n,s]);return a.jsx(sn,{value:l,children:e})}const ln=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),cn="fixed",un=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,position:cn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),dn="fixed",fn=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,scale:.75,position:dn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),hn=e=>{const{children:t}=e,r=h.useRef(null),{overlayProps:n,underlayProps:o}=y.useOverlay(e,r),{modalProps:s}=y.useModal(),{dialogProps:i}=y.useDialog(e,r);return a.jsx("div",{...o,children:a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:a.jsx(y.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:a.jsx("div",{...n,...i,...s,ref:r,children:t})})})})},Re=e=>{const[t,r]=h.useState(!1),{children:n,state:o,onCloseCallBack:s,transitionComponent:i=fn}=e,l=h.useCallback(()=>{o.close(),s?.()},[o.close,s]);return h.useEffect(()=>{!o.isOpen&&t||r(!0)},[o.isOpen]),t?a.jsx(G.OverlayContainer,{children:a.jsx(i,{isVisible:o.isOpen,children:a.jsx(hn,{isOpen:o.isOpen,onClose:l,isDismissable:!0,children:n})})}):null},mn=e=>{const{children:t,closeBtnRender:r,themeName:n="sidePanel",tokens:o,customTheme:s}=e,i=b(`${n}.wrapper`,o,s),l=b(`${n}.container`,o,s),c=b(`${n}.innerContainer`,o,s),{overlayState:u}=mt();return a.jsx(Re,{state:u,transitionComponent:un,children:a.jsxs(Vt,{className:i,children:[r&&r(),a.jsx(ln,{isVisible:u.isOpen,children:a.jsx("div",{className:l,children:a.jsx("div",{className:c,children:t})})})]})})},bn=h.memo(mn),gn=e=>{const{children:t,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:s,label:i,themeName:l="lightBox",tokens:c,customTheme:u}=e,{state:d,openButtonRef:p,openButtonProps:f,closeButtonProps:m,closeButtonRef:$}=ht(n,o,s),x=b(`${l}.container`,c,u);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs(V,{ref:p,themeName:`${l}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[i&&a.jsx(k,{themeName:`${l}.label`,tokens:{size:"footnotes"},children:i}),r]})}),a.jsx(Re,{onCloseCallBack:s,state:d,children:a.jsxs("div",{children:[a.jsx(V,{themeName:`${l}.closeBtn`,type:"button",...m,ref:$,children:a.jsx(S,{icon:"CloseBtn"})}),a.jsx("div",{className:x,children:t})]})})]})},pn=({as:e="div",themeName:t="box",tokens:r,customTheme:n,children:o,className:s,...i})=>{const l=b(t,r,n);return a.jsx(e,{...i,className:l,children:o})},bt=h.forwardRef((e,t)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),yn=h.forwardRef((e,t)=>{const{isOpen:r,onClose:n,children:o,positionProps:s,themeName:i="popover",tokens:l,customTheme:c}=e,{overlayProps:u}=y.useOverlay({isOpen:r,onClose:n,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:d}=y.useModal(),{dialogProps:p}=y.useDialog({},t),f=b(`${i}.popover`,l,c);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsxs(bt,{customTheme:f,...y.mergeProps(u,d,p),ref:t,...s,children:[h.Children.map(o,m=>a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:m})),a.jsx(y.DismissButton,{onDismiss:n})]})})});function xn(e){const{children:t,buttonProps:r,placement:n="right",offset:o=5,themeName:s="popover",tokens:i,customTheme:l}=e,c=rt.useOverlayTriggerState({}),u=h.useRef(null),d=h.useRef(null),{triggerProps:p,overlayProps:f}=y.useOverlayTrigger({type:"dialog"},c,u),{overlayProps:m}=y.useOverlayPosition({targetRef:u,overlayRef:d,placement:n,offset:o,isOpen:c.isOpen}),{onPress:$,...x}=p;return a.jsxs(a.Fragment,{children:[a.jsx(V,{themeName:`${s}.button`,handlePress:$,...r,...x,ref:u}),c.isOpen&&a.jsx(y.OverlayContainer,{children:a.jsx(yn,{themeName:s,tokens:i,customTheme:l,...f,positionProps:m,ref:d,isOpen:c.isOpen,onClose:c.close,children:t})})]})}const $n=({content:e,themeName:t="wysiwyg",...r})=>a.jsx(k,{...r,themeName:t,dangerouslySetInnerHTML:{__html:Wt.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),vn=e=>a.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[a.jsx("g",{children:a.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),a.jsx("defs",{children:a.jsx("clipPath",{children:a.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),gt=h.memo(vn,Ht),wn=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),Dn=e=>{const{as:t="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:s={month:"long",day:"numeric",year:"numeric"},themeName:i="typography",...l}=e,c=y.useIsSSR(),u=new Date(r),p=fe.useDateFormatter(s).format(u),f=b(i,n,o);return c||je.isEmpty(p)?null:a.jsx(t,{...l,dateTime:u.toISOString(),className:f,children:p})},Cn=({item:e,state:t,themeName:r="li"})=>{const n=h.useRef(null),{optionProps:o,isFocusVisible:s}=y.useOption({key:e.key},t,n),i=b(r);return a.jsx(Se,{as:"li",...o,tokens:{className:`${i} ${s?"has-focus-ring":""}`},ref:n,children:e.rendered})},Mn=e=>{const t=h.useRef(null),{listBoxRef:r=t,state:n,themeName:o="option"}=e,{listBoxProps:s}=y.useListBox(e,n,r);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(Se,{...s,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(i=>a.jsx(Cn,{themeName:`${o}.li`,item:i,state:n},i.key))})})},Pn=e=>{const t=h.useRef(null),{popoverRef:r=t,state:n,children:o,themeName:s="popover",...i}=e,{popoverProps:l,underlayProps:c}=y.usePopover({...e,popoverRef:r},n);return a.jsxs(y.Overlay,{children:[a.jsx("div",{...c,style:{position:"fixed",inset:0}}),a.jsxs(Se,{themeName:s,...i,...l,as:"div",ref:r,children:[a.jsx(y.DismissButton,{onDismiss:n.close}),o,a.jsx(y.DismissButton,{onDismiss:n.close})]})]})},pt=e=>{const{name:t,placeholderLabel:r,disabled:n,hookFormRef:o,isError:s=!1,errorMessage:i,themeName:l="select",tokens:c,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:$,...x}=e,v=h.useRef(null),w=rt.useSelectState({...x,selectedKey:m,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:P,menuProps:j,labelProps:C}=y.useSelect({...x},w,v),N=b(`${l}.wrapper`,c,u),F=b(`${l}.container`,c,u);return a.jsxs("div",{className:N,children:[d&&a.jsx(k,{...C,as:"label",themeName:`${l}.label`,children:d}),a.jsx(y.HiddenSelect,{...o,state:w,triggerRef:v,name:t,isDisabled:!0}),a.jsxs("div",{className:F,children:[a.jsxs(V,{...P,ref:v,disabled:n,themeName:`${l}.button`,tokens:{...c,intent:s?"error":"default"},children:[w.selectedItem?w.selectedItem.rendered:r,a.jsx(S,{icon:$??"ArrowDown"})]}),w.isOpen&&v.current&&a.jsx(Pn,{state:w,tokens:{width:`${v.current?.offsetWidth}`},triggerRef:v,placement:"bottom",themeName:`${l}.popover`,children:a.jsx(Mn,{...j,themeName:l,state:w})}),s&&a.jsx(k,{tokens:{...c,isError:s},themeName:`${l}.errorMessage`,children:i})]})]})},jn=e=>{const{name:t,required:r,children:n}=e,{register:o,formState:s}=ae.useFormContext(),l=ae.get(s.errors,t)?.message??void 0,{ref:c}=o(t,{required:r?"This is an error message":!1});return a.jsx(pt,{...e,isError:!je.isEmpty(l),errorMessage:l,hookFormRef:c,children:n})},Tn=e=>{const{id:t,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:s,ariaLabel:i,themeName:l="checkbox",tokens:c,customTheme:u}=e,d=Kt.useToggleState(e),p=h.useRef(null),{inputProps:f}=Gt.useCheckbox(e,d,p),{focusProps:m,isFocusVisible:$}=_.useFocusRing(),x={...c,selected:d.isSelected,isDisabled:n,isError:o,isFocusVisible:$},v=b(`${l}.label`,x,u),w=b(`${l}.checkBox`,x,u),P=b(`${l}.checkMark`,x,u);return a.jsxs("div",{children:[a.jsxs("label",{htmlFor:t,className:v,children:[a.jsx(zt.VisuallyHidden,{children:a.jsx("input",{type:"checkbox",ref:p,"aria-label":i,...y.mergeProps(m,f)})}),a.jsx(_.FocusRing,{focusRingClass:"focus-ring",children:a.jsx("div",{className:w,children:a.jsx("div",{className:P})})}),a.jsx("span",{children:r})]}),o&&s&&a.jsx(k,{themeName:`${l}.errorMessage`,tokens:x,children:s})]})},kn=e=>{const{id:t,label:r,name:n,placeholder:o,required:s,disabled:i=!1,errorMessage:l,ariaLabel:c,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:i,isError:l!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.input`,C,x),pe=b(`${m}.label`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsxs("div",{className:N,"aria-disabled":i,children:[r&&a.jsx("label",{className:pe,...j,children:r}),a.jsx("div",{className:ye,children:a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx("textarea",{ref:H=>{f?.(H),v.current=H},className:F,placeholder:o,disabled:i,required:s,id:t,name:n,"aria-label":c,"aria-labelledby":t,value:u,onBlur:d,onChange:p,...P})})})]}),l&&a.jsx(k,{themeName:`${m}.errorMessage`,tokens:C,...w,children:l})]})},yt=e=>{const{id:t,label:r,required:n,disabled:o=!1,errorMessage:s,ariaLabel:i,value:l,onBlur:c,onChange:u,fieldRef:d,type:p="text",children:f,themeName:m="textInput",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:o,isError:s!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.label`,C,x),pe=b(`${m}.input`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs("div",{"aria-disabled":o,className:N,children:[r&&a.jsx("label",{className:F,...j,children:r}),a.jsxs("div",{className:ye,children:[f,a.jsx("input",{...P,className:pe,disabled:o,required:n,ref:H=>{d?.(H),v.current=H},"aria-label":i,"aria-labelledby":t,value:l,onBlur:c,onChange:u,type:p})]})]})}),s&&a.jsx(k,{themeName:`${m}.errorMessage`,tokens:C,...w,children:s})]})},Sn=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:s}=e,{register:i,formState:l}=ae.useFormContext(),u=ae.get(l.errors,t)?.message??void 0,{t:d}=Xt.useTranslation("components"),{ref:p,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...s});return a.jsx(yt,{fieldRef:p,...f,...e,isError:!je.isEmpty(u),errorMessage:u})};function Rn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xt(e,t,r){Rn(e,t),t.set(e,r)}function T(e,t){return e-t*Math.floor(e/t)}const $t=1721426;function q(e,t,r,n){t=X(e,t);let o=t-1,s=-2;return r<=2?s=0:A(t)&&(s=-1),$t-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+s+n)}function A(e){return e%4===0&&(e%100!==0||e%400===0)}function X(e,t){return e==="BC"?1-t:t}function he(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const In={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class R{fromJulianDay(t){let r=t,n=r-$t,o=Math.floor(n/146097),s=T(n,146097),i=Math.floor(s/36524),l=T(s,36524),c=Math.floor(l/1461),u=T(l,1461),d=Math.floor(u/365),p=o*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[f,m]=he(p),$=r-q(f,m,1,1),x=2;r<q(f,m,3,1)?x=0:A(m)&&(x=1);let v=Math.floor((($+x)*12+373)/367),w=r-q(f,m,v,1)+1;return new D(f,m,v,w)}toJulianDay(t){return q(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return In[A(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return A(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const An={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ne(e,t){return t=me(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function vt(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-Fn(t))%7;return n<0&&(n+=7),n}function wt(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Bn(e,t){return Fe(e)-Fe(t)}function Fe(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let xe=null;function Dt(){return xe==null&&(xe=new Intl.DateTimeFormat().resolvedOptions().timeZone),xe}function En(e){return e.subtract({days:e.day-1})}const Le=new Map;function Nn(e){if(Intl.Locale){let r=Le.get(e);return r||(r=new Intl.Locale(e).maximize().region,Le.set(e,r)),r}let t=e.split("-")[1];return t==="u"?null:t}function Fn(e){let t=Nn(e);return An[t]||0}function Ln(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((vt(En(e),t)+r)/7)}function Oe(e){e=me(e,new R);let t=X(e.era,e.year);return Ct(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Ct(e,t,r,n,o,s,i){let l=new Date;return l.setUTCHours(n,o,s,i),l.setUTCFullYear(e,t-1,r),l.getTime()}function qe(e,t){if(t==="UTC")return 0;if(e>0&&t===Dt())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:s,minute:i,second:l}=Mt(e,t);return Ct(r,n,o,s,i,l,0)-Math.floor(e/1e3)*1e3}const Ue=new Map;function Mt(e,t){let r=Ue.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ue.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let s of n)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Ye=864e5;function On(e,t,r,n){return(r===n?[r]:[r,n]).filter(s=>qn(e,t,s))}function qn(e,t,r){let n=Mt(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Un(e,t,r="compatible"){let n=jt(e);if(t==="UTC")return Oe(n);if(t===Dt()&&r==="compatible"){n=me(n,new R);let c=new Date,u=X(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let o=Oe(n),s=qe(o-Ye,t),i=qe(o+Ye,t),l=On(n,t,o-s,o-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-s,o-i);case"compatible":case"later":return Math.max(o-s,o-i);case"reject":throw new RangeError("No such absolute time found")}}function Pt(e,t,r="compatible"){return new Date(Un(e,t,r))}function jt(e,t){let r=0,n=0,o=0,s=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:s}=t),new ie(e.calendar,e.era,e.year,e.month,e.day,r,n,o,s)}function me(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,W(n),n}function Ie(e,t){let r=e.copy(),n="hour"in r?Wn(r,t):0;we(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,De(r),Tt(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Yn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var s,i;let c=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function we(e,t){var r,n;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function De(e){for(;e.month<1;)we(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,we(e,1)}function Yn(e){for(;e.day<1;)e.month--,De(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,De(e)}function Tt(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function W(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Tt(e)}function Jn(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function kt(e,t){return Ie(e,Jn(t))}function St(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),W(r),r}function _n(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Qn(r),r}function Vn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ee(e.hour,24),t}function Qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ee(e,t){let r=e%t;return r<0&&(r+=t),r}function Wn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Vn(e)}function Rt(e,t,r,n){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=B(c,r,0,l.length-1,n?.round),o.era=l[c],W(o);break}case"year":var s,i;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=B(e.year,r,-1/0,9999,n?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=B(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":o.day=B(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),W(o),o}function Hn(e,t,r,n){let o=e.copy();switch(t){case"hour":{let s=e.hour,i=0,l=23;if(n?.hourCycle===12){let c=s>=12;i=c?12:0,l=c?23:11}o.hour=B(s,r,i,l,n?.round);break}case"minute":o.minute=B(e.minute,r,0,59,n?.round);break;case"second":o.second=B(e.second,r,0,59,n?.round);break;case"millisecond":o.millisecond=B(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return o}function B(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Gn(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function It(e){let t=me(e,new R);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function zn(e){return`${It(e)}T${Gn(e)}`}function At(e){let t=typeof e[0]=="object"?e.shift():new R,r;if(typeof e[0]=="string")r=e.shift();else{let i=t.getEras();r=i[i.length-1]}let n=e.shift(),o=e.shift(),s=e.shift();return[t,r,n,o,s]}var Kn=new WeakMap;class D{copy(){return this.era?new D(this.calendar,this.era,this.year,this.month,this.day):new D(this.calendar,this.year,this.month,this.day)}add(t){return Ie(this,t)}subtract(t){return kt(this,t)}set(t){return St(this,t)}cycle(t,r,n){return Rt(this,t,r,n)}toDate(t){return Pt(this,t)}toString(){return It(this)}compare(t){return wt(this,t)}constructor(...t){xt(this,Kn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,W(this)}}var Xn=new WeakMap;class ie{copy(){return this.era?new ie(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ie(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ie(this,t)}subtract(t){return kt(this,t)}set(t){return St(_n(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Rt(this,t,r,n);default:return Hn(this,t,r,n)}}toDate(t,r){return Pt(this,t,r)}toString(){return zn(this)}compare(t){let r=wt(this,t);return r===0?Bn(this,jt(t)):r}constructor(...t){xt(this,Xn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,W(this)}}const Y=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Zn=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ne=[1867,1911,1925,1988,2018],I=["meiji","taisho","showa","heisei","reiwa"];function Je(e){const t=Y.findIndex(([r,n,o])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<o);return t===-1?Y.length-1:t===0?0:t-1}function $e(e){let t=ne[I.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new D(e.year+t,e.month,e.day)}class eo extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=Je(r);return new D(this,I[n],r.year-ne[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay($e(t))}balanceDate(t){let r=$e(t),n=Je(r);I[n]!==t.era&&(t.era=I[n],t.year=r.year-ne[n]),this.constrainDate(t)}constrainDate(t){let r=I.indexOf(t.era),n=Zn[r];if(n!=null){let[o,s,i]=n,l=o-ne[r];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(i,t.day)))}if(t.year===1&&r>=0){let[,o,s]=Y[r];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return I}getYearsInEra(t){let r=I.indexOf(t.era),n=Y[r],o=Y[r+1];if(o==null)return 9999-n[0]+1;let s=o[0]-n[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth($e(t))}getMinimumMonthInYear(t){let r=_e(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=_e(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function _e(e){if(e.year===1){let t=I.indexOf(e.era);return Y[t]}}const Bt=-543;class to extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year);return new D(this,n-Bt,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Ve(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ve(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ve(e){let[t,r]=he(e.year+Bt);return new D(t,r,e.month,e.day)}const le=1911;function Et(e){return e.era==="minguo"?e.year+le:1-e.year+le}function Qe(e){let t=e-le;return t>0?["minguo",t]:["before_minguo",1-t]}class ro extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year),[o,s]=Qe(n);return new D(this,o,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(We(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Qe(Et(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(We(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-le}constructor(...t){super(...t),this.identifier="roc"}}function We(e){let[t,r]=he(Et(e));return new D(t,r,e.month,e.day)}const no=1948321;function oo(e){let t=e>0?e-474:e-473,r=T(t,2820)+474;return T((r+38)*31,128)<31}function te(e,t,r){let n=e>0?e-474:e-473,o=T(n,2820)+474,s=t<=7?31*(t-1):30*(t-1)+6;return no-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+s+r}class so{fromJulianDay(t){let r=t-te(475,1,1),n=Math.floor(r/1029983),o=T(r,1029983),s=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*n+s;i<=0&&i--;let l=t-te(i,1,1)+1,c=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),u=t-te(i,c,1)+1;return new D(this,i,c,u)}toJulianDay(t){return te(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||oo(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ve=78,He=80;class ao extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-ve,o=t-q(r.era,r.year,1,1),s;o<He?(n--,s=A(r.year-1)?31:30,o+=s+155+90+10):(s=A(r.year)?31:30,o-=He);let i,l;if(o<s)i=1,l=o+1;else{let c=o-s;c<155?(i=Math.floor(c/31)+2,l=c%31+1):(c-=155,i=Math.floor(c/30)+7,l=c%30+1)}return new D(this,n,i,l)}toJulianDay(t){let r=t.year+ve,[n,o]=he(r),s,i;return A(o)?(s=31,i=q(n,o,3,21)):(s=30,i=q(n,o,3,22)),t.month===1?i+t.day-1:(i+=s+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&A(t.year+ve)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ce=1948440,Ge=1948439,M=1300,U=1600,io=460322;function ue(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Nt(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+ue(t,n,1,1)))/29.5)+1),s=r-ue(t,n,o,1)+1;return new D(e,n,o,s)}function ze(e){return(14+11*e)%30<11}class Ae{fromJulianDay(t){return Nt(this,ce,t)}toJulianDay(t){return ue(ce,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&ze(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return ze(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lo extends Ae{fromJulianDay(t){return Nt(this,Ge,t)}toJulianDay(t){return ue(Ge,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const co="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ce,J;function oe(e){return io+J[e-M]}function z(e,t){let r=e-M,n=1<<11-(t-1);return Ce[r]&n?30:29}function Ke(e,t){let r=oe(e);for(let n=1;n<t;n++)r+=z(e,n);return r}function Xe(e){return J[e+1-M]-J[e-M]}class uo extends Ae{fromJulianDay(t){let r=t-ce,n=oe(M),o=oe(U);if(r<n||r>o)return super.fromJulianDay(t);{let s=M-1,i=1,l=1;for(;l>0;){s++,l=r-oe(s)+1;let c=Xe(s);if(l===c){i=12;break}else if(l<c){let u=z(s,i);for(i=1;l>u;)l-=u,i++,u=z(s,i);break}}return new D(this,s,i,r-Ke(s,i)+1)}}toJulianDay(t){return t.year<M||t.year>U?super.toJulianDay(t):ce+Ke(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<M||t.year>U?super.getDaysInMonth(t):z(t.year,t.month)}getDaysInYear(t){return t.year<M||t.year>U?super.getDaysInYear(t):Xe(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ce||(Ce=new Uint16Array(Uint8Array.from(atob(co),t=>t.charCodeAt(0)).buffer)),!J){J=new Uint32Array(U-M+1);let t=0;for(let r=M;r<=U;r++){J[r-M]=t;for(let n=1;n<=12;n++)t+=z(r,n)}}}}const Ze=347997,Ft=1080,Lt=24*Ft,fo=29,ho=12*Ft+793,mo=fo*Lt+ho;function O(e){return T(e*7+1,19)<7}function se(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return T(3*(n+1),7)<3&&(n+=1),n}function bo(e){let t=se(e-1),r=se(e);return se(e+1)-r===356?2:r-t===382?1:0}function K(e){return se(e)+bo(e)}function Ot(e){return K(e+1)-K(e)}function go(e){let t=Ot(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function re(e,t){if(t>=6&&!O(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=go(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?O(e)?30:0:30}class po{fromJulianDay(t){let r=t-Ze,n=r*Lt/mo,o=Math.floor((19*n+234)/235)+1,s=K(o),i=Math.floor(r-s);for(;i<1;)o--,s=K(o),i=Math.floor(r-s);let l=1,c=0;for(;c<i;)c+=re(o,l),l++;l--,c-=re(o,l);let u=i-c;return new D(this,o,l,u)}toJulianDay(t){let r=K(t.year);for(let n=1;n<t.month;n++)r+=re(t.year,n);return r+t.day+Ze}getDaysInMonth(t){return re(t.year,t.month)}getMonthsInYear(t){return O(t.year)?13:12}getDaysInYear(t){return Ot(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(O(r.year)&&!O(t.year)&&r.month>6?t.month--:!O(r.year)&&O(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Me=1723856,et=1824665,Pe=5500;function de(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function Be(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-de(e,r,1,1))/30),o=t+1-de(e,r,n,1);return[r,n,o]}function qt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!==0?30:qt(e)+5}class Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t),s="AM";return r<=0&&(s="AA",r+=Pe),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=Pe),de(Me,r,t.month,t.day)}getDaysInMonth(t){return Ut(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+qt(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yo extends Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t);return r+=Pe,new D(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class xo extends Ee{fromJulianDay(t){let[r,n,o]=Be(et,t),s="CE";return r<=0&&(s="BCE",r=1-r),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),de(et,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Ut(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Yt(e){switch(e){case"buddhist":return new to;case"ethiopic":return new Ee;case"ethioaa":return new yo;case"coptic":return new xo;case"hebrew":return new po;case"indian":return new ao;case"islamic-civil":return new Ae;case"islamic-tbla":return new lo;case"islamic-umalqura":return new uo;case"japanese":return new eo;case"persian":return new so;case"roc":return new ro;case"gregory":default:return new R}}function $o({themeName:e="calendar",tokens:t,state:r,date:n}){const o=h.useRef(null),{cellProps:s,buttonProps:i,isSelected:l,isOutsideVisibleRange:c,isDisabled:u,formattedDate:d,isInvalid:p}=ke.useCalendarCell({date:n},r,o),f=r?.highlightedRange?Ne(n,r?.highlightedRange.start):l,m=r?.highlightedRange?Ne(n,r?.highlightedRange.end):l,{locale:$}=y.useLocale(),x=vt(n,$),v=l&&(f||x===0||n.day===1),w=l&&(m||x===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:P,isFocusVisible:j}=_.useFocusRing(),C=b(`${e}.cellContainer`,{...t,isFocusVisible:j}),N=b(`${e}.cell`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isRoundedLeft:v,isRoundedRight:w}),F=b(`${e}.cellDate`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return a.jsx("td",{...s,"aria-disabled":!1,className:C,children:a.jsx("div",{...er.mergeProps(i,P),ref:o,hidden:c,className:N,children:a.jsx("div",{className:F,children:d})})})}function vo({themeName:e="calendar",customTheme:t,tokens:r,state:n,...o}){const{locale:s}=fe.useLocale(),{gridProps:i,headerProps:l,weekDays:c}=ke.useCalendarGrid({...o},n),u=Ln(n.visibleRange.start,s),d=b(`${e}.calendarTable`,r),p=b(`${e}.dayLabel`,r);return a.jsxs("table",{...i,cellPadding:"0",className:d,children:[a.jsx("thead",{...l,children:a.jsx("tr",{children:c.map(f=>a.jsx("th",{className:p,children:f},`${f}`))})}),a.jsx("tbody",{children:[...new Array(u).keys()].map(f=>a.jsx("tr",{children:n.getDatesInWeek(f).map((m,$)=>m?a.jsx($o,{state:n,date:m},m?.day):a.jsx("td",{},$))},f))})]})}function Jt({buttons:e,tokens:t,customTheme:r,themeName:n="calendar",...o}){const{locale:s}=fe.useLocale(),i=Zt.useCalendarState({...o,locale:s,createCalendar:Yt}),l=h.useRef(null),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,title:p}=ke.useCalendar({...o},i),f=b(`${n}.container`,t),m=b(`${n}.header`,t),$=b(`${n}.navigationButtonsContainer`,t);return a.jsxs("div",{...c,ref:l,className:f,children:[a.jsxs("div",{className:m,children:[a.jsx(k,{as:"p",tokens:{size:"h6"},children:p}),a.jsxs("div",{className:$,children:[a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...u,handlePress:u?.onPress,children:a.jsx(S,{icon:e?.buttonPrev?.icon??"ArrowLeft"})}),a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...d,handlePress:d?.onPress,children:a.jsx(S,{icon:e?.buttonNext?.icon??"ArrowRight"})})]})]}),a.jsx(vo,{state:i})]})}function wo({title:e,children:t,...r}){const n=h.useRef(null),{dialogProps:o}=y.useDialog(r,n);return a.jsx("div",{...o,ref:n,children:t})}function Do({themeName:e="datePicker",tokens:t,...r}){const n=rr.useRef(null),{state:o,children:s}={...r},{popoverProps:i,underlayProps:l}=G.usePopover({...r,popoverRef:n},o),c=b(`${e}.calendarUnderlay`,t),u=b(`${e}.calendarPopover`,t);return a.jsxs(G.Overlay,{children:[a.jsx("div",{...l,className:c}),a.jsxs("div",{...i,ref:n,className:u,children:[a.jsx(G.DismissButton,{onDismiss:o.close}),s,a.jsx(G.DismissButton,{onDismiss:o.close})]})]})}function Co({segment:e,state:t}){const r=h.useRef(null),{segmentProps:n}=Te.useDateSegment(e,t,r),o=b("datePicker.dateSegment");return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsxs("div",{...n,ref:r,className:o,children:[a.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function tt(e){const{locale:t}=fe.useLocale(),r=nt.useDateFieldState({...e,locale:t,createCalendar:Yt}),n=h.useRef(null),{fieldProps:o}=Te.useDateField(e,r,n);return a.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((s,i)=>a.jsx(Co,{segment:s,state:r},i))})}function Mo({popoverPlacement:e="bottom start",tokens:t,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:s,buttonLabel:i,...l}){const c=nt.useDatePickerState({...l}),u=h.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:$,dialogProps:x,calendarProps:v}=Te.useDatePicker({...l},c,u),{label:w}={...l},P=b(`${n}.container`,t),j=b(`${n}.dateField`,t),C=b(`${n}.label`,t);return a.jsxs("div",{className:P,children:[w&&a.jsx("span",{...f,children:w}),s&&a.jsx("div",{...m,children:s}),a.jsx("div",{...d,ref:u,children:a.jsxs(Q,{themeName:`${n}.button`,tokens:{...t},type:"button",...$,handlePress:$.onPress,children:[i&&a.jsx("p",{className:C,children:i}),a.jsxs("div",{className:j,children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:o})]})}),c.isOpen&&a.jsx(Do,{triggerRef:u,state:c,placement:e,children:a.jsxs(wo,{...x,children:[a.jsxs("div",{children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(Jt,{...v})]})})]})}const[Po,jo]=ft();function To({children:e}){const[t,r]=h.useState(!1);h.useEffect(()=>{r(!0)},[]);const n=h.useMemo(()=>({isClient:t}),[t]);return a.jsx(jo,{value:n,children:e})}const be=(e,t,r="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`,ge=()=>{const[e,t]=h.useState(),[r,n]=h.useState();return h.useEffect(()=>{t(window.location.href),n(window.document.title)},[]),{windowLocation:e,windowTitle:r}},ko=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t);return`https://www.facebook.com/sharer.php?u=${`${s}${i}`}&t=${o}`},So=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t),l=`${s}${i}`;return`mailto:?to=&body=${o}%20${l}`},Ro=(e,t,r)=>{const{windowLocation:n}=ge(),o=r??n,s=be(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${s}`}`};exports.Accordion=rn;exports.ArrowRight=gt;exports.Box=pn;exports.BoxWithForwardRef=bt;exports.Button=Q;exports.ButtonWithForwardRef=V;exports.Calendar=Jt;exports.Checkbox=Tn;exports.Date=Dn;exports.DatePicker=Mo;exports.Icon=S;exports.IsClientContextProvider=To;exports.Lightbox=gn;exports.Modal=Re;exports.Popover=xn;exports.ReactHookFormInput=Sn;exports.ReactHookFormSelect=jn;exports.Select=pt;exports.ShareButton=on;exports.SidePanel=bn;exports.SidePanelContextProvider=an;exports.TextArea=kn;exports.TextInputField=yt;exports.ThemeContextProvider=at;exports.ThemeProvider=zr;exports.Typography=k;exports.WysiwygBlock=$n;exports.createThemeProvider=it;exports.generateUtmTags=be;exports.makeTheme=ot;exports.useFacebookShareUrl=ko;exports.useIsClient=Po;exports.useMailToShareUrl=So;exports.useSidePanel=mt;exports.useTheme=st;exports.useThemeContext=b;exports.useTwitterShareUrl=Ro;exports.useWindow=ge;
|
|
83
|
+
`,variants:{isError:{true:"border-red-500"}}}),zr=ot({main:e=>fr(e),gridItem:e=>mr(e),grid:e=>hr(e),container:e=>lt(e),accordion:{container:e=>ar(e),button:e=>ir(e),title:e=>lr(e),icon:e=>cr(e),region:e=>ur(e),content:e=>dr(e)},calendar:{container:e=>br(e),header:e=>gr(e),navigationButtonsContainer:e=>pr(e),navigationButtons:e=>yr(e),table:e=>xr(e),dayLabel:e=>$r(e),cellContainer:e=>vr(e),cell:e=>wr(e),cellDate:e=>Dr(e)},datePicker:{container:e=>kr(e),button:e=>Tr(e),icon:e=>Br(e),dateField:e=>Ir(e),dateSegment:e=>Ar(e),label:e=>Er(e),calendarPopover:e=>Rr(e),calendarUnderlay:e=>Sr(e)},popover:{button:e=>Z(e),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:e=>L(e),button:e=>Z(e),sidePanel:{wrapper:e=>Qr(e),container:e=>Wr(e),innerContainer:e=>Hr(e)},lightBox:{wrapper:e=>Nr(e),container:e=>Fr(e),closeBtn:e=>Lr(e),label:e=>Or(e)},shareButton:{icon:e=>_r(e),button:e=>Ur(e),container:e=>qr(e),linksList:e=>Yr(e),link:e=>Jr(e),linkIcons:e=>Vr(e)},checkbox:{label:e=>Mr(e),checkBox:e=>Cr(e),checkMark:e=>Pr(e),checkMarkIcon:e=>jr(e),errorMessage:e=>L(e)},select:{button:e=>Z(e),ul:e=>L({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>Z(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>Gr(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:e=>L({...e,size:"footnotes",isError:!0})}}),Kr=h.memo(it(zr)),m=(e,t={},r=null)=>{const n=st();if(n!=null&&e!=null){const{brandTheme:o}=n,s=_t.get(o,e);if(typeof s=="function"){const i=s?.(t);if(typeof i=="string")return i}}if(r)return r},k=({as:e="span",themeName:t="typography",tokens:r,customTheme:n,children:o,...s})=>{const i=m(t,r,n);return a.jsx(e,{...s,className:i,children:o})},Se=h.forwardRef((e,t)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:s,children:i,...l}=e,c=m(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),ct=h.forwardRef((e,t)=>{const{as:r="a",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",...u}=e,d=t,{linkProps:p}=y.useLink({...e,elementType:s?.toString(),onPress:n},t??d),f=m(c,l,i);return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:d,...p,...u,className:f,children:o})})}),ut=h.forwardRef((e,t)=>{const{as:r="button",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",isDisabled:u=!1,...d}=e,p=t,{buttonProps:f}=y.useButton({...e,isDisabled:u,elementType:s,onPress:n},t??p),b=m(c,l,i);return a.jsx(y.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:p,...f,...d,className:b,children:o})})}),V=h.forwardRef((e,t)=>{const{as:r}=e;return r==="a"?a.jsx(ct,{ref:t,...e}):a.jsx(ut,{ref:t,...e})}),Xr=e=>{const{as:t}=e,r=h.useRef(null);return t==="a"?a.jsx(ct,{ref:r,...e}):a.jsx(ut,{ref:r,...e})},Q=h.memo(Xr),Zr=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},en=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),dt=h.memo(en),tn=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),rn=e=>{const{icon:t,...r}=e,n=h.useMemo(()=>h.lazy(()=>Zr(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-a6edacd9.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-4eeead7e.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>Dn),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-810d374a.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-c61ded33.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-3d464239.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-5709c683.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-e65fe8bd.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-f2646126.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-d986225c.js")),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>require("./FacebookRounded-d75848d2.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-cbe70168.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>tn),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-2f8ef20d.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-6a2b2b7a.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-db71325e.js")),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>require("./LinkedIn-4745de60.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-a1aec200.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-75849570.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-608e1dd8.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-1eb11c0c.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-8b72aa64.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-578304b2.js")),"../icons/X.tsx":()=>Promise.resolve().then(()=>require("./X-ed6c3d62.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-5dbf2e75.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-5baa4a6c.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return a.jsx(h.Suspense,{fallback:a.jsx(dt,{className:"overflow-visible pointer-events-none"}),children:a.jsx(n,{...r,className:"overflow-visible pointer-events-none",...e})})},T=e=>{const{icon:t,as:r="span",tokens:n,customTheme:o,themeName:s="icon",children:i,...l}=e,c=m(s,n,o);return typeof t!="string"?a.jsxs(r,{...l,className:c,children:[i,t]}):a.jsxs(r,{className:c,children:[i,a.jsx(rn,{icon:t,...l})]})},nn=e=>{const{customTheme:t,themeName:r="accordion",id:n,tokens:o,title:s,ariaLabel:i,onClick:l,icon:c,children:u}=e,[d,p]=h.useState(!1),f=m(`${r}.container`,{...o,isOpen:d},t),b=m(`${r}.title`,{...o,isOpen:d},t),v=m(`${r}.icon`,{...o,isOpen:d},t),x=m(`${r}.region`,{...o,isOpen:d},t),w=m(`${r}.content`,{...o,isOpen:d},t);return a.jsxs("div",{className:f,id:`accordion-control-${n}`,"aria-label":i,"aria-expanded":d,"aria-controls":`accordion-content-${n}`,children:[a.jsxs(Q,{themeName:`${r}.button`,tokens:{...o,isOpen:d},handlePress:()=>{p(!d),l?.(d)},as:"button",id:`accordion-control-${n}`,"aria-label":i,children:[a.jsx("div",{className:b,children:s}),a.jsx("div",{className:v,children:a.jsx(T,{icon:c??"ArrowDown"})})]}),a.jsx("div",{className:x,role:"region",id:`accordion-content-${n}`,"aria-labelledby":`accordion-control-${n}`,children:a.jsx("div",{className:w,children:u})})]})},on=e=>{const{sharingLinksList:t,id:r,isOpen:n,setIsOpen:o,onShare:s,themeName:i="shareButton",tokens:l,customTheme:c}=e,u=m(`${i}.linksList`,{...l,isOpen:n},c),d=y.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:b}=l??{};b==="row"&&(f.key==="ArrowRight"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d.focusPrevious({wrap:!0}),f.preventDefault())),b==="column"&&(f.key==="ArrowDown"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d.focusPrevious({wrap:!0}),f.preventDefault()))};return a.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:t?.map(f=>{const{ariaLabel:b,onClick:v,href:x,icon:w,key:$}=f;return a.jsx(Q,{themeName:`${i}.link`,tokens:{...l,isOpen:n},handlePress:()=>{s?.($),v?.($)},"aria-label":b,...x?{href:x,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:a.jsx(T,{themeName:`${i}.linkIcons`,icon:w})},$)})})},sn=e=>{const{ariaLabel:t,icon:r,id:n,sharingLinksList:o,onShare:s,customTheme:i,themeName:l="shareButton",tokens:c,...u}=e,[d,p]=h.useState(!1),f=m(`${l}.container`,c,i),b=()=>{p(!d)};return a.jsxs("div",{className:f,children:[a.jsx(V,{themeName:`${l}.button`,tokens:{...c,isOpen:d},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:b,...u,children:a.jsx(T,{themeName:`${l}.icon`,icon:r??"Share"})}),d&&a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(on,{id:n,sharingLinksList:o,onShare:s,isOpen:d,setIsOpen:p,themeName:l,customTheme:i,tokens:c})})]})};function ft(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[t,e.Provider]}const ht=(e,t,r)=>{const n=Qt.useOverlayTriggerState({defaultOpen:e,onOpenChange:d=>t?.(d)}),o=h.useRef(null),s=h.useRef(null);h.useEffect(()=>{if(e){n.open();return}n.close()},[e]);const i=()=>{n.open()},l=()=>{n.close(),r?.()},{buttonProps:c}=y.useButton({elementType:"div",onPress:i},o),{buttonProps:u}=y.useButton({onPress:l},s);return{state:n,openButtonProps:c,closeButtonProps:u,handleOpen:i,handleClose:l,openButtonRef:o,closeButtonRef:s}},[mt,an]=ft();function ln({children:e,defaultSelectedKey:t}){const{state:r,closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}=ht(!1),l=h.useMemo(()=>({defaultSelectedKey:t,overlayState:r,buttonProps:{closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}}),[r,t,n,s]);return a.jsx(an,{value:l,children:e})}const cn=({isVisible:e,children:t})=>N.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&a.jsx(N.animated.div,{style:n,children:t})),un="fixed",dn=({isVisible:e,children:t})=>N.useTransition(e,{from:{opacity:0,position:un,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:N.config.stiff})((n,o)=>o&&a.jsx(N.animated.div,{style:n,children:t})),fn="fixed",hn=({isVisible:e,children:t})=>N.useTransition(e,{from:{opacity:0,scale:.75,position:fn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:N.config.stiff})((n,o)=>o&&a.jsx(N.animated.div,{style:n,children:t})),mn=e=>{const{children:t}=e,r=h.useRef(null),{overlayProps:n,underlayProps:o}=y.useOverlay(e,r),{modalProps:s}=y.useModal(),{dialogProps:i}=y.useDialog(e,r);return a.jsx("div",{...o,children:a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:a.jsx(y.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:a.jsx("div",{...n,...i,...s,ref:r,children:t})})})})},Re=e=>{const[t,r]=h.useState(!1),{children:n,state:o,onCloseCallBack:s,transitionComponent:i=hn}=e,l=h.useCallback(()=>{o.close(),s?.()},[o.close,s]);return h.useEffect(()=>{!o.isOpen&&t||r(!0)},[o.isOpen]),t?a.jsx(G.OverlayContainer,{children:a.jsx(i,{isVisible:o.isOpen,children:a.jsx(mn,{isOpen:o.isOpen,onClose:l,isDismissable:!0,children:n})})}):null},bn=e=>{const{children:t,closeBtnRender:r,themeName:n="sidePanel",tokens:o,customTheme:s}=e,i=m(`${n}.wrapper`,o,s),l=m(`${n}.container`,o,s),c=m(`${n}.innerContainer`,o,s),{overlayState:u}=mt();return a.jsx(Re,{state:u,transitionComponent:dn,children:a.jsxs(Vt,{className:i,children:[r&&r(),a.jsx(cn,{isVisible:u.isOpen,children:a.jsx("div",{className:l,children:a.jsx("div",{className:c,children:t})})})]})})},gn=h.memo(bn),pn=e=>{const{children:t,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:s,label:i,themeName:l="lightBox",tokens:c,customTheme:u}=e,{state:d,openButtonRef:p,openButtonProps:f,closeButtonProps:b,closeButtonRef:v}=ht(n,o,s),x=m(`${l}.container`,c,u);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs(V,{ref:p,themeName:`${l}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[i&&a.jsx(k,{themeName:`${l}.label`,tokens:{size:"footnotes"},children:i}),r]})}),a.jsx(Re,{onCloseCallBack:s,state:d,children:a.jsxs("div",{children:[a.jsx(V,{themeName:`${l}.closeBtn`,type:"button",...b,ref:v,children:a.jsx(T,{icon:"CloseBtn"})}),a.jsx("div",{className:x,children:t})]})})]})},yn=({as:e="div",themeName:t="box",tokens:r,customTheme:n,children:o,className:s,...i})=>{const l=m(t,r,n);return a.jsx(e,{...i,className:l,children:o})},bt=h.forwardRef((e,t)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:s,children:i,...l}=e,c=m(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),xn=h.forwardRef((e,t)=>{const{isOpen:r,onClose:n,children:o,positionProps:s,themeName:i="popover",tokens:l,customTheme:c}=e,{overlayProps:u}=y.useOverlay({isOpen:r,onClose:n,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:d}=y.useModal(),{dialogProps:p}=y.useDialog({},t),f=m(`${i}.popover`,l,c);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsxs(bt,{customTheme:f,...y.mergeProps(u,d,p),ref:t,...s,children:[h.Children.map(o,b=>a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:b})),a.jsx(y.DismissButton,{onDismiss:n})]})})});function $n(e){const{children:t,buttonProps:r,placement:n="right",offset:o=5,themeName:s="popover",tokens:i,customTheme:l}=e,c=rt.useOverlayTriggerState({}),u=h.useRef(null),d=h.useRef(null),{triggerProps:p,overlayProps:f}=y.useOverlayTrigger({type:"dialog"},c,u),{overlayProps:b}=y.useOverlayPosition({targetRef:u,overlayRef:d,placement:n,offset:o,isOpen:c.isOpen}),{onPress:v,...x}=p;return a.jsxs(a.Fragment,{children:[a.jsx(V,{themeName:`${s}.button`,handlePress:v,...r,...x,ref:u}),c.isOpen&&a.jsx(y.OverlayContainer,{children:a.jsx(xn,{themeName:s,tokens:i,customTheme:l,...f,positionProps:b,ref:d,isOpen:c.isOpen,onClose:c.close,children:t})})]})}const vn=({content:e,themeName:t="wysiwyg",...r})=>a.jsx(k,{...r,themeName:t,dangerouslySetInnerHTML:{__html:Wt.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),wn=e=>a.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[a.jsx("g",{children:a.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),a.jsx("defs",{children:a.jsx("clipPath",{children:a.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),gt=h.memo(wn,Ht),Dn=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),Mn=e=>{const{as:t="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:s={month:"long",day:"numeric",year:"numeric"},themeName:i="typography",...l}=e,c=y.useIsSSR(),u=new Date(r),p=fe.useDateFormatter(s).format(u),f=m(i,n,o);return c||je.isEmpty(p)?null:a.jsx(t,{...l,dateTime:u.toISOString(),className:f,children:p})},Cn=({item:e,state:t,themeName:r="li"})=>{const n=h.useRef(null),{optionProps:o,isFocusVisible:s}=y.useOption({key:e.key},t,n),i=m(r);return a.jsx(Se,{as:"li",...o,tokens:{className:`${i} ${s?"has-focus-ring":""}`},ref:n,children:e.rendered})},Pn=e=>{const t=h.useRef(null),{listBoxRef:r=t,state:n,themeName:o="option"}=e,{listBoxProps:s}=y.useListBox(e,n,r);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(Se,{...s,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(i=>a.jsx(Cn,{themeName:`${o}.li`,item:i,state:n},i.key))})})},jn=e=>{const t=h.useRef(null),{popoverRef:r=t,state:n,children:o,themeName:s="popover",...i}=e,{popoverProps:l,underlayProps:c}=y.usePopover({...e,popoverRef:r},n);return a.jsxs(y.Overlay,{children:[a.jsx("div",{...c,style:{position:"fixed",inset:0}}),a.jsxs(Se,{themeName:s,...i,...l,as:"div",ref:r,children:[a.jsx(y.DismissButton,{onDismiss:n.close}),o,a.jsx(y.DismissButton,{onDismiss:n.close})]})]})},pt=e=>{const{name:t,placeholderLabel:r,disabled:n,hookFormRef:o,isError:s=!1,errorMessage:i,themeName:l="select",tokens:c,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:b,icon:v,...x}=e,w=h.useRef(null),$=rt.useSelectState({...x,selectedKey:b,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:P,menuProps:j,labelProps:D}=y.useSelect({...x},$,w),S=m(`${l}.wrapper`,c,u),F=m(`${l}.container`,c,u);return a.jsxs("div",{className:S,children:[d&&a.jsx(k,{...D,as:"label",themeName:`${l}.label`,children:d}),a.jsx(y.HiddenSelect,{...o,state:$,triggerRef:w,name:t,isDisabled:!0}),a.jsxs("div",{className:F,children:[a.jsxs(V,{...P,ref:w,disabled:n,themeName:`${l}.button`,tokens:{...c,intent:s?"error":"default"},children:[$.selectedItem?$.selectedItem.rendered:r,a.jsx(T,{icon:v??"ArrowDown"})]}),$.isOpen&&w.current&&a.jsx(jn,{state:$,tokens:{width:`${w.current?.offsetWidth}`},triggerRef:w,placement:"bottom",themeName:`${l}.popover`,children:a.jsx(Pn,{...j,themeName:l,state:$})}),s&&a.jsx(k,{tokens:{...c,isError:s},themeName:`${l}.errorMessage`,children:i})]})]})},kn=e=>{const{name:t,required:r,children:n}=e,{register:o,formState:s}=ae.useFormContext(),l=ae.get(s.errors,t)?.message??void 0,{ref:c}=o(t,{required:r?"This is an error message":!1});return a.jsx(pt,{...e,isError:!je.isEmpty(l),errorMessage:l,hookFormRef:c,children:n})},Tn=e=>{const{id:t,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:s,ariaLabel:i,icon:l,themeName:c="checkbox",tokens:u,customTheme:d}=e,p=Kt.useToggleState(e),f=h.useRef(null),{inputProps:b}=Gt.useCheckbox(e,p,f),{isSelected:v}=p,{focusProps:x,isFocusVisible:w}=_.useFocusRing(),$={...u,selected:v,isDisabled:n,isError:o,isFocusVisible:w},P=m(`${c}.label`,$,d),j=m(`${c}.checkBox`,$,d),D=m(`${c}.checkMark`,$,d),S=m(`${c}.checkMarkIcon`,$,d);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs("label",{htmlFor:t,className:P,"aria-label":i,"aria-disabled":n,children:[a.jsx(zt.VisuallyHidden,{children:a.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":t,...b,...x})}),a.jsx("div",{className:j,"aria-checked":v,role:"checkbox","aria-labelledby":t,children:a.jsx("div",{className:D,children:l&&a.jsx(T,{icon:l,customTheme:S})})}),a.jsx(k,{themeName:`${c}.label`,children:r})]})}),o&&s&&a.jsx(k,{themeName:`${c}.errorMessage`,tokens:$,children:s})]})},Sn=e=>{const{id:t,label:r,name:n,placeholder:o,required:s,disabled:i=!1,errorMessage:l,ariaLabel:c,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:b="textarea",tokens:v,customTheme:x}=e,w=h.useRef(null),{errorMessageProps:$,inputProps:P,labelProps:j}=y.useTextField(e,w),D={...v,isDisabled:i,isError:l!=null},S=m(`${b}.wrapper`,D,x),F=m(`${b}.input`,D,x),pe=m(`${b}.label`,D,x),ye=m(`${b}.container`,D,x);return a.jsxs("div",{children:[a.jsxs("div",{className:S,"aria-disabled":i,children:[r&&a.jsx("label",{className:pe,...j,children:r}),a.jsx("div",{className:ye,children:a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx("textarea",{ref:H=>{f?.(H),w.current=H},className:F,placeholder:o,disabled:i,required:s,id:t,name:n,"aria-label":c,"aria-labelledby":t,value:u,onBlur:d,onChange:p,...P})})})]}),l&&a.jsx(k,{themeName:`${b}.errorMessage`,tokens:D,...$,children:l})]})},yt=e=>{const{id:t,label:r,required:n,disabled:o=!1,errorMessage:s,ariaLabel:i,value:l,onBlur:c,onChange:u,fieldRef:d,type:p="text",children:f,themeName:b="textInput",tokens:v,customTheme:x}=e,w=h.useRef(null),{errorMessageProps:$,inputProps:P,labelProps:j}=y.useTextField(e,w),D={...v,isDisabled:o,isError:s!=null},S=m(`${b}.wrapper`,D,x),F=m(`${b}.label`,D,x),pe=m(`${b}.input`,D,x),ye=m(`${b}.container`,D,x);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs("div",{"aria-disabled":o,className:S,children:[r&&a.jsx("label",{className:F,...j,children:r}),a.jsxs("div",{className:ye,children:[f,a.jsx("input",{...P,className:pe,disabled:o,required:n,ref:H=>{d?.(H),w.current=H},"aria-label":i,"aria-labelledby":t,value:l,onBlur:c,onChange:u,type:p})]})]})}),s&&a.jsx(k,{themeName:`${b}.errorMessage`,tokens:D,...$,children:s})]})},Rn=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:s}=e,{register:i,formState:l}=ae.useFormContext(),u=ae.get(l.errors,t)?.message??void 0,{t:d}=Xt.useTranslation("components"),{ref:p,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...s});return a.jsx(yt,{fieldRef:p,...f,...e,isError:!je.isEmpty(u),errorMessage:u})};function In(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xt(e,t,r){In(e,t),t.set(e,r)}function R(e,t){return e-t*Math.floor(e/t)}const $t=1721426;function q(e,t,r,n){t=X(e,t);let o=t-1,s=-2;return r<=2?s=0:B(t)&&(s=-1),$t-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+s+n)}function B(e){return e%4===0&&(e%100!==0||e%400===0)}function X(e,t){return e==="BC"?1-t:t}function he(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const An={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class I{fromJulianDay(t){let r=t,n=r-$t,o=Math.floor(n/146097),s=R(n,146097),i=Math.floor(s/36524),l=R(s,36524),c=Math.floor(l/1461),u=R(l,1461),d=Math.floor(u/365),p=o*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[f,b]=he(p),v=r-q(f,b,1,1),x=2;r<q(f,b,3,1)?x=0:B(b)&&(x=1);let w=Math.floor(((v+x)*12+373)/367),$=r-q(f,b,w,1)+1;return new M(f,b,w,$)}toJulianDay(t){return q(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return An[B(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return B(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Bn={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ne(e,t){return t=me(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function vt(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-Ln(t))%7;return n<0&&(n+=7),n}function wt(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function En(e,t){return Fe(e)-Fe(t)}function Fe(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let xe=null;function Dt(){return xe==null&&(xe=new Intl.DateTimeFormat().resolvedOptions().timeZone),xe}function Nn(e){return e.subtract({days:e.day-1})}const Le=new Map;function Fn(e){if(Intl.Locale){let r=Le.get(e);return r||(r=new Intl.Locale(e).maximize().region,Le.set(e,r)),r}let t=e.split("-")[1];return t==="u"?null:t}function Ln(e){let t=Fn(e);return Bn[t]||0}function On(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((vt(Nn(e),t)+r)/7)}function Oe(e){e=me(e,new I);let t=X(e.era,e.year);return Mt(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Mt(e,t,r,n,o,s,i){let l=new Date;return l.setUTCHours(n,o,s,i),l.setUTCFullYear(e,t-1,r),l.getTime()}function qe(e,t){if(t==="UTC")return 0;if(e>0&&t===Dt())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:s,minute:i,second:l}=Ct(e,t);return Mt(r,n,o,s,i,l,0)-Math.floor(e/1e3)*1e3}const Ue=new Map;function Ct(e,t){let r=Ue.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ue.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let s of n)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Ye=864e5;function qn(e,t,r,n){return(r===n?[r]:[r,n]).filter(s=>Un(e,t,s))}function Un(e,t,r){let n=Ct(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Yn(e,t,r="compatible"){let n=jt(e);if(t==="UTC")return Oe(n);if(t===Dt()&&r==="compatible"){n=me(n,new I);let c=new Date,u=X(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let o=Oe(n),s=qe(o-Ye,t),i=qe(o+Ye,t),l=qn(n,t,o-s,o-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-s,o-i);case"compatible":case"later":return Math.max(o-s,o-i);case"reject":throw new RangeError("No such absolute time found")}}function Pt(e,t,r="compatible"){return new Date(Yn(e,t,r))}function jt(e,t){let r=0,n=0,o=0,s=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:s}=t),new ie(e.calendar,e.era,e.year,e.month,e.day,r,n,o,s)}function me(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,W(n),n}function Ie(e,t){let r=e.copy(),n="hour"in r?Hn(r,t):0;we(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,De(r),kt(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Jn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var s,i;let c=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function we(e,t){var r,n;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function De(e){for(;e.month<1;)we(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,we(e,1)}function Jn(e){for(;e.day<1;)e.month--,De(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,De(e)}function kt(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function W(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),kt(e)}function _n(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Tt(e,t){return Ie(e,_n(t))}function St(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),W(r),r}function Vn(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Wn(r),r}function Qn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ee(e.hour,24),t}function Wn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ee(e,t){let r=e%t;return r<0&&(r+=t),r}function Hn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Qn(e)}function Rt(e,t,r,n){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=E(c,r,0,l.length-1,n?.round),o.era=l[c],W(o);break}case"year":var s,i;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=E(e.year,r,-1/0,9999,n?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=E(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":o.day=E(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),W(o),o}function Gn(e,t,r,n){let o=e.copy();switch(t){case"hour":{let s=e.hour,i=0,l=23;if(n?.hourCycle===12){let c=s>=12;i=c?12:0,l=c?23:11}o.hour=E(s,r,i,l,n?.round);break}case"minute":o.minute=E(e.minute,r,0,59,n?.round);break;case"second":o.second=E(e.second,r,0,59,n?.round);break;case"millisecond":o.millisecond=E(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return o}function E(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function zn(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function It(e){let t=me(e,new I);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Kn(e){return`${It(e)}T${zn(e)}`}function At(e){let t=typeof e[0]=="object"?e.shift():new I,r;if(typeof e[0]=="string")r=e.shift();else{let i=t.getEras();r=i[i.length-1]}let n=e.shift(),o=e.shift(),s=e.shift();return[t,r,n,o,s]}var Xn=new WeakMap;class M{copy(){return this.era?new M(this.calendar,this.era,this.year,this.month,this.day):new M(this.calendar,this.year,this.month,this.day)}add(t){return Ie(this,t)}subtract(t){return Tt(this,t)}set(t){return St(this,t)}cycle(t,r,n){return Rt(this,t,r,n)}toDate(t){return Pt(this,t)}toString(){return It(this)}compare(t){return wt(this,t)}constructor(...t){xt(this,Xn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,W(this)}}var Zn=new WeakMap;class ie{copy(){return this.era?new ie(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ie(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ie(this,t)}subtract(t){return Tt(this,t)}set(t){return St(Vn(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Rt(this,t,r,n);default:return Gn(this,t,r,n)}}toDate(t,r){return Pt(this,t,r)}toString(){return Kn(this)}compare(t){let r=wt(this,t);return r===0?En(this,jt(t)):r}constructor(...t){xt(this,Zn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,W(this)}}const Y=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eo=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ne=[1867,1911,1925,1988,2018],A=["meiji","taisho","showa","heisei","reiwa"];function Je(e){const t=Y.findIndex(([r,n,o])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<o);return t===-1?Y.length-1:t===0?0:t-1}function $e(e){let t=ne[A.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new M(e.year+t,e.month,e.day)}class to extends I{fromJulianDay(t){let r=super.fromJulianDay(t),n=Je(r);return new M(this,A[n],r.year-ne[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay($e(t))}balanceDate(t){let r=$e(t),n=Je(r);A[n]!==t.era&&(t.era=A[n],t.year=r.year-ne[n]),this.constrainDate(t)}constrainDate(t){let r=A.indexOf(t.era),n=eo[r];if(n!=null){let[o,s,i]=n,l=o-ne[r];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(i,t.day)))}if(t.year===1&&r>=0){let[,o,s]=Y[r];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return A}getYearsInEra(t){let r=A.indexOf(t.era),n=Y[r],o=Y[r+1];if(o==null)return 9999-n[0]+1;let s=o[0]-n[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth($e(t))}getMinimumMonthInYear(t){let r=_e(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=_e(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function _e(e){if(e.year===1){let t=A.indexOf(e.era);return Y[t]}}const Bt=-543;class ro extends I{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year);return new M(this,n-Bt,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Ve(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ve(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ve(e){let[t,r]=he(e.year+Bt);return new M(t,r,e.month,e.day)}const le=1911;function Et(e){return e.era==="minguo"?e.year+le:1-e.year+le}function Qe(e){let t=e-le;return t>0?["minguo",t]:["before_minguo",1-t]}class no extends I{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year),[o,s]=Qe(n);return new M(this,o,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(We(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Qe(Et(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(We(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-le}constructor(...t){super(...t),this.identifier="roc"}}function We(e){let[t,r]=he(Et(e));return new M(t,r,e.month,e.day)}const oo=1948321;function so(e){let t=e>0?e-474:e-473,r=R(t,2820)+474;return R((r+38)*31,128)<31}function te(e,t,r){let n=e>0?e-474:e-473,o=R(n,2820)+474,s=t<=7?31*(t-1):30*(t-1)+6;return oo-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+s+r}class ao{fromJulianDay(t){let r=t-te(475,1,1),n=Math.floor(r/1029983),o=R(r,1029983),s=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*n+s;i<=0&&i--;let l=t-te(i,1,1)+1,c=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),u=t-te(i,c,1)+1;return new M(this,i,c,u)}toJulianDay(t){return te(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||so(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ve=78,He=80;class io extends I{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-ve,o=t-q(r.era,r.year,1,1),s;o<He?(n--,s=B(r.year-1)?31:30,o+=s+155+90+10):(s=B(r.year)?31:30,o-=He);let i,l;if(o<s)i=1,l=o+1;else{let c=o-s;c<155?(i=Math.floor(c/31)+2,l=c%31+1):(c-=155,i=Math.floor(c/30)+7,l=c%30+1)}return new M(this,n,i,l)}toJulianDay(t){let r=t.year+ve,[n,o]=he(r),s,i;return B(o)?(s=31,i=q(n,o,3,21)):(s=30,i=q(n,o,3,22)),t.month===1?i+t.day-1:(i+=s+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&B(t.year+ve)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ce=1948440,Ge=1948439,C=1300,U=1600,lo=460322;function ue(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Nt(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+ue(t,n,1,1)))/29.5)+1),s=r-ue(t,n,o,1)+1;return new M(e,n,o,s)}function ze(e){return(14+11*e)%30<11}class Ae{fromJulianDay(t){return Nt(this,ce,t)}toJulianDay(t){return ue(ce,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&ze(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return ze(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class co extends Ae{fromJulianDay(t){return Nt(this,Ge,t)}toJulianDay(t){return ue(Ge,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const uo="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Me,J;function oe(e){return lo+J[e-C]}function z(e,t){let r=e-C,n=1<<11-(t-1);return Me[r]&n?30:29}function Ke(e,t){let r=oe(e);for(let n=1;n<t;n++)r+=z(e,n);return r}function Xe(e){return J[e+1-C]-J[e-C]}class fo extends Ae{fromJulianDay(t){let r=t-ce,n=oe(C),o=oe(U);if(r<n||r>o)return super.fromJulianDay(t);{let s=C-1,i=1,l=1;for(;l>0;){s++,l=r-oe(s)+1;let c=Xe(s);if(l===c){i=12;break}else if(l<c){let u=z(s,i);for(i=1;l>u;)l-=u,i++,u=z(s,i);break}}return new M(this,s,i,r-Ke(s,i)+1)}}toJulianDay(t){return t.year<C||t.year>U?super.toJulianDay(t):ce+Ke(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<C||t.year>U?super.getDaysInMonth(t):z(t.year,t.month)}getDaysInYear(t){return t.year<C||t.year>U?super.getDaysInYear(t):Xe(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Me||(Me=new Uint16Array(Uint8Array.from(atob(uo),t=>t.charCodeAt(0)).buffer)),!J){J=new Uint32Array(U-C+1);let t=0;for(let r=C;r<=U;r++){J[r-C]=t;for(let n=1;n<=12;n++)t+=z(r,n)}}}}const Ze=347997,Ft=1080,Lt=24*Ft,ho=29,mo=12*Ft+793,bo=ho*Lt+mo;function O(e){return R(e*7+1,19)<7}function se(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return R(3*(n+1),7)<3&&(n+=1),n}function go(e){let t=se(e-1),r=se(e);return se(e+1)-r===356?2:r-t===382?1:0}function K(e){return se(e)+go(e)}function Ot(e){return K(e+1)-K(e)}function po(e){let t=Ot(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function re(e,t){if(t>=6&&!O(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=po(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?O(e)?30:0:30}class yo{fromJulianDay(t){let r=t-Ze,n=r*Lt/bo,o=Math.floor((19*n+234)/235)+1,s=K(o),i=Math.floor(r-s);for(;i<1;)o--,s=K(o),i=Math.floor(r-s);let l=1,c=0;for(;c<i;)c+=re(o,l),l++;l--,c-=re(o,l);let u=i-c;return new M(this,o,l,u)}toJulianDay(t){let r=K(t.year);for(let n=1;n<t.month;n++)r+=re(t.year,n);return r+t.day+Ze}getDaysInMonth(t){return re(t.year,t.month)}getMonthsInYear(t){return O(t.year)?13:12}getDaysInYear(t){return Ot(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(O(r.year)&&!O(t.year)&&r.month>6?t.month--:!O(r.year)&&O(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ce=1723856,et=1824665,Pe=5500;function de(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function Be(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-de(e,r,1,1))/30),o=t+1-de(e,r,n,1);return[r,n,o]}function qt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!==0?30:qt(e)+5}class Ee{fromJulianDay(t){let[r,n,o]=Be(Ce,t),s="AM";return r<=0&&(s="AA",r+=Pe),new M(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=Pe),de(Ce,r,t.month,t.day)}getDaysInMonth(t){return Ut(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+qt(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class xo extends Ee{fromJulianDay(t){let[r,n,o]=Be(Ce,t);return r+=Pe,new M(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class $o extends Ee{fromJulianDay(t){let[r,n,o]=Be(et,t),s="CE";return r<=0&&(s="BCE",r=1-r),new M(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),de(et,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Ut(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Yt(e){switch(e){case"buddhist":return new ro;case"ethiopic":return new Ee;case"ethioaa":return new xo;case"coptic":return new $o;case"hebrew":return new yo;case"indian":return new io;case"islamic-civil":return new Ae;case"islamic-tbla":return new co;case"islamic-umalqura":return new fo;case"japanese":return new to;case"persian":return new ao;case"roc":return new no;case"gregory":default:return new I}}function vo({themeName:e="calendar",tokens:t,state:r,date:n}){const o=h.useRef(null),{cellProps:s,buttonProps:i,isSelected:l,isOutsideVisibleRange:c,isDisabled:u,formattedDate:d,isInvalid:p}=Te.useCalendarCell({date:n},r,o),f=r?.highlightedRange?Ne(n,r?.highlightedRange.start):l,b=r?.highlightedRange?Ne(n,r?.highlightedRange.end):l,{locale:v}=y.useLocale(),x=vt(n,v),w=l&&(f||x===0||n.day===1),$=l&&(b||x===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:P,isFocusVisible:j}=_.useFocusRing(),D=m(`${e}.cellContainer`,{...t,isFocusVisible:j}),S=m(`${e}.cell`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isRoundedLeft:w,isRoundedRight:$}),F=m(`${e}.cellDate`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:b});return a.jsx("td",{...s,"aria-disabled":!1,className:D,children:a.jsx("div",{...er.mergeProps(i,P),ref:o,hidden:c,className:S,children:a.jsx("div",{className:F,children:d})})})}function wo({themeName:e="calendar",customTheme:t,tokens:r,state:n,...o}){const{locale:s}=fe.useLocale(),{gridProps:i,headerProps:l,weekDays:c}=Te.useCalendarGrid({...o},n),u=On(n.visibleRange.start,s),d=m(`${e}.calendarTable`,r),p=m(`${e}.dayLabel`,r);return a.jsxs("table",{...i,cellPadding:"0",className:d,children:[a.jsx("thead",{...l,children:a.jsx("tr",{children:c.map(f=>a.jsx("th",{className:p,children:f},`${f}`))})}),a.jsx("tbody",{children:[...new Array(u).keys()].map(f=>a.jsx("tr",{children:n.getDatesInWeek(f).map((b,v)=>b?a.jsx(vo,{state:n,date:b},b?.day):a.jsx("td",{},v))},f))})]})}function Jt({buttons:e,tokens:t,customTheme:r,themeName:n="calendar",...o}){const{locale:s}=fe.useLocale(),i=Zt.useCalendarState({...o,locale:s,createCalendar:Yt}),l=h.useRef(null),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,title:p}=Te.useCalendar({...o},i),f=m(`${n}.container`,t),b=m(`${n}.header`,t),v=m(`${n}.navigationButtonsContainer`,t);return a.jsxs("div",{...c,ref:l,className:f,children:[a.jsxs("div",{className:b,children:[a.jsx(k,{as:"p",tokens:{size:"h6"},children:p}),a.jsxs("div",{className:v,children:[a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...u,handlePress:u?.onPress,children:a.jsx(T,{icon:e?.buttonPrev?.icon??"ArrowLeft"})}),a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...d,handlePress:d?.onPress,children:a.jsx(T,{icon:e?.buttonNext?.icon??"ArrowRight"})})]})]}),a.jsx(wo,{state:i})]})}function Do({title:e,children:t,...r}){const n=h.useRef(null),{dialogProps:o}=y.useDialog(r,n);return a.jsx("div",{...o,ref:n,children:t})}function Mo({themeName:e="datePicker",tokens:t,...r}){const n=rr.useRef(null),{state:o,children:s}={...r},{popoverProps:i,underlayProps:l}=G.usePopover({...r,popoverRef:n},o),c=m(`${e}.calendarUnderlay`,t),u=m(`${e}.calendarPopover`,t);return a.jsxs(G.Overlay,{children:[a.jsx("div",{...l,className:c}),a.jsxs("div",{...i,ref:n,className:u,children:[a.jsx(G.DismissButton,{onDismiss:o.close}),s,a.jsx(G.DismissButton,{onDismiss:o.close})]})]})}function Co({segment:e,state:t}){const r=h.useRef(null),{segmentProps:n}=ke.useDateSegment(e,t,r),o=m("datePicker.dateSegment");return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsxs("div",{...n,ref:r,className:o,children:[a.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function tt(e){const{locale:t}=fe.useLocale(),r=nt.useDateFieldState({...e,locale:t,createCalendar:Yt}),n=h.useRef(null),{fieldProps:o}=ke.useDateField(e,r,n);return a.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((s,i)=>a.jsx(Co,{segment:s,state:r},i))})}function Po({popoverPlacement:e="bottom start",tokens:t,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:s,buttonLabel:i,...l}){const c=nt.useDatePickerState({...l}),u=h.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:b,buttonProps:v,dialogProps:x,calendarProps:w}=ke.useDatePicker({...l},c,u),{label:$}={...l},P=m(`${n}.container`,t),j=m(`${n}.dateField`,t),D=m(`${n}.label`,t);return a.jsxs("div",{className:P,children:[$&&a.jsx("span",{...f,children:$}),s&&a.jsx("div",{...b,children:s}),a.jsx("div",{...d,ref:u,children:a.jsxs(Q,{themeName:`${n}.button`,tokens:{...t},type:"button",...v,handlePress:v.onPress,children:[i&&a.jsx("p",{className:D,children:i}),a.jsxs("div",{className:j,children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(T,{themeName:`${n}.icon`,tokens:{...t},icon:o})]})}),c.isOpen&&a.jsx(Mo,{triggerRef:u,state:c,placement:e,children:a.jsxs(Do,{...x,children:[a.jsxs("div",{children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(Jt,{...w})]})})]})}const[jo,ko]=ft();function To({children:e}){const[t,r]=h.useState(!1);h.useEffect(()=>{r(!0)},[]);const n=h.useMemo(()=>({isClient:t}),[t]);return a.jsx(ko,{value:n,children:e})}const be=(e,t,r="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`,ge=()=>{const[e,t]=h.useState(),[r,n]=h.useState();return h.useEffect(()=>{t(window.location.href),n(window.document.title)},[]),{windowLocation:e,windowTitle:r}},So=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t);return`https://www.facebook.com/sharer.php?u=${`${s}${i}`}&t=${o}`},Ro=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t),l=`${s}${i}`;return`mailto:?to=&body=${o}%20${l}`},Io=(e,t,r)=>{const{windowLocation:n}=ge(),o=r??n,s=be(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${s}`}`};exports.Accordion=nn;exports.ArrowRight=gt;exports.Box=yn;exports.BoxWithForwardRef=bt;exports.Button=Q;exports.ButtonWithForwardRef=V;exports.Calendar=Jt;exports.Checkbox=Tn;exports.Date=Mn;exports.DatePicker=Po;exports.Icon=T;exports.IsClientContextProvider=To;exports.Lightbox=pn;exports.Modal=Re;exports.Popover=$n;exports.ReactHookFormInput=Rn;exports.ReactHookFormSelect=kn;exports.Select=pt;exports.ShareButton=sn;exports.SidePanel=gn;exports.SidePanelContextProvider=ln;exports.TextArea=Sn;exports.TextInputField=yt;exports.ThemeContextProvider=at;exports.ThemeProvider=Kr;exports.Typography=k;exports.WysiwygBlock=vn;exports.createThemeProvider=it;exports.generateUtmTags=be;exports.makeTheme=ot;exports.useFacebookShareUrl=So;exports.useIsClient=jo;exports.useMailToShareUrl=Ro;exports.useSidePanel=mt;exports.useTheme=st;exports.useThemeContext=m;exports.useTwitterShareUrl=Io;exports.useWindow=ge;
|