@fluidattacks/design 3.6.5 → 3.6.7
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/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/modal/multiple-selection/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/slider/types.d.ts +2 -1
- package/dist/components/sortable-list/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-BSMbMyLC.mjs → components-4huw8uSZ.mjs} +919 -906
- package/dist/{components-igCdugTI.js → components-DEKpHs-t.js} +103 -101
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-BEV4WgYv.mjs → vendor-BYfrEtgG.mjs} +1716 -1707
- package/dist/{vendor-TenL90p8.js → vendor-FQSEhQIt.js} +14 -14
- package/package.json +2 -2
|
@@ -91,7 +91,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
91
91
|
* @copyright ReactTooltip Team
|
|
92
92
|
* @license MIT
|
|
93
93
|
*/const ZI="react-tooltip-core-styles",JI="react-tooltip-base-styles",N3={core:!1,base:!1};function j3({css:e,id:t=JI,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||N3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=ZI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),N3[n]=!0}const K3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[fC(Number(i)),hC({fallbackAxisSideDirection:"start"}),NI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(jI({element:n,padding:5})),by(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,v;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:x}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&v!==void 0?v:"bottom",D=u&&{borderBottom:u,borderRight:u};let P=0;if(u){const E=`${u}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[y]:`-${4+P}px`},place:h}})):by(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},U3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),z3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},W3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",xy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>xy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!W3(e)||!W3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>xy(e[i],t[i]))},XI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},H3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(XI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},QI=typeof window<"u"?b.useLayoutEffect:b.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},eL="DEFAULT_TOOLTIP_ID",tL={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},nL=b.createContext({getTooltipData:()=>tL});function gC(e=eL){return b.useContext(nL).getTooltipData(e)}var Us={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Wm={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const rL=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:$=0,float:C=!1,hidden:x=!1,noArrow:y=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:k,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:O,style:F,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:L,contentWrapperRef:_,isOpen:M,defaultIsOpen:Y=!1,setIsOpen:V,activeAnchor:z,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),he=b.useRef(null),le=b.useRef(null),[Fe,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=b.useState(!1),[yt,q]=b.useState(!1),[Z,te]=b.useState(null),pe=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:_e}=gC(t),Ve=b.useRef(!1),[mt,ut]=b.useState([]),Rt=b.useRef(!1),Pn=f||d.includes("click"),_n=Pn||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),Yt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:_n||!1};O&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),QI(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]);const vt=Te=>{Rt.current&&(Te&&q(!0),setTimeout(()=>{Rt.current&&(V==null||V(Te),M===void 0&&Dn(Te))},10))};b.useEffect(()=>{if(M===void 0)return()=>null;M&&q(!0);const Te=setTimeout(()=>{Dn(M)},10);return()=>{clearTimeout(Te)}},[M]),b.useEffect(()=>{if(dt!==pe.current)if(qr(le),pe.current=dt,dt)K==null||K();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Te+25)}},[dt]);const Vn=Te=>{et(je=>xy(je,Te)?je:Te)},Cr=(Te=v)=>{qr(xe),yt?vt(!0):xe.current=setTimeout(()=>{vt(!0)},Te)},Rn=(Te=$)=>{qr(he),he.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return re(null),void _e({current:null});v?Cr():vt(!0),re(Ye),_e({current:Ye}),qr(he)},On=()=>{D?Rn($||100):$?Rn():vt(!1),qr(xe)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};K3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(xe)))},Ir=z3(er,50),Vt=z3(On,50),Cn=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=b.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:G;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):z!=null&&z.isConnected&&K3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:z,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(Ft=>{Rt.current&&Vn(Ft)})},[dt,z,L,F,u,Z==null?void 0:Z.place,c,h,G,Z==null?void 0:Z.position,C]);b.useEffect(()=>{var Te,je;const Ye=new Set(De);mt.forEach(gt=>{j!=null&&j(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=H3(z),Kt=H3(ne.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Kt==null||Kt.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):z&&ne.current&&(an=dC(z,ne.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===z||er(gt)},va=gt=>{dt&&(gt==null?void 0:gt.target)===z&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Ro=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Ro.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Ro.includes(gt)&&wt.push({event:gt,listener:va}))}),C&&wt.push({event:"pointermove",listener:Nn});const Oo=()=>{Ve.current=!0},Mo=()=>{Ve.current=!1,On()};return D&&!_n&&((Te=ne.current)===null||Te===void 0||Te.addEventListener("mouseenter",Oo),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",Mo)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Kt==null||Kt.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!_n&&((gt=ne.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Oo),(nr=ne.current)===null||nr===void 0||nr.removeEventListener("mouseleave",Mo)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(Fo=>{var Lr;(Lr=Fo.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[z,tt,yt,De,mt,k,S,U,Pn,v,$]),b.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Kt=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Kt.push(an.target)),an.type==="childList"){if(z){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Kt.push(...kt.filter(wt=>wt.matches(Ye))),Kt.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,z))&&(q(!1),vt(!1),re(null),qr(xe),qr(he),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Kt.length)&&ut(an=>[...an.filter(kt=>!Kt.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,z]),b.useEffect(()=>{tt()},[tt]),b.useEffect(()=>{if(!(_!=null&&_.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(_.current),()=>{Te.disconnect()}},[L,_==null?void 0:_.current]),b.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];z&&Ye.includes(z)||re((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,z]),b.useEffect(()=>(Y&&vt(!0),()=>{qr(xe),qr(he)}),[]),b.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),b.useEffect(()=>{xe.current&&(qr(xe),Cr(v))},[v]);const nn=($e=Z==null?void 0:Z.content)!==null&&$e!==void 0?$e:L,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}te(Te??null),Te!=null&&Te.delay?Cr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?Rn(Te.delay):vt(!1)},activeAnchor:z,place:Fe.place,isOpen:!!(yt&&!x&&nn&&fr)})),yt&&!x&&nn?b.createElement(g,{id:t,role:Ee,className:$y("react-tooltip",Us.tooltip,Wm.tooltip,Wm[i],n,`react-tooltip__place-${Fe.place}`,Us[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&Us.fixed,D&&Us.clickable),onTransitionEnd:Te=>{qr(le),dt||Te.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...F,...Fe.tooltipStyles,opacity:fe!==void 0&&fr?fe:void 0},ref:ne},nn,b.createElement(g,{className:$y("react-tooltip-arrow",Us.arrow,Wm.arrow,r,y&&Us.noArrow),style:{...Fe.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},iL=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),oL=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:v=!1,positionStrategy:$="absolute",middlewares:C,delayShow:x=0,delayHide:y=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:k=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:L,defaultIsOpen:_=!1,disableStyleInjection:M=!1,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,he]=b.useState(i),[le,Fe]=b.useState(d),[et,dt]=b.useState(c),[Dn,yt]=b.useState(f),[q,Z]=b.useState(x),[te,pe]=b.useState(y),[Ce,De]=b.useState(D),[_e,Ve]=b.useState(P),[mt,ut]=b.useState(h),[Rt,Pn]=b.useState(g),[_n,Yt]=b.useState($),[Ln,tn]=b.useState(null),[vt,Vn]=b.useState(null),Cr=b.useRef(M),{anchorRefs:Rn,activeAnchor:er}=gC(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Vt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{he(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?y:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?P:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{he(i)},[i]),b.useEffect(()=>{Fe(d)},[d]),b.useEffect(()=>{dt(c)},[c]),b.useEffect(()=>{yt(f)},[f]),b.useEffect(()=>{Z(x)},[x]),b.useEffect(()=>{pe(y)},[y]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Ve(P)},[P]),b.useEffect(()=>{Yt($)},[$]),b.useEffect(()=>{Cr.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:M==="core",disableBase:M}}))},[]),b.useEffect(()=>{var Vt;const Cn=new Set(Rn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[Rn,er,vt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Y&&!U3("border",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!U3("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=b.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:vt});Nn=Vt?b.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Vt):null}else ne&&(Nn=ne);xe&&(Nn=b.createElement(iL,{content:xe}));const Ir={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:$y(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:En,place:le,variant:et,offset:Dn,wrapper:mt,events:Rt,openOnClick:v,positionStrategy:_n,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:_e,noArrow:E,clickable:T,closeOnEsc:k,closeOnScroll:S,closeOnResize:U,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:L,defaultIsOpen:_,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:Ee};return b.createElement(rL,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||j3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||j3({css:`
|
|
94
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function aL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const qf={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=b.createContext(qf),sL=b.createContext(!1);let uL=!!(typeof window<"u"&&window.document&&window.document.createElement),Hm=new WeakMap;function lL(e=!1){let t=b.useContext(yC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Hm.get(o);a==null?Hm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hm.delete(o))}n.current=++t.current}return n.current}function cL(e){let t=b.useContext(yC);t===qf&&!uL&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=lL(!!e),r=t===qf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function dL(e){let t=b.useId(),[n]=b.useState(nb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qf.prefix}`;return e||`${r}-${t}`}const fL=typeof b.useId=="function"?dL:cL;function hL(){return!1}function pL(){return!0}function mL(e){return()=>{}}function nb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(mL,hL,pL):b.useContext(sL)}let gL=!!(typeof window<"u"&&window.document&&window.document.createElement),Jo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=fL(t),o=b.useCallback(a=>{r.current=a},[]);return gL&&(Jo.has(i)&&!Jo.get(i).includes(o)?Jo.set(i,[...Jo.get(i),o]):Jo.set(i,[o])),zt(()=>{let a=i;return()=>{Jo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function yL(e,t){if(e===t)return e;let n=Jo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Jo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Mr(),[n,r]=aL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function os(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},da=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=os(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=vL(o,a):i==="id"&&o&&a?t.id=yL(o,a):t[i]=a!==void 0?a:o}}return t}const bL=new Set(["id"]),$L=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),wL=/^(data-.*)$/;function Ao(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(bL.has(a)||n&&$L.has(a)||r&&xL.has(a)||i!=null&&i.has(a)||wL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(DL())e.focus({preventScroll:!0});else{let t=EL(e);e.focus(),CL(t)}}let ef=null;function DL(){if(ef==null){ef=!1;try{document.createElement("div").focus({get preventScroll(){return ef=!0,!0}})}catch{}}return ef}function EL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function CL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Wh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Po(e){let t=null;return()=>(t==null&&(t=e()),t)}const Eo=Po(function(){return rb(/^Mac/i)}),SL=Po(function(){return rb(/^iPhone/i)}),bC=Po(function(){return rb(/^iPad/i)||Eo()&&navigator.maxTouchPoints>1}),Rc=Po(function(){return SL()||bC()}),Tf=Po(function(){return Eo()||Rc()}),ib=Po(function(){return Wh(/AppleWebKit/i)&&!TL()}),TL=Po(function(){return Wh(/Chrome/i)}),$C=Po(function(){return Wh(/Android/i)}),AL=Po(function(){return Wh(/Firefox/i)}),PL=b.createContext({isNative:!0,open:RL,useHref:e=>e});function Hh(){return b.useContext(PL)}function as(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;AL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Eo()?o=!0:a=!0);let d=ib()&&Eo()&&!bC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});as.isOpening=n,vi(e),e.dispatchEvent(d),as.isOpening=!1}as.isOpening=!1;function _L(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function RL(e,t){_L(e,n=>as(n,t))}function OL(e){let t=Hh();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Ys=new Map,wy=new Set;function G3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);i||(i=new Set,Ys.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ys.delete(r.target)),Ys.size===0)){for(let o of wy)o();wy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?G3():document.addEventListener("DOMContentLoaded",G3));function xC(e){requestAnimationFrame(()=>{Ys.size===0?e():wy.add(e)})}function Ku(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Cu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function q3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function ML(){return typeof window.ResizeObserver<"u"}function Y3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ML()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function wC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function cc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Gh(e,t){let n=e;for(cc(n,t)&&(n=n.parentElement);n&&!cc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function FL(e,t){const n=[];for(;e&&e!==document.documentElement;)cc(e,t)&&n.push(e),e=e.parentElement;return n}let kL=0;const Gm=new Map;function Oc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=Gm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${kL++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Gm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function aa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function DC(e,t){let n=Z3(e,t,"left"),r=Z3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function Z3(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Yf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=FL(e);for(let d of c)DC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Dy(e){return e.mozInputSource===0&&e.isTrusted?!0:$C()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function BL(e){return!$C()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ob(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Su(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function tf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Cl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=tf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(tf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(tf((n-t)/r,r))*r),o=tf(o,r),o}let Xs="default",Ey="",Af=new WeakMap;function Cy(e){if(Rc()){if(Xs==="default"){const t=Lt(e);Ey=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Af.set(e,e.style.userSelect),e.style.userSelect="none")}function jl(e){if(Rc()){if(Xs!=="disabled")return;Xs="restoring",setTimeout(()=>{xC(()=>{if(Xs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ey||""),Ey="",Xs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Af.has(e)){let t=Af.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Af.delete(e)}}const ab=b.createContext({register:()=>{}});ab.displayName="PressResponderContext";function IL(e,t){return t.get?t.get.call(e):t.value}function CC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function LL(e,t){var n=CC(e,t,"get");return IL(e,n)}function VL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mc(e,t,n){VL(e,t),t.set(e,n)}function NL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J3(e,t,n){var r=CC(e,t,"set");return NL(e,r,n),n}function jL(e){let t=b.useContext(ab);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return wC(t,e.ref),e}var nf=new WeakMap;class rf{continuePropagation(){J3(this,nf,!1)}get shouldStopPropagation(){return LL(this,nf)}constructor(t,n,r,i){Mc(this,nf,{writable:!0,value:void 0}),J3(this,nf,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const X3=Symbol("linkClicked");function Fc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=jL(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Ku(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new rf("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new rf("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new rf("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new rf("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(co(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||jl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(qm(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;e$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{qm(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(co(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",os(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Eo()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!as.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Dy(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&qm(F,S.target)){var K;e$(F.target,F.key)&&F.preventDefault();let j=F.target;D(co(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&sb(S.target)&&S.target.contains(j)&&!F[X3]&&(F[X3]=!0,as(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(BL(j.nativeEvent)){S.pointerType="virtual";return}Ym(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Cy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Ym(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&zs(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&zs(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(co(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(co(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(zs(j,S.target)&&S.pointerType!=null?D(co(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(co(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||jl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{SC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Ym(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Dy(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&zs(K,S.target)&&S.pointerType!=null?D(co(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(co(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=KL(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Cy(S.target),y(Ho(S.target,K),S.pointerType)&&K.stopPropagation(),C(da(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Ho(S.target,K),S.pointerType,!1),T(Ho(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)&&S.pointerType!=null?(P(Ho(S.target,K),S.pointerType),j=D(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Ho(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&jl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Ho(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||jl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function sb(e){return e.tagName==="A"&&e.hasAttribute("href")}function qm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof da(i).HTMLInputElement&&!TC(i,n)||i instanceof da(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&sb(i))&&n!=="Enter")}function KL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Q3(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Ho(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function co(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function UL(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function zL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function zs(e,t){let n=t.getBoundingClientRect(),r=UL(e);return zL(n,r)}function Ym(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function SC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!sb(e)}function e$(e,t){return e instanceof HTMLInputElement?!TC(e,t):SC(e)}const WL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":WL.has(e.type)}function HL({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ab.Provider,{value:t},e)}class GL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function AC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new GL("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function qL(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=AC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let fs=null,YL=new Set,Jl=new Map,ss=!1,Sy=!1;function qh(e,t){for(let n of YL)n(e,t)}function ZL(e){return!(e.metaKey||!Eo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zf(e){ss=!0,ZL(e)&&(fs="keyboard",qh("keyboard",e))}function ni(e){fs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ss=!0,qh("pointer",e))}function PC(e){Dy(e)&&(ss=!0,fs="virtual")}function _C(e){e.target===window||e.target===document||(!ss&&!Sy&&(fs="virtual",qh("virtual",e)),ss=!1,Sy=!1)}function RC(){ss=!1,Sy=!0}function t$(e){if(typeof window>"u"||Jl.get(da(e)))return;const t=da(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ss=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zf,!0),n.addEventListener("keyup",Zf,!0),n.addEventListener("click",PC,!0),t.addEventListener("focus",_C,!0),t.addEventListener("blur",RC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{OC(e)},{once:!0}),Jl.set(t,{focus:r})}const OC=(e,t)=>{const n=da(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),Jl.has(n)&&(n.HTMLElement.prototype.focus=Jl.get(n).focus,r.removeEventListener("keydown",Zf,!0),r.removeEventListener("keyup",Zf,!0),r.removeEventListener("click",PC,!0),n.removeEventListener("focus",_C,!0),n.removeEventListener("blur",RC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Jl.delete(n))};function JL(e){const t=Lt(e);let n;return t.readyState!=="loading"?t$(e):(n=()=>{t$(e)},t.addEventListener("DOMContentLoaded",n)),()=>OC(e,n)}typeof document<"u"&&JL();function n$(){return fs!=="pointer"}function Jf(){return fs}function MC(e){fs=e,qh(e,null)}function Uu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=AC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let Xf=!1,Zm=0;function Ty(){Xf=!0,setTimeout(()=>{Xf=!1},50)}function r$(e){e.pointerType==="touch"&&Ty()}function XL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r$):document.addEventListener("touchend",Ty),Zm++,()=>{Zm--,!(Zm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r$):document.removeEventListener("touchend",Ty))}}function QL(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(XL,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Xf&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!Xf&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function eV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&of(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&of(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function of(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function FC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i$(e.onKeyDown),onKeyUp:i$(e.onKeyUp)}}}function kC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Ku(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{jl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Cy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const tV=500;function BC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=tV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:f}=Fc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Oc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function us(e){const t=Lt(e);if(Jf()==="virtual"){let n=t.activeElement;xC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function nV(e){const t=da(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function rV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function IC(e,t){return e.nodeName!=="#comment"&&nV(e)&&rV(e,t)&&(!e.parentElement||IC(e.parentElement,e))}const o$=b.createContext(null),Ay="react-aria-focus-scope-restore";let Nt=null;function iV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(o$)||{},d=b.useMemo(()=>new _y({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!Qf(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Ay,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Ay,$)}},[t]),dV(u,r,n),uV(u,n),fV(u,r,n),cV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||Qf(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>oV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(o$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function oV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const ub=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],aV=ub.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ub.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const sV=ub.join(':not([hidden]):not([tabindex="-1"]),');function Ka(e){return e[0].parentElement}function Kl(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Kl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Ka(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||Qf(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Kl(e)&&!ta(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Py(Nt.current):Kl(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Kl(e)&&!ta(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&Py(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LC(e){return ta(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ta(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function lV(e){return ta(e,Nt)}function Qf(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{us(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function VC(e,t=!0){let n=e[0].previousElementSibling,r=Ka(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ka(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Py(e,t=!0){xr(VC(e,t))}function cV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Py(e.current)}n.current=!1},[e])}function dV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:LC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function a$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function fV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||Qf(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kl(e)||a.isComposing)return;let u=i.activeElement;if(!ta(u,e)||!a$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!ta(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(ta(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):LC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&ta(i.activeElement,e)||i.activeElement===i.body&&a$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){s$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=VC(f.scopeRef.current,!0);s$(h);return}f=f.parent}}})}}}},[e,t])}function s$(e){e.dispatchEvent(new CustomEvent(Ay,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?sV:aV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&IC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Yh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Jm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Jm(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=Jm(a);return u&&xr(u,!0),u??null}}}function Jm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class lb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new lb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new lb,hV=b.createContext(null);function pV(e){let t=b.useContext(hV)||{};wC(t,e);let{ref:n,...r}=t;return r}function cb(e,t){let{focusProps:n}=qL(e),{keyboardProps:r}=FC(e),i=xt(n,r),o=pV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&us(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const mV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yV(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return mV.has(n.script)}let t=e.split("-")[0];return gV.has(t)}const vV=Symbol.for("react-aria.i18n.locale");function NC(){let e=typeof window<"u"&&window[vV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yV(e)?"rtl":"ltr"}}let Ry=NC(),Ul=new Set;function u$(){Ry=NC();for(let e of Ul)e(Ry)}function bV(){let e=nb(),[t,n]=b.useState(Ry);return b.useEffect(()=>(Ul.size===0&&window.addEventListener("languagechange",u$),Ul.add(n),()=>{Ul.delete(n),Ul.size===0&&window.removeEventListener("languagechange",u$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const $V=b.createContext(null);function Qn(){let e=bV();return b.useContext($V)||e}const xV=Symbol.for("react-aria.i18n.locale"),wV=Symbol.for("react-aria.i18n.strings");let Ws;class ga{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=DV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[xV];if(Ws===void 0){let i=window[wV];if(!i)return null;Ws={};for(let o in i)Ws[o]=new ga({[n]:i[o]},n)}let r=Ws==null?void 0:Ws[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function DV(e,t,n="en-US"){if(t[e])return t[e];let r=EV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function EV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l$=new Map,c$=new Map;class jC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=l$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),l$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=c$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),c$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const d$=new WeakMap;function CV(e){let t=d$.get(e);return t||(t=new ga(e),d$.set(e,t)),t}function KC(e,t){return t&&ga.getGlobalDictionaryForPackage(t)||CV(e)}function Xi(e,t){let{locale:n}=Qn(),r=KC(e,t);return b.useMemo(()=>new jC(n,r),[n,r])}function cu(e,t){return e-t*Math.floor(e/t)}const UC=1721426;function Ua(e,t,n,r){t=kc(e,t);let i=t-1,o=-2;return n<=2?o=0:na(t)&&(o=-1),UC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function na(e){return e%4===0&&(e%100!==0||e%400===0)}function kc(e,t){return e==="BC"?1-t:t}function Zh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const SV={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 dr{fromJulianDay(t){let n=t,r=n-UC,i=Math.floor(r/146097),o=cu(r,146097),a=Math.floor(o/36524),u=cu(o,36524),c=Math.floor(u/1461),d=cu(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Zh(h),v=n-Ua(m,g,1,1),$=2;n<Ua(m,g,3,1)?$=0:na(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-Ua(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return Ua(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return SV[na(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return na(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 TV={"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 xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Oy(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zC(e,t){return xn(e,Jh(t))}function db(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-MV(t))%7;return r<0&&(r+=7),r}function WC(e){return yo(Date.now(),e)}function Jh(e){return cr(WC(e))}function HC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GC(e,t){return f$(e)-f$(t)}function f$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Xm=null;function Bc(){return Xm==null&&(Xm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Xm}function Ic(e){return e.subtract({days:e.day-1})}function My(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function AV(e){return Ic(e.subtract({months:e.month-1}))}function PV(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function _V(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function dc(e,t){let n=db(e,t);return e.subtract({days:n})}function RV(e,t){return dc(e,t).add({days:6})}const h$=new Map;function OV(e){if(Intl.Locale){let n=h$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&h$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function MV(e){let t=OV(e);return t&&TV[t]||0}function FV(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((db(Ic(e),t)+n)/7)}function fb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function hb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tu(e){e=Qt(e,new dr);let t=kc(e.era,e.year);return qC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function qC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Fy(e,t){if(t==="UTC")return 0;if(e>0&&t===Bc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=YC(e,t);return qC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const p$=new Map;function YC(e,t){let n=p$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),p$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const m$=864e5;function kV(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>BV(e,t,o))}function BV(e,t,n){let r=YC(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function go(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Tu(r);if(t===Bc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=kc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Tu(r),o=Fy(i-m$,t),a=Fy(i+m$,t),u=kV(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function ZC(e,t,n="compatible"){return new Date(go(e,t,n))}function yo(e,t){let n=Fy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new hc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new eh(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function g$(e){return new Lc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ls(r),r}function JC(e,t,n){if(e instanceof hc)return e.timeZone===t?e:LV(e,t);let r=go(e,t,n);return yo(r,t)}function IV(e){let t=Tu(e)-e.offset;return new Date(t)}function LV(e,t){let n=Tu(e)-e.offset;return Qt(yo(n,t),e.calendar)}const Sl=36e5;function Xh(e,t){let n=e.copy(),r="hour"in n?tS(n,t):0;ky(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,By(n),XC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,VV(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ky(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function By(e){for(;e.month<1;)ky(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ky(e,1)}function VV(e){for(;e.day<1;)e.month--,By(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,By(e)}function XC(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 ls(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),XC(e)}function pb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function QC(e,t){return Xh(e,pb(t))}function mb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ls(n),n}function fc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),eS(n),n}function NV(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=af(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=af(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=af(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=af(e.hour,24),t}function eS(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 af(e,t){let n=e%t;return n<0&&(n+=t),n}function tS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,NV(e)}function nS(e,t){let n=e.copy();return tS(n,t),n}function jV(e,t){return nS(e,pb(t))}function gb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=vo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],ls(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=vo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=vo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=vo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ls(i),i}function yb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=vo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=vo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=vo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=vo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function vo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function rS(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Xh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=go(i,e.timeZone)}else n=Tu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=yo(n,e.timeZone);return Qt(r,e.calendar)}function KV(e,t){return rS(e,pb(t))}function UV(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(fc(a,{hour:i}),new dr),c=[go(u,e.timeZone,"earlier"),go(u,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===u.day)[0],d=Qt(fc(a,{hour:o}),new dr),f=[go(d,e.timeZone,"earlier"),go(d,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===d.day).pop(),h=Tu(e)-e.offset,m=Math.floor(h/Sl),g=h%Sl;return h=vo(m,n,Math.floor(c/Sl),Math.floor(f/Sl),r==null?void 0:r.round)*Sl+g,Qt(yo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=gb(Di(e),t,n,r),o=go(i,e.timeZone);return Qt(yo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function zV(e,t,n){let r=Di(e),i=fc(mb(r,t),t);if(i.compare(r)===0)return e;let o=go(i,e.timeZone,n);return Qt(yo(o,e.timeZone),e.calendar)}const WV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function HV(e){let t=e.match(WV);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Qm(t[1],0,9999),Qm(t[2],1,12),1);return n.day=Qm(t[3],0,n.calendar.getDaysInMonth(n)),n}function Qm(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function iS(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 oS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function aS(e){return`${oS(e)}T${iS(e)}`}function GV(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function qV(e){return`${aS(e)}${GV(e.offset)}[${e.timeZone}]`}function vb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var YV=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(this,t)}cycle(t,n,r){return gb(this,t,n,r)}toDate(t){return ZC(this,t)}toString(){return oS(this)}compare(t){return HC(this,t)}constructor(...t){Mc(this,YV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,ls(this)}}var ZV=new WeakMap;class Lc{copy(){return new Lc(this.hour,this.minute,this.second,this.millisecond)}add(t){return nS(this,t)}subtract(t){return jV(this,t)}set(t){return fc(this,t)}cycle(t,n,r){return yb(this,t,n,r)}toString(){return iS(this)}compare(t){return GC(this,t)}constructor(t=0,n=0,r=0,i=0){Mc(this,ZV,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,eS(this)}}var JV=new WeakMap;class eh{copy(){return this.era?new eh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new eh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(fc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return gb(this,t,n,r);default:return yb(this,t,n,r)}}toDate(t,n){return ZC(this,t,n)}toString(){return aS(this)}compare(t){let n=HC(this,t);return n===0?GC(this,Di(t)):n}constructor(...t){Mc(this,JV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}var XV=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return rS(this,t)}subtract(t){return KV(this,t)}set(t,n){return zV(this,t,n)}cycle(t,n,r){return UV(this,t,n,r)}toDate(){return IV(this)}toString(){return qV(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JC(t,this.timeZone).toDate().getTime()}constructor(...t){Mc(this,XV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}const du=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],QV=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Pf=[1867,1911,1925,1988,2018],Xo=["meiji","taisho","showa","heisei","reiwa"];function y$(e){const t=du.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?du.length-1:t===0?0:t-1}function eg(e){let t=Pf[Xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class eN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=y$(n);return new hn(this,Xo[r],n.year-Pf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=y$(n);Xo[r]!==t.era&&(t.era=Xo[r],t.year=n.year-Pf[r]),this.constrainDate(t)}constrainDate(t){let n=Xo.indexOf(t.era),r=QV[n];if(r!=null){let[i,o,a]=r,u=i-Pf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=du[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Xo}getYearsInEra(t){let n=Xo.indexOf(t.era),r=du[n],i=du[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(eg(t))}getMinimumMonthInYear(t){let n=v$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=v$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function v$(e){if(e.year===1){let t=Xo.indexOf(e.era);return du[t]}}const sS=-543;class tN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year);return new hn(this,r-sS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(b$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(b$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function b$(e){let[t,n]=Zh(e.year+sS);return new hn(t,n,e.month,e.day)}const th=1911;function uS(e){return e.era==="minguo"?e.year+th:1-e.year+th}function $$(e){let t=e-th;return t>0?["minguo",t]:["before_minguo",1-t]}class nN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year),[i,o]=$$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(x$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=$$(uS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(x$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-th}constructor(...t){super(...t),this.identifier="roc"}}function x$(e){let[t,n]=Zh(uS(e));return new hn(t,n,e.month,e.day)}const w$=1948320,D$=[0,31,62,93,124,155,186,216,246,276,306,336];class rN{fromJulianDay(t){let n=t-w$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-D$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=w$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=D$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||cu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,E$=80;class iN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-Ua(n.era,n.year,1,1),o;i<E$?(r--,o=na(n.year-1)?31:30,i+=o+155+90+10):(o=na(n.year)?31:30,i-=E$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Zh(n),o,a;return na(i)?(o=31,a=Ua(r,i,3,21)):(o=30,a=Ua(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&na(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const nh=1948440,C$=1948439,ei=1300,Hs=1600,oN=460322;function rh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function lS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+rh(t,r,1,1)))/29.5)+1),o=n-rh(t,r,i,1)+1;return new hn(e,r,i,o)}function S$(e){return(14+11*e)%30<11}class bb{fromJulianDay(t){return lS(this,nh,t)}toJulianDay(t){return rh(nh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&S$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return S$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class aN extends bb{fromJulianDay(t){return lS(this,C$,t)}toJulianDay(t){return rh(C$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const sN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Iy,fu;function _f(e){return oN+fu[e-ei]}function zl(e,t){let n=e-ei,r=1<<11-(t-1);return Iy[n]&r?30:29}function T$(e,t){let n=_f(e);for(let r=1;r<t;r++)n+=zl(e,r);return n}function A$(e){return fu[e+1-ei]-fu[e-ei]}class uN extends bb{fromJulianDay(t){let n=t-nh,r=_f(ei),i=_f(Hs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-_f(o)+1;let c=A$(o);if(u===c){a=12;break}else if(u<c){let d=zl(o,a);for(a=1;u>d;)u-=d,a++,d=zl(o,a);break}}return new hn(this,o,a,n-T$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Hs?super.toJulianDay(t):nh+T$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Hs?super.getDaysInMonth(t):zl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Hs?super.getDaysInYear(t):A$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Iy||(Iy=new Uint16Array(Uint8Array.from(atob(sN),t=>t.charCodeAt(0)).buffer)),!fu){fu=new Uint32Array(Hs-ei+1);let t=0;for(let n=ei;n<=Hs;n++){fu[n-ei]=t;for(let r=1;r<=12;r++)t+=zl(n,r)}}}}const P$=347997,cS=1080,dS=24*cS,lN=29,cN=12*cS+793,dN=lN*dS+cN;function Va(e){return cu(e*7+1,19)<7}function Rf(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return cu(3*(r+1),7)<3&&(r+=1),r}function fN(e){let t=Rf(e-1),n=Rf(e);return Rf(e+1)-n===356?2:n-t===382?1:0}function Xl(e){return Rf(e)+fN(e)}function fS(e){return Xl(e+1)-Xl(e)}function hN(e){let t=fS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sf(e,t){if(t>=6&&!Va(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=hN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Va(e)?30:0:30}class pN{fromJulianDay(t){let n=t-P$,r=n*dS/dN,i=Math.floor((19*r+234)/235)+1,o=Xl(i),a=Math.floor(n-o);for(;a<1;)i--,o=Xl(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=sf(i,u),u++;u--,c-=sf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Xl(t.year);for(let r=1;r<t.month;r++)n+=sf(t.year,r);return n+t.day+P$}getDaysInMonth(t){return sf(t.year,t.month)}getMonthsInYear(t){return Va(t.year)?13:12}getDaysInYear(t){return fS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Va(n.year)&&!Va(t.year)&&n.month>6?t.month--:!Va(n.year)&&Va(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ly=1723856,_$=1824665,Vy=5500;function ih(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $b(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ih(e,n,1,1))/30),i=t+1-ih(e,n,r,1);return[n,r,i]}function hS(e){return Math.floor(e%4/3)}function pS(e,t){return t%13!==0?30:hS(e)+5}class xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t),o="AM";return n<=0&&(o="AA",n+=Vy),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Vy),ih(Ly,n,t.month,t.day)}getDaysInMonth(t){return pS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+hS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class mN extends xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t);return n+=Vy,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class gN extends xb{fromJulianDay(t){let[n,r,i]=$b(_$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ih(_$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pS(n,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 yN(e){switch(e){case"buddhist":return new tN;case"ethiopic":return new xb;case"ethioaa":return new mN;case"coptic":return new gN;case"hebrew":return new pN;case"indian":return new iN;case"islamic-civil":return new bb;case"islamic-tbla":return new aN;case"islamic-umalqura":return new uN;case"japanese":return new eN;case"persian":return new rN;case"roc":return new nN;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return $N()&&(this.resolvedHourCycle||(this.resolvedHourCycle=xN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=mS(t,n),this.options=n}}const vN={true:{ja:"h11"},false:{}};function mS(e,t={}){if(typeof t.hour12=="boolean"&&bN()){t={...t};let i=vN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function bN(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function $N(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function xN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=mS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Vi(e){e=EC(e??{},wN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function wN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let og=new Map,Ny=!1;try{Ny=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oh=!1;try{oh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class yS{format(t){let n="";if(!Ny&&this.options.signDisplay!=null?n=EN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!oh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=gS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ny&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!oh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=DN(t,n),this.options=n}}function DN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!oh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=gS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function EN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const CN=new RegExp("^.*\\(.*\\).*$"),SN=["latn","arab","hanidec","deva","beng"];class vS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const R$=new Map;function ag(e,t,n){let r=O$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of SN)if(i!==r.options.numberingSystem){let o=O$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function O$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=R$.get(n);return r||(r=new TN(e,t),R$.set(n,r)),r}class TN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=uf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new vS(this.locale,a).parse(new yS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&CN.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=uf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=PN(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const M$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),AN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function PN(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=AN.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!M$.has(O.type)).map(O=>F$(O.value)),D=h.flatMap(O=>O.filter(F=>!M$.has(F.type)).map(F=>F$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function uf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function F$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _N(e={}){let{locale:t}=Qn();return b.useMemo(()=>new yS(t,e),[t,e])}let sg=new Map;function bS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function $S(e){let t=bS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function RN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Fc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=cb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Ao(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var xS={};xS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var wS={};wS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var ES={};ES={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var SS={};SS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var TS={};TS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var PS={};PS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _S={};_S={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var MS={};MS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var IS={};IS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var LS={};LS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var VS={};VS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var NS={};NS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var zS={};zS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WS={};WS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var HS={};HS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var GS={};GS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var ZS={};ZS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var e5={};e5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Vc={};Vc={"ar-AE":xS,"bg-BG":wS,"cs-CZ":DS,"da-DK":ES,"de-DE":CS,"el-GR":SS,"en-US":TS,"es-ES":AS,"et-EE":PS,"fi-FI":_S,"fr-FR":RS,"he-IL":OS,"hr-HR":MS,"hu-HU":FS,"it-IT":kS,"ja-JP":BS,"ko-KR":IS,"lt-LT":LS,"lv-LV":VS,"nb-NO":NS,"nl-NL":jS,"pl-PL":KS,"pt-BR":US,"pt-PT":zS,"ro-RO":WS,"ru-RU":HS,"sk-SK":GS,"sl-SI":qS,"sr-SP":YS,"sv-SE":ZS,"tr-TR":JS,"uk-UA":XS,"zh-CN":QS,"zh-TW":e5};function t5(e){return e&&e.__esModule?e.default:e}const wb=new WeakMap;function pc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function ON(e){let t=Xi(t5(Vc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Vi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pc(n)||pc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ky(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function jy(e,t,n,r){let i=Xi(t5(Vc),"@react-aria/calendar"),o=pc(e)||pc(t),a=Vi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Vi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Ic(e))){if(xn(t,My(e)))return a.format(e.toDate(n));if(xn(t,My(t)))return r?Ky(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Ky(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Ky(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const n5=7e3;let Xr=null;function hu(e,t="assertive",n=n5){Xr?Xr.announce(e,t,n):(Xr=new FN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function MN(e){Xr&&Xr.clear(e)}class FN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=n5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function kN(e){return e&&e.__esModule?e.default:e}function r5(e,t){let n=Xi(kN(Vc),"@react-aria/calendar"),r=Ao(e),i=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);q3(()=>{t.isFocused||hu(o)},[o]);let a=ON(t);q3(()=>{a&&hu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);wb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Cu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function BN(e,t){return r5(e,t)}function IN(e,t,n){let r=r5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return aa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),aa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},aa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function LN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=jy(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=wb.get(t),d=Cu({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Vi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=dc(Jh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function VN(e){return e&&e.__esModule?e.default:e}function NN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=wb.get(t),u=Xi(VN(Vc),"@react-aria/calendar"),c=Vi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=EC(r,Oy);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=zC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Oc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Fc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Jf()!=="pointer"&&document.activeElement===n.current&&Yf(n.current,{containingElement:Gh(n.current)}))},[f,n]);let U=Vi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const Qh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i5={...Qh,customError:!0,valid:!1},Na={isInvalid:!1,validationDetails:Qh,validationErrors:[]},jN=b.createContext({}),Au="__formValidationState"+Date.now();function Nc(e){if(e[Au]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Au];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return KN(e)}function KN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:i5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=UN(a,i);return k$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(jN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Uy(f[O])):Uy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>k$(v?[]:h),[v,h]),x=b.useRef(Na),[y,D]=b.useState(Na),P=b.useRef(Na),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||Na,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=Na;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function UN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Uy(n)}return[]}function k$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i5}:null}function ug(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function ah(...e){let t=new Set,n=!1,r={...Qh};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function o5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(WN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&HN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),MC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function zN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function WN(e){return{isInvalid:!e.validity.valid,validationDetails:zN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function HN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function ep(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function tp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=ep(e),u=Eu([!!t,!!n,r,i]),c=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const GN=0,qN=100,YN=1;function ZN(e){const{isDisabled:t=!1,minValue:n=GN,maxValue:r=qN,numberFormatter:i,step:o=YN,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Cl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Cl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(I$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=I$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=L$(e.value,e.defaultValue,e.onChange),m=L$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Cl(re,oe,fe,o);let ie=B$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=B$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Su(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function B$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function I$(e){if(e!=null)return Array.isArray(e)?e:[e]}function L$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const V$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function JN(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=Uu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...V$,...t}:V$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function XN(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=JN(e);return b.createElement(n,xt(o,a),t)}const Db=new WeakMap;function zy(e,t){let n=Db.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function QN(e,t,n){let{labelProps:r,fieldProps:i}=ep(e),o=e.orientation==="vertical";var a;Db.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=kC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Su(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(zy(t,0)))===null||x===void 0||x.focus(),MC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>zy(t,y)).join(" "),"aria-live":"off"}}}function ej(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Ku(),$=Db.get(t);var C;const{labelProps:x,fieldProps:y}=ep({...e,id:zy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=FC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=kC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Su(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=cb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return ob(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function tj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=cb(e,t),h=Nc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=tp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Ao(e,{labelable:!0});const P={type:a,pattern:e.pattern};return ob(t,c,d),o5(e,h,t),b.useEffect(()=>{if(t.current instanceof da(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var a5={};a5={Empty:"فارغ"};var s5={};s5={Empty:"Изпразни"};var u5={};u5={Empty:"Prázdné"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leer"};var d5={};d5={Empty:"Άδειο"};var f5={};f5={Empty:"Empty"};var h5={};h5={Empty:"Vacío"};var p5={};p5={Empty:"Tühjenda"};var m5={};m5={Empty:"Tyhjä"};var g5={};g5={Empty:"Vide"};var y5={};y5={Empty:"ריק"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Üres"};var $5={};$5={Empty:"Vuoto"};var x5={};x5={Empty:"空"};var w5={};w5={Empty:"비어 있음"};var D5={};D5={Empty:"Tuščias"};var E5={};E5={Empty:"Tukšs"};var C5={};C5={Empty:"Tom"};var S5={};S5={Empty:"Leeg"};var T5={};T5={Empty:"Pusty"};var A5={};A5={Empty:"Vazio"};var P5={};P5={Empty:"Vazio"};var _5={};_5={Empty:"Gol"};var R5={};R5={Empty:"Не заполнено"};var O5={};O5={Empty:"Prázdne"};var M5={};M5={Empty:"Prazen"};var F5={};F5={Empty:"Prazno"};var k5={};k5={Empty:"Tomt"};var B5={};B5={Empty:"Boş"};var I5={};I5={Empty:"Пусто"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"空白"};var N5={};N5={"ar-AE":a5,"bg-BG":s5,"cs-CZ":u5,"da-DK":l5,"de-DE":c5,"el-GR":d5,"en-US":f5,"es-ES":h5,"et-EE":p5,"fi-FI":m5,"fr-FR":g5,"he-IL":y5,"hr-HR":v5,"hu-HU":b5,"it-IT":$5,"ja-JP":x5,"ko-KR":w5,"lt-LT":D5,"lv-LV":E5,"nb-NO":C5,"nl-NL":S5,"pl-PL":T5,"pt-BR":A5,"pt-PT":P5,"ro-RO":_5,"ru-RU":R5,"sk-SK":O5,"sl-SI":M5,"sr-SP":F5,"sv-SE":k5,"tr-TR":B5,"uk-UA":I5,"zh-CN":L5,"zh-TW":V5};function nj(e){return e&&e.__esModule?e.default:e}function rj(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Xi(nj(N5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(MN("assertive"),hu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Ku();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var j5={};j5={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var K5={};K5={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var U5={};U5={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var z5={};z5={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var W5={};W5={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var H5={};H5={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var G5={};G5={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var q5={};q5={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Y5={};Y5={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Z5={};Z5={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var J5={};J5={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var X5={};X5={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Q5={};Q5={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var e2={};e2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var t2={};t2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var n2={};n2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var r2={};r2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var i2={};i2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var o2={};o2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var a2={};a2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var s2={};s2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var u2={};u2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var l2={};l2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var c2={};c2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d2={};d2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var f2={};f2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var h2={};h2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var p2={};p2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var m2={};m2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var g2={};g2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var y2={};y2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var v2={};v2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var b2={};b2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var $2={};$2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var x2={};x2={"ar-AE":j5,"bg-BG":K5,"cs-CZ":U5,"da-DK":z5,"de-DE":W5,"el-GR":H5,"en-US":G5,"es-ES":q5,"et-EE":Y5,"fi-FI":Z5,"fr-FR":J5,"he-IL":X5,"hr-HR":Q5,"hu-HU":e2,"it-IT":t2,"ja-JP":n2,"ko-KR":r2,"lt-LT":i2,"lv-LV":o2,"nb-NO":a2,"nl-NL":s2,"pl-PL":u2,"pt-BR":l2,"pt-PT":c2,"ro-RO":d2,"ru-RU":f2,"sk-SK":h2,"sl-SI":p2,"sr-SP":m2,"sv-SE":g2,"tr-TR":y2,"uk-UA":v2,"zh-CN":b2,"zh-TW":$2};const Ni={top:"top",bottom:"top",left:"left",right:"left"},sh={top:"bottom",bottom:"top",left:"right",right:"left"},ij={top:"left",left:"top"},Wy={top:"height",left:"width"},w2={width:"totalWidth",height:"totalHeight"},lf={};let Tn=typeof document<"u"?window.visualViewport:null;function N$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=pu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(ib()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function oj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function j$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Wy[e]],f=r.scroll[Ni[e]]+o,h=d+r.scroll[Ni[e]]-o,m=t-c+a[e]-r[Ni[e]],g=t-c+n+a[e]-r[Ni[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function aj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function K$(e){if(lf[e])return lf[e];let[t,n]=e.split(" "),r=Ni[t]||"right",i=ij[r];Ni[n]||(n="center");let o=Wy[r],a=Wy[i];return lf[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},lf[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Su(C[g],T,k),f===m){const S=u?a[v]:t[w2[v]];C[sh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function sj(e,t,n,r,i,o,a,u){const c=r?n.height:t[w2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function U$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[sh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[sh[u]]-i)}function uj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=K$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=U$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=K$(`${sh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);U$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=j$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=sj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=j$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[Ni[y]];const W=v/2+$;var j,L,_,M;const Y=Ni[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[Ni[y]]),re=t[y]+t[D]-v/2-(T[y]+i[Ni[y]]),oe=Su(K,z,re);return G[y]=Su(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function lj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?cj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?pu(n):z$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=pu(r),D=aj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=oj(i),U=N$(u),O=N$(g),F=u.tagName==="BODY"?pu(g):z$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),uj(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function pu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function z$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=pu(e);let i=pu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function cj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W$(t);)t=t.parentElement;return t||document.documentElement}function W$(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const D2=new WeakMap;function dj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||D2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function fj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=lj({placement:pj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),hj(E),Y3({ref:i,onResize:E}),Y3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);dj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function hj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function pj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const fo=[];function mj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&fo.push(t),()=>{let v=fo.indexOf(t);v>=0&&fo.splice(v,1)}),[i,t]);let c=()=>{fo[fo.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};eV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Uu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||lV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function gj(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&D2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,yj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let cf=0,dg;function vj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return cf++,cf===1&&(Rc()?dg=$j():dg=bj()),()=>{cf--,cf===0&&dg()}},[t])}function bj(){return os(Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"))}function $j(){let e,t,n=d=>{e=Gh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qs(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;G$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;G$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{H$(f)}):cg.addEventListener("resize",()=>H$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=os(Tl(window,"scroll",d),Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=os(Tl(document,"touchstart",n,{passive:!1,capture:!0}),Tl(document,"touchmove",r,{passive:!1,capture:!0}),Tl(document,"touchend",i,{passive:!1,capture:!0}),Tl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function Qs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Tl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function H$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Gh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function G$(e){return e instanceof HTMLInputElement&&!yj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Al=new WeakMap,Yr=[];function E2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Al.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Al.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Al.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Al.delete(c)):Al.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function xj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=mj({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=fj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return vj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return E2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const wj=b.createContext({});function Dj(){var e;return(e=b.useContext(wj))!==null&&e!==void 0?e:{}}const C2=b.createContext(null);function Ej(e){let t=nb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Dj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(iV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(C2.Provider,{value:a},b.createElement(HL,null,c)),oa.createPortal(c,n)}function Cj(){let e=b.useContext(C2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const np=new WeakMap;function Sj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function S2(e,t){let n=np.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Sj(t)}`}function Hy(e){return Tf()?e.altKey:e.ctrlKey}function Zs(e){return Eo()?e.metaKey:e.ctrlKey}const Tj=1e3;function Aj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=Pj(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Tj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function Pj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Hh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Hy(O)){var $e;oa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Hy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Zs(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});aa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Jf()==="keyboard"&&Yf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&us(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Jf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(DC(g.current,F),O!=="virtual"&&Yf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&us(r.current),T.current=t.focusedKey,E.current=!1}),aa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Aj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function _j(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Hh(),m=_=>{if(_.pointerType==="keyboard"&&Hy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Zs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&us(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||Y$())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!q$())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||Y$()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&q$()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Fc(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=BC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{as.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function q$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Y$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Z${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class A2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Z$(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Z$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Rj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=bS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new A2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=T2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Oj(e,t,n){let r=Ao(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Rj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Uu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);np.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=ep({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function P2(e){return null}P2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Mj(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function Mj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let Fj=P2;class kj{build(t,n){return this.context=n,J$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:Bj(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function J$(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Bj(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function Ij(e,t,n){let r=b.useMemo(()=>new kj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function rp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Lj(e){return Vj(e)}function Vj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...X$(e,t),t],i=[...X$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function X$(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Q$=new WeakMap;function _2(e){let t=Q$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(rp(o,e)):n++};return r(e),Q$.set(e,n),n}function Nj(e,t,n){var r,i;let{key:o}=e,a=np.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Eu(),P=Eu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Eo()&&ib()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=_2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=_j({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?os(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=QL({isDisabled:c||!v,onHoverStart(){n$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Ao(T==null?void 0:T.props);delete W.id;let j=OL(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:S2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&n$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var R2={};R2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var O2={};O2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var M2={};M2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var F2={};F2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var k2={};k2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var B2={};B2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I2={};I2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var L2={};L2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var V2={};V2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N2={};N2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var j2={};j2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var K2={};K2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var z2={};z2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W2={};W2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var H2={};H2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var G2={};G2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q2={};q2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Y2={};Y2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z2={};Z2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var J2={};J2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var X2={};X2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Q2={};Q2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eT={};eT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var tT={};tT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var nT={};nT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rT={};rT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var iT={};iT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oT={};oT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var aT={};aT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sT={};sT={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var uT={};uT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lT={};lT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var cT={};cT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var dT={};dT={"ar-AE":R2,"bg-BG":O2,"cs-CZ":M2,"da-DK":F2,"de-DE":k2,"el-GR":B2,"en-US":I2,"es-ES":L2,"et-EE":V2,"fi-FI":N2,"fr-FR":j2,"he-IL":K2,"hr-HR":U2,"hu-HU":z2,"it-IT":W2,"ja-JP":H2,"ko-KR":G2,"lt-LT":q2,"lv-LV":Y2,"nb-NO":Z2,"nl-NL":J2,"pl-PL":X2,"pt-BR":Q2,"pt-PT":eT,"ro-RO":tT,"ru-RU":nT,"sk-SK":rT,"sl-SI":iT,"sr-SP":oT,"sv-SE":aT,"tr-TR":sT,"uk-UA":uT,"zh-CN":lT,"zh-TW":cT};function jj(e){return e&&e.__esModule?e.default:e}function Kj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=gj({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Xi(jj(dT),"@react-aria/menu"),{longPressProps:h}=BC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Uj(e){return e&&e.__esModule?e.default:e}function zj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Xi(Uj(x2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Kj({type:"listbox",isDisabled:f||d},t,n);np.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new A2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=T2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Hh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=tj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:os(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Au]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Cu({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Cu({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Tf()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...rp(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});hu(dt)}ie.current=re,Ee.current=fe});let $e=_2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Tf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});hu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Tf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});hu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return E2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?S2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var fT={};fT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var hT={};hT={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var pT={};pT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var mT={};mT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var gT={};gT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yT={};yT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var vT={};vT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var bT={};bT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $T={};$T={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var xT={};xT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var wT={};wT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var DT={};DT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ET={};ET={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var CT={};CT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ST={};ST={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var TT={};TT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var AT={};AT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var PT={};PT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var _T={};_T={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var RT={};RT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var MT={};MT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var FT={};FT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var kT={};kT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BT={};BT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IT={};IT={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var LT={};LT={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var VT={};VT={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NT={};NT={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var jT={};jT={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var KT={};KT={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var UT={};UT={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var zT={};zT={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var WT={};WT={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jc={};jc={"ar-AE":fT,"bg-BG":hT,"cs-CZ":pT,"da-DK":mT,"de-DE":gT,"el-GR":yT,"en-US":vT,"es-ES":bT,"et-EE":$T,"fi-FI":xT,"fr-FR":wT,"he-IL":DT,"hr-HR":ET,"hu-HU":CT,"it-IT":ST,"ja-JP":TT,"ko-KR":AT,"lt-LT":PT,"lv-LV":_T,"nb-NO":RT,"nl-NL":OT,"pl-PL":MT,"pt-BR":FT,"pt-PT":kT,"ro-RO":BT,"ru-RU":IT,"sk-SK":LT,"sl-SI":VT,"sr-SP":NT,"sv-SE":jT,"tr-TR":KT,"uk-UA":UT,"zh-CN":zT,"zh-TW":WT};function Eb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Yh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Fc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Wj(e){return e&&e.__esModule?e.default:e}const HT=new WeakMap,Ql="__role_"+Date.now(),GT="__focusManager_"+Date.now();function qT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=tp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=Uu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Xi(Wj(jc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Oc(C),y=e[Ql]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[GT],P=b.useMemo(()=>D||Yh(n),[D,n]),E=Eb(t,n,e[Ql]==="presentation");HT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[Ql]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),ob(e.inputRef,t.value,t.setValue),o5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Ao(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Hj(e,t,n){var r;let i=qT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Gj(e){return e&&e.__esModule?e.default:e}function qj(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Xi(Gj(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Eb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Oc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Ao(e),T=b.useMemo(()=>Yh(n),[n]),{focusWithinProps:k}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[Ql]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Au]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Yj(e){return e&&e.__esModule?e.default:e}function Zj(){let{locale:e}=Qn(),t=KC(Yj(jc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Jj(e,t)}},[e,t])}class Jj{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function Xj(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=Zj(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=HT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Vi({month:"long",timeZone:h.timeZone}),g=Vi({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=rj({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new vS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Eo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=$S({sensitivity:"base"}),D=Vi({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Vi({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=Qj(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Yf(n.current,{containingElement:Gh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);aa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");aa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),aa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Rc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Cu({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function Qj(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function eK(e){return e&&e.__esModule?e.default:e}function tK(e,t,n){var r,i,o;let a=Xi(eK(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Oc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Eb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Yh(n,{accept:_=>_.id!==E}),[n,E]),O={[GT]:U,[Ql]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Ao(e),{focusWithinProps:G}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(Na),W=b.useRef(Na);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(ah(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(ah(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function nK(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){us(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),us(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Cj(),{dialogProps:{...Ao(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var Kc=e=>e.type==="checkbox",za=e=>e instanceof Date,sr=e=>e==null;const YT=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&YT(e)&&!za(e),ZT=e=>fn(e)&&e.target?Kc(e.target)?e.target.checked:e.target.value:e,rK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,JT=(e,t)=>e.has(rK(t)),iK=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},Cb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!iK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var ip=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=ip(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",Sb=e=>/^\w*$/.test(e),XT=e=>ip(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=Sb(t)?[t]:XT(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const uh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ho={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},QT=b.createContext(null),op=()=>b.useContext(QT),oK=e=>{const{children:t,...n}=e;return b.createElement(QT.Provider,{value:n},t)};var eA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,tA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},ec=e=>Array.isArray(e)?e:[e],nA=(e,t,n)=>!e||!t||e===t||ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function aK(e){const t=op(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,Tb({disabled:r,next:h=>c.current&&nA(f.current,h.name,o)&&tA(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>eA(a,n,d.current,!1),[a,n])}var ji=e=>typeof e=="string",rA=(e,t,n,r,i)=>ji(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function sK(e){const t=op(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e,u=b.useRef(r);u.current=r,Tb({disabled:o,subject:n._subjects.values,next:f=>{nA(u.current,f.name,a)&&d(br(rA(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function uK(e){const t=op(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=JT(i._names.array,n),u=sK({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=aK({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:ZT(m),name:n},type:uh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:uh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var iA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ex=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),tx=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(tc(u,t))break}else if(fn(u)&&tc(u,t))break}}};var lK=(e,t,n)=>{const r=ec(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},Ab=e=>e.type==="file",Ii=e=>typeof e=="function",lh=e=>{if(!Cb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Of=e=>ji(e),Pb=e=>e.type==="radio",ch=e=>e instanceof RegExp;const nx={value:!1,isValid:!1},rx={value:!0,isValid:!0};var oA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?rx:{value:e[0].value,isValid:!0}:rx:nx}return nx};const ix={isValid:!1,value:null};var aA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ix):ix;function ox(e,t,n="validate"){if(Of(e)||Array.isArray(e)&&e.every(Of)||ti(e)&&!e)return{type:n,message:Of(e)?e:"",ref:t}}var Gs=e=>fn(e)&&!ch(e)?e:{value:e,message:""},ax=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=Pb(a),k=Kc(a),S=T||k,U=(C||Ab(a))&&dn(a.value)&&dn(y)||lh(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=iA.bind(null,$,r,E),F=(G,K,W,j=ho.maxLength,L=ho.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!oA(u).isValid||T&&!aA(u).isValid)){const{value:G,message:K}=Of(c)?{value:!!c,message:c}:Gs(c);if(G&&(E[$]={type:ho.required,message:K,ref:D,...O(ho.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=Gs(m),j=Gs(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";ji(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),ji(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,ho.max,ho.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(ji(y)||o&&Array.isArray(y))){const G=Gs(d),K=Gs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&ji(y)){const{value:G,message:K}=Gs(g);if(ch(G)&&!y.match(G)&&(E[$]={type:ho.pattern,message:K,ref:a,...O(ho.pattern,K)},!r))return P(K),E}if(v){if(Ii(v)){const G=await v(y,n),K=ox(G,D);if(K&&(E[$]={...K,...O(ho.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=ox(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function cK(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function dK(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:Sb(t)?[t]:XT(t),r=n.length===1?e:cK(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&dK(r))&&$n(e,n.slice(0,-1)),e}var pg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Gy=e=>sr(e)||!YT(e);function Qo(e,t){if(Gy(e)||Gy(t))return e===t;if(za(e)&&za(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(za(o)&&za(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!Qo(o,a):o!==a)return!1}}return!0}var sA=e=>e.type==="select-multiple",fK=e=>Pb(e)||Kc(e),mg=e=>lh(e)&&e.isConnected,uA=e=>{for(const t in e)if(Ii(e[t]))return!0;return!1};function dh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!uA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},dh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function lA(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!uA(e[i])?dn(t)||Gy(n[i])?n[i]=Array.isArray(e[i])?dh(e[i],[]):{...dh(e[i])}:lA(e[i],sr(t)?{}:t[i],n[i]):n[i]=!Qo(e[i],t[i]);return n}var Pl=(e,t)=>lA(e,t,dh(t)),cA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&ji(e)?new Date(e):r?r(e):e;function gg(e){const t=e.ref;return Ab(t)?t.files:Pb(t)?aA(e.refs).value:sA(t)?[...t.selectedOptions].map(({value:n})=>n):Kc(t)?oA(e.refs).value:cA(dn(t.value)?e.ref.value:t.value,e)}var hK=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},_l=e=>dn(e)?e:ch(e)?e.source:fn(e)?ch(e.value)?e.value.source:e.value:e;const sx="AsyncFunction";var pK=e=>!!e&&!!e.validate&&!!(Ii(e.validate)&&e.validate.constructor.name===sx||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===sx)),mK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ux(e,t,n){const r=Ae(e,n);if(r||Sb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var gK=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,yK=(e,t)=>!ip(Ae(e,t)).length&&$n(e,t);const vK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function bK(e={}){let t={...vK,...e},n={submitCount:0,isDirty:!1,isLoading:Ii(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pg(),array:pg(),state:pg()},m=ex(t.mode),g=ex(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),yK(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=Pl(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:gg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||Qo(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!Qo(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,hK(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&pK(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?lK(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!mg(te)):!mg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!Qo(z(),i)),K=(q,Z,te)=>rA(q,u,{...a.mount?o:dn(Z)?i:ji(q)?{[q]:Z}:Z},te,Z),W=q=>ip(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,cA(Z,De)),Ce=lh(De.ref)&&sr(Z)?"":Z,sA(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?Kc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):Ab(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!za(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Pl(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),tx(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?gg(Ce._f):ZT(q),_e=Ve=>{pe=Number.isNaN(Ve)||za(Ve)&&isNaN(Ve.getTime())||Qo(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===uh.BLUR||q.type===uh.FOCUS_OUT,Pn=!mK(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||gK(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=tx(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=ux(n.errors,r,te),Vn=ux(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=ec(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!ji(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&tc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:ji(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&ec(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Ii(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?ec(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,gg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:_l(Z.min),max:_l(Z.max),minLength:_l(Z.minLength),maxLength:_l(Z.maxLength),pattern:_l(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=fK(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(mg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(JT(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&tc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),tc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Pl(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(Cb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(lh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!Qo(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Pl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Pl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Ii(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Ii(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Ii(Ce.select)&&Ce.select())}},getFieldState:re}}function $K(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Ii(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ii(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...bK(e),formState:r});const o=t.current.control;return o._options=e,Tb({subject:o._subjects.state,next:a=>{tA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!Qo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eA(r,o),t.current}function mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function Wa(e,t,n,r,i){let o=e;return t.years?o=AV(e):t.months?o=Ic(e):t.weeks&&(o=dc(e,n)),mc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function mc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=hb(t,Wa(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=fb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function qo(e,t,n){if(t){let r=hb(e,cr(t));r&&(e=r)}if(n){let r=fb(e,cr(n));r&&(e=r)}return e}function dA(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function fA(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?qo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>qo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Jh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Wa(D,o,r,a,u);case"end":return Yy(D,o,r,a,u);case"center":default:return qy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(qy(V,o,r,a,u)),P(V),F(h.identifier)}mu(D,a,u)?P(qo(D,a,u)):D.compare(E)<0?T(Yy(D,o,r,a,u)):D.compare(U)>0&&T(Wa(D,o,r,a,u));function G(V){V=qo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=qo(z,a,u),z=dA(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:mu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(qo(D.add(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(qo(D.subtract(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(dc(D,r)):(o.months||o.years)&&G(Ic(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(RV(D,r)):(o.months||o.years)&&G(My(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return mu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=dc(re,r);let fe=db(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function xK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>hb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>fb(c,C==null?void 0:C.end),[c,C]),P=fA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=cx(_,P,-1),Y=cx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Oy(P.visibleRange.start,T.start)||!Oy(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=qo(_,y,D),Y=dA(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=vg(m,Y);V&&h({start:lx(V.start,f==null?void 0:f.start),end:lx(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:mu(f.start,u,c)||mu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||mu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function lx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function cx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function wK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function DK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>dx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>dx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!wK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function dx(e,t){return e?e==="all"?"all":new mi(e):t}class EK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Lj(rp(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function CK(e){let{filter:t,layoutDelegate:n}=e,r=DK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=Ij(e,o,a),c=b.useMemo(()=>new EK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function SK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=CK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function TK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=SK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:AK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Nc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function AK(e,t,n){return new Zy(hA(e,e,t,n))}function hA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=hA(e,rp(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var pA={};pA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mA={};mA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gA={};gA={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yA={};yA={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var vA={};vA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var bA={};bA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $A={};$A={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var xA={};xA={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var wA={};wA={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var DA={};DA={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var EA={};EA={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var CA={};CA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var SA={};SA={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var TA={};TA={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var AA={};AA={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var PA={};PA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var _A={};_A={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var RA={};RA={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var OA={};OA={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var MA={};MA={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var FA={};FA={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var kA={};kA={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var BA={};BA={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var IA={};IA={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var LA={};LA={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var VA={};VA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var NA={};NA={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var jA={};jA={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var KA={};KA={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var UA={};UA={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var zA={};zA={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var WA={};WA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var HA={};HA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var GA={};GA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var qA={};qA={"ar-AE":pA,"bg-BG":mA,"cs-CZ":gA,"da-DK":yA,"de-DE":vA,"el-GR":bA,"en-US":$A,"es-ES":xA,"et-EE":wA,"fi-FI":DA,"fr-FR":EA,"he-IL":CA,"hr-HR":SA,"hu-HU":TA,"it-IT":AA,"ja-JP":PA,"ko-KR":_A,"lt-LT":RA,"lv-LV":OA,"nb-NO":MA,"nl-NL":FA,"pl-PL":kA,"pt-BR":BA,"pt-PT":IA,"ro-RO":LA,"ru-RU":VA,"sk-SK":NA,"sl-SI":jA,"sr-SP":KA,"sv-SE":UA,"tr-TR":zA,"uk-UA":WA,"zh-CN":HA,"zh-TW":GA};function PK(e){return e&&e.__esModule?e.default:e}const YA=new ga(PK(qA));function ZA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function fh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=ZA(),h=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA,m=new jC(f,h),g=new ii(f,$o({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function _K(e,t,n,r,i){var o;let a=fh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=fh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=ah(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA;d=ah(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",ZA())],validationDetails:{...Qh,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const RK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},OK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $o(e,t){e={...t.shouldForceLeadingZeros?OK:RK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function eu(e){return e&&"hour"in e?e:new Lc}function JA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Rl(e,t,n,r){if(e)return JA(e,n);let i=Qt(WC(r??Bc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Rb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function MK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Rb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>fh(n,x,y,D,C),[n,x,y,D,C]),E=Nc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||eu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||eu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=$o(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=$o({},K);return new ii(F,W)}}}const FK=new ga({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function kK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?FK.getStringForLocale(e,n):"––"}const df={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},fx={year:5,month:2,day:7,hour:2,minute:15,second:15},BK={dayperiod:"dayPeriod"};function XA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=JA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>Rl(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>$o({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>df[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):Rl(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Rl(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(Rl(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=df[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=df[ne.type]&&!K[ne.type],he=df[ne.type]?kK(ne.type,ne.value,t):null;return{type:BK[ne.type]||ne.type,text:xe?he:ne.value,...IK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(LK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>fh(x,u,c,d,S),[x,u,c,d,S]),fe=Nc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,fx[ne]||1)},decrementPage(ne){re(ne,-(fx[ne]||1))},setSegment(ne,ye){z(ne),M(VK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Rl(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=$o(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=$o({},xe);return new ii(ne,he)}}}function IK(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:PV(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:_V(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function LK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function VK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function NK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Ma(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Ma(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Ma(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}):x(L):Ma(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Ma(C)&&Ma(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>_K(c,U,O,F,S),[c,U,O,F,S]),K=Nc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Ma(C)&&g&&P(C,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=$o(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=$o(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=$o({},M);return new ii(L,Y)}}}function Ma(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function jK(e){let{placeholderValue:t=new Lc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?JC(Ol(t),D||h):Ol(t)},[t,d,h]),g=b.useMemo(()=>Ol(n,f),[n,f]),v=b.useMemo(()=>Ol(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?g$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ol(u),[u]);return{...XA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&g$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ol(e,t=Jh(Bc())){return e?"day"in e?e:Di(t,e):null}var Mf={exports:{}},KK=Mf.exports,hx;function UK(){return hx||(hx=1,function(e,t){(function(n,r){e.exports=r()})(KK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Mf)),Mf.exports}var zK=UK();const WK=To(zK);var hs=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],HK="react-international-phone-",QA=(...e)=>e.filter(t=>!!t).join(" ").trim(),GK=(...e)=>QA(...e).split(" ").map(t=>`${HK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>QA(GK(...e),...t),qK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Js=e=>e?/^\d+$/.test(e):!1,ap=e=>e.replace(/\D/g,""),YK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},ZK=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),JK=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=ap(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=qK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},XK=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Js(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Js(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Js(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Js(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Js(n[c])&&c<n.length;)c+=1;return c},Ff=({phone:e,prefix:t})=>e?`${t}${ap(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?sU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=JK(m,{prefix:o,mask:oU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:eP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Ff({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var QK=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},eU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=QK(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Ff({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Js(x)&&y!==i)return{inputValue:r,phone:Ff({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ff({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=XK({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},tU=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},nU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},rU={size:20,overrideLastItemDebounceMS:-1};function iU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...rU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=nU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&tU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var eP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:hs,preferredCountries:[]},tP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=iU(()=>{let W=tu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||tu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>tu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(ZK()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=eU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=tu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},oU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${eP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(ap(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},aU=e=>`Field "${e}" is not supported`,tu=({field:e,value:t,countries:n=hs})=>{if(["priority"].includes(e))throw new Error(aU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},sU=({phone:e,countries:t=hs,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ap(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=tu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},uU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},lU="abcdefghijklmnopqrstuvwxyz",cU="1f1e6",px=lU.split("").reduce((e,t,n)=>({...e,[t]:uU(cU,n)}),{}),dU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=dU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},fU=1e3,hU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=hs,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>fU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(YK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},pU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=hs,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return tu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(hU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},mU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=hs,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=tP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(pU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(mU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ra=="object"&&ra&&ra.Object===Object&&ra,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=eo(Rn),Vt=eo(er),Cn=eo(On),Ne=eo(tr),tt=eo(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function va(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=va;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Ro(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Oo(N){return Ke(this,N).delete(N)}function Mo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Ro,hr.prototype.delete=Oo,hr.prototype.get=Mo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function Fo(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function tl(N){return this.__data__.has(N)}function bs(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=Fo,pr.prototype.get=Lr,pr.prototype.has=tl,pr.prototype.set=bs;function nl(N,ae){var ve=al(N)||Rp(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function ko(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&ol(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(ol(N[ve][0],ae))return ve;return-1}function ba(N,ae){return N&&be(ae,ul(ae),N)}function $a(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!Ts(N))return N;var pn=al(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(sl(N))return Ds(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,ba(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,$a,ae)}}Nr||(Nr=new pr);var ll=Nr.get(N);if(ll)return ll;if(Nr.set(N,zn),!pn)var As=ve?it(N):ul(N);return ye(As||N,function(Wn,Ea){As&&(Ea=Wn,Wn=N[Ea]),ko(zn,Ea,$a(Wn,ae,ve,Ie,Ea,N,Nr))}),zn}function $s(N){return Ts(N)?Yt(N):{}}function xs(N,ae,ve){var Ie=ae(N);return al(N)?Ie:xe(Ie,ve(N))}function rl(N){return Ve.call(N)}function ws(N){if(!Ts(N)||wa(N))return!1;var ae=ld(N)||et(N)?mt:M;return ae.test(eo(N))}function xa(N){if(!Da(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Ds(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function Qi(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function il(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Es(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Bo(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Cs(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;ko(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return xs(N,ul,Ot)}function Ke(N,ae){var ve=N.__data__;return Ss(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return ws(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=rl;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?eo(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Da(N)?$s(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return Qi(N);case u:case c:return new yn(+N);case T:return il(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Es(N,Ie,ve);case g:case y:return new yn(N);case C:return Bo(N);case x:return Cs(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ss(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function wa(N){return!!Ce&&Ce in N}function Da(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function eo(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function _p(N){return $a(N,!0,!0)}function ol(N,ae){return N===ae||N!==N&&ae!==ae}function Rp(N){return Op(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var al=Array.isArray;function ud(N){return N!=null&&Mp(N.length)&&!ld(N)}function Op(N){return Fp(N)&&ud(N)}var sl=Vn||Mt;function ld(N){var ae=Ts(N)?Ve.call(N):"";return ae==f||ae==h}function Mp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function Ts(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function Fp(N){return!!N&&typeof N=="object"}function ul(N){return ud(N)?nl(N):xa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=_p})(Xy,Xy.exports);var ia=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function gU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function yU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function hh(e,t,n,r,i){return gU(this,void 0,void 0,function(){var o,a;return yU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},vU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=ia(n);hh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=ia(t);hh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},bU=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new bU(e)}function $U(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let xU=class{constructor(){this._qualifierModel={}}toJson(){return $U.apply(this)}},rt=class extends xU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function wU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function DU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let EU=class{constructor(){this._actionModel={}}toJson(){return DU.apply(this)}},Ei=class extends EU{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),wU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class sp extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new sp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function CU(){return new sp}function nP(){return new Fb("faces")}function SU(){return new Fb("ocr_text")}class TU extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(nP()),r&&r.regionType==="ocr_text"&&i.region(SU()),r&&r.regionType==="custom"&&i.region(sp.fromJson(r)),i}}function ps(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const rP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},AU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},iP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},oP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},PU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aP={444:"CHROMA_444",420:"CHROMA_420"},_U={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},RU=ps(aP);ps(_U);const OU=ps(rP),MU=ps(AU),sP=ps(iP);ps(oP);ps(PU);class uP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=sP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=iP[n]||n;return new this(o,r||i)}}class FU extends uP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=sP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function up(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class kU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class BU extends FU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class IU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class LU extends BU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(up(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class VU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(nP()),n&&n.regionType==="custom"&&i.region(CU()),i}}function NU(e){return new TU(e)}function jU(){return new uP("grayscale")}function mx(e){return new LU("colorize",e)}function KU(){return new kU}function UU(){return new IU}function zU(e){return new VU(e)}let WU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(up(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function HU(e){const t=e;return"error"in t&&!!t.error}function GU(){return new ai("ignore_aspect_ratio")}function qU(){return new ai("lossy")}function YU(){return new ai("preserve_transparency")}function ZU(e){return new ai("progressive",e)}function JU(){return new ai("region_relative")}function XU(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},lP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=MU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},QU=class extends ai{constructor(t){super("progressive",t)}},tv=class extends lP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(qU()),this}progressive(t){return t instanceof QU?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(ZU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(YU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},lp=class cP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof cP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new WU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(HU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class ez extends en{}class tz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=OU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof ez)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(XU())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(JU())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=rP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?GU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class dP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class fP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class hP extends Bb{constructor(t){super(t)}}function nz(e){return new hP(e)}function pP(...e){const t=[...e];return new fP(t)}function mP(){return new dP}class Pu extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function rz(){return new Pu("ocr_text")}function iz(e){return e&&`${e}`.split(":")[0]==="auto"}function oz(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function az(e){return{compass:Ib(e),gravityType:"direction"}}function sz(e){return Ib(e)==="ocr_text"}function uz(){return{gravityType:"ocr"}}function lz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function cz(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function gP(e){let t;const n=e==="auto"?new dP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(cz)}}function dz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=mP().autoFocus(...o);i.fallbackGravity=gP(a)}return i}function fz(e){const n=e.split(":").map(r=>new Pu(r));return new fP(n)}function hz(e){return oz(e)?az(e):sz(e)?uz():iz(e)||lz(e)?gP(e):dz(typeof e=="string"?fz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Pu?t:new Pu(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class yP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function pz(e){return e.gravityType==="direction"}function mz(e){return e.gravityType==="ocr"}function gz(e){return e.gravityType==="auto"}function yz(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new Pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function vP(e){const n=(e.autoFocus||[]).map(yz);return mP().autoFocus(...n)}function vz(e){const t=(e.focusOnObjects||[]).map(r=>new Pu(r)),n=pP(...t);if(e.fallbackGravity){const r=vP(e.fallbackGravity);n.fallbackGravity(r)}return n}function bz(e){return pz(e)?new hP(new yP(e.compass)):mz(e)?pP(rz()):gz(e)?vP(e):vz(e)}class Vb extends tz{gravity(t){this._actionModel.gravity=hz(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(bz(t.gravity)),n}}class Uc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const bP=100,$z=0;class xz extends Uc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${bP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var $P=xz;class Nb extends Uc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>up(n)),this}}class xP extends Nb{toString(){return`
|
|
94
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function aL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const qf={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=b.createContext(qf),sL=b.createContext(!1);let uL=!!(typeof window<"u"&&window.document&&window.document.createElement),Hm=new WeakMap;function lL(e=!1){let t=b.useContext(yC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Hm.get(o);a==null?Hm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hm.delete(o))}n.current=++t.current}return n.current}function cL(e){let t=b.useContext(yC);t===qf&&!uL&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=lL(!!e),r=t===qf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function dL(e){let t=b.useId(),[n]=b.useState(nb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qf.prefix}`;return e||`${r}-${t}`}const fL=typeof b.useId=="function"?dL:cL;function hL(){return!1}function pL(){return!0}function mL(e){return()=>{}}function nb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(mL,hL,pL):b.useContext(sL)}let gL=!!(typeof window<"u"&&window.document&&window.document.createElement),Jo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=fL(t),o=b.useCallback(a=>{r.current=a},[]);return gL&&(Jo.has(i)&&!Jo.get(i).includes(o)?Jo.set(i,[...Jo.get(i),o]):Jo.set(i,[o])),zt(()=>{let a=i;return()=>{Jo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function yL(e,t){if(e===t)return e;let n=Jo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Jo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Mr(),[n,r]=aL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function os(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},da=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=os(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=vL(o,a):i==="id"&&o&&a?t.id=yL(o,a):t[i]=a!==void 0?a:o}}return t}const bL=new Set(["id"]),$L=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),wL=/^(data-.*)$/;function Ao(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(bL.has(a)||n&&$L.has(a)||r&&xL.has(a)||i!=null&&i.has(a)||wL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(DL())e.focus({preventScroll:!0});else{let t=EL(e);e.focus(),CL(t)}}let ef=null;function DL(){if(ef==null){ef=!1;try{document.createElement("div").focus({get preventScroll(){return ef=!0,!0}})}catch{}}return ef}function EL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function CL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Wh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Po(e){let t=null;return()=>(t==null&&(t=e()),t)}const Eo=Po(function(){return rb(/^Mac/i)}),SL=Po(function(){return rb(/^iPhone/i)}),bC=Po(function(){return rb(/^iPad/i)||Eo()&&navigator.maxTouchPoints>1}),Rc=Po(function(){return SL()||bC()}),Tf=Po(function(){return Eo()||Rc()}),ib=Po(function(){return Wh(/AppleWebKit/i)&&!TL()}),TL=Po(function(){return Wh(/Chrome/i)}),$C=Po(function(){return Wh(/Android/i)}),AL=Po(function(){return Wh(/Firefox/i)}),PL=b.createContext({isNative:!0,open:RL,useHref:e=>e});function Hh(){return b.useContext(PL)}function as(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;AL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Eo()?o=!0:a=!0);let d=ib()&&Eo()&&!bC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});as.isOpening=n,vi(e),e.dispatchEvent(d),as.isOpening=!1}as.isOpening=!1;function _L(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function RL(e,t){_L(e,n=>as(n,t))}function OL(e){let t=Hh();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Ys=new Map,wy=new Set;function G3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);i||(i=new Set,Ys.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ys.delete(r.target)),Ys.size===0)){for(let o of wy)o();wy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?G3():document.addEventListener("DOMContentLoaded",G3));function xC(e){requestAnimationFrame(()=>{Ys.size===0?e():wy.add(e)})}function Ku(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Cu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function q3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function ML(){return typeof window.ResizeObserver<"u"}function Y3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ML()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function wC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function cc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Gh(e,t){let n=e;for(cc(n,t)&&(n=n.parentElement);n&&!cc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function FL(e,t){const n=[];for(;e&&e!==document.documentElement;)cc(e,t)&&n.push(e),e=e.parentElement;return n}let kL=0;const Gm=new Map;function Oc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=Gm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${kL++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Gm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function aa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function DC(e,t){let n=Z3(e,t,"left"),r=Z3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function Z3(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Yf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=FL(e);for(let d of c)DC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Dy(e){return e.mozInputSource===0&&e.isTrusted?!0:$C()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function BL(e){return!$C()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ob(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Su(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function tf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Cl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=tf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(tf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(tf((n-t)/r,r))*r),o=tf(o,r),o}let Xs="default",Ey="",Af=new WeakMap;function Cy(e){if(Rc()){if(Xs==="default"){const t=Lt(e);Ey=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Af.set(e,e.style.userSelect),e.style.userSelect="none")}function jl(e){if(Rc()){if(Xs!=="disabled")return;Xs="restoring",setTimeout(()=>{xC(()=>{if(Xs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ey||""),Ey="",Xs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Af.has(e)){let t=Af.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Af.delete(e)}}const ab=b.createContext({register:()=>{}});ab.displayName="PressResponderContext";function IL(e,t){return t.get?t.get.call(e):t.value}function CC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function LL(e,t){var n=CC(e,t,"get");return IL(e,n)}function VL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mc(e,t,n){VL(e,t),t.set(e,n)}function NL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J3(e,t,n){var r=CC(e,t,"set");return NL(e,r,n),n}function jL(e){let t=b.useContext(ab);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return wC(t,e.ref),e}var nf=new WeakMap;class rf{continuePropagation(){J3(this,nf,!1)}get shouldStopPropagation(){return LL(this,nf)}constructor(t,n,r,i){Mc(this,nf,{writable:!0,value:void 0}),J3(this,nf,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const X3=Symbol("linkClicked");function Fc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=jL(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Ku(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new rf("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new rf("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new rf("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new rf("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(co(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||jl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(qm(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;e$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{qm(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(co(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",os(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Eo()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!as.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Dy(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&qm(F,S.target)){var K;e$(F.target,F.key)&&F.preventDefault();let j=F.target;D(co(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&sb(S.target)&&S.target.contains(j)&&!F[X3]&&(F[X3]=!0,as(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(BL(j.nativeEvent)){S.pointerType="virtual";return}Ym(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Cy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Ym(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&zs(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&zs(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(co(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(co(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(zs(j,S.target)&&S.pointerType!=null?D(co(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(co(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||jl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{SC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Ym(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Dy(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&zs(K,S.target)&&S.pointerType!=null?D(co(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(co(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=KL(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Cy(S.target),y(Ho(S.target,K),S.pointerType)&&K.stopPropagation(),C(da(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Ho(S.target,K),S.pointerType,!1),T(Ho(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)&&S.pointerType!=null?(P(Ho(S.target,K),S.pointerType),j=D(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Ho(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&jl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Ho(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||jl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function sb(e){return e.tagName==="A"&&e.hasAttribute("href")}function qm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof da(i).HTMLInputElement&&!TC(i,n)||i instanceof da(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&sb(i))&&n!=="Enter")}function KL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Q3(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Ho(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function co(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function UL(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function zL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function zs(e,t){let n=t.getBoundingClientRect(),r=UL(e);return zL(n,r)}function Ym(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function SC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!sb(e)}function e$(e,t){return e instanceof HTMLInputElement?!TC(e,t):SC(e)}const WL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":WL.has(e.type)}function HL({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ab.Provider,{value:t},e)}class GL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function AC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new GL("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function qL(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=AC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let fs=null,YL=new Set,Jl=new Map,ss=!1,Sy=!1;function qh(e,t){for(let n of YL)n(e,t)}function ZL(e){return!(e.metaKey||!Eo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zf(e){ss=!0,ZL(e)&&(fs="keyboard",qh("keyboard",e))}function ni(e){fs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ss=!0,qh("pointer",e))}function PC(e){Dy(e)&&(ss=!0,fs="virtual")}function _C(e){e.target===window||e.target===document||(!ss&&!Sy&&(fs="virtual",qh("virtual",e)),ss=!1,Sy=!1)}function RC(){ss=!1,Sy=!0}function t$(e){if(typeof window>"u"||Jl.get(da(e)))return;const t=da(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ss=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zf,!0),n.addEventListener("keyup",Zf,!0),n.addEventListener("click",PC,!0),t.addEventListener("focus",_C,!0),t.addEventListener("blur",RC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{OC(e)},{once:!0}),Jl.set(t,{focus:r})}const OC=(e,t)=>{const n=da(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),Jl.has(n)&&(n.HTMLElement.prototype.focus=Jl.get(n).focus,r.removeEventListener("keydown",Zf,!0),r.removeEventListener("keyup",Zf,!0),r.removeEventListener("click",PC,!0),n.removeEventListener("focus",_C,!0),n.removeEventListener("blur",RC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Jl.delete(n))};function JL(e){const t=Lt(e);let n;return t.readyState!=="loading"?t$(e):(n=()=>{t$(e)},t.addEventListener("DOMContentLoaded",n)),()=>OC(e,n)}typeof document<"u"&&JL();function n$(){return fs!=="pointer"}function Jf(){return fs}function MC(e){fs=e,qh(e,null)}function Uu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=AC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let Xf=!1,Zm=0;function Ty(){Xf=!0,setTimeout(()=>{Xf=!1},50)}function r$(e){e.pointerType==="touch"&&Ty()}function XL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r$):document.addEventListener("touchend",Ty),Zm++,()=>{Zm--,!(Zm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r$):document.removeEventListener("touchend",Ty))}}function QL(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(XL,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Xf&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!Xf&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function eV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&of(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&of(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function of(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function FC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i$(e.onKeyDown),onKeyUp:i$(e.onKeyUp)}}}function kC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Ku(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{jl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Cy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const tV=500;function BC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=tV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:f}=Fc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Oc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function us(e){const t=Lt(e);if(Jf()==="virtual"){let n=t.activeElement;xC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function nV(e){const t=da(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function rV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function IC(e,t){return e.nodeName!=="#comment"&&nV(e)&&rV(e,t)&&(!e.parentElement||IC(e.parentElement,e))}const o$=b.createContext(null),Ay="react-aria-focus-scope-restore";let Nt=null;function iV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(o$)||{},d=b.useMemo(()=>new _y({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!Qf(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Ay,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Ay,$)}},[t]),dV(u,r,n),uV(u,n),fV(u,r,n),cV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||Qf(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>oV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(o$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function oV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const ub=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],aV=ub.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ub.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const sV=ub.join(':not([hidden]):not([tabindex="-1"]),');function Ka(e){return e[0].parentElement}function Kl(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Kl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Ka(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||Qf(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Kl(e)&&!ta(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Py(Nt.current):Kl(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Kl(e)&&!ta(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&Py(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LC(e){return ta(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ta(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function lV(e){return ta(e,Nt)}function Qf(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{us(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function VC(e,t=!0){let n=e[0].previousElementSibling,r=Ka(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ka(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Py(e,t=!0){xr(VC(e,t))}function cV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Py(e.current)}n.current=!1},[e])}function dV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:LC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function a$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function fV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||Qf(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kl(e)||a.isComposing)return;let u=i.activeElement;if(!ta(u,e)||!a$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!ta(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(ta(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):LC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&ta(i.activeElement,e)||i.activeElement===i.body&&a$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){s$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=VC(f.scopeRef.current,!0);s$(h);return}f=f.parent}}})}}}},[e,t])}function s$(e){e.dispatchEvent(new CustomEvent(Ay,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?sV:aV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&IC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Yh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Jm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Jm(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=Jm(a);return u&&xr(u,!0),u??null}}}function Jm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class lb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new lb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new lb,hV=b.createContext(null);function pV(e){let t=b.useContext(hV)||{};wC(t,e);let{ref:n,...r}=t;return r}function cb(e,t){let{focusProps:n}=qL(e),{keyboardProps:r}=FC(e),i=xt(n,r),o=pV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&us(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const mV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yV(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return mV.has(n.script)}let t=e.split("-")[0];return gV.has(t)}const vV=Symbol.for("react-aria.i18n.locale");function NC(){let e=typeof window<"u"&&window[vV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yV(e)?"rtl":"ltr"}}let Ry=NC(),Ul=new Set;function u$(){Ry=NC();for(let e of Ul)e(Ry)}function bV(){let e=nb(),[t,n]=b.useState(Ry);return b.useEffect(()=>(Ul.size===0&&window.addEventListener("languagechange",u$),Ul.add(n),()=>{Ul.delete(n),Ul.size===0&&window.removeEventListener("languagechange",u$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const $V=b.createContext(null);function Qn(){let e=bV();return b.useContext($V)||e}const xV=Symbol.for("react-aria.i18n.locale"),wV=Symbol.for("react-aria.i18n.strings");let Ws;class ga{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=DV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[xV];if(Ws===void 0){let i=window[wV];if(!i)return null;Ws={};for(let o in i)Ws[o]=new ga({[n]:i[o]},n)}let r=Ws==null?void 0:Ws[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function DV(e,t,n="en-US"){if(t[e])return t[e];let r=EV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function EV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l$=new Map,c$=new Map;class jC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=l$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),l$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=c$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),c$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const d$=new WeakMap;function CV(e){let t=d$.get(e);return t||(t=new ga(e),d$.set(e,t)),t}function KC(e,t){return t&&ga.getGlobalDictionaryForPackage(t)||CV(e)}function Xi(e,t){let{locale:n}=Qn(),r=KC(e,t);return b.useMemo(()=>new jC(n,r),[n,r])}function cu(e,t){return e-t*Math.floor(e/t)}const UC=1721426;function Ua(e,t,n,r){t=kc(e,t);let i=t-1,o=-2;return n<=2?o=0:na(t)&&(o=-1),UC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function na(e){return e%4===0&&(e%100!==0||e%400===0)}function kc(e,t){return e==="BC"?1-t:t}function Zh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const SV={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 dr{fromJulianDay(t){let n=t,r=n-UC,i=Math.floor(r/146097),o=cu(r,146097),a=Math.floor(o/36524),u=cu(o,36524),c=Math.floor(u/1461),d=cu(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Zh(h),v=n-Ua(m,g,1,1),$=2;n<Ua(m,g,3,1)?$=0:na(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-Ua(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return Ua(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return SV[na(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return na(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 TV={"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 xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Oy(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zC(e,t){return xn(e,Jh(t))}const AV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function db(e,t,n){let r=e.calendar.toJulianDay(e),i=n?AV[n]:FV(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function WC(e){return yo(Date.now(),e)}function Jh(e){return cr(WC(e))}function HC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GC(e,t){return f$(e)-f$(t)}function f$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Xm=null;function Bc(){return Xm==null&&(Xm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Xm}function Ic(e){return e.subtract({days:e.day-1})}function My(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function PV(e){return Ic(e.subtract({months:e.month-1}))}function _V(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function RV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function dc(e,t,n){let r=db(e,t,n);return e.subtract({days:r})}function OV(e,t,n){return dc(e,t,n).add({days:6})}const h$=new Map;function MV(e){if(Intl.Locale){let n=h$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&h$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function FV(e){let t=MV(e);return t&&TV[t]||0}function kV(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((db(Ic(e),t,n)+r)/7)}function fb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function hb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tu(e){e=Qt(e,new dr);let t=kc(e.era,e.year);return qC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function qC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Fy(e,t){if(t==="UTC")return 0;if(e>0&&t===Bc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=YC(e,t);return qC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const p$=new Map;function YC(e,t){let n=p$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),p$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const m$=864e5;function BV(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>IV(e,t,o))}function IV(e,t,n){let r=YC(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function go(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Tu(r);if(t===Bc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=kc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Tu(r),o=Fy(i-m$,t),a=Fy(i+m$,t),u=BV(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function ZC(e,t,n="compatible"){return new Date(go(e,t,n))}function yo(e,t){let n=Fy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new hc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new eh(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function g$(e){return new Lc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ls(r),r}function JC(e,t,n){if(e instanceof hc)return e.timeZone===t?e:VV(e,t);let r=go(e,t,n);return yo(r,t)}function LV(e){let t=Tu(e)-e.offset;return new Date(t)}function VV(e,t){let n=Tu(e)-e.offset;return Qt(yo(n,t),e.calendar)}const Sl=36e5;function Xh(e,t){let n=e.copy(),r="hour"in n?tS(n,t):0;ky(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,By(n),XC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,NV(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ky(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function By(e){for(;e.month<1;)ky(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ky(e,1)}function NV(e){for(;e.day<1;)e.month--,By(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,By(e)}function XC(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 ls(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),XC(e)}function pb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function QC(e,t){return Xh(e,pb(t))}function mb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ls(n),n}function fc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),eS(n),n}function jV(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=af(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=af(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=af(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=af(e.hour,24),t}function eS(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 af(e,t){let n=e%t;return n<0&&(n+=t),n}function tS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,jV(e)}function nS(e,t){let n=e.copy();return tS(n,t),n}function KV(e,t){return nS(e,pb(t))}function gb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=vo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],ls(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=vo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=vo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=vo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ls(i),i}function yb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=vo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=vo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=vo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=vo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function vo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function rS(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Xh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=go(i,e.timeZone)}else n=Tu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=yo(n,e.timeZone);return Qt(r,e.calendar)}function UV(e,t){return rS(e,pb(t))}function zV(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(fc(a,{hour:i}),new dr),c=[go(u,e.timeZone,"earlier"),go(u,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===u.day)[0],d=Qt(fc(a,{hour:o}),new dr),f=[go(d,e.timeZone,"earlier"),go(d,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===d.day).pop(),h=Tu(e)-e.offset,m=Math.floor(h/Sl),g=h%Sl;return h=vo(m,n,Math.floor(c/Sl),Math.floor(f/Sl),r==null?void 0:r.round)*Sl+g,Qt(yo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=gb(Di(e),t,n,r),o=go(i,e.timeZone);return Qt(yo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function WV(e,t,n){let r=Di(e),i=fc(mb(r,t),t);if(i.compare(r)===0)return e;let o=go(i,e.timeZone,n);return Qt(yo(o,e.timeZone),e.calendar)}const HV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function GV(e){let t=e.match(HV);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Qm(t[1],0,9999),Qm(t[2],1,12),1);return n.day=Qm(t[3],0,n.calendar.getDaysInMonth(n)),n}function Qm(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function iS(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 oS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function aS(e){return`${oS(e)}T${iS(e)}`}function qV(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function YV(e){return`${aS(e)}${qV(e.offset)}[${e.timeZone}]`}function vb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var ZV=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(this,t)}cycle(t,n,r){return gb(this,t,n,r)}toDate(t){return ZC(this,t)}toString(){return oS(this)}compare(t){return HC(this,t)}constructor(...t){Mc(this,ZV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,ls(this)}}var JV=new WeakMap;class Lc{copy(){return new Lc(this.hour,this.minute,this.second,this.millisecond)}add(t){return nS(this,t)}subtract(t){return KV(this,t)}set(t){return fc(this,t)}cycle(t,n,r){return yb(this,t,n,r)}toString(){return iS(this)}compare(t){return GC(this,t)}constructor(t=0,n=0,r=0,i=0){Mc(this,JV,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,eS(this)}}var XV=new WeakMap;class eh{copy(){return this.era?new eh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new eh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(fc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return gb(this,t,n,r);default:return yb(this,t,n,r)}}toDate(t,n){return ZC(this,t,n)}toString(){return aS(this)}compare(t){let n=HC(this,t);return n===0?GC(this,Di(t)):n}constructor(...t){Mc(this,XV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}var QV=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return rS(this,t)}subtract(t){return UV(this,t)}set(t,n){return WV(this,t,n)}cycle(t,n,r){return zV(this,t,n,r)}toDate(){return LV(this)}toString(){return YV(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JC(t,this.timeZone).toDate().getTime()}constructor(...t){Mc(this,QV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}const du=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Pf=[1867,1911,1925,1988,2018],Xo=["meiji","taisho","showa","heisei","reiwa"];function y$(e){const t=du.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?du.length-1:t===0?0:t-1}function eg(e){let t=Pf[Xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class tN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=y$(n);return new hn(this,Xo[r],n.year-Pf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=y$(n);Xo[r]!==t.era&&(t.era=Xo[r],t.year=n.year-Pf[r]),this.constrainDate(t)}constrainDate(t){let n=Xo.indexOf(t.era),r=eN[n];if(r!=null){let[i,o,a]=r,u=i-Pf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=du[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Xo}getYearsInEra(t){let n=Xo.indexOf(t.era),r=du[n],i=du[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(eg(t))}getMinimumMonthInYear(t){let n=v$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=v$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function v$(e){if(e.year===1){let t=Xo.indexOf(e.era);return du[t]}}const sS=-543;class nN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year);return new hn(this,r-sS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(b$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(b$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function b$(e){let[t,n]=Zh(e.year+sS);return new hn(t,n,e.month,e.day)}const th=1911;function uS(e){return e.era==="minguo"?e.year+th:1-e.year+th}function $$(e){let t=e-th;return t>0?["minguo",t]:["before_minguo",1-t]}class rN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year),[i,o]=$$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(x$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=$$(uS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(x$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-th}constructor(...t){super(...t),this.identifier="roc"}}function x$(e){let[t,n]=Zh(uS(e));return new hn(t,n,e.month,e.day)}const w$=1948320,D$=[0,31,62,93,124,155,186,216,246,276,306,336];class iN{fromJulianDay(t){let n=t-w$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-D$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=w$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=D$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||cu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,E$=80;class oN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-Ua(n.era,n.year,1,1),o;i<E$?(r--,o=na(n.year-1)?31:30,i+=o+155+90+10):(o=na(n.year)?31:30,i-=E$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Zh(n),o,a;return na(i)?(o=31,a=Ua(r,i,3,21)):(o=30,a=Ua(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&na(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const nh=1948440,C$=1948439,ei=1300,Hs=1600,aN=460322;function rh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function lS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+rh(t,r,1,1)))/29.5)+1),o=n-rh(t,r,i,1)+1;return new hn(e,r,i,o)}function S$(e){return(14+11*e)%30<11}class bb{fromJulianDay(t){return lS(this,nh,t)}toJulianDay(t){return rh(nh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&S$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return S$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class sN extends bb{fromJulianDay(t){return lS(this,C$,t)}toJulianDay(t){return rh(C$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const uN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Iy,fu;function _f(e){return aN+fu[e-ei]}function zl(e,t){let n=e-ei,r=1<<11-(t-1);return Iy[n]&r?30:29}function T$(e,t){let n=_f(e);for(let r=1;r<t;r++)n+=zl(e,r);return n}function A$(e){return fu[e+1-ei]-fu[e-ei]}class lN extends bb{fromJulianDay(t){let n=t-nh,r=_f(ei),i=_f(Hs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-_f(o)+1;let c=A$(o);if(u===c){a=12;break}else if(u<c){let d=zl(o,a);for(a=1;u>d;)u-=d,a++,d=zl(o,a);break}}return new hn(this,o,a,n-T$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Hs?super.toJulianDay(t):nh+T$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Hs?super.getDaysInMonth(t):zl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Hs?super.getDaysInYear(t):A$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Iy||(Iy=new Uint16Array(Uint8Array.from(atob(uN),t=>t.charCodeAt(0)).buffer)),!fu){fu=new Uint32Array(Hs-ei+1);let t=0;for(let n=ei;n<=Hs;n++){fu[n-ei]=t;for(let r=1;r<=12;r++)t+=zl(n,r)}}}}const P$=347997,cS=1080,dS=24*cS,cN=29,dN=12*cS+793,fN=cN*dS+dN;function Va(e){return cu(e*7+1,19)<7}function Rf(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return cu(3*(r+1),7)<3&&(r+=1),r}function hN(e){let t=Rf(e-1),n=Rf(e);return Rf(e+1)-n===356?2:n-t===382?1:0}function Xl(e){return Rf(e)+hN(e)}function fS(e){return Xl(e+1)-Xl(e)}function pN(e){let t=fS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sf(e,t){if(t>=6&&!Va(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=pN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Va(e)?30:0:30}class mN{fromJulianDay(t){let n=t-P$,r=n*dS/fN,i=Math.floor((19*r+234)/235)+1,o=Xl(i),a=Math.floor(n-o);for(;a<1;)i--,o=Xl(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=sf(i,u),u++;u--,c-=sf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Xl(t.year);for(let r=1;r<t.month;r++)n+=sf(t.year,r);return n+t.day+P$}getDaysInMonth(t){return sf(t.year,t.month)}getMonthsInYear(t){return Va(t.year)?13:12}getDaysInYear(t){return fS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Va(n.year)&&!Va(t.year)&&n.month>6?t.month--:!Va(n.year)&&Va(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ly=1723856,_$=1824665,Vy=5500;function ih(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $b(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ih(e,n,1,1))/30),i=t+1-ih(e,n,r,1);return[n,r,i]}function hS(e){return Math.floor(e%4/3)}function pS(e,t){return t%13!==0?30:hS(e)+5}class xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t),o="AM";return n<=0&&(o="AA",n+=Vy),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Vy),ih(Ly,n,t.month,t.day)}getDaysInMonth(t){return pS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+hS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gN extends xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t);return n+=Vy,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class yN extends xb{fromJulianDay(t){let[n,r,i]=$b(_$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ih(_$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pS(n,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 vN(e){switch(e){case"buddhist":return new nN;case"ethiopic":return new xb;case"ethioaa":return new gN;case"coptic":return new yN;case"hebrew":return new mN;case"indian":return new oN;case"islamic-civil":return new bb;case"islamic-tbla":return new sN;case"islamic-umalqura":return new lN;case"japanese":return new tN;case"persian":return new iN;case"roc":return new rN;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return xN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=wN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=mS(t,n),this.options=n}}const bN={true:{ja:"h11"},false:{}};function mS(e,t={}){if(typeof t.hour12=="boolean"&&$N()){t={...t};let i=bN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function $N(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function xN(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function wN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=mS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Vi(e){e=EC(e??{},DN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function DN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let og=new Map,Ny=!1;try{Ny=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oh=!1;try{oh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class yS{format(t){let n="";if(!Ny&&this.options.signDisplay!=null?n=CN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!oh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=gS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ny&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!oh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=EN(t,n),this.options=n}}function EN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!oh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=gS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function CN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const SN=new RegExp("^.*\\(.*\\).*$"),TN=["latn","arab","hanidec","deva","beng"];class vS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const R$=new Map;function ag(e,t,n){let r=O$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of TN)if(i!==r.options.numberingSystem){let o=O$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function O$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=R$.get(n);return r||(r=new AN(e,t),R$.set(n,r)),r}class AN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=uf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new vS(this.locale,a).parse(new yS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&SN.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=uf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=_N(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const M$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),PN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function _N(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=PN.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!M$.has(O.type)).map(O=>F$(O.value)),D=h.flatMap(O=>O.filter(F=>!M$.has(F.type)).map(F=>F$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function uf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function F$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function RN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new yS(t,e),[t,e])}let sg=new Map;function bS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function $S(e){let t=bS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function ON(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Fc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=cb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Ao(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var xS={};xS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var wS={};wS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var ES={};ES={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var SS={};SS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var TS={};TS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var PS={};PS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _S={};_S={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var MS={};MS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var IS={};IS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var LS={};LS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var VS={};VS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var NS={};NS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var zS={};zS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WS={};WS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var HS={};HS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var GS={};GS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var ZS={};ZS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var e5={};e5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Vc={};Vc={"ar-AE":xS,"bg-BG":wS,"cs-CZ":DS,"da-DK":ES,"de-DE":CS,"el-GR":SS,"en-US":TS,"es-ES":AS,"et-EE":PS,"fi-FI":_S,"fr-FR":RS,"he-IL":OS,"hr-HR":MS,"hu-HU":FS,"it-IT":kS,"ja-JP":BS,"ko-KR":IS,"lt-LT":LS,"lv-LV":VS,"nb-NO":NS,"nl-NL":jS,"pl-PL":KS,"pt-BR":US,"pt-PT":zS,"ro-RO":WS,"ru-RU":HS,"sk-SK":GS,"sl-SI":qS,"sr-SP":YS,"sv-SE":ZS,"tr-TR":JS,"uk-UA":XS,"zh-CN":QS,"zh-TW":e5};function t5(e){return e&&e.__esModule?e.default:e}const wb=new WeakMap;function pc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function MN(e){let t=Xi(t5(Vc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Vi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pc(n)||pc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ky(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function jy(e,t,n,r){let i=Xi(t5(Vc),"@react-aria/calendar"),o=pc(e)||pc(t),a=Vi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Vi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Ic(e))){if(xn(t,My(e)))return a.format(e.toDate(n));if(xn(t,My(t)))return r?Ky(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Ky(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Ky(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const n5=7e3;let Xr=null;function hu(e,t="assertive",n=n5){Xr?Xr.announce(e,t,n):(Xr=new kN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function FN(e){Xr&&Xr.clear(e)}class kN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=n5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function BN(e){return e&&e.__esModule?e.default:e}function r5(e,t){let n=Xi(BN(Vc),"@react-aria/calendar"),r=Ao(e),i=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);q3(()=>{t.isFocused||hu(o)},[o]);let a=MN(t);q3(()=>{a&&hu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);wb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Cu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function IN(e,t){return r5(e,t)}function LN(e,t,n){let r=r5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return aa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),aa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},aa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function VN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=jy(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=wb.get(t),d=Cu({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Vi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=dc(Jh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function NN(e){return e&&e.__esModule?e.default:e}function jN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=wb.get(t),u=Xi(NN(Vc),"@react-aria/calendar"),c=Vi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=EC(r,Oy);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=zC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Oc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Fc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Jf()!=="pointer"&&document.activeElement===n.current&&Yf(n.current,{containingElement:Gh(n.current)}))},[f,n]);let U=Vi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const Qh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i5={...Qh,customError:!0,valid:!1},Na={isInvalid:!1,validationDetails:Qh,validationErrors:[]},KN=b.createContext({}),Au="__formValidationState"+Date.now();function Nc(e){if(e[Au]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Au];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return UN(e)}function UN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:i5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=zN(a,i);return k$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(KN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Uy(f[O])):Uy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>k$(v?[]:h),[v,h]),x=b.useRef(Na),[y,D]=b.useState(Na),P=b.useRef(Na),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||Na,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=Na;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function zN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Uy(n)}return[]}function k$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i5}:null}function ug(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function ah(...e){let t=new Set,n=!1,r={...Qh};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function o5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(HN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&GN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),MC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function WN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function HN(e){return{isInvalid:!e.validity.valid,validationDetails:WN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function GN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function ep(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function tp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=ep(e),u=Eu([!!t,!!n,r,i]),c=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const qN=0,YN=100,ZN=1;function JN(e){const{isDisabled:t=!1,minValue:n=qN,maxValue:r=YN,numberFormatter:i,step:o=ZN,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Cl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Cl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(I$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=I$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=L$(e.value,e.defaultValue,e.onChange),m=L$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Cl(re,oe,fe,o);let ie=B$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=B$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Su(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function B$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function I$(e){if(e!=null)return Array.isArray(e)?e:[e]}function L$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const V$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function XN(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=Uu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...V$,...t}:V$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function QN(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=XN(e);return b.createElement(n,xt(o,a),t)}const Db=new WeakMap;function zy(e,t){let n=Db.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ej(e,t,n){let{labelProps:r,fieldProps:i}=ep(e),o=e.orientation==="vertical";var a;Db.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=kC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Su(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(zy(t,0)))===null||x===void 0||x.focus(),MC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>zy(t,y)).join(" "),"aria-live":"off"}}}function tj(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Ku(),$=Db.get(t);var C;const{labelProps:x,fieldProps:y}=ep({...e,id:zy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=FC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=kC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Su(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=cb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return ob(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function nj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=cb(e,t),h=Nc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=tp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Ao(e,{labelable:!0});const P={type:a,pattern:e.pattern};return ob(t,c,d),o5(e,h,t),b.useEffect(()=>{if(t.current instanceof da(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var a5={};a5={Empty:"فارغ"};var s5={};s5={Empty:"Изпразни"};var u5={};u5={Empty:"Prázdné"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leer"};var d5={};d5={Empty:"Άδειο"};var f5={};f5={Empty:"Empty"};var h5={};h5={Empty:"Vacío"};var p5={};p5={Empty:"Tühjenda"};var m5={};m5={Empty:"Tyhjä"};var g5={};g5={Empty:"Vide"};var y5={};y5={Empty:"ריק"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Üres"};var $5={};$5={Empty:"Vuoto"};var x5={};x5={Empty:"空"};var w5={};w5={Empty:"비어 있음"};var D5={};D5={Empty:"Tuščias"};var E5={};E5={Empty:"Tukšs"};var C5={};C5={Empty:"Tom"};var S5={};S5={Empty:"Leeg"};var T5={};T5={Empty:"Pusty"};var A5={};A5={Empty:"Vazio"};var P5={};P5={Empty:"Vazio"};var _5={};_5={Empty:"Gol"};var R5={};R5={Empty:"Не заполнено"};var O5={};O5={Empty:"Prázdne"};var M5={};M5={Empty:"Prazen"};var F5={};F5={Empty:"Prazno"};var k5={};k5={Empty:"Tomt"};var B5={};B5={Empty:"Boş"};var I5={};I5={Empty:"Пусто"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"空白"};var N5={};N5={"ar-AE":a5,"bg-BG":s5,"cs-CZ":u5,"da-DK":l5,"de-DE":c5,"el-GR":d5,"en-US":f5,"es-ES":h5,"et-EE":p5,"fi-FI":m5,"fr-FR":g5,"he-IL":y5,"hr-HR":v5,"hu-HU":b5,"it-IT":$5,"ja-JP":x5,"ko-KR":w5,"lt-LT":D5,"lv-LV":E5,"nb-NO":C5,"nl-NL":S5,"pl-PL":T5,"pt-BR":A5,"pt-PT":P5,"ro-RO":_5,"ru-RU":R5,"sk-SK":O5,"sl-SI":M5,"sr-SP":F5,"sv-SE":k5,"tr-TR":B5,"uk-UA":I5,"zh-CN":L5,"zh-TW":V5};function rj(e){return e&&e.__esModule?e.default:e}function ij(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Xi(rj(N5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(FN("assertive"),hu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Ku();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var j5={};j5={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var K5={};K5={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var U5={};U5={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var z5={};z5={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var W5={};W5={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var H5={};H5={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var G5={};G5={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var q5={};q5={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Y5={};Y5={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Z5={};Z5={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var J5={};J5={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var X5={};X5={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Q5={};Q5={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var e2={};e2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var t2={};t2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var n2={};n2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var r2={};r2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var i2={};i2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var o2={};o2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var a2={};a2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var s2={};s2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var u2={};u2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var l2={};l2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var c2={};c2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d2={};d2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var f2={};f2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var h2={};h2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var p2={};p2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var m2={};m2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var g2={};g2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var y2={};y2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var v2={};v2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var b2={};b2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var $2={};$2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var x2={};x2={"ar-AE":j5,"bg-BG":K5,"cs-CZ":U5,"da-DK":z5,"de-DE":W5,"el-GR":H5,"en-US":G5,"es-ES":q5,"et-EE":Y5,"fi-FI":Z5,"fr-FR":J5,"he-IL":X5,"hr-HR":Q5,"hu-HU":e2,"it-IT":t2,"ja-JP":n2,"ko-KR":r2,"lt-LT":i2,"lv-LV":o2,"nb-NO":a2,"nl-NL":s2,"pl-PL":u2,"pt-BR":l2,"pt-PT":c2,"ro-RO":d2,"ru-RU":f2,"sk-SK":h2,"sl-SI":p2,"sr-SP":m2,"sv-SE":g2,"tr-TR":y2,"uk-UA":v2,"zh-CN":b2,"zh-TW":$2};const Ni={top:"top",bottom:"top",left:"left",right:"left"},sh={top:"bottom",bottom:"top",left:"right",right:"left"},oj={top:"left",left:"top"},Wy={top:"height",left:"width"},w2={width:"totalWidth",height:"totalHeight"},lf={};let Tn=typeof document<"u"?window.visualViewport:null;function N$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=pu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(ib()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function aj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function j$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Wy[e]],f=r.scroll[Ni[e]]+o,h=d+r.scroll[Ni[e]]-o,m=t-c+a[e]-r[Ni[e]],g=t-c+n+a[e]-r[Ni[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function sj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function K$(e){if(lf[e])return lf[e];let[t,n]=e.split(" "),r=Ni[t]||"right",i=oj[r];Ni[n]||(n="center");let o=Wy[r],a=Wy[i];return lf[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},lf[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Su(C[g],T,k),f===m){const S=u?a[v]:t[w2[v]];C[sh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function uj(e,t,n,r,i,o,a,u){const c=r?n.height:t[w2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function U$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[sh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[sh[u]]-i)}function lj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=K$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=U$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=K$(`${sh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);U$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=j$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=uj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=j$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[Ni[y]];const W=v/2+$;var j,L,_,M;const Y=Ni[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[Ni[y]]),re=t[y]+t[D]-v/2-(T[y]+i[Ni[y]]),oe=Su(K,z,re);return G[y]=Su(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function cj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?dj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?pu(n):z$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=pu(r),D=sj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=aj(i),U=N$(u),O=N$(g),F=u.tagName==="BODY"?pu(g):z$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),lj(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function pu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function z$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=pu(e);let i=pu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function dj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W$(t);)t=t.parentElement;return t||document.documentElement}function W$(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const D2=new WeakMap;function fj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||D2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function hj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=cj({placement:mj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),pj(E),Y3({ref:i,onResize:E}),Y3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);fj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function pj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function mj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const fo=[];function gj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&fo.push(t),()=>{let v=fo.indexOf(t);v>=0&&fo.splice(v,1)}),[i,t]);let c=()=>{fo[fo.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};eV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Uu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||lV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function yj(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&D2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,vj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let cf=0,dg;function bj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return cf++,cf===1&&(Rc()?dg=xj():dg=$j()),()=>{cf--,cf===0&&dg()}},[t])}function $j(){return os(Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"))}function xj(){let e,t,n=d=>{e=Gh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qs(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;G$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;G$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{H$(f)}):cg.addEventListener("resize",()=>H$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=os(Tl(window,"scroll",d),Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=os(Tl(document,"touchstart",n,{passive:!1,capture:!0}),Tl(document,"touchmove",r,{passive:!1,capture:!0}),Tl(document,"touchend",i,{passive:!1,capture:!0}),Tl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function Qs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Tl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function H$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Gh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function G$(e){return e instanceof HTMLInputElement&&!vj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Al=new WeakMap,Yr=[];function E2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Al.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Al.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Al.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Al.delete(c)):Al.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function wj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=gj({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=hj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return bj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return E2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const Dj=b.createContext({});function Ej(){var e;return(e=b.useContext(Dj))!==null&&e!==void 0?e:{}}const C2=b.createContext(null);function Cj(e){let t=nb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Ej();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(iV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(C2.Provider,{value:a},b.createElement(HL,null,c)),oa.createPortal(c,n)}function Sj(){let e=b.useContext(C2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const np=new WeakMap;function Tj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function S2(e,t){let n=np.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Tj(t)}`}function Hy(e){return Tf()?e.altKey:e.ctrlKey}function Zs(e){return Eo()?e.metaKey:e.ctrlKey}const Aj=1e3;function Pj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=_j(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Aj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function _j(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Hh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Hy(O)){var $e;oa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Hy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Zs(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});aa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Jf()==="keyboard"&&Yf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&us(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Jf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(DC(g.current,F),O!=="virtual"&&Yf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&us(r.current),T.current=t.focusedKey,E.current=!1}),aa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Pj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function Rj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Hh(),m=_=>{if(_.pointerType==="keyboard"&&Hy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Zs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&us(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||Y$())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!q$())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||Y$()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&q$()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Fc(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=BC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{as.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function q$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Y$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Z${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class A2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Z$(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Z$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Oj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=bS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new A2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=T2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Mj(e,t,n){let r=Ao(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Oj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Uu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);np.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=ep({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function P2(e){return null}P2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Fj(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function Fj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let kj=P2;class Bj{build(t,n){return this.context=n,J$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:Ij(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function J$(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Ij(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function Lj(e,t,n){let r=b.useMemo(()=>new Bj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function rp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Vj(e){return Nj(e)}function Nj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...X$(e,t),t],i=[...X$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function X$(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Q$=new WeakMap;function _2(e){let t=Q$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(rp(o,e)):n++};return r(e),Q$.set(e,n),n}function jj(e,t,n){var r,i;let{key:o}=e,a=np.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Eu(),P=Eu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Eo()&&ib()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=_2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=Rj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?os(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=QL({isDisabled:c||!v,onHoverStart(){n$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Ao(T==null?void 0:T.props);delete W.id;let j=OL(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:S2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&n$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var R2={};R2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var O2={};O2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var M2={};M2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var F2={};F2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var k2={};k2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var B2={};B2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I2={};I2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var L2={};L2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var V2={};V2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N2={};N2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var j2={};j2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var K2={};K2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var z2={};z2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W2={};W2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var H2={};H2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var G2={};G2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q2={};q2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Y2={};Y2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z2={};Z2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var J2={};J2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var X2={};X2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Q2={};Q2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eT={};eT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var tT={};tT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var nT={};nT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rT={};rT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var iT={};iT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oT={};oT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var aT={};aT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sT={};sT={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var uT={};uT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lT={};lT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var cT={};cT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var dT={};dT={"ar-AE":R2,"bg-BG":O2,"cs-CZ":M2,"da-DK":F2,"de-DE":k2,"el-GR":B2,"en-US":I2,"es-ES":L2,"et-EE":V2,"fi-FI":N2,"fr-FR":j2,"he-IL":K2,"hr-HR":U2,"hu-HU":z2,"it-IT":W2,"ja-JP":H2,"ko-KR":G2,"lt-LT":q2,"lv-LV":Y2,"nb-NO":Z2,"nl-NL":J2,"pl-PL":X2,"pt-BR":Q2,"pt-PT":eT,"ro-RO":tT,"ru-RU":nT,"sk-SK":rT,"sl-SI":iT,"sr-SP":oT,"sv-SE":aT,"tr-TR":sT,"uk-UA":uT,"zh-CN":lT,"zh-TW":cT};function Kj(e){return e&&e.__esModule?e.default:e}function Uj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=yj({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Xi(Kj(dT),"@react-aria/menu"),{longPressProps:h}=BC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function zj(e){return e&&e.__esModule?e.default:e}function Wj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Xi(zj(x2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Uj({type:"listbox",isDisabled:f||d},t,n);np.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new A2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=T2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Hh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=nj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:os(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Au]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Cu({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Cu({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Tf()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...rp(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});hu(dt)}ie.current=re,Ee.current=fe});let $e=_2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Tf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});hu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Tf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});hu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return E2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?S2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var fT={};fT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var hT={};hT={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var pT={};pT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var mT={};mT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var gT={};gT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yT={};yT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var vT={};vT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var bT={};bT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $T={};$T={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var xT={};xT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var wT={};wT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var DT={};DT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ET={};ET={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var CT={};CT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ST={};ST={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var TT={};TT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var AT={};AT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var PT={};PT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var _T={};_T={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var RT={};RT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var MT={};MT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var FT={};FT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var kT={};kT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BT={};BT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IT={};IT={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var LT={};LT={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var VT={};VT={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NT={};NT={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var jT={};jT={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var KT={};KT={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var UT={};UT={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var zT={};zT={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var WT={};WT={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jc={};jc={"ar-AE":fT,"bg-BG":hT,"cs-CZ":pT,"da-DK":mT,"de-DE":gT,"el-GR":yT,"en-US":vT,"es-ES":bT,"et-EE":$T,"fi-FI":xT,"fr-FR":wT,"he-IL":DT,"hr-HR":ET,"hu-HU":CT,"it-IT":ST,"ja-JP":TT,"ko-KR":AT,"lt-LT":PT,"lv-LV":_T,"nb-NO":RT,"nl-NL":OT,"pl-PL":MT,"pt-BR":FT,"pt-PT":kT,"ro-RO":BT,"ru-RU":IT,"sk-SK":LT,"sl-SI":VT,"sr-SP":NT,"sv-SE":jT,"tr-TR":KT,"uk-UA":UT,"zh-CN":zT,"zh-TW":WT};function Eb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Yh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Fc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Hj(e){return e&&e.__esModule?e.default:e}const HT=new WeakMap,Ql="__role_"+Date.now(),GT="__focusManager_"+Date.now();function qT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=tp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=Uu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Xi(Hj(jc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Oc(C),y=e[Ql]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[GT],P=b.useMemo(()=>D||Yh(n),[D,n]),E=Eb(t,n,e[Ql]==="presentation");HT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[Ql]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),ob(e.inputRef,t.value,t.setValue),o5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Ao(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Gj(e,t,n){var r;let i=qT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function qj(e){return e&&e.__esModule?e.default:e}function Yj(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Xi(qj(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Eb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Oc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Ao(e),T=b.useMemo(()=>Yh(n),[n]),{focusWithinProps:k}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[Ql]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Au]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Zj(e){return e&&e.__esModule?e.default:e}function Jj(){let{locale:e}=Qn(),t=KC(Zj(jc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Xj(e,t)}},[e,t])}class Xj{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function Qj(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=Jj(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=HT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Vi({month:"long",timeZone:h.timeZone}),g=Vi({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=ij({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new vS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Eo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=$S({sensitivity:"base"}),D=Vi({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Vi({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=eK(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Yf(n.current,{containingElement:Gh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);aa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");aa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),aa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Rc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Cu({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function eK(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function tK(e){return e&&e.__esModule?e.default:e}function nK(e,t,n){var r,i,o;let a=Xi(tK(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Oc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Eb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Yh(n,{accept:_=>_.id!==E}),[n,E]),O={[GT]:U,[Ql]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Ao(e),{focusWithinProps:G}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(Na),W=b.useRef(Na);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(ah(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(ah(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function rK(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){us(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),us(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Sj(),{dialogProps:{...Ao(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var Kc=e=>e.type==="checkbox",za=e=>e instanceof Date,sr=e=>e==null;const YT=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&YT(e)&&!za(e),ZT=e=>fn(e)&&e.target?Kc(e.target)?e.target.checked:e.target.value:e,iK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,JT=(e,t)=>e.has(iK(t)),oK=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},Cb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!oK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var ip=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=ip(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",Sb=e=>/^\w*$/.test(e),XT=e=>ip(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=Sb(t)?[t]:XT(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const uh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ho={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},QT=b.createContext(null),op=()=>b.useContext(QT),aK=e=>{const{children:t,...n}=e;return b.createElement(QT.Provider,{value:n},t)};var eA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,tA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},ec=e=>Array.isArray(e)?e:[e],nA=(e,t,n)=>!e||!t||e===t||ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function sK(e){const t=op(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,Tb({disabled:r,next:h=>c.current&&nA(f.current,h.name,o)&&tA(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>eA(a,n,d.current,!1),[a,n])}var ji=e=>typeof e=="string",rA=(e,t,n,r,i)=>ji(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function uK(e){const t=op(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e,u=b.useRef(r);u.current=r,Tb({disabled:o,subject:n._subjects.values,next:f=>{nA(u.current,f.name,a)&&d(br(rA(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function lK(e){const t=op(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=JT(i._names.array,n),u=uK({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=sK({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:ZT(m),name:n},type:uh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:uh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var iA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ex=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),tx=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(tc(u,t))break}else if(fn(u)&&tc(u,t))break}}};var cK=(e,t,n)=>{const r=ec(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},Ab=e=>e.type==="file",Ii=e=>typeof e=="function",lh=e=>{if(!Cb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Of=e=>ji(e),Pb=e=>e.type==="radio",ch=e=>e instanceof RegExp;const nx={value:!1,isValid:!1},rx={value:!0,isValid:!0};var oA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?rx:{value:e[0].value,isValid:!0}:rx:nx}return nx};const ix={isValid:!1,value:null};var aA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ix):ix;function ox(e,t,n="validate"){if(Of(e)||Array.isArray(e)&&e.every(Of)||ti(e)&&!e)return{type:n,message:Of(e)?e:"",ref:t}}var Gs=e=>fn(e)&&!ch(e)?e:{value:e,message:""},ax=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=Pb(a),k=Kc(a),S=T||k,U=(C||Ab(a))&&dn(a.value)&&dn(y)||lh(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=iA.bind(null,$,r,E),F=(G,K,W,j=ho.maxLength,L=ho.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!oA(u).isValid||T&&!aA(u).isValid)){const{value:G,message:K}=Of(c)?{value:!!c,message:c}:Gs(c);if(G&&(E[$]={type:ho.required,message:K,ref:D,...O(ho.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=Gs(m),j=Gs(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";ji(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),ji(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,ho.max,ho.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(ji(y)||o&&Array.isArray(y))){const G=Gs(d),K=Gs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&ji(y)){const{value:G,message:K}=Gs(g);if(ch(G)&&!y.match(G)&&(E[$]={type:ho.pattern,message:K,ref:a,...O(ho.pattern,K)},!r))return P(K),E}if(v){if(Ii(v)){const G=await v(y,n),K=ox(G,D);if(K&&(E[$]={...K,...O(ho.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=ox(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function dK(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function fK(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:Sb(t)?[t]:XT(t),r=n.length===1?e:dK(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&fK(r))&&$n(e,n.slice(0,-1)),e}var pg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Gy=e=>sr(e)||!YT(e);function Qo(e,t){if(Gy(e)||Gy(t))return e===t;if(za(e)&&za(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(za(o)&&za(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!Qo(o,a):o!==a)return!1}}return!0}var sA=e=>e.type==="select-multiple",hK=e=>Pb(e)||Kc(e),mg=e=>lh(e)&&e.isConnected,uA=e=>{for(const t in e)if(Ii(e[t]))return!0;return!1};function dh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!uA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},dh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function lA(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!uA(e[i])?dn(t)||Gy(n[i])?n[i]=Array.isArray(e[i])?dh(e[i],[]):{...dh(e[i])}:lA(e[i],sr(t)?{}:t[i],n[i]):n[i]=!Qo(e[i],t[i]);return n}var Pl=(e,t)=>lA(e,t,dh(t)),cA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&ji(e)?new Date(e):r?r(e):e;function gg(e){const t=e.ref;return Ab(t)?t.files:Pb(t)?aA(e.refs).value:sA(t)?[...t.selectedOptions].map(({value:n})=>n):Kc(t)?oA(e.refs).value:cA(dn(t.value)?e.ref.value:t.value,e)}var pK=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},_l=e=>dn(e)?e:ch(e)?e.source:fn(e)?ch(e.value)?e.value.source:e.value:e;const sx="AsyncFunction";var mK=e=>!!e&&!!e.validate&&!!(Ii(e.validate)&&e.validate.constructor.name===sx||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===sx)),gK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ux(e,t,n){const r=Ae(e,n);if(r||Sb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var yK=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,vK=(e,t)=>!ip(Ae(e,t)).length&&$n(e,t);const bK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function $K(e={}){let t={...bK,...e},n={submitCount:0,isDirty:!1,isLoading:Ii(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pg(),array:pg(),state:pg()},m=ex(t.mode),g=ex(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),vK(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=Pl(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:gg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||Qo(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!Qo(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,pK(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&mK(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?cK(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!mg(te)):!mg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!Qo(z(),i)),K=(q,Z,te)=>rA(q,u,{...a.mount?o:dn(Z)?i:ji(q)?{[q]:Z}:Z},te,Z),W=q=>ip(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,cA(Z,De)),Ce=lh(De.ref)&&sr(Z)?"":Z,sA(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?Kc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):Ab(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!za(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Pl(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),tx(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?gg(Ce._f):ZT(q),_e=Ve=>{pe=Number.isNaN(Ve)||za(Ve)&&isNaN(Ve.getTime())||Qo(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===uh.BLUR||q.type===uh.FOCUS_OUT,Pn=!gK(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||yK(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=tx(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=ux(n.errors,r,te),Vn=ux(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=ec(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!ji(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&tc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:ji(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&ec(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Ii(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?ec(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,gg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:_l(Z.min),max:_l(Z.max),minLength:_l(Z.minLength),maxLength:_l(Z.maxLength),pattern:_l(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=hK(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(mg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(JT(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&tc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),tc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Pl(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(Cb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(lh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!Qo(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Pl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Pl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Ii(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Ii(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Ii(Ce.select)&&Ce.select())}},getFieldState:re}}function xK(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Ii(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ii(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$K(e),formState:r});const o=t.current.control;return o._options=e,Tb({subject:o._subjects.state,next:a=>{tA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!Qo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eA(r,o),t.current}function mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function Wa(e,t,n,r,i){let o=e;return t.years?o=PV(e):t.months?o=Ic(e):t.weeks&&(o=dc(e,n)),mc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function mc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=hb(t,Wa(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=fb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function qo(e,t,n){if(t){let r=hb(e,cr(t));r&&(e=r)}if(n){let r=fb(e,cr(n));r&&(e=r)}return e}function dA(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function fA(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?qo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>qo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Jh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Wa(D,o,r,a,u);case"end":return Yy(D,o,r,a,u);case"center":default:return qy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(qy(V,o,r,a,u)),P(V),F(h.identifier)}mu(D,a,u)?P(qo(D,a,u)):D.compare(E)<0?T(Yy(D,o,r,a,u)):D.compare(U)>0&&T(Wa(D,o,r,a,u));function G(V){V=qo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=qo(z,a,u),z=dA(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:mu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(qo(D.add(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(qo(D.subtract(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(dc(D,r)):(o.months||o.years)&&G(Ic(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(OV(D,r)):(o.months||o.years)&&G(My(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return mu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=dc(re,r);let fe=db(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function wK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>hb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>fb(c,C==null?void 0:C.end),[c,C]),P=fA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=cx(_,P,-1),Y=cx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Oy(P.visibleRange.start,T.start)||!Oy(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=qo(_,y,D),Y=dA(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=vg(m,Y);V&&h({start:lx(V.start,f==null?void 0:f.start),end:lx(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:mu(f.start,u,c)||mu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||mu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function lx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function cx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function DK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function EK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>dx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>dx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!DK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function dx(e,t){return e?e==="all"?"all":new mi(e):t}class CK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Vj(rp(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function SK(e){let{filter:t,layoutDelegate:n}=e,r=EK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=Lj(e,o,a),c=b.useMemo(()=>new CK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function TK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=SK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function AK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=TK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:PK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Nc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function PK(e,t,n){return new Zy(hA(e,e,t,n))}function hA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=hA(e,rp(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var pA={};pA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mA={};mA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gA={};gA={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yA={};yA={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var vA={};vA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var bA={};bA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $A={};$A={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var xA={};xA={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var wA={};wA={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var DA={};DA={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var EA={};EA={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var CA={};CA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var SA={};SA={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var TA={};TA={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var AA={};AA={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var PA={};PA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var _A={};_A={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var RA={};RA={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var OA={};OA={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var MA={};MA={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var FA={};FA={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var kA={};kA={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var BA={};BA={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var IA={};IA={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var LA={};LA={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var VA={};VA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var NA={};NA={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var jA={};jA={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var KA={};KA={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var UA={};UA={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var zA={};zA={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var WA={};WA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var HA={};HA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var GA={};GA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var qA={};qA={"ar-AE":pA,"bg-BG":mA,"cs-CZ":gA,"da-DK":yA,"de-DE":vA,"el-GR":bA,"en-US":$A,"es-ES":xA,"et-EE":wA,"fi-FI":DA,"fr-FR":EA,"he-IL":CA,"hr-HR":SA,"hu-HU":TA,"it-IT":AA,"ja-JP":PA,"ko-KR":_A,"lt-LT":RA,"lv-LV":OA,"nb-NO":MA,"nl-NL":FA,"pl-PL":kA,"pt-BR":BA,"pt-PT":IA,"ro-RO":LA,"ru-RU":VA,"sk-SK":NA,"sl-SI":jA,"sr-SP":KA,"sv-SE":UA,"tr-TR":zA,"uk-UA":WA,"zh-CN":HA,"zh-TW":GA};function _K(e){return e&&e.__esModule?e.default:e}const YA=new ga(_K(qA));function ZA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function fh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=ZA(),h=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA,m=new jC(f,h),g=new ii(f,$o({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function RK(e,t,n,r,i){var o;let a=fh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=fh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=ah(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA;d=ah(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",ZA())],validationDetails:{...Qh,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const OK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},MK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $o(e,t){e={...t.shouldForceLeadingZeros?MK:OK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function eu(e){return e&&"hour"in e?e:new Lc}function JA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Rl(e,t,n,r){if(e)return JA(e,n);let i=Qt(WC(r??Bc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Rb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function FK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Rb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>fh(n,x,y,D,C),[n,x,y,D,C]),E=Nc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||eu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||eu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=$o(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=$o({},K);return new ii(F,W)}}}const kK=new ga({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function BK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?kK.getStringForLocale(e,n):"––"}const df={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},fx={year:5,month:2,day:7,hour:2,minute:15,second:15},IK={dayperiod:"dayPeriod"};function XA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=JA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>Rl(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>$o({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>df[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):Rl(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Rl(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(Rl(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=df[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=df[ne.type]&&!K[ne.type],he=df[ne.type]?BK(ne.type,ne.value,t):null;return{type:IK[ne.type]||ne.type,text:xe?he:ne.value,...LK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(VK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>fh(x,u,c,d,S),[x,u,c,d,S]),fe=Nc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,fx[ne]||1)},decrementPage(ne){re(ne,-(fx[ne]||1))},setSegment(ne,ye){z(ne),M(NK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Rl(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=$o(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=$o({},xe);return new ii(ne,he)}}}function LK(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:_V(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:RV(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function VK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function NK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function jK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Ma(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Ma(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Ma(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}):x(L):Ma(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Ma(C)&&Ma(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>RK(c,U,O,F,S),[c,U,O,F,S]),K=Nc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Ma(C)&&g&&P(C,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=$o(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=$o(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=$o({},M);return new ii(L,Y)}}}function Ma(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function KK(e){let{placeholderValue:t=new Lc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?JC(Ol(t),D||h):Ol(t)},[t,d,h]),g=b.useMemo(()=>Ol(n,f),[n,f]),v=b.useMemo(()=>Ol(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?g$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ol(u),[u]);return{...XA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&g$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ol(e,t=Jh(Bc())){return e?"day"in e?e:Di(t,e):null}var Mf={exports:{}},UK=Mf.exports,hx;function zK(){return hx||(hx=1,function(e,t){(function(n,r){e.exports=r()})(UK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Mf)),Mf.exports}var WK=zK();const HK=To(WK);var hs=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],GK="react-international-phone-",QA=(...e)=>e.filter(t=>!!t).join(" ").trim(),qK=(...e)=>QA(...e).split(" ").map(t=>`${GK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>QA(qK(...e),...t),YK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Js=e=>e?/^\d+$/.test(e):!1,ap=e=>e.replace(/\D/g,""),ZK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},JK=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),XK=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=ap(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=YK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},QK=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Js(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Js(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Js(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Js(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Js(n[c])&&c<n.length;)c+=1;return c},Ff=({phone:e,prefix:t})=>e?`${t}${ap(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?uU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=XK(m,{prefix:o,mask:aU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:eP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Ff({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var eU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},tU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=eU(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Ff({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Js(x)&&y!==i)return{inputValue:r,phone:Ff({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ff({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=QK({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},nU=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},rU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},iU={size:20,overrideLastItemDebounceMS:-1};function oU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...iU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=rU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&nU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var eP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:hs,preferredCountries:[]},tP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=oU(()=>{let W=tu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||tu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>tu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(JK()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=tU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=tu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},aU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${eP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(ap(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},sU=e=>`Field "${e}" is not supported`,tu=({field:e,value:t,countries:n=hs})=>{if(["priority"].includes(e))throw new Error(sU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},uU=({phone:e,countries:t=hs,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ap(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=tu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},lU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},cU="abcdefghijklmnopqrstuvwxyz",dU="1f1e6",px=cU.split("").reduce((e,t,n)=>({...e,[t]:lU(dU,n)}),{}),fU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=fU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},hU=1e3,pU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=hs,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>hU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(ZK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},mU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=hs,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return tu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(pU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},gU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=hs,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=tP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(mU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(gU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ra=="object"&&ra&&ra.Object===Object&&ra,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=eo(Rn),Vt=eo(er),Cn=eo(On),Ne=eo(tr),tt=eo(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function va(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=va;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Ro(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Oo(N){return Ke(this,N).delete(N)}function Mo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Ro,hr.prototype.delete=Oo,hr.prototype.get=Mo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function Fo(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function tl(N){return this.__data__.has(N)}function bs(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=Fo,pr.prototype.get=Lr,pr.prototype.has=tl,pr.prototype.set=bs;function nl(N,ae){var ve=al(N)||Rp(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function ko(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&ol(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(ol(N[ve][0],ae))return ve;return-1}function ba(N,ae){return N&&be(ae,ul(ae),N)}function $a(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!Ts(N))return N;var pn=al(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(sl(N))return Ds(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,ba(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,$a,ae)}}Nr||(Nr=new pr);var ll=Nr.get(N);if(ll)return ll;if(Nr.set(N,zn),!pn)var As=ve?it(N):ul(N);return ye(As||N,function(Wn,Ea){As&&(Ea=Wn,Wn=N[Ea]),ko(zn,Ea,$a(Wn,ae,ve,Ie,Ea,N,Nr))}),zn}function $s(N){return Ts(N)?Yt(N):{}}function xs(N,ae,ve){var Ie=ae(N);return al(N)?Ie:xe(Ie,ve(N))}function rl(N){return Ve.call(N)}function ws(N){if(!Ts(N)||wa(N))return!1;var ae=ld(N)||et(N)?mt:M;return ae.test(eo(N))}function xa(N){if(!Da(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Ds(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function Qi(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function il(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Es(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Bo(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Cs(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;ko(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return xs(N,ul,Ot)}function Ke(N,ae){var ve=N.__data__;return Ss(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return ws(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=rl;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?eo(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Da(N)?$s(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return Qi(N);case u:case c:return new yn(+N);case T:return il(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Es(N,Ie,ve);case g:case y:return new yn(N);case C:return Bo(N);case x:return Cs(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ss(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function wa(N){return!!Ce&&Ce in N}function Da(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function eo(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function _p(N){return $a(N,!0,!0)}function ol(N,ae){return N===ae||N!==N&&ae!==ae}function Rp(N){return Op(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var al=Array.isArray;function ud(N){return N!=null&&Mp(N.length)&&!ld(N)}function Op(N){return Fp(N)&&ud(N)}var sl=Vn||Mt;function ld(N){var ae=Ts(N)?Ve.call(N):"";return ae==f||ae==h}function Mp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function Ts(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function Fp(N){return!!N&&typeof N=="object"}function ul(N){return ud(N)?nl(N):xa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=_p})(Xy,Xy.exports);var ia=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function yU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function vU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function hh(e,t,n,r,i){return yU(this,void 0,void 0,function(){var o,a;return vU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},bU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=ia(n);hh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=ia(t);hh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},$U=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new $U(e)}function xU(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let wU=class{constructor(){this._qualifierModel={}}toJson(){return xU.apply(this)}},rt=class extends wU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function DU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function EU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let CU=class{constructor(){this._actionModel={}}toJson(){return EU.apply(this)}},Ei=class extends CU{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),DU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class sp extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new sp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function SU(){return new sp}function nP(){return new Fb("faces")}function TU(){return new Fb("ocr_text")}class AU extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(nP()),r&&r.regionType==="ocr_text"&&i.region(TU()),r&&r.regionType==="custom"&&i.region(sp.fromJson(r)),i}}function ps(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const rP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},PU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},iP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},oP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},_U={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aP={444:"CHROMA_444",420:"CHROMA_420"},RU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},OU=ps(aP);ps(RU);const MU=ps(rP),FU=ps(PU),sP=ps(iP);ps(oP);ps(_U);class uP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=sP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=iP[n]||n;return new this(o,r||i)}}class kU extends uP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=sP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function up(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class BU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class IU extends kU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class LU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class VU extends IU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(up(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class NU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(nP()),n&&n.regionType==="custom"&&i.region(SU()),i}}function jU(e){return new AU(e)}function KU(){return new uP("grayscale")}function mx(e){return new VU("colorize",e)}function UU(){return new BU}function zU(){return new LU}function WU(e){return new NU(e)}let HU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(up(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function GU(e){const t=e;return"error"in t&&!!t.error}function qU(){return new ai("ignore_aspect_ratio")}function YU(){return new ai("lossy")}function ZU(){return new ai("preserve_transparency")}function JU(e){return new ai("progressive",e)}function XU(){return new ai("region_relative")}function QU(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},lP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=FU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},ez=class extends ai{constructor(t){super("progressive",t)}},tv=class extends lP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(YU()),this}progressive(t){return t instanceof ez?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(JU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(ZU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},lp=class cP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof cP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new HU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(GU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class tz extends en{}class nz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=MU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof tz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(QU())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(XU())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=rP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?qU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class dP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class fP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class hP extends Bb{constructor(t){super(t)}}function rz(e){return new hP(e)}function pP(...e){const t=[...e];return new fP(t)}function mP(){return new dP}class Pu extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function iz(){return new Pu("ocr_text")}function oz(e){return e&&`${e}`.split(":")[0]==="auto"}function az(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function sz(e){return{compass:Ib(e),gravityType:"direction"}}function uz(e){return Ib(e)==="ocr_text"}function lz(){return{gravityType:"ocr"}}function cz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function dz(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function gP(e){let t;const n=e==="auto"?new dP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(dz)}}function fz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=mP().autoFocus(...o);i.fallbackGravity=gP(a)}return i}function hz(e){const n=e.split(":").map(r=>new Pu(r));return new fP(n)}function pz(e){return az(e)?sz(e):uz(e)?lz():oz(e)||cz(e)?gP(e):fz(typeof e=="string"?hz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Pu?t:new Pu(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class yP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function mz(e){return e.gravityType==="direction"}function gz(e){return e.gravityType==="ocr"}function yz(e){return e.gravityType==="auto"}function vz(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new Pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function vP(e){const n=(e.autoFocus||[]).map(vz);return mP().autoFocus(...n)}function bz(e){const t=(e.focusOnObjects||[]).map(r=>new Pu(r)),n=pP(...t);if(e.fallbackGravity){const r=vP(e.fallbackGravity);n.fallbackGravity(r)}return n}function $z(e){return mz(e)?new hP(new yP(e.compass)):gz(e)?pP(iz()):yz(e)?vP(e):bz(e)}class Vb extends nz{gravity(t){this._actionModel.gravity=pz(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity($z(t.gravity)),n}}class Uc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const bP=100,xz=0;class wz extends Uc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${bP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var $P=wz;class Nb extends Uc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>up(n)),this}}class xP extends Nb{toString(){return`
|
|
95
95
|
b_auto:border
|
|
96
96
|
${this._contrast?"_contrast":""}
|
|
97
97
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
@@ -111,25 +111,25 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
111
111
|
b_auto:predominant
|
|
112
112
|
${this._contrast?"_contrast":""}
|
|
113
113
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
114
|
-
`.replace(/\s+/g,"")}}class SP extends Uc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function TP(e){return`${e}`.replace("b_","")}function wz(){return{backgroundType:"auto"}}function Dz(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function jb(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Ez(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"border"})}function AP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=jb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Cz(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"borderGradient"})}function Sz(e){return{backgroundType:"color",color:TP(e)}}function Tz(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"predominant"})}function Az(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"predominantGradient"})}function Pz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function _z(e){return TP(e)==="auto"?wz():e instanceof $P?Dz(e):e instanceof xP?Ez(e):e instanceof DP?Cz(e):e instanceof CP?Tz(e):e instanceof EP?Az(e):e instanceof SP?Pz(e):Sz(e)}function Rz(){return new kb("svg")}function Kb(){return new kb("auto")}function PP(){return new xP}function _P(){return new Uc("auto")}function RP(){return new DP}function OP(){return new EP}function MP(){return new CP}function FP(e){return new Uc(up(e))}function Oz(){return new $P}function kP(){return new SP}const BP={auto:_P,border:PP,borderGradient:RP,predominantGradient:OP,predominant:MP,color:FP,blurred:Oz,generativeFill:kP};function Mz(e){const{brightness:t,intensity:n}=e,r=BP.blurred();return r.brightness(t??$z),r.intensity(n??bP),r}function vx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function bx(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function Fz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function kz(e){const{backgroundType:t}=e;switch(t){case"auto":return _P();case"blurred":return Mz(e);case"border":return bx(PP(),e);case"borderGradient":return vx(RP(),e);case"predominant":return bx(MP(),e);case"predominantGradient":return vx(OP(),e);case"generativeFill":return Fz(kP(),e);default:return FP(e.color)}}class Bz extends Vb{background(t){return this._actionModel.background=_z(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(kz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Iz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class Lz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function Vz(e,t){return new Iz("crop",e,t)}function Nz(e,t){return new Lz("fill",e,t)}function jz(e,t){return new Bz("pad",e,t)}class Kz extends lP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=aP[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=oP[n]||n,a=new this(o);if(r){const u=RU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function cp(e){return new tv("f",e)}function dp(e){return new Kz(e)}function Uz(){return new yP("north_east")}mx(70).color("black"),mx(40).color("white"),jU(),UU();var zz=new lp().effect(KU()).delivery(dp("auto")).delivery(cp(Rz())),Wz=new lp().effect(zU()).delivery(dp("auto")).delivery(cp(Kb())),Hz=new lp().effect(NU(2e3)).delivery(dp("auto")).delivery(cp(Kb())),Gz=new lp().resize(jz("iw_div_2").aspectRatio(1).background(BP.auto())).resize(Vz(1,1).gravity(nz(Uz()))).resize(Nz().height("ih").width("iw")).delivery(dp("auto")).delivery(cp(Kb())),$x={vectorize:zz,pixelate:Wz,blur:Hz,"predominant-color":Gz},xx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wx={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Dx="?_a=",qz=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=wx,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=ia(n);hh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(ia(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(ia(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(Dx),d=c[1]?"".concat(Dx).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(wx[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=ia(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);hh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),Yz=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Zz=typeof self=="object"&&self&&self.Object===Object&&self;Yz||Zz||Function("return this")();function Ub(){return typeof window<"u"}function Jz(e){return e instanceof HTMLImageElement}function Xz(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return Qz.bind(null,r,o)}function Qz(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Ub()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=tW(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function eW(){return window&&"IntersectionObserver"in window}function tW(e,t,n,r){try{if(!eW())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function nW(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return rW.bind(null,r)}function rW(e,t,n,r,i,o){$x[e]||(e="vectorize");var a=$x[e].actions,u=ia(n);if(a.forEach(function(d){u.addAction(d)}),!Ub())return n.transformation=u.transformation,!0;if(Jz(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=ev(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=xx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=xx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function iW(e,t,n){var r=ia(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function ph(e){e.cleanupCallbacks.forEach(function(t){t()})}var nv=function(e,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nv(e,t)};function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gc=function(){return gc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gc.apply(this,arguments)};function LP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var yc={exports:{}},_t={};/*
|
|
114
|
+
`.replace(/\s+/g,"")}}class SP extends Uc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function TP(e){return`${e}`.replace("b_","")}function Dz(){return{backgroundType:"auto"}}function Ez(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function jb(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Cz(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"border"})}function AP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=jb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Sz(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"borderGradient"})}function Tz(e){return{backgroundType:"color",color:TP(e)}}function Az(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"predominant"})}function Pz(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"predominantGradient"})}function _z(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function Rz(e){return TP(e)==="auto"?Dz():e instanceof $P?Ez(e):e instanceof xP?Cz(e):e instanceof DP?Sz(e):e instanceof CP?Az(e):e instanceof EP?Pz(e):e instanceof SP?_z(e):Tz(e)}function Oz(){return new kb("svg")}function Kb(){return new kb("auto")}function PP(){return new xP}function _P(){return new Uc("auto")}function RP(){return new DP}function OP(){return new EP}function MP(){return new CP}function FP(e){return new Uc(up(e))}function Mz(){return new $P}function kP(){return new SP}const BP={auto:_P,border:PP,borderGradient:RP,predominantGradient:OP,predominant:MP,color:FP,blurred:Mz,generativeFill:kP};function Fz(e){const{brightness:t,intensity:n}=e,r=BP.blurred();return r.brightness(t??xz),r.intensity(n??bP),r}function vx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function bx(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function kz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Bz(e){const{backgroundType:t}=e;switch(t){case"auto":return _P();case"blurred":return Fz(e);case"border":return bx(PP(),e);case"borderGradient":return vx(RP(),e);case"predominant":return bx(MP(),e);case"predominantGradient":return vx(OP(),e);case"generativeFill":return kz(kP(),e);default:return FP(e.color)}}class Iz extends Vb{background(t){return this._actionModel.background=Rz(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(Bz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Lz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class Vz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function Nz(e,t){return new Lz("crop",e,t)}function jz(e,t){return new Vz("fill",e,t)}function Kz(e,t){return new Iz("pad",e,t)}class Uz extends lP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=aP[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=oP[n]||n,a=new this(o);if(r){const u=OU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function cp(e){return new tv("f",e)}function dp(e){return new Uz(e)}function zz(){return new yP("north_east")}mx(70).color("black"),mx(40).color("white"),KU(),zU();var Wz=new lp().effect(UU()).delivery(dp("auto")).delivery(cp(Oz())),Hz=new lp().effect(WU()).delivery(dp("auto")).delivery(cp(Kb())),Gz=new lp().effect(jU(2e3)).delivery(dp("auto")).delivery(cp(Kb())),qz=new lp().resize(Kz("iw_div_2").aspectRatio(1).background(BP.auto())).resize(Nz(1,1).gravity(rz(zz()))).resize(jz().height("ih").width("iw")).delivery(dp("auto")).delivery(cp(Kb())),$x={vectorize:Wz,pixelate:Hz,blur:Gz,"predominant-color":qz},xx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wx={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Dx="?_a=",Yz=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=wx,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=ia(n);hh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(ia(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(ia(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(Dx),d=c[1]?"".concat(Dx).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(wx[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=ia(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);hh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),Zz=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Jz=typeof self=="object"&&self&&self.Object===Object&&self;Zz||Jz||Function("return this")();function Ub(){return typeof window<"u"}function Xz(e){return e instanceof HTMLImageElement}function Qz(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return eW.bind(null,r,o)}function eW(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Ub()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=nW(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function tW(){return window&&"IntersectionObserver"in window}function nW(e,t,n,r){try{if(!tW())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function rW(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return iW.bind(null,r)}function iW(e,t,n,r,i,o){$x[e]||(e="vectorize");var a=$x[e].actions,u=ia(n);if(a.forEach(function(d){u.addAction(d)}),!Ub())return n.transformation=u.transformation,!0;if(Xz(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=ev(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=xx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=xx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function oW(e,t,n){var r=ia(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function ph(e){e.cleanupCallbacks.forEach(function(t){t()})}var nv=function(e,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nv(e,t)};function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gc=function(){return gc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gc.apply(this,arguments)};function LP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var yc={exports:{}},_t={};/*
|
|
115
115
|
object-assign
|
|
116
116
|
(c) Sindre Sorhus
|
|
117
117
|
@license MIT
|
|
118
|
-
*/var Ex=Object.getOwnPropertySymbols,
|
|
118
|
+
*/var Ex=Object.getOwnPropertySymbols,aW=Object.prototype.hasOwnProperty,sW=Object.prototype.propertyIsEnumerable;function uW(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lW(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var VP=lW()?Object.assign:function(e,t){for(var n,r=uW(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)aW.call(n,a)&&(r[a]=n[a]);if(Ex){i=Ex(n);for(var u=0;u<i.length;u++)sW.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
119
119
|
* react.production.min.js
|
|
120
120
|
*
|
|
121
121
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the MIT license found in the
|
|
124
124
|
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/var zb=VP,Ci=typeof Symbol=="function"&&Symbol.for,zc=Ci?Symbol.for("react.element"):60103,
|
|
125
|
+
*/var zb=VP,Ci=typeof Symbol=="function"&&Symbol.for,zc=Ci?Symbol.for("react.element"):60103,cW=Ci?Symbol.for("react.portal"):60106,dW=Ci?Symbol.for("react.fragment"):60107,fW=Ci?Symbol.for("react.strict_mode"):60108,hW=Ci?Symbol.for("react.profiler"):60114,pW=Ci?Symbol.for("react.provider"):60109,mW=Ci?Symbol.for("react.context"):60110,gW=Ci?Symbol.for("react.forward_ref"):60112,yW=Ci?Symbol.for("react.suspense"):60113,vW=Ci?Symbol.for("react.memo"):60115,bW=Ci?Symbol.for("react.lazy"):60116,Cx=typeof Symbol=="function"&&Symbol.iterator;function Wc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jP={};function zu(e,t,n){this.props=e,this.context=t,this.refs=jP,this.updater=n||NP}zu.prototype.isReactComponent={};zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Wc(85));this.updater.enqueueSetState(this,e,t,"setState")};zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KP(){}KP.prototype=zu.prototype;function Wb(e,t,n){this.props=e,this.context=t,this.refs=jP,this.updater=n||NP}var Hb=Wb.prototype=new KP;Hb.constructor=Wb;zb(Hb,zu.prototype);Hb.isPureReactComponent=!0;var Gb={current:null},UP=Object.prototype.hasOwnProperty,zP={key:!0,ref:!0,__self:!0,__source:!0};function WP(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)UP.call(t,r)&&!zP.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:zc,type:e,key:o,ref:a,props:i,_owner:Gb.current}}function $W(e,t){return{$$typeof:zc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qb(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc}function xW(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var HP=/\/+/g,mh=[];function GP(e,t,n,r){if(mh.length){var i=mh.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function qP(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>mh.length&&mh.push(e)}function rv(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case zc:case cW:o=!0}}if(o)return n(r,e,t===""?"."+bg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+bg(i,a);o+=rv(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=Cx&&e[Cx]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+bg(i,a++),o+=rv(i,u,n,r);else if(i==="object")throw n=""+e,Error(Wc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function iv(e,t,n){return e==null?0:rv(e,"",t,n)}function bg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xW(e.key):t.toString(36)}function wW(e,t){e.func.call(e.context,t,e.count++)}function DW(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ov(e,r,n,function(o){return o}):e!=null&&(qb(e)&&(e=$W(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(HP,"$&/")+"/")+n)),r.push(e))}function ov(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(HP,"$&/")+"/"),t=GP(t,o,r,i),iv(e,DW,t),qP(t)}var YP={current:null};function _o(){var e=YP.current;if(e===null)throw Error(Wc(321));return e}var EW={ReactCurrentDispatcher:YP,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Gb,IsSomeRendererActing:{current:!1},assign:zb};_t.Children={map:function(e,t,n){if(e==null)return e;var r=[];return ov(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=GP(null,null,t,n),iv(e,wW,t),qP(t)},count:function(e){return iv(e,function(){return null},null)},toArray:function(e){var t=[];return ov(e,t,null,function(n){return n}),t},only:function(e){if(!qb(e))throw Error(Wc(143));return e}};_t.Component=zu;_t.Fragment=dW;_t.Profiler=hW;_t.PureComponent=Wb;_t.StrictMode=fW;_t.Suspense=yW;_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EW;_t.cloneElement=function(e,t,n){if(e==null)throw Error(Wc(267,e));var r=zb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Gb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)UP.call(t,c)&&!zP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:zc,type:e.type,key:i,ref:o,props:r,_owner:a}};_t.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:mW,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:pW,_context:e},e.Consumer=e};_t.createElement=WP;_t.createFactory=function(e){var t=WP.bind(null,e);return t.type=e,t};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:gW,render:e}};_t.isValidElement=qb;_t.lazy=function(e){return{$$typeof:bW,_ctor:e,_status:-1,_result:null}};_t.memo=function(e,t){return{$$typeof:vW,type:e,compare:t===void 0?null:t}};_t.useCallback=function(e,t){return _o().useCallback(e,t)};_t.useContext=function(e,t){return _o().useContext(e,t)};_t.useDebugValue=function(){};_t.useEffect=function(e,t){return _o().useEffect(e,t)};_t.useImperativeHandle=function(e,t,n){return _o().useImperativeHandle(e,t,n)};_t.useLayoutEffect=function(e,t){return _o().useLayoutEffect(e,t)};_t.useMemo=function(e,t){return _o().useMemo(e,t)};_t.useReducer=function(e,t,n){return _o().useReducer(e,t,n)};_t.useRef=function(e){return _o().useRef(e)};_t.useState=function(e){return _o().useState(e)};_t.version="16.14.0";var Pt={},CW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",SW=CW,TW=Function.call.bind(Object.prototype.hasOwnProperty),av=function(){};if(process.env.NODE_ENV!=="production"){var AW=SW,sv={},PW=TW;av=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function ZP(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(PW(e,o)){var a;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,r,n,null,AW)}catch(d){a=d}if(a&&!(a instanceof Error)&&av((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in sv)){sv[a.message]=!0;var c=i?i():"";av("Failed "+n+" type: "+a.message+(c??""))}}}}ZP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(sv={})};var _W=ZP;/** @license React v16.14.0
|
|
126
126
|
* react.development.js
|
|
127
127
|
*
|
|
128
128
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
129
129
|
*
|
|
130
130
|
* This source code is licensed under the MIT license found in the
|
|
131
131
|
* LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/process.env.NODE_ENV!=="production"&&function(){var e=VP,t=
|
|
132
|
+
*/process.env.NODE_ENV!=="production"&&function(){var e=VP,t=_W,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,P=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function k(B){if(B===null||typeof B!="object")return null;var X=E&&B[E]||B[T];return typeof X=="function"?X:null}var S={current:null},U={suspense:null},O={current:null},F=/^(.*)[\\\/]/;function G(B,X,ue){var be="";if(X){var Re=X.fileName,it=Re.replace(F,"");if(/^index\./.test(it)){var Ke=Re.match(F);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(F,"");it=Ot+"/"+it}}}be=" (at "+it+":"+X.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
|
|
133
133
|
in `+(B||"Unknown")+be}var K=1;function W(B){return B._status===K?B._result:null}function j(B,X,ue){var be=X.displayName||X.name||"";return B.displayName||(be!==""?ue+"("+be+")":ue)}function L(B){if(B==null)return null;if(typeof B.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return j(B,B.render,"ForwardRef");case $:return L(B.type);case x:return L(B.render);case C:{var X=B,ue=W(X);if(ue)return L(ue);break}}return null}var _={},M=null;function Y(B){M=B}_.getCurrentStack=null,_.getStackAddendum=function(){var B="";if(M){var X=L(M.type),ue=M._owner;B+=G(X,M._source,ue&&L(ue.type))}var be=_.getCurrentStack;return be&&(B+=be()||""),B};var V={current:!1},z={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:U,ReactCurrentOwner:O,IsSomeRendererActing:V,assign:e};e(z,{ReactDebugCurrentFrame:_,ReactComponentTreeHook:{}});function re(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("warn",B,ue)}}function oe(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("error",B,ue)}}function fe(B,X,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
|
|
134
134
|
in`)===0;if(!be){var Re=z.ReactDebugCurrentFrame,it=Re.getStackAddendum();it!==""&&(X+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+X),Function.prototype.apply.call(console[B],console,Ke);try{var ze=0,Ot="Warning: "+X.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var ie={};function Ee(B,X){{var ue=B.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",Re=be+"."+X;if(ie[Re])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X,be),ie[Re]=!0}}var $e={isMounted:function(B){return!1},enqueueForceUpdate:function(B,X,ue){Ee(B,"forceUpdate")},enqueueReplaceState:function(B,X,ue,be){Ee(B,"replaceState")},enqueueSetState:function(B,X,ue,be){Ee(B,"setState")}},ne={};Object.freeze(ne);function ye(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}ye.prototype.isReactComponent={},ye.prototype.setState=function(B,X){if(!(typeof B=="object"||typeof B=="function"||B==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,X,"setState")},ye.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};{var xe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},he=function(B,X){Object.defineProperty(ye.prototype,B,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var le in xe)xe.hasOwnProperty(le)&&he(le,xe[le])}function Fe(){}Fe.prototype=ye.prototype;function et(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,ye.prototype),dt.isPureReactComponent=!0;function Dn(){var B={current:null};return Object.seal(B),B}var yt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Z,te,pe;pe={};function Ce(B){if(yt.call(B,"ref")){var X=Object.getOwnPropertyDescriptor(B,"ref").get;if(X&&X.isReactWarning)return!1}return B.ref!==void 0}function De(B){if(yt.call(B,"key")){var X=Object.getOwnPropertyDescriptor(B,"key").get;if(X&&X.isReactWarning)return!1}return B.key!==void 0}function _e(B,X){var ue=function(){Z||(Z=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}function Ve(B,X){var ue=function(){te||(te=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}function mt(B){if(typeof B.ref=="string"&&O.current&&B.__self&&O.current.stateNode!==B.__self){var X=L(O.current.type);pe[X]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',L(O.current.type),B.ref),pe[X]=!0)}}var ut=function(B,X,ue,be,Re,it,Ke){var ze={$$typeof:i,type:B,key:X,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function Rt(B,X,ue){var be,Re={},it=null,Ke=null,ze=null,Ot=null;if(X!=null){Ce(X)&&(Ke=X.ref,mt(X)),De(X)&&(it=""+X.key),ze=X.__self===void 0?null:X.__self,Ot=X.__source===void 0?null:X.__source;for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(Re[be]=X[be])}var Wt=arguments.length-2;if(Wt===1)Re.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),Re.children=Mn}if(B&&B.defaultProps){var Vr=B.defaultProps;for(be in Vr)Re[be]===void 0&&(Re[be]=Vr[be])}if(it||Ke){var rr=typeof B=="function"?B.displayName||B.name||"Unknown":B;it&&_e(Re,rr),Ke&&Ve(Re,rr)}return ut(B,it,Ke,ze,Ot,O.current,Re)}function Pn(B,X){var ue=ut(B.type,X,B.ref,B._self,B._source,B._owner,B.props);return ue}function _n(B,X,ue){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var be,Re=e({},B.props),it=B.key,Ke=B.ref,ze=B._self,Ot=B._source,Wt=B._owner;if(X!=null){Ce(X)&&(Ke=X.ref,Wt=O.current),De(X)&&(it=""+X.key);var Mn;B.type&&B.type.defaultProps&&(Mn=B.type.defaultProps);for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(X[be]===void 0&&Mn!==void 0?Re[be]=Mn[be]:Re[be]=X[be])}var Fn=arguments.length-2;if(Fn===1)Re.children=ue;else if(Fn>1){for(var Vr=Array(Fn),rr=0;rr<Fn;rr++)Vr[rr]=arguments[rr+2];Re.children=Vr}return ut(B.type,it,Ke,ze,Ot,Wt,Re)}function Yt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}var Ln=".",tn=":";function vt(B){var X=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+B).replace(X,function(Re){return ue[Re]});return"$"+be}var Vn=!1,Cr=/\/+/g;function Rn(B){return(""+B).replace(Cr,"$&/")}var er=10,On=[];function tr(B,X,ue,be){if(On.length){var Re=On.pop();return Re.result=B,Re.keyPrefix=X,Re.func=ue,Re.context=be,Re.count=0,Re}else return{result:B,keyPrefix:X,func:ue,context:be,count:0}}function Nn(B){B.result=null,B.keyPrefix=null,B.func=null,B.context=null,B.count=0,On.length<er&&On.push(B)}function En(B,X,ue,be){var Re=typeof B;(Re==="undefined"||Re==="boolean")&&(B=null);var it=!1;if(B===null)it=!0;else switch(Re){case"string":case"number":it=!0;break;case"object":switch(B.$$typeof){case i:case o:it=!0}}if(it)return ue(be,B,X===""?Ln+Vt(B,0):X),1;var Ke,ze,Ot=0,Wt=X===""?Ln:X+tn;if(Array.isArray(B))for(var Mn=0;Mn<B.length;Mn++)Ke=B[Mn],ze=Wt+Vt(Ke,Mn),Ot+=En(Ke,ze,ue,be);else{var Fn=k(B);if(typeof Fn=="function"){Fn===B.entries&&(Vn||re("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Vn=!0);for(var Vr=Fn.call(B),rr,Ss=0;!(rr=Vr.next()).done;)Ke=rr.value,ze=Wt+Vt(Ke,Ss++),Ot+=En(Ke,ze,ue,be)}else if(Re==="object"){var wa="";wa=" If you meant to render a collection of children, use an array instead."+_.getStackAddendum();var Da=""+B;throw Error("Objects are not valid as a React child (found: "+(Da==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":Da)+")."+wa)}}return Ot}function Ir(B,X,ue){return B==null?0:En(B,"",X,ue)}function Vt(B,X){return typeof B=="object"&&B!==null&&B.key!=null?vt(B.key):X.toString(36)}function Cn(B,X,ue){var be=B.func,Re=B.context;be.call(Re,X,B.count++)}function Ne(B,X,ue){if(B==null)return B;var be=tr(null,null,X,ue);Ir(B,Cn,be),Nn(be)}function tt(B,X,ue){var be=B.result,Re=B.keyPrefix,it=B.func,Ke=B.context,ze=it.call(Ke,X,B.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,Re+(ze.key&&(!X||X.key!==ze.key)?Rn(ze.key)+"/":"")+ue)),be.push(ze))}function nn(B,X,ue,be,Re){var it="";ue!=null&&(it=Rn(ue)+"/");var Ke=tr(X,it,be,Re);Ir(B,tt,Ke),Nn(Ke)}function fr(B,X,ue){if(B==null)return B;var be=[];return nn(B,be,null,X,ue),be}function Te(B){return Ir(B,function(){return null},null)}function je(B){var X=[];return nn(B,X,null,function(ue){return ue}),X}function Ye(B){if(!Yt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}function Ft(B,X){X===void 0?X=null:X!==null&&typeof X!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var ue={$$typeof:f,_calculateChangedBits:X,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,Re=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return Re||(Re=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(B){var X={$$typeof:C,_ctor:B,_status:-1,_result:null};{var ue,be;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return ue},set:function(Re){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=Re,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(Re){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Re,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function jn(B){return B!=null&&B.$$typeof===$?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?oe("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&(B.defaultProps!=null||B.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:B}}function Kt(B){return typeof B=="string"||typeof B=="function"||B===a||B===h||B===c||B===u||B===g||B===v||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===$||B.$$typeof===d||B.$$typeof===f||B.$$typeof===m||B.$$typeof===y||B.$$typeof===D||B.$$typeof===P||B.$$typeof===x)}function an(B,X){return Kt(B)||oe("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),{$$typeof:$,type:B,compare:X===void 0?null:X}}function kt(){var B=S.current;if(B===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
135
135
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -143,7 +143,7 @@ Check the render method of \``+B+"`."}return""}function Lr(B){if(B!==void 0){var
|
|
|
143
143
|
|
|
144
144
|
Check your code at `+X+":"+ue+"."}return""}function tl(B){return B!=null?Lr(B.__source):""}var bs={};function nl(B){var X=Fo();if(!X){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(X=`
|
|
145
145
|
|
|
146
|
-
Check the top-level render call using <`+ue+">.")}return X}function ko(B,X){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=nl(X);if(!bs[ue]){bs[ue]=!0;var be="";B&&B._owner&&B._owner!==O.current&&(be=" It was passed a child from "+L(B._owner.type)+"."),Y(B),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),Y(null)}}}function Ai(B,X){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&ko(be,X)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var Re=k(B);if(typeof Re=="function"&&Re!==B.entries)for(var it=Re.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&ko(Ke.value,X)}}}function ba(B){{var X=B.type;if(X==null||typeof X=="string")return;var ue=L(X),be;if(typeof X=="function")be=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===m||X.$$typeof===$))be=X.propTypes;else return;be?(Y(B),t(be,B.props,"prop",ue,_.getStackAddendum),Y(null)):X.PropTypes!==void 0&&!Kn&&(Kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $a(B){{Y(B);for(var X=Object.keys(B.props),ue=0;ue<X.length;ue++){var be=X[ue];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null)}}function $s(B,X,ue){var be=Kt(B);if(!be){var Re="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=tl(X);it?Re+=it:Re+=Fo();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(L(B.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=Rt.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?$a(ze):ba(ze),ze}var xs=!1;function rl(B){var X=$s.bind(null,B);return X.type=B,xs||(xs=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),X}function ws(B,X,ue){for(var be=_n.apply(this,arguments),Re=2;Re<arguments.length;Re++)Ai(arguments[Re],be.type);return ba(be),be}try{var xa=Object.freeze({}),Ds=new Map([[xa,null]]),Qi=new Set([xa]);Ds.set(0,0),Qi.add(0)}catch{}var il=$s,Es=ws,Bo=rl,Cs={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Cs,Pt.Component=ye,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pt.cloneElement=Es,Pt.createContext=Ft,Pt.createElement=il,Pt.createFactory=Bo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=Mo,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Ro,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Oo,Pt.useMemo=gt,Pt.useReducer=va,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?yc.exports=_t:yc.exports=Pt;var nu=yc.exports,$g={sdkSemver:"1.13.1",techVersion:nu.version,sdkCode:"J"},_W=function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=nu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new vU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=LP(n,["cldImg","plugins"]);if(Ub())return nu.createElement("img",gc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=iW(this.props.plugins,this.props.cldImg,$g);return nu.createElement("img",gc({},r,{src:i}))},t}(nu.Component),RW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=yc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new qz(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){ph(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ph(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return RW.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=LP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return nu.createElement("video",gc({},r,{ref:this.attachRef}))},t})(yc.exports.Component);function OW(e){return!(typeof e!="object"||e instanceof Array)}class MW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return OW(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const Sx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Yb extends MW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Sx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Sx);return new Yb(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class vc{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class FW extends Error{constructor(t="Unsupported"){super(t)}}function Zb(e){return new FW(e)}function kW(){return this._qualifierModel||{error:Zb(`unsupported qualifier ${this.constructor.name}`)}}class BW{constructor(){this._qualifierModel={}}toJson(){return kW.apply(this)}}class fp extends BW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof vc?this.qualifierValue=n:(this.qualifierValue=new vc,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class sa extends fp{constructor(t,n){let r;n?r=new vc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function IW(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function LW(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Zb(`unsupported action ${this.constructor.name}`)}}class VW{constructor(){this._actionModel={}}toJson(){return LW.apply(this)}}class Jb extends VW{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),IW(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new sa(r)):this.qualifiers.set(n,new fp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new sa(t)):t instanceof sa&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function NW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class jW extends Jb{constructor(t){super(),this._actionModel={},this.addQualifier(new fp("b",new vc(NW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Tx{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Zb(`unsupported action ${this.constructor.name}`)}}}function KW(e){const t=e;return"error"in t&&!!t.error}function UW(){return new sa("lossy")}function zW(){return new sa("preserve_transparency")}function WW(e){return new sa("progressive",e)}class HW extends vc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const GW={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},qW={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},YW={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},ZW={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},JW={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},XW={444:"CHROMA_444",420:"CHROMA_420"},QW={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ms(XW);ms(QW);ms(GW);const eH=ms(qW);ms(YW);ms(ZW);ms(JW);class tH extends Jb{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof HW?i=n.getValue():i=n,this._actionModel.actionType=eH[t],this._actionModel[r]=i,this.addQualifier(new fp(t,n))}}class nH extends sa{constructor(t){super("progressive",t)}}class gh extends tH{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(UW()),this}progressive(t){return t instanceof nH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(WW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(zW()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class hp{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Tx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hp?this.actions=this.actions.concat(t.actions):this.actions.push(new Tx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new jW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Jb;let r=t;return typeof t=="string"&&(r=new sa(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(KW(r))return r;t.push(r)}return{actions:t}}}class rH extends hp{}class iH extends hp{}function oH(e){return e.match(/^https?:\//)}function aH(e){return e.indexOf("/")<0}function sH(e){return e.match(/^v[0-9]+/)}function uH(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function lH(e){return e||"image"}function cH(e){return e||"upload"}function dH(e,t,n){const r=n!==!1;return t?`v${t}`:sH(e)||oH(e)||aH(e)?"":r?"v1":""}function Xb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=fH(i,r/i.length)),i.slice(0,r)+String(e))}function fH(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const hH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yh={};let Ax=0;hH.split("").forEach(e=>{let t=Ax.toString(2);t=Xb(t,6,"0"),yh[t]=e,Ax++});function pH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function mH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return Xb(t,2,"0")}).join(".")}function Px(e){let t="";const r=e.split(".").length*6,i=pH(e),o=mH(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=Xb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=yh[c]}),t}function gH(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const yH="1.21.0";function vH(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return yh[o]+yh[a]}function bH(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function $H(e){const t={techVersion:bH(),sdkCode:"T",sdkSemver:yH.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function _x(e){const t=$H(e),n=gH(t);try{const r=xH(n.techVersion),i=Px(n.sdkSemver),o=Px(r),a=vH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function xH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Rx={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class wH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Yb(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=lH(this.assetType),n=cH(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Rx[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Rx).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=uH(this.cloudName,this.urlConfig),i=t?t.toString():"",o=dH(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",_x(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${_x(n)}`);return d?`${u}?${d}`:u}}}class JP extends wH{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class DH extends JP{constructor(t,n,r){super(t,n,r,new rH)}}class EH extends JP{constructor(t,n,r){super(t,n,r,new iH),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class CH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new DH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new EH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Ox;function SH(){return Ox||(Ox=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
146
|
+
Check the top-level render call using <`+ue+">.")}return X}function ko(B,X){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=nl(X);if(!bs[ue]){bs[ue]=!0;var be="";B&&B._owner&&B._owner!==O.current&&(be=" It was passed a child from "+L(B._owner.type)+"."),Y(B),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),Y(null)}}}function Ai(B,X){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&ko(be,X)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var Re=k(B);if(typeof Re=="function"&&Re!==B.entries)for(var it=Re.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&ko(Ke.value,X)}}}function ba(B){{var X=B.type;if(X==null||typeof X=="string")return;var ue=L(X),be;if(typeof X=="function")be=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===m||X.$$typeof===$))be=X.propTypes;else return;be?(Y(B),t(be,B.props,"prop",ue,_.getStackAddendum),Y(null)):X.PropTypes!==void 0&&!Kn&&(Kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $a(B){{Y(B);for(var X=Object.keys(B.props),ue=0;ue<X.length;ue++){var be=X[ue];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null)}}function $s(B,X,ue){var be=Kt(B);if(!be){var Re="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=tl(X);it?Re+=it:Re+=Fo();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(L(B.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=Rt.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?$a(ze):ba(ze),ze}var xs=!1;function rl(B){var X=$s.bind(null,B);return X.type=B,xs||(xs=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),X}function ws(B,X,ue){for(var be=_n.apply(this,arguments),Re=2;Re<arguments.length;Re++)Ai(arguments[Re],be.type);return ba(be),be}try{var xa=Object.freeze({}),Ds=new Map([[xa,null]]),Qi=new Set([xa]);Ds.set(0,0),Qi.add(0)}catch{}var il=$s,Es=ws,Bo=rl,Cs={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Cs,Pt.Component=ye,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pt.cloneElement=Es,Pt.createContext=Ft,Pt.createElement=il,Pt.createFactory=Bo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=Mo,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Ro,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Oo,Pt.useMemo=gt,Pt.useReducer=va,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?yc.exports=_t:yc.exports=Pt;var nu=yc.exports,$g={sdkSemver:"1.13.1",techVersion:nu.version,sdkCode:"J"},RW=function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=nu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new bU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=LP(n,["cldImg","plugins"]);if(Ub())return nu.createElement("img",gc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=oW(this.props.plugins,this.props.cldImg,$g);return nu.createElement("img",gc({},r,{src:i}))},t}(nu.Component),OW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=yc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Yz(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){ph(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ph(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return OW.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=LP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return nu.createElement("video",gc({},r,{ref:this.attachRef}))},t})(yc.exports.Component);function MW(e){return!(typeof e!="object"||e instanceof Array)}class FW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return MW(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const Sx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Yb extends FW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Sx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Sx);return new Yb(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class vc{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class kW extends Error{constructor(t="Unsupported"){super(t)}}function Zb(e){return new kW(e)}function BW(){return this._qualifierModel||{error:Zb(`unsupported qualifier ${this.constructor.name}`)}}class IW{constructor(){this._qualifierModel={}}toJson(){return BW.apply(this)}}class fp extends IW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof vc?this.qualifierValue=n:(this.qualifierValue=new vc,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class sa extends fp{constructor(t,n){let r;n?r=new vc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function LW(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function VW(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Zb(`unsupported action ${this.constructor.name}`)}}class NW{constructor(){this._actionModel={}}toJson(){return VW.apply(this)}}class Jb extends NW{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),LW(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new sa(r)):this.qualifiers.set(n,new fp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new sa(t)):t instanceof sa&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function jW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class KW extends Jb{constructor(t){super(),this._actionModel={},this.addQualifier(new fp("b",new vc(jW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Tx{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Zb(`unsupported action ${this.constructor.name}`)}}}function UW(e){const t=e;return"error"in t&&!!t.error}function zW(){return new sa("lossy")}function WW(){return new sa("preserve_transparency")}function HW(e){return new sa("progressive",e)}class GW extends vc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const qW={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},YW={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},ZW={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},JW={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},XW={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},QW={444:"CHROMA_444",420:"CHROMA_420"},eH={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ms(QW);ms(eH);ms(qW);const tH=ms(YW);ms(ZW);ms(JW);ms(XW);class nH extends Jb{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof GW?i=n.getValue():i=n,this._actionModel.actionType=tH[t],this._actionModel[r]=i,this.addQualifier(new fp(t,n))}}class rH extends sa{constructor(t){super("progressive",t)}}class gh extends nH{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(zW()),this}progressive(t){return t instanceof rH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(HW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(WW()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class hp{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Tx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hp?this.actions=this.actions.concat(t.actions):this.actions.push(new Tx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new KW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Jb;let r=t;return typeof t=="string"&&(r=new sa(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(UW(r))return r;t.push(r)}return{actions:t}}}class iH extends hp{}class oH extends hp{}function aH(e){return e.match(/^https?:\//)}function sH(e){return e.indexOf("/")<0}function uH(e){return e.match(/^v[0-9]+/)}function lH(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function cH(e){return e||"image"}function dH(e){return e||"upload"}function fH(e,t,n){const r=n!==!1;return t?`v${t}`:uH(e)||aH(e)||sH(e)?"":r?"v1":""}function Xb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=hH(i,r/i.length)),i.slice(0,r)+String(e))}function hH(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const pH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yh={};let Ax=0;pH.split("").forEach(e=>{let t=Ax.toString(2);t=Xb(t,6,"0"),yh[t]=e,Ax++});function mH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function gH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return Xb(t,2,"0")}).join(".")}function Px(e){let t="";const r=e.split(".").length*6,i=mH(e),o=gH(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=Xb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=yh[c]}),t}function yH(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const vH="1.21.0";function bH(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return yh[o]+yh[a]}function $H(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function xH(e){const t={techVersion:$H(),sdkCode:"T",sdkSemver:vH.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function _x(e){const t=xH(e),n=yH(t);try{const r=wH(n.techVersion),i=Px(n.sdkSemver),o=Px(r),a=bH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function wH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Rx={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class DH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Yb(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=cH(this.assetType),n=dH(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Rx[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Rx).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=lH(this.cloudName,this.urlConfig),i=t?t.toString():"",o=fH(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",_x(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${_x(n)}`);return d?`${u}?${d}`:u}}}class JP extends DH{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class EH extends JP{constructor(t,n,r){super(t,n,r,new iH)}}class CH extends JP{constructor(t,n,r){super(t,n,r,new oH),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class SH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new EH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new CH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Ox;function TH(){return Ox||(Ox=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
147
147
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
148
148
|
*
|
|
149
149
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
@@ -151,27 +151,27 @@ Check the top-level render call using <`+ue+">.")}return X}function ko(B,X){if(!
|
|
|
151
151
|
* @namespace
|
|
152
152
|
* @public
|
|
153
153
|
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var L=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,L+"g")}for(var _=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var V=M.value;if(D.length>y.length)return;if(!(V instanceof c)){var z=1,re;if(W){if(re=d(_,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,V=y.slice(Y,fe),re.index-=Y}else if(re=d(_,0,V,K),!re)continue;var Ee=re.index,$e=re[0],ne=V.slice(0,Ee),ye=V.slice(Ee+$e.length),xe=Y+V.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Li<"u"&&(Li.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
|
|
154
|
-
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var TH
|
|
155
|
-
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},XP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},AH=(e,t)=>{t.shouldUseNativeValidation&&XP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(PH(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},PH=(e,t)=>e.some(n=>n.startsWith(t+"."));function _H(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&XP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:AH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=iA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function RH(){if(Fx)return wg;Fx=1;var e=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return wg=e,wg}var Dg,kx;function OH(){if(kx)return Dg;kx=1;var e=RH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function QP(){if(Bx)return Eg;Bx=1;var e=OH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function MH(){if(Ix)return Cg;Ix=1;var e=QP(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function FH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function kH(){if(Vx)return Tg;Vx=1;var e=QP(),t=MH(),n=FH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function BH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function IH(){if(jx)return Pg;jx=1;var e=kH(),t=BH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var LH=IH();const VH=To(LH),Kx=new Set;function pp(e,t,n){e||Kx.has(t)||(console.warn(t),Kx.add(t))}function NH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const uv=e=>Array.isArray(e);function e6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bc(e){return typeof e=="string"||Array.isArray(e)}function Ux(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qb(e,t,n,r){if(typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function gp(e,t,n){const r=e.getProps();return Qb(r,t,n!==void 0?n:r.custom,e)}const e0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t0=["initial",...e0],Hc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Hc),xo=e=>e*1e3,ua=e=>e/1e3,jH={type:"spring",stiffness:500,damping:25,restSpeed:10},KH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),UH={type:"keyframes",duration:.8},zH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WH=(e,{keyframes:t})=>t.length>2?UH:gs.has(e)?e.startsWith("scale")?KH(t[1]):jH:zH;function t6(e,t){return e?e[t]||e.default||e:void 0}const HH={skipAnimations:!1,useManualTiming:!1},GH=e=>e!==null;function yp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(GH),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const fa=e=>e;let Wu=fa,cs=fa;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cs=(e,t)=>{if(!e)throw new Error(t)});function qH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],YH=40;function n6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=qH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,YH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:kr,cancel:lv,state:vh,steps:Ure}=n6(typeof requestAnimationFrame<"u"?requestAnimationFrame:fa,!0),r6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ZH=1e-7,JH=12;function XH(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=r6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>ZH&&++u<JH);return a}function Gc(e,t,n,r){if(e===t&&n===r)return fa;const i=o=>XH(o,0,1,e,n);return o=>o===0||o===1?o:r6(i(o),t,r)}const i6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o6=e=>t=>1-e(1-t),a6=Gc(.33,1.53,.69,.99),n0=o6(a6),s6=i6(n0),u6=e=>(e*=2)<1?.5*n0(e):.5*(2-Math.pow(2,-10*(e-1))),r0=e=>1-Math.sin(Math.acos(e)),QH=o6(r0),l6=i6(r0),c6=e=>/^0[^.\s]+$/u.test(e);function eG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c6(e):!0}const d6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),f6=e=>t=>typeof t=="string"&&t.startsWith(e),h6=f6("--"),tG=f6("var(--"),i0=e=>tG(e)?nG.test(e.split("/*")[0].trim()):!1,nG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iG(e){const t=rG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const oG=4;function p6(e,t,n=1){cs(n<=oG,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=iG(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return d6(a)?parseFloat(a):a}return i0(i)?p6(i,t,n+1):i}const ds=(e,t,n)=>n>t?t:n<e?e:n,Hu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Hu,transform:e=>ds(0,1,e)},hf={...Hu,default:1},qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=qc("deg"),gu=qc("%"),Ze=qc("px"),aG=qc("vh"),sG=qc("vw"),zx={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},uG=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wx=e=>e===Hu||e===Ze,Hx=(e,t)=>parseFloat(e.split(", ")[t]),Gx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Hx(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Hx(o[1],e):0}},lG=new Set(["x","y","z"]),cG=Hc.filter(e=>!lG.has(e));function dG(e){const t=[];return cG.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _u={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Gx(4,13),y:Gx(5,14)};_u.translateX=_u.x;_u.translateY=_u.y;const m6=e=>t=>t.test(e),fG={test:e=>e==="auto",parse:e=>e},g6=[Hu,Ze,gu,Yo,sG,aG,fG],qx=e=>g6.find(m6(e)),Xa=new Set;let cv=!1,dv=!1;function y6(){if(dv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=dG(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}dv=!1,cv=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function v6(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dv=!0)})}function hG(){v6(),y6()}let o0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),cv||(cv=!0,kr.read(v6),kr.resolveKeyframes(y6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const nc=e=>Math.round(e*1e5)/1e5,a0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pG(e){return e==null}const mG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s0=(e,t)=>n=>!!(typeof n=="string"&&mG.test(n)&&n.startsWith(e)||t&&!pG(n)&&Object.prototype.hasOwnProperty.call(n,t)),b6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(a0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},gG=e=>ds(0,255,e),_g={...Hu,transform:e=>Math.round(gG(e))},Ha={test:s0("rgb","red"),parse:b6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_g.transform(e)+", "+_g.transform(t)+", "+_g.transform(n)+", "+nc($c.transform(r))+")"};function yG(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:s0("#"),parse:yG,transform:Ha.transform},ru={test:s0("hsl","hue"),parse:b6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(nc(t))+", "+gu.transform(nc(n))+", "+nc($c.transform(r))+")"},qn={test:e=>Ha.test(e)||fv.test(e)||ru.test(e),parse:e=>Ha.test(e)?Ha.parse(e):ru.test(e)?ru.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):ru.transform(e)},vG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(a0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(vG))===null||n===void 0?void 0:n.length)||0)>0}const $6="number",x6="color",$G="var",xG="var(",Yx="${}",wG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(wG,c=>(qn.test(c)?(r.color.push(o),i.push(x6),n.push(qn.parse(c))):c.startsWith(xG)?(r.var.push(o),i.push($G),n.push(c)):(r.number.push(o),i.push($6),n.push(parseFloat(c))),++o,Yx)).split(Yx);return{values:n,split:u,indexes:r,types:i}}function w6(e){return xc(e).values}function D6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===$6?o+=nc(i[a]):u===x6?o+=qn.transform(i[a]):o+=i[a]}return o}}const DG=e=>typeof e=="number"?0:e;function EG(e){const t=w6(e);return D6(e)(t.map(DG))}const Gu={test:bG,parse:w6,createTransformer:D6,getAnimatableNone:EG},CG=new Set(["brightness","contrast","saturate","opacity"]);function SG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(a0)||[];if(!r)return e;const i=n.replace(r,"");let o=CG.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const TG=/\b([a-z-]*)\(.*?\)/gu,hv={...Gu,getAnimatableNone:e=>{const t=e.match(TG);return t?t.map(SG).join(" "):e}},AG={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},PG={rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Yo,skewX:Yo,skewY:Yo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:$c,originX:zx,originY:zx,originZ:Ze},Zx={...Hu,transform:Math.round},u0={...AG,...PG,zIndex:Zx,size:Ze,fillOpacity:$c,strokeOpacity:$c,numOctaves:Zx},_G={...u0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},l0=e=>_G[e];function E6(e,t){let n=l0(e);return n!==hv&&(n=Gu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const RG=new Set(["auto","none","0"]);function OG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!RG.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=E6(n,i)}let C6=class extends o0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),i0(d))){const f=p6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!uG.has(r)||t.length!==2)return;const[i,o]=t,a=qx(i),u=qx(o);if(a!==u)if(Wx(a)&&Wx(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)eG(t[i])&&r.push(i);r.length&&OG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_u[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=_u[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};function c0(e){return typeof e=="function"}let kf;function MG(){kf=void 0}const la={now:()=>(kf===void 0&&la.set(vh.isProcessing||HH.useManualTiming?vh.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(MG)}},Jx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gu.test(e)||e==="0")&&!e.startsWith("url("));function FG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function kG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Jx(i,t),u=Jx(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:FG(e)||(n==="spring"||c0(n))&&r}const BG=40;let S6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=la.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>BG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=la.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!kG(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(yp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const d0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},T6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(d0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function A6(e,t){return t?e*(1e3/t):0}const IG=5;function P6(e,t,n){const r=Math.max(t-IG,0);return A6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xx=.001;function LG({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=xo(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ds(Jt.minDamping,Jt.maxDamping,a),e=ds(Jt.minDuration,Jt.maxDuration,ua(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=pv(d,a),v=Math.exp(-h);return Xx-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=pv(Math.pow(d,2),a);return(-i(d)+Xx>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=NG(i,o,u);if(e=xo(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const VG=12;function NG(e,t,n){let r=n;for(let i=1;i<VG;i++)r=r-e(r)/t(r);return r}function pv(e,t){return e*Math.sqrt(1-t*t)}const mv=2e4;function _6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mv;)t+=n,r=e.next(t);return t>=mv?1/0:t}const jG=["duration","bounce"],KG=["stiffness","damping","mass"];function Qx(e,t){return t.some(n=>e[n]!==void 0)}function UG(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!Qx(e,KG)&&Qx(e,jG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ds(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=LG(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function R6(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=UG({...n,velocity:-ua(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=ua(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=pv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?xo(v):P6(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_6(P),mv),T=T6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function ew({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=R6({keyframes:[m.value,v(m.value)],velocity:P6(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const zG=Gc(.42,0,1,1),WG=Gc(0,0,.58,1),O6=Gc(.42,0,.58,1),HG=e=>Array.isArray(e)&&typeof e[0]!="number",f0=e=>Array.isArray(e)&&typeof e[0]=="number",tw={linear:fa,easeIn:zG,easeInOut:O6,easeOut:WG,circIn:r0,circInOut:l6,circOut:QH,backIn:n0,backInOut:s6,backOut:a6,anticipate:u6},nw=e=>{if(f0(e)){cs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Gc(t,n,r,i)}else if(typeof e=="string")return cs(tw[e]!==void 0,`Invalid easing type '${e}'`),tw[e];return e},GG=(e,t)=>n=>t(e(n)),vp=(...e)=>e.reduce(GG),bp=(e,t,n)=>e+(t-e)*n;function Rg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Rg(c,u,e+1/3),o=Rg(c,u,e),a=Rg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function bh(e,t){return n=>n>0?t:e}const Og=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},YG=[fv,Ha,ru],ZG=e=>YG.find(t=>t.test(e));function rw(e){const t=ZG(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ru&&(n=qG(n)),n}const iw=(e,t)=>{const n=rw(e),r=rw(t);if(!n||!r)return bh(e,t);const i={...n};return o=>(i.red=Og(n.red,r.red,o),i.green=Og(n.green,r.green,o),i.blue=Og(n.blue,r.blue,o),i.alpha=bp(n.alpha,r.alpha,o),Ha.transform(i))},gv=new Set(["none","hidden"]);function JG(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function XG(e,t){return n=>bp(e,t,n)}function h0(e){return typeof e=="number"?XG:typeof e=="string"?i0(e)?bh:qn.test(e)?iw:tq:Array.isArray(e)?M6:typeof e=="object"?qn.test(e)?iw:QG:bh}function M6(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>h0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function QG(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=h0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function eq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const tq=(e,t)=>{const n=Gu.createTransformer(t),r=xc(e),i=xc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?JG(e,t):vp(M6(eq(r,i),i.values),n):(Wu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),bh(e,t))};function F6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?bp(e,t,n):h0(e)(e,t)}function nq(e,t,n){const r=[],i=n||F6,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||fa:t;u=vp(c,u)}r.push(u)}return r}function rq(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(cs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=nq(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=d0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(ds(e[0],e[o-1],d)):c}function iq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=d0(0,t,r);e.push(bp(n,1,i))}}function oq(e){const t=[0];return iq(t,e.length-1),t}function aq(e,t){return e.map(n=>n*t)}function sq(e,t){return e.map(()=>t||O6).splice(0,e.length-1)}function $h({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=HG(r)?r.map(nw):nw(r),o={done:!1,value:t[0]},a=aq(n&&n.length===t.length?n:oq(t),e),u=rq(a,t,{ease:Array.isArray(i)?i:sq(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const uq=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>lv(t),now:()=>vh.isProcessing?vh.timestamp:la.now()}},lq={decay:ew,inertia:ew,tween:$h,keyframes:$h,spring:R6},cq=e=>e/100;let p0=class extends S6{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||o0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=c0(n)?n:lq[n]||$h;let c,d;u!==$h&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=vp(cq,F6(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=ds(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=yp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ua(t.calculatedDuration):0}get time(){return ua(this.currentTime)}set time(t){t=xo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=uq,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const dq=new Set(["opacity","clipPath","filter","transform"]);function m0(e){let t;return()=>(t===void 0&&(t=e()),t)}const fq={linearEasing:void 0};function hq(e,t){const n=m0(e);return()=>{var r;return(r=fq[t])!==null&&r!==void 0?r:n()}}const xh=hq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function k6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in yv||xh())||f0(e)||Array.isArray(e)&&e.every(k6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function B6(e,t){if(e)return typeof e=="function"&&xh()?T6(e,t):f0(e)?Wl(e):Array.isArray(e)?e.map(n=>B6(n,t)||yv.easeOut):yv[e]}function pq(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=B6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ow(e,t){e.timeline=t,e.onfinish=null}const mq=m0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wh=10,gq=2e4;function yq(e){return c0(e.type)||e.type==="spring"||!k6(e.ease)}function vq(e,t){const n=new p0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<gq;)r=n.sample(o),i.push(r.value),o+=wh;return{times:void 0,keyframes:i,duration:o-wh,ease:"linear"}}const I6={anticipate:u6,backInOut:s6,circInOut:l6};function bq(e){return e in I6}let aw=class extends S6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new C6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&bq(a)&&(a=I6[a]),yq(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=vq(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=pq(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ow(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(yp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ua(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ua(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return fa;const{animation:r}=n;ow(r,t)}return fa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new p0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=xo(this.time);d.setWithVelocity(v.sample($-wh).value,v.sample($).value,wh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return mq()&&r&&dq.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const $q=m0(()=>window.ScrollTimeline!==void 0);let xq=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>$q()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function wq({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Dq=(e,t,n,r={},i,o)=>a=>{const u=t6(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-xo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};wq(u)||(f={...f,...WH(e,f)}),f.duration&&(f.duration=xo(f.duration)),f.repeatDelay&&(f.repeatDelay=xo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=yp(f.keyframes,u);if(m!==void 0)return kr.update(()=>{f.onUpdate(m),f.onComplete()}),new xq([])}return!o&&aw.supports(f)?new aw(f):new p0(f)},Eq=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Cq=e=>uv(e)?e[e.length-1]||0:e;function Sq(e,t){e.indexOf(t)===-1&&e.push(t)}function Tq(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let L6=class{constructor(){this.subscriptions=[]}add(t){return Sq(this.subscriptions,t),()=>Tq(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const sw=30,Aq=e=>!isNaN(parseFloat(e));let Pq=class{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=la.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=la.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Aq(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new L6);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=la.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sw);return A6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Dh(e,t){return new Pq(e,t)}function _q(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dh(n))}function Rq(e,t){const n=gp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=Cq(o[a]);_q(e,a,u)}}const g0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oq="framerAppearId",V6="data-"+g0(Oq);function Mq(e){return e.props[V6]}const ur=e=>!!(e&&e.getVelocity);function Fq(e){return!!(ur(e)&&e.add)}function kq(e,t){const n=e.getValue("willChange");if(Fq(n))return n.add(t)}function Bq({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&Bq(f,h))continue;const v={delay:n,...t6(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=Mq(e);if(x){const y=window.MotionHandoffAnimation(x,h,kr);y!==null&&(v.startTime=y,$=!0)}}kq(e,h),m.start(Dq(h,m,g,e.shouldReduceMotion&&gs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{kr.update(()=>{u&&Rq(e,u)})}),d}function vv(e,t,n={}){var r;const i=gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(N6(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return Iq(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function Iq(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Lq).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Lq(e,t){return e.sortNodePosition(t)}function Vq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?gp(e,t,n.custom):t;r=Promise.all(N6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Nq=t0.length;function j6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?j6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Nq;n++){const r=t0[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const jq=[...e0].reverse(),Kq=e0.length;function Uq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vq(e,n,r)))}function zq(e){let t=Uq(e),n=uw(),r=!0;const i=c=>(d,f)=>{var h;const m=gp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=j6(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<Kq;C++){const x=jq[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||mp(D)||typeof D=="boolean")continue;const k=Wq(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!e6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=uw(),r=!0}}}function Wq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!e6(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uw(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}let qu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Hq=class extends qu{constructor(t){super(t),t.animationState||(t.animationState=zq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},Gq=0,qq=class extends qu{constructor(){super(...arguments),this.id=Gq++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const Yq={animation:{Feature:Hq},exit:{Feature:qq}},Zq={x:!1,y:!1};function Jq(){return Zq.y}const Xq=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function K6(e){return{point:{x:e.pageX,y:e.pageY}}}function lw(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function U6(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const cw=()=>({min:0,max:0}),z6=()=>({x:cw(),y:cw()});function Qq({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function tY(e,t){return Qq(eY(e.getBoundingClientRect(),t))}const W6=b.createContext(null),nY=b.createContext({}),rY=b.createContext({}),iY={},{schedule:oY,cancel:tie}=n6(queueMicrotask,!1);function aY(e){const t=ur(e)?e.get():e;return Eq(t)?t.toValue():t}function sY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function H6(e,t){const n=sY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dw(e){return t=>{t.pointerType==="touch"||Jq()||e(t)}}function uY(e,t,n={}){const[r,i,o]=H6(e,n),a=dw(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=dw(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function fw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let lY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=uY(t,n=>(fw(this.node,n,"Start"),r=>fw(this.node,r,"End"))))}unmount(){}},cY=class extends qu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vp(lw(this.node.current,"focus",()=>this.onFocus()),lw(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};const Hl=new WeakSet;function hw(e){return t=>{t.key==="Enter"&&e(t)}}function Mg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hw(()=>{if(Hl.has(n))return;Mg(n,"down");const i=hw(()=>{Mg(n,"up")}),o=()=>Mg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},fY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hY(e){return fY.has(e.tagName)||e.tabIndex!==-1}const G6=(e,t)=>t?e===t?!0:G6(e,t.parentElement):!1;function pw(e){return Xq(e)&&!0}function pY(e,t,n={}){const[r,i,o]=H6(e,n),a=u=>{const c=u.currentTarget;if(!pw(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!pw(g)||!Hl.has(c))&&(Hl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||G6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{hY(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>dY(d,i),i)}),o}function mw(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let mY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=pY(t,n=>(mw(this.node,n,"Start"),(r,{success:i})=>mw(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const bv=new WeakMap,Fg=new WeakMap,gY=e=>{const t=bv.get(e.target);t&&t(e)},yY=e=>{e.forEach(gY)};function vY({root:e,...t}){const n=e||document;Fg.has(n)||Fg.set(n,{});const r=Fg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(yY,{root:e,...t})),r[i]}function bY(e,t,n){const r=vY(t);return bv.set(e,n),r.observe(e),()=>{bv.delete(e),r.unobserve(e)}}const $Y={some:0,all:1};let xY=class extends qu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$Y[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return bY(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wY(t,n))&&this.startObserver()}unmount(){}};function wY({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DY={inView:{Feature:xY},tap:{Feature:mY},focus:{Feature:cY},hover:{Feature:lY}},q6=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),y0=typeof window<"u",EY=y0?b.useLayoutEffect:b.useEffect,v0=b.createContext({strict:!1});function CY(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext($p),c=b.useContext(v0),d=b.useContext(W6),f=b.useContext(q6).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(rY);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&SY(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[V6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return EY(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),oY.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function SY(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Y6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&U6(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function Y6(e){if(e)return e.options.allowProjection!==!1?e.projection:Y6(e.parent)}function TY(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):U6(n)&&(n.current=r))},[t])}function xp(e){return mp(e.animate)||t0.some(t=>bc(e[t]))}function Z6(e){return!!(xp(e)||e.variants)}function AY(e,t){if(xp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function PY(e){const{initial:t,animate:n}=AY(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[gw(t),gw(n)])}function gw(e){return Array.isArray(e)?e.join(" "):e}const yw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ru={};for(const e in yw)Ru[e]={isEnabled:t=>yw[e].some(n=>!!t[n])};function $v(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const _Y=Symbol.for("motionComponentSymbol");function RY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$v(e);function o(u,c){let d;const f={...b.useContext(q6),...u,layoutId:OY(u)},{isStatic:h}=f,m=PY(u),g=r(u,h);if(!h&&y0){MY(f,e);const v=FY(f);d=v.MeasureLayout,m.visualElement=CY(i,g,f,t,v.ProjectionNode)}return Do.jsxs($p.Provider,{value:m,children:[d&&m.visualElement?Do.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,TY(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[_Y]=i,a}function OY({layoutId:e}){const t=b.useContext(nY).id;return t&&e!==void 0?t+"-"+e:e}function MY(e,t){const n=b.useContext(v0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Wu(!1,r):cs(!1,r)}}function FY(e){const{drag:t,layout:n}=Ru;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const kY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function b0(e){return typeof e!="string"||e.includes("-")?!1:!!(kY.indexOf(e)>-1||/[A-Z]/u.test(e))}function J6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const X6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Q6(e,t,n,r){J6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X6.has(i)?i:g0(i),t.attrs[i])}function e7(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!iY[e]||e==="opacity")}function $0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||e7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function t7(e,t,n){const r=$0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Hc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function BY(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function IY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:LY(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const n7=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(W6),o=()=>IY(e,t,r,i);return n?o():BY(o)};function LY(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=aY(o[m]);let{initial:a,animate:u}=e;const c=xp(e),d=Z6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!mp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=Qb(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const x0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r7=()=>({...x0(),attrs:{}}),i7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,VY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NY=Hc.length;function jY(e,t,n){let r="",i=!0;for(let o=0;o<NY;o++){const a=Hc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=i7(u,u0[a]);if(!c){i=!1;const f=VY[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(h6(c)){i[c]=d;continue}else{const f=i7(d,u0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=jY(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function vw(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function KY(e,t,n){const r=vw(t,e.x,e.width),i=vw(n,e.y,e.height);return`${r} ${i}`}const UY={offset:"stroke-dashoffset",array:"stroke-dasharray"},zY={offset:"strokeDashoffset",array:"strokeDasharray"};function WY(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?UY:zY;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function D0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(w0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=KY(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&WY(m,a,u,c,!1)}const E0=e=>typeof e=="string"&&e.toLowerCase()==="svg",HY={useVisualState:n7({scrapeMotionValuesFromProps:t7,createRenderState:r7,onMount:(e,t,{renderState:n,latestValues:r})=>{kr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),kr.render(()=>{D0(n,r,E0(t.tagName),e.transformTemplate),Q6(t,n)})}})},GY={useVisualState:n7({scrapeMotionValuesFromProps:$0,createRenderState:x0})};function o7(e,t,n){for(const r in t)!ur(t[r])&&!e7(r,n)&&(e[r]=t[r])}function qY({transformTemplate:e},t){return b.useMemo(()=>{const n=x0();return w0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function YY(e,t){const n=e.style||{},r={};return o7(r,n,e),Object.assign(r,qY(e,t)),r}function ZY(e,t){const n={},r=YY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const JY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Eh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JY.has(e)}let a7=e=>!Eh(e);function XY(e){e&&(a7=t=>t.startsWith("on")?!Eh(t):e(t))}try{XY(require("@emotion/is-prop-valid").default)}catch{}function QY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(a7(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function eZ(e,t,n,r){const i=b.useMemo(()=>{const o=r7();return D0(o,t,E0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};o7(o,e.style,e),i.style={...o,...i.style}}return i}function tZ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(b0(n)?eZ:ZY)(r,o,a,n),d=QY(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function nZ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...b0(r)?HY:GY,preloadedFeatures:e,useRender:tZ(i),createVisualElement:t,Component:r};return RY(a)}}const xv={current:null},s7={current:!1};function rZ(){if(s7.current=!0,!!y0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xv.current=e.matches;e.addListener(t),t()}else xv.current=!1}function iZ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Dh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Dh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bw=new WeakMap,oZ=[...g6,qn,Gu],aZ=e=>oZ.find(m6(e)),$w=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let sZ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=o0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=la.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,kr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=xp(n),this.isVariantNode=Z6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,bw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),s7.current||rZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xv.current,process.env.NODE_ENV!=="production"&&pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bw.delete(this.current),this.projection&&this.projection.unmount(),lv(this.notifyUpdate),lv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&kr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ru){const n=Ru[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z6()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<$w.length;r++){const i=$w[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=iZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(d6(i)||c6(i))?i=parseFloat(i):!aZ(i)&&Gu.test(n)&&(i=E6(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Qb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new L6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},u7=class extends sZ{constructor(){super(...arguments),this.KeyframeResolver=C6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function uZ(e){return window.getComputedStyle(e)}let lZ=class extends u7{constructor(){super(...arguments),this.type="html",this.renderInstance=J6}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}else{const r=uZ(t),i=(h6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tY(t,n)}build(t,n,r){w0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $0(t,n,r)}},cZ=class extends u7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z6}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}return n=X6.has(n)?n:g0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return t7(t,n,r)}build(t,n,r){D0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Q6(t,n,r,i)}mount(t){this.isSVGTag=E0(t.tagName),super.mount(t)}};const dZ=(e,t)=>b0(e)?new cZ(t):new lZ(t,{allowProjection:e!==b.Fragment}),fZ=nZ(),hZ=NH(fZ);function pZ({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!kg(t)),i=b.useRef(void 0);if(!kg(t)){const{renderer:o,...a}=t;i.current=o,$v(a)}return b.useEffect(()=>{kg(t)&&t().then(({renderer:o,...a})=>{$v(a),i.current=o,r(!0)})},[]),Do.jsx(v0.Provider,{value:{renderer:i.current,strict:n},children:e})}function kg(e){return typeof e=="function"}const mZ={renderer:dZ,...Yq,...DY},l7=b.createContext({});function Yc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const C0=b.createContext(null),S0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gZ(e=!0){const t=b.useContext(C0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const T0=typeof window<"u",c7=T0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Yu=Er,Zi=Er;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zi=(e,t)=>{if(!e)throw new Error(t)});function A0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ou=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hi=e=>e*1e3,wo=e=>e/1e3,yZ={skipAnimations:!1,useManualTiming:!1};function vZ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],bZ=40;function d7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=vZ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,bZ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Co,state:Bn,steps:Bg}=d7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),f7=b.createContext({strict:!1}),xw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mu={};for(const e in xw)Mu[e]={isEnabled:t=>xw[e].some(n=>!!t[n])};function $Z(e){for(const t in e)Mu[t]={...Mu[t],...e[t]}}const xZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xZ.has(e)}let h7=e=>!Ch(e);function wZ(e){e&&(h7=t=>t.startsWith("on")?!Ch(t):e(t))}try{wZ(require("@emotion/is-prop-valid").default)}catch{}function DZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h7(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ww=new Set;function wp(e,t,n){e||ww.has(t)||(console.warn(t),ww.add(t))}function EZ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&wp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Dp=b.createContext({});function wc(e){return typeof e=="string"||Array.isArray(e)}function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const P0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...P0];function Cp(e){return Ep(e.animate)||_0.some(t=>wc(e[t]))}function p7(e){return!!(Cp(e)||e.variants)}function CZ(e,t){if(Cp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wc(n)?n:void 0,animate:wc(r)?r:void 0}}return e.inherit!==!1?t:{}}function SZ(e){const{initial:t,animate:n}=CZ(e,b.useContext(Dp));return b.useMemo(()=>({initial:t,animate:n}),[Dw(t),Dw(n)])}function Dw(e){return Array.isArray(e)?e.join(" "):e}const TZ=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AZ(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const R0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),PZ="framerAppearId",m7="data-"+R0(PZ),{schedule:O0,cancel:cie}=d7(queueMicrotask,!1),g7=b.createContext({});function _Z(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Dp),c=b.useContext(f7),d=b.useContext(C0),f=b.useContext(S0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(g7);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&RZ(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[m7],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return c7(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),O0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function RZ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function y7(e){if(e)return e.options.allowProjection!==!1?e.projection:y7(e.parent)}function OZ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&$Z(e);function u(d,f){let h;const m={...b.useContext(S0),...d,layoutId:MZ(d)},{isStatic:g}=m,v=SZ(d),$=r(d,g);if(!g&&T0){FZ(m,e);const C=kZ(m);h=C.MeasureLayout,v.visualElement=_Z(i,$,m,t,C.ProjectionNode)}return Do.jsxs(Dp.Provider,{value:v,children:[h&&v.visualElement?Do.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,AZ($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[TZ]=i,c}function MZ({layoutId:e}){const t=b.useContext(l7).id;return t&&e!==void 0?t+"-"+e:e}function FZ(e,t){const n=b.useContext(f7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yu(!1,r):Zi(!1,r)}}function kZ(e){const{drag:t,layout:n}=Mu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const BZ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M0(e){return typeof e!="string"||e.includes("-")?!1:!!(BZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ew(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F0(e,t,n,r){if(typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const wv=e=>Array.isArray(e),IZ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LZ=e=>wv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function Bf(e){const t=In(e)?e.get():e;return IZ(t)?t.toValue():t}function VZ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:NZ(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const v7=e=>(t,n)=>{const r=b.useContext(Dp),i=b.useContext(C0),o=()=>VZ(e,t,r,i);return n?o():Yc(o)};function NZ(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Bf(o[m]);let{initial:a,animate:u}=e;const c=Cp(e),d=p7(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Ep(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=F0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Zu),b7=e=>t=>typeof t=="string"&&t.startsWith(e),$7=b7("--"),jZ=b7("var(--"),k0=e=>jZ(e)?KZ.test(e.split("/*")[0].trim()):!1,KZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,x7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,n)=>n>t?t:n<e?e:n,Ju={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dc={...Ju,transform:e=>So(0,1,e)},mf={...Ju,default:1},Zc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Zc("deg"),Gi=Zc("%"),Ge=Zc("px"),UZ=Zc("vh"),zZ=Zc("vw"),Cw={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},WZ={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},HZ={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Dc,originX:Cw,originY:Cw,originZ:Ge},Sw={...Ju,transform:Math.round},B0={...WZ,...HZ,zIndex:Sw,size:Ge,fillOpacity:Dc,strokeOpacity:Dc,numOctaves:Sw},GZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qZ=Zu.length;function YZ(e,t,n){let r="",i=!0;for(let o=0;o<qZ;o++){const a=Zu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=x7(u,B0[a]);if(!c){i=!1;const f=GZ[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function I0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if($7(c)){i[c]=d;continue}else{const f=x7(d,B0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=YZ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function Tw(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function ZZ(e,t,n){const r=Tw(t,e.x,e.width),i=Tw(n,e.y,e.height);return`${r} ${i}`}const JZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},XZ={offset:"strokeDashoffset",array:"strokeDasharray"};function QZ(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JZ:XZ;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function L0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(I0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=ZZ(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&QZ(m,a,u,c,!1)}const V0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),w7=()=>({...V0(),attrs:{}}),N0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const E7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function C7(e,t,n,r){D7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(E7.has(i)?i:R0(i),t.attrs[i])}const Sh={};function eJ(e){Object.assign(Sh,e)}function S7(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sh[e]||e==="opacity")}function j0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||S7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function T7(e,t,n){const r=j0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function tJ(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Aw=["x","y","width","height","cx","cy","r"],nJ={useVisualState:v7({scrapeMotionValuesFromProps:T7,createRenderState:w7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Aw.length;u++){const c=Aw[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>tJ(n,r)),jt.render(()=>{L0(r,i,N0(n.tagName),e.transformTemplate),C7(n,r)}))}})},rJ={useVisualState:v7({scrapeMotionValuesFromProps:j0,createRenderState:V0})};function A7(e,t,n){for(const r in t)!In(t[r])&&!S7(r,n)&&(e[r]=t[r])}function iJ({transformTemplate:e},t){return b.useMemo(()=>{const n=V0();return I0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function oJ(e,t){const n=e.style||{},r={};return A7(r,n,e),Object.assign(r,iJ(e,t)),r}function aJ(e,t){const n={},r=oJ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function sJ(e,t,n,r){const i=b.useMemo(()=>{const o=w7();return L0(o,t,N0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};A7(o,e.style,e),i.style={...o,...i.style}}return i}function uJ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(M0(n)?sJ:aJ)(r,o,a,n),d=DZ(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function lJ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...M0(r)?nJ:rJ,preloadedFeatures:e,useRender:uJ(i),createVisualElement:t,Component:r};return OZ(a)}}function P7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Sp(e,t,n){const r=e.getProps();return F0(r,t,n!==void 0?n:r.custom,e)}const cJ=A0(()=>window.ScrollTimeline!==void 0);class dJ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(cJ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class fJ extends dJ{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function K0(e,t){return e?e[t]||e.default||e:void 0}const Dv=2e4;function _7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dv;)t+=n,r=e.next(t);return t>=Dv?1/0:t}function U0(e){return typeof e=="function"}function Pw(e,t){e.timeline=t,e.onfinish=null}const z0=e=>Array.isArray(e)&&typeof e[0]=="number",hJ={linearEasing:void 0};function pJ(e,t){const n=A0(e);return()=>{var r;return(r=hJ[t])!==null&&r!==void 0?r:n()}}const Th=pJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ou(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function O7(e){return!!(typeof e=="function"&&Th()||!e||typeof e=="string"&&(e in Ev||Th())||z0(e)||Array.isArray(e)&&e.every(O7))}const Gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function M7(e,t){if(e)return typeof e=="function"&&Th()?R7(e,t):z0(e)?Gl(e):Array.isArray(e)?e.map(n=>M7(n,t)||Ev.easeOut):Ev[e]}const pi={x:!1,y:!1};function F7(){return pi.x||pi.y}function mJ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function k7(e,t){const n=mJ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _w(e){return t=>{t.pointerType==="touch"||F7()||e(t)}}function gJ(e,t,n={}){const[r,i,o]=k7(e,n),a=_w(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=_w(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const B7=(e,t)=>t?e===t?!0:B7(e,t.parentElement):!1,W0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vJ(e){return yJ.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function Rw(e){return t=>{t.key==="Enter"&&e(t)}}function Ig(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const bJ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rw(()=>{if(ql.has(n))return;Ig(n,"down");const i=Rw(()=>{Ig(n,"up")}),o=()=>Ig(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ow(e){return W0(e)&&!F7()}function $J(e,t,n={}){const[r,i,o]=k7(e,n),a=u=>{const c=u.currentTarget;if(!Ow(u)||ql.has(c))return;ql.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Ow(g)||!ql.has(c))&&(ql.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||B7(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!vJ(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>bJ(d,i),i)}),o}function xJ(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const I7=new Set(["width","height","top","left","right","bottom",...Zu]);let If;function wJ(){If=void 0}const qi={now:()=>(If===void 0&&qi.set(Bn.isProcessing||yZ.useManualTiming?Bn.timestamp:performance.now()),If),set:e=>{If=e,queueMicrotask(wJ)}};function H0(e,t){e.indexOf(t)===-1&&e.push(t)}function G0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function DJ([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}class q0{constructor(){this.subscriptions=[]}add(t){return H0(this.subscriptions,t),()=>G0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function L7(e,t){return t?e*(1e3/t):0}const Mw=30,EJ=e=>!isNaN(parseFloat(e)),rc={current:void 0};class CJ{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=EJ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&wp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new q0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mw);return L7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fu(e,t){return new CJ(e,t)}function SJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fu(n))}function TJ(e,t){const n=Sp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=LZ(o[a]);SJ(e,a,u)}}function AJ(e){return!!(In(e)&&e.add)}function Cv(e,t){const n=e.getValue("willChange");if(AJ(n))return n.add(t)}function V7(e){return e.props[m7]}const N7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PJ=1e-7,_J=12;function RJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=N7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>PJ&&++u<_J);return a}function Jc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>RJ(o,0,1,e,n);return o=>o===0||o===1?o:N7(i(o),t,r)}const j7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,K7=e=>t=>1-e(1-t),U7=Jc(.33,1.53,.69,.99),Y0=K7(U7),z7=j7(Y0),W7=e=>(e*=2)<1?.5*Y0(e):.5*(2-Math.pow(2,-10*(e-1))),Z0=e=>1-Math.sin(Math.acos(e)),H7=K7(Z0),G7=j7(Z0),q7=e=>/^0[^.\s]+$/u.test(e);function OJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||q7(e):!0}const ic=e=>Math.round(e*1e5)/1e5,J0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function MJ(e){return e==null}const FJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,X0=(e,t)=>n=>!!(typeof n=="string"&&FJ.test(n)&&n.startsWith(e)||t&&!MJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Y7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(J0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},kJ=e=>So(0,255,e),Lg={...Ju,transform:e=>Math.round(kJ(e))},Ga={test:X0("rgb","red"),parse:Y7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lg.transform(e)+", "+Lg.transform(t)+", "+Lg.transform(n)+", "+ic(Dc.transform(r))+")"};function BJ(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Sv={test:X0("#"),parse:BJ,transform:Ga.transform},ou={test:X0("hsl","hue"),parse:Y7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(ic(t))+", "+Gi.transform(ic(n))+", "+ic(Dc.transform(r))+")"},Yn={test:e=>Ga.test(e)||Sv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):Sv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},IJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function LJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(J0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IJ))===null||n===void 0?void 0:n.length)||0)>0}const Z7="number",J7="color",VJ="var",NJ="var(",Fw="${}",jJ=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ec(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(jJ,c=>(Yn.test(c)?(r.color.push(o),i.push(J7),n.push(Yn.parse(c))):c.startsWith(NJ)?(r.var.push(o),i.push(VJ),n.push(c)):(r.number.push(o),i.push(Z7),n.push(parseFloat(c))),++o,Fw)).split(Fw);return{values:n,split:u,indexes:r,types:i}}function X7(e){return Ec(e).values}function Q7(e){const{split:t,types:n}=Ec(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===Z7?o+=ic(i[a]):u===J7?o+=Yn.transform(i[a]):o+=i[a]}return o}}const KJ=e=>typeof e=="number"?0:e;function UJ(e){const t=X7(e);return Q7(e)(t.map(KJ))}const ha={test:LJ,parse:X7,createTransformer:Q7,getAnimatableNone:UJ},zJ=new Set(["brightness","contrast","saturate","opacity"]);function WJ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(J0)||[];if(!r)return e;const i=n.replace(r,"");let o=zJ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const HJ=/\b([a-z-]*)\(.*?\)/gu,Tv={...ha,getAnimatableNone:e=>{const t=e.match(HJ);return t?t.map(WJ).join(" "):e}},GJ={...B0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Tv,WebkitFilter:Tv},Q0=e=>GJ[e];function e_(e,t){let n=Q0(e);return n!==Tv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qJ=new Set(["auto","none","0"]);function YJ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!qJ.has(o)&&Ec(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=e_(n,i)}const kw=e=>e===Ju||e===Ge,Bw=(e,t)=>parseFloat(e.split(", ")[t]),Iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Bw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Bw(o[1],e):0}},ZJ=new Set(["x","y","z"]),JJ=Zu.filter(e=>!ZJ.has(e));function XJ(e){const t=[];return JJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Iw(4,13),y:Iw(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Qa=new Set;let Av=!1,Pv=!1;function t_(){if(Pv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=XJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pv=!1,Av=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function n_(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pv=!0)})}function QJ(){n_(),t_()}class e1{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),Av||(Av=!0,jt.read(n_),jt.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const r_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tX(e){const t=eX.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const nX=4;function i_(e,t,n=1){Zi(n<=nX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=tX(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return r_(a)?parseFloat(a):a}return k0(i)?i_(i,t,n+1):i}const o_=e=>t=>t.test(e),rX={test:e=>e==="auto",parse:e=>e},a_=[Ju,Ge,Gi,Zo,zZ,UZ,rX],Lw=e=>a_.find(o_(e));class s_ extends e1{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),k0(d))){const f=i_(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!I7.has(r)||t.length!==2)return;const[i,o]=t,a=Lw(i),u=Lw(o);if(a!==u)if(kw(a)&&kw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)OJ(t[i])&&r.push(i);r.length&&YJ(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Vw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function iX(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function oX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Vw(i,t),u=Vw(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:iX(e)||(n==="spring"||U0(n))&&r}const aX=e=>e!==null;function Tp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(aX),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const sX=40;class u_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&QJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!oX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Tp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const qt=(e,t,n)=>e+(t-e)*n;function Vg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Vg(c,u,e+1/3),o=Vg(c,u,e),a=Vg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ah(e,t){return n=>n>0?t:e}const Ng=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lX=[Sv,Ga,ou],cX=e=>lX.find(t=>t.test(e));function Nw(e){const t=cX(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=uX(n)),n}const jw=(e,t)=>{const n=Nw(e),r=Nw(t);if(!n||!r)return Ah(e,t);const i={...n};return o=>(i.red=Ng(n.red,r.red,o),i.green=Ng(n.green,r.green,o),i.blue=Ng(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},dX=(e,t)=>n=>t(e(n)),Xc=(...e)=>e.reduce(dX),_v=new Set(["none","hidden"]);function fX(e,t){return _v.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hX(e,t){return n=>qt(e,t,n)}function t1(e){return typeof e=="number"?hX:typeof e=="string"?k0(e)?Ah:Yn.test(e)?jw:gX:Array.isArray(e)?l_:typeof e=="object"?Yn.test(e)?jw:pX:Ah}function l_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>t1(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function pX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=t1(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function mX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const gX=(e,t)=>{const n=ha.createTransformer(t),r=Ec(e),i=Ec(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_v.has(e)&&!i.values.length||_v.has(t)&&!r.values.length?fX(e,t):Xc(l_(mX(r,i),i.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ah(e,t))};function c_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):t1(e)(e,t)}const yX=5;function d_(e,t,n){const r=Math.max(t-yX,0);return L7(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kw=.001;function vX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Hi(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=So(Xt.minDamping,Xt.maxDamping,a),e=So(Xt.minDuration,Xt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Rv(d,a),v=Math.exp(-h);return Kw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=Rv(Math.pow(d,2),a);return(-i(d)+Kw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=$X(i,o,u);if(e=Hi(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const bX=12;function $X(e,t,n){let r=n;for(let i=1;i<bX;i++)r=r-e(r)/t(r);return r}function Rv(e,t){return e*Math.sqrt(1-t*t)}const xX=["duration","bounce"],wX=["stiffness","damping","mass"];function Uw(e,t){return t.some(n=>e[n]!==void 0)}function DX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!Uw(e,wX)&&Uw(e,xX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*So(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=vX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function f_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=DX({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=Rv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Hi(v):d_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_7(P),Dv),T=R7(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function zw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=f_({keyframes:[m.value,v(m.value)],velocity:d_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const EX=Jc(.42,0,1,1),CX=Jc(0,0,.58,1),h_=Jc(.42,0,.58,1),SX=e=>Array.isArray(e)&&typeof e[0]!="number",Ww={linear:Er,easeIn:EX,easeInOut:h_,easeOut:CX,circIn:Z0,circInOut:G7,circOut:H7,backIn:Y0,backInOut:z7,backOut:U7,anticipate:W7},Hw=e=>{if(z0(e)){Zi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jc(t,n,r,i)}else if(typeof e=="string")return Zi(Ww[e]!==void 0,`Invalid easing type '${e}'`),Ww[e];return e};function TX(e,t,n){const r=[],i=n||c_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Xc(c,u)}r.push(u)}return r}function p_(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=TX(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ou(e[h],e[h+1],f);return u[h](m)};return n?f=>d(So(e[0],e[o-1],f)):d}function AX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ou(0,t,r);e.push(qt(n,1,i))}}function PX(e){const t=[0];return AX(t,e.length-1),t}function _X(e,t){return e.map(n=>n*t)}function RX(e,t){return e.map(()=>t||h_).splice(0,e.length-1)}function Ph({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=SX(r)?r.map(Hw):Hw(r),o={done:!1,value:t[0]},a=_X(n&&n.length===t.length?n:PX(t),e),u=p_(a,t,{ease:Array.isArray(i)?i:RX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const OX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Co(t),now:()=>Bn.isProcessing?Bn.timestamp:qi.now()}},MX={decay:zw,inertia:zw,tween:Ph,keyframes:Ph,spring:f_},FX=e=>e/100;class n1 extends u_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||e1,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:MX[n]||Ph;let c,d;u!==Ph&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Zi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Xc(FX,c_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_7(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=So(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Tp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(this.currentTime)}set time(t){t=Hi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=OX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const kX=new Set(["opacity","clipPath","filter","transform"]);function BX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=M7(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const IX=A0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,LX=2e4;function VX(e){return U0(e.type)||e.type==="spring"||!O7(e.ease)}function NX(e,t){const n=new n1({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<LX;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const m_={anticipate:W7,backInOut:z7,circInOut:G7};function jX(e){return e in m_}class Gw extends u_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new s_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Th()&&jX(a)&&(a=m_[a]),VX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=NX(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=BX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Pw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Tp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;Pw(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new n1({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Hi(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return IX()&&r&&kX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const KX={type:"spring",stiffness:500,damping:25,restSpeed:10},UX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zX={type:"keyframes",duration:.8},WX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HX=(e,{keyframes:t})=>t.length>2?zX:ys.has(e)?e.startsWith("scale")?UX(t[1]):KX:WX;function GX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const r1=(e,t,n,r={},i,o)=>a=>{const u=K0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};GX(u)||(f={...f,...HX(e,f)}),f.duration&&(f.duration=Hi(f.duration)),f.repeatDelay&&(f.repeatDelay=Hi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Tp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new fJ([])}return!o&&Gw.supports(f)?new Gw(f):new n1(f)};function qX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function g_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&qX(f,h))continue;const v={delay:n,...K0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=V7(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}Cv(e,h),m.start(r1(h,m,g,e.shouldReduceMotion&&I7.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&TJ(e,u)})}),d}function Ov(e,t,n={}){var r;const i=Sp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(g_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return YX(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function YX(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(ZX).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Ov(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function ZX(e,t){return e.sortNodePosition(t)}function JX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ov(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ov(e,t,n);else{const i=typeof t=="function"?Sp(e,t,n.custom):t;r=Promise.all(g_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const XX=_0.length;function y_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?y_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<XX;n++){const r=_0[n],i=e.props[r];(wc(i)||i===!1)&&(t[r]=i)}return t}const QX=[...P0].reverse(),eQ=P0.length;function tQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>JX(e,n,r)))}function nQ(e){let t=tQ(e),n=qw(),r=!0;const i=c=>(d,f)=>{var h;const m=Sp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=y_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<eQ;C++){const x=QX[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=wc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||Ep(D)||typeof D=="boolean")continue;const k=rQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;wv(M)&&wv(Y)?V=!P7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=qw(),r=!0}}}function rQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!P7(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}class ya{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iQ extends ya{constructor(t){super(t),t.animationState||(t.animationState=nQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let oQ=0;class aQ extends ya{constructor(){super(...arguments),this.id=oQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sQ={animation:{Feature:iQ},exit:{Feature:aQ}};function Cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qc(e){return{point:{x:e.pageX,y:e.pageY}}}const uQ=e=>t=>W0(t)&&e(t,Qc(t));function oc(e,t,n,r){return Cc(e,t,uQ(n),r)}const Yw=(e,t)=>Math.abs(e-t);function lQ(e,t){const n=Yw(e.x,t.x),r=Yw(e.y,t.y);return Math.sqrt(n**2+r**2)}class v_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Kg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=lQ(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=jg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Kg(h.type==="pointercancel"?this.lastMoveEventInfo:jg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!W0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Qc(t),u=jg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Kg(u,this.history)),this.removeListeners=Xc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function jg(e,t){return t?{point:t(e.point)}:e}function Zw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kg({point:e},t){return{point:e,delta:Zw(e,b_(t)),offset:Zw(e,cQ(t)),velocity:dQ(t,.1)}}function cQ(e){return e[0]}function b_(e){return e[e.length-1]}function dQ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=b_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const $_=1e-4,fQ=1-$_,hQ=1+$_,x_=.01,pQ=0-x_,mQ=0+x_;function Br(e){return e.max-e.min}function gQ(e,t,n){return Math.abs(e-t)<=n}function Jw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fQ&&e.scale<=hQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=pQ&&e.translate<=mQ||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){Jw(e.x,t.x,n.x,r?r.originX:void 0),Jw(e.y,t.y,n.y,r?r.originY:void 0)}function Xw(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function yQ(e,t,n){Xw(e.x,t.x,n.x),Xw(e.y,t.y,n.y)}function Qw(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function sc(e,t,n){Qw(e.x,t.x,n.x),Qw(e.y,t.y,n.y)}function vQ(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function eD(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bQ(e,{top:t,left:n,bottom:r,right:i}){return{x:eD(e.x,n,i),y:eD(e.y,t,r)}}function tD(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $Q(e,t){return{x:tD(e.x,t.x),y:tD(e.y,t.y)}}function xQ(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Ou(t.min,t.max-r,e.min):r>i&&(n=Ou(e.min,e.max-i,t.min)),So(0,1,n)}function wQ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mv=.35;function DQ(e=Mv){return e===!1?e=0:e===!0&&(e=Mv),{x:nD(e,"left","right"),y:nD(e,"top","bottom")}}function nD(e,t,n){return{min:rD(e,t),max:rD(e,n)}}function rD(e,t){return typeof e=="number"?e:e[t]||0}const iD=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:iD(),y:iD()}),oD=()=>({min:0,max:0}),cn=()=>({x:oD(),y:oD()});function Qr(e){return[e("x"),e("y")]}function w_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function EQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function CQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ug(e){return e===void 0||e===1}function Fv({scale:e,scaleX:t,scaleY:n}){return!Ug(e)||!Ug(t)||!Ug(n)}function Ba(e){return Fv(e)||D_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function D_(e){return aD(e.x)||aD(e.y)}function aD(e){return e&&e!=="0%"}function Rh(e,t,n){const r=e-n,i=t*r;return n+i}function sD(e,t,n,r,i){return i!==void 0&&(e=Rh(e,i,r)),Rh(e,n,r)+t}function kv(e,t=0,n=1,r,i){e.min=sD(e.min,t,n,r,i),e.max=sD(e.max,t,n,r,i)}function E_(e,{x:t,y:n}){kv(e.x,t.translate,t.scale,t.originPoint),kv(e.y,n.translate,n.scale,n.originPoint)}const uD=.999999999999,lD=1.0000000000001;function SQ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,E_(e,a)),r&&Ba(o.latestValues)&&uu(e,o.latestValues))}t.x<lD&&t.x>uD&&(t.x=1),t.y<lD&&t.y>uD&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function cD(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);kv(e,t,n,o,r)}function uu(e,t){cD(e.x,t.x,t.scaleX,t.scale,t.originX),cD(e.y,t.y,t.scaleY,t.scale,t.originY)}function C_(e,t){return w_(CQ(e.getBoundingClientRect(),t))}function TQ(e,t,n){const r=C_(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const S_=({current:e})=>e?e.ownerDocument.defaultView:null,AQ=new WeakMap;class PQ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xJ(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Gi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=Br(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),Cv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=_Q(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new v_(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vQ(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=bQ(i.layoutBox,n):this.constraints=!1,this.elastic=DQ(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=wQ(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Zi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=TQ(r,i.root,this.visualElement.getTransformPagePoint());let a=$Q(i.layout.layoutBox,o);if(n){const u=n(EQ(a));this.hasMutatedConstraints=!!u,u&&(a=w_(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Cv(this.visualElement,t),r.start(r1(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=xQ({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;AQ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Cc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _Q(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RQ extends ya{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new PQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const dD=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class OQ extends ya{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new v_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dD(t),onStart:dD(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Lf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=fD(e,t.target.x),r=fD(e,t.target.y);return`${n}% ${r}%`}},MQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class FQ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;eJ(kQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Lf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),O0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function T_(e){const[t,n]=gZ(),r=b.useContext(l7);return Do.jsx(FQ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(g7),isPresent:t,safeToRemove:n})}const kQ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:MQ};function BQ(e,t,n){const r=In(e)?e:Fu(e);return r.start(r1("",r,t,n)),r.animation}function IQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const LQ=(e,t)=>e.depth-t.depth;class VQ{constructor(){this.children=[],this.isDirty=!1}add(t){H0(this.children,t),this.isDirty=!0}remove(t){G0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(LQ),this.isDirty=!1,this.children.forEach(t)}}function NQ(e,t){const n=qi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return jt.read(r,!0),()=>Co(r)}const A_=["TopLeft","TopRight","BottomLeft","BottomRight"],jQ=A_.length,hD=e=>typeof e=="string"?parseFloat(e):e,pD=e=>typeof e=="number"||Ge.test(e);function KQ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,UQ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,zQ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<jQ;a++){const u=`border${A_[a]}Radius`;let c=mD(t,u),d=mD(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||pD(c)===pD(d)?(e[u]=Math.max(qt(hD(c),hD(d),r),0),(Gi.test(d)||Gi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function mD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const UQ=P_(0,.5,H7),zQ=P_(.5,.95,Er);function P_(e,t,n){return r=>r<e?0:r>t?1:n(Ou(e,t,r))}function gD(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){gD(e.x,t.x),gD(e.y,t.y)}function yD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vD(e,t,n,r,i){return e-=t,e=Rh(e,1/n,r),i!==void 0&&(e=Rh(e,1/i,r)),e}function WQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=vD(e.min,t,n,u,i),e.max=vD(e.max,t,n,u,i)}function bD(e,t,[n,r,i],o,a){WQ(e,t[n],t[r],t[i],t.scale,o,a)}const HQ=["x","scaleX","originX"],GQ=["y","scaleY","originY"];function $D(e,t,n,r){bD(e.x,t,HQ,n?n.x:void 0,r?r.x:void 0),bD(e.y,t,GQ,n?n.y:void 0,r?r.y:void 0)}function xD(e){return e.translate===0&&e.scale===1}function __(e){return xD(e.x)&&xD(e.y)}function wD(e,t){return e.min===t.min&&e.max===t.max}function qQ(e,t){return wD(e.x,t.x)&&wD(e.y,t.y)}function DD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function R_(e,t){return DD(e.x,t.x)&&DD(e.y,t.y)}function ED(e){return Br(e.x)/Br(e.y)}function CD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YQ{constructor(){this.members=[]}add(t){H0(this.members,t),t.scheduleRender()}remove(t){if(G0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ZQ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yl=typeof window<"u"&&window.MotionDebug!==void 0,zg=["","X","Y","Z"],JQ={visibility:"hidden"},SD=1e3;let XQ=0;function Wg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function O_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=V7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&O_(r)}function M_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=XQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yl&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach(tee),this.nodes.forEach(aee),this.nodes.forEach(see),this.nodes.forEach(nee),Yl&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new VQ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new q0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=IQ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=NQ(m,250),Lf.hasAnimatedSinceResize&&(Lf.hasAnimatedSinceResize=!1,this.nodes.forEach(AD))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||fee,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!R_(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...K0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||AD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uee),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(TD);return}this.isUpdating||this.nodes.forEach(iee),this.isUpdating=!1,this.nodes.forEach(oee),this.nodes.forEach(QQ),this.nodes.forEach(eee),this.clearAllSnapshots();const u=qi.now();Bn.delta=So(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,Bg.update.process(Bn),Bg.preRender.process(Bn),Bg.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ree),this.sharedNodes.forEach(lee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!__(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ba(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),hee(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(pee))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ba(f.latestValues)&&uu(c,f.latestValues)}return Ba(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ba(d.latestValues))continue;Fv(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),$D(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ba(this.latestValues)&&$D(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yQ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),E_(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yl&&Ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fv(this.parent.latestValues)||D_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;SQ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yD(this.prevProjectionDelta.x,this.projectionDelta.x),yD(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!CD(this.projectionDelta.x,this.prevProjectionDelta.x)||!CD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Yl&&Ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(dee));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;PD(h.x,a.x,E),PD(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cee(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&qQ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,KQ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Lf.hasAnimatedSinceResize=!0,this.currentAnimation=BQ(0,SD,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&F_(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=Br(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=Br(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new YQ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Wg("z",a,d,this.animationValues);for(let f=0;f<zg.length;f++)Wg(`rotate${zg[f]}`,a,d,this.animationValues),Wg(`skew${zg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JQ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=ZQ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in Sh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=Sh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?Bf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(TD),this.root.sharedNodes.clear()}}}function QQ(e){e.updateLayout()}function eee(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(m);m.min=r[h].min,m.max=m.min+g}):F_(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!__(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),R_(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function tee(e){Yl&&Ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nee(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ree(e){e.clearSnapshot()}function TD(e){e.clearMeasurements()}function iee(e){e.isLayoutDirty=!1}function oee(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aee(e){e.resolveTargetDelta()}function see(e){e.calcProjection()}function uee(e){e.resetSkewAndRotation()}function lee(e){e.removeLeadSnapshot()}function PD(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _D(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function cee(e,t,n,r){_D(e.x,t.x,n.x,r),_D(e.y,t.y,n.y,r)}function dee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fee={duration:.45,ease:[.4,0,.1,1]},RD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),OD=RD("applewebkit/")&&!RD("chrome/")?Math.round:Er;function MD(e){e.min=OD(e.min),e.max=OD(e.max)}function hee(e){MD(e.x),MD(e.y)}function F_(e,t,n){return e==="position"||e==="preserve-aspect"&&!gQ(ED(t),ED(n),.2)}function pee(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const mee=M_({attachResizeListener:(e,t)=>Cc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hg={current:void 0},k_=M_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hg.current){const e=new mee({});e.mount(window),e.setOptions({layoutScroll:!0}),Hg.current=e}return Hg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gee={pan:{Feature:OQ},drag:{Feature:RQ,ProjectionNode:k_,MeasureLayout:T_}};function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class yee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=gJ(t,n=>(FD(this.node,n,"Start"),r=>FD(this.node,r,"End"))))}unmount(){}}class vee extends ya{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xc(Cc(this.node.current,"focus",()=>this.onFocus()),Cc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class bee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=$J(t,n=>(kD(this.node,n,"Start"),(r,{success:i})=>kD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bv=new WeakMap,Gg=new WeakMap,$ee=e=>{const t=Bv.get(e.target);t&&t(e)},xee=e=>{e.forEach($ee)};function wee({root:e,...t}){const n=e||document;Gg.has(n)||Gg.set(n,{});const r=Gg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(xee,{root:e,...t})),r[i]}function Dee(e,t,n){const r=wee(t);return Bv.set(e,n),r.observe(e),()=>{Bv.delete(e),r.unobserve(e)}}const Eee={some:0,all:1};class Cee extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Eee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return Dee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(See(t,n))&&this.startObserver()}unmount(){}}function See({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tee={inView:{Feature:Cee},tap:{Feature:bee},focus:{Feature:vee},hover:{Feature:yee}},Aee={layout:{ProjectionNode:k_,MeasureLayout:T_}},Iv={current:null},B_={current:!1};function Pee(){if(B_.current=!0,!!T0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}const _ee=[...a_,Yn,ha],Ree=e=>_ee.find(o_(e)),BD=new WeakMap;function Oee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&wp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Fu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ID=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Mee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=qi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Cp(n),this.isVariantNode=p7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,BD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),B_.current||Pee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&wp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){BD.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mu){const n=Mu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ID.length;r++){const i=ID[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Oee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(r_(i)||q7(i))?i=parseFloat(i):!Ree(i)&&ha.test(n)&&(i=e_(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=F0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new q0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class I_ extends Mee{constructor(){super(...arguments),this.KeyframeResolver=s_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fee(e){return window.getComputedStyle(e)}class kee extends I_{constructor(){super(...arguments),this.type="html",this.renderInstance=D7}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}else{const r=Fee(t),i=($7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return C_(t,n)}build(t,n,r){I0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return j0(t,n,r)}}class Bee extends I_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}return n=E7.has(n)?n:R0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return T7(t,n,r)}build(t,n,r){L0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){C7(t,n,r,i)}mount(t){this.isSVGTag=N0(t.tagName),super.mount(t)}}const Iee=(e,t)=>M0(e)?new Bee(t):new kee(t,{allowProjection:e!==b.Fragment}),Lee=lJ({...sQ,...Tee,...gee,...Aee},Iee),L_=EZ(Lee);function V_(e){const t=Yc(()=>Fu(e)),{isStatic:n}=b.useContext(S0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function N_(e,t){const n=V_(t()),r=()=>n.set(t());return r(),c7(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Co(r)}}),n}const Vee=e=>e&&typeof e=="object"&&e.mix,Nee=e=>Vee(e)?e.mix:void 0;function jee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=p_(i,o,{mixer:Nee(o[0]),...a});return t?u(r):u}function Kee(e){rc.current=[],e();const t=N_(rc.current,e);return rc.current=void 0,t}function Uee(e,t,n,r){if(typeof e=="function")return Kee(e);const i=typeof t=="function"?t:jee(t,n,r);return Array.isArray(e)?LD(e,i):LD([e],([o])=>i(o))}function LD(e,t){const n=Yc(()=>[]);return N_(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const j_=b.createContext(null);function zee(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?DJ(e,i,i+o):e}function Wee({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Yc(()=>L_[t]),c=[],d=b.useRef(!1);Zi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(qee)},updateOrder:(h,m,g)=>{if(d.current)return;const v=zee(c,h,m,g);c!==v&&(d.current=!0,r(v.map(Gee).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Do.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Do.jsx(j_.Provider,{value:f,children:e})})}const Hee=b.forwardRef(Wee);function Gee(e){return e.value}function qee(e,t){return e.layout.min-t.layout.min}function VD(e,t=0){return In(e)?e:V_(t)}function Yee({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Yc(()=>L_[r]),d=b.useContext(j_),f={x:VD(t.x),y:VD(t.y)},h=Uee([f.x,f.y],([$,C])=>$||C?1:"unset");Zi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Do.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const Zee=b.forwardRef(Yee);function K_(e){return t=>typeof t===e}var Jee=K_("function"),Xee=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!Qee(e)&&!Xee(e)&&(Jee(e)||typeof e=="object"),Qee=K_("undefined");function ete(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function tte(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function nte(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function rte(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ete(e,t);if(e instanceof Map&&t instanceof Map)return nte(e,t);if(e instanceof Set&&t instanceof Set)return rte(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return tte(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ite=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ote=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ate(t))return t}function Si(e){return t=>Ap(t)===e}function ate(e){return ite.includes(e)}function Xu(e){return t=>typeof t===e}function ste(e){return ote.includes(e)}var ute=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&ute.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||ste(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function lte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function cte(e,t,n){return U_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ki(e,i),c=Ki(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return cte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?dte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ki(e,n),i=Ki(t,n);if(!U_(r,i))throw new TypeError("Inputs have different types");if(!lte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function dte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function U_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ki(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function fte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var hte=fte();const pte=To(hte);var Vf={exports:{}},mte=Vf.exports,qD;function gte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(mte,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Vf)),Vf.exports}var yte=gte();const z_=To(yte);var Yg,YD;function vte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var bte=vte();const ZD=To(bte);var Zg,JD;function $te(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var xte=$te();const bi=To(xte);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
|
|
154
|
+
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var AH=TH();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML=" <br /> ",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],L=+W[1]||j;if(L=Math.min(U+x,L),!(L<j)){var _=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){_.setAttribute("aria-hidden","true"),_.setAttribute("data-range",K),_.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,L);if(M){var V=M.offsetTop+O+"px";k.push(function(){_.style.top=V})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){_.style.height=z})}}else k.push(function(){_.setAttribute("data-start",String(j)),L>j&&_.setAttribute("data-end",String(L)),_.style.top=(j-x-1)*D+O+"px",_.textContent=new Array(L-j+2).join(`
|
|
155
|
+
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},XP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},PH=(e,t)=>{t.shouldUseNativeValidation&&XP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(_H(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},_H=(e,t)=>e.some(n=>n.startsWith(t+"."));function RH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&XP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:PH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=iA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function OH(){if(Fx)return wg;Fx=1;var e=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return wg=e,wg}var Dg,kx;function MH(){if(kx)return Dg;kx=1;var e=OH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function QP(){if(Bx)return Eg;Bx=1;var e=MH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function FH(){if(Ix)return Cg;Ix=1;var e=QP(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function kH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function BH(){if(Vx)return Tg;Vx=1;var e=QP(),t=FH(),n=kH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function IH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function LH(){if(jx)return Pg;jx=1;var e=BH(),t=IH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var VH=LH();const NH=To(VH),Kx=new Set;function pp(e,t,n){e||Kx.has(t)||(console.warn(t),Kx.add(t))}function jH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const uv=e=>Array.isArray(e);function e6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bc(e){return typeof e=="string"||Array.isArray(e)}function Ux(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qb(e,t,n,r){if(typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function gp(e,t,n){const r=e.getProps();return Qb(r,t,n!==void 0?n:r.custom,e)}const e0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t0=["initial",...e0],Hc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Hc),xo=e=>e*1e3,ua=e=>e/1e3,KH={type:"spring",stiffness:500,damping:25,restSpeed:10},UH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zH={type:"keyframes",duration:.8},WH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HH=(e,{keyframes:t})=>t.length>2?zH:gs.has(e)?e.startsWith("scale")?UH(t[1]):KH:WH;function t6(e,t){return e?e[t]||e.default||e:void 0}const GH={skipAnimations:!1,useManualTiming:!1},qH=e=>e!==null;function yp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qH),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const fa=e=>e;let Wu=fa,cs=fa;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cs=(e,t)=>{if(!e)throw new Error(t)});function YH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],ZH=40;function n6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=YH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,ZH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:kr,cancel:lv,state:vh,steps:zre}=n6(typeof requestAnimationFrame<"u"?requestAnimationFrame:fa,!0),r6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JH=1e-7,XH=12;function QH(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=r6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>JH&&++u<XH);return a}function Gc(e,t,n,r){if(e===t&&n===r)return fa;const i=o=>QH(o,0,1,e,n);return o=>o===0||o===1?o:r6(i(o),t,r)}const i6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o6=e=>t=>1-e(1-t),a6=Gc(.33,1.53,.69,.99),n0=o6(a6),s6=i6(n0),u6=e=>(e*=2)<1?.5*n0(e):.5*(2-Math.pow(2,-10*(e-1))),r0=e=>1-Math.sin(Math.acos(e)),eG=o6(r0),l6=i6(r0),c6=e=>/^0[^.\s]+$/u.test(e);function tG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c6(e):!0}const d6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),f6=e=>t=>typeof t=="string"&&t.startsWith(e),h6=f6("--"),nG=f6("var(--"),i0=e=>nG(e)?rG.test(e.split("/*")[0].trim()):!1,rG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oG(e){const t=iG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const aG=4;function p6(e,t,n=1){cs(n<=aG,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=oG(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return d6(a)?parseFloat(a):a}return i0(i)?p6(i,t,n+1):i}const ds=(e,t,n)=>n>t?t:n<e?e:n,Hu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Hu,transform:e=>ds(0,1,e)},hf={...Hu,default:1},qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=qc("deg"),gu=qc("%"),Ze=qc("px"),sG=qc("vh"),uG=qc("vw"),zx={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},lG=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wx=e=>e===Hu||e===Ze,Hx=(e,t)=>parseFloat(e.split(", ")[t]),Gx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Hx(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Hx(o[1],e):0}},cG=new Set(["x","y","z"]),dG=Hc.filter(e=>!cG.has(e));function fG(e){const t=[];return dG.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _u={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Gx(4,13),y:Gx(5,14)};_u.translateX=_u.x;_u.translateY=_u.y;const m6=e=>t=>t.test(e),hG={test:e=>e==="auto",parse:e=>e},g6=[Hu,Ze,gu,Yo,uG,sG,hG],qx=e=>g6.find(m6(e)),Xa=new Set;let cv=!1,dv=!1;function y6(){if(dv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fG(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}dv=!1,cv=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function v6(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dv=!0)})}function pG(){v6(),y6()}let o0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),cv||(cv=!0,kr.read(v6),kr.resolveKeyframes(y6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const nc=e=>Math.round(e*1e5)/1e5,a0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mG(e){return e==null}const gG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s0=(e,t)=>n=>!!(typeof n=="string"&&gG.test(n)&&n.startsWith(e)||t&&!mG(n)&&Object.prototype.hasOwnProperty.call(n,t)),b6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(a0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},yG=e=>ds(0,255,e),_g={...Hu,transform:e=>Math.round(yG(e))},Ha={test:s0("rgb","red"),parse:b6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_g.transform(e)+", "+_g.transform(t)+", "+_g.transform(n)+", "+nc($c.transform(r))+")"};function vG(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:s0("#"),parse:vG,transform:Ha.transform},ru={test:s0("hsl","hue"),parse:b6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(nc(t))+", "+gu.transform(nc(n))+", "+nc($c.transform(r))+")"},qn={test:e=>Ha.test(e)||fv.test(e)||ru.test(e),parse:e=>Ha.test(e)?Ha.parse(e):ru.test(e)?ru.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):ru.transform(e)},bG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $G(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(a0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(bG))===null||n===void 0?void 0:n.length)||0)>0}const $6="number",x6="color",xG="var",wG="var(",Yx="${}",DG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(DG,c=>(qn.test(c)?(r.color.push(o),i.push(x6),n.push(qn.parse(c))):c.startsWith(wG)?(r.var.push(o),i.push(xG),n.push(c)):(r.number.push(o),i.push($6),n.push(parseFloat(c))),++o,Yx)).split(Yx);return{values:n,split:u,indexes:r,types:i}}function w6(e){return xc(e).values}function D6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===$6?o+=nc(i[a]):u===x6?o+=qn.transform(i[a]):o+=i[a]}return o}}const EG=e=>typeof e=="number"?0:e;function CG(e){const t=w6(e);return D6(e)(t.map(EG))}const Gu={test:$G,parse:w6,createTransformer:D6,getAnimatableNone:CG},SG=new Set(["brightness","contrast","saturate","opacity"]);function TG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(a0)||[];if(!r)return e;const i=n.replace(r,"");let o=SG.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const AG=/\b([a-z-]*)\(.*?\)/gu,hv={...Gu,getAnimatableNone:e=>{const t=e.match(AG);return t?t.map(TG).join(" "):e}},PG={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},_G={rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Yo,skewX:Yo,skewY:Yo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:$c,originX:zx,originY:zx,originZ:Ze},Zx={...Hu,transform:Math.round},u0={...PG,..._G,zIndex:Zx,size:Ze,fillOpacity:$c,strokeOpacity:$c,numOctaves:Zx},RG={...u0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},l0=e=>RG[e];function E6(e,t){let n=l0(e);return n!==hv&&(n=Gu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OG=new Set(["auto","none","0"]);function MG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!OG.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=E6(n,i)}let C6=class extends o0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),i0(d))){const f=p6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!lG.has(r)||t.length!==2)return;const[i,o]=t,a=qx(i),u=qx(o);if(a!==u)if(Wx(a)&&Wx(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)tG(t[i])&&r.push(i);r.length&&MG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_u[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=_u[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};function c0(e){return typeof e=="function"}let kf;function FG(){kf=void 0}const la={now:()=>(kf===void 0&&la.set(vh.isProcessing||GH.useManualTiming?vh.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(FG)}},Jx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gu.test(e)||e==="0")&&!e.startsWith("url("));function kG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function BG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Jx(i,t),u=Jx(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:kG(e)||(n==="spring"||c0(n))&&r}const IG=40;let S6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=la.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=la.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!BG(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(yp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const d0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},T6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(d0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function A6(e,t){return t?e*(1e3/t):0}const LG=5;function P6(e,t,n){const r=Math.max(t-LG,0);return A6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xx=.001;function VG({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=xo(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ds(Jt.minDamping,Jt.maxDamping,a),e=ds(Jt.minDuration,Jt.maxDuration,ua(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=pv(d,a),v=Math.exp(-h);return Xx-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=pv(Math.pow(d,2),a);return(-i(d)+Xx>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=jG(i,o,u);if(e=xo(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const NG=12;function jG(e,t,n){let r=n;for(let i=1;i<NG;i++)r=r-e(r)/t(r);return r}function pv(e,t){return e*Math.sqrt(1-t*t)}const mv=2e4;function _6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mv;)t+=n,r=e.next(t);return t>=mv?1/0:t}const KG=["duration","bounce"],UG=["stiffness","damping","mass"];function Qx(e,t){return t.some(n=>e[n]!==void 0)}function zG(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!Qx(e,UG)&&Qx(e,KG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ds(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=VG(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function R6(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=zG({...n,velocity:-ua(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=ua(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=pv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?xo(v):P6(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_6(P),mv),T=T6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function ew({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=R6({keyframes:[m.value,v(m.value)],velocity:P6(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const WG=Gc(.42,0,1,1),HG=Gc(0,0,.58,1),O6=Gc(.42,0,.58,1),GG=e=>Array.isArray(e)&&typeof e[0]!="number",f0=e=>Array.isArray(e)&&typeof e[0]=="number",tw={linear:fa,easeIn:WG,easeInOut:O6,easeOut:HG,circIn:r0,circInOut:l6,circOut:eG,backIn:n0,backInOut:s6,backOut:a6,anticipate:u6},nw=e=>{if(f0(e)){cs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Gc(t,n,r,i)}else if(typeof e=="string")return cs(tw[e]!==void 0,`Invalid easing type '${e}'`),tw[e];return e},qG=(e,t)=>n=>t(e(n)),vp=(...e)=>e.reduce(qG),bp=(e,t,n)=>e+(t-e)*n;function Rg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Rg(c,u,e+1/3),o=Rg(c,u,e),a=Rg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function bh(e,t){return n=>n>0?t:e}const Og=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ZG=[fv,Ha,ru],JG=e=>ZG.find(t=>t.test(e));function rw(e){const t=JG(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ru&&(n=YG(n)),n}const iw=(e,t)=>{const n=rw(e),r=rw(t);if(!n||!r)return bh(e,t);const i={...n};return o=>(i.red=Og(n.red,r.red,o),i.green=Og(n.green,r.green,o),i.blue=Og(n.blue,r.blue,o),i.alpha=bp(n.alpha,r.alpha,o),Ha.transform(i))},gv=new Set(["none","hidden"]);function XG(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function QG(e,t){return n=>bp(e,t,n)}function h0(e){return typeof e=="number"?QG:typeof e=="string"?i0(e)?bh:qn.test(e)?iw:nq:Array.isArray(e)?M6:typeof e=="object"?qn.test(e)?iw:eq:bh}function M6(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>h0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function eq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=h0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function tq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const nq=(e,t)=>{const n=Gu.createTransformer(t),r=xc(e),i=xc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?XG(e,t):vp(M6(tq(r,i),i.values),n):(Wu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),bh(e,t))};function F6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?bp(e,t,n):h0(e)(e,t)}function rq(e,t,n){const r=[],i=n||F6,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||fa:t;u=vp(c,u)}r.push(u)}return r}function iq(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(cs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rq(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=d0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(ds(e[0],e[o-1],d)):c}function oq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=d0(0,t,r);e.push(bp(n,1,i))}}function aq(e){const t=[0];return oq(t,e.length-1),t}function sq(e,t){return e.map(n=>n*t)}function uq(e,t){return e.map(()=>t||O6).splice(0,e.length-1)}function $h({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=GG(r)?r.map(nw):nw(r),o={done:!1,value:t[0]},a=sq(n&&n.length===t.length?n:aq(t),e),u=iq(a,t,{ease:Array.isArray(i)?i:uq(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const lq=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>lv(t),now:()=>vh.isProcessing?vh.timestamp:la.now()}},cq={decay:ew,inertia:ew,tween:$h,keyframes:$h,spring:R6},dq=e=>e/100;let p0=class extends S6{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||o0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=c0(n)?n:cq[n]||$h;let c,d;u!==$h&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=vp(dq,F6(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=ds(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=yp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ua(t.calculatedDuration):0}get time(){return ua(this.currentTime)}set time(t){t=xo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=lq,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const fq=new Set(["opacity","clipPath","filter","transform"]);function m0(e){let t;return()=>(t===void 0&&(t=e()),t)}const hq={linearEasing:void 0};function pq(e,t){const n=m0(e);return()=>{var r;return(r=hq[t])!==null&&r!==void 0?r:n()}}const xh=pq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function k6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in yv||xh())||f0(e)||Array.isArray(e)&&e.every(k6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function B6(e,t){if(e)return typeof e=="function"&&xh()?T6(e,t):f0(e)?Wl(e):Array.isArray(e)?e.map(n=>B6(n,t)||yv.easeOut):yv[e]}function mq(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=B6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ow(e,t){e.timeline=t,e.onfinish=null}const gq=m0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wh=10,yq=2e4;function vq(e){return c0(e.type)||e.type==="spring"||!k6(e.ease)}function bq(e,t){const n=new p0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<yq;)r=n.sample(o),i.push(r.value),o+=wh;return{times:void 0,keyframes:i,duration:o-wh,ease:"linear"}}const I6={anticipate:u6,backInOut:s6,circInOut:l6};function $q(e){return e in I6}let aw=class extends S6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new C6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&$q(a)&&(a=I6[a]),vq(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=bq(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=mq(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ow(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(yp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ua(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ua(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return fa;const{animation:r}=n;ow(r,t)}return fa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new p0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=xo(this.time);d.setWithVelocity(v.sample($-wh).value,v.sample($).value,wh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return gq()&&r&&fq.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const xq=m0(()=>window.ScrollTimeline!==void 0);let wq=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>xq()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Dq({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Eq=(e,t,n,r={},i,o)=>a=>{const u=t6(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-xo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};Dq(u)||(f={...f,...HH(e,f)}),f.duration&&(f.duration=xo(f.duration)),f.repeatDelay&&(f.repeatDelay=xo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=yp(f.keyframes,u);if(m!==void 0)return kr.update(()=>{f.onUpdate(m),f.onComplete()}),new wq([])}return!o&&aw.supports(f)?new aw(f):new p0(f)},Cq=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Sq=e=>uv(e)?e[e.length-1]||0:e;function Tq(e,t){e.indexOf(t)===-1&&e.push(t)}function Aq(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let L6=class{constructor(){this.subscriptions=[]}add(t){return Tq(this.subscriptions,t),()=>Aq(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const sw=30,Pq=e=>!isNaN(parseFloat(e));let _q=class{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=la.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=la.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pq(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new L6);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=la.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sw);return A6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Dh(e,t){return new _q(e,t)}function Rq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dh(n))}function Oq(e,t){const n=gp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=Sq(o[a]);Rq(e,a,u)}}const g0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Mq="framerAppearId",V6="data-"+g0(Mq);function Fq(e){return e.props[V6]}const ur=e=>!!(e&&e.getVelocity);function kq(e){return!!(ur(e)&&e.add)}function Bq(e,t){const n=e.getValue("willChange");if(kq(n))return n.add(t)}function Iq({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&Iq(f,h))continue;const v={delay:n,...t6(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=Fq(e);if(x){const y=window.MotionHandoffAnimation(x,h,kr);y!==null&&(v.startTime=y,$=!0)}}Bq(e,h),m.start(Eq(h,m,g,e.shouldReduceMotion&&gs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{kr.update(()=>{u&&Oq(e,u)})}),d}function vv(e,t,n={}){var r;const i=gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(N6(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return Lq(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function Lq(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Vq).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Vq(e,t){return e.sortNodePosition(t)}function Nq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?gp(e,t,n.custom):t;r=Promise.all(N6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const jq=t0.length;function j6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?j6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jq;n++){const r=t0[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const Kq=[...e0].reverse(),Uq=e0.length;function zq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Nq(e,n,r)))}function Wq(e){let t=zq(e),n=uw(),r=!0;const i=c=>(d,f)=>{var h;const m=gp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=j6(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<Uq;C++){const x=Kq[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||mp(D)||typeof D=="boolean")continue;const k=Hq(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!e6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=uw(),r=!0}}}function Hq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!e6(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uw(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}let qu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Gq=class extends qu{constructor(t){super(t),t.animationState||(t.animationState=Wq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},qq=0,Yq=class extends qu{constructor(){super(...arguments),this.id=qq++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const Zq={animation:{Feature:Gq},exit:{Feature:Yq}},Jq={x:!1,y:!1};function Xq(){return Jq.y}const Qq=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function K6(e){return{point:{x:e.pageX,y:e.pageY}}}function lw(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function U6(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const cw=()=>({min:0,max:0}),z6=()=>({x:cw(),y:cw()});function eY({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function nY(e,t){return eY(tY(e.getBoundingClientRect(),t))}const W6=b.createContext(null),rY=b.createContext({}),iY=b.createContext({}),oY={},{schedule:aY,cancel:nie}=n6(queueMicrotask,!1);function sY(e){const t=ur(e)?e.get():e;return Cq(t)?t.toValue():t}function uY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function H6(e,t){const n=uY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dw(e){return t=>{t.pointerType==="touch"||Xq()||e(t)}}function lY(e,t,n={}){const[r,i,o]=H6(e,n),a=dw(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=dw(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function fw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let cY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=lY(t,n=>(fw(this.node,n,"Start"),r=>fw(this.node,r,"End"))))}unmount(){}},dY=class extends qu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vp(lw(this.node.current,"focus",()=>this.onFocus()),lw(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};const Hl=new WeakSet;function hw(e){return t=>{t.key==="Enter"&&e(t)}}function Mg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hw(()=>{if(Hl.has(n))return;Mg(n,"down");const i=hw(()=>{Mg(n,"up")}),o=()=>Mg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},hY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pY(e){return hY.has(e.tagName)||e.tabIndex!==-1}const G6=(e,t)=>t?e===t?!0:G6(e,t.parentElement):!1;function pw(e){return Qq(e)&&!0}function mY(e,t,n={}){const[r,i,o]=H6(e,n),a=u=>{const c=u.currentTarget;if(!pw(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!pw(g)||!Hl.has(c))&&(Hl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||G6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{pY(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>fY(d,i),i)}),o}function mw(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let gY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=mY(t,n=>(mw(this.node,n,"Start"),(r,{success:i})=>mw(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const bv=new WeakMap,Fg=new WeakMap,yY=e=>{const t=bv.get(e.target);t&&t(e)},vY=e=>{e.forEach(yY)};function bY({root:e,...t}){const n=e||document;Fg.has(n)||Fg.set(n,{});const r=Fg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vY,{root:e,...t})),r[i]}function $Y(e,t,n){const r=bY(t);return bv.set(e,n),r.observe(e),()=>{bv.delete(e),r.unobserve(e)}}const xY={some:0,all:1};let wY=class extends qu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xY[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return $Y(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DY(t,n))&&this.startObserver()}unmount(){}};function DY({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EY={inView:{Feature:wY},tap:{Feature:gY},focus:{Feature:dY},hover:{Feature:cY}},q6=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),y0=typeof window<"u",CY=y0?b.useLayoutEffect:b.useEffect,v0=b.createContext({strict:!1});function SY(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext($p),c=b.useContext(v0),d=b.useContext(W6),f=b.useContext(q6).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(iY);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&TY(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[V6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return CY(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),aY.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function TY(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Y6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&U6(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function Y6(e){if(e)return e.options.allowProjection!==!1?e.projection:Y6(e.parent)}function AY(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):U6(n)&&(n.current=r))},[t])}function xp(e){return mp(e.animate)||t0.some(t=>bc(e[t]))}function Z6(e){return!!(xp(e)||e.variants)}function PY(e,t){if(xp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function _Y(e){const{initial:t,animate:n}=PY(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[gw(t),gw(n)])}function gw(e){return Array.isArray(e)?e.join(" "):e}const yw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ru={};for(const e in yw)Ru[e]={isEnabled:t=>yw[e].some(n=>!!t[n])};function $v(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const RY=Symbol.for("motionComponentSymbol");function OY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$v(e);function o(u,c){let d;const f={...b.useContext(q6),...u,layoutId:MY(u)},{isStatic:h}=f,m=_Y(u),g=r(u,h);if(!h&&y0){FY(f,e);const v=kY(f);d=v.MeasureLayout,m.visualElement=SY(i,g,f,t,v.ProjectionNode)}return Do.jsxs($p.Provider,{value:m,children:[d&&m.visualElement?Do.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,AY(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[RY]=i,a}function MY({layoutId:e}){const t=b.useContext(rY).id;return t&&e!==void 0?t+"-"+e:e}function FY(e,t){const n=b.useContext(v0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Wu(!1,r):cs(!1,r)}}function kY(e){const{drag:t,layout:n}=Ru;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const BY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function b0(e){return typeof e!="string"||e.includes("-")?!1:!!(BY.indexOf(e)>-1||/[A-Z]/u.test(e))}function J6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const X6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Q6(e,t,n,r){J6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X6.has(i)?i:g0(i),t.attrs[i])}function e7(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oY[e]||e==="opacity")}function $0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||e7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function t7(e,t,n){const r=$0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Hc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function IY(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function LY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:VY(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const n7=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(W6),o=()=>LY(e,t,r,i);return n?o():IY(o)};function VY(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=sY(o[m]);let{initial:a,animate:u}=e;const c=xp(e),d=Z6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!mp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=Qb(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const x0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r7=()=>({...x0(),attrs:{}}),i7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,NY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jY=Hc.length;function KY(e,t,n){let r="",i=!0;for(let o=0;o<jY;o++){const a=Hc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=i7(u,u0[a]);if(!c){i=!1;const f=NY[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(h6(c)){i[c]=d;continue}else{const f=i7(d,u0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=KY(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function vw(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function UY(e,t,n){const r=vw(t,e.x,e.width),i=vw(n,e.y,e.height);return`${r} ${i}`}const zY={offset:"stroke-dashoffset",array:"stroke-dasharray"},WY={offset:"strokeDashoffset",array:"strokeDasharray"};function HY(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?zY:WY;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function D0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(w0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=UY(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&HY(m,a,u,c,!1)}const E0=e=>typeof e=="string"&&e.toLowerCase()==="svg",GY={useVisualState:n7({scrapeMotionValuesFromProps:t7,createRenderState:r7,onMount:(e,t,{renderState:n,latestValues:r})=>{kr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),kr.render(()=>{D0(n,r,E0(t.tagName),e.transformTemplate),Q6(t,n)})}})},qY={useVisualState:n7({scrapeMotionValuesFromProps:$0,createRenderState:x0})};function o7(e,t,n){for(const r in t)!ur(t[r])&&!e7(r,n)&&(e[r]=t[r])}function YY({transformTemplate:e},t){return b.useMemo(()=>{const n=x0();return w0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ZY(e,t){const n=e.style||{},r={};return o7(r,n,e),Object.assign(r,YY(e,t)),r}function JY(e,t){const n={},r=ZY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const XY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Eh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XY.has(e)}let a7=e=>!Eh(e);function QY(e){e&&(a7=t=>t.startsWith("on")?!Eh(t):e(t))}try{QY(require("@emotion/is-prop-valid").default)}catch{}function eZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(a7(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tZ(e,t,n,r){const i=b.useMemo(()=>{const o=r7();return D0(o,t,E0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};o7(o,e.style,e),i.style={...o,...i.style}}return i}function nZ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(b0(n)?tZ:JY)(r,o,a,n),d=eZ(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function rZ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...b0(r)?GY:qY,preloadedFeatures:e,useRender:nZ(i),createVisualElement:t,Component:r};return OY(a)}}const xv={current:null},s7={current:!1};function iZ(){if(s7.current=!0,!!y0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xv.current=e.matches;e.addListener(t),t()}else xv.current=!1}function oZ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Dh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Dh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bw=new WeakMap,aZ=[...g6,qn,Gu],sZ=e=>aZ.find(m6(e)),$w=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let uZ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=o0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=la.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,kr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=xp(n),this.isVariantNode=Z6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,bw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),s7.current||iZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xv.current,process.env.NODE_ENV!=="production"&&pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bw.delete(this.current),this.projection&&this.projection.unmount(),lv(this.notifyUpdate),lv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&kr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ru){const n=Ru[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z6()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<$w.length;r++){const i=$w[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=oZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(d6(i)||c6(i))?i=parseFloat(i):!sZ(i)&&Gu.test(n)&&(i=E6(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Qb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new L6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},u7=class extends uZ{constructor(){super(...arguments),this.KeyframeResolver=C6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function lZ(e){return window.getComputedStyle(e)}let cZ=class extends u7{constructor(){super(...arguments),this.type="html",this.renderInstance=J6}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}else{const r=lZ(t),i=(h6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nY(t,n)}build(t,n,r){w0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $0(t,n,r)}},dZ=class extends u7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z6}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}return n=X6.has(n)?n:g0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return t7(t,n,r)}build(t,n,r){D0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Q6(t,n,r,i)}mount(t){this.isSVGTag=E0(t.tagName),super.mount(t)}};const fZ=(e,t)=>b0(e)?new dZ(t):new cZ(t,{allowProjection:e!==b.Fragment}),hZ=rZ(),pZ=jH(hZ);function mZ({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!kg(t)),i=b.useRef(void 0);if(!kg(t)){const{renderer:o,...a}=t;i.current=o,$v(a)}return b.useEffect(()=>{kg(t)&&t().then(({renderer:o,...a})=>{$v(a),i.current=o,r(!0)})},[]),Do.jsx(v0.Provider,{value:{renderer:i.current,strict:n},children:e})}function kg(e){return typeof e=="function"}const gZ={renderer:fZ,...Zq,...EY},l7=b.createContext({});function Yc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const C0=b.createContext(null),S0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yZ(e=!0){const t=b.useContext(C0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const T0=typeof window<"u",c7=T0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Yu=Er,Zi=Er;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zi=(e,t)=>{if(!e)throw new Error(t)});function A0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ou=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hi=e=>e*1e3,wo=e=>e/1e3,vZ={skipAnimations:!1,useManualTiming:!1};function bZ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],$Z=40;function d7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=bZ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,$Z),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Co,state:Bn,steps:Bg}=d7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),f7=b.createContext({strict:!1}),xw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mu={};for(const e in xw)Mu[e]={isEnabled:t=>xw[e].some(n=>!!t[n])};function xZ(e){for(const t in e)Mu[t]={...Mu[t],...e[t]}}const wZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wZ.has(e)}let h7=e=>!Ch(e);function DZ(e){e&&(h7=t=>t.startsWith("on")?!Ch(t):e(t))}try{DZ(require("@emotion/is-prop-valid").default)}catch{}function EZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h7(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ww=new Set;function wp(e,t,n){e||ww.has(t)||(console.warn(t),ww.add(t))}function CZ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&wp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Dp=b.createContext({});function wc(e){return typeof e=="string"||Array.isArray(e)}function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const P0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...P0];function Cp(e){return Ep(e.animate)||_0.some(t=>wc(e[t]))}function p7(e){return!!(Cp(e)||e.variants)}function SZ(e,t){if(Cp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wc(n)?n:void 0,animate:wc(r)?r:void 0}}return e.inherit!==!1?t:{}}function TZ(e){const{initial:t,animate:n}=SZ(e,b.useContext(Dp));return b.useMemo(()=>({initial:t,animate:n}),[Dw(t),Dw(n)])}function Dw(e){return Array.isArray(e)?e.join(" "):e}const AZ=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PZ(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const R0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_Z="framerAppearId",m7="data-"+R0(_Z),{schedule:O0,cancel:die}=d7(queueMicrotask,!1),g7=b.createContext({});function RZ(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Dp),c=b.useContext(f7),d=b.useContext(C0),f=b.useContext(S0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(g7);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&OZ(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[m7],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return c7(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),O0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function OZ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function y7(e){if(e)return e.options.allowProjection!==!1?e.projection:y7(e.parent)}function MZ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&xZ(e);function u(d,f){let h;const m={...b.useContext(S0),...d,layoutId:FZ(d)},{isStatic:g}=m,v=TZ(d),$=r(d,g);if(!g&&T0){kZ(m,e);const C=BZ(m);h=C.MeasureLayout,v.visualElement=RZ(i,$,m,t,C.ProjectionNode)}return Do.jsxs(Dp.Provider,{value:v,children:[h&&v.visualElement?Do.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,PZ($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[AZ]=i,c}function FZ({layoutId:e}){const t=b.useContext(l7).id;return t&&e!==void 0?t+"-"+e:e}function kZ(e,t){const n=b.useContext(f7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yu(!1,r):Zi(!1,r)}}function BZ(e){const{drag:t,layout:n}=Mu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const IZ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M0(e){return typeof e!="string"||e.includes("-")?!1:!!(IZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ew(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F0(e,t,n,r){if(typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const wv=e=>Array.isArray(e),LZ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VZ=e=>wv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function Bf(e){const t=In(e)?e.get():e;return LZ(t)?t.toValue():t}function NZ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:jZ(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const v7=e=>(t,n)=>{const r=b.useContext(Dp),i=b.useContext(C0),o=()=>NZ(e,t,r,i);return n?o():Yc(o)};function jZ(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Bf(o[m]);let{initial:a,animate:u}=e;const c=Cp(e),d=p7(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Ep(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=F0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Zu),b7=e=>t=>typeof t=="string"&&t.startsWith(e),$7=b7("--"),KZ=b7("var(--"),k0=e=>KZ(e)?UZ.test(e.split("/*")[0].trim()):!1,UZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,x7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,n)=>n>t?t:n<e?e:n,Ju={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dc={...Ju,transform:e=>So(0,1,e)},mf={...Ju,default:1},Zc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Zc("deg"),Gi=Zc("%"),Ge=Zc("px"),zZ=Zc("vh"),WZ=Zc("vw"),Cw={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},HZ={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},GZ={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Dc,originX:Cw,originY:Cw,originZ:Ge},Sw={...Ju,transform:Math.round},B0={...HZ,...GZ,zIndex:Sw,size:Ge,fillOpacity:Dc,strokeOpacity:Dc,numOctaves:Sw},qZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YZ=Zu.length;function ZZ(e,t,n){let r="",i=!0;for(let o=0;o<YZ;o++){const a=Zu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=x7(u,B0[a]);if(!c){i=!1;const f=qZ[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function I0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if($7(c)){i[c]=d;continue}else{const f=x7(d,B0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=ZZ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function Tw(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function JZ(e,t,n){const r=Tw(t,e.x,e.width),i=Tw(n,e.y,e.height);return`${r} ${i}`}const XZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},QZ={offset:"strokeDashoffset",array:"strokeDasharray"};function eJ(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?XZ:QZ;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function L0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(I0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=JZ(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&eJ(m,a,u,c,!1)}const V0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),w7=()=>({...V0(),attrs:{}}),N0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const E7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function C7(e,t,n,r){D7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(E7.has(i)?i:R0(i),t.attrs[i])}const Sh={};function tJ(e){Object.assign(Sh,e)}function S7(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sh[e]||e==="opacity")}function j0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||S7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function T7(e,t,n){const r=j0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function nJ(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Aw=["x","y","width","height","cx","cy","r"],rJ={useVisualState:v7({scrapeMotionValuesFromProps:T7,createRenderState:w7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Aw.length;u++){const c=Aw[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>nJ(n,r)),jt.render(()=>{L0(r,i,N0(n.tagName),e.transformTemplate),C7(n,r)}))}})},iJ={useVisualState:v7({scrapeMotionValuesFromProps:j0,createRenderState:V0})};function A7(e,t,n){for(const r in t)!In(t[r])&&!S7(r,n)&&(e[r]=t[r])}function oJ({transformTemplate:e},t){return b.useMemo(()=>{const n=V0();return I0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function aJ(e,t){const n=e.style||{},r={};return A7(r,n,e),Object.assign(r,oJ(e,t)),r}function sJ(e,t){const n={},r=aJ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function uJ(e,t,n,r){const i=b.useMemo(()=>{const o=w7();return L0(o,t,N0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};A7(o,e.style,e),i.style={...o,...i.style}}return i}function lJ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(M0(n)?uJ:sJ)(r,o,a,n),d=EZ(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function cJ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...M0(r)?rJ:iJ,preloadedFeatures:e,useRender:lJ(i),createVisualElement:t,Component:r};return MZ(a)}}function P7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Sp(e,t,n){const r=e.getProps();return F0(r,t,n!==void 0?n:r.custom,e)}const dJ=A0(()=>window.ScrollTimeline!==void 0);class fJ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(dJ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hJ extends fJ{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function K0(e,t){return e?e[t]||e.default||e:void 0}const Dv=2e4;function _7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dv;)t+=n,r=e.next(t);return t>=Dv?1/0:t}function U0(e){return typeof e=="function"}function Pw(e,t){e.timeline=t,e.onfinish=null}const z0=e=>Array.isArray(e)&&typeof e[0]=="number",pJ={linearEasing:void 0};function mJ(e,t){const n=A0(e);return()=>{var r;return(r=pJ[t])!==null&&r!==void 0?r:n()}}const Th=mJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ou(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function O7(e){return!!(typeof e=="function"&&Th()||!e||typeof e=="string"&&(e in Ev||Th())||z0(e)||Array.isArray(e)&&e.every(O7))}const Gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function M7(e,t){if(e)return typeof e=="function"&&Th()?R7(e,t):z0(e)?Gl(e):Array.isArray(e)?e.map(n=>M7(n,t)||Ev.easeOut):Ev[e]}const pi={x:!1,y:!1};function F7(){return pi.x||pi.y}function gJ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function k7(e,t){const n=gJ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _w(e){return t=>{t.pointerType==="touch"||F7()||e(t)}}function yJ(e,t,n={}){const[r,i,o]=k7(e,n),a=_w(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=_w(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const B7=(e,t)=>t?e===t?!0:B7(e,t.parentElement):!1,W0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bJ(e){return vJ.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function Rw(e){return t=>{t.key==="Enter"&&e(t)}}function Ig(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $J=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rw(()=>{if(ql.has(n))return;Ig(n,"down");const i=Rw(()=>{Ig(n,"up")}),o=()=>Ig(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ow(e){return W0(e)&&!F7()}function xJ(e,t,n={}){const[r,i,o]=k7(e,n),a=u=>{const c=u.currentTarget;if(!Ow(u)||ql.has(c))return;ql.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Ow(g)||!ql.has(c))&&(ql.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||B7(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!bJ(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>$J(d,i),i)}),o}function wJ(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const I7=new Set(["width","height","top","left","right","bottom",...Zu]);let If;function DJ(){If=void 0}const qi={now:()=>(If===void 0&&qi.set(Bn.isProcessing||vZ.useManualTiming?Bn.timestamp:performance.now()),If),set:e=>{If=e,queueMicrotask(DJ)}};function H0(e,t){e.indexOf(t)===-1&&e.push(t)}function G0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function EJ([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}class q0{constructor(){this.subscriptions=[]}add(t){return H0(this.subscriptions,t),()=>G0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function L7(e,t){return t?e*(1e3/t):0}const Mw=30,CJ=e=>!isNaN(parseFloat(e)),rc={current:void 0};class SJ{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CJ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&wp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new q0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mw);return L7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fu(e,t){return new SJ(e,t)}function TJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fu(n))}function AJ(e,t){const n=Sp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=VZ(o[a]);TJ(e,a,u)}}function PJ(e){return!!(In(e)&&e.add)}function Cv(e,t){const n=e.getValue("willChange");if(PJ(n))return n.add(t)}function V7(e){return e.props[m7]}const N7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_J=1e-7,RJ=12;function OJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=N7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>_J&&++u<RJ);return a}function Jc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>OJ(o,0,1,e,n);return o=>o===0||o===1?o:N7(i(o),t,r)}const j7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,K7=e=>t=>1-e(1-t),U7=Jc(.33,1.53,.69,.99),Y0=K7(U7),z7=j7(Y0),W7=e=>(e*=2)<1?.5*Y0(e):.5*(2-Math.pow(2,-10*(e-1))),Z0=e=>1-Math.sin(Math.acos(e)),H7=K7(Z0),G7=j7(Z0),q7=e=>/^0[^.\s]+$/u.test(e);function MJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||q7(e):!0}const ic=e=>Math.round(e*1e5)/1e5,J0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function FJ(e){return e==null}const kJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,X0=(e,t)=>n=>!!(typeof n=="string"&&kJ.test(n)&&n.startsWith(e)||t&&!FJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Y7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(J0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},BJ=e=>So(0,255,e),Lg={...Ju,transform:e=>Math.round(BJ(e))},Ga={test:X0("rgb","red"),parse:Y7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lg.transform(e)+", "+Lg.transform(t)+", "+Lg.transform(n)+", "+ic(Dc.transform(r))+")"};function IJ(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Sv={test:X0("#"),parse:IJ,transform:Ga.transform},ou={test:X0("hsl","hue"),parse:Y7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(ic(t))+", "+Gi.transform(ic(n))+", "+ic(Dc.transform(r))+")"},Yn={test:e=>Ga.test(e)||Sv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):Sv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},LJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function VJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(J0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LJ))===null||n===void 0?void 0:n.length)||0)>0}const Z7="number",J7="color",NJ="var",jJ="var(",Fw="${}",KJ=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ec(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(KJ,c=>(Yn.test(c)?(r.color.push(o),i.push(J7),n.push(Yn.parse(c))):c.startsWith(jJ)?(r.var.push(o),i.push(NJ),n.push(c)):(r.number.push(o),i.push(Z7),n.push(parseFloat(c))),++o,Fw)).split(Fw);return{values:n,split:u,indexes:r,types:i}}function X7(e){return Ec(e).values}function Q7(e){const{split:t,types:n}=Ec(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===Z7?o+=ic(i[a]):u===J7?o+=Yn.transform(i[a]):o+=i[a]}return o}}const UJ=e=>typeof e=="number"?0:e;function zJ(e){const t=X7(e);return Q7(e)(t.map(UJ))}const ha={test:VJ,parse:X7,createTransformer:Q7,getAnimatableNone:zJ},WJ=new Set(["brightness","contrast","saturate","opacity"]);function HJ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(J0)||[];if(!r)return e;const i=n.replace(r,"");let o=WJ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const GJ=/\b([a-z-]*)\(.*?\)/gu,Tv={...ha,getAnimatableNone:e=>{const t=e.match(GJ);return t?t.map(HJ).join(" "):e}},qJ={...B0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Tv,WebkitFilter:Tv},Q0=e=>qJ[e];function e_(e,t){let n=Q0(e);return n!==Tv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YJ=new Set(["auto","none","0"]);function ZJ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!YJ.has(o)&&Ec(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=e_(n,i)}const kw=e=>e===Ju||e===Ge,Bw=(e,t)=>parseFloat(e.split(", ")[t]),Iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Bw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Bw(o[1],e):0}},JJ=new Set(["x","y","z"]),XJ=Zu.filter(e=>!JJ.has(e));function QJ(e){const t=[];return XJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Iw(4,13),y:Iw(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Qa=new Set;let Av=!1,Pv=!1;function t_(){if(Pv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pv=!1,Av=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function n_(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pv=!0)})}function eX(){n_(),t_()}class e1{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),Av||(Av=!0,jt.read(n_),jt.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const r_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nX(e){const t=tX.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const rX=4;function i_(e,t,n=1){Zi(n<=rX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=nX(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return r_(a)?parseFloat(a):a}return k0(i)?i_(i,t,n+1):i}const o_=e=>t=>t.test(e),iX={test:e=>e==="auto",parse:e=>e},a_=[Ju,Ge,Gi,Zo,WZ,zZ,iX],Lw=e=>a_.find(o_(e));class s_ extends e1{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),k0(d))){const f=i_(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!I7.has(r)||t.length!==2)return;const[i,o]=t,a=Lw(i),u=Lw(o);if(a!==u)if(kw(a)&&kw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)MJ(t[i])&&r.push(i);r.length&&ZJ(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Vw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function oX(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function aX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Vw(i,t),u=Vw(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:oX(e)||(n==="spring"||U0(n))&&r}const sX=e=>e!==null;function Tp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(sX),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const uX=40;class u_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eX(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!aX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Tp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const qt=(e,t,n)=>e+(t-e)*n;function Vg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Vg(c,u,e+1/3),o=Vg(c,u,e),a=Vg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ah(e,t){return n=>n>0?t:e}const Ng=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cX=[Sv,Ga,ou],dX=e=>cX.find(t=>t.test(e));function Nw(e){const t=dX(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=lX(n)),n}const jw=(e,t)=>{const n=Nw(e),r=Nw(t);if(!n||!r)return Ah(e,t);const i={...n};return o=>(i.red=Ng(n.red,r.red,o),i.green=Ng(n.green,r.green,o),i.blue=Ng(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},fX=(e,t)=>n=>t(e(n)),Xc=(...e)=>e.reduce(fX),_v=new Set(["none","hidden"]);function hX(e,t){return _v.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pX(e,t){return n=>qt(e,t,n)}function t1(e){return typeof e=="number"?pX:typeof e=="string"?k0(e)?Ah:Yn.test(e)?jw:yX:Array.isArray(e)?l_:typeof e=="object"?Yn.test(e)?jw:mX:Ah}function l_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>t1(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function mX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=t1(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function gX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const yX=(e,t)=>{const n=ha.createTransformer(t),r=Ec(e),i=Ec(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_v.has(e)&&!i.values.length||_v.has(t)&&!r.values.length?hX(e,t):Xc(l_(gX(r,i),i.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ah(e,t))};function c_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):t1(e)(e,t)}const vX=5;function d_(e,t,n){const r=Math.max(t-vX,0);return L7(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kw=.001;function bX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Hi(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=So(Xt.minDamping,Xt.maxDamping,a),e=So(Xt.minDuration,Xt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Rv(d,a),v=Math.exp(-h);return Kw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=Rv(Math.pow(d,2),a);return(-i(d)+Kw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=xX(i,o,u);if(e=Hi(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const $X=12;function xX(e,t,n){let r=n;for(let i=1;i<$X;i++)r=r-e(r)/t(r);return r}function Rv(e,t){return e*Math.sqrt(1-t*t)}const wX=["duration","bounce"],DX=["stiffness","damping","mass"];function Uw(e,t){return t.some(n=>e[n]!==void 0)}function EX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!Uw(e,DX)&&Uw(e,wX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*So(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=bX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function f_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=EX({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=Rv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Hi(v):d_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_7(P),Dv),T=R7(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function zw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=f_({keyframes:[m.value,v(m.value)],velocity:d_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const CX=Jc(.42,0,1,1),SX=Jc(0,0,.58,1),h_=Jc(.42,0,.58,1),TX=e=>Array.isArray(e)&&typeof e[0]!="number",Ww={linear:Er,easeIn:CX,easeInOut:h_,easeOut:SX,circIn:Z0,circInOut:G7,circOut:H7,backIn:Y0,backInOut:z7,backOut:U7,anticipate:W7},Hw=e=>{if(z0(e)){Zi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jc(t,n,r,i)}else if(typeof e=="string")return Zi(Ww[e]!==void 0,`Invalid easing type '${e}'`),Ww[e];return e};function AX(e,t,n){const r=[],i=n||c_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Xc(c,u)}r.push(u)}return r}function p_(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=AX(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ou(e[h],e[h+1],f);return u[h](m)};return n?f=>d(So(e[0],e[o-1],f)):d}function PX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ou(0,t,r);e.push(qt(n,1,i))}}function _X(e){const t=[0];return PX(t,e.length-1),t}function RX(e,t){return e.map(n=>n*t)}function OX(e,t){return e.map(()=>t||h_).splice(0,e.length-1)}function Ph({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=TX(r)?r.map(Hw):Hw(r),o={done:!1,value:t[0]},a=RX(n&&n.length===t.length?n:_X(t),e),u=p_(a,t,{ease:Array.isArray(i)?i:OX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const MX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Co(t),now:()=>Bn.isProcessing?Bn.timestamp:qi.now()}},FX={decay:zw,inertia:zw,tween:Ph,keyframes:Ph,spring:f_},kX=e=>e/100;class n1 extends u_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||e1,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:FX[n]||Ph;let c,d;u!==Ph&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Zi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Xc(kX,c_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_7(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=So(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Tp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(this.currentTime)}set time(t){t=Hi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=MX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const BX=new Set(["opacity","clipPath","filter","transform"]);function IX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=M7(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const LX=A0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,VX=2e4;function NX(e){return U0(e.type)||e.type==="spring"||!O7(e.ease)}function jX(e,t){const n=new n1({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<VX;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const m_={anticipate:W7,backInOut:z7,circInOut:G7};function KX(e){return e in m_}class Gw extends u_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new s_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Th()&&KX(a)&&(a=m_[a]),NX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=jX(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=IX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Pw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Tp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;Pw(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new n1({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Hi(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return LX()&&r&&BX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const UX={type:"spring",stiffness:500,damping:25,restSpeed:10},zX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),WX={type:"keyframes",duration:.8},HX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GX=(e,{keyframes:t})=>t.length>2?WX:ys.has(e)?e.startsWith("scale")?zX(t[1]):UX:HX;function qX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const r1=(e,t,n,r={},i,o)=>a=>{const u=K0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};qX(u)||(f={...f,...GX(e,f)}),f.duration&&(f.duration=Hi(f.duration)),f.repeatDelay&&(f.repeatDelay=Hi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Tp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new hJ([])}return!o&&Gw.supports(f)?new Gw(f):new n1(f)};function YX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function g_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&YX(f,h))continue;const v={delay:n,...K0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=V7(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}Cv(e,h),m.start(r1(h,m,g,e.shouldReduceMotion&&I7.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&AJ(e,u)})}),d}function Ov(e,t,n={}){var r;const i=Sp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(g_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return ZX(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function ZX(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(JX).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Ov(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function JX(e,t){return e.sortNodePosition(t)}function XX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ov(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ov(e,t,n);else{const i=typeof t=="function"?Sp(e,t,n.custom):t;r=Promise.all(g_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const QX=_0.length;function y_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?y_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<QX;n++){const r=_0[n],i=e.props[r];(wc(i)||i===!1)&&(t[r]=i)}return t}const eQ=[...P0].reverse(),tQ=P0.length;function nQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>XX(e,n,r)))}function rQ(e){let t=nQ(e),n=qw(),r=!0;const i=c=>(d,f)=>{var h;const m=Sp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=y_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<tQ;C++){const x=eQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=wc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||Ep(D)||typeof D=="boolean")continue;const k=iQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;wv(M)&&wv(Y)?V=!P7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=qw(),r=!0}}}function iQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!P7(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}class ya{constructor(t){this.isMounted=!1,this.node=t}update(){}}class oQ extends ya{constructor(t){super(t),t.animationState||(t.animationState=rQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let aQ=0;class sQ extends ya{constructor(){super(...arguments),this.id=aQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const uQ={animation:{Feature:oQ},exit:{Feature:sQ}};function Cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qc(e){return{point:{x:e.pageX,y:e.pageY}}}const lQ=e=>t=>W0(t)&&e(t,Qc(t));function oc(e,t,n,r){return Cc(e,t,lQ(n),r)}const Yw=(e,t)=>Math.abs(e-t);function cQ(e,t){const n=Yw(e.x,t.x),r=Yw(e.y,t.y);return Math.sqrt(n**2+r**2)}class v_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Kg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=cQ(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=jg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Kg(h.type==="pointercancel"?this.lastMoveEventInfo:jg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!W0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Qc(t),u=jg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Kg(u,this.history)),this.removeListeners=Xc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function jg(e,t){return t?{point:t(e.point)}:e}function Zw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kg({point:e},t){return{point:e,delta:Zw(e,b_(t)),offset:Zw(e,dQ(t)),velocity:fQ(t,.1)}}function dQ(e){return e[0]}function b_(e){return e[e.length-1]}function fQ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=b_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const $_=1e-4,hQ=1-$_,pQ=1+$_,x_=.01,mQ=0-x_,gQ=0+x_;function Br(e){return e.max-e.min}function yQ(e,t,n){return Math.abs(e-t)<=n}function Jw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hQ&&e.scale<=pQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=mQ&&e.translate<=gQ||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){Jw(e.x,t.x,n.x,r?r.originX:void 0),Jw(e.y,t.y,n.y,r?r.originY:void 0)}function Xw(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function vQ(e,t,n){Xw(e.x,t.x,n.x),Xw(e.y,t.y,n.y)}function Qw(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function sc(e,t,n){Qw(e.x,t.x,n.x),Qw(e.y,t.y,n.y)}function bQ(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function eD(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $Q(e,{top:t,left:n,bottom:r,right:i}){return{x:eD(e.x,n,i),y:eD(e.y,t,r)}}function tD(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xQ(e,t){return{x:tD(e.x,t.x),y:tD(e.y,t.y)}}function wQ(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Ou(t.min,t.max-r,e.min):r>i&&(n=Ou(e.min,e.max-i,t.min)),So(0,1,n)}function DQ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mv=.35;function EQ(e=Mv){return e===!1?e=0:e===!0&&(e=Mv),{x:nD(e,"left","right"),y:nD(e,"top","bottom")}}function nD(e,t,n){return{min:rD(e,t),max:rD(e,n)}}function rD(e,t){return typeof e=="number"?e:e[t]||0}const iD=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:iD(),y:iD()}),oD=()=>({min:0,max:0}),cn=()=>({x:oD(),y:oD()});function Qr(e){return[e("x"),e("y")]}function w_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ug(e){return e===void 0||e===1}function Fv({scale:e,scaleX:t,scaleY:n}){return!Ug(e)||!Ug(t)||!Ug(n)}function Ba(e){return Fv(e)||D_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function D_(e){return aD(e.x)||aD(e.y)}function aD(e){return e&&e!=="0%"}function Rh(e,t,n){const r=e-n,i=t*r;return n+i}function sD(e,t,n,r,i){return i!==void 0&&(e=Rh(e,i,r)),Rh(e,n,r)+t}function kv(e,t=0,n=1,r,i){e.min=sD(e.min,t,n,r,i),e.max=sD(e.max,t,n,r,i)}function E_(e,{x:t,y:n}){kv(e.x,t.translate,t.scale,t.originPoint),kv(e.y,n.translate,n.scale,n.originPoint)}const uD=.999999999999,lD=1.0000000000001;function TQ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,E_(e,a)),r&&Ba(o.latestValues)&&uu(e,o.latestValues))}t.x<lD&&t.x>uD&&(t.x=1),t.y<lD&&t.y>uD&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function cD(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);kv(e,t,n,o,r)}function uu(e,t){cD(e.x,t.x,t.scaleX,t.scale,t.originX),cD(e.y,t.y,t.scaleY,t.scale,t.originY)}function C_(e,t){return w_(SQ(e.getBoundingClientRect(),t))}function AQ(e,t,n){const r=C_(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const S_=({current:e})=>e?e.ownerDocument.defaultView:null,PQ=new WeakMap;class _Q{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wJ(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Gi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=Br(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),Cv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=RQ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new v_(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=bQ(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=$Q(i.layoutBox,n):this.constraints=!1,this.elastic=EQ(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=DQ(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Zi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=AQ(r,i.root,this.visualElement.getTransformPagePoint());let a=xQ(i.layout.layoutBox,o);if(n){const u=n(CQ(a));this.hasMutatedConstraints=!!u,u&&(a=w_(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Cv(this.visualElement,t),r.start(r1(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=wQ({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;PQ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Cc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RQ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OQ extends ya{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new _Q(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const dD=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class MQ extends ya{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new v_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dD(t),onStart:dD(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Lf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=fD(e,t.target.x),r=fD(e,t.target.y);return`${n}% ${r}%`}},FQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class kQ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;tJ(BQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Lf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),O0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function T_(e){const[t,n]=yZ(),r=b.useContext(l7);return Do.jsx(kQ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(g7),isPresent:t,safeToRemove:n})}const BQ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:FQ};function IQ(e,t,n){const r=In(e)?e:Fu(e);return r.start(r1("",r,t,n)),r.animation}function LQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VQ=(e,t)=>e.depth-t.depth;class NQ{constructor(){this.children=[],this.isDirty=!1}add(t){H0(this.children,t),this.isDirty=!0}remove(t){G0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VQ),this.isDirty=!1,this.children.forEach(t)}}function jQ(e,t){const n=qi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return jt.read(r,!0),()=>Co(r)}const A_=["TopLeft","TopRight","BottomLeft","BottomRight"],KQ=A_.length,hD=e=>typeof e=="string"?parseFloat(e):e,pD=e=>typeof e=="number"||Ge.test(e);function UQ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,zQ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,WQ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<KQ;a++){const u=`border${A_[a]}Radius`;let c=mD(t,u),d=mD(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||pD(c)===pD(d)?(e[u]=Math.max(qt(hD(c),hD(d),r),0),(Gi.test(d)||Gi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function mD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zQ=P_(0,.5,H7),WQ=P_(.5,.95,Er);function P_(e,t,n){return r=>r<e?0:r>t?1:n(Ou(e,t,r))}function gD(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){gD(e.x,t.x),gD(e.y,t.y)}function yD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vD(e,t,n,r,i){return e-=t,e=Rh(e,1/n,r),i!==void 0&&(e=Rh(e,1/i,r)),e}function HQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=vD(e.min,t,n,u,i),e.max=vD(e.max,t,n,u,i)}function bD(e,t,[n,r,i],o,a){HQ(e,t[n],t[r],t[i],t.scale,o,a)}const GQ=["x","scaleX","originX"],qQ=["y","scaleY","originY"];function $D(e,t,n,r){bD(e.x,t,GQ,n?n.x:void 0,r?r.x:void 0),bD(e.y,t,qQ,n?n.y:void 0,r?r.y:void 0)}function xD(e){return e.translate===0&&e.scale===1}function __(e){return xD(e.x)&&xD(e.y)}function wD(e,t){return e.min===t.min&&e.max===t.max}function YQ(e,t){return wD(e.x,t.x)&&wD(e.y,t.y)}function DD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function R_(e,t){return DD(e.x,t.x)&&DD(e.y,t.y)}function ED(e){return Br(e.x)/Br(e.y)}function CD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZQ{constructor(){this.members=[]}add(t){H0(this.members,t),t.scheduleRender()}remove(t){if(G0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JQ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yl=typeof window<"u"&&window.MotionDebug!==void 0,zg=["","X","Y","Z"],XQ={visibility:"hidden"},SD=1e3;let QQ=0;function Wg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function O_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=V7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&O_(r)}function M_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=QQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yl&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach(nee),this.nodes.forEach(see),this.nodes.forEach(uee),this.nodes.forEach(ree),Yl&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new NQ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new q0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=LQ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=jQ(m,250),Lf.hasAnimatedSinceResize&&(Lf.hasAnimatedSinceResize=!1,this.nodes.forEach(AD))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||hee,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!R_(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...K0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||AD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(lee),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(TD);return}this.isUpdating||this.nodes.forEach(oee),this.isUpdating=!1,this.nodes.forEach(aee),this.nodes.forEach(eee),this.nodes.forEach(tee),this.clearAllSnapshots();const u=qi.now();Bn.delta=So(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,Bg.update.process(Bn),Bg.preRender.process(Bn),Bg.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iee),this.sharedNodes.forEach(cee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!__(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ba(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),pee(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(mee))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ba(f.latestValues)&&uu(c,f.latestValues)}return Ba(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ba(d.latestValues))continue;Fv(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),$D(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ba(this.latestValues)&&$D(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vQ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),E_(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yl&&Ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fv(this.parent.latestValues)||D_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;TQ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yD(this.prevProjectionDelta.x,this.projectionDelta.x),yD(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!CD(this.projectionDelta.x,this.prevProjectionDelta.x)||!CD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Yl&&Ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(fee));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;PD(h.x,a.x,E),PD(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dee(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&YQ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,UQ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Lf.hasAnimatedSinceResize=!0,this.currentAnimation=IQ(0,SD,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&F_(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=Br(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=Br(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ZQ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Wg("z",a,d,this.animationValues);for(let f=0;f<zg.length;f++)Wg(`rotate${zg[f]}`,a,d,this.animationValues),Wg(`skew${zg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return XQ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=JQ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in Sh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=Sh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?Bf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(TD),this.root.sharedNodes.clear()}}}function eee(e){e.updateLayout()}function tee(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(m);m.min=r[h].min,m.max=m.min+g}):F_(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!__(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),R_(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function nee(e){Yl&&Ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ree(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iee(e){e.clearSnapshot()}function TD(e){e.clearMeasurements()}function oee(e){e.isLayoutDirty=!1}function aee(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function see(e){e.resolveTargetDelta()}function uee(e){e.calcProjection()}function lee(e){e.resetSkewAndRotation()}function cee(e){e.removeLeadSnapshot()}function PD(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _D(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function dee(e,t,n,r){_D(e.x,t.x,n.x,r),_D(e.y,t.y,n.y,r)}function fee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hee={duration:.45,ease:[.4,0,.1,1]},RD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),OD=RD("applewebkit/")&&!RD("chrome/")?Math.round:Er;function MD(e){e.min=OD(e.min),e.max=OD(e.max)}function pee(e){MD(e.x),MD(e.y)}function F_(e,t,n){return e==="position"||e==="preserve-aspect"&&!yQ(ED(t),ED(n),.2)}function mee(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gee=M_({attachResizeListener:(e,t)=>Cc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hg={current:void 0},k_=M_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hg.current){const e=new gee({});e.mount(window),e.setOptions({layoutScroll:!0}),Hg.current=e}return Hg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yee={pan:{Feature:MQ},drag:{Feature:OQ,ProjectionNode:k_,MeasureLayout:T_}};function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class vee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=yJ(t,n=>(FD(this.node,n,"Start"),r=>FD(this.node,r,"End"))))}unmount(){}}class bee extends ya{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xc(Cc(this.node.current,"focus",()=>this.onFocus()),Cc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class $ee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=xJ(t,n=>(kD(this.node,n,"Start"),(r,{success:i})=>kD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bv=new WeakMap,Gg=new WeakMap,xee=e=>{const t=Bv.get(e.target);t&&t(e)},wee=e=>{e.forEach(xee)};function Dee({root:e,...t}){const n=e||document;Gg.has(n)||Gg.set(n,{});const r=Gg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wee,{root:e,...t})),r[i]}function Eee(e,t,n){const r=Dee(t);return Bv.set(e,n),r.observe(e),()=>{Bv.delete(e),r.unobserve(e)}}const Cee={some:0,all:1};class See extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Cee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return Eee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Tee(t,n))&&this.startObserver()}unmount(){}}function Tee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Aee={inView:{Feature:See},tap:{Feature:$ee},focus:{Feature:bee},hover:{Feature:vee}},Pee={layout:{ProjectionNode:k_,MeasureLayout:T_}},Iv={current:null},B_={current:!1};function _ee(){if(B_.current=!0,!!T0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}const Ree=[...a_,Yn,ha],Oee=e=>Ree.find(o_(e)),BD=new WeakMap;function Mee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&wp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Fu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ID=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=qi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Cp(n),this.isVariantNode=p7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,BD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),B_.current||_ee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&wp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){BD.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mu){const n=Mu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ID.length;r++){const i=ID[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Mee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(r_(i)||q7(i))?i=parseFloat(i):!Oee(i)&&ha.test(n)&&(i=e_(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=F0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new q0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class I_ extends Fee{constructor(){super(...arguments),this.KeyframeResolver=s_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kee(e){return window.getComputedStyle(e)}class Bee extends I_{constructor(){super(...arguments),this.type="html",this.renderInstance=D7}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}else{const r=kee(t),i=($7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return C_(t,n)}build(t,n,r){I0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return j0(t,n,r)}}class Iee extends I_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}return n=E7.has(n)?n:R0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return T7(t,n,r)}build(t,n,r){L0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){C7(t,n,r,i)}mount(t){this.isSVGTag=N0(t.tagName),super.mount(t)}}const Lee=(e,t)=>M0(e)?new Iee(t):new Bee(t,{allowProjection:e!==b.Fragment}),Vee=cJ({...uQ,...Aee,...yee,...Pee},Lee),L_=CZ(Vee);function V_(e){const t=Yc(()=>Fu(e)),{isStatic:n}=b.useContext(S0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function N_(e,t){const n=V_(t()),r=()=>n.set(t());return r(),c7(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Co(r)}}),n}const Nee=e=>e&&typeof e=="object"&&e.mix,jee=e=>Nee(e)?e.mix:void 0;function Kee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=p_(i,o,{mixer:jee(o[0]),...a});return t?u(r):u}function Uee(e){rc.current=[],e();const t=N_(rc.current,e);return rc.current=void 0,t}function zee(e,t,n,r){if(typeof e=="function")return Uee(e);const i=typeof t=="function"?t:Kee(t,n,r);return Array.isArray(e)?LD(e,i):LD([e],([o])=>i(o))}function LD(e,t){const n=Yc(()=>[]);return N_(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const j_=b.createContext(null);function Wee(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?EJ(e,i,i+o):e}function Hee({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Yc(()=>L_[t]),c=[],d=b.useRef(!1);Zi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(Yee)},updateOrder:(h,m,g)=>{if(d.current)return;const v=Wee(c,h,m,g);c!==v&&(d.current=!0,r(v.map(qee).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Do.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Do.jsx(j_.Provider,{value:f,children:e})})}const Gee=b.forwardRef(Hee);function qee(e){return e.value}function Yee(e,t){return e.layout.min-t.layout.min}function VD(e,t=0){return In(e)?e:V_(t)}function Zee({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Yc(()=>L_[r]),d=b.useContext(j_),f={x:VD(t.x),y:VD(t.y)},h=zee([f.x,f.y],([$,C])=>$||C?1:"unset");Zi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Do.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const Jee=b.forwardRef(Zee);function K_(e){return t=>typeof t===e}var Xee=K_("function"),Qee=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!ete(e)&&!Qee(e)&&(Xee(e)||typeof e=="object"),ete=K_("undefined");function tte(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function nte(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function rte(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function ite(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return tte(e,t);if(e instanceof Map&&t instanceof Map)return rte(e,t);if(e instanceof Set&&t instanceof Set)return ite(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return nte(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ote=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ate=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ste(t))return t}function Si(e){return t=>Ap(t)===e}function ste(e){return ote.includes(e)}function Xu(e){return t=>typeof t===e}function ute(e){return ate.includes(e)}var lte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&<e.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||ute(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function cte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function dte(e,t,n){return U_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ki(e,i),c=Ki(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return dte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?fte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ki(e,n),i=Ki(t,n);if(!U_(r,i))throw new TypeError("Inputs have different types");if(!cte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function fte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function U_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ki(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function hte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var pte=hte();const mte=To(pte);var Vf={exports:{}},gte=Vf.exports,qD;function yte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(gte,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Vf)),Vf.exports}var vte=yte();const z_=To(vte);var Yg,YD;function bte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var $te=bte();const ZD=To($te);var Zg,JD;function xte(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var wte=xte();const bi=To(wte);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
|
|
156
156
|
* react-is.production.min.js
|
|
157
157
|
*
|
|
158
158
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
159
|
*
|
|
160
160
|
* This source code is licensed under the MIT license found in the
|
|
161
161
|
* LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/var XD;function
|
|
162
|
+
*/var XD;function Dte(){if(XD)return Et;XD=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case v:case g:case a:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return Et.AsyncMode=c,Et.ConcurrentMode=d,Et.ContextConsumer=u,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=f,Et.Fragment=r,Et.Lazy=v,Et.Memo=g,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.isAsyncMode=function(E){return P(E)||D(E)===c},Et.isConcurrentMode=P,Et.isContextConsumer=function(E){return D(E)===u},Et.isContextProvider=function(E){return D(E)===a},Et.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Et.isForwardRef=function(E){return D(E)===f},Et.isFragment=function(E){return D(E)===r},Et.isLazy=function(E){return D(E)===v},Et.isMemo=function(E){return D(E)===g},Et.isPortal=function(E){return D(E)===n},Et.isProfiler=function(E){return D(E)===o},Et.isStrictMode=function(E){return D(E)===i},Et.isSuspense=function(E){return D(E)===h},Et.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===x||E.$$typeof===y||E.$$typeof===$)},Et.typeOf=D,Et}var Ct={};/** @license React v16.13.1
|
|
163
163
|
* react-is.development.js
|
|
164
164
|
*
|
|
165
165
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
166
166
|
*
|
|
167
167
|
* This source code is licensed under the MIT license found in the
|
|
168
168
|
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/var QD;function
|
|
169
|
+
*/var QD;function Ete(){return QD||(QD=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(le){return typeof le=="string"||typeof le=="function"||le===r||le===d||le===o||le===i||le===h||le===m||typeof le=="object"&&le!==null&&(le.$$typeof===v||le.$$typeof===g||le.$$typeof===a||le.$$typeof===u||le.$$typeof===f||le.$$typeof===C||le.$$typeof===x||le.$$typeof===y||le.$$typeof===$)}function P(le){if(typeof le=="object"&&le!==null){var Fe=le.$$typeof;switch(Fe){case t:var et=le.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case v:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=c,T=d,k=u,S=a,U=t,O=f,F=r,G=v,K=g,W=n,j=o,L=i,_=h,M=!1;function Y(le){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(le)||P(le)===c}function V(le){return P(le)===d}function z(le){return P(le)===u}function re(le){return P(le)===a}function oe(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function fe(le){return P(le)===f}function ie(le){return P(le)===r}function Ee(le){return P(le)===v}function $e(le){return P(le)===g}function ne(le){return P(le)===n}function ye(le){return P(le)===o}function xe(le){return P(le)===i}function he(le){return P(le)===h}Ct.AsyncMode=E,Ct.ConcurrentMode=T,Ct.ContextConsumer=k,Ct.ContextProvider=S,Ct.Element=U,Ct.ForwardRef=O,Ct.Fragment=F,Ct.Lazy=G,Ct.Memo=K,Ct.Portal=W,Ct.Profiler=j,Ct.StrictMode=L,Ct.Suspense=_,Ct.isAsyncMode=Y,Ct.isConcurrentMode=V,Ct.isContextConsumer=z,Ct.isContextProvider=re,Ct.isElement=oe,Ct.isForwardRef=fe,Ct.isFragment=ie,Ct.isLazy=Ee,Ct.isMemo=$e,Ct.isPortal=ne,Ct.isProfiler=ye,Ct.isStrictMode=xe,Ct.isSuspense=he,Ct.isValidElementType=D,Ct.typeOf=P}()),Ct}var eE;function W_(){return eE||(eE=1,process.env.NODE_ENV==="production"?vf.exports=Dte():vf.exports=Ete()),vf.exports}/*
|
|
170
170
|
object-assign
|
|
171
171
|
(c) Sindre Sorhus
|
|
172
172
|
@license MIT
|
|
173
|
-
*/var Jg,tE;function
|
|
174
|
-
Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(z)}function W(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(W);if(V===null||u(V))return!0;var z=h(V);if(z){var re=z.call(V),oe;if(z!==V.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(V,z){return V==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function L(V){var z=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":j(z,V)?"symbol":z}function _(V){if(typeof V>"u"||V===null)return""+V;var z=L(V);if(z==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return z}function M(V){var z=_(V);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Y(V){return!V.constructor||!V.constructor.name?m:V.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},ty}var ny,aE;function
|
|
173
|
+
*/var Jg,tE;function Cte(){if(tE)return Jg;tE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jg=i()?Object.assign:function(o,a){for(var u,c=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},Jg}var Xg,nE;function o1(){if(nE)return Xg;nE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xg=e,Xg}var Qg,rE;function H_(){return rE||(rE=1,Qg=Function.call.bind(Object.prototype.hasOwnProperty)),Qg}var ey,iE;function Ste(){if(iE)return ey;iE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=o1(),n={},r=H_();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,c,u,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ey=i,ey}var ty,oE;function Tte(){if(oE)return ty;oE=1;var e=W_(),t=Cte(),n=o1(),r=H_(),i=Ste(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ty=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(V){var z=V&&(d&&V[d]||V[f]);if(typeof z=="function")return z}var m="<<anonymous>>",g={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:O(),objectOf:S,oneOf:k,oneOfType:U,shape:G,exact:K};function v(V,z){return V===z?V!==0||1/V===1/z:V!==V&&z!==z}function $(V,z){this.message=V,this.data=z&&typeof z=="object"?z:{},this.stack=""}$.prototype=Error.prototype;function C(V){if(process.env.NODE_ENV!=="production")var z={},re=0;function oe(ie,Ee,$e,ne,ye,xe,he){if(ne=ne||m,xe=xe||$e,he!==n){if(c){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ne+":"+$e;!z[Fe]&&re<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[Fe]=!0,re++)}}return Ee[$e]==null?ie?Ee[$e]===null?new $("The "+ye+" `"+xe+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new $("The "+ye+" `"+xe+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:V(Ee,$e,ne,ye,xe)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function x(V){function z(re,oe,fe,ie,Ee,$e){var ne=re[oe],ye=L(ne);if(ye!==V){var xe=_(ne);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+xe+"` supplied to `"+fe+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return C(z)}function y(){return C(a)}function D(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var $e=re[oe];if(!Array.isArray($e)){var ne=L($e);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<$e.length;ye++){var xe=V($e,ye,fe,ie,Ee+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return C(z)}function P(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!u(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(V)}function E(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!e.isValidElementType(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(V)}function T(V){function z(re,oe,fe,ie,Ee){if(!(re[oe]instanceof V)){var $e=V.name||m,ne=Y(re[oe]);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected ")+("instance of `"+$e+"`."))}return null}return C(z)}function k(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function z(re,oe,fe,ie,Ee){for(var $e=re[oe],ne=0;ne<V.length;ne++)if(v($e,V[ne]))return null;var ye=JSON.stringify(V,function(he,le){var Fe=_(le);return Fe==="symbol"?String(le):le});return new $("Invalid "+ie+" `"+Ee+"` of value `"+String($e)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return C(z)}function S(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an object."));for(var ye in $e)if(r($e,ye)){var xe=V($e,ye,fe,ie,Ee+"."+ye,n);if(xe instanceof Error)return xe}return null}return C(z)}function U(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<V.length;z++){var re=V[z];if(typeof re!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(re)+" at index "+z+"."),a}function oe(fe,ie,Ee,$e,ne){for(var ye=[],xe=0;xe<V.length;xe++){var he=V[xe],le=he(fe,ie,Ee,$e,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ye.push(le.data.expectedType)}var Fe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new $("Invalid "+$e+" `"+ne+"` supplied to "+("`"+Ee+"`"+Fe+"."))}return C(oe)}function O(){function V(z,re,oe,fe,ie){return W(z[re])?null:new $("Invalid "+fe+" `"+ie+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(V)}function F(V,z,re,oe,fe){return new $((V||"React class")+": "+z+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in V){var xe=V[ye];if(typeof xe!="function")return F(fe,ie,Ee,ye,_(xe));var he=xe($e,ye,fe,ie,Ee+"."+ye,n);if(he)return he}return null}return C(z)}function K(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},re[oe],V);for(var xe in ye){var he=V[xe];if(r(V,xe)&&typeof he!="function")return F(fe,ie,Ee,xe,_(he));if(!he)return new $("Invalid "+ie+" `"+Ee+"` key `"+xe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
|
|
174
|
+
Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(z)}function W(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(W);if(V===null||u(V))return!0;var z=h(V);if(z){var re=z.call(V),oe;if(z!==V.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(V,z){return V==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function L(V){var z=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":j(z,V)?"symbol":z}function _(V){if(typeof V>"u"||V===null)return""+V;var z=L(V);if(z==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return z}function M(V){var z=_(V);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Y(V){return!V.constructor||!V.constructor.name?m:V.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},ty}var ny,aE;function Ate(){if(aE)return ny;aE=1;var e=o1();function t(){}function n(){}return n.resetWarningCache=t,ny=function(){function r(a,u,c,d,f,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},ny}var sE;function Pte(){if(sE)return yf.exports;if(sE=1,process.env.NODE_ENV!=="production"){var e=W_(),t=!0;yf.exports=Tte()(e.isElement,t)}else yf.exports=Ate()();return yf.exports}var _te=Pte();const Se=To(_te);/**!
|
|
175
175
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
176
176
|
* @version 1.16.1
|
|
177
177
|
* @license
|
|
@@ -194,7 +194,7 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee
|
|
|
194
194
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
195
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
196
196
|
* SOFTWARE.
|
|
197
|
-
*/var ed=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",_te=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ed&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Rte(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Ote(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},_te))}}var Mte=ed&&window.Promise,Fte=Mte?Rte:Ote;function G_(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function vs(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a1(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function td(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:td(a1(e))}function q_(e){return e&&e.referenceNode?e.referenceNode:e}var uE=ed&&!!(window.MSInputMethodContext&&document.documentMode),lE=ed&&/MSIE 10/.test(navigator.userAgent);function Qu(e){return e===11?uE:e===10?lE:uE||lE}function Bu(e){if(!e)return document.documentElement;for(var t=Qu(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&vs(n,"position")==="static"?Bu(n):n}function kte(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Bu(e.firstElementChild)===e}function Lv(e){return e.parentNode!==null?Lv(e.parentNode):e}function Mh(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return kte(a)?a:Bu(a);var u=Lv(e);return u.host?Mh(u.host,t):Mh(e,Lv(t).host)}function Iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Bte(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Iu(t,"top"),i=Iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function cE(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function dE(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Qu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Y_(e){var t=e.body,n=e.documentElement,r=Qu(10)&&getComputedStyle(n);return{height:dE("Height",t,n,r),width:dE("Width",t,n,r)}}var Ite=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Lte=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Lu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function pa(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(Qu(10)){t=e.getBoundingClientRect();var n=Iu(e,"top"),r=Iu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?Y_(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=vs(e);c-=cE(f,"x"),d-=cE(f,"y"),i.width-=c,i.height-=d}return pa(i)}function s1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(10),i=t.nodeName==="HTML",o=Vv(e),a=Vv(t),u=td(e),c=vs(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=pa({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Bte(h,t)),h}function Vte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=s1(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Iu(n),u=t?0:Iu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return pa(c)}function Z_(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(vs(e,"position")==="fixed")return!0;var n=a1(e);return n?Z_(n):!1}function J_(e){if(!e||!e.parentElement||Qu())return document.documentElement;for(var t=e.parentElement;t&&vs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function u1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?J_(e):Mh(e,q_(t));if(r==="viewport")o=Vte(a,i);else{var u=void 0;r==="scrollParent"?(u=td(a1(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=s1(u,a,i);if(u.nodeName==="HTML"&&!Z_(a)){var d=Y_(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function Nte(e){var t=e.width,n=e.height;return t*n}function X_(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=u1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:Nte(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,v=m.height;return g>=n.clientWidth&&v>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function Q_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?J_(t):Mh(t,q_(n));return s1(n,i,r)}function eR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Fh(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function tR(e,t,n){n=n.split("-")[0];var r=eR(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fh(u)],i}function nd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function jte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=nd(e,function(i){return i[t]===n});return e.indexOf(r)}function nR(e,t,n){var r=n===void 0?e:e.slice(0,jte(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&G_(o)&&(t.offsets.popper=pa(t.offsets.popper),t.offsets.reference=pa(t.offsets.reference),t=o(t,i))}),t}function Kte(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Q_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=X_(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=tR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function rR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function l1(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function Ute(){return this.state.isDestroyed=!0,rR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[l1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function iR(e){var t=e.ownerDocument;return t?t.defaultView:window}function oR(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||oR(td(o.parentNode),t,n,r),r.push(o)}function zte(e,t,n,r){n.updateBound=r,iR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=td(e);return oR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Wte(){this.state.eventsEnabled||(this.state=zte(this.reference,this.options,this.state,this.scheduleUpdate))}function Hte(e,t){return iR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Gte(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Hte(this.reference,this.state))}function c1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&c1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function qte(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Yte(e){return Nv(e.instance.popper,e.styles),qte(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nv(e.arrowElement,e.arrowStyles),e}function Zte(e,t,n,r,i){var o=Q_(i,t,e,n.positionFixed),a=X_(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Jte(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,v=t?f||h||m?o:a:u,$=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:v(r.right)}}var Xte=ed&&/Firefox/i.test(navigator.userAgent);function Qte(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=nd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Bu(e.instance.popper),c=Vv(u),d={position:i.position},f=Jte(e,window.devicePixelRatio<2||!Xte),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=l1("transform"),v=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-c.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?v=-u.clientWidth+f.right:v=-c.width+f.right:v=f.left,a&&g)d[g]="translate3d("+v+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=m==="right"?-1:1;d[h]=$*C,d[m]=v*x,d.willChange=h+", "+m}var y={"x-placement":e.placement};return e.attributes=oi({},y,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function aR(e,t,n){var r=nd(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function ene(e,t){var n;if(!aR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",v=eR(r)[d];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=pa(e.offsets.popper);var $=u[h]+u[d]/2-v/2,C=vs(e.instance.popper),x=parseFloat(C["margin"+f]),y=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-x-y;return D=Math.max(Math.min(a[d]-v,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Lu(n,h,Math.round(D)),Lu(n,m,""),n),e}function tne(e){return e==="end"?"start":e==="start"?"end":e}var sR=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ry=sR.slice(3);function fE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ry.indexOf(e),r=ry.slice(n+1).concat(ry.slice(0,n));return t?r.reverse():r}var iy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function nne(e,t){if(rR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=u1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case iy.FLIP:a=[r,i];break;case iy.CLOCKWISE:a=fE(r);break;case iy.COUNTERCLOCKWISE:a=fE(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=Fh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),v=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&g||r==="right"&&v||r==="top"&&$||r==="bottom"&&C,y=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&$||!y&&o==="end"&&C),P=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&C||!y&&o==="end"&&$),E=D||P;(m||x||E)&&(e.flipped=!0,(m||x)&&(r=a[c+1]),E&&(o=tne(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,tR(e.instance.popper,e.offsets.reference,e.placement)),e=nR(e.instance.modifiers,e,"flip"))}),e}function rne(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function ine(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=pa(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function one(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(nd(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(v,$){return v[v.length-1]===""&&["+","-"].indexOf($)!==-1?(v[v.length-1]=$,g=!0,v):g?(v[v.length-1]+=$,g=!1,v):v.concat($)},[]).map(function(v){return ine(v,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){c1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function ane(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return c1(+n)?c=[+n,0]:c=one(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function sne(e,t){var n=t.boundariesElement||Bu(e.instance.popper);e.instance.reference===n&&(n=Bu(n));var r=l1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=u1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var v=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(v=Math.max(f[g],c[g])),Lu({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",$=f[v];return f[g]>c[g]&&!t.escapeWithReference&&($=Math.min(f[v],c[g]-(g==="right"?f.width:f.height))),Lu({},v,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function une(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Lu({},c,o[c]),end:Lu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function lne(e){if(!aR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=nd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function cne(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Fh(t),e.offsets.popper=pa(i),e}var dne={shift:{order:100,enabled:!0,fn:une},offset:{order:200,enabled:!0,fn:ane,offset:0},preventOverflow:{order:300,enabled:!0,fn:sne,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:rne},arrow:{order:500,enabled:!0,fn:ene,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:nne,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:cne},hide:{order:800,enabled:!0,fn:lne},computeStyle:{order:850,enabled:!0,fn:Qte,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Yte,onLoad:Zte,gpuAcceleration:void 0}},fne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:dne},Sc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ite(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Fte(this.update.bind(this)),this.options=oi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&G_(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Lte(e,[{key:"update",value:function(){return Kte.call(this)}},{key:"destroy",value:function(){return Ute.call(this)}},{key:"enableEventListeners",value:function(){return Wte.call(this)}},{key:"disableEventListeners",value:function(){return Gte.call(this)}}]),e}();Sc.Utils=(typeof window<"u"?window:global).PopperUtils;Sc.placements=sR;Sc.Defaults=fne;var hne=["innerHTML","ownerDocument","style","attributes","nodeValue"],pne=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],mne=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(gne(t))return t}function Ti(e){return function(t){return Pp(t)===e}}function gne(e){return pne.includes(e)}function el(e){return function(t){return typeof t===e}}function yne(e){return mne.includes(e)}function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Pp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Pp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=el("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&hne.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=el("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return el("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Pp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||yne(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=el("string");ce.symbol=el("symbol");ce.undefined=el("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function uR(e){return function(t){return typeof t===e}}var vne=uR("function"),bne=function(e){return e===null},hE=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},pE=function(e){return!$ne(e)&&!bne(e)&&(vne(e)||typeof e=="object")},$ne=uR("undefined"),jv=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function xne(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function wne(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Dne(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=jv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=jv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Ene(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=jv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&pE(e)&&t&&pE(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return xne(e,t);if(e instanceof Map&&t instanceof Map)return Dne(e,t);if(e instanceof Set&&t instanceof Set)return Ene(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return wne(e,t);if(hE(e)&&hE(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Cne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function Sne(e,t,n){return lR(e,t)?[e,t].every(ce.array)?!e.some(bE(n))&&t.some(bE(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(vE(n))&&Object.entries(t).some(vE(n)):t===n:!1}function mE(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Ui(e,i),c=Ui(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function gE(e,t,n){var r=n.key,i=n.type,o=n.value,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return Sne(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(d1(c)):[a,u].every(ce.plainObject)?Tne(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function yE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Ui(e,i),a=Ui(t,i);if(!lR(o,a))throw new TypeError("Inputs have different types");if(!Cne(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function vE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&d1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function Tne(e,t){return t.some(function(n){return!e.includes(n)})}function bE(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&d1(t)(n)}):Dr(e,t)}}function kl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function d1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function lR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Ui(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function Ane(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return gE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(m),x=ce.defined(g);if(C||x){var y=x?kl(g,v):!kl(m,v),D=kl(m,$);return y&&D}return[v,$].every(ce.array)||[v,$].every(ce.plainObject)?!Dr(v,$):v!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(g);return kl(m,v)&&(C?kl(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!!g.length&&!v.length}catch{return!1}},c=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!g.length&&!!v.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return gE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$E(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dR(r.key),r)}}function id(e,t,n){return t&&Pne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function _ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cR(e,t){if(e==null)return{};var n=Rne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function po(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function One(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return po(e)}function ad(e){var t=_ne();return function(){var r=kh(e),i;if(t){var o=kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return One(this,i)}}function Mne(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dR(e){var t=Mne(e,"string");return typeof t=="symbol"?t:String(t)}var Fne={flip:{padding:20},preventOverflow:{padding:10}},kne="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Bne="The error message is optional, but must be a string if provided.";function Ine(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Lne(e,t){return Object.hasOwnProperty.call(e,t)}function Vne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Nne(e,t){if(typeof e!="function")throw new TypeError(kne);if(t)throw new TypeError(Bne)}function xE(e,t,n){return Nne(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return Ine(t,r,i,o)?Lne(r,i)?e.apply(void 0,[r,i,o].concat(u)):Vne(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Bl=oa.createPortal!==void 0;function ki(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function bf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function jne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Kne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Une(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Kne(e,t,i)},jne(e,t,i,r)}function wE(){}var fR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"componentDidMount",value:function(){ki()&&(this.node||this.appendNode(),Bl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ki()&&(Bl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ki()||!this.node||(Bl||oa.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ki())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Bl)return oa.createPortal(o,this.node);var u=oa.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bl?this.renderReact16():null}}]),n}(b.Component);Zn(fR,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var hR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,v=c.spread,$={display:f,position:g},C,x=v,y=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(y=v,x=h,C="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(y=v,x=h,C="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),$.left=0,$.marginTop=m,$.marginBottom=m),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:a,style:$},b.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Zn(hR,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var zne=["color","height","width"];function pR(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=cR(n,zne);return b.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}pR.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function mR(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=b.isValidElement(u)?u:b.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=b.createElement(pR,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}mR.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var gR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,v=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,y={};return c||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(y=Gt(Gt({},y),$)),d===pt.CLOSING&&(y=Gt(Gt({},y),v)),d===pt.OPEN&&!o&&(y=Gt(Gt({},y),C)),u==="center"&&(y=Gt(Gt({},y),g)),a&&(y=Gt(Gt({},y),x)),Gt(Gt({},m),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=b.createElement(mR,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=b.createElement(hR,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Zn(gR,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var yR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))g=b.createElement("span",null,o);else{var v=ce.function(o.type)?"innerRef":"ref";g=b.cloneElement(b.Children.only(o),Zn({},v,d))}else g=o;return g?b.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}(b.Component);Zn(yR,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var Wne={zIndex:100};function Hne(e){var t=bi(Wne,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var Gne=["arrow","flip","offset"],qne=["position","top","right","bottom","left"],f1=function(e){od(n,e);var t=ad(n);function n(r){var i;return rd(this,n),i=t.call(this,r),Zn(po(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(po(i),"setChildRef",function(o){i.childRef=o}),Zn(po(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(po(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(po(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(po(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(bf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(po(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||oy())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(bf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(po(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||oy())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(bf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,ki()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return id(n,[{key:"componentDidMount",value:function(){if(ki()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,bf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(ki()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=Ane(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var v;ce.boolean(c)&&(v=c?pt.OPENING:pt.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&Une(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ki()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,x=$.flip,y=$.offset,D=cR($,Gne);new Sc(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:v},x),offset:Gt({offset:"0, ".concat(h,"px")},y)},D),onCreate:function(T){var k;if(i.popper=T,!((k=i.floaterRef)!==null&&k!==void 0&&k.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),m!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var k=i.state.currentPlacement;i._isMounted&&T.placement!==k&&i.setState({currentPlacement:T.placement})}})}if(a){var P=ce.undefined(g.offset)?0:g.offset;new Sc(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),m!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||ki()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&oy()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(Fne,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi(Hne(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(qne.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!ki())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,v=c.hideArrow,$=c.id,C=c.open,x=c.showCloseButton,y=c.style,D=c.target,P=c.title,E=b.createElement(yR,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},d),T={};return a?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(fR,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(gR,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:u,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Zn(f1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:xE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:xE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(f1,"defaultProps",{autoOpen:!1,callback:wE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:wE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Yne=Object.defineProperty,Zne=(e,t,n)=>t in e?Yne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Zne(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function ea(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function vR(e){return e?e.getBoundingClientRect():null}function Jne(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function bo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Xne(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Tc(e,t,n){if(!e)return qa();const r=z_(e);if(r){if(r.isSameNode(qa()))return n?document:qa();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",qa()}return r}function sd(e,t){if(!e)return!1;const n=Tc(e,t);return n?!n.isSameNode(qa()):!1}function Qne(e){return e.offsetParent!==document.body}function Vu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Xne(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Vu(e.parentNode,t):!1}function ere(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function tre(e,t,n){var r,i,o;const a=vR(e),u=Tc(e,n),c=sd(e,n),d=Vu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Vu(e)&&(h+=f),u.isSameNode(qa())||(h+=qa().scrollTop));return Math.floor(h-t)}function nre(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=z_(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(sd(e,n)||Qne(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function qa(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function rre(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;pte.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Il=oa.createPortal!==void 0;function bR(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Nf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Bi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=ZD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Nf(e.type)==="function"){const a=e.type({});o=Bi(a,t)}else o=ZD(n);return o}function ire(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function ore(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function DE(e){return e.disableBeacon||e.placement==="center"}function EE(){return!["chrome","safari","firefox","opera"].includes(bR())}function ma({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function are(e){return Object.keys(e)}function $R(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function sre(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Uv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Nf(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Nf(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Uv(o,t,n))});if(Nf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Uv(o,t,n)}return e}function ure(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Vu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var lre={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},xR={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},cre={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:xR,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},dre={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},fre={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Ll={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},CE={borderRadius:4,position:"absolute"};function hre(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi(fre,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Ll,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${ore(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Ll,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ll,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ll,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ll,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...CE,backgroundColor:"gray"},spotlightLegacy:{...CE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function pre(e){return sre(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function qs(e,t){var n,r,i,o,a,u;const c=t??{},d=bi.all([cre,pre(e),c],{isMergeableObject:ke.plainObject}),f=hre(e,d),h=sd(bo(d.target),d.disableScrollParentFix),m=bi.all([lre,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([xR,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:$R(f,"floaterStyles")}}function wR(e,t=!1){return ke.plainObject(e)?e.target?!0:(ma({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ma({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function SE(e,t=!1){return ke.array(e)?e.every(n=>wR(n,t)):(ma({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var DR={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},TE=are($R(DR,"controlled","size")),mre=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!ire(i,TE))throw new Error(`State is not valid. Valid keys: ${TE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...DR}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function gre(e){return new mre(e)}function yre({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var vre=yre,bre=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=bo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Vu(t,"sticky")&&this.updateState({})}),Be(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=bo(r);this.scrollParent=Tc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&sd(i,!0)&&ma({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Oh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=bo(o);this.scrollParent=Tc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return EE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Jne(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=bo(c),f=vR(d),h=Vu(d),m=tre(d,a,i);return{...EE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(vre,{styles:o});if(bR()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},$re=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;ea()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Il||this.renderReact15())}componentDidUpdate(){ea()&&(Il||this.renderReact15())}componentWillUnmount(){!ea()||!this.node||(Il||$f.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ea())return;const{children:e}=this.props;this.node&&$f.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ea()||!Il)return null;const{children:e}=this.props;return this.node?$f.createPortal(e,this.node):null}render(){return Il?this.renderReact16():null}},xre=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Be(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},wre=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
197
|
+
*/var ed=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Rte=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ed&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Ote(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Mte(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Rte))}}var Fte=ed&&window.Promise,kte=Fte?Ote:Mte;function G_(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function vs(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a1(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function td(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:td(a1(e))}function q_(e){return e&&e.referenceNode?e.referenceNode:e}var uE=ed&&!!(window.MSInputMethodContext&&document.documentMode),lE=ed&&/MSIE 10/.test(navigator.userAgent);function Qu(e){return e===11?uE:e===10?lE:uE||lE}function Bu(e){if(!e)return document.documentElement;for(var t=Qu(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&vs(n,"position")==="static"?Bu(n):n}function Bte(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Bu(e.firstElementChild)===e}function Lv(e){return e.parentNode!==null?Lv(e.parentNode):e}function Mh(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return Bte(a)?a:Bu(a);var u=Lv(e);return u.host?Mh(u.host,t):Mh(e,Lv(t).host)}function Iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Ite(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Iu(t,"top"),i=Iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function cE(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function dE(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Qu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Y_(e){var t=e.body,n=e.documentElement,r=Qu(10)&&getComputedStyle(n);return{height:dE("Height",t,n,r),width:dE("Width",t,n,r)}}var Lte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Vte=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Lu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function pa(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(Qu(10)){t=e.getBoundingClientRect();var n=Iu(e,"top"),r=Iu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?Y_(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=vs(e);c-=cE(f,"x"),d-=cE(f,"y"),i.width-=c,i.height-=d}return pa(i)}function s1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(10),i=t.nodeName==="HTML",o=Vv(e),a=Vv(t),u=td(e),c=vs(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=pa({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Ite(h,t)),h}function Nte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=s1(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Iu(n),u=t?0:Iu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return pa(c)}function Z_(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(vs(e,"position")==="fixed")return!0;var n=a1(e);return n?Z_(n):!1}function J_(e){if(!e||!e.parentElement||Qu())return document.documentElement;for(var t=e.parentElement;t&&vs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function u1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?J_(e):Mh(e,q_(t));if(r==="viewport")o=Nte(a,i);else{var u=void 0;r==="scrollParent"?(u=td(a1(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=s1(u,a,i);if(u.nodeName==="HTML"&&!Z_(a)){var d=Y_(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function jte(e){var t=e.width,n=e.height;return t*n}function X_(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=u1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:jte(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,v=m.height;return g>=n.clientWidth&&v>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function Q_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?J_(t):Mh(t,q_(n));return s1(n,i,r)}function eR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Fh(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function tR(e,t,n){n=n.split("-")[0];var r=eR(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fh(u)],i}function nd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Kte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=nd(e,function(i){return i[t]===n});return e.indexOf(r)}function nR(e,t,n){var r=n===void 0?e:e.slice(0,Kte(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&G_(o)&&(t.offsets.popper=pa(t.offsets.popper),t.offsets.reference=pa(t.offsets.reference),t=o(t,i))}),t}function Ute(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Q_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=X_(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=tR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function rR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function l1(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function zte(){return this.state.isDestroyed=!0,rR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[l1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function iR(e){var t=e.ownerDocument;return t?t.defaultView:window}function oR(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||oR(td(o.parentNode),t,n,r),r.push(o)}function Wte(e,t,n,r){n.updateBound=r,iR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=td(e);return oR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Hte(){this.state.eventsEnabled||(this.state=Wte(this.reference,this.options,this.state,this.scheduleUpdate))}function Gte(e,t){return iR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function qte(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Gte(this.reference,this.state))}function c1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&c1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Yte(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Zte(e){return Nv(e.instance.popper,e.styles),Yte(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nv(e.arrowElement,e.arrowStyles),e}function Jte(e,t,n,r,i){var o=Q_(i,t,e,n.positionFixed),a=X_(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Xte(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,v=t?f||h||m?o:a:u,$=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:v(r.right)}}var Qte=ed&&/Firefox/i.test(navigator.userAgent);function ene(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=nd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Bu(e.instance.popper),c=Vv(u),d={position:i.position},f=Xte(e,window.devicePixelRatio<2||!Qte),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=l1("transform"),v=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-c.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?v=-u.clientWidth+f.right:v=-c.width+f.right:v=f.left,a&&g)d[g]="translate3d("+v+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=m==="right"?-1:1;d[h]=$*C,d[m]=v*x,d.willChange=h+", "+m}var y={"x-placement":e.placement};return e.attributes=oi({},y,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function aR(e,t,n){var r=nd(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function tne(e,t){var n;if(!aR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",v=eR(r)[d];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=pa(e.offsets.popper);var $=u[h]+u[d]/2-v/2,C=vs(e.instance.popper),x=parseFloat(C["margin"+f]),y=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-x-y;return D=Math.max(Math.min(a[d]-v,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Lu(n,h,Math.round(D)),Lu(n,m,""),n),e}function nne(e){return e==="end"?"start":e==="start"?"end":e}var sR=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ry=sR.slice(3);function fE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ry.indexOf(e),r=ry.slice(n+1).concat(ry.slice(0,n));return t?r.reverse():r}var iy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function rne(e,t){if(rR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=u1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case iy.FLIP:a=[r,i];break;case iy.CLOCKWISE:a=fE(r);break;case iy.COUNTERCLOCKWISE:a=fE(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=Fh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),v=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&g||r==="right"&&v||r==="top"&&$||r==="bottom"&&C,y=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&$||!y&&o==="end"&&C),P=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&C||!y&&o==="end"&&$),E=D||P;(m||x||E)&&(e.flipped=!0,(m||x)&&(r=a[c+1]),E&&(o=nne(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,tR(e.instance.popper,e.offsets.reference,e.placement)),e=nR(e.instance.modifiers,e,"flip"))}),e}function ine(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function one(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=pa(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function ane(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(nd(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(v,$){return v[v.length-1]===""&&["+","-"].indexOf($)!==-1?(v[v.length-1]=$,g=!0,v):g?(v[v.length-1]+=$,g=!1,v):v.concat($)},[]).map(function(v){return one(v,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){c1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function sne(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return c1(+n)?c=[+n,0]:c=ane(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function une(e,t){var n=t.boundariesElement||Bu(e.instance.popper);e.instance.reference===n&&(n=Bu(n));var r=l1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=u1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var v=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(v=Math.max(f[g],c[g])),Lu({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",$=f[v];return f[g]>c[g]&&!t.escapeWithReference&&($=Math.min(f[v],c[g]-(g==="right"?f.width:f.height))),Lu({},v,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function lne(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Lu({},c,o[c]),end:Lu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function cne(e){if(!aR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=nd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function dne(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Fh(t),e.offsets.popper=pa(i),e}var fne={shift:{order:100,enabled:!0,fn:lne},offset:{order:200,enabled:!0,fn:sne,offset:0},preventOverflow:{order:300,enabled:!0,fn:une,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ine},arrow:{order:500,enabled:!0,fn:tne,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rne,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:dne},hide:{order:800,enabled:!0,fn:cne},computeStyle:{order:850,enabled:!0,fn:ene,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Zte,onLoad:Jte,gpuAcceleration:void 0}},hne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:fne},Sc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Lte(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=kte(this.update.bind(this)),this.options=oi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&G_(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Vte(e,[{key:"update",value:function(){return Ute.call(this)}},{key:"destroy",value:function(){return zte.call(this)}},{key:"enableEventListeners",value:function(){return Hte.call(this)}},{key:"disableEventListeners",value:function(){return qte.call(this)}}]),e}();Sc.Utils=(typeof window<"u"?window:global).PopperUtils;Sc.placements=sR;Sc.Defaults=hne;var pne=["innerHTML","ownerDocument","style","attributes","nodeValue"],mne=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],gne=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(yne(t))return t}function Ti(e){return function(t){return Pp(t)===e}}function yne(e){return mne.includes(e)}function el(e){return function(t){return typeof t===e}}function vne(e){return gne.includes(e)}function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Pp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Pp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=el("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&pne.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=el("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return el("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Pp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||vne(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=el("string");ce.symbol=el("symbol");ce.undefined=el("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function uR(e){return function(t){return typeof t===e}}var bne=uR("function"),$ne=function(e){return e===null},hE=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},pE=function(e){return!xne(e)&&!$ne(e)&&(bne(e)||typeof e=="object")},xne=uR("undefined"),jv=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function wne(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function Dne(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Ene(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=jv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=jv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Cne(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=jv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&pE(e)&&t&&pE(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return wne(e,t);if(e instanceof Map&&t instanceof Map)return Ene(e,t);if(e instanceof Set&&t instanceof Set)return Cne(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Dne(e,t);if(hE(e)&&hE(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Sne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function Tne(e,t,n){return lR(e,t)?[e,t].every(ce.array)?!e.some(bE(n))&&t.some(bE(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(vE(n))&&Object.entries(t).some(vE(n)):t===n:!1}function mE(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Ui(e,i),c=Ui(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function gE(e,t,n){var r=n.key,i=n.type,o=n.value,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return Tne(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(d1(c)):[a,u].every(ce.plainObject)?Ane(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function yE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Ui(e,i),a=Ui(t,i);if(!lR(o,a))throw new TypeError("Inputs have different types");if(!Sne(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function vE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&d1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function Ane(e,t){return t.some(function(n){return!e.includes(n)})}function bE(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&d1(t)(n)}):Dr(e,t)}}function kl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function d1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function lR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Ui(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function Pne(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return gE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(m),x=ce.defined(g);if(C||x){var y=x?kl(g,v):!kl(m,v),D=kl(m,$);return y&&D}return[v,$].every(ce.array)||[v,$].every(ce.plainObject)?!Dr(v,$):v!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(g);return kl(m,v)&&(C?kl(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!!g.length&&!v.length}catch{return!1}},c=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!g.length&&!!v.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return gE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$E(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dR(r.key),r)}}function id(e,t,n){return t&&_ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function Rne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function One(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cR(e,t){if(e==null)return{};var n=One(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function po(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mne(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return po(e)}function ad(e){var t=Rne();return function(){var r=kh(e),i;if(t){var o=kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mne(this,i)}}function Fne(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dR(e){var t=Fne(e,"string");return typeof t=="symbol"?t:String(t)}var kne={flip:{padding:20},preventOverflow:{padding:10}},Bne="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Ine="The error message is optional, but must be a string if provided.";function Lne(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Vne(e,t){return Object.hasOwnProperty.call(e,t)}function Nne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function jne(e,t){if(typeof e!="function")throw new TypeError(Bne);if(t)throw new TypeError(Ine)}function xE(e,t,n){return jne(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return Lne(t,r,i,o)?Vne(r,i)?e.apply(void 0,[r,i,o].concat(u)):Nne(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Bl=oa.createPortal!==void 0;function ki(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function bf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function Kne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Une(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function zne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Une(e,t,i)},Kne(e,t,i,r)}function wE(){}var fR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"componentDidMount",value:function(){ki()&&(this.node||this.appendNode(),Bl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ki()&&(Bl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ki()||!this.node||(Bl||oa.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ki())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Bl)return oa.createPortal(o,this.node);var u=oa.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bl?this.renderReact16():null}}]),n}(b.Component);Zn(fR,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var hR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,v=c.spread,$={display:f,position:g},C,x=v,y=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(y=v,x=h,C="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(y=v,x=h,C="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),$.left=0,$.marginTop=m,$.marginBottom=m),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:a,style:$},b.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Zn(hR,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var Wne=["color","height","width"];function pR(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=cR(n,Wne);return b.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}pR.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function mR(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=b.isValidElement(u)?u:b.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=b.createElement(pR,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}mR.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var gR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,v=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,y={};return c||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(y=Gt(Gt({},y),$)),d===pt.CLOSING&&(y=Gt(Gt({},y),v)),d===pt.OPEN&&!o&&(y=Gt(Gt({},y),C)),u==="center"&&(y=Gt(Gt({},y),g)),a&&(y=Gt(Gt({},y),x)),Gt(Gt({},m),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=b.createElement(mR,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=b.createElement(hR,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Zn(gR,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var yR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))g=b.createElement("span",null,o);else{var v=ce.function(o.type)?"innerRef":"ref";g=b.cloneElement(b.Children.only(o),Zn({},v,d))}else g=o;return g?b.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}(b.Component);Zn(yR,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var Hne={zIndex:100};function Gne(e){var t=bi(Hne,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var qne=["arrow","flip","offset"],Yne=["position","top","right","bottom","left"],f1=function(e){od(n,e);var t=ad(n);function n(r){var i;return rd(this,n),i=t.call(this,r),Zn(po(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(po(i),"setChildRef",function(o){i.childRef=o}),Zn(po(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(po(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(po(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(po(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(bf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(po(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||oy())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(bf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(po(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||oy())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(bf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,ki()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return id(n,[{key:"componentDidMount",value:function(){if(ki()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,bf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(ki()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=Pne(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var v;ce.boolean(c)&&(v=c?pt.OPENING:pt.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&zne(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ki()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,x=$.flip,y=$.offset,D=cR($,qne);new Sc(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:v},x),offset:Gt({offset:"0, ".concat(h,"px")},y)},D),onCreate:function(T){var k;if(i.popper=T,!((k=i.floaterRef)!==null&&k!==void 0&&k.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),m!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var k=i.state.currentPlacement;i._isMounted&&T.placement!==k&&i.setState({currentPlacement:T.placement})}})}if(a){var P=ce.undefined(g.offset)?0:g.offset;new Sc(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),m!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||ki()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&oy()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(kne,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi(Gne(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(Yne.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!ki())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,v=c.hideArrow,$=c.id,C=c.open,x=c.showCloseButton,y=c.style,D=c.target,P=c.title,E=b.createElement(yR,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},d),T={};return a?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(fR,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(gR,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:u,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Zn(f1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:xE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:xE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(f1,"defaultProps",{autoOpen:!1,callback:wE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:wE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Zne=Object.defineProperty,Jne=(e,t,n)=>t in e?Zne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Jne(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function ea(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function vR(e){return e?e.getBoundingClientRect():null}function Xne(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function bo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Qne(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Tc(e,t,n){if(!e)return qa();const r=z_(e);if(r){if(r.isSameNode(qa()))return n?document:qa();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",qa()}return r}function sd(e,t){if(!e)return!1;const n=Tc(e,t);return n?!n.isSameNode(qa()):!1}function ere(e){return e.offsetParent!==document.body}function Vu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Qne(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Vu(e.parentNode,t):!1}function tre(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function nre(e,t,n){var r,i,o;const a=vR(e),u=Tc(e,n),c=sd(e,n),d=Vu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Vu(e)&&(h+=f),u.isSameNode(qa())||(h+=qa().scrollTop));return Math.floor(h-t)}function rre(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=z_(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(sd(e,n)||ere(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function qa(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function ire(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;mte.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Il=oa.createPortal!==void 0;function bR(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Nf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Bi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=ZD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Nf(e.type)==="function"){const a=e.type({});o=Bi(a,t)}else o=ZD(n);return o}function ore(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function are(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function DE(e){return e.disableBeacon||e.placement==="center"}function EE(){return!["chrome","safari","firefox","opera"].includes(bR())}function ma({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function sre(e){return Object.keys(e)}function $R(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function ure(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Uv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Nf(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Nf(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Uv(o,t,n))});if(Nf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Uv(o,t,n)}return e}function lre(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Vu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var cre={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},xR={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},dre={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:xR,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},fre={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},hre={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Ll={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},CE={borderRadius:4,position:"absolute"};function pre(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi(hre,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Ll,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${are(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Ll,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ll,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ll,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ll,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...CE,backgroundColor:"gray"},spotlightLegacy:{...CE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function mre(e){return ure(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function qs(e,t){var n,r,i,o,a,u;const c=t??{},d=bi.all([dre,mre(e),c],{isMergeableObject:ke.plainObject}),f=pre(e,d),h=sd(bo(d.target),d.disableScrollParentFix),m=bi.all([cre,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([xR,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:$R(f,"floaterStyles")}}function wR(e,t=!1){return ke.plainObject(e)?e.target?!0:(ma({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ma({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function SE(e,t=!1){return ke.array(e)?e.every(n=>wR(n,t)):(ma({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var DR={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},TE=sre($R(DR,"controlled","size")),gre=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!ore(i,TE))throw new Error(`State is not valid. Valid keys: ${TE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...DR}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function yre(e){return new gre(e)}function vre({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var bre=vre,$re=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=bo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Vu(t,"sticky")&&this.updateState({})}),Be(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=bo(r);this.scrollParent=Tc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&sd(i,!0)&&ma({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Oh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=bo(o);this.scrollParent=Tc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return EE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Xne(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=bo(c),f=vR(d),h=Vu(d),m=nre(d,a,i);return{...EE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(bre,{styles:o});if(bR()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},xre=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;ea()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Il||this.renderReact15())}componentDidUpdate(){ea()&&(Il||this.renderReact15())}componentWillUnmount(){!ea()||!this.node||(Il||$f.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ea())return;const{children:e}=this.props;this.node&&$f.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ea()||!Il)return null;const{children:e}=this.props;return this.node?$f.createPortal(e,this.node):null}render(){return Il?this.renderReact16():null}},wre=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Be(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Dre=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
198
198
|
@keyframes joyride-beacon-inner {
|
|
199
199
|
20% {
|
|
200
200
|
opacity: 0.9;
|
|
@@ -220,4 +220,4 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee
|
|
|
220
220
|
transform: scale(1);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Dre({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Ere=Dre;function Cre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Ere,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Sre=Cre,Tre=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Sre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Tre,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ma({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=bo(m.target),k=!!T;k&&ere(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ma({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new xre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=bo(a.target);return!wR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(wre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},ER=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=gre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ma({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ea())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ea())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=qs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=bo(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=bo(f.target),m=ure({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(nre(h,u,o))||0;ma({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&rre($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ea())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Are,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement($re,{id:"react-joyride-portal"},qe.createElement(bre,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(ER,"defaultProps",dre);var Pre=ER;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=fA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=FV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Hj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=ZN;exports.$293f70390ea03370$export$497855f14858aa34=Nj;exports.$32489daedd52963e$export$1315d136e6f7581=Xj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Ej;exports.$36a0ac60f04457c5$export$136073280381448e=NN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=XA;exports.$40df3f8667284809$export$d55e7ee900f34e93=nK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=IN;exports.$47b897dc8cdb026b$export$8d15029008292ae=ej;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=XN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=qj;exports.$64244302c3013299$export$dd0bbc9b26defe37=yN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=RN;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=tK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=NK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=BN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=xK;exports.$a916eb452884faea$export$b7a616150fdb9f44=_N;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=TK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=MK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=QN;exports.$c132121280ec012d$export$50eacbbf140a3141=Oj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Fj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=zj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=LN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=jK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=xj;exports.$fae977aafc393c5c$export$6b862160d295c8e=HV;exports.ACTIONS=$t;exports.AdvancedImage=_W;exports.Cloudinary=CH;exports.EVENTS=ri;exports.FormProvider=oK;exports.LazyMotion=pZ;exports.M=oL;exports.M$1=gi;exports.R=hs;exports.ReorderGroup=Hee;exports.ReorderItem=Zee;exports.STATUS=ct;exports._=GI;exports.autoUpdate=dC;exports.components_default=Pre;exports.dayjs=WK;exports.domAnimation=mZ;exports.dt=QE;exports.ee=tP;exports.flip=zI;exports.isNumber=VH;exports.lazyload=Xz;exports.lodashExports=mC;exports.lt=Yv;exports.m=hZ;exports.mt=lI;exports.nt=aI;exports.o=_H;exports.offset=UI;exports.ot=sI;exports.placeholder=nW;exports.prismExports=TH;exports.q=Ob;exports.useController=uK;exports.useFloating=KI;exports.useForm=$K;exports.useFormContext=op;
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Ere({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Cre=Ere;function Sre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Cre,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Tre=Sre,Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Tre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Pre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Are,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ma({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=bo(m.target),k=!!T;k&&tre(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ma({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new wre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=bo(a.target);return!wR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Dre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},ER=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=yre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ma({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ea())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ea())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=qs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=bo(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=bo(f.target),m=lre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(rre(h,u,o))||0;ma({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&ire($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ea())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Pre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(xre,{id:"react-joyride-portal"},qe.createElement($re,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(ER,"defaultProps",fre);var _re=ER;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=fA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=kV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Gj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=JN;exports.$293f70390ea03370$export$497855f14858aa34=jj;exports.$32489daedd52963e$export$1315d136e6f7581=Qj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Cj;exports.$36a0ac60f04457c5$export$136073280381448e=jN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=XA;exports.$40df3f8667284809$export$d55e7ee900f34e93=rK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=LN;exports.$47b897dc8cdb026b$export$8d15029008292ae=tj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Yj;exports.$64244302c3013299$export$dd0bbc9b26defe37=vN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=ON;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=nK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=jK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=IN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=wK;exports.$a916eb452884faea$export$b7a616150fdb9f44=RN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=AK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=FK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=ej;exports.$c132121280ec012d$export$50eacbbf140a3141=Mj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=kj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Wj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=KK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=wj;exports.$fae977aafc393c5c$export$6b862160d295c8e=GV;exports.ACTIONS=$t;exports.AdvancedImage=RW;exports.Cloudinary=SH;exports.EVENTS=ri;exports.FormProvider=aK;exports.LazyMotion=mZ;exports.M=oL;exports.M$1=gi;exports.R=hs;exports.ReorderGroup=Gee;exports.ReorderItem=Jee;exports.STATUS=ct;exports._=GI;exports.autoUpdate=dC;exports.components_default=_re;exports.dayjs=HK;exports.domAnimation=gZ;exports.dt=QE;exports.ee=tP;exports.flip=zI;exports.isNumber=NH;exports.lazyload=Qz;exports.lodashExports=mC;exports.lt=Yv;exports.m=pZ;exports.mt=lI;exports.nt=aI;exports.o=RH;exports.offset=UI;exports.ot=sI;exports.placeholder=rW;exports.prismExports=AH;exports.q=Ob;exports.useController=lK;exports.useFloating=KI;exports.useForm=xK;exports.useFormContext=op;
|