@egen-civitas/esm-app-shell 1.0.1 → 1.0.2

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.
Files changed (32) hide show
  1. package/README.md +48 -0
  2. package/dist/{56fc39e12a477596.js → 09a305e14c26aa4c.js} +2 -2
  3. package/dist/{56fc39e12a477596.js.map → 09a305e14c26aa4c.js.map} +1 -1
  4. package/dist/{52f3245696d97e15.js → 1fca772e19e3c1b6.js} +1 -1
  5. package/dist/{52f3245696d97e15.js.map → 1fca772e19e3c1b6.js.map} +1 -1
  6. package/dist/27bce5d96d2f77ca.js +1 -0
  7. package/dist/27bce5d96d2f77ca.js.map +1 -0
  8. package/dist/6aadb9a4eef827fb.js +1 -0
  9. package/dist/{15541bd3feca17e6.js.map → 6aadb9a4eef827fb.js.map} +1 -1
  10. package/dist/{3f1c1976b0440132.js → 83dc1d7715f4c775.js} +1 -1
  11. package/dist/{3f1c1976b0440132.js.map → 83dc1d7715f4c775.js.map} +1 -1
  12. package/dist/8fec4ca250238f97.js +1 -0
  13. package/dist/8fec4ca250238f97.js.map +1 -0
  14. package/dist/99e304b895626c07.js +1 -0
  15. package/dist/99e304b895626c07.js.map +1 -0
  16. package/dist/a3487e3a30f88260.js +1 -0
  17. package/dist/a3487e3a30f88260.js.map +1 -0
  18. package/dist/{20c755ff6649179c.js → e30dd69f1360bbc1.js} +1 -1
  19. package/dist/{20c755ff6649179c.js.map → e30dd69f1360bbc1.js.map} +1 -1
  20. package/dist/{egen.08d314645907a8fe.js → egen.d17915ddd051e2ef.js} +2 -2
  21. package/dist/{egen.08d314645907a8fe.js.map → egen.d17915ddd051e2ef.js.map} +1 -1
  22. package/dist/index.html +1 -1
  23. package/package.json +1 -1
  24. package/dist/15541bd3feca17e6.js +0 -1
  25. package/dist/208ea83805fb8282.js +0 -1
  26. package/dist/208ea83805fb8282.js.map +0 -1
  27. package/dist/3dec39fb5e14097c.js +0 -1
  28. package/dist/3dec39fb5e14097c.js.map +0 -1
  29. package/dist/654f4db62745a0eb.js +0 -1
  30. package/dist/654f4db62745a0eb.js.map +0 -1
  31. package/dist/a7e0b3975afec749.js +0 -1
  32. package/dist/a7e0b3975afec749.js.map +0 -1
@@ -9,7 +9,7 @@
9
9
  * {
10
10
  overscroll-behavior: contain;
11
11
  }
12
- }`.trim(),document.head.prepend(n),o=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=((e=document)=>e.activeElement)(),r=null!=t&&st(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||so(this,r)},s=tF(sa(document,"touchstart",t=>{let n=rS(t);e=iL(n)?n:i_(n,!0),r=!1;let i=n.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),sa(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),sa(document,"blur",e=>{let t=rS(e),r=e.relatedTarget;if(r&&st(r))r.focus({preventScroll:!0}),so(r,st(t));else if(!r){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),n.remove(),HTMLElement.prototype.focus=o}):tF((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?si(document.documentElement,"scrollbarGutter","stable"):si(document.documentElement,"paddingRight",`${l}px`)),si(document.documentElement,"overflow","hidden"))),()=>{0==--sn&&i()}}},[t])}({isDisabled:o||!t.isOpen}),(0,m.useEffect)(()=>{if(t.isOpen&&n.current)if(o){var e,r,i=a?.current??n.current;let t=oV[oV.length-1];return t&&!t.visibleNodes.has(i)?(t.visibleNodes.add(i),()=>{t.visibleNodes.delete(i)}):void 0}else{let t,i,o,s,l,u,c,d,f,p,h;return e=[a?.current??n.current],i=(r={shouldUseInert:!0})instanceof(t=rb(e?.[0])).Element?{root:r}:r,o=i?.root??document.body,s=i?.shouldUseInert&&oF,l=new Set(e),u=new Set,c=(e,r)=>{s&&e instanceof t.HTMLElement?e.inert=r:r?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(rx(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=ag(rv(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&f(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)f(e),e=r.nextNode()}},f=e=>{let r=oB.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&c(e,!0),u.add(e),oB.set(e,r+1))},oV.length&&oV[oV.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let r of e)if("childList"===r.type&&r.target.isConnected&&![...l,...u].some(e=>rx(e,r.target)))for(let e of r.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(o,{childList:!0,subtree:!0}),h={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},oV.push(h),()=>{for(let e of(p.disconnect(),u)){let t=oB.get(e);null!=t&&(1===t?(c(e,!1),oB.delete(e)):oB.set(e,t-1))}h===oV[oV.length-1]?(oV.pop(),oV.length&&oV[oV.length-1].observe()):oV.splice(oV.indexOf(h),1)}}},[o,t.isOpen,n,a]);let{focusWithinProps:v}=nU(e);return{popoverProps:t3(d,p,v),arrowProps:h,underlayProps:f,placement:y,triggerAnchorPoint:g}}({...a,offset:a.offset??8,arrowRef:o,groupRef:u?l:s},e),g=a.popoverRef,v=function(e,t=!0){let[r,n]=(0,m.useState)(!0),i=r&&t;return tB(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),sd(e,i,(0,m.useCallback)(()=>n(!1),[])),i}(g,!!p),b=a.isEntering||!a.shouldSkipAnimation&&v||!1,w=t8({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:b,isExiting:t}}),x=!a.isNonModal||"SubmenuTrigger"===a.trigger||"PreviewTrigger"===a.trigger,[S,E]=(0,m.useState)("PreviewTrigger"===a.trigger);tB(()=>{g.current&&E(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),(0,m.useEffect)(()=>{S&&"PreviewTrigger"!==a.trigger&&("SubmenuTrigger"!==a.trigger||"pointer"!==rZ)&&g.current&&!rE(g.current)&&na(g.current)},[S,g,a.trigger]);let D=(0,m.useMemo)(()=>{let e=w.children;if(n)for(let t of n)e=y().createElement(t.Provider,{value:null},e);return e},[w.children,n]),[O,P]=(0,m.useState)(null),j=(0,m.useCallback)(()=>{a.triggerRef.current&&P(a.triggerRef.current.getBoundingClientRect().width+"px")},[a.triggerRef]);tB(j,[j]),o6({ref:w.style?.["--trigger-width"]?void 0:a.triggerRef,onResize:j});let k={...c.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||O},C=y().createElement(ri.div,{...t3(rm(a,{global:!0}),c),...w,id:S?a.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:g,slot:a.slot||void 0,style:k,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":b||void 0,"data-exiting":t||void 0},!a.isNonModal&&y().createElement(su,{onDismiss:e.close}),y().createElement(o_.Provider,{value:{...f,placement:p,ref:o}},D),y().createElement(su,{onDismiss:e.close}));return u?y().createElement(oE,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r??l?.current??void 0},C):y().createElement(oE,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&y().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),y().createElement("div",{ref:s,style:{display:"contents"}},y().createElement(sp.Provider,{value:s},C)))}function sy(e){return e?.start!=null&&null!=e.end}let sg=(0,m.createContext)(null),sv=(0,m.createContext)(null),sb=(0,m.createContext)(null),sw=(0,m.createContext)(null),sx=[ap,nq,oN,n0],sS=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sg);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i1(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),a=r||e.placeholderValue||null,[o,s]=oi(a,e.granularity),l=null!=r?r.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,m.useState)(null),[p,h]=(0,m.useState)(null);if(r&&(d=r,"hour"in r&&(p=r)),a&&!(o in a))throw Error("Invalid granularity "+o+" for value "+a.toString());let y=r?.calendar.identifier==="gregory"&&"BC"===r.era,g=(0,m.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,y]),{minValue:v,maxValue:b,isDateUnavailable:w}=e,x=(0,m.useMemo)(()=>a9(r,v,b,w,g),[r,v,b,w,g]),S=a0({...e,value:r,builtinValidation:x}),E=S.displayValidation.isInvalid,D=e.validationState||(E?"invalid":null),O=(e,t)=>{n("timeZone"in t?t.set((0,iG.gw)(e)):(0,iG.tR)(e,t)),f(null),h(null),S.commitValidation()};return{...S,value:r,defaultValue:e.defaultValue??i,setValue:n,dateValue:d,timeValue:p,setDateValue:r=>{let i="function"==typeof c?c():c;u?p||i?O(r,p||or(e.defaultValue||e.placeholderValue)):f(r):(n(r),S.commitValidation()),i&&t.setOpen(!1)},setTimeValue:e=>{d&&e?O(d,e):h(e)},granularity:o,hasTime:u,...t,setOpen(n){!n&&!r&&d&&u&&O(d,p||or(e.defaultValue||e.placeholderValue)),t.setOpen(n)},validationState:D,isInvalid:E,formatValue:(e,t)=>l?new ic(e,ot(t,g)).format(l):"",getDateFormatter:(e,t)=>new ic(e,ot({},{...g,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n;let i=tQ(),a=tQ(),o=tQ(),s=iP((n=aF)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=a$({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),y=aB(t,r),g=f["aria-labelledby"]||f.id,{locale:v}=il(),b=t.formatValue(v,{month:"long"}),w=iU(b?s.format("selectedDateDescription",{date:b}):""),x=[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=rm(e),E=(0,m.useMemo)(()=>aI(r),[r]),D=(0,m.useRef)(!1),{focusWithinProps:O}=nU({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rx(document.getElementById(a),t.relatedTarget)||(D.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{D.current||(D.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:t3(S,y,f,w,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":x,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...d,onClick:()=>{E.focusFirst()}},fieldProps:{...f,id:o,[aH]:"presentation","aria-describedby":x,value:t.value,defaultValue:t.defaultValue,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,[aJ]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...w,id:i,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${i} ${g}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:a,"aria-labelledby":`${i} ${g}`},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:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:b,isFocused:w,isFocusVisible:x}=nz({within:!0}),S=t8({...e,values:{state:i,isFocusWithin:w,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),E=rm(e,{global:!0});return delete E.id,y().createElement(t6,{values:[[sb,i],[ap,{...l,ref:a,isInvalid:i.isInvalid}],[oh,c],[nq,{...d,isPressed:i.isOpen}],[oN,{...u,ref:o,elementType:"span"}],[at,p],[oO,i],[sf,{trigger:"DatePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oD,f],[n0,{slots:{description:h,errorMessage:g}}],[oj,v]]},y().createElement(ri.div,{...t3(E,S,b),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}),y().createElement(oM,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:i}))}),sE=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sv);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i1(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),[a,o]=(0,m.useState)(()=>r||{start:null,end:null});null==r&&a.start&&a.end&&o(a={start:null,end:null});let s=r||a,l=e=>{o(s=e||{start:null,end:null}),sy(s)?n(s):n(null)},[u,c]=oi(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,h]=(0,m.useState)(null),[y,g]=(0,m.useState)(null);s&&sy(s)&&(p=s,"hour"in s.start&&(y=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,iG.gw)(e.start)):(0,iG.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,iG.gw)(e.end)):(0,iG.tR)(e.end,t.end)}),h(null),g(null),j.commitValidation()},b=r=>{let n="function"==typeof f?f():f;d?sy(r)&&(n||y?.start&&y?.end)?v(r,{start:y?.start||or(e.placeholderValue),end:y?.end||or(e.placeholderValue)}):h(r):sy(r)?(l(r),j.commitValidation()):h(r),n&&t.setOpen(!1)},w=e=>{sy(p)&&sy(e)?v(p,e):g(e)},x=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,S=(0,m.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,x]),{minValue:E,maxValue:D,isDateUnavailable:O}=e,P=(0,m.useMemo)(()=>{var e,t;let r;return e=s,t=O?e=>O(e,null):void 0,r=a4(a9(e?.start??null,E,D,t,S),a9(e?.end??null,E,D,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=a4(r,{isInvalid:!0,validationErrors:[(iw.getGlobalDictionaryForPackage("@react-stately/datepicker")||a6).getStringForLocale("rangeReversed",a8())],validationDetails:{...aZ,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[s,E,D,O,S]),j=a0({...e,value:r,name:(0,m.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:P}),k=j.displayValidation.isInvalid,C=e.validationState||(k?"invalid":null);return{...j,value:s,defaultValue:e.defaultValue??i,setValue:l,dateRange:p,timeRange:y,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?w({start:t,end:y?.end??null}):w({start:y?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:w,...t,setOpen(r){!r&&!(s?.start&&s?.end)&&sy(p)&&d&&v(p,{start:y?.start||or(e.placeholderValue),end:y?.end||or(e.placeholderValue)}),t.setOpen(r)},validationState:C,isInvalid:k,formatValue(t,r){let n;if(!s||!s.start||!s.end)return null;let i="timeZone"in s.start?s.start.timeZone:void 0,a=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=ot(r,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(i||"UTC"),d=s.end.toDate(o||"UTC"),f=new ic(t,u);if(i===o&&a===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let i=0;i<e.length;i++)i<t?r+=e[i].value:i>t&&(n+=e[i].value);return{start:r,end:n}}catch{}n=f}else n=new ic(t,ot(r,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:n.format(d)}},getDateFormatter:(e,t)=>new ic(e,ot({},{...S,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:v,...b}=function(e,t,r){var n;let i=iP((n=aF)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:a,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=a$({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=il(),h=t.formatValue(p,{month:"long"}),y=iU(h?i.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),g={"aria-label":i.format("startDate"),"aria-labelledby":f},v={"aria-label":i.format("endDate"),"aria-labelledby":f},b=tQ(),w=tQ(),x=aB(t,r),S=[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=(0,m.useMemo)(()=>aI(r,{accept:e=>e.id!==b}),[r,b]),D={[aG]:E,[aH]:"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},O=rm(e),P=(0,m.useRef)(!1),{focusWithinProps:j}=nU({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rx(document.getElementById(w),t.relatedTarget)||(P.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{P.current||(P.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),k=(0,m.useRef)(aX),C=(0,m.useRef)(aX);return{groupProps:t3(O,x,u,y,j,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...l,onClick:()=>{E.focusFirst()}},buttonProps:{...y,id:b,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${f}`},startFieldProps:{...g,...D,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[aJ]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){k.current=e,t.updateValidation(a4(e,C.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...D,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[aJ]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){C.current=e,t.updateValidation(a4(k.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.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:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:a,validationErrors:o,validationDetails:s}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:w,isFocused:x,isFocusVisible:S}=nz({within:!0}),E=t8({...e,values:{state:i,isFocusWithin:x,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),D=rm(e,{global:!0});return delete D.id,y().createElement(t6,{values:[[sw,i],[ap,{...l,ref:a,isInvalid:i.isInvalid}],[nq,{...f,isPressed:i.isOpen}],[oN,{...u,ref:o,elementType:"span"}],[ar,h],[oO,i],[sf,{trigger:"DateRangePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oD,p],[oh,{slots:{start:c,end:d}}],[n0,{slots:{description:g,errorMessage:v}}],[oj,b]]},y().createElement(ri.div,{...t3(D,E,w),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}))});function sD(e){return y().createElement(is,e)}var sO=r(208),sP=r.n(sO);function sj(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function sk(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return r?e:void 0;if("string"==typeof e&&!e)return r?null:void 0;if(sj(e,a5.ng)||sj(e,a5._l)||sj(e,a5.Ip))return t?(0,iG.yP)(e,t):e;var n=sP()(e).toDate(),i=new a5.ng(n.getFullYear(),n.getMonth()+1,n.getDate());return t?(0,iG.yP)(i,t):i}function sC(e){if(e)return e.toDate((0,ij.Xj)())}var sT=r(1851),sA=r(3903);function sR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function sI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var sM=(0,m.createContext)(null);function sN(){var e=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,m.useMemo)(function(){var t=(0,sT.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),r=(0,m.useMemo)(function(){var e=(0,sA.a7)(t);return void 0!==e?(0,iH.d)(e):void 0},[t]),n=(0,m.useMemo)(function(){return new Intl.Locale(t,{calendar:null==r?void 0:r.identifier})},[t,r]),i=(0,m.useMemo)(function(){return r?(0,iG.yP)((0,ij.Ec)((0,ij.Xj)()),r):(0,ij.Ec)((0,ij.Xj)())},[r]);return{calendar:r,intlLocale:n,today_:i}}var sL=new a5.ng(1793,1,1),s_=function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return(0,h.jsx)("svg",{className:t,width:n,height:n,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,h.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sF={};function sB(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sV(e={}){let{locale:t}=il();return(0,m.useMemo)(()=>new(0,ou.K)(t,e),[t,e])}sF={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var s$={};s$={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sW=()=>{};function sU(e){var t;let r=(0,m.useRef)(void 0),{value:n,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:y}=e,g=iP((t=s$)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,m.useRef)(!1),b=(0,m.useCallback)(()=>{clearTimeout(r.current),v.current=!1},[]),w=nP(()=>{b()});(0,m.useEffect)(()=>()=>w(),[]);let{keyboardProps:x}=np({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!h&&void h(),End:()=>!!y&&void y()},allowRepeats:!0}),S=(0,m.useRef)(!1),E=()=>{S.current=!0},D=()=>{S.current=!1},O=""===i?g.format("Empty"):(i||`${n}`).replace("-","−");(0,m.useEffect)(()=>{S.current&&(ro&&ro.clear("assertive"),rs(O,"assertive"))},[O]);let P=(0,m.useCallback)(()=>{b()},[b]),j=nP(c??sW),k=nP(f??sW),C=nP(()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n<o)&&(j(),T(60))}),T=nP(e=>{w(),v.current=!0,r.current=window.setTimeout(C,e)}),A=nP(()=>{(void 0===a||isNaN(a)||void 0===n||isNaN(n)||n>a)&&(k(),R(60))}),R=nP(e=>{w(),v.current=!0,r.current=window.setTimeout(A,e)}),I=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:N}=nj(),L=(0,m.useRef)(!1),[_,F]=(0,m.useState)(null);(0,m.useEffect)(()=>{"touch"===_?T(600):_?T(400):_||w()},[_]);let[B,V]=(0,m.useState)(null);return(0,m.useEffect)(()=>{"touch"===B?R(600):B?R(400):B||w()},[B]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":O,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...x,onFocus:E,onBlur:D},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),F("mouse")):(M(window,"pointercancel",P,{capture:!0}),L.current=!1,F("touch")),M(window,"contextmenu",I)},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),N(),F(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&c?.(),L.current=!1,F(null)},onFocus:E,onBlur:D},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),V("mouse")):(M(window,"pointercancel",P,{capture:!0}),L.current=!1,V("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),N(),V(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&f?.(),L.current=!1,V(null)},onFocus:E,onBlur:D}}}let sz=null;var sH=r(4264);function sG(e,t,r){let n="+"===e?t+r:t-r;if(t%1!=0||r%1!=0){let i=t.toString().split("."),a=r.toString().split("."),o=Math.pow(10,Math.max(i[1]&&i[1].length||0,a[1]&&a[1].length||0));t=Math.round(t*o),r=Math.round(r*o),n=("+"===e?t+r:t-r)/o}return n}let sK=(0,m.createContext)(null),sY=(0,m.createContext)(null),sZ=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sK);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",{locale:i}=il(),a=function(e){let{minValue:t,maxValue:r,step:n,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===a&&(a=NaN);let f=(0,m.useCallback)(e=>void 0===n||isNaN(n)?o$(e,t,r):oU(e,t,r,n),[n,t,r]);void 0===a||isNaN(a)||"snap"!==d||(a=f(a)),isNaN(o)||"snap"!==d||(o=f(o));let[p,h]=i1(a,isNaN(o)?NaN:o,s),[y]=(0,m.useState)(p),[g,v]=(0,m.useState)(()=>isNaN(p)?"":new(0,ou.K)(l,i).format(p)),b=(0,m.useMemo)(()=>new(0,sH.d)(l,i),[l,i]),w=(0,m.useMemo)(()=>b.getNumberingSystem(g),[b,g]),x=(0,m.useMemo)(()=>new(0,ou.K)(l,{...i,numberingSystem:w}),[l,i,w]),S=(0,m.useMemo)(()=>x.resolvedOptions(),[x]),E=(0,m.useCallback)(e=>isNaN(e)||null===e?"":x.format(e),[x]),D=a0({...e,value:p}),O=void 0===n||isNaN(n)?1:n;"percent"===S.style&&(void 0===n||isNaN(n))&&(O=.01);let[P,j]=(0,m.useState)(p),[k,C]=(0,m.useState)(l),[T,A]=(0,m.useState)(i);Object.is(p,P)&&l===k&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}(i,T)||(v(E(p)),j(p),C(l),A(i));let R=(0,m.useMemo)(()=>b.parse(g),[b,g]),I=(e,n=0)=>{if(isNaN(R))return oU(isNaN(n)?0:n,t,r,O);{let n=oU(R,t,r,O);return"+"===e&&n>R||"-"===e&&n<R?n:oU(sG(e,R,O),t,r,O)}},M=(0,m.useMemo)(()=>!u&&!c&&(isNaN(R)||void 0===r||isNaN(r)||oU(R,t,r,O)>R||sG("+",R,O)<=r),[u,c,t,r,O,R]),N=(0,m.useMemo)(()=>!u&&!c&&(isNaN(R)||void 0===t||isNaN(t)||oU(R,t,r,O)<R||sG("-",R,O)>=t),[u,c,t,r,O,R]);return{...D,validate:e=>b.isValidPartialNumber(e,t,r),increment:()=>{let e=I("+",t);e===p&&v(E(e)),h(e),D.commitValidation()},incrementToMax:()=>{null!=r&&(h(oU(r,t,r,O)),D.commitValidation())},decrement:()=>{let e=I("-",r);e===p&&v(E(e)),h(e),D.commitValidation()},decrementToMin:()=>{null!=t&&(h(t),D.commitValidation())},canIncrement:M,canDecrement:N,minValue:t,maxValue:r,numberValue:R,defaultNumberValue:isNaN(o)?y:o,setNumberValue:h,setInputValue:v,inputValue:g,commit:e=>{let t=void 0===e?g:e,r=R;if(void 0!==e&&(r=b.parse(t)),!t.length){h(NaN),v(void 0===a?"":E(p));return}if(isNaN(r))return void v(E(p));let n="snap"===d?f(r):r,i=(n=b.parse(E(n)))!==p;h(n),v(E(void 0===a?n:p)),i&&D.commitValidation()}}}({...e,locale:i,validationBehavior:n}),o=(0,m.useRef)(null),[s,l]=re(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n,i,a,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:h,incrementAriaLabel:g,isDisabled:v,isReadOnly:b,isRequired:w,minValue:x,maxValue:S,autoFocus:E,label:D,formatOptions:O,onBlur:P=()=>{},onFocus:j,onFocusChange:k,onKeyDown:C,onKeyUp:T,description:A,errorMessage:R,isWheelDisabled:I,...M}=e,{increment:N,incrementToMax:L,decrement:_,decrementToMin:F,numberValue:B,inputValue:V,commit:$,commitValidation:W}=t,U=iP((n=sF)&&n.__esModule?n.default:n,"@react-aria/numberfield"),z=(0,m.useCallback)(()=>{let e=r.current?.value??"";(0,nk.flushSync)(()=>{$()}),r.current?.value!==e&&rs(r.current?.value??"","assertive")},[$,r]),H=tQ(p),{focusProps:G}=no({onBlur(){z()}}),K=sV(O),Y=(0,m.useMemo)(()=>K.resolvedOptions(),[K]),Z=sV({...O,currencySign:void 0}),q=(0,m.useMemo)(()=>isNaN(B)?"":Z.format(B),[Z,B]),{spinButtonProps:X,incrementButtonProps:Q,decrementButtonProps:J}=sU({isDisabled:v,isReadOnly:b,isRequired:w,maxValue:S,minValue:x,onIncrement:N,onIncrementToMax:L,onDecrement:_,onDecrementToMin:F,value:B,textValue:q}),[ee,et]=(0,m.useState)(!1),{focusWithinProps:er}=nU({isDisabled:v,onFocusWithinChange:et});!function(e,t){let{onScroll:r,isDisabled:n}=e,i=(0,m.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))},[r]);iz(t,"wheel",n?void 0:i)}({onScroll:(0,m.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?N():e.deltaY<0&&_())},[_,N]),isDisabled:I||v||b||!ee},r);let en=(Y.maximumFractionDigits??0)>0,ei=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,ea="numeric";rV()?ei?ea="text":en&&(ea="decimal"):rH()&&(ei?ea="numeric":en&&(ea="decimal"));let eo=rm(e),{keyboardProps:es}=np({isDisabled:v||b,shortcuts:{Enter:()=>((0,nk.flushSync)(()=>{$()}),W(),{shouldPreventDefault:!1})},onKeyDown:C,onKeyUp:T}),{isInvalid:el,validationErrors:eu,validationDetails:ec}=t.displayValidation,{labelProps:ed,inputProps:ef,descriptionProps:ep,errorMessageProps:eh}=function(e,t,r){let n=nP(e=>{let n=r.current;if(!n)return;let i=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":i=n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentForward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd+1):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentBackward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart-1)+n.value.slice(n.selectionStart):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":i=n.value.slice(n.selectionStart);break;default:null!=e.data&&(i=n.value.slice(0,n.selectionStart)+e.data+n.value.slice(n.selectionEnd))}null!=i&&t.validate(i)||e.preventDefault()});(0,m.useEffect)(()=>{if(!sB()||!r.current)return;let e=r.current;return e.addEventListener("beforeinput",n,!1),()=>{e.removeEventListener("beforeinput",n,!1)}},[r]);let i=sB()?null:e=>{let r=rS(e).value.slice(0,rS(e).selectionStart)+e.data+rS(e).value.slice(rS(e).selectionEnd);t.validate(r)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=i1(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ny(e,t),d=a0({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:b,errorMessageProps:w}=a$({...e,isInvalid:f,errorMessage:e.errorMessage||p}),x=rm(e,{labelable:!0}),S={type:o,pattern:e.pattern},[E]=(0,m.useState)(l);return aW(t,e.defaultValue??E,u),aU(e,d,t),{labelProps:g,inputProps:t3(x,"input"===r?S:void 0,{disabled:n,readOnly:a,required:i&&"native"===s,"aria-required":i&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(rS(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,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,...c,...v}),descriptionProps:b,errorMessageProps:w,isInvalid:f,validationErrors:p,validationDetails:h}}(e,r),c=(0,m.useRef)(null);return{inputProps:t3(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=r.current;c.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:e,selectionStart:n,selectionEnd:i}=c.current;r.current.value=e,r.current.setSelectionRange(n,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:l,...u}}({...M,...eo,name:void 0,form:void 0,label:D,autoFocus:E,isDisabled:v,isReadOnly:b,isRequired:w,validate:void 0,[aJ]:t,value:V,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:H,type:"text",inputMode:ea,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:P,onFocus:j,onFocusChange:k,onPaste:t=>{e.onPaste?.(t);let r=rS(t);r&&(r.selectionEnd??-1)-(r.selectionStart??0)===r.value.length&&(t.preventDefault(),$(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:A,errorMessage:R},t,r),em=t3(es,ef);aW(r,t.defaultNumberValue,t.setNumberValue),i=t,a=e.validationBehavior,o=e.commitBehavior,s=r,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,tB(()=>{let e=s.current;if("validate"!==o||i.realtimeValidation.isInvalid||!e||e.disabled||(!sz&&"u">typeof document&&((sz=document.createElement("input")).type="number"),!sz))return;sz.min=null==l||isNaN(l)?"":String(l),sz.max=null==u||isNaN(u)?"":String(u),sz.step=null==c||isNaN(c)?"":String(c),sz.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&sz.validity.valid,r=e.validationMessage||sz.validationMessage,n={isInvalid:!t,validationErrors:r?[r]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:sz.validity.rangeOverflow,rangeUnderflow:sz.validity.rangeUnderflow,stepMismatch:sz.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};i.updateValidation(n),"native"!==a||sz.validity.valid||e.setCustomValidity(sz.validationMessage)});let ey=t3(X,G,em,{role:null,"aria-roledescription":rW()?null:U.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ey["aria-required"]=void 0);let eg=e=>{((e=document)=>e.activeElement)()!==r.current&&("mouse"===e.pointerType?r.current?.focus():e.target.focus())},ev=e["aria-label"]||("string"==typeof e.label?e.label:"");ev||(f=null!=e.label?ed.id:e["aria-labelledby"]);let eb=tQ(),ew=tQ(),ex=t3(Q,{"aria-label":g||U.format("increase",{fieldLabel:ev}).trim(),id:f&&!g?eb:null,"aria-labelledby":f&&!g?`${eb} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eg}),eS=t3(J,{"aria-label":h||U.format("decrease",{fieldLabel:ev}).trim(),id:f&&!h?ew:null,"aria-labelledby":f&&!h?`${ew} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eg});return{groupProps:{...er,role:"group","aria-disabled":v,"aria-invalid":el?"true":void 0},labelProps:ed,inputProps:ey,incrementButtonProps:ex,decrementButtonProps:eS,errorMessageProps:eh,descriptionProps:ep,isInvalid:el,validationErrors:eu,validationDetails:ec}}({...rt(e),label:l,validationBehavior:n},a,o),b=t8({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),w=rm(e,{global:!0});return delete w.id,y().createElement(t6,{values:[[sY,a],[ap,c],[am,{...d,ref:o}],[oN,{...u,ref:s}],[nq,{slots:{increment:f,decrement:p}}],[n0,{slots:{description:h,errorMessage:g}}],[oj,v]]},y().createElement(ri.div,{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&y().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(a.numberValue)?"":a.numberValue,disabled:e.isDisabled||void 0}))});function sq(e,t){return Number.parseInt((0,sA.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sX=(0,m.forwardRef)(function(e,t){var r=e.className,n=(0,m.useContext)(an),i=(0,m.useContext)(ai),a=null!=n?n:i,o=(0,m.useContext)(sM),s=(0,ij.Xj)(),l=(0,sA.Yq)(a.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sq(a.visibleRange.start.toDate(s),o),c=a.maxValue?sq(a.maxValue.toDate(s),o):void 0,d=a.minValue?sq(a.minValue.toDate(s),o):void 0,f=(0,m.useCallback)(function(e){a.setFocusedDate(a.focusedDate.cycle("year",e-a.focusedDate.year))},[]);return a&&(0,h.jsxs)("span",{ref:t,className:r,children:[(0,h.jsx)("span",{children:l}),(0,h.jsxs)(sZ,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,h.jsx)(ay,{}),(0,h.jsxs)(ah,{children:[(0,h.jsx)(nX,{slot:"increment",children:(0,h.jsx)(em,{size:8})}),(0,h.jsx)(nX,{slot:"decrement",children:(0,h.jsx)(ef,{size:8})})]})]})]})});let sQ="+4zksyca-I5VROi6oiQzJQ==",sJ="wiExnFcGq1fPxn+K4eWeig==",s0="uiyACHcxSXjudv9HIlh57w==",s1="SxtTLfuOGW-Mst6POMWfQA==",s2="UU1QpNunTQCrdkAN2b2Ecg==",s3="fhR-1dd9yTq-5JUfl4REqA==",s4="_5INZ7v7pw4CkyEJ2Y8RsrA==",s5="RFMrlShZc97nAtIJF9P8jw==";function s6(e){var t=e.children,r=(0,m.useContext)(sb),n=(0,m.useContext)(sw),i=null!=r?r:n,a=(0,b.useOnClickOutside)(function(){return null==i?void 0:i.close()});return(0,h.jsx)(oP,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:a,children:t})}function s8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s9=(0,m.forwardRef)(function(e,t){var r,n,i=e.variant,a=e.today_,o=e.minDate,s=e.maxDate,l="range"===i;return(0,h.jsx)(sh,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,h.jsx)(s6,{children:(0,h.jsxs)(l?ao:aa,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s8(e,t,r[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),n=n={children:[(0,h.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,h.jsx)(nX,{className:v()(s2,s3),slot:"previous",children:(0,h.jsx)(eS,{size:16})}),(0,h.jsx)(sX,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,h.jsx)(nX,{className:v()(s2,s3),slot:"next",children:(0,h.jsx)(eE,{size:16})})]}),(0,h.jsx)(al,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,h.jsx)(af,{className:v()("cds--date-picker__day",s8({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===a.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})});function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function lt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var lr=(0,m.forwardRef)(function(e,t){var r,n=(0,m.useContext)(sb),i=function(e){if(Array.isArray(e))return e}(r=t7({slot:e.slot},t,oh))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(r)||function(e){if(e){if("string"==typeof e)return s7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s7(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1],s=il().locale,l=op(lt(le({},a),{locale:s,createCalendar:iH.d})),u=(0,m.useRef)(null),c=aK(lt(le({},a),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,m.useCallback)(function(){l.isDisabled||n.toggle()},[]);return(0,h.jsxs)(t6,{values:[[om,l],[am,lt(le({},f),{ref:u})],[ap,lt(le({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,h.jsx)(ah,lt(le({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,r){return(0,m.cloneElement)(e.children(t),{key:r})})})),(0,h.jsx)(ay,{})]})});function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var li=(0,m.forwardRef)(function(e,t){var r=(0,m.useContext)(sb),n=(0,m.useContext)(sw);return(null!=r?r:n).isInvalid?(0,h.jsx)(tk,ln({ref:t,size:16},e)):(0,h.jsx)(ed,ln({ref:t,size:16},e))});class la{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let lo=new Map;function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ll(e){if(Array.isArray(e))return e}function lu(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ld(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function lf(e,t){if(e){if("string"==typeof e)return ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ls(e,t)}}var lp=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s,l,u,c,d,f,p=ll(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||lf(r)||lu(),g=p[0],v=p.slice(1),b=g.segment,w=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(g,["segment"]),x=(ll(v)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(v)||lf(v,1)||lu())[0],S=(0,m.useContext)(om),E=t4(x),D=function(e,t,r){let n,i,a,o,s=(0,m.useRef)(""),{locale:l,direction:u}=il(),c=function(){var e;let{locale:t}=il(),r=iO((e=aF)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,m.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new la(t,r)}},[t,r])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:h}=az.get(t),g=e.isPlaceholder?"":e.text,v=(0,m.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=iy({month:"long",timeZone:v.timeZone}),w=iy({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(g=w.format(t.dateValue));else{let e=b.format(t.dateValue);g=e!==g?`${g} \u{2013} ${e}`:e}let{spinButtonProps:x}=sU({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),S=(0,m.useMemo)(()=>new(0,sH.d)(l,{maximumFractionDigits:0}),[l]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),!S.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=S.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),s.current=r}},{keyboardProps:D}=np({shortcuts:{Backspace:()=>{E()},Delete:()=>{E()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:O}=(n=function(e){let{locale:t}=il(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(lo.has(r))return lo.get(r);let n=new Intl.Collator(t,e);return lo.set(r,n),n}({usage:"search",sensitivity:"base"}),i=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),a=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),o=(0,m.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1},[n]),(0,m.useMemo)(()=>({startsWith:i,endsWith:a,contains:o}),[i,a,o])),P=iy({hour:"numeric",hour12:!0}),j=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(0),P.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[P]),k=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(12),P.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[P]),C=iy({year:"numeric",era:"narrow",timeZone:"UTC"}),T=(0,m.useMemo)(()=>{if("era"!==e.type)return[];let r=(0,iG.yP)(new(0,a5.ng)(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:C.formatToParts(t).find(e=>"era"===e.type).value}}),i=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(i)for(let e of n)e.formatted=e.formatted.slice(i);return n},[C,t.calendar,e.type]),A=r=>{if(t.isDisabled||t.isReadOnly)return;let n=s.current+r;switch(e.type){case"dayPeriod":if(O(j,r))t.setSegment("dayPeriod",0);else if(O(k,r))t.setSegment("dayPeriod",1);else break;h.focusNext();break;case"era":{let e=T.find(e=>O(e.formatted,r));e&&(t.setSegment("era",e.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(n))return;let i=S.parse(n),a=i;if(void 0!==e.maxValue&&i>e.maxValue&&(a=S.parse(r)),isNaN(i))return;t.setSegment(e.type,a),void 0!==e.maxValue&&(Number(i+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(s.current="",h.focusNext()):s.current=n}}};iz((0,m.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&rx(r.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===r.current&&e.collapse(r.current)});let R=(0,m.useRef)("");iz(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":R.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&A(n.data)}}),iz(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=R.current),null!=n&&(O(j,n)||O(k,n))&&A(n))}),tB(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(h.focusPrevious()||h.focusNext())}},[r,h]);let I=rW()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,m.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=tQ(),N=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),_=iI({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===u){F.unicodeBidi="embed";let t=v[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:t3(x,_,{id:M,...I,...D,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:N,suppressContentEditableWarning:N,spellCheck:N?"false":void 0,autoCorrect:N?"off":void 0,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:N?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!N?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",r.current&&iV(r.current,{containingElement:i_(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(b,S,E).segmentProps,O=nz(),P=O.focusProps,j=O.isFocused,k=O.isFocusVisible,C=nZ(ld(lc({},w),{isDisabled:S.isDisabled||"literal"===b.type})),T=C.hoverProps,A=C.isHovered,R=(i=(n=ld(lc({},w),{values:ld(lc({},b),{isReadOnly:!b.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:A,isFocused:j,isFocusVisible:k}),defaultChildren:b.text})).className,a=n.style,o=n.children,l=void 0===(s=n.defaultClassName)?void 0:s,c=void 0===(u=n.defaultChildren)?void 0:u,d=n.defaultStyle,f=n.values,(0,m.useMemo)(function(){var e,t,r;return e="function"==typeof i?i(sI(sR({},f),{defaultClassName:l})):i,t="function"==typeof a?a(sI(sR({},f),{defaultStyle:d||{}})):a,r="function"==typeof o?o(sI(sR({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?sR({},d,t):void 0,children:null!=r?r:c,"data-rac":""}},[i,a,o,l,c,d,f])),I=(0,m.useCallback)(function(e){e.stopPropagation()},[]);return(0,h.jsx)("span",ld(lc({},t3(rm(w),D,P,T),R),{ref:E,style:D.style,"data-placeholder":b.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!b.isEditable||void 0,"data-disabled":S.isDisabled||void 0,"data-type":b.type,"data-hovered":A||void 0,"data-focused":j||void 0,"data-focus-visible":k||void 0,onClick:I}))});function lh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lh(e,t,r[t])})}return e}var ly={short:!1,size:"md"},lg=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lm({},ly,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,g=s.label,b=s.labelText,w=s.light,x=s.maxDate,S=s.minDate,E=s.onChange,D=s.onChangeRaw,O=s.short,P=s.size,j=s.value,k=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),C=sN(),T=C.calendar,A=C.intlLocale,R=C.today_,I=(0,m.useId)(),M=!!(null!=b?b:g),N=(0,m.useMemo)(function(){return sk(u,T)},[u,T]),L=(0,m.useMemo)(function(){return sk(j,T,!0)},[j,T]),_=(0,m.useMemo)(function(){return sk(x,T)},[x,T]),F=(0,m.useMemo)(function(){return sk(null!=S?S:sL,T)},[S,T]),B=(0,m.useMemo)(function(){return d||p},[d,p]),V=(0,m.useMemo)(function(){return D&&E&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=D?D:function(e){return null==E?void 0:E(sC(e))}},[D,E]);return(0,h.jsx)(sD,{locale:A.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",l),children:(0,h.jsx)(t6,{values:[[sM,A]],children:(0,h.jsxs)(sS,(r=lm({className:v()("cds--date-picker","cds--date-picker--single",(lh(i={},"cds--date-picker--short",O),lh(i,"cds--date-picker--light",w),i)),defaultValue:N,isDisabled:c,isInvalid:B,maxValue:_,minValue:F,value:L,shouldForceLeadingZeros:"en"===A.language||void 0},k),n=n={onChange:V,children:[(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[M&&(0,h.jsx)(oL,{className:v()("cds--label",{"cds--label--disabled":c}),htmlFor:I,children:null!=b?b:g}),(0,h.jsxs)(ah,{className:sQ,children:[(0,h.jsx)(lr,{id:M?I:void 0,ref:t,className:v()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(lh(a={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===P),lh(a,"ablE9mmlFsZsPekwcW7jjQ==","md"===P||!P||0===P.length),lh(a,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===P),a)),children:function(e){return"era"!==e.type?(0,h.jsx)(lp,{className:sJ,segment:e}):(0,h.jsx)(y().Fragment,{})}}),(0,h.jsx)(nX,{className:v()(s2,(lh(o={},s4,"sm"===P),lh(o,s3,"md"===P||!P||0===P.length),lh(o,s5,"lg"===P),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(ok,{className:s1,children:f})]}),(0,h.jsx)(s9,{variant:"single",today_:R})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lb(e){if(Array.isArray(e))return e}function lw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lS(e,t){if(e){if("string"==typeof e)return lv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lv(e,t)}}var lE=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lb(i=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||lS(i)||lx(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,y=l.isDisabled,g=l.isInvalid,b=l.label,w=l.labelText,x=l.light,S=l.maxDate,E=l.minDate,D=l.onChange,O=l.onChangeRaw,P=l.size,j=void 0===P?"md":P,k=l.value,C=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),T=(lb(u)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(u)||lS(u,1)||lx())[0],A=sN(),R=A.calendar,I=A.intlLocale,M=A.today_,N=(0,m.useId)(),L=!!(null!=w?w:b),_=(0,m.useMemo)(function(){if(k)return{start:sk(k[0],R,!1),end:sk(k[1],R,!1)}},[k,R]),F=(0,m.useMemo)(function(){if(d)return{start:sk(d[0],R,!1),end:sk(d[1],R,!1)}},[d,R]),B=(0,m.useMemo)(function(){return sk(null!=E?E:sL,R,!0)},[E,R]),V=(0,m.useMemo)(function(){return sk(S,R,!0)},[S,R]),$=(0,m.useMemo)(function(){return f||g},[f,g]),W=(0,m.useMemo)(function(){return O&&D&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==D?void 0:D([sC(e.start),sC(e.end)])}},[O,D]);return(0,h.jsx)(sD,{locale:I.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",c),children:(0,h.jsx)(t6,{values:[[sM,I]],children:(0,h.jsx)(sE,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lw(e,t,r[t])})}return e}({id:L?N:void 0,className:v()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":y}),isInvalid:$,shouldForceLeadingZeros:"en"===I.language||void 0,maxValue:V,minValue:B,value:_,defaultValue:F,ref:T,isDisabled:y},C),n=n={onChange:W,children:(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[L&&(0,h.jsx)(oL,{className:v()("cds--label",{"cds--label--disabled":y}),htmlFor:N,children:null!=w?w:b}),(0,h.jsxs)(ah,{className:sQ,children:[(0,h.jsxs)("div",{className:v()("YlkGhdQcBgSDJNSlS1cQnw==",(lw(a={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===j),lw(a,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===j||!j||0===j.length),lw(a,"UgHJ1nnMa-axxvCtxsZexg==","lg"===j),a)),children:[(0,h.jsx)(og,{className:v()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",s0),slot:"start",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}}),(0,h.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,h.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,h.jsx)(og,{className:v()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",s0),slot:"end",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}})]}),(0,h.jsx)(nX,{className:v()(s2,(lw(o={},s4,"sm"===j),lw(o,s3,"md"===j||!j||0===j.length),lw(o,s5,"lg"===j),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(ok,{className:s1,children:p}),(0,h.jsx)(s9,{variant:"range",today_:M,minDate:B,maxDate:V})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lD(e){var t=e.classifications,r=(0,b.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,h.jsx)("div",{"aria-label":(0,_.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var n,i,a="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=a?null!=(n=null==r?void 0:r.primaryColor)?n:"red":o?null!=(i=null==r?void 0:r.secondaryColor)?i:"blue":"gray";return(0,h.jsx)(L.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let lO={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var lP=function(e){var t=e.width,r=e.height;return(0,h.jsx)("svg",{width:void 0===t?"64":t,height:void 0===r?"64":r,viewBox:"0 0 64 64",children:(0,h.jsx)("use",{href:"#egen-empty-data-illustration"})})},lj=function(e){var t="tablet"===(0,b.useLayoutType)(),r=e.launchForm;return(0,h.jsx)(L.Layer,{className:lO.layer,children:(0,h.jsxs)(L.Tile,{className:lO.tile,children:[(0,h.jsx)(x,{title:e.headerTitle}),(0,h.jsx)(lP,{}),(0,h.jsx)("p",{className:lO.content,children:(0,_.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,h.jsx)("p",{className:lO.action,children:r&&(0,h.jsx)(L.Button,{onClick:function(){return r()},kind:"ghost",size:t?"lg":"sm",children:(0,_.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lk=function(e){var t,r,n=e.error,i=e.headerTitle;return(0,h.jsx)(L.Layer,{children:(0,h.jsxs)(L.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,h.jsx)(x,{title:i}),(0,h.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,_.V)("error","Error")," ","".concat(null==n||null==(t=n.response)?void 0:t.status,": "),null==n||null==(r=n.response)?void 0:r.statusText]}),(0,h.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,_.V)("errorCopy")})]})})},lC=lk;let lT={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var lA=function(e){var t=e.fieldIcon,r=e.className;if(!t)return null;var n=t.icon;return(0,h.jsx)(n,{className:[lT.fieldIconGlyph,r].filter(Boolean).join(" "),size:16})};function lR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var lI={success:ev,warning:tk,error:s_},lM=function(e){var t,r,n,i=e.currentValidation,a=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return lR(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lR(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1];if((0,m.useEffect)(function(){if(i&&a){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[i,a]),!a||!i)return null;var u=lI[i.type];return u?(0,h.jsx)("div",{className:v()(lT.validationIcon,lT["validationIcon--".concat(i.type)],(r={},n=lT["validationIcon--visible"],n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s,r)),children:(0,h.jsx)(u,{className:lT.validationIconGlyph,size:16})}):null};let lN=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lL=new Set([...lN,"pathRotation"]),l_=(e,t,r)=>r>t?t:r<e?e:r,lF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lB={...lF,transform:e=>l_(0,1,e)},lV={...lF,default:1},l$=e=>Math.round(1e5*e)/1e5,lW=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lU=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lz=(e,t)=>r=>!!("string"==typeof r&&lU.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),lH=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(lW);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lG={...lF,transform:e=>Math.round(l_(0,255,e))},lK={test:lz("rgb","red"),parse:lH("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lG.transform(e)+", "+lG.transform(t)+", "+lG.transform(r)+", "+l$(lB.transform(n))+")"},lY={test:lz("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:lK.transform},lZ=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lq=lZ("deg"),lX=lZ("%"),lQ=lZ("px"),lJ=lZ("vh"),l0=lZ("vw"),l1={...lX,parse:e=>lX.parse(e)/100,transform:e=>lX.transform(100*e)},l2={test:lz("hsl","hue"),parse:lH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lX.transform(l$(t))+", "+lX.transform(l$(r))+", "+l$(lB.transform(n))+")"},l3={test:e=>lK.test(e)||lY.test(e)||l2.test(e),parse:e=>lK.test(e)?lK.parse(e):l2.test(e)?l2.parse(e):lY.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lK.transform(e):l2.transform(e),getAnimatableNone:e=>{let t=l3.parse(e);return t.alpha=0,l3.transform(t)}},l4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,l5="number",l6="color",l8=/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 l9(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=t.replace(l8,e=>(l3.test(e)?(n.color.push(a),i.push(l6),r.push(l3.parse(e))):e.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(e)):(n.number.push(a),i.push(l5),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function l7({split:e,types:t}){let r=e.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=e[a],void 0!==n[a]){let e=t[a];e===l5?i+=l$(n[a]):e===l6?i+=l3.transform(n[a]):i+=n[a]}return i}}let ue={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lW)?.length||0)+(e.match(l4)?.length||0)>0},parse:function(e){return l9(e).values},createTransformer:function(e){return l7(l9(e))},getAnimatableNone:function(e){let t=l9(e);return l7(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:l3.test(e)?l3.getAnimatableNone(e):e)(e,t.split[r])))}},ut=new Set(["brightness","contrast","saturate","opacity"]);function ur(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(lW)||[];if(!n)return e;let i=r.replace(n,""),a=+!!ut.has(t);return n!==r&&(a*=100),t+"("+a+i+")"}let un=/\b([a-z-]*)\(.*?\)/gu,ui={...ue,getAnimatableNone:e=>{let t=e.match(un);return t?t.map(ur).join(" "):e}},ua={...ue,getAnimatableNone:e=>{let t=ue.parse(e);return ue.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},uo={...lF,transform:Math.round},us={borderWidth:lQ,borderTopWidth:lQ,borderRightWidth:lQ,borderBottomWidth:lQ,borderLeftWidth:lQ,borderRadius:lQ,borderTopLeftRadius:lQ,borderTopRightRadius:lQ,borderBottomRightRadius:lQ,borderBottomLeftRadius:lQ,width:lQ,maxWidth:lQ,height:lQ,maxHeight:lQ,top:lQ,right:lQ,bottom:lQ,left:lQ,inset:lQ,insetBlock:lQ,insetBlockStart:lQ,insetBlockEnd:lQ,insetInline:lQ,insetInlineStart:lQ,insetInlineEnd:lQ,padding:lQ,paddingTop:lQ,paddingRight:lQ,paddingBottom:lQ,paddingLeft:lQ,paddingBlock:lQ,paddingBlockStart:lQ,paddingBlockEnd:lQ,paddingInline:lQ,paddingInlineStart:lQ,paddingInlineEnd:lQ,margin:lQ,marginTop:lQ,marginRight:lQ,marginBottom:lQ,marginLeft:lQ,marginBlock:lQ,marginBlockStart:lQ,marginBlockEnd:lQ,marginInline:lQ,marginInlineStart:lQ,marginInlineEnd:lQ,fontSize:lQ,backgroundPositionX:lQ,backgroundPositionY:lQ,rotate:lq,pathRotation:lq,rotateX:lq,rotateY:lq,rotateZ:lq,scale:lV,scaleX:lV,scaleY:lV,scaleZ:lV,skew:lq,skewX:lq,skewY:lq,distance:lQ,translateX:lQ,translateY:lQ,translateZ:lQ,x:lQ,y:lQ,z:lQ,perspective:lQ,transformPerspective:lQ,opacity:lB,originX:l1,originY:l1,originZ:lQ,zIndex:uo,fillOpacity:lB,strokeOpacity:lB,numOctaves:uo},ul={...us,color:l3,backgroundColor:l3,outlineColor:l3,fill:l3,stroke:l3,borderColor:l3,borderTopColor:l3,borderRightColor:l3,borderBottomColor:l3,borderLeftColor:l3,filter:ui,WebkitFilter:ui,mask:ua,WebkitMask:ua},uu=e=>ul[e],uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),ud=()=>({x:uc(),y:uc()}),uf=()=>({min:0,max:0}),up=()=>({x:uf(),y:uf()}),uh=e=>!!(e&&e.getVelocity),um=new Set(["width","height","top","left","right","bottom",...lN]),uy=e=>t=>t.test(e),ug=[lF,lQ,lX,lq,l0,lJ,{test:e=>"auto"===e,parse:e=>e}],uv=e=>ug.find(uy(e)),ub=()=>{},uw=()=>{},ux=e=>t=>"string"==typeof t&&t.startsWith(e),uS=ux("--"),uE=ux("var(--"),uD=e=>!!uE(e)&&uO.test(e.split("/*")[0].trim()),uO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uP(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let uj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uk=e=>180*e/Math.PI,uC=e=>uA(uk(Math.atan2(e[1],e[0]))),uT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uC,rotateZ:uC,skewX:e=>uk(Math.atan(e[1])),skewY:e=>uk(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uA=e=>((e%=360)<0&&(e+=360),e),uR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uI=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uR,scaleY:uI,scale:e=>(uR(e)+uI(e))/2,rotateX:e=>uA(uk(Math.atan2(e[6],e[5]))),rotateY:e=>uA(uk(Math.atan2(-e[2],e[0]))),rotateZ:uC,rotate:uC,skewX:e=>uk(Math.atan(e[4])),skewY:e=>uk(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uN(e){return+!!e.includes("scale")}function uL(e,t){let r,n;if(!e||"none"===e)return uN(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=uM,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uT,n=t}if(!n)return uN(t);let a=r[t],o=n[1].split(",").map(u_);return"function"==typeof a?a(o):o[a]}function u_(e){return parseFloat(e.trim())}let uF=e=>e===lF||e===lQ,uB=new Set(["x","y","z"]),uV=lN.filter(e=>!uB.has(e)),u$={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},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:(e,{transform:t})=>uL(t,"x"),y:(e,{transform:t})=>uL(t,"y")};u$.translateX=u$.x,u$.translateY=u$.y;let uW=e=>e,uU={},uz=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uH(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=uz.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,i=!1,o=!1)=>{let s=o&&n?t:r;return i&&a.add(e),s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,n){i=!0;return}n=!0;let a=t;t=r,r=a,t.forEach(s),t.clear(),n=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=o,m=()=>{let a=uU.useManualTiming,o=a?i.timestamp:performance.now();r=!1,a||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))};return{schedule:uz.reduce((t,a)=>{let s=o[a];return t[a]=(t,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||e(m)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<uz.length;t++)o[uz[t]].cancel(e)},state:i,steps:o}}let{schedule:uG,cancel:uK,state:uY,steps:uZ}=uH("u">typeof requestAnimationFrame?requestAnimationFrame:uW,!0),uq=new Set,uX=!1,uQ=!1,uJ=!1;function u0(){if(uQ){let e=Array.from(uq).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],uV.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uQ=!1,uX=!1,uq.forEach(e=>e.complete(uJ)),uq.clear()}function u1(){uq.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uQ=!0)})}class u2{constructor(e,t,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(uq.add(this),uX||(uX=!0,uG.read(u1),uG.resolveKeyframes(u0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uq.delete(this)}cancel(){"scheduled"===this.state&&(uq.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let u3=new Set([ui,ua]);function u4(e,t){let r=uu(e);return u3.has(r)||(r=ue),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let u5=new Set(["auto","none","0"]);class u6 extends u2{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&uD(n=n.trim())){let i=function e(t,r,n=1){uw(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,a]=function(e){let t=uj.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uD(a)?e(a,r,n+1):a}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!um.has(r)||2!==e.length)return;let[n,i]=e,a=uv(n),o=uv(i);if(uP(n)!==uP(i)&&u$[r]){this.needsMeasurement=!0;return}if(a!==o)if(uF(a)&&uF(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else u$[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!u5.has(t)&&l9(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=u4(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=u$[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=u$[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let u8=e=>1e3*e;function u9(e,t){-1===e.indexOf(t)&&e.push(t)}function u7(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class ce{constructor(){this.subscriptions=[]}add(e){return u9(this.subscriptions,e),()=>u7(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ct(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function cr(e){let t;return()=>(void 0===t&&(t=e()),t)}let cn={};function ci(e,t){let r=cr(e);return()=>cn[t]??r()}let ca=ci(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),co=e=>null!==e;function cs(e,{repeat:t,repeatType:r="loop"},n,i=1){let a=e.filter(co),o=i<0||t&&"loop"!==r&&t%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}class cl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cu=e=>Array.isArray(e)&&"number"==typeof e[0],cc=ci(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cd=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function ch(e){return"function"==typeof e&&"applyToOptions"in e}class cm extends cl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,uw("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return ch(e)&&cc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?cc()?cd(t,r):"ease-out":cu(t)?cf(t):Array.isArray(t)?t.map(t=>e(t,r)||cp.easeOut):cp[t]}(s,i);Array.isArray(d)&&(c.easing=d);let f={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cs(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ct(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ca())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),uW):n(this)}}let cy=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cg}=uH(queueMicrotask,!1);function cv(){a=void 0}let cb={now:()=>(void 0===a&&cb.set(uY.isProcessing||uU.useManualTiming?uY.timestamp:performance.now()),a),set:e=>{a=e,queueMicrotask(cv)}},cw=(e,t)=>t?1e3/t*e:0,cx;class cS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);let r=this.events[e].add(t);return"change"===e?()=>{r(),uG.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cx&&cx.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cE(e,t){return new cS(e,t)}let cD=[...ug,l3,ue],cO=new WeakMap;function cP(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cj(e){return"string"==typeof e||Array.isArray(e)}let ck=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cC=["initial",...ck];function cT(e){return cP(e.animate)||cC.some(t=>cj(e[t]))}function cA(e){return!!(cT(e)||e.variants)}let cR={current:null},cI={current:!1},cM="u">typeof window;function cN(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function cL(e,t,r,n){if("function"==typeof t){let[i,a]=cN(n);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=cN(n);t=t(void 0!==r?r:e.custom,i,a)}return t}let c_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cF={};class cB{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=u2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=cb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uG.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=cT(t),this.isVariantNode=cA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&uh(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cI.current||function(){if(cI.current=!0,cM)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cR.current=e.matches;e.addEventListener("change",t),t()}else cR.current=!1}(),this.shouldReduceMotion=cR.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uK(this.notifyUpdate),uK(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cy.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:a,duration:o}=t.accelerate,s=new cm({element:this.current,name:e,keyframes:n,times:i,ease:a,duration:u8(o)}),l=r(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let n=lL.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uG.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in cF){let t=cF[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):up()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<c_.length;t++){let r=c_[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if(uh(i))e.addValue(n,i);else if(uh(a))e.addValue(n,cE(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,cE(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=cE(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!cD.find(uy(n))&&ue.test(t)&&(r=u4(e,t))}this.setBaseTarget(e,uh(r)?r.get():r)}return uh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=cL(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||uh(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}}class cV extends cB{constructor(){super(...arguments),this.KeyframeResolver=u6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;uh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function c$(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,cU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cz=lN.length;function cH(e,t,r){let{style:n,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let r=t[e];if(lL.has(e)){o=!0;continue}if(uS(e)){i[e]=r;continue}{let t=cW(r,us[e]);e.startsWith("origin")?(s=!0,a[e]=t):n[e]=t}}if(!t.transform&&(o||r?n.transform=function(e,t,r){let n="",i=!0;for(let a=0;a<cz;a++){let o=lN[a],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||r){let e=cW(s,us[o]);if(!l){i=!1;let t=cU[o]||o;n+=`${t}(${e}) `}r&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,n+=`rotate(${cW(a,us.pathRotation)}) `),n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=a;n.transformOrigin=`${e} ${t} ${r}`}}let cG={offset:"stroke-dashoffset",array:"stroke-dasharray"},cK={offset:"strokeDashoffset",array:"strokeDasharray"},cY=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cZ(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(cH(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cY))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let a=i?cG:cK;e[a.offset]=`${-n}`,e[a.array]=`${t} ${r}`}(d,i,a,o,!1)}let cq=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"]),cX=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cQ(e,{style:t,vars:r},n,i){let a,o=e.style;for(a in t)o[a]=t[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}let cJ=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function c0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let c1={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lQ.test(e))return e;else e=parseFloat(e);let r=c0(e,t.target.x),n=c0(e,t.target.y);return`${r}% ${n}%`}},c2=(e,t,r)=>e+(t-e)*r,c3={borderRadius:{...c1,applyTo:[...cJ]},borderTopLeftRadius:c1,borderTopRightRadius:c1,borderBottomLeftRadius:c1,borderBottomRightRadius:c1,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=ue.parse(e);if(n.length>5)return e;let i=ue.createTransformer(e),a=+("number"!=typeof n[0]),o=r.x.scale*t.x,s=r.y.scale*t.y;n[0+a]/=o,n[1+a]/=s;let l=c2(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function c4(e,{layout:t,layoutId:r}){return lL.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!c3[e]||"opacity"===e)}function c5(e,t,r){let n=e.style,i=t?.style,a={};if(!n)return a;for(let t in n)(uh(n[t])||i&&uh(i[t])||c4(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(a[t]=n[t]);return a}function c6(e,t,r){let n=c5(e,t,r);for(let r in e)(uh(e[r])||uh(t[r]))&&(n[-1!==lN.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class c8 extends cV{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=up}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lL.has(t)){let e=uu(t);return e&&e.default||0}return t=cq.has(t)?t:c$(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return c6(e,t,r)}build(e,t,r){cZ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in cQ(e,t,void 0,n),t.attrs)e.setAttribute(cq.has(r)?r:c$(r),t.attrs[r])}mount(e){this.isSVGTag=cX(e.tagName),super.mount(e)}}function c9({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function c7(e){return void 0===e||1===e}function de({scale:e,scaleX:t,scaleY:r}){return!c7(e)||!c7(t)||!c7(r)}function dt(e){return de(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function dn(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function di(e,t=0,r=1,n,i){e.min=dn(e.min,t,r,n,i),e.max=dn(e.max,t,r,n,i)}function da(e,{x:t,y:r}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,r.translate,r.scale,r.originPoint)}function ds(e,t){e.min+=t,e.max+=t}function dl(e,t,r,n,i=.5){let a=c2(e.min,e.max,i);di(e,t,r,a,n)}function du(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dc(e,t,r){let n=r??e;dl(e.x,du(t.x,n.x),t.scaleX,t.scale,t.originX),dl(e.y,du(t.y,n.y),t.scaleY,t.scale,t.originY)}function dd(e,t){return c9(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class df extends cV{constructor(){super(...arguments),this.type="html",this.renderInstance=cQ}mount(e){uw(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(lL.has(t))return this.projection?.isProjecting?uN(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return uL(r,t)})(e,t);{let r=window.getComputedStyle(e),n=(uS(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return dd(e,t)}build(e,t,r){cH(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return c5(e,t,r)}}let dp=["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 dh(e){if("string"!=typeof e||e.includes("-"));else if(dp.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dm=(0,m.createContext)({}),dy=(0,m.createContext)({strict:!1}),dg=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dv=(0,m.createContext)({});function db(e){return Array.isArray(e)?e.join(" "):e}let dw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dx(e,t,r){for(let n in t)uh(t[n])||c4(n,r)||(e[n]=t[n])}let dS=()=>({...dw(),attrs:{}}),dE=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","propagate","ignoreStrict","viewport"]);function dD(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dE.has(e)}let dO=e=>!dD(e);try{bE=require("@emotion/is-prop-valid").default,"function"==typeof bE&&(dO=e=>e.startsWith("on")?!dD(e):bE(e))}catch{}function dP(e){return uh(e)?e.get():e}let dj=(0,m.createContext)(null);function dk(e){let t=(0,m.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dC=e=>(t,r)=>{let n=(0,m.useContext)(dv),i=(0,m.useContext)(dj),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:function(e,t,r,n){let i={},a=n(e,{});for(let e in a)i[e]=dP(a[e]);let{initial:o,animate:s}=e,l=cT(e),u=cA(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!cP(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let n=cL(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,n,i,e),renderState:t()}})(e,t,n,i);return r?a():dk(a)},dT=dC({scrapeMotionValuesFromProps:c5,createRenderState:dw}),dA=dC({scrapeMotionValuesFromProps:c6,createRenderState:dS}),dR={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"]},dI=!1;function dM(){return!function(){if(dI)return;let e={};for(let t in dR)e[t]={isEnabled:e=>dR[t].some(t=>!!e[t])};cF=e,dI=!0}(),cF}let dN=Symbol.for("motionComponentSymbol"),dL="data-"+c$("framerAppearId"),d_=(0,m.createContext)({});function dF(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dB="u">typeof window?m.useLayoutEffect:m.useEffect;function dV(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&function(e){let t=dM();for(let r in e)t[r]={...t[r],...e[r]};cF=t}(n);let a=r?"svg"===r:dh(e),o=a?dA:dT;function s(r,n){var s;let l,u,c,d={...(0,m.useContext)(dg),...r,layoutId:function({layoutId:e}){let t=(0,m.useContext)(dm).id;return t&&void 0!==e?t+"-"+e:e}(r)},{isStatic:f}=d,p=function(e){let{initial:t,animate:r}=function(e,t){if(cT(e)){let{initial:t,animate:r}=e;return{initial:!1===t||cj(t)?t:void 0,animate:cj(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,m.useContext)(dv));return(0,m.useMemo)(()=>({initial:t,animate:r}),[db(t),db(r)])}(r),y=o(r,f);if(!f&&"u">typeof window){(0,m.useContext)(dy).strict;let t=function(e){let{drag:t,layout:r}=dM();if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,r,n,i,a){let{visualElement:o}=(0,m.useContext)(dv),s=(0,m.useContext)(dy),l=(0,m.useContext)(dj),u=(0,m.useContext)(dg),c=u.reducedMotion,d=u.skipAnimations,f=(0,m.useRef)(null),p=(0,m.useRef)(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,y=(0,m.useContext)(d_);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&dF(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,r,i,y);let g=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{h&&g.current&&h.update(r,l)});let v=r[dL],b=(0,m.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dB(()=>{p.current=!0,h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),(0,m.useEffect)(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),h.enteringChildren=void 0)}),h}(e,y,d,i,t.ProjectionNode,a)}return(0,h.jsxs)(dv.Provider,{value:p,children:[l&&p.visualElement?(0,h.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,r,{latestValues:n},i,a=!1,o){let s=(o??dh(e)?function(e,t,r,n){let i=(0,m.useMemo)(()=>{let r=dS();return cZ(r,t,cX(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};dx(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r,n,i={},a=(r=e.style||{},dx(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,m.useMemo)(()=>{let r=dw();return cH(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,n,i,e),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!uh(e[i])&&(dO(i)||!0===r&&dD(i)||!t&&!dD(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,a),u=e!==m.Fragment?{...l,...s,ref:r}:{},{children:c}=t,d=(0,m.useMemo)(()=>uh(c)?c.get():c,[c]);return(0,m.createElement)(e,{...u,children:d})}(e,r,(s=p.visualElement,u=(0,m.useRef)(n),(0,m.useInsertionEffect)(()=>{u.current=n}),c=(0,m.useRef)(null),(0,m.useCallback)(e=>{e&&y.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),y,f,t,a)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,m.forwardRef)(s);return l[dN]=e,l}class d${constructor(e){this.isMounted=!1,this.node=e}update(){}}function dW(e,t,r){let n=e.getProps();return cL(n,t,void 0!==r?r:n.custom,e)}function dU(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function dz(e,t){let r=e?.[t]??e?.default??e;return r!==e?dU(r,e):r}let dH=e=>Array.isArray(e);function dG(e,t){let{transitionEnd:r={},transition:n={},...i}=dW(e,t)||{};for(let t in i={...i,...r}){var a;let r=dH(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,cE(r))}}function dK(e,t){let r=e.getValue("willChange");if(uh(r)&&r.add)return r.add(t);if(!r&&uU.WillChange){let r=new uU.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let dY=(...e)=>e.reduce((e,t)=>r=>t(e(r)));function dZ(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dq(e,t){return r=>r>0?t:e}let dX=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},dQ=[lY,lK,l2];function dJ(e){let t=dQ.find(t=>t.test(e));if(ub(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===l2&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=dZ(s,n,e+1/3),a=dZ(s,n,e),o=dZ(s,n,e-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let d0=(e,t)=>{let r=dJ(e),n=dJ(t);if(!r||!n)return dq(e,t);let i={...r};return e=>(i.red=dX(r.red,n.red,e),i.green=dX(r.green,n.green,e),i.blue=dX(r.blue,n.blue,e),i.alpha=c2(r.alpha,n.alpha,e),lK.transform(i))},d1=new Set(["none","hidden"]);function d2(e,t){return r=>c2(e,t,r)}function d3(e){return"number"==typeof e?d2:"string"==typeof e?uD(e)?dq:l3.test(e)?d0:d6:Array.isArray(e)?d4:"object"==typeof e?l3.test(e)?d0:d5:dq}function d4(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>d3(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function d5(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=d3(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let d6=(e,t)=>{let r=ue.createTransformer(t),n=l9(e),i=l9(t);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return ub(!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.`,"complex-values-different"),dq(e,t);if(d1.has(e)&&!i.values.length||d1.has(t)&&!n.values.length)return d1.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return dY(d4(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][n[a]],s=e.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function d8(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?c2(e,t,r):d3(e)(e,t)}let d9=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uG.update(t,e),stop:()=>uK(t),now:()=>uY.isProcessing?uY.timestamp:cb.now()}};function d7(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let fe=.01,ft=2,fr=.005,fn=.5;function fi(e,t){return e*Math.sqrt(1-t*t)}let fa=["duration","bounce"],fo=["stiffness","damping","mass"];function fs(e,t){return t.some(t=>void 0!==e[t])}function fl(e=.3,t=.3){let r,n,i,a,o,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:h,damping:m,mass:y,duration:g,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fs(e,fo)&&fs(e,fa))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*l_(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:i}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let i,a;ub(e<=u8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=l_(.05,1,o),e=l_(.01,10,e/1e3),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/fi(t,o)*Math.exp(-i)},a=t=>{let n=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=fi(Math.pow(t,2),o);return(n*r+r-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e=u8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,x=m/(2*Math.sqrt(h*y)),S=f-d,E=Math.sqrt(h/y)/1e3,D=5>Math.abs(S);if(u||(u=D?fe:ft),c||(c=D?fr:fn),x<1)i=fi(E,x),a=(w+x*E*S)/i,r=e=>f-Math.exp(-x*E*e)*(a*Math.sin(i*e)+S*Math.cos(i*e)),o=x*E*a+S*i,s=x*E*S-a*i,n=e=>Math.exp(-x*E*e)*(o*Math.sin(i*e)+s*Math.cos(i*e));else if(1===x){r=e=>f-Math.exp(-E*e)*(S+(w+E*S)*e);let e=w+E*S;n=t=>Math.exp(-E*t)*(E*e*t-w)}else{let e=E*Math.sqrt(x*x-1);r=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return f-r*((w+x*E*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(w+x*E*S)/e,i=x*E*t-S*e,a=x*E*S-t*e;n=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return r*(i*Math.sinh(n)+a*Math.cosh(n))}}let O={calculatedDuration:b&&g||null,velocity:e=>u8(n(e)),next:e=>{if(!b&&x<1){let t=Math.exp(-x*E*e),r=Math.sin(i*e),n=Math.cos(i*e),l=f-t*(a*r+S*n);return p.done=Math.abs(u8(t*(o*r+s*n)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=r(e);return b?p.done=e>=g:p.done=Math.abs(u8(n(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(d7(O),2e4),t=cd(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}function fu(e,t,r){let n=Math.max(t-5,0);return cw(r-e(n),t-n)}function fc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=r*t,y=p+m,g=void 0===o?y:o(y);g!==y&&(m=g-p);let v=e=>-m*Math.exp(-e/n),b=e=>g+v(e),w=e=>{let t=v(e),r=b(e);h.done=Math.abs(t)<=u,h.value=h.done?g:r},x=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=fl({keyframes:[h.value,(r=h.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:fu(b,e,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),h)}}}fl.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(d7(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:i/1e3}}(e,100,fl);return e.ease=t.ease,e.duration=u8(t.duration),e.type="keyframes",e};let fd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ff(e,t,r,n){return e===t&&r===n?uW:i=>0===i||1===i?i:fd(function(e,t,r,n,i){let a,o,s=0;do(a=fd(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,e,r),t,n)}let fp=ff(.42,0,1,1),fh=ff(0,0,.58,1),fm=ff(.42,0,.58,1),fy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fg=e=>t=>1-e(1-t),fv=ff(.33,1.53,.69,.99),fb=fg(fv),fw=fy(fb),fx=e=>e>=1?1:(e*=2)<1?.5*fb(e):.5*(2-Math.pow(2,-10*(e-1))),fS=e=>1-Math.sin(Math.acos(e)),fE=fg(fS),fD=fy(fS),fO={linear:uW,easeIn:fp,easeInOut:fm,easeOut:fh,circIn:fS,circInOut:fD,circOut:fE,backIn:fb,backInOut:fw,backOut:fv,anticipate:fx},fP=e=>{if(cu(e)){uw(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return ff(t,r,n,i)}return"string"==typeof e?(uw(void 0!==fO[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fO[e]):e},fj=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};function fk({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(fP):fP(n),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;if(uw(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||uU.mix||d8,a=e.length-1;for(let r=0;r<a;r++){let a=i(e[r],e[r+1]);t&&(a=dY(Array.isArray(t)?t[r]||uW:t,a)),n.push(a)}return n}(t,n,i),l=s.length,u=r=>{if(o&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=fj(e[n],e[n+1],r);return s[n](i)};return r?t=>u(l_(e[0],e[a-1],t)):u}((i=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=fj(0,t,n);e.push(c2(r,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fm).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fC={decay:fc,inertia:fc,tween:fk,keyframes:fk,spring:fl};function fT(e){"string"==typeof e.type&&(e.type=fC[e.type])}let fA=e=>e/100;class fR extends cl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cb.now()&&this.tick(cb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fT(e);let{type:t=fk,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fk;s!==fk&&"number"!=typeof o[0]&&(this.mixKeyframes=dY(fA,d8(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=d7(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:h,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(w=o)),b=l_(0,1,r)*s}v?(this.delayState.value=c[0],r=this.delayState):r=w.next(b),a&&!v&&(r.value=a(r.value));let{done:x}=r;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&h!==fc&&(r.value=cs(c,this.options,y,this.speed)),m&&m(r.value),S&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fu(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cb.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d9,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fI={anticipate:fx,backInOut:fw,circInOut:fD};class fM extends cm{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fI&&(e.ease=fI[e.ease])}(e),fT(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fR({...a,autoplay:!1}),s=Math.max(10,cb.now()-this.startTime),l=l_(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;i&&c&&ct(i,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fN=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ue.test(e)||"0"===e)&&!e.startsWith("url("));function fL(e){e.duration=0,e.type="keyframes"}let f_=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fF=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fB=cr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fV extends cl{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cb.now();const d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||u2;this.keyframeResolver=new f(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){let i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=cb.now();let d=!0;!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],o=fN(i,t),s=fN(a,t);return ub(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||ch(r))&&n)}(e,a,o,s)&&(d=!1,(uU.instantAnimations||!l)&&c?.(cs(e,r,t)),e[0]=e[e.length-1],fL(r),r.repeat=0);let f={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fB()&&r&&(cy.has(r)||fF.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&f_.test(e[t]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(f),h=f.motionValue?.owner?.current;if(p)try{i=new fM({...f,element:h})}catch{i=new fR(f)}else i=new fR(f);i.finished.then(()=>{this.notifyFinished()}).catch(uW),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uJ=!0,u1(),u0(),uJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let f$={type:"spring",stiffness:500,damping:25,restSpeed:10},fW={type:"keyframes",duration:.8},fU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fz=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fH=(e,t,r,n={},i,a)=>o=>{let s=dz(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=u8(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!fz.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fW:lL.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:f$:fU)(e,c)),c.duration&&(c.duration=u8(c.duration)),c.repeatDelay&&(c.repeatDelay=u8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(fL(c),0===c.delay&&(d=!0)),(uU.instantAnimations||uU.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fL(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){let e=cs(c.keyframes,s);if(void 0!==e)return void uG.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fR(c):new fV(c)};function fG(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,l=e.getDefaultTransition();a=a?dU(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,s,a,r,d),s){let n=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(f,t))continue;let o={delay:r,...dz(a||{},t)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){uG.update(()=>n.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let r=e.props[dL];if(r){let e=window.MotionHandoffAnimation(r,t,uG);null!==e&&(o.startTime=e,p=!0)}}dK(e,t);let h=u??e.shouldReduceMotion;n.start(fH(t,n,i,h&&um.has(t)?{type:!1}:o,e,p));let m=n.animation;m&&d.push(m)}if(o){let t=()=>uG.update(()=>{o&&dG(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fK(e,t,r,n=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function fY(e,t,r={}){let n=dW(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(fG(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=0,a=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fY(l,t,{...o,delay:r+("function"==typeof n?0:n)+fK(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([a(),o(r.delay)]);{let[e,t]="beforeChildren"===s?[a,o]:[o,a];return e().then(()=>t())}}function fZ(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>fY(e,t,r)));else if("string"==typeof t)n=fY(e,t,r);else{let i="function"==typeof t?dW(e,t,r.custom):t;n=Promise.all(fG(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}let fq=cC.length;function fX(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let fQ=[...ck].reverse(),fJ=ck.length;function f0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f1(){return{animate:f0(!0),whileInView:f0(),whileHover:f0(),whileTap:f0(),whileDrag:f0(),whileFocus:f0(),exit:f0()}}let f2=0,f3={x:!1,y:!1};function f4(e){return[e("x"),e("y")]}function f5(e){return e.max-e.min}function f6(e,t,r,n=.5){e.origin=n,e.originPoint=c2(t.min,t.max,e.origin),e.scale=f5(r)/f5(t),e.translate=c2(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f8(e,t,r,n){f6(e.x,t.x,r.x,n?n.originX:void 0),f6(e.y,t.y,r.y,n?n.originY:void 0)}function f9(e,t,r,n=0){e.min=(n?c2(r.min,r.max,n):r.min)+t.min,e.max=e.min+f5(t)}function f7(e,t,r,n=0){let i=n?c2(r.min,r.max,n):r.min;e.min=t.min-i,e.max=e.min+f5(t)}function pe(e,t,r,n){f7(e.x,t.x,r.x,n?.x),f7(e.y,t.y,r.y,n?.y)}let pt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pr=new Set(["INPUT","SELECT","TEXTAREA"]);function pn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}let pi=e=>"object"==typeof e&&null!==e;function pa(e){return pi(e)&&"ownerSVGElement"in e}function po(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let ps=new WeakMap,pl=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:pa(n)&&"getBBox"in n?n.getBBox()[t]:n[r],pu=pl("inline","width","offsetWidth"),pc=pl("block","height","offsetHeight");function pd({target:e,borderBoxSize:t}){ps.get(e)?.forEach(r=>{r(e,{get width(){return pu(e,t)},get height(){return pc(e,t)}})})}function pf(e){e.forEach(pd)}let pp=new Set;function ph(e,t){let r;return"function"==typeof e?(pp.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pp.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{pp.delete(e),pp.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(pf)),(r=po(e)).forEach(e=>{let r=ps.get(e);r||(r=new Set,ps.set(e,r)),r.add(t),o?.observe(e)}),()=>{r.forEach(e=>{let r=ps.get(e);r?.delete(t),r?.size||o?.unobserve(e)})})}let pm=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function py(e){return{point:{x:e.pageX,y:e.pageY}}}function pg(e,t,r,n){return pn(e,t,e=>pm(e)&&r(e,py(e)),n)}let pv=({current:e})=>e?e.ownerDocument.defaultView:null,pb=(e,t)=>Math.abs(e-t),pw=new Set(["auto","scroll"]);class px{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pS(this.lastRawMoveEventInfo,this.transformPagePoint));let r=pD(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(pb(e.x,t.x)**2+pb(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=uY;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pS(t,this.transformPagePoint),uG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=pD("pointercancel"===e.type?this.lastMoveEventInfo:pS(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!pm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const s=pS(py(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uY;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pD(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dY(pg(this.contextWindow,"pointermove",this.handlePointerMove,d),pg(this.contextWindow,"pointerup",this.handlePointerUp,d),pg(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pw.has(e.overflowX)||pw.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:n.x-t.x,y:n.y-t.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,n),uG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uK(this.updatePoint)}}function pS(e,t){return t?{point:t(e.point)}:e}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pD({point:e},t){return{point:e,delta:pE(e,pO(t)),offset:pE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=pO(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>u8(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&n.timestamp-r.timestamp>2*u8(.1)&&(r=e[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function pO(e){return e[e.length-1]}function pP(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function pj(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function pk(e,t,r){return{min:pC(e,t),max:pC(e,r)}}function pC(e,t){return"number"==typeof e?e:e[t]||0}let pT=new WeakMap;class pA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=up(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{t&&this.snapToCursor(py(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f3[e])return null;else return f3[e]=!0,()=>{f3[e]=!1};return f3.x||f3.y?null:(f3.x=f3.y=!0,()=>{f3.x=f3.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),f4(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lX.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=f5(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&uG.update(()=>i(e,t),!1,!0),dK(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&uG.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new px(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:pv(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&uG.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!pI(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?c2(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?c2(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&dF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:pP(e.x,r,i),y:pP(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pk(e,"left","right"),y:pk(e,"top","bottom")}}(t),n!==this.constraints&&!dF(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&f4(e=>{var t,n;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],i={},void 0!==n.min&&(i.min=n.min-t.min),void 0!==n.max&&(i.max=n.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!dF(t))return!1;let n=t.current;uw(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,r){let n=dd(e,r),{scroll:i}=t;return i&&(ds(n.x,i.offset.x),ds(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:pj(e.x,a.x),y:pj(e.y,a.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c9(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(f4(o=>{if(!pI(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return dK(this.visualElement,e),r.start(fH(e,r,0,t,this.visualElement,!1))}stopAnimation(){f4(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){f4(t=>{let{drag:r}=this.getProps();if(!pI(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-c2(r,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!dF(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};f4(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,i;let a,o,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],a=.5,o=f5(r),(s=f5(i))>o?a=fj(i.min,i.max-o,r.min):o>s&&(a=fj(r.min,r.max-s,i.min)),l_(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),f4(t=>{if(!pI(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set(c2(i,a,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pT.set(this.visualElement,this);let t=this.visualElement.current,r=pg(t,"pointerdown",e=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=e.target,a=i!==t&&(pr.has(i.tagName)||!0===i.isContentEditable);r&&n&&!a&&this.start(e)}),n=()=>{var r,n,i;let a,o,{dragConstraints:s}=this.getProps();dF(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,n=s.current,a=ph(r,pR(i=()=>this.scalePositionWithinConstraints())),o=ph(n,pR(i)),e=()=>{a(),o()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),uG.read(n);let o=pn(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(f4(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function pR(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pI(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let pM=e=>(t,r)=>{e&&uG.update(()=>e(t,r),!1,!0)},pN={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pL(e=!0){let t=(0,m.useContext)(dj);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,a=(0,m.useId)();(0,m.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,m.useCallback)(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}let p_=!1;class pF extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),p_&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pN.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),p_=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||uG.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),cg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;p_=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pB(e){let[t,r]=pL(),n=(0,m.useContext)(dm);return(0,h.jsx)(pF,{...e,layoutGroup:n,switchLayoutGroup:(0,m.useContext)(d_),isPresent:t,safeToRemove:r})}let pV=cJ.length,p$=e=>"string"==typeof e?parseFloat(e):e,pW=e=>"number"==typeof e||lQ.test(e);function pU(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pz=pG(0,.5,fE),pH=pG(.5,.95,uW);function pG(e,t,r){return n=>n<e?0:n>t?1:r(fj(e,t,n))}function pK(e,t){e.min=t.min,e.max=t.max}function pY(e,t){pK(e.x,t.x),pK(e.y,t.y)}function pZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pq(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function pX(e,t,[r,n,i],a,o){!function(e,t=0,r=1,n=.5,i,a=e,o=e){if(lX.test(t)&&(t=parseFloat(t),t=c2(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=c2(a.min,a.max,n);e===a&&(s-=t),e.min=pq(e.min,t,r,s,i),e.max=pq(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,a,o)}let pQ=["x","scaleX","originX"],pJ=["y","scaleY","originY"];function p0(e,t,r,n){pX(e.x,t,pQ,r?r.x:void 0,n?n.x:void 0),pX(e.y,t,pJ,r?r.y:void 0,n?n.y:void 0)}function p1(e){return 0===e.translate&&1===e.scale}function p2(e){return p1(e.x)&&p1(e.y)}function p3(e,t){return e.min===t.min&&e.max===t.max}function p4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p5(e,t){return p4(e.x,t.x)&&p4(e.y,t.y)}function p6(e){return f5(e.x)/f5(e.y)}function p8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p9{constructor(){this.members=[]}add(e){u9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(u7(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(u7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=e.options;(void 0===n||n!==i)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let p7=(e,t)=>e.depth-t.depth;class he{constructor(){this.children=[],this.isDirty=!1}add(e){u9(this.children,e),this.isDirty=!0}remove(e){u7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(p7),this.isDirty=!1,this.children.forEach(e)}}let ht=["","X","Y","Z"],hr=0;function hn(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function hi({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=hr++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hs),this.nodes.forEach(hy),this.nodes.forEach(hg),this.nodes.forEach(hl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new he)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=pa(t)&&!(pa(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;uG.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,a;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=cb.now(),a=({timestamp:e})=>{let r=e-t;r>=250&&(uK(a),i(r-250))},uG.setup(a,!0),r=()=>uK(a),pN.hasAnimatedSinceResize&&(pN.hasAnimatedSinceResize=!1,this.nodes.forEach(hm))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||hE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!p5(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dz(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||hm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uK(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(hv),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[dL];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",uG,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(hd),this.nodes.forEach(hc);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(hf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hp),this.nodes.forEach(hh),this.nodes.forEach(ha),this.nodes.forEach(ho)):this.nodes.forEach(hf),this.clearAllSnapshots();let e=cb.now();uY.delta=l_(0,1e3/60,e-uY.timestamp),uY.timestamp=e,uY.isProcessing=!0,uZ.update.process(uY),uZ.preRender.process(uY),uZ.render.process(uY),uY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hu),this.sharedNodes.forEach(hb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f5(this.snapshot.measuredBox.x)||f5(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=up()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!p2(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||dt(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),hP((t=n).x),hP(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return up();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hk))){let{scroll:e}=this.root;e&&(ds(t.x,e.offset.x),ds(t.y,e.offset.y))}return t}removeElementScroll(e){let t=up();if(pY(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&pY(t,e),ds(t.x,i.offset.x),ds(t.y,i.offset.y))}return t}applyTransform(e,t=!1,r){let n=r||up();pY(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ds(n.x,-r.scroll.offset.x),ds(n.y,-r.scroll.offset.y)),dt(r.latestValues)&&dc(n,r.latestValues,r.layout?.layoutBox)}return dt(this.latestValues)&&dc(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=up();pY(t,e);for(let e=0;e<this.path.length;e++){let r,n=this.path[e];dt(n.latestValues)&&(n.instance&&(de(n.latestValues)&&n.updateSnapshot(),pY(r=up(),n.measurePageBox())),p0(t,n.latestValues,n.snapshot?.layoutBox,r))}return dt(this.latestValues)&&p0(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==uY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=uY.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=up(),this.targetWithTransforms=up()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f9(o.x,s.x,l.x,u?.x),f9(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pY(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):pY(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||de(this.parent.latestValues)||dr(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=up(),this.relativeTargetOrigin=up(),pe(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),pY(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===uY.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;pY(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,n=!1){let i,a,o=r.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ds(e.x,-i.scroll.offset.x),ds(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,da(e,a)),n&&dt(i.latestValues)&&dc(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=up());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pZ(this.prevProjectionDelta.x,this.projectionDelta.x),pZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&p8(this.projectionDelta.x,this.prevProjectionDelta.x)&&p8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ud(),this.projectionDelta=ud(),this.projectionDeltaWithTransform=ud()}setAnimationOrigin(e,t=!1,r){let n,i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=ud();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=up(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(hS));this.animationProgress=0;let p=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,i=p?.(r);if(i?(s.x.translate=i.x,s.x.scale=c2(e.x.scale,1,r),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=c2(e.y.scale,1,r),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(hw(s.x,e.x,r),hw(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,y,g,v;pe(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=r,hx(m.x,y.x,g.x,v),hx(m.y,y.y,g.y,v),n&&(c=this.relativeTarget,h=n,p3(c.x,h.x)&&p3(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=up()),pY(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,n,i,a){i?(e.opacity=c2(0,r.opacity??1,pz(n)),e.opacityExit=c2(t.opacity??1,0,pH(n))):a&&(e.opacity=c2(t.opacity??1,r.opacity??1,n));for(let i=0;i<pV;i++){let a=cJ[i],o=pU(t,a),s=pU(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pW(o)===pW(s)?(e[a]=Math.max(c2(p$(o),p$(s),n),0),(lX.test(s)||lX.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=c2(t.rotate||0,r.rotate||0,n))}(o,a,this.latestValues,r,f,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uK(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uG.update(()=>{var t,r,n;let i;pN.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cE(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=uh(t)?t:cE(t)).start(fH("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&hj(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||up();let t=f5(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=f5(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}pY(t,r),dc(t,i),f8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p9),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&hn("z",e,n,this.animationValues);for(let t=0;t<ht.length;t++)hn(`rotate${ht[t]}`,e,n,this.animationValues),hn(`skew${ht[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dP(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dP(t?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotate(${i}deg) `),a&&(n+=`rotateX(${a}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,c3){if(void 0===i[t])continue;let{correct:r,applyTo:o,isCSSVariable:s}=c3[t],l="none"===a?i[t]:r(i[t],n);if(o){let t=o.length;for(let r=0;r<t;r++)e[o[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?dP(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hc),this.root.sharedNodes.clear()}}}function ha(e){e.updateLayout()}function ho(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)f4(e=>{let n=a?t.measuredBox[e]:t.layoutBox[e],i=f5(n);n.min=r[e].min,n.max=n.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";pK(a?t.measuredBox[e]:t.layoutBox[e],r[e])}else hj(i,t.layoutBox,r)&&f4(n=>{let i=a?t.measuredBox[n]:t.layoutBox[n],o=f5(r[n]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ud();f8(o,r,t.layoutBox);let s=ud();a?f8(s,e.applyTransform(n,!0),t.measuredBox):f8(s,r,t.layoutBox);let l=!p2(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let o=e.options.layoutAnchor||void 0,s=up();pe(s,t.layoutBox,i.layoutBox,o);let l=up();pe(l,r,a.layoutBox,o),p5(s,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hs(e){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 hl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hu(e){e.clearSnapshot()}function hc(e){e.clearMeasurements()}function hd(e){e.isLayoutDirty=!0,e.updateLayout()}function hf(e){e.isLayoutDirty=!1}function hp(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hy(e){e.resolveTargetDelta()}function hg(e){e.calcProjection()}function hv(e){e.resetSkewAndRotation()}function hb(e){e.removeLeadSnapshot()}function hw(e,t,r){e.translate=c2(t.translate,0,r),e.scale=c2(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hx(e,t,r,n){e.min=c2(t.min,r.min,n),e.max=c2(t.max,r.max,n)}function hS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let hE={duration:.45,ease:[.4,0,.1,1]},hD=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hO=hD("applewebkit/")&&!hD("chrome/")?Math.round:uW;function hP(e){e.min=hO(e.min),e.max=hO(e.max)}function hj(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p6(t)-p6(r)))}function hk(e){return e!==e.root&&e.scroll?.wasRoot}let hC=hi({attachResizeListener:(e,t)=>pn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hT={current:void 0},hA=hi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hT.current){let e=new hC({});e.mount(window),e.setOptions({layoutScroll:!0}),hT.current=e}return hT.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function hR(e,t){let r=po(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function hI(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&uG.postRender(()=>i(t,py(t)))}function hM(e){return pi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let hN=(e,t)=>!!t&&(e===t||hN(e,t.parentElement)),hL=new WeakSet;function h_(e){return t=>{"Enter"===t.key&&e(t)}}function hF(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function hB(e){return pm(e)&&!(f3.x||f3.y)}let hV=new WeakSet;function h$(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&uG.postRender(()=>i(t,py(t)))}let hW=new WeakMap,hU=new WeakMap,hz=e=>{let t=hW.get(e.target);t&&t(e)},hH=e=>{e.forEach(hz)},hG={some:0,all:1},hK=function(e,t){if("u"<typeof Proxy)return dV;let r=new Map,n=(r,n)=>dV(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,dV(a,void 0,e,t)),r.get(a))})}({animation:{Feature:class extends d${constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>fZ(e,t,r))),r=f1(),n=!0,i=!1,a=t=>(r,n)=>{let i=dW(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<fq;e++){let n=cC[e],i=t.props[n];(cj(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<fJ;t++){var p,h;let m=fQ[t],y=r[m],g=void 0!==s[m]?s[m]:l[m],v=cj(g),b=m===o?y.isActive:null;!1===b&&(f=t);let w=g===l[m]&&g!==s[m]&&v;if(w&&(n||i)&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||cP(g)||"boolean"==typeof g)continue;if("exit"===m&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let x=(p=y.prevProp,"string"==typeof(h=g)?h!==p:!!Array.isArray(h)&&!fX(h,p)),S=x||m===o&&y.isActive&&!w&&v||t>f&&v,E=!1,D=Array.isArray(g)?g:[g],O=D.reduce(a(m),{});!1===b&&(O={});let{prevResolvedValues:P={}}=y,j={...P,...O},k=t=>{S=!0,c.has(t)&&(E=!0,c.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in j){let t=O[e],r=P[e];if(!d.hasOwnProperty(e))(dH(t)&&dH(r)?!fX(t,r)||x:t!==r)?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):y.protectedKeys[e]=!0}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(d={...d,...O}),(n||i)&&e.blockInitialAnimation&&(S=!1);let C=w&&x,T=!C||E;S&&T&&u.push(...D.map(t=>{let r={type:m};if("string"==typeof t&&(n||i)&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=dW(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=fK(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let r=dW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),u.push({animation:t})}let m=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=o(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=f1(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();cP(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends d${constructor(){super(...arguments),this.id=f2++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=dW(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...n}=r;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends d${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:hG[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;hU.has(r)||hU.set(r,{});let n=hU.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hH,{root:e,...t})),n[i]}(s),hW.set(e,l),t.observe(e),()=>{hW.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends d${mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[n,i,a]=hR(e,r),o=e=>{let n=e.currentTarget;if(!hB(e)||hV.has(e))return;hL.add(n),r.stopPropagation&&hV.add(e);let a=t(n,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),hL.has(n)&&hL.delete(n),hB(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{s(e,n===window||n===document||r.useGlobalTarget||hN(n,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),hM(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=h_(()=>{if(hL.has(r))return;hF(r,"down");let e=h_(()=>{hF(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>hF(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),pt.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(h$(this.node,t,"Start"),(e,{success:t})=>h$(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}},focus:{Feature:class extends d${constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=dY(pn(this.node.current,"focus",()=>this.onFocus()),pn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends d${mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=hR(e,r);return n.forEach(e=>{let r,n=!1,a=!1,o=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){a=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||f3.x||f3.y)return;a=!1;let o=t(e,n);"function"==typeof o&&(r=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}(e,(e,t)=>(hI(this.node,t,"Start"),e=>hI(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends d${constructor(){super(...arguments),this.removePointerDownListener=uW}onPointerDown(e){this.session=new px(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:pM(e),onStart:pM(t),onMove:pM(r),onEnd:(e,t)=>{delete this.session,n&&uG.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=pg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends d${constructor(e){super(e),this.removeGroupControls=uW,this.removeListeners=uW,this.controls=new pA(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uW}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:hA,MeasureLayout:pB},layout:{ProjectionNode:hA,MeasureLayout:pB}},(e,t)=>t.isSVG??dh(e)?new c8(t):new df(t,{allowProjection:e!==m.Fragment}));var hY={initial:{},animate:{transition:{staggerChildren:.05}}},hZ={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},hq=function(e){var t=e.label,r=e.active,n=e.required;return(0,h.jsxs)(hK.span,{className:lT.kineticLabel,variants:hY,initial:"initial",animate:r?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,h.jsx)(hK.span,{className:lT.kineticLetter,variants:hZ,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),n&&(0,h.jsx)("span",{className:lT.requiredMark,children:" *"})]})};function hX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hJ={error:[100,50,100],warning:[50,30,50],success:[30]},h0={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function h1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h4=function(e){var t,r,n,i,a,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,y=e.type,g=e.value,b=void 0===g?"":g,w=e.onChange,x=e.className,S=e.disabled,E=void 0!==S&&S,D=e.required,O=void 0!==D&&D,P=e.autoComplete,j=e.autoFocus,k=e.id,C=e.name,T=e.fieldIcon,A=e.validation,R=void 0===A?h0:A,I=e.onFocus,M=e.onBlur,N=e.onValidationChange,L=(0,m.useId)(),_=null!=k?k:"egen-field-".concat(L),F="".concat(_,"-help"),B=h3((0,m.useState)(b),2),V=B[0],$=B[1],W=h3((0,m.useState)(!1),2),U=W[0],z=W[1],H=(0,m.useRef)(null),G=(r=(t=hQ((0,m.useState)(null),2))[0],n=t[1],a=(i=hQ((0,m.useState)(!1),2))[0],o=i[1],s=function(e){R.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(hJ[e]),setTimeout(function(){return o(!1)},600))},(0,m.useEffect)(function(){if(!R.realTimeValidation||!V||0===R.rules.length){n(null),null==N||N(null);return}var e=R.rules.find(function(e){return!e.regex.test(V)});if(e){(null==r?void 0:r.type)!==e.type&&s(e.type),n(e),null==N||N(e);return}var t=R.rules.find(function(e){return"success"===e.type&&e.regex.test(V)});if(t){(null==r?void 0:r.type)!=="success"&&s("success"),n(t),null==N||N(t);return}n(null),null==N||N(null)},[V,R.rules,R.realTimeValidation,null==r?void 0:r.type,N]),{currentValidation:r,isAnimating:a}),K=G.currentValidation,Y=G.isAnimating;(0,m.useEffect)(function(){b!==V&&$(b)},[b]);var Z=(null==T?void 0:T.position)==="left",q=(null==T?void 0:T.position)==="label",X=!!R.showIcons&&!!K,Q=v()(lT.field,lT["field--".concat(c)],lT["field--".concat(void 0===d?"md":d)],(h2(l={},lT["field--disabled"],E),h2(l,lT["field--animating"],Y),h2(l,lT["field--has-left-icon"],Z),h2(l,lT["field--has-validation-icon"],X),l),K&&lT["field--".concat(K.type)],x);return(0,h.jsxs)("div",{className:Q,children:[(0,h.jsxs)("div",{className:lT.fieldControl,ref:H,children:[Z&&(0,h.jsx)("div",{className:lT.leftIcon,children:(0,h.jsx)(lA,{fieldIcon:T})}),(0,h.jsx)("input",{type:void 0===y?"text":y,id:_,name:C,value:V,onChange:function(e){var t=e.target.value;$(t),null==w||w(t)},onFocus:function(e){z(!0),null==I||I(e)},onBlur:function(e){z(!1),null==M||M(e)},disabled:E,required:O,autoComplete:P,autoFocus:j,className:lT.input,placeholder:void 0===p?" ":p,"aria-describedby":R.showMessages&&K?F:void 0,"aria-invalid":(null==K?void 0:K.type)==="error"||void 0}),f&&"kinetic"===c&&(0,h.jsx)("label",{htmlFor:_,className:lT.kineticLabelWrapper,children:(0,h.jsx)(hq,{label:f,active:U||V.length>0,required:O})}),f&&"kinetic"!==c&&(0,h.jsxs)("label",{htmlFor:_,className:lT.label,children:[q&&(0,h.jsx)(lA,{fieldIcon:T,className:lT.labelIconGlyph}),(0,h.jsxs)("span",{className:lT.labelText,children:[f,O&&(0,h.jsxs)("span",{className:lT.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,h.jsx)(lM,{currentValidation:K,showIcons:!!R.showIcons})]}),R.showMessages&&K&&(0,h.jsxs)("p",{id:F,className:lT.message,role:"error"===K.type?"alert":void 0,children:[(0,h.jsxs)("span",{className:lT.messageLead,children:["success"===K.type&&"Parfait !","error"===K.type&&"Erreur —","warning"===K.type&&"Attention —"]})," ",K.message]})]})};function h5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var h6=y().forwardRef(function(e,t){var r,n,i,a=(0,b.useLeftNavStore)(),o=a.slotName,s=a.basePath,l=a.componentContext,u=a.state,c=null!=(i=window.location)?i:{pathname:""},d=(0,b.useAssignedExtensions)(null!=o?o:"");return e.isChildOfHeader&&o&&d.length>0?(0,h.jsxs)(L.SideNav,(r=h5({"aria-label":(0,_.V)("leftNavigation","Left navigation"),className:"jzTJKtCPCooU36+y+NwbPQ==",expanded:!0,isFixedNav:!0,ref:t},e),n=n={children:[(0,h.jsx)(b.ExtensionSlot,{name:"global-nav-menu-slot"}),o?(0,h.jsx)(b.RenderIfValueIsTruthy,{value:l,fallback:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)}),children:(0,h.jsx)(b.ComponentContext.Provider,{value:l,children:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)})})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)):null}),h8=r(6269),h9=r(3709),h7=r(7530);function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mt(e,t){if(e){if("string"==typeof e)return me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(e,t)}}var mr=function(e){var t,r,n,i,a,o,s=e.selectedLocationUuid,l=e.defaultLocationUuid,u=e.locationTag,c=e.locationsPerRequest,d=void 0===c?50:c,f=e.onChange,p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mt(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],v=(0,m.useId)(),w=(r=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,i=(n=(0,h8.A)(r,h7.egenFetch,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,a=n.error,o=n.isLoading,(0,m.useMemo)(function(){var e;return{location:(null==i||null==(e=i.data)?void 0:e.entry)?i.data.entry[0]:null,error:r?a:null,isLoading:!!r&&o}},[i,o,a,r])).location,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(0,b.useDebounce)(r),i=(0,h9.Ay)(function(r,i){if(i){var a,o,s=null==(o=i.data)||null==(a=o.link)?void 0:a.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var u="".concat(h7.fhirBaseUrl,"/Location?"),c=new URLSearchParams;return c.append("_summary","data"),t&&c.append("_count",""+t),r&&c.append("_getpagesoffset",""+r*t),e&&c.append("_tag",e),"string"==typeof n&&""!==n&&c.append("name:contains",n),u+c.toString()},h7.egenFetch),a=i.data,o=i.isLoading,s=i.isValidating,l=i.setSize,u=i.error;return(0,m.useMemo)(function(){var e,t,r,n,i;return{locations:(null==a?void 0:a.length)?null==a?void 0:a.flatMap(function(e){var t,r;return null!=(t=null==e||null==(r=e.data)?void 0:r.entry)?t:[]}):[],isLoading:o,totalResults:null==a||null==(t=a[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=a&&!!a.length&&(null==a||null==(i=a[a.length-1])||null==(n=i.data)||null==(r=n.link)?void 0:r.some(function(e){return"next"===e.relation})),loadingNewData:s,error:u||null,setPage:l}},[o,a,s,l,u])}(u,d,y),S=x.locations,E=x.isLoading,D=x.hasMore,O=x.loadingNewData,P=x.error,j=x.setPage,k=(0,m.useMemo)(function(){if(w&&!y&&l){var e;return[w].concat(function(e){if(Array.isArray(e))return me(e)}(e=S.filter(function(e){return e.resource.id!==l}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mt(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return null!=S?S:[]},[w,S,l,y]),C=(0,m.useCallback)(function(e){f(),g(e.trim())},[f]),T=(0,m.useCallback)(function(){!O&&D&&j(function(e){return e+1})},[O,D,j]),A=(0,b.useOnVisible)(T),R=D?Math.max(0,Math.floor(k.length-d/2)):-1;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(L.Search,{"aria-describedby":P?"".concat(v,"-error"):void 0,labelText:(0,_.V)("searchForLocation"),id:v,placeholder:(0,_.V)("searchForLocation"),onChange:function(e){return C(e.target.value)},size:"lg"}),P&&(0,h.jsx)("div",{className:"vWBFDqCDM8BcQhePvfa35g==",id:"".concat(v,"-error"),children:(0,h.jsx)(L.InlineNotification,{kind:"error",subtitle:(0,_.V)("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:(0,_.V)("error","Error")})}),(0,h.jsx)("div",{className:"Gbet+W1fVEk45aZli6JbrA==",children:E?(0,h.jsx)("div",{className:"QO-zjOxMSWAzXY-PMrSiwQ==",children:Array.from({length:5}).map(function(e,t){return(0,h.jsx)(L.RadioButtonSkeleton,{className:"otoCykP+JQHrsIsgKUOd7A==",role:"progressbar"},t)})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"_6PasfpnQ738RjzgXBzAQpw==",children:k.length>0?(0,h.jsx)(L.RadioButtonGroup,{name:"loginLocations",onChange:function(e){f(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s,children:k.map(function(e,t){return(0,h.jsx)(L.RadioButton,{className:"rTDPjXuaGJbz9KhOf57M3g==",id:e.resource.id,labelText:(0,h.jsx)("span",{ref:t===R?A:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id)})}):(0,h.jsx)("div",{className:"w4-CatRLHH3loLqlunOalg==",children:(0,h.jsx)("p",{className:"Of2MJqhAMKF7nrwI5bKckw==",children:(0,_.V)("noResultsToDisplay")})})}),O&&(0,h.jsx)("div",{className:"NAwSBETYamP9uMuJE63U-w==",children:(0,h.jsx)(L.InlineLoading,{description:(0,_.V)("loading")})})]})})]})},mn=r(8400),mi=r(7988),ma=r(7477),mo=r(8507);function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ml(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function mu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function mc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function md(e,t){if(e){if("string"==typeof e)return ms(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ms(e,t)}}var mf=(0,mi.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),mp=0,mh=window.getComputedStyle(document.body).overflow;function mm(e){var t=e.modalStack,r=e.modalContainer;r&&(t.length?(r.style.visibility||(addEventListener("keydown",mg),document.body.style.overflow="hidden",r.style.visibility="unset"),t.forEach(function(e,n){switch(e.state){case"NEW":var i,a,o,s,l,u,c,d=(i=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(a=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(i),a.setAttribute("role","dialog"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-modal","true"),a);e.container=d,(function(e,t){var r;return(r=function(e,t){var r,n,i,a,o,s=arguments;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},n=(0,ma.Fg)(t),i=null,!e)return[3,2];if(!n)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,n.load)()];case 1:return a=l.sent(),o=mp++,i=(0,mn.mountRootParcel)(mc(mu({},a),{name:"".concat(t,"-").concat(o)}),mc(mu({},r),{domElement:e})),[3,3];case 2:(0,mo.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,i]}})},function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(e){ml(a,n,i,o,s,"next",e)}function s(e){ml(a,n,i,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",r.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=n?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){mf.setState({modalContainer:r,modalStack:t.filter(function(t){return t!==e})})},0)}})):(r.style.removeProperty("visibility"),document.body.style.overflow=mh,removeEventListener("keydown",mg)))}function my(e){var t=mf.getState(),r=t.modalStack.map(function(t){return t===e?mc(mu({},t),{state:"TO_BE_DELETED"}):t});mf.setState(mc(mu({},t),{modalStack:r}))}function mg(e){var t,r;"Escape"===e.key&&(r=(function(e){if(Array.isArray(e))return e}(t=mf.getState().modalStack)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||md(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&my(r)}function mv(e){mf.subscribe(mm),mf.setState(mc(mu({},mf.getState()),{modalContainer:e}))}function mb(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=mf.getState().modalStack.find(function(e){return e.onClose===a});e&&my(e)};return(0,ma.Fg)(e)?(n=[{state:"NEW",onClose:a,modalName:e,props:mu({close:o},i)}].concat(function(e){if(Array.isArray(e))return ms(e)}(r=(t=mf.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||md(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),mf.setState(mc(mu({},t),{modalStack:n}))):(0,mo.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var mw=r(249),mx=function(e){var t=e.notification,r=t.description,n=t.action,i=t.kind,a=t.critical,o=t.title,s=t.onAction;return(0,h.jsx)(L.ActionableNotification,{actionButtonLabel:n,kind:i||"info",lowContrast:a,subtitle:r,title:o||"",inline:!0,onActionButtonClick:s})};function mS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mE(e,t){if(e){if("string"==typeof e)return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}let mD=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mE(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mS(e)})(r=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mE(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mx,{notification:e},e.id)})})};function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var mP=function(e){var t,r=e.notification,n=r.actionButtonLabel,i=r.onActionButtonClick,a=void 0===i?function(){}:i,o=r.subtitle,s=r.kind,l=r.title,u=r.critical,c=r.progressActionLabel,d=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(n))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return mO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1];return(0,h.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,_.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){a(),c&&y(c)},statusIconDescription:(0,_.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function mj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mk(e,t){if(e){if("string"==typeof e)return mj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mj(e,t)}}let mC=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mk(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mj(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mk(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mP,{notification:e},e.id)})})};var mT=r(5217),mA=r(72),mR=r(2797),mI=r(8206),mM=r(3497),mN=r(8134),mL=r(4666),m_=r(7931),mF=Object.prototype.hasOwnProperty;let mB=function(e){if(null==e)return!0;if((0,mM.A)(e)&&((0,mI.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,mN.A)(e)||(0,m_.A)(e)||(0,mR.A)(e)))return!e.length;var t=(0,mA.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,mL.A)(e))return!(0,mT.A)(e).length;for(var r in e)if(mF.call(e,r))return!1;return!0};var mV=r(8279);function m$(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function mW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function mU(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function mz(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mH=new mw.Subject,mG=0,mK=new mw.Subject,mY=0;function mZ(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mD,{subject:mH}))}function mq(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&(m$(t,Error)||!mB(t)))?(m$(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){mH.next(mU(mW({},e),{id:mG++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function mX(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mC,{subject:mK}))}function mQ(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&!mB(t))?setTimeout(function(){mK.next(mU(mW({},e),{id:mY++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var mJ=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],m0=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"];let m1={container:"ScB70LqU+PKTglPLpquSYA==",card:"OaumoczyyhVxFGgK1Ymncw==","abnormal-value":"nIEaa1DoEVNwq6VRhytuqA==","critical-value":"piSS0orYMnJr8srfIKo2zw==",cell:"WVzs6v9nyUbN4BP3kiRvOg==","critically-high":"nWzimGykDKiWWpAA510ywA==","critically-low":"wz1U5oBN8Au6+HaU5WTJJA==",high:"_5XGrk2jf9LNICUS0mhpcuQ==",low:"bZP-khvj3DMGEuy6EwE+rA==","label-container":"m8YotuX9YyGBVTfwscLQxw==","value-container":"Qfl6BA8qVqs0ch1lkoGorA==",label:"GeE-oU8VbIwmewu0CLedqg==",value:"_1l76wCdnl85Ih71jhnW-4w==",units:"W7zPgHBl62LXyz9iCBMD1Q==","pad-right":"QTCXOa6vj1UmNa4ukP+r9g==","off-scale-low":"vCAWY7zmOXKiCw0oMh2oIQ==","off-scale-high":"_7x8iew49LjFwIFhlYEBJgQ==",arrow:"_53IVZxbBIwcFSLi67OJAqg=="};function m2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m3=function(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,y,g,b,w,x,S=e.value,E=e.unit,D=e.label,O=e.interpretation,P=e.referenceRange,j=e.conceptUuid,k=e.variant,C=e.entityUuid,T=(0,m.useId)(),A=(c=null,(t=P||O?void 0:j)&&(c=C?"".concat(h7.restBaseUrl,"/conceptreferencerange/?entity=").concat(C,"&concept=").concat(t,"&v=full"):"".concat(h7.restBaseUrl,"/conceptreferencerange/?concept=").concat(t,"&v=full")),f=(d=(0,h8.A)(c,h7.egenFetch)).data,p=d.error,y=d.isLoading,{referenceRange:(g=null==f||null==(u=f.data)||null==(l=u.results)?void 0:l[0])?{hiNormal:null!=(r=g.hiNormal)?r:null,hiAbsolute:null!=(n=g.hiAbsolute)?n:null,hiCritical:null!=(i=g.hiCritical)?i:null,lowNormal:null!=(a=g.lowNormal)?a:null,lowAbsolute:null!=(o=g.lowAbsolute)?o:null,lowCritical:null!=(s=g.lowCritical)?s:null}:void 0,error:p,isLoading:y}),R=A.referenceRange,I=A.isLoading,M=null!=P?P:R,N=(0,m.useMemo)(function(){if(O)return O?"--"===O?"normal":mJ.includes(O)?O.toLowerCase():m0.includes(O)?O:"normal":void 0;if(M&&!I){if(!M||null==S||""===S)return"normal";var e="string"==typeof S?Number.parseFloat(S):S;return Number.isNaN(e)?"normal":null!==M.hiAbsolute&&void 0!==M.hiAbsolute&&e>M.hiAbsolute?"off_scale_high":null!==M.hiCritical&&void 0!==M.hiCritical&&e>=M.hiCritical?"critically_high":null!==M.hiNormal&&void 0!==M.hiNormal&&e>M.hiNormal?"high":null!==M.lowAbsolute&&void 0!==M.lowAbsolute&&e<M.lowAbsolute?"off_scale_low":null!==M.lowCritical&&void 0!==M.lowCritical&&e<=M.lowCritical?"critically_low":null!==M.lowNormal&&void 0!==M.lowNormal&&e<M.lowNormal?"low":"normal"}return"normal"},[O,M,S,I]),L=null!=N?N:"normal",F="critically_low"===L||"critically_high"===L||"off_scale_low"===L||"off_scale_high"===L,B="normal"!==L,V=D?"egen-numeric-dp-label-".concat(D.replaceAll(/\s+/g,"-").toLowerCase(),"-").concat(T):void 0,$="egen-numeric-dp-value-".concat(T),W="egen-numeric-dp-unit-".concat(T),U=null!=S&&""!==S,z=U?S:(0,_.V)("notAvailable","Not available"),H=v()((m2(b={},m1["critically-low"],"critically_low"===L||"off_scale_low"===L),m2(b,m1["critically-high"],"critically_high"===L||"off_scale_high"===L),m2(b,m1.low,"low"===L),m2(b,m1.high,"high"===L),m2(b,m1["off-scale-low"],"off_scale_low"===L),m2(b,m1["off-scale-high"],"off_scale_high"===L),b)),G=v()((m2(w={},m1.container,!0),m2(w,m1.card,!0),m2(w,m1["critical-value"],F),m2(w,m1["abnormal-value"],B&&!F),w)),K=v()((m2(x={},m1.cell,!0),m2(x,H,!0),x));return"cell"===(void 0===k?"card":k)?(0,h.jsxs)("div",{className:K,children:[z,U&&E?" ".concat(E):""]}):(0,h.jsxs)("section",{className:G,"data-testid":"numeric-datapoint-card",children:[D&&(0,h.jsxs)("div",{className:m1["label-container"],children:[(0,h.jsx)("span",{id:V,className:m1.label,children:D}),B&&(0,h.jsx)("span",{className:m1[L.replace("_","-")],title:(0,_.V)("abnormalValue","Abnormal value")})]}),(0,h.jsxs)("div",{className:m1["value-container"],children:[(0,h.jsx)("span",{id:$,"aria-labelledby":V&&W?"".concat(V," ").concat(W):V||W||void 0,className:m1.value,children:z}),U&&E&&(0,h.jsx)("span",{id:W,className:m1.units,children:E})]})]})},m4=r(5918);let m5="YOpQLiaTysM+swWB7ATzKw==";function m6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m9(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function m7(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}var ye=function(e){if("children"in e){var t=e.children,r=e.className,n=m7(e,["children","className"]);return(0,h.jsx)("div",m9(m8({className:v()(m5,r)},n),{children:t}))}var i=e.title,a=e.illustration,o=e.className,s=m7(e,["title","illustration","className"]);return(0,h.jsx)("div",m9(m8({className:v()(m5,o)},s),{children:(0,h.jsx)(yt,{title:i,illustration:a})}))},yt=function(e){var t,r=e.title,n=e.illustration,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return m6(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m6(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1];return(0,m.useEffect)(function(){(0,m4.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,h.jsxs)("div",{className:v()("PjsJmcqHjhav+51GzX5n1A==",i),children:[n,(0,h.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,h.jsx)("p",{children:(0,_.V)(o.implementationName)}),(0,h.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:r})]})]})};function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yn=function(e){var t,r=e.totalItems,n=e.pageSize,i=e.onPageNumberChange,a=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,b.usePaginationInfo)(n,r,a,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,b.useLayoutType)(),p=(0,_.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:r,pageItemsCount:d});return(0,h.jsx)(h.Fragment,{children:r>0&&(0,h.jsxs)("div",{className:v()((yr(t={},"lQ3akicW2mAhjncqby7nDA==",f),yr(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,h.jsxs)("div",{children:[p,o&&(0,h.jsx)(b.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,_.V)("seeAll","See all")})]}),(0,h.jsx)(L.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:a,pageSize:n,pageSizes:c,totalItems:r,onChange:i,pageRangeText:function(e,t){return(0,_.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})},yi=r(6625);function ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ys(e){var t,r=e.entity,n=e.entityUuid,i=e.actionsSlotName,a=e.additionalActionsSlotState,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return ya(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ya(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,b.useExtensionSlot)(i).extensions,c="tablet"===(0,b.useLayoutType)(),d=(0,b.useOnClickOutside)(function(){return l(!1)},s),f=(0,m.useRef)(null),p=(0,m.useRef)(null),y=(0,m.useId)(),g="entity-actions-menu-trigger-".concat(y),w="entity-actions-menu-".concat(y),x=(0,m.useCallback)(function(){return l(function(e){return!e})},[]),S=(0,m.useCallback)(function(){var e;l(!1),null==(e=f.current)||e.focus()},[]),E=(0,m.useCallback)(function(e){if("Escape"===e.key&&s){e.stopPropagation(),S();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&s){e.preventDefault();var t,r,n,i,a,o,l=null==(r=p.current)?void 0:r.querySelectorAll('[role="menuitem"]:not([disabled])');if(!(null==l?void 0:l.length))return;var u=null!=(t=null==(i=document.activeElement)||null==(n=i.closest)?void 0:n.call(i,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l["ArrowDown"===e.key?0:l.length-1])||o.focus();return}var d=c+("ArrowDown"===e.key?1:-1),f=d<0?l.length-1:d>=l.length?0:d;null==(a=l[f])||a.focus()}},[S,s]);(0,m.useEffect)(function(){if(s&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[s]);var D=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){yo(e,t,r[t])})}return e}({entityUuid:n,entity:r,closeMenu:S},a)},[n,r,S,a]);return 0===u.length?null:(0,h.jsx)("div",{className:"kWz-FQXziTlflmlOvSQU8w==",children:(0,h.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",V),ref:d,children:[(0,h.jsxs)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},U),"aria-controls":w,"aria-expanded":s,"aria-haspopup":"true",id:g,onClick:x,onKeyDown:E,ref:f,children:[(0,h.jsx)("span",{className:"FNvGkLUDxlNyu5MsobGSiQ==",children:(0,_.V)("actions","Actions")})," ",(0,h.jsx)(yi.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,h.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",$,yo({},W,s)),"aria-labelledby":g,"data-floating-menu-direction":"bottom",id:w,onKeyDown:E,ref:p,role:"menu",tabIndex:-1,children:[(0,h.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c}),children:(0,h.jsx)(b.ExtensionSlot,{name:i,state:D},i)}),(0,h.jsx)("span",{})]})]})})}var yl=r(7488);let yu={contactDetails:"_0WAlP7BAsAgqReeW05Syxg==",deceased:"PaF2EK-ANVeIH6lZnkVXJg==",heading:"_2zRwLuDr67mWUDIQRycpHg==",row:"_1ShtU0d+XSLtWZB5Xtenlg==",col:"EwddJOyljhsm1Mho19p57w==",relationship:"VUQRxyGyP2uVTKGVha-XXg=="};function yc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||yf(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yf(e,t){if(e){if("string"==typeof e)return yc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yc(e,t)}}var yp=function(e){var t,r,n,i,a,o,s,l=(r=e.entityUuid,o=(a=(0,h8.A)(r?"".concat(h7.restBaseUrl,"/cohort?v=custom:(uuid,name,startDate)&member=").concat(r):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{groups:null!=(n=null==o||null==(i=o.data)?void 0:i.results)?n:[],isLoading:s}),u=l.groups,c=void 0===u?[]:u,d=l.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{className:yu.heading,children:[(0,_.V)("entityGroups","Entity Groups")," (",null!=(t=null==c?void 0:c.length)?t:0,")"]}),d?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)("ul",{children:[function(){if((null==c?void 0:c.length)>0){var e=c.sort(function(e,t){return(0,sA._U)(null==e?void 0:e.startDate).getTime()-(0,sA._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return(0,h.jsx)("li",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups/").concat(e.uuid),children:e.name},e.uuid)},e.uuid)})}return(0,h.jsx)("li",{children:"--"})}(),c.length>3&&(0,h.jsx)("li",{className:yu.link,children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups"),children:(0,_.V)("seeMoreGroups","See {{count}} more groups",{count:(null==c?void 0:c.length)-3})})})]})]})},yh=function(e){var t,r=e.entityId,n=(0,b.useEntity)(r),i=n.entity,a=n.isLoading,o=null==i||null==(t=i.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return a?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("address","Address")}),(0,h.jsx)("ul",{children:o?Object.entries(o).filter(function(e){var t=yd(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,r,n,i=yd(e,2),a=i[0],l=i[1];return"extension"===a?null==(n=o.extension)||null==(r=n[0])||null==(t=r.extension)?void 0:t.map(function(e,t){return(0,h.jsxs)("li",{children:[(0,_.V)(s(e.url),s(e.url)),": ",e.valueString]},"address-".concat(a,"-").concat(t))}):(0,h.jsxs)("li",{children:[(0,_.V)(a,a),": ",l]},"address-".concat(a))}):(0,h.jsx)("li",{children:"--"})})]})},ym=function(e){var t,r,n,i,a,o,s,l=(t=e.entityUuid,i=(0,b.useConfig)().contactAttributeTypes,o=(a=(0,h8.A)(t?"".concat(h7.restBaseUrl,"/entity/").concat(t,"?v=custom:(attributes:(attributeType:(display,uuid),value))"):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{contactAttributes:null==o||null==(n=o.data)||null==(r=n.attributes)?void 0:r.filter(function(e){var t;return null==i||null==(t=i.uuids)?void 0:t.includes(e.attributeType.uuid)}),isLoading:s}),u=l.isLoading,c=l.contactAttributes,d=(0,m.useMemo)(function(){var e;return c?function(e){if(Array.isArray(e))return yc(e)}(e=null==c?void 0:c.map(function(e){return[e.attributeType.display?(0,_.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yf(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[c]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("contactDetails","Contact Details")}),u?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:d.length?d.map(function(e,t){var r=yd(e,2),n=r[0],i=r[1];return(0,h.jsxs)("li",{children:[n,": ",i]},"".concat(n,"-").concat(i,"-").concat(t))}):(0,h.jsx)("li",{children:"--"})})]})},yy=function(e){var t,r,n,i,a,o,s,l,u,c,d=(t=e.entityId,i="".concat(h7.restBaseUrl,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),o=(a=(0,yl.Ay)(t?i:null,h7.egenFetch)).data,s=a.error,l=a.isLoading,u=a.isValidating,c=(null==o||null==(n=o.data)||null==(r=n.results)?void 0:r.length)?function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;e===l.personA.uuid?r.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):r.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,o.data.results):null,{data:o?c:null,error:s,isLoading:l,isValidating:u}),f=d.data,p=d.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("relationships","Relationships")}),p?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:f&&f.length>0?(0,h.jsx)(h.Fragment,{children:f.map(function(e){return(0,h.jsxs)("li",{className:yu.relationship,children:[(0,h.jsx)("div",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/entity/").concat(e.relativeUuid,"/detail"),children:e.display})}),(0,h.jsx)("div",{children:e.relationshipType}),(0,h.jsx)("div",{children:"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?(0,_.V)("yearAbbreviation","yr"):(0,_.V)("yearsAbbreviation","yrs"):"")})]},e.uuid)})}):(0,h.jsx)("li",{children:"--"})})]})};function yg(e){var t,r,n=e.entityId,i=e.inactive;return(0,h.jsxs)("div",{className:v()(yu.contactDetails,(t={},r=yu.inactive,r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t)),children:[(0,h.jsxs)("div",{className:yu.row,children:[(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yh,{entityId:n})}),(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(ym,{entityUuid:n})})]}),(0,h.jsxs)("div",{className:yu.row,children:[(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yy,{entityId:n})}),(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yp,{entityUuid:n})})]})]})}let yv={container:"Cv77SWzKIL33Efa8UclO5A==",activePatientContainer:"+EdOeUGN-+Myht0Gc4ikMw==",patientBanner:"+1X-eoTNiJAWmrNyW1uKTg==",patientName:"HjFT+u-cDhT-hf+hsn11Xg==",patientAvatar:"OP0MHpvYVC6OF7zImdEV3w==",patientAvatarButton:"-mC5reGPR9tvkeM0qSc5MA==",patientInfo:"mgVTXloP5WwGSJLgIW5TVg==",demographics:"_0Cixc19K7YZnsR1MGmBQNg==",row:"yZ25PajVI7esFz4wL1yOCg==",flexRow:"Ejo0BoOk-a+rWthDWMDH7w==",tagsSlot:"+MEITB-Gk8ZjLAvj3B8W3w==",identifiers:"BwRJpSUWSzceV7Pjz5UofA==",identifier:"kLaARBBq9K0roZYiS7GA1Q==",primaryIdentifier:"qYvg+lAUHmwTgbGCFXK8Yg==",secondaryIdentifier:"TLLxFft-df-e9delKSNViA==",value:"_4WXcSlqEoM5a51gAHLpS0A==",tag:"pzpHt574Yu33MqipyxxXag==",gender:"QtDv05OhEBSxQ0LZ6FfmNA==",separator:"Ld4CZgLBPDUgajeNQgM4Hw==",tooltipPadding:"GF5dbiMid4Mc+k7iKSbQCQ==",tooltipSmallText:"GlMubU+ECQXv0RlYebaD0g==",actionsButtonText:"MX8Uu4J+mIeszpUoF2RRgA=="};function yb(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsx)("span",{className:yv.primaryIdentifier,children:(0,h.jsxs)(L.Tag,{className:yv.tag,type:"gray",children:[t&&(null==r?void 0:r.text)&&(0,h.jsxs)("span",{className:yv.label,children:[r.text,": "]}),(0,h.jsx)("span",{className:yv.value,children:n})]})})}function yw(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsxs)(L.FormLabel,{className:yv.secondaryIdentifier,id:"entity-banner-identifier-".concat(n),children:[t&&(0,h.jsxs)("span",{className:yv.label,children:[null==r?void 0:r.text,": "]}),(0,h.jsx)("span",{className:yv.value,children:n})]})}function yx(e){var t,r=e.identifiers,n=e.showIdentifierLabel,i=(0,b.useConfig)().excludeEntityIdentifierCodeTypes,a=(0,b.usePrimaryIdentifierCode)().primaryIdentifierCode,o=null!=(t=null==r?void 0:r.filter(function(e){var t,r,n,a=null==(n=e.type)||null==(r=n.coding)||null==(t=r[0])?void 0:t.code;return a&&!(null==i?void 0:i.uuids.includes(a))}))?t:[];return(0,h.jsx)(h.Fragment,{children:(null==o?void 0:o.length)?o.map(function(e,t){var r,i,s=e.value,l=e.type;return(0,h.jsxs)(y().Fragment,{children:[(0,h.jsx)("span",{className:yv.identifier,children:(null==l||null==(i=l.coding)||null==(r=i[0])?void 0:r.code)===a?(0,h.jsx)(yb,{showIdentifierLabel:n,type:l,value:s}):(0,h.jsx)(yw,{showIdentifierLabel:n,type:l,value:s})}),t<o.length-1&&(0,h.jsx)("span",{className:yv.separator,children:"\xb7"})]},s)}):""})}function yS(e){var t,r,n=e.entity,i=e.renderedFrom,a=(null==n||null==(t=n.name)?void 0:t[0])?[null==(r=n.name[0].given)?void 0:r.join(" "),n.name[0].family].filter(Boolean).join(" "):(0,_.V)("unknown","Unknown"),o=(0,m.useMemo)(function(){return{entityUuid:n.id,entity:n,renderedFrom:i}},[n.id,n,i]);return(0,h.jsxs)("div",{className:yv.entityInfo,children:[(0,h.jsx)("div",{className:v()(yv.row,yv.entityNameRow),children:(0,h.jsxs)("div",{className:yv.flexRow,children:[(0,h.jsx)("span",{className:yv.entityName,children:a}),(0,h.jsx)(b.ExtensionSlot,{className:yv.tagsSlot,name:"entity-banner-tags-slot",state:o})]})}),(0,h.jsxs)("div",{className:yv.demographics,children:[n.birthDate&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{children:(0,sA.LW)(n.birthDate,{time:!1})}),(0,h.jsx)("span",{className:yv.separator,children:"\xb7"})]}),(0,h.jsx)(yx,{identifiers:n.identifier,showIdentifierLabel:!0}),(0,h.jsx)(b.ExtensionSlot,{className:yv.extensionSlot,name:"entity-banner-bottom-slot",state:o})]})]})}var yE=r(6768),yD=r.n(yE);function yO(e){var t,r,n,i=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).entityPhotoConceptUuid,a=i?"".concat(h7.restBaseUrl,"/datapoint?entity=").concat(e,"&concept=").concat(i,"&v=full"):null,o=(0,yl.Ay)(e?a:null,h7.egenFetch),s=o.data,l=o.error,u=o.isLoading,c=null==s||null==(t=s.data)?void 0:t.results[0];return{data:c?{dateTime:null==c?void 0:c.recordedDatetime,imageSrc:null==c||null==(n=c.value)||null==(r=n.links)?void 0:r.uri}:null,error:l,isLoading:u}}let yP=function(e){var t=e.width,r=e.height,n=e["aria-label"],i=(0,q.useTranslation)().t;return(0,h.jsxs)("svg",{"aria-label":null!=n?n:i("entityPhotoPlaceholder","Entity photo placeholder"),width:void 0===t?56:t,height:void 0===r?56:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},yj="zGr2tPPbF8QVWzyTv0fDHw==";function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yk(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yT(e){var t=e.entityUuid,r=e.entityName,n=e.alt,i=yO(t),a=i.data,o=i.isLoading,s=yC((0,m.useState)(null),2),l=s[0],u=s[1],c=yC((0,m.useState)(!1),2),d=c[0],f=c[1],p=(0,m.useMemo)(function(){return yD().generate(t)},[t]);(0,m.useEffect)(function(){if(null==a?void 0:a.imageSrc){var e=new URL(a.imageSrc,window.location.origin).pathname;f(!0);var t=!1,r=new Image;return r.onload=function(){t||(u(e),f(!1))},r.onerror=function(){t||(u(null),f(!1))},r.src=e,function(){t=!0}}u(null),f(!1)},[null==a?void 0:a.imageSrc]);var y=(0,m.useMemo)(function(){return n||(l?(0,_.V)("entityPhotoAlt","Profile photo of {{entityName}}",{entityName:r}):(0,_.V)("entityAvatarAlt","Avatar for {{entityName}}",{entityName:r}))},[n,l,r]);return o||d?(0,h.jsx)(L.SkeletonIcon,{className:"f9LV60t8m0NTwg0u9VNH6Q==","data-testid":"skeleton-icon"}):(null==a?void 0:a.imageSrc)&&!l?(0,h.jsx)(yP,{"aria-label":(0,_.V)("entityPhotoPlaceholder","Photo placeholder for {{entityName}}",{entityName:r})}):l?(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("img",{className:yj,src:l,alt:y,title:r})}):(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("div",{className:yj,title:r,style:{backgroundImage:p.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,h.jsx)("span",{className:"_6J1JiNoLqU9+wHh+JKTp0A==",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.split(/\s+/).filter(Boolean).slice(0,t).map(function(e){return e[0]}).join("")}(r)})})})}function yA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yR(e){if(Array.isArray(e))return e}function yI(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yM(e,t){if(e){if("string"==typeof e)return yA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yA(e,t)}}var yN=["egen-pict-appointments","egen-pict-assessment-1","egen-pict-assessment-2","egen-pict-blood-bank","egen-pict-cardiology","egen-pict-ct-scan","egen-pict-dentistry","egen-pict-emergency-department","egen-pict-facility","egen-pict-geriatrics","egen-pict-gynaecology","egen-pict-in-patient","egen-pict-laboratory","egen-pict-labs-2","egen-pict-obstetrics","egen-pict-patient-search","egen-pict-patients","egen-pict-payments-desk","egen-pict-pharmacy","egen-pict-pharmacy-2","egen-pict-registration","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer","egen-pict-triage","egen-pict-x-ray"],yL=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-appointments",pictogramProps:e})})),y_=yL,yF=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-assessment-1",pictogramProps:e})})),yB=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-assessment-2",pictogramProps:e})})),yV=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-blood-bank",pictogramProps:e})})),y$=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-cardiology",pictogramProps:e})})),yW=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-ct-scan",pictogramProps:e})})),yU=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-dentistry",pictogramProps:e})})),yz=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-emergency-department",pictogramProps:e})})),yH=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-facility",pictogramProps:e})})),yG=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-geriatrics",pictogramProps:e})})),yK=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-gynaecology",pictogramProps:e})})),yY=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-in-patient",pictogramProps:e})})),yZ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-laboratory",pictogramProps:e})})),yq=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-labs-2",pictogramProps:e})})),yX=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-obstetrics",pictogramProps:e})})),yQ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-patient-search",pictogramProps:e})})),yJ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-patients",pictogramProps:e})})),y0=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),y1=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-pharmacy",pictogramProps:e})})),y2=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-pharmacy-2",pictogramProps:e})})),y3=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-registration",pictogramProps:e})})),y4=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),y5=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),y6=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),y8=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-triage",pictogramProps:e})})),y9=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-x-ray",pictogramProps:e})})),y7=yH,ge=yJ,gt=(0,m.memo)((0,m.forwardRef)(function(e,t){var r,n=yR(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||yM(r)||yI(),i=n[0],a=n.slice(1),o=i.pictogram,s=i.fallback,l=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["pictogram","fallback"]),u=(yR(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||yM(a,1)||yI())[0],c=(0,m.useRef)(document.getElementById(o));return(0,m.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,h.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,h.jsx)(gr,{ref:u,pictogram:o,pictogramProps:l})})})),gr=(0,m.memo)((0,m.forwardRef)(function(e,t){var r=e.pictogram,n=Object.assign({},{size:92},e.pictogramProps),i=n.className,a=n.size;return(a<=26||a>144)&&(console.error("Invalid size '".concat(a,"' specified for ").concat(r,". Defaulting to 92.")),a=92),(0,h.jsx)("svg",{ref:t,className:v()("wXX7tgyTzQUB487Ai2jwkw==",i),height:a,width:a,children:(0,h.jsx)("use",{href:"#".concat(r)})})})),gn=function(e){var t=e.children;return"tablet"===(0,b.useLayoutType)()?(0,h.jsx)(L.Layer,{children:t}):(0,h.jsx)(h.Fragment,{children:t})};function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gi(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var gs=function(e){var t,r=e.snackbar,n=e.closeSnackbar,i=r.actionButtonLabel,a=r.kind,o=void 0===a?"success":a,s=r.onActionButtonClick,l=void 0===s?function(){}:s,u=r.isLowContrast,c=r.progressActionLabel,d=r.subtitle,f=r.timeoutInMs,p=void 0===f?5e3:f,y=r.autoClose,g=void 0===y?"error"!==o:y,b=r.title,w=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=go((0,m.useState)(void 0===i?"":i),2),S=x[0],E=x[1],D=go((0,m.useState)(!0),2),O=D[0],P=D[1],j=go((0,m.useState)(!1),2),k=j[0],C=j[1],T=(0,m.useCallback)(function(){setTimeout(n,250)},[n]),A=(0,m.useCallback)(function(){C(!0),T()},[T]);return(0,m.useEffect)(function(){if(g){var e=setTimeout(A,p);return function(){return clearTimeout(e)}}},[p,g,A]),(0,m.useEffect)(function(){P(!1),window.setTimeout(function(){P(!0)},0)},[]),(0,h.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ga(e,t,r[t])})}return e}({actionButtonLabel:S,"aria-label":(0,_.V)("closeSnackbar","Close snackbar"),className:v()("-oZItDje+VqIMbRFsj0vKg==",(ga(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",O),ga(t,"yEmGTBZUeA8w30tHbNSn5g==",k),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),A(),c&&E(c)},onClose:T,statusIconDescription:(0,_.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:b},w))};function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gu(e,t){if(e){if("string"==typeof e)return gl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gl(e,t)}}let gc=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gu(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gl(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gu(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(gs,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var gd=new mw.Subject,gf=0;function gp(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gc,{subject:gd}))}function gh(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,r;gd.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gf++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}function gm(e){var t=document.querySelector("template#loading-spinner");if(t){var r=t.content.cloneNode(!0),n=Array.prototype.map.call(r.childNodes,function(e){return e});return e.appendChild(r),function(){return n.forEach(function(e){return e.remove()})}}return function(){}}let gy={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gv(e,t,r[t])})}return e}var gw=function(e){var t,r,n,i,a=e.children,o=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,y=e.expandedHeight,g=e.blurIntensity,b=e.shadowIntensity,w=e.glowIntensity,x=e.borderRadius,S=void 0===x?"0px":x,E=e.style,D=e.onClick,O=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return gg(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gg(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),P=O[0],j=O[1],k="egen-glass-blur-".concat((0,m.useId)().replace(/:/g,"")),C=l||c,T=C?hK.div:"div",A=C?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:y||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?P?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||j(function(e){return!e})}:D,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:D};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{className:gy.hiddenFilterSvg,"aria-hidden":"true",children:(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:k,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,h.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,h.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,h.jsxs)(T,(r=gb({className:v()(gy.card,(gv(i={},gy["card--draggable"],l),gv(i,gy["card--expandable"],c),i),o),style:gb({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,E)},A),n=n={children:[(0,h.jsx)("div",{className:v()(gy.bendLayer,gy["blur--".concat(void 0===g?"xl":g)]),style:{borderRadius:S,filter:"url(#".concat(k,")")}}),(0,h.jsx)("div",{className:v()(gy.faceLayer,gy["glow--".concat(void 0===w?"sm":w)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:v()(gy.edgeLayer,gy["shadow--".concat(void 0===b?"md":b)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:gy.content,children:a})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))]})},gx={success:{icon:ev,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:s_,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:tk,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:tk,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:eH,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:eG,defaultEyebrow:"Information",colorToken:"info"}};let gS={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var gE=function(e){var t=e.colorVar,r=e.mode,n=e.durationMs,i=e.value;return(0,h.jsx)("div",{className:gS.progressTrack,children:"countdown"===r?(0,h.jsx)(hK.div,{className:gS.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=n?n:4e3)/1e3,ease:"linear"}}):(0,h.jsx)(hK.div,{className:gS.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=i?i:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},gD=function(e){var t,r=e.toast,n=e.closeToast,i=r.description,a=r.kind,o=r.critical,s=r.title,l=r.actionButtonLabel,u=r.onActionButtonClick,c=r.variant,d=void 0===c?"default":c,f=r.eyebrow,p=r.progress,y=r.actions,g=r.duration;r.toastKey;var b=gx[void 0===a?"info":a],w=b.icon,x="var(--colors-".concat(b.colorToken,"-500)"),S=(0,m.useMemo)(function(){return(null==y?void 0:y.length)?y:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[y,l,u]),E=(0,m.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&n()},[n]),D=null!=g?g:"default"===d&&0===S.length?4e3:void 0;(0,m.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(n,1200);return function(){return clearTimeout(e)}}return}if(D){var t=setTimeout(n,D);return function(){return clearTimeout(t)}}},[d,p,D,n]);var O=null!=f?f:b.defaultEyebrow,P=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](i):i instanceof t)?i.message:i;return(0,h.jsx)(hK.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:gS.wrapper,children:(0,h.jsxs)(gw,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:v()(gS.card,gS["card--".concat(b.colorToken)]),children:[(0,h.jsxs)("div",{className:gS.body,children:[(0,h.jsx)(w,{className:gS.icon,size:20}),(0,h.jsxs)("div",{className:gS.textArea,children:[(0,h.jsx)("span",{className:gS.eyebrow,children:O}),s&&(0,h.jsx)("p",{className:gS.title,children:s}),(0,h.jsx)("div",{className:gS.description,children:P})]}),(0,h.jsx)("button",{type:"button",onClick:n,className:gS.closeButton,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:14})})]}),S.length>0&&(0,h.jsx)("div",{className:gS.actionsRow,children:S.map(function(e,t){var r,n;return(0,h.jsx)("button",{type:"button",className:v()(gS.actionButton,gS["actionButton--".concat(null!=(r=e.kind)?r:"primary")]),onClick:function(){return E(e)},children:e.label},null!=(n=e.id)?n:t)})}),"transfer"===d?(0,h.jsx)(gE,{colorVar:x,mode:"progress",value:p}):D&&(0,h.jsx)(gE,{colorVar:x,mode:"countdown",durationMs:D})]})})};function gO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gP(e,t){if(e){if("string"==typeof e)return gO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gO(e,t)}}let gj=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gP(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gO(e)})(r=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gP(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){var t;return(0,h.jsx)(gD,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var gk=new mw.Subject,gC=0;function gT(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gj,{subject:gk}))}function gA(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!mB(t))?setTimeout(function(){var t,r;gk.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gC++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var gR=r(7774);function gI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function gN(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function gL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var r=g$[e];return!r||!r()}function g_(e,t){var r,n=null==(r=gZ.getState())?void 0:r.workspaceGroup,i=null==n?void 0:n.name;i&&e===i&&gJ(function(){var r=g4(e);r&&(r.setState({},!0),r.subscribe(function(){})()),"function"==typeof(null==n?void 0:n.cleanup)&&n.cleanup(),gZ.setState(function(e){return gN(gM({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},i?function(e){return e.currentWorkspaceGroup===i}:function(){return!0})}function gF(e,t){var r,n=t.name,i=t.additionalProps;(0,ma.Xb)(n);var a=function(){gG(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return gB(n,i)},closeWorkspaceGroup:!1})};gL(e.name)?a():g1("closing-workspace-launching-new-workspace",a,null!=(r=e.title)?r:e.name)}function gB(e,t){var r,n,i=(0,ma.Xb)(e),a=gZ.getState().workspaceGroup;if(a&&!(null==(r=a.members)?void 0:r.includes(e)))return void g_(a.name,function(){gB(e,t)});var o=null==(n=gZ.getState().workspaceGroup)?void 0:n.name,s=gN(gM({},i),{title:g2(i,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gG(e,t)},closeWorkspaceWithSavedChanges:function(t){return gG(e,gM({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var r,n;return r=e,n=t,void(g$[r]=n)},setTitle:function(t,r){s.title=t,s.titleNode=r,gZ.setState(function(t){var r=t.openWorkspaces.map(function(t){return t.name===e?s:t});return gN(gM({},t),{openWorkspaces:r})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){gZ.setState(function(r){var n,i=[e].concat(function(e){if(Array.isArray(e))return gI(e)}(n=null!=t?t:r.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e){if(e){if("string"==typeof e)return gI(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gI(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=gQ(e);return gN(gM({},r),{openWorkspaces:i,workspaceWindowState:a})})}o&&g4(o,t);var u=gZ.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(gM(gN(gM({},f),{additionalProps:s.additionalProps}),f.title===g2(f,f.additionalProps)&&{title:g2(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,gZ.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),gF(d,{name:e,additionalProps:t})):l(s);else gF(u[0],{name:e,additionalProps:t})}function gV(e){var t=e.targetUrl,r=e.contextKey,n=e.workspaceName,i=e.additionalProps;gK(r),gB(n,i),(0,gR.oo)({to:t})}var g$={};function gW(e,t){g$[e]=t}function gU(e){return g$[e]}function gz(){var e=gZ.getState();gZ.setState(gN(gM({},e),{prompt:null}))}var gH={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function gG(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=gM({},gH,r);var n=function(){var t,n,i=gZ.getState();i.openWorkspaces.find(function(t){return t.name===e});var a=i.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=gZ.getState().workspaceGroup)?void 0:t.name;o&&r.closeWorkspaceGroup&&g_(o),g$[e]=function(){return!1},gZ.setState(function(e){return gN(gM({},e),{prompt:null,openWorkspaces:a,workspaceWindowState:gQ(null==a?void 0:a[0])})}),null==r||null==(n=r.onWorkspaceClose)||n.call(r)};return gL(e,null==r?void 0:r.ignoreChanges)?(n(),!0):(g1("closing-workspace",n,null!=(t=(0,ma.Xb)(e).title)?t:e),!1)}function gK(e){gZ.getState().context!=e&&gZ.setState({context:e,openWorkspaces:[],prompt:null})}var gY={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},gZ=(0,mi.createGlobalStore)("workspace",gY);function gq(){return gZ}function gX(e){var t=gZ.getState();gZ.setState(gN(gM({},t),{workspaceWindowState:e}))}function gQ(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function gJ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=gZ.getState().openWorkspaces.filter(t).every(function(e){return gL(e.name)}),n=function(){g3(),null==e||e()};r?n():g1("closing-all-workspaces",n)}function g0(){var e=(0,b.useStore)(gZ),t=e.workspaceWindowState,r=e.openWorkspaces,n=e.prompt,i=e.workspaceGroup;return(0,m.useMemo)(function(){return{active:r.length>0,prompt:n,workspaceWindowState:t,workspaces:r,workspaceGroup:i}},[r,t,n,i])}function g1(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==r||r()},confirmText:(0,_.V)("discard","Discard")};break;case"closing-all-workspaces":var i=gZ.getState().openWorkspaces.filter(function(e){return!gL(e.name)}).map(function(e,t){var r=e.title;return"".concat(t+1,". ").concat(r)});t={title:(0,_.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,_.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:i.join(",")}),onConfirm:function(){null==r||r()},confirmText:(0,_.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:i.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:function(){gZ.setState(function(e){return gN(gM({},e),{prompt:null})}),null==r||r()},confirmText:(0,_.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==r||r();return}gZ.setState(function(e){return gN(gM({},e),{prompt:t})})}function g2(e,t){var r;return null!=(r=null==t?void 0:t.workspaceTitle)?r:e.title}function g3(){gZ.setState(gY)}function g4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var r=(0,mi.getGlobalStore)(e,{});return t&&r.setState(function(e){return gM({},e,t)}),r}}let g5="f7spBy3jUTfjOH25a05A1A==",g6="ZROo9Y2WovRqEcmbEXN7sQ==",g8="+mcQhrE2BMNqPBknif4FqQ==";function g9(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g7(e){var t=e.getIcon,r=e.formOpenInTheBackground,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,h.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:n})]})}var ve=function(e){var t,r=e.getIcon,n=e.label,i=e.iconDescription,a=e.handler,o=e.type,s=e.tagContent,l=(0,b.useLayoutType)(),u=g0(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===o}))?t:-1,p="hidden"!==d&&0===f,m=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,h.jsxs)(L.Button,{className:v()(g5,g9({},g8,p)),iconDescription:i,kind:"ghost",onClick:a,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:g6,children:(0,h.jsx)(g7,{formOpenInTheBackground:m,getIcon:r,tagContent:s})}),(0,h.jsx)("span",{children:n})]}):(0,h.jsx)(L.IconButton,{align:"left","aria-label":i,className:v()(g5,g9({},g8,p)),enterDelayMs:300,kind:"ghost",label:n,onClick:a,size:"md",children:(0,h.jsx)("div",{className:g6,children:(0,h.jsx)(g7,{formOpenInTheBackground:m,getIcon:r,tagContent:s})})})};function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(e){var t,r,n=e.isWithinWorkspace,i=e.name,a=e.actionMenuProps,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vt(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vt(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,m.useRef)(window.innerHeight),c=(0,m.useContext)(b.ComponentContext).featureName,d=(0,b.useLayoutType)();return(0,m.useEffect)(function(){var e=function(){l(!(0,b.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,h.jsx)("aside",{className:v()("GJUJ7TWs47hZNAq1HgT48A==",(vr(r={},"_7+TCfrT4vrpC5TH4e1by0w==",n),vr(r,"bQ0UMzF1JBk1bcCogWlGrw==",s),vr(r,"v-1cRnDYDLbApkU1gJodvg==",!s),r)),children:(0,h.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,h.jsx)(b.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(i&&"default"!=i?i:c,"-items-slot"),state:void 0===a?{}:a})})})}var vi=r(2086);function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vo(e){if(Array.isArray(e))return e}function vs(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vu(e,t){if(e){if("string"==typeof e)return va(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return va(e,t)}}var vc=y().forwardRef(function(e,t){var r,n=vo(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vu(r)||vs(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vo(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vu(a,1)||vs())[0];return 16===l||"16"===l||"16px"===l?y().createElement(vi.A,vl({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,h.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):y().createElement(vi.A,vl({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,h.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vd=r(2283);function vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vp(e){if(Array.isArray(e))return e}function vh(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vm(e,t){if(e){if("string"==typeof e)return vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vf(e,t)}}var vy=y().forwardRef(function(e,t){var r,n=vp(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vm(r)||vh(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vp(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vm(a,1)||vh())[0];return y().createElement(vi.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,h.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),vg=r(2768),vv=/[\\^$.*+?()[\]{}|]/g,vb=RegExp(vv.source);let vw=function(e){return(e=(0,vg.A)(e))&&vb.test(e)?e.replace(vv,"\\$&"):e};function vx(e){var t,r,n=e.contextKey,i=g0().prompt;return(0,m.useEffect)(function(){new RegExp("/".concat(vw(n),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(n,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,m.useEffect)(function(){return gK(n),function(){gK(null)}},[n]),(0,m.useEffect)(function(){var e=function(e){var t=e.detail,r=t.cancelNavigation,i=t.newUrl,a=new RegExp("/".concat(vw(n),"(/|$)")),o=new URL(i),s=a.test(o.pathname),l=gZ.getState().openWorkspaces.every(function(e){return gL(e.name)});s||(l?g3():(null==r||r(),gJ(function(){(0,gR.oo)({to:i})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=i?(0,h.jsxs)(L.ComposedModal,{open:!0,onClose:gz,children:[(0,h.jsx)(L.ModalHeader,{title:i.title}),(0,h.jsx)(L.ModalBody,{children:(0,h.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:i.body})}),(0,h.jsxs)(L.ModalFooter,{children:[(0,h.jsx)(L.Button,{kind:"secondary",onClick:gz,children:null!=(t=i.cancelText)?t:(0,_.V)("cancel")}),(0,h.jsx)(L.Button,{kind:"danger",onClick:i.onConfirm,children:null!=(r=i.confirmText)?r:(0,_.V)("confirm")})]})]}):null}var vS=r(2879);function vE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(r),!0).forEach(function(t){vP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vj(e){return(vj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vk(e,t){return(vk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vC(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vT=function(e){var t=m.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vk(o,t);var r,n,i,a=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vj(o);e=r?Reflect.construct(t,arguments,vj(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vC(this)});function o(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),vP(vC(t=a.call(this,e)),"handleRef",function(e){t.el=e}),vP(vC(t),"addThingToDo",function(e,r){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return r.apply(void 0,arguments)}).catch(function(r){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),r&&r.message&&(r.message="During '".concat(e,"', parcel threw an error: ").concat(r.message)),t.props.handleError?t.props.handleError(r):setTimeout(function(){throw r}),r}))}),vP(vC(t),"getParcelProps",function(){var e=vD(vD({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return n=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,r=e.props.mountParcel||e.mountParcel;if(!r)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(r){t.style[r]=e.props.wrapStyle[r]}),e.props.appendTo.appendChild(t)),e.parcel=r(e.props.config,vD({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vS.i&&vS.i.Consumer?m.createElement(vS.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vS.i&&vS.i.Consumer?m.createElement(vS.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return m.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vO(o.prototype,n),i&&vO(o,i),o}();vP(vT,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vN(e){var t,r,n,i,a,o,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vI(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vI(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1],y=(r=u.currentWorkspaceGroup,i=(n=vR((0,m.useState)({}),2))[0],a=n[1],s=(o=vR((0,m.useState)(r),2))[0],l=o[1],(0,m.useEffect)(function(){s!==r&&l(r)},[r]),(0,m.useEffect)(function(){var e,t=g4(s);return t&&(a(t.getState()),e=t.subscribe(a)),function(){t&&(null==e||e())}},[s]),i);(0,m.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var g=(0,m.useMemo)(function(){return u&&vM({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,y,u.additionalProps)},[u,c,y]);return f?(0,h.jsx)(vT,vM({config:f,mountParcel:mn.mountRootParcel},g),u.name):(0,h.jsx)(L.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,_.V)("loading","Loading")," ...")})}function vL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t,r,n,i=e.contextKey,a=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,b.useLayoutType)(),c=g0(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,y=null==p?void 0:p.name,g=d[0],w="hidden"===f||null==g,x=null!=(t=null==g?void 0:g.width)?t:a?"wider":"narrow",S=(0,m.useMemo)(function(){return o||y&&!w},[y,w,o]);return(0,b.useBodyScrollLock)(!w&&!(0,b.isDesktop)(u)),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,h.jsx)("aside",{className:v()(a?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(vL(r={},"AJHmQ2iPp0Yic2jCrU6NIA==",w),vL(r,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===x),vL(r,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===x),vL(r,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===x),r)),children:(0,h.jsx)("div",{className:v()("pBPmoo5CjBr1d116v8KrrA==",(vL(n={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),vL(n,"BxutHfy6GErdVMJpbvmkVg==",w),n)),children:d.map(function(e,t){return(0,h.jsx)("div",{className:v()("tYaVVyyd6Tcv58Bbo4mkcw==",vL({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,h.jsx)(m.Suspense,{fallback:null,children:(0,h.jsx)(q.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,h.jsx)(vF,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,h.jsx)(vx,{contextKey:i})]}),S&&(0,h.jsx)(vn,{name:y,isWithinWorkspace:!o,actionMenuProps:l})]})}function vF(e){var t,r=e.workspaceInstance,n=e.additionalWorkspaceProps,i=(0,q.useTranslation)().t,a=(0,b.useLayoutType)(),o=g0(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,m.useEffect)(function(){var e=i(r.title);e!==r.title&&r.setTitle(e)},[r.title,i,r.setTitle]);var d=(0,m.useContext)(b.ComponentContext).featureName,f=(0,m.useCallback)(function(){gX(c?"normal":"maximized")},[c]),p=(0,m.useMemo)(function(){return null!=r?r:{}},[r]),y=p.canHide,g=void 0!==y&&y,w=p.canMaximize,x=p.currentWorkspaceGroup,S=p.closeWorkspace,E=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){vL(e,t,r[t])})}return e}({},n,null==r?void 0:r.additionalProps)},[n,r]);return r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,b.isDesktop)(a)&&!g&&(0,h.jsx)(L.HeaderMenuButton,{"aria-label":(0,_.V)("close","Close"),renderMenuIcon:(0,h.jsx)(eo,{}),onClick:function(){return S()}}),(0,h.jsx)(L.HeaderName,{prefix:"",children:null!=(t=r.titleNode)?t:i(r.title)}),(0,h.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,h.jsxs)(L.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-group-".concat(r.currentWorkspaceGroup,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-type-".concat(r.type,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:E}),(0,b.isDesktop)(a)&&(0,h.jsxs)(h.Fragment,{children:[(void 0!==w&&w||c)&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":c?(0,_.V)("minimize","Minimize"):(0,_.V)("maximize","Maximize"),onClick:f,children:c?(0,h.jsx)(vc,{}):(0,h.jsx)(vd.hz,{})}),g&&!u?(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide","Hide"),onClick:function(){return gX("hidden")},children:(0,h.jsx)(es,{})}):(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(eO,{})})]}),"tablet"===a&&g&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(vy,{})})]})]}),(0,h.jsx)("div",{className:v()("cNdK12M+p0cj6LR0VGui6A==",vL({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===x?"":x))),children:(0,h.jsx)(vN,{workspace:r,additionalPropsFromPage:n},r.name)})]})}var vB=r(188),vV=r(8254);function v$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vW(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function vU(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){vW(a,n,i,o,s,"next",e)}function s(e){vW(a,n,i,o,s,"throw",e)}o(void 0)})}}function vz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vH(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function vG(e){return function(e){if(Array.isArray(e))return v$(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v$(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v$(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vK(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function vY(e,t){return vU(function(){var r;return vK(this,function(n){switch(n.label){case 0:if(!(r=ma.J_.getState().openedGroup))return[3,3];if(!(r.groupName!==e||!vX(r.props,t)))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!n.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return ma.J_.setState(function(r){return vH(vz({},r),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function vZ(e){return vU(function(){var t,r,n,i;return vK(this,function(a){switch(a.label){case 0:if(r=(t=ma.J_.getState()).openedGroup,n=t.openedWindows,!r)return[3,4];if(!(n.length>0))return[3,3];if(i=e)return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:i=a.sent(),a.label=2;case 2:if(!i)return[2,!1];a.label=3;case 3:return ma.J_.setState(function(e){return vH(vz({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function vq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return vU(function(){var i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return vK(this,function(P){switch(P.label){case 0:if(!(i=ma.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(a=(0,ma.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=i.openedGroup,s=a.name,!(l=(0,ma.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(a.name," is not registered to a workspace group"));if(c=(u=(0,ma.YX)(e))>=0,!(o&&(o.groupName!==l.name||!vX(o.props,n))))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:n},openedWindows:[{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=i.openedWindows[u],h=null!=(d=null==(f=i.openedGroup)?void 0:f.props)?d:{},m=i.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!vX(p.props,r))return[3,6];if(!((g=y.find(function(t){return t.workspaceName===e}))&&vX(g.props,t)))return[3,3];return(m||u!==i.openedWindows.length-1)&&ma.J_.setState(vJ.restoreWindow(i,s)),[2,!0];case 3:return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(v=null==i||null==(w=i.openedGroup)?void 0:w.props)?v:h},openedWindows:vG(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:null!=(b=null==p?void 0:p.props)?b:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,vQ({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=h?h:null==i||null==(x=i.openedGroup)?void 0:x.props},openedWindows:vG(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,vQ({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:a.name})];case 10:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(S=null!=n?n:null==i||null==(E=i.openedGroup)?void 0:E.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(D=null!=n?n:null==i||null==(O=i.openedGroup)?void 0:O.props)?D:null},openedWindows:vG(i.openedWindows).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function vX(e,t){return null==e||null==t||(0,vV.b)(e,t)}function vQ(e){function t(e,t){for(var r=[],n=e.openedWorkspaces.length-1;n>=0;n--){var i=e.openedWorkspaces[n];if(i.hasUnsavedChanges&&r.push(i),t&&i.workspaceName===t)break}return r}var r=ma.J_.getState(),n=r.openedWindows,i=r.workspaceTitleByWorkspaceName,a=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":a=n.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=n.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(o);break;case"CLOSE_WORKSPACE":var s=n.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":a=n.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===a.length?Promise.resolve(!0):new Promise(function(e){var t=mb("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:a.map(function(e){return i[e.workspaceName]})})})}var vJ={setWindowMaximized:function(e,t,r){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),i=vG(e.openedWindows),a=vH(vz({},i[n]),{maximized:r});return i[n]=a,vH(vz({},e),{openedWindows:i})},hideWindow:function(e){return vH(vz({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),n=e.openedWindows[r],i=vG(e.openedWindows.filter(function(e,t){return t!==r})).concat([n]);return vH(vz({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var r=(0,ma.YX)(t);if(r<0)return e;var n=vz({},e.openedWindows[r]),i=n.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),a=vG(e.openedWindows);n.openedWorkspaces=n.openedWorkspaces.slice(0,i);var o=e.isMostRecentlyOpenedWindowHidden;if(0===n.openedWorkspaces.length){var s=r===e.openedWindows.length-1;a.splice(r,1),s&&a.length>0&&(o=!1)}else a[r]=n;return vH(vz({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,r,n){var i=e.registeredWorkspacesByName[r];if(!i)throw Error('No workspace named "'.concat(r,'" registered'));var a=e.registeredWorkspacesByName[t];if(!a)throw Error('No workspace named "'.concat(t,'" registered'));if(a.window!==i.window)throw Error("Child workspace ".concat(r," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===i.window});if(-1==o)throw Error("Cannot open child workspace ".concat(r," as window ").concat(i.window," is not opened"));var s=e.openedWindows[o].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(r," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==o?vH(vz({},e),{openedWorkspaces:vG(u).concat([v3(r,n)])}):e})}},setHasUnsavedChanges:function(e,t,r){var n=(0,ma.YX)(t);if(n<0)return e;var i=vz({},e.openedWindows[n]),a=i.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(a<0)return e;i.openedWorkspaces[a]=vH(vz({},i.openedWorkspaces[a]),{hasUnsavedChanges:r});var o=vG(e.openedWindows);return o[n]=i,vH(vz({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,r){var n=vz({},e.workspaceTitleByWorkspaceName);return null===r?delete n[t]:n[t]=r,vH(vz({},e),{workspaceTitleByWorkspaceName:n})}};function v0(){return(0,b.useStoreWithActions)(ma.J_,vJ)}var v1=function(){return(0,m.useContext)(vS.i)},v2=function(){return Object.keys(ma.J_.getState().registeredWorkspacesByName)};function v3(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,vB.A)()}}let v4={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function v5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v6=function(e){var t,r,n,i,a=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,b.useLayoutType)(),c=v0(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,y=c.openedWindows,g=c.openedGroup,w=c.registeredGroupsByName,x=c.registeredWindowsByName,S=c.registeredWorkspacesByName,E=c.workspaceTitleByWorkspaceName,D=c.setWorkspaceTitle,O=c.isMostRecentlyOpenedWindowHidden,P=v1(),j=P.workspaceName,k=P.isRootWorkspace,C=P.closeWorkspace,T=P.showActionMenu,A=(0,ma.YX)(j),R=y[A],I=null==R?void 0:R.openedWorkspaces.find(function(e){return e.workspaceName===j});if((0,m.useEffect)(function(){(null==I?void 0:I.hasUnsavedChanges)!=l&&p(j,null!=l&&l)},[null==I?void 0:I.hasUnsavedChanges,l,j,p]),(0,m.useEffect)(function(){E[j]!==a&&D(j,a)},[E,j,a,D]),A<0||null==g||null==I)return null;var M=w[g.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(g.groupName));var N=S[j].window,F=x[N];if(!F)throw Error("Cannot find registered workspace window ".concat(N));var B=F.icon,V=F.canMaximize,$="closable"===M.persistence,W=!!B&&!$,U=R.maximized,z=null!=(t=null==F?void 0:F.width)?t:"narrow",H=Object.values(x).some(function(e){return e.group===g.groupName&&void 0!==e.icon}),G=A<y.length-1||O;return(0,h.jsxs)("div",{className:v()(v4.workspaceOuterContainer,(v5(r={},v4.narrowWorkspace,"narrow"===z),v5(r,v4.widerWorkspace,"wider"===z),v5(r,v4.extraWideWorkspace,"extra-wide"===z),v5(r,v4.isActionMenuOpened,H),r)),children:[(0,h.jsx)("div",{className:v()(v4.workspaceSpacer,v5({},v4.hidden,G))}),(0,h.jsx)("div",{className:v()(v4.workspaceMiddleContainer,(v5(n={},v4.maximized,U),v5(n,v4.hidden,G),v5(n,v4.isRootWorkspace,k),v5(n,v4.showActionMenu,T),n)),children:(0,h.jsxs)("div",{className:v()(v4.workspaceInnerContainer,(v5(i={},v4.maximized,U),v5(i,v4.hidden,G),v5(i,v4.isRootWorkspace,k),i)),children:[(0,h.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader"),className:v4.header,children:[(0,h.jsx)(L.HeaderName,{prefix:"",children:a}),(0,h.jsx)("div",{className:v4.overlayHeaderSpacer}),(0,h.jsx)(L.HeaderGlobalBar,{className:v4.headerButtons,children:(0,b.isDesktop)(u)?(0,h.jsxs)(h.Fragment,{children:[(V||U)&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":U?(0,_.V)("minimize"):(0,_.V)("maximize"),onClick:function(){return d(N,!U)},children:U?(0,h.jsx)(vc,{}):(0,h.jsx)(vd.hz,{})}),W&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(es,{})}),!$&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){return C({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]}):(0,h.jsxs)(h.Fragment,{children:[W&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(vy,{})}),(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){$?vZ():C({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]})})]}),(0,h.jsx)("div",{className:v()(v4.workspaceContent),children:o})]})})]})};let v8="jc6--ve4CL-z756RWjy-Gg==",v9="whLL8QyjyxlJqTQo67X7BQ==",v7="fbyFm5PlSWWUnG9aPE8kTg==",be="+aVpzvvOae5n83hGlMESXg==";function bt(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bn(e){var t=e.getIcon,r=e.hasUnsavedChanges,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,h.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:n})]})}var bi=function(e){var t,r,n,i=e.icon,a=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,b.useLayoutType)(),c=v0(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,y=c.isMostRecentlyOpenedWindowHidden,g=(0,m.useContext)(b.ComponentContext).extension,w=d.findIndex(function(e){return e.windowName===(null==g?void 0:g.extensionId)}),x=d[w],S=null!=x,E=S&&(w<d.length-1||y),D=S&&!E,O=null!=(t=null==x?void 0:x.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,P=function(){var e;return(e=function(){var e,t;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(!S)return[3,1];return E?f(x.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:r.sent()&&(t=s.workspaceName,vq(t,s.workspaceProps,s.windowProps)),r.label=3;case 3:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bt(a,n,i,o,s,"next",e)}function s(e){bt(a,n,i,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,h.jsxs)(L.Button,{className:v()(v8,(br(r={},v7,S&&!D),br(r,be,D),r)),iconDescription:a,kind:"ghost",onClick:P,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:v9,children:(0,h.jsx)(bn,{hasUnsavedChanges:O,getIcon:i,tagContent:o})}),(0,h.jsx)("span",{children:a})]}):(0,h.jsx)(L.IconButton,{align:"left","aria-label":a,className:v()(v8,(br(n={},v7,S&&!D),br(n,be,D),n)),enterDelayMs:300,kind:"ghost",label:a,onClick:P,size:"md",children:(0,h.jsx)("div",{className:v9,children:(0,h.jsx)(bn,{hasUnsavedChanges:O,getIcon:i,tagContent:o})})})},ba=r(7335);let bo="_6Gke0iocK8-7xF6UDXtjtQ==";function bs(e){var t=e.workspaceGroup,r=e.groupProps,n=(0,b.useLayoutType)(),i=t.persistence;return(0,h.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,h.jsxs)("div",{className:bo,children:["closable"==i&&(0,b.isDesktop)(n)&&(0,h.jsx)(L.IconButton,{align:"left",onClick:function(){return vZ()},label:(0,_.V)("close"),kind:"ghost",children:(0,h.jsx)(eO,{})}),(0,h.jsx)(b.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,h.jsx)(b.ExtensionSlot,{className:bo,name:t.name,state:{groupProps:r}})})]})})}var bl=r(8148);function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function bc(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function bd(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bc(a,n,i,o,s,"next",e)}function s(e){bc(a,n,i,o,s,"throw",e)}o(void 0)})}}function bf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bp(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var bh=function(e){var t=e.lifeCycle,r=e.openedWorkspace,n=e.openedWindow,i=e.isRootWorkspace,a=e.isLeafWorkspace,o=e.showActionMenu,s=v0(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,m.useMemo)(function(){return r&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bd(function(){var t,i,a,o,s,l;return bp(this,function(c){switch(c.label){case 0:if(i=void 0!==(t=e.closeWindow)&&t,o=void 0!==(a=e.discardUnsavedChanges)&&a,!i)return[3,3];if(s=o)return[3,2];return[4,vQ({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(n.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:r.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(r.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return bd(function(){var i,a,o;return bp(this,function(s){switch(s.label){case 0:if(i=r.workspaceName,-1===(o=(a=n.openedWorkspaces).findIndex(function(e){return e.workspaceName===i})))return[2];if(o===a.length-1||!a.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:a[o+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(i,e,t||{}),[2]}})})()},workspaceName:r.workspaceName,workspaceProps:r.props,windowProps:n.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:i,isLeafWorkspace:a,windowName:n.windowName,showActionMenu:o}},[r,u,l,n]);if(!t){var f,p,y=ma.J_.getState().registeredWorkspacesByName[r.workspaceName],g=y&&y.window?y.window:void 0,b=ma.J_.getState().registeredWindowsByName,w=g?b[g]:void 0,x=w&&w.width?w.width:"narrow",S=Object.values(b).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,h.jsxs)("div",{className:v()(v4.workspaceOuterContainer,(bf(f={},v4.narrowWorkspace,"narrow"===x),bf(f,v4.widerWorkspace,"wider"===x),bf(f,v4.extraWideWorkspace,"extra-wide"===x),bf(f,v4.isActionMenuOpened,S),f)),children:[(0,h.jsx)("div",{className:v4.workspaceSpacer}),(0,h.jsx)("div",{className:v()(v4.workspaceMiddleContainer,(bf(p={},v4.isRootWorkspace,i),bf(p,v4.showActionMenu,o),p)),children:(0,h.jsx)("div",{className:v()(v4.workspaceInnerContainer,bf({},v4.isRootWorkspace,i)),children:(0,h.jsx)(L.InlineLoading,{className:v4.loader,description:"".concat((0,_.V)("loading")," ...")})})})]})}return(0,h.jsx)(vT,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){bf(e,t,r[t])})}return e}({config:t,mountParcel:mn.mountRootParcel},d),r.workspaceName)};let bm=function(e){var t,r=e.openedWindow,n=e.showActionMenu,i=r.openedWorkspaces,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return bu(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bu(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1],l=ma.J_.getState().registeredWorkspacesByName;return(0,m.useEffect)(function(){Promise.all(i.map(function(e){var t=l[e.workspaceName],r=t.moduleName,n=t.component;return(0,bl.o)(r,n)})).then(s)},[i]),(0,h.jsx)(h.Fragment,{children:i.map(function(e,t){return(0,h.jsx)(bh,{openedWorkspace:e,openedWindow:r,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===i.length-1,showActionMenu:n},e.uuid)})})};function by(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bg(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(bv,{}))}function bv(){var e,t=v0(),r=t.openedGroup,n=t.openedWindows,i=t.registeredGroupsByName,a=t.registeredWindowsByName;if((0,m.useEffect)(function(){return(0,ba.mI)("before-page-changed",function(e){var t=e.newPage,n=e.cancelNavigation,a=e.oldUrl,o=e.newUrl;if(r){if(t)return void n(vZ().then(function(e){return!e}));var s=i[r.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,r){try{var n=new URL(t,window.location.origin).pathname,i=new URL(r,window.location.origin).pathname,a=new RegExp(e),o=n.match(a),s=i.match(a);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,a,o)&&n(vZ().then(function(e){return!e}))}})},[r,i]),!r)return null;var o=i[r.groupName],s=n.some(function(e){return e.maximized}),l=o.name,u=Object.values(a).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var r,n;return(null!=(r=e.order)?r:Number.MAX_VALUE)-(null!=(n=t.order)?n:Number.MAX_VALUE)}).length>0;return(0,h.jsxs)("div",{className:v()("_2u2mcnHqn77Jo33H5a1H2g==",(by(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),by(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,h.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:n.map(function(e){return(0,h.jsx)(bm,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,h.jsx)(bs,{workspaceGroup:o,groupProps:r.props})]})}function bb(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bw(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bS,bE,bD,bO,bP,bj,bk,bC,bT,bA,bR,bI,bM,bN,bL,b_,bF,bB,bV,b$,bW,bU,bz,bH,bG,bK,bY,bZ,bq={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},bX={duration:.5,overwrite:!1,delay:0},bQ=2*Math.PI,bJ=bQ/4,b0=0,b1=Math.sqrt,b2=Math.cos,b3=Math.sin,b4=function(e){return"string"==typeof e},b5=function(e){return"function"==typeof e},b6=function(e){return"number"==typeof e},b8=function(e){return void 0===e},b9=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},b7=function(e){return!1!==e},we=function(){return"u">typeof window},wt=function(e){return b5(e)||b4(e)},wr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},wn=Array.isArray,wi=/random\([^)]+\)/g,wa=/,\s*/g,wo=/(?:-?\.?\d|\.)+/gi,ws=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wu=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wc=/[+-]=-?[.\d]+/,wd=/[^,'"\[\]\s]+/gi,wf=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wp={},wh={},wm=function(e){return(wh=wH(e,wp))&&SL},wy=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},wg=function(e,t){return!t&&console.warn(e)},wv=function(e,t){return e&&(wp[e]=t)&&wh&&(wh[e]=t)||wp},wb=function(){return 0},ww={suppressEvents:!0,isStart:!0,kill:!1},wx={suppressEvents:!0,kill:!1},wS={suppressEvents:!0},wE={},wD=[],wO={},wP={},wj={},wk=30,wC=[],wT="",wA=function(e){var t,r,n=e[0];if(b9(n)||b5(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=wC.length;r--&&!wC[r].targetTest(n););t=wC[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new xQ(e[r],t)))||e.splice(r,1);return e},wR=function(e){return e._gsap||wA(xm(e))[0]._gsap},wI=function(e,t,r){return(r=e[t])&&b5(r)?e[t]():b8(r)&&e.getAttribute&&e.getAttribute(t)||r},wM=function(e,t){return(e=e.split(",")).forEach(t)||e},wN=function(e){return Math.round(1e5*e)/1e5||0},wL=function(e){return Math.round(1e7*e)/1e7||0},w_=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},wF=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},wB=function(){var e,t,r=wD.length,n=wD.slice(0);for(e=0,wO={},wD.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},wV=function(e){return!!(e._initted||e._startAt||e.add)},w$=function(e,t,r,n){wD.length&&!bV&&wB(),e.render(t,r,n||!!(bV&&t<0&&wV(e))),wD.length&&!bV&&wB()},wW=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(wd).length<2?t:b4(e)?e.trim():e},wU=function(e){return e},wz=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},wH=function(e,t){for(var r in t)e[r]=t[r];return e},wG=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=b9(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},wK=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},wY=function(e){var t,r=e.parent||bW,n=e.keyframes?(t=wn(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):wz;if(b7(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},wZ=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},wq=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,o=e[n];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},wX=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,a=t._next;i?i._next=a:e[r]===t&&(e[r]=a),a?a._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},wQ=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},wJ=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},w0=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},w1=function(e,t,r,n){return e._startAt&&(bV?e._startAt.revert(wx):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},w2=function(e){return e._repeat?w3(e._tTime,e=e.duration()+e._rDelay)*e:0},w3=function(e,t){var r=Math.floor(e=wL(e/t));return e&&r===e?r-1:r},w4=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},w5=function(e){return e._end=wL(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},w6=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=wL(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),w5(e),r._dirty||wJ(r,e)),e},w8=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=w4(e.rawTime(),t),(!t._dur||xd(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),wJ(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},w9=function(e,t,r,n){return t.parent&&wQ(t),t._start=wL((b6(r)?r:r||e!==bW?xl(e,r,t):e._time)+t._delay),t._end=wL(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),wq(e,t,"_first","_last",e._sort?"_start":0),xr(t)||(e._recent=t),n||w8(e,t),e._ts<0&&w6(e,e._tTime),e},w7=function(e,t){return(wp.ScrollTrigger||wy("scrollTrigger",t))&&wp.ScrollTrigger.create(t,e)},xe=function(e,t,r,n,i){return(St(e,t,i),e._initted)?!r&&e._pt&&!bV&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&bK!==xF.frame?(wD.push(e),e._lazy=[i,n],1):void 0:1},xt=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},xr=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xn=function(e,t,r,n){var i,a,o,s=e.ratio,l=t<0||!t&&(!e._start&&xt(e)&&!(!e._initted&&xr(e))||(e._ts<0||e._dp._ts<0)&&!xr(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(a=w3(c=xd(0,e._tDur,t),u),e._yoyo&&1&a&&(l=1-l),a!==w3(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||bV||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xe(e,t,n,r,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&w1(e,t,r,!0),e._onUpdate&&!r&&xP(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&xP(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&wQ(e,1),r||bV||(xP(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xi=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},xa=function(e,t,r,n){var i=e._repeat,a=wL(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:wL(a*(i+1)+e._rDelay*i):a,o>0&&!n&&w6(e,e._tTime=e._tDur*o),e.parent&&w5(e),r||wJ(e.parent,e),e},xo=function(e){return bb(e,x0)?wJ(e):xa(e,e._dur)},xs={_start:0,endTime:wb,totalDuration:wb},xl=function e(t,r,n){var i,a,o,s=t.labels,l=t._recent||xs,u=t.duration()>=1e8?l.endTime(!1):t._dur;return b4(r)&&(isNaN(r)||r in s)?(a=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===a||">"===a)?(i>=0&&(r=r.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=u),s[r]):(a=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(a=a/100*(wn(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+a:u+a):null==r?u:+r},xu=function(e,t,r){var n,i,a=b6(t[1]),o=(a?2:1)+(e<2?0:1),s=t[o];if(a&&(s.duration=t[1]),s.parent=r,e){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=b7(i.vars.inherit)&&i.parent;s.immediateRender=b7(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Sl(t[0],s,t[o+1])},xc=function(e,t){return e||0===e?t(e):t},xd=function(e,t,r){return r<e?e:r>t?t:r},xf=function(e,t){return b4(e)&&(t=wf.exec(e))?t[1]:""},xp=[].slice,xh=function(e,t){return e&&b9(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&b9(e[0]))&&!e.nodeType&&e!==bU},xm=function(e,t,r){var n;return b$&&!t&&b$.selector?b$.selector(e):b4(e)&&!r&&(bz||!xB())?xp.call((t||bH).querySelectorAll(e),0):wn(e)?(void 0===n&&(n=[]),e.forEach(function(e){var t;return b4(e)&&!r||xh(e,1)?(t=n).push.apply(t,xm(e)):n.push(e)})||n):xh(e)?xp.call(e,0):e?[e]:[]},xy=function(e){return e=xm(e)[0]||wg("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return xm(t,r.querySelectorAll?r:r===e?wg("Invalid scope")||bH.createElement("div"):e)}},xg=function(e){return e.sort(function(){return .5-Math.random()})},xv=function(e){if(b5(e))return e;var t=b9(e)?e:{each:e},r=xK(t.ease),n=t.from||0,i=parseFloat(t.base)||0,a={},o=n>0&&n<1,s=isNaN(n)||o,l=t.axis,u=n,c=n;return b4(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!o&&s&&(u=n[0],c=n[1]),function(e,o,d){var f,p,h,m,y,g,v,b,w,x=(d||t).length,S=a[x];if(!S){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(g=0,S=a[x]=[],f=s?Math.min(w,x)*u-.5:n%w,p=1e8===w?0:s?x*c/w-.5:n/w|0,v=0,b=1e8;g<x;g++)h=g%w-f,m=p-(g/w|0),S[g]=y=l?Math.abs("y"===l?m:h):b1(h*h+m*m),y>v&&(v=y),y<b&&(b=y);"random"===n&&xg(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===n?-1:1),S.b=x<0?i-x:i,S.u=xf(t.amount||t.each)||0,r=r&&x<0?xG(r):r}return x=(S[e]-S.min)/S.max||0,wL(S.b+(r?r(x):x)*S.v)+S.u}},xb=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=wL(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(b6(r)?0:xf(r))}},xw=function(e,t){var r,n,i=wn(e);return!i&&b9(e)&&(r=i=e.radius||1e8,e.values?(n=!b6((e=xm(e.values))[0]))&&(r*=r):e=xb(e.increment)),xc(t,i?b5(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var i,a,o=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,u=0,c=e.length;c--;)(i=n?(i=e[c].x-o)*i+(a=e[c].y-s)*a:Math.abs(e[c]-o))<l&&(l=i,u=c);return u=!r||l<=r?e[u]:t,n||u===t||b6(t)?u:u+xf(t)}:xb(e))},xx=function(e,t,r,n){return xc(wn(e)?!t:!0===r?(r=0,!1):!n,function(){return wn(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},xS=function(e,t,r){return xc(r,function(r){return e[~~t(r)]})},xE=function(e){return e.replace(wi,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(wa);return xx(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},xD=function(e,t,r,n,i){var a=t-e,o=n-r;return xc(i,function(t){return r+((t-e)/a*o||0)})},xO=function(e,t,r){var n,i,a,o=e.labels,s=1e8;for(n in o)(i=o[n]-t)<0==!!r&&i&&s>(i=Math.abs(i))&&(a=n,s=i);return a},xP=function(e,t,r){var n,i,a,o=e.vars,s=o[t],l=b$,u=e._ctx;if(s)return n=o[t+"Params"],i=o.callbackScope||e,r&&wD.length&&wB(),u&&(b$=u),a=n?s.apply(i,n):s.call(i),b$=l,a},xj=function(e){return wQ(e),e.scrollTrigger&&e.scrollTrigger.kill(!!bV),1>e.progress()&&xP(e,"onInterrupt"),e},xk=[],xC=function(e){if(e)if(e=!e.name&&e.default||e,we()||e.headless){var t=e.name,r=b5(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:wb,render:Sg,add:x9,kill:Sb,modifier:Sv,rawVars:0},a={targetTest:0,get:0,getSetter:Sp,aliases:{},register:0};if(xB(),e!==n){if(wP[t])return;wz(n,wz(wK(e,i),a)),wH(n.prototype,wH(i,wK(e,a))),wP[n.prop=t]=n,e.targetTest&&(wC.push(n),wE[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}wv(t,n),e.register&&e.register(SL,n,SS)}else xk.push(e)},xT={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xA=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},xR=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p=e?b6(e)?[e>>16,e>>8&255,255&e]:0:xT.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xT[e])p=xT[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),e="#"+n+n+(i=e.charAt(2))+i+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(wo),t){if(~e.indexOf("="))return p=e.match(ws),r&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,i=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-i,p.length>3&&(p[3]*=1),p[0]=xA(o+1/3,n,i),p[1]=xA(o,n,i),p[2]=xA(o-1/3,n,i);else p=e.match(wo)||xT.transparent;p=p.map(Number)}return t&&!f&&(n=p[0]/255,l=((u=Math.max(n,i=p[1]/255,a=p[2]/255))+(c=Math.min(n,i,a)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===n?(i-a)/d+6*(i<a):u===i?(a-n)/d+2:(n-i)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),r&&p.length<4&&(p[3]=1),p},xI=function(e){var t=[],r=[],n=-1;return e.split(xN).forEach(function(e){var i=e.match(wl)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},xM=function(e,t,r){var n,i,a,o,s="",l=(e+s).match(xN),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xR(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(a=xI(e),(n=r.c).join(s)!==a.c.join(s)))for(o=(i=e.replace(xN,"1").split(wl)).length-1;c<o;c++)s+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:r).shift());if(!i)for(o=(i=e.split(xN)).length-1;c<o;c++)s+=i[c]+l[c];return s+i[o]},xN=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xT)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),xL=/hsl[a]?\(/,x_=function(e){var t,r=e.join(" ");if(xN.lastIndex=0,xN.test(r))return t=xL.test(r),e[1]=xM(e[1],t),e[0]=xM(e[0],t,xI(e[1])),!0},xF=(bT=Date.now,bA=500,bR=33,bM=bI=bT(),bN=1e3/240,bL=1e3/240,b_=[],bF=function e(t){var r,n,i,a,o=bT()-bM,s=!0===t;if((o>bA||o<0)&&(bI+=o-bR),bM+=o,((r=(i=bM-bI)-bL)>0||s)&&(a=++bj.frame,bk=i-1e3*bj.time,bj.time=i/=1e3,bL+=r+(r>=bN?4:bN-r),n=1),s||(bD=bO(e)),n)for(bC=0;bC<b_.length;bC++)b_[bC](i,bk,a,t)},bj={time:0,frame:0,tick:function(){bF(!0)},deltaRatio:function(e){return bk/(1e3/(e||60))},wake:function(){bG&&(!bz&&we()&&(bH=(bU=bz=window).document||{},wp.gsap=SL,(bU.gsapVersions||(bU.gsapVersions=[])).push(SL.version),wm(wh||bU.GreenSockGlobals||!bU.gsap&&bU||{}),xk.forEach(xC)),bP="u">typeof requestAnimationFrame&&requestAnimationFrame,bD&&bj.sleep(),bO=bP||function(e){return setTimeout(e,bL-1e3*bj.time+1|0)},bZ=1,bF(2))},sleep:function(){(bP?cancelAnimationFrame:clearTimeout)(bD),bZ=0,bO=wb},lagSmoothing:function(e,t){bR=Math.min(t||33,bA=e||1/0)},fps:function(e){bN=1e3/(e||240),bL=1e3*bj.time+bN},add:function(e,t,r){var n=t?function(t,r,i,a){e(t,r,i,a),bj.remove(n)}:e;return bj.remove(e),b_[r?"unshift":"push"](n),xB(),n},remove:function(e,t){~(t=b_.indexOf(e))&&b_.splice(t,1)&&bC>=t&&bC--},_listeners:b_}),xB=function(){return!bZ&&xF.wake()},xV={},x$=/^[\d.\-M][\d.\-,\s]/,xW=/["']/g,xU=function(e){for(var t,r,n,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)r=a[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[o]=isNaN(n)?n.replace(xW,"").trim():+n,o=r.substr(t+1).trim();return i},xz=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},xH=function(e){var t=(e+"").split("("),r=xV[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[xU(t[1])]:xz(e).split(",").map(wW)):xV._CE&&x$.test(e)?xV._CE("",e):r},xG=function(e){return function(t){return 1-e(1-t)}},xK=function(e,t){return e&&(b5(e)?e:xV[e]||xH(e))||t},xY=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,a={easeIn:t,easeOut:r,easeInOut:n};return wM(e,function(e){for(var t in xV[e]=wp[e]=a,xV[i=e.toLowerCase()]=r,a)xV[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=xV[e+"."+t]=a[t]}),a},xZ=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},xq=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/bQ*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*b3((e-o)*a)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:xZ(s);return a=bQ/a,l.config=function(r,n){return e(t,r,n)},l},xX=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:xZ(n);return i.config=function(r){return e(t,r)},i};wM("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;xY(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),xV.Linear.easeNone=xV.none=xV.Linear.easeIn,xY("Elastic",xq("in"),xq("out"),xq()),x2=2*(x1=1/2.75),x3=2.5*x1,xY("Bounce",function(e){return 1-x4(1-e)},x4=function(e){return e<x1?7.5625*e*e:e<x2?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<x3?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),xY("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),xY("Circ",function(e){return-(b1(1-e*e)-1)}),xY("Sine",function(e){return 1===e?1:-b2(e*bJ)+1}),xY("Back",xX("in"),xX("out"),xX()),xV.SteppedEase=xV.steps=wp.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+ +!t,i=+!!t,a=.99999999;return function(e){return((n*xd(0,a,e)|0)+i)*r}}},bX.ease=xV["quad.out"],wM("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return wT+=e+","+e+"Params,"});var xQ=function(e,t){this.id=b0++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wI,this.set=t?t.getSetter:Sp},xJ=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xa(this,+e.duration,1,1),this.data=e.data,b$&&(this._ctx=b$,b$.data.push(this)),bZ||xF.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xa(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xB(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(w6(this,e),!r._dp||r.parent||w8(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&w9(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),w$(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+w2(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+w2(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?w3(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?w4(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xd(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),w5(this),w0(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xB(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=wL(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&w9(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(b7(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?w4(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=wS);var t=bV;return bV=e,wV(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),bV=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xo(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xo(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xl(this,e),b7(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,b7(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var i=b5(e)?e:wU,a=function(){var e=t.then;t.then=null,r&&r(),b5(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){xj(this)},e}();wz(xJ.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var x0=function(e){function t(t,r){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=b7(t.sortChildren),bW&&w9(t.parent||bW,bw(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&w7(bw(n),t.scrollTrigger),n}bx(t,e);var r=t.prototype;return r.to=function(e,t,r){return xu(0,arguments,this),this},r.from=function(e,t,r){return xu(1,arguments,this),this},r.fromTo=function(e,t,r,n){return xu(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,wY(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Sl(e,t,xl(this,r),1),this},r.call=function(e,t,r){return w9(this,Sl.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,a,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=o,r.parent=this,new Sl(e,r,xl(this,i)),this},r.staggerFrom=function(e,t,r,n,i,a,o){return r.runBackwards=1,wY(r).immediateRender=b7(r.immediateRender),this.staggerTo(e,t,r,n,i,a,o)},r.staggerFromTo=function(e,t,r,n,i,a,o,s){return n.startAt=r,wY(n).immediateRender=b7(n.immediateRender),this.staggerTo(e,t,n,i,a,o,s)},r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p,h,m=this._time,y=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=e<=0?0:wL(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==bW&&v>y&&e>=0&&(v=y),v!==this._tTime||r||b){if(m!==this._time&&g&&(v+=this._time-m,e+=this._time-m),n=v,d=this._start,l=!(c=this._ts),b&&(g||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=wL(v%s),v===y?(o=this._repeat,n=g):((o=~~(f=wL(v/s)))&&o===f&&(n=g,o--),n>g&&(n=g)),f=w3(this._tTime,s),!m&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(n=g-n,h=1),o!==f&&!this._lock){var w=p&&1&f,x=w===(p&&1&o);if(o<f&&(w=!w),m=w?0:v%g?g:v,this._lock=1,this.render(m||(h?0:wL(o*s)),t,!g)._lock=0,this._tTime=v,!t&&this.parent&&xP(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1,f=o),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,y=this._tDur,x&&(this._lock=2,m=w?g:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xi(this,wL(m),wL(n)))&&(v-=n-(n=u._start)),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&v&&g&&!t&&!f&&(xP(this,"onStart"),this._tTime!==v))return this;if(n>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var S=e<0?e:n;i;){if(a=i._prev,(i._act||S<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(S-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(S-i._start)*i._ts,t,r||bV&&wV(i)),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=S?-1e-8:1e-8);break}}i=a}}if(u&&!t&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=d,w5(this),this.render(e,t,r);this._onUpdate&&!t&&xP(this,"onUpdate",!0),(v===y&&this._tTime>=this.totalDuration()||!v&&m)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(v===y&&this._ts>0||!v&&this._ts<0)&&wQ(this,1),t||e<0&&!m||!v&&!m&&y||(xP(this,v===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<y&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(b6(t)||(t=xl(this,t,e)),!bb(e,xJ)){if(wn(e))return e.forEach(function(e){return r.add(e,t)}),this;if(b4(e))return this.addLabel(e,t);if(!b5(e))return this;e=Sl.delayedCall(0,e)}return this!==e?w9(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],a=this._first;a;)a._start>=n&&(bb(a,Sl)?t&&i.push(a):(r&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,r)))),a=a._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return b4(e)?this.removeLabel(e):b5(e)?this.killTweensOf(e):(e.parent===this&&wX(this,e),e===this._recent&&(this._recent=this._last),wJ(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wL(xF.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=xl(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=Sl.delayedCall(0,t||wb,r);return n.data="isPause",this._hasPause=1,w9(this,n,xl(this,e))},r.removePause=function(e){var t=this._first;for(e=xl(this,e);t;)t._start===e&&"isPause"===t.data&&wQ(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)x5!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=xm(e),a=this._first,o=b6(t);a;)bb(a,Sl)?wF(a._targets,i)&&(o?(!x5||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&n.push(a):(r=a.getTweensOf(i,t)).length&&n.push.apply(n,r),a=a._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=xl(n,e),a=t,o=a.startAt,s=a.onStart,l=a.onStartParams,u=a.immediateRender,c=Sl.to(n,wz({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==e&&xa(c,e,0,1).render(c._time,!0,!0),r=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,wz({startAt:{time:xl(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),xO(this,xl(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),xO(this,xl(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,i=this._first,a=this.labels;for(e=wL(e);i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in a)a[n]>=r&&(a[n]+=e);return wJ(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),wJ(this)},r.totalDuration=function(e){var t,r,n,i=0,a=this._last,o=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(n=this.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&this._sort&&a._ts&&!this._lock?(this._lock=1,w9(this,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!this._dp||n&&n.smoothChildTiming)&&(this._start+=wL(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),o=0),a._end>i&&a._ts&&(i=a._end),a=t;xa(this,this===bW&&this._time>i?this._time:i,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(bW._ts&&(w$(bW,w4(e,bW)),bK=xF.frame),xF.frame>=wk){wk+=bq.autoSleep||120;var t=bW._first;if((!t||!t._ts)&&bq.autoSleep&&xF._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||xF.sleep()}}},t}(xJ);wz(x0.prototype,{_lock:0,_hasPause:0,_forcing:0});var x1,x2,x3,x4,x5,x6,x8=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m=new SS(this._pt,e,t,0,1,Sy,null,i),y=0,g=0;for(m.b=r,m.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=xE(n)),a&&(a(h=[r,n],e,t),r=h[0],n=h[1]),l=r.match(wu)||[];s=wu.exec(n);)c=s[0],d=n.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[g++]&&(f=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:f,c:"="===c.charAt(1)?w_(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=wu.lastIndex);return m.c=y<n.length?n.substring(y,n.length):"",m.fp=o,(wc.test(n)||p)&&(m.e=0),this._pt=m,m},x9=function(e,t,r,n,i,a,o,s,l,u){b5(n)&&(n=n(i||0,e,a));var c,d=e[t],f="get"!==r?r:b5(d)?l?e[t.indexOf("set")||!b5(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=b5(d)?l?Sd:Sc:Su;if(b4(n)&&(~n.indexOf("random(")&&(n=xE(n)),"="===n.charAt(1)&&((c=w_(f,n)+(xf(f)||0))||0===c)&&(n=c)),!u||f!==n||x6)return isNaN(f*n)||""===n?(d||t in e||wy(t,n),x8.call(this,e,t,f,n,p,s||bq.stringFilter,l)):(c=new SS(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?Sm:Sh,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},x7=function(e,t,r,n,i){if(b5(e)&&(e=Sa(e,i,t,r,n)),!b9(e)||e.style&&e.nodeType||wn(e)||wr(e))return b4(e)?Sa(e,i,t,r,n):e;var a,o={};for(a in e)o[a]=Sa(e[a],i,t,r,n);return o},Se=function(e,t,r,n,i,a){var o,s,l,u;if(wP[e]&&!1!==(o=new wP[e]).init(i,o.rawVars?t[e]:x7(t[e],n,i,a,r),r,n,a)&&(r._pt=s=new SS(r._pt,i,e,0,1,o.render,o,0,o.priority),r!==bY))for(l=r._ptLookup[r._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=s;return o},St=function e(t,r,n){var i,a,o,s,l,u,c,d,f,p,h,m,y,g=t.vars,v=g.ease,b=g.startAt,w=g.immediateRender,x=g.lazy,S=g.onUpdate,E=g.runBackwards,D=g.yoyoEase,O=g.keyframes,P=g.autoRevert,j=t._dur,k=t._startAt,C=t._targets,T=t.parent,A=T&&"nested"===T.data?T.vars.targets:C,R="auto"===t._overwrite&&!bB,I=t.timeline,M=g.easeReverse||D;if(!I||O&&v||(v="none"),t._ease=xK(v,bX.ease),t._rEase=M&&(xK(M)||t._ease),t._from=!I&&!!g.runBackwards,t._from&&(t.ratio=1),!I||O&&!g.stagger){if(m=(d=C[0]?wR(C[0]).harness:0)&&g[d.prop],i=wK(g,wE),k&&(k._zTime<0&&k.progress(1),r<0&&E&&w&&!P?k.render(-1,!0):k.revert(E&&j?wx:ww),k._lazy=0),b){if(wQ(t._startAt=Sl.set(C,wz({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!k&&b7(x),startAt:null,delay:0,onUpdate:S&&function(){return xP(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(bV||!w&&!P)&&t._startAt.revert(wx),w&&j&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(E&&j&&!k)if(r&&(w=!1),o=wz({overwrite:!1,data:"isFromStart",lazy:w&&!k&&b7(x),immediateRender:w,stagger:0,parent:T},i),m&&(o[d.prop]=m),wQ(t._startAt=Sl.set(C,o)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(bV?t._startAt.revert(wx):t._startAt.render(-1,!0)),t._zTime=r,w){if(!r)return}else e(t._startAt,1e-8,1e-8);for(a=0,t._pt=t._ptCache=0,x=j&&b7(x)||x&&!j;a<C.length;a++){if(c=(l=C[a])._gsap||wA(C)[a]._gsap,t._ptLookup[a]=p={},wO[c.id]&&wD.length&&wB(),h=A===C?a:A.indexOf(l),d&&!1!==(f=new d).init(l,m||i,t,h,A)&&(t._pt=s=new SS(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||m)for(o in i)wP[o]&&(f=Se(o,i,t,h,l,A))?f.priority&&(u=1):p[o]=s=x9.call(t,l,o,"get",i[o],h,A,0,g.stringFilter);t._op&&t._op[a]&&t.kill(l,t._op[a]),R&&t._pt&&(x5=t,bW.killTweensOf(l,p,t.globalTime(r)),y=!t.parent,x5=0),t._pt&&x&&(wO[c.id]=1)}u&&Sx(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,O&&r<=0&&I.render(1e8,!0,!0)},Sr=function(e,t,r,n,i,a,o,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return x6=1,e.vars[t]="+=0",St(e,o),x6=0,s?wg(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(n||0===n)&&!i?n:l.s+(n||0)+a*l.c,l.c=r-l.s,u.e&&(u.e=wN(r)+xf(u.e)),u.b&&(u.b=l.s+xf(u.b))},Sn=function(e,t){var r,n,i,a,o=e[0]?wR(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=wH({},t),s)if(n in r)for(i=(a=s[n].split(",")).length;i--;)r[a[i]]=r[n];return r},Si=function(e,t,r,n){var i,a,o=t.ease||n||"power1.inOut";if(wn(t))a=r[e]||(r[e]=[]),t.forEach(function(e,r){return a.push({t:r/(t.length-1)*100,v:e,e:o})});else for(i in t)a=r[i]||(r[i]=[]),"ease"===i||a.push({t:parseFloat(e),v:t[i],e:o})},Sa=function(e,t,r,n,i){return b5(e)?e.call(t,r,n,i):b4(e)&&~e.indexOf("random(")?xE(e):e},So=wT+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Ss={};wM(So+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return Ss[e]=1});var Sl=function(e){function t(t,r,n,i){"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,s,l,u,c,d,f,p=e.call(this,i?r:wY(r))||this,h=p.vars,m=h.duration,y=h.delay,g=h.immediateRender,v=h.stagger,b=h.overwrite,w=h.keyframes,x=h.defaults,S=h.scrollTrigger,E=r.parent||bW,D=(wn(t)||wr(t)?b6(t[0]):"length"in r)?[t]:xm(t);if(p._targets=D.length?wA(D):wg("GSAP target "+t+" not found. https://gsap.com",!bq.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,w||v||wt(m)||wt(y)){var O=(r=p.vars).easeReverse||r.yoyoEase;if((a=p.timeline=new x0({data:"nested",defaults:x||{},targets:E&&"nested"===E.data?E.vars.targets:D})).kill(),a.parent=a._dp=bw(p),a._start=0,v||wt(m)||wt(y)){if(l=D.length,d=v&&xv(v),b9(v))for(u in v)~So.indexOf(u)&&(f||(f={}),f[u]=v[u]);for(o=0;o<l;o++)(s=wK(r,Ss)).stagger=0,O&&(s.easeReverse=O),f&&wH(s,f),c=D[o],s.duration=+Sa(m,bw(p),o,c,D),s.delay=(+Sa(y,bw(p),o,c,D)||0)-p._delay,!v&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),a.to(c,s,d?d(o,c,D):0),a._ease=xV.none;a.duration()?m=y=0:p.timeline=0}else if(w){wY(wz(a.vars.defaults,{ease:"none"})),a._ease=xK(w.ease||r.ease||"none");var P,j,k,C=0;if(wn(w))w.forEach(function(e){return a.to(D,e,">")}),a.duration();else{for(u in s={},w)"ease"===u||"easeEach"===u||Si(u,w[u],s,w.easeEach);for(u in s)for(o=0,P=s[u].sort(function(e,t){return e.t-t.t}),C=0;o<P.length;o++)(k={ease:(j=P[o]).e,duration:(j.t-(o?P[o-1].t:0))/100*m})[u]=j.v,a.to(D,k,C),C+=k.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||p.duration(m=a.duration())}else p.timeline=0;return!0!==b||bB||(x5=bw(p),bW.killTweensOf(D),x5=0),w9(E,bw(p),n),r.reversed&&p.reverse(),r.paused&&p.paused(!0),(g||!m&&!w&&p._start===wL(E._time)&&b7(g)&&function e(t){return!t||t._ts&&e(t.parent)}(bw(p))&&"nested"!==E.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&w7(bw(p),S),p}bx(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,h=e<0,m=e>f-1e-8&&!h?f:e<1e-8?0:e;if(p){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(n=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*o+e,t,r);if(n=wL(m%o),m===f?(a=this._repeat,n=p):(a=~~(s=wL(m/o)))&&a===s?(n=p,a--):n>p&&(n=p),(l=this._yoyo&&1&a)&&(n=p-n),s=w3(this._tTime,o),n===d&&!r&&this._initted&&a===s)return this._tTime=m,this;a!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(wL(o*a),!0).invalidate()._lock=0)}if(!this._initted){if(xe(this,h?e:n,r,t,m))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(e,t,r)}if(this._rEase){var y=n<d;if(y!==this._inv){var g=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=g?(y?-1:1)/g:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/p);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(xP(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(e<0?e:c._dur*c._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(h&&w1(this,e,t,r),xP(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&xP(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(h&&!this._onUpdate&&w1(this,e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&wQ(this,1),!t&&!(h&&!d)&&(m||d||l)&&(xP(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else xn(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,i){bZ||xF.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||St(this,a),Sr(this,e,t,r,n,this._ease(a/this._dur),a,i))?this.resetTo(e,t,r,n,1):(w6(this,0),this.parent||wq(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xj(this):this.scrollTrigger&&this.scrollTrigger.kill(!!bV),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,x5&&!0!==x5.vars.overwrite)._first||xj(this),this.parent&&r!==this.timeline.totalDuration()&&xa(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,a,o,s,l,u,c=this._targets,d=e?xm(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&wZ(c,d))return"all"===t&&(this._pt=0),xj(this);for(n=this._op=this._op||[],"all"!==t&&(b4(t)&&(s={},wM(t,function(e){return s[e]=1}),t=s),t=Sn(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in i=f[u],"all"===t?(n[u]=t,o=i,a={}):(a=n[u]=n[u]||{},o=t),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||wX(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&xj(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return xu(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return xu(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return bW.killTweensOf(e,t,r)},t}(xJ);wz(Sl.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wM("staggerTo,staggerFrom,staggerFromTo",function(e){Sl[e]=function(){var t=new x0,r=xp.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var Su=function(e,t,r){return e[t]=r},Sc=function(e,t,r){return e[t](r)},Sd=function(e,t,r,n){return e[t](n.fp,r)},Sf=function(e,t,r){return e.setAttribute(t,r)},Sp=function(e,t){return b5(e[t])?Sc:b8(e[t])&&e.setAttribute?Sf:Su},Sh=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Sm=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Sy=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Sg=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Sv=function(e,t,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(e,t,r),a=i},Sb=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):wX(this,n,"_pt"),n=r;return!t},Sw=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Sx=function(e){for(var t,r,n,i,a=e._pt;a;){for(t=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=t}e._pt=n},SS=function(){function e(e,t,r,n,i,a,o,s,l){this.t=t,this.s=n,this.c=i,this.p=r,this.r=a||Sh,this.d=o||this,this.set=s||Su,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=Sw,this.m=e,this.mt=r,this.tween=t},e}();wM(wT+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return wE[e]=1}),wp.TweenMax=wp.TweenLite=Sl,wp.TimelineLite=wp.TimelineMax=x0,bW=new x0({sortChildren:!1,defaults:bX,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),bq.stringFilter=x_;var SE=[],SD={},SO=[],SP=0,Sj=0,Sk=function(e){return(SD[e]||SO).map(function(e){return e()})},SC=function(){var e=Date.now(),t=[];e-SP>2&&(Sk("matchMediaInit"),SE.forEach(function(e){var r,n,i,a,o=e.queries,s=e.conditions;for(n in o)(r=bU.matchMedia(o[n]).matches)&&(i=1),r!==s[n]&&(s[n]=r,a=1);a&&(e.revert(),i&&t.push(e))}),Sk("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),SP=e,Sk("matchMedia"))},ST=function(){function e(e,t){this.selector=t&&xy(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Sj++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){b5(e)&&(r=t,t=e,e=b5);var n=this,i=function(){var e,i=b$,a=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=xy(r)),b$=n,e=t.apply(n,arguments),b5(e)&&n._r.push(e),b$=i,n.selector=a,n.isReverted=!1,e};return n.last=i,e===b5?i(n,function(e){return n.add(null,e)}):e?n[e]=i:i},t.ignore=function(e){var t=b$;b$=null,e(this),b$=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return bb(r,e)?t.push.apply(t,r.getTweens()):bb(r,Sl)&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e){for(var n,i=r.getTweens(),a=r.data.length;a--;)"isFlip"===(n=r.data[a]).data&&(n.revert(),n.getChildren(!0,!0,!1).forEach(function(e){return i.splice(i.indexOf(e),1)}));for(i.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),a=r.data.length;a--;)bb(n=r.data[a],x0)?"nested"!==n.data&&(n.scrollTrigger&&n.scrollTrigger.revert(),n.kill()):!bb(n,Sl)&&n.revert&&n.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=SE.length;o--;)SE[o].id===this.id&&SE.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),SA=function(){function e(e){this.contexts=[],this.scope=e,b$&&b$.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){b9(e)||(e={matches:e});var n,i,a,o=new ST(0,r||this.scope),s=o.conditions={};for(i in b$&&!o.selector&&(o.selector=b$.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===i?a=1:(n=bU.matchMedia(e[i]))&&(0>SE.indexOf(o)&&SE.push(o),(s[i]=n.matches)&&(a=1),n.addListener?n.addListener(SC):n.addEventListener("change",SC));return a&&t(o,function(e){return o.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),SR={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return xC(e)})},timeline:function(e){return new x0(e)},getTweensOf:function(e,t){return bW.getTweensOf(e,t)},getProperty:function(e,t,r,n){b4(e)&&(e=xm(e)[0]);var i=wR(e||{}).get,a=r?wU:wW;return"native"===r&&(r=""),e?t?a((wP[t]&&wP[t].get||i)(e,t,r,n)):function(t,r,n){return a((wP[t]&&wP[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=xm(e)).length>1){var n=e.map(function(e){return SL.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var a=wP[t],o=wR(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=a?function(t){var n=new a;bY._pt=0,n.init(e,r?t+r:t,bY,0,[e]),n.render(1,n),bY._pt&&Sg(1,bY)}:o.set(e,s);return a?l:function(t){return l(e,s,r?t+r:t,o,1)}},quickTo:function(e,t,r){var n,i=SL.to(e,wz(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(e,r,n){return i.resetTo(t,e,r,n)};return a.tween=i,a},isTweening:function(e){return bW.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=xK(e.ease,bX.ease)),wG(bX,e||{})},config:function(e){return wG(bq,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!wP[e]&&!wp[e]&&wg(t+" effect requires "+e+" plugin.")}),wj[t]=function(e,t,n){return r(xm(e),wz(t||{},i),n)},a&&(x0.prototype[t]=function(e,r,n){return this.add(wj[t](e,b9(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){xV[e]=xK(t)},parseEase:function(e,t){return arguments.length?xK(e,t):xV},getById:function(e){return bW.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new x0(e);for(i.smoothChildTiming=b7(e.smoothChildTiming),bW.remove(i),i._dp=0,i._time=i._tTime=bW._time,r=bW._first;r;)n=r._next,(t||!(!r._dur&&bb(r,Sl)&&r.vars.onComplete===r._targets[0]))&&w9(i,r,r._start-r._delay),r=n;return w9(bW,i,0),i},context:function(e,t){return e?new ST(e,t):b$},matchMedia:function(e){return new SA(e)},matchMediaRefresh:function(){return SE.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||SC()},addEventListener:function(e,t){var r=SD[e]||(SD[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=SD[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var i=r-t;return wn(t)?xS(t,e(0,t.length),r):xc(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,a=2*i;return wn(t)?xS(t,e(0,t.length-1),r):xc(n,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},distribute:xv,random:xx,snap:xw,normalize:function(e,t,r){return xD(e,t,0,1,r)},getUnit:xf,clamp:function(e,t,r){return xc(r,function(r){return xd(e,t,r)})},splitColor:xR,toArray:xm,selector:xy,mapRange:xD,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||xf(r))}},interpolate:function e(t,r,n,i){var a=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!a){var o,s,l,u,c,d=b4(t),f={};if(!0===n&&(i=1)&&(n=null),d)t={p:t},r={p:r};else if(wn(t)&&!wn(r)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,a=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},n=r}else i||(t=wH(wn(t)?[]:{},t));if(!l){for(o in r)x9.call(f,t,o,"get",r[o]);a=function(e){return Sg(e,f)||(d?t.p:t)}}}return xc(n,a)},shuffle:xg},install:wm,effects:wj,ticker:xF,updateRoot:x0.updateRoot,plugins:wP,globalTimeline:bW,core:{PropTween:SS,globals:wv,Tween:Sl,Timeline:x0,Animation:xJ,getCache:wR,_removeLinkedListItem:wX,reverting:function(){return bV},context:function(e){return e&&b$&&(b$.data.push(e),e._ctx=b$),b$},suppressOverwrites:function(e){return bB=e}}};wM("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return SR[e]=Sl[e]}),xF.add(x0.updateRoot),bY=SR.to({},{duration:0});var SI=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},SM=function(e,t){var r,n,i,a=e._targets;for(r in t)for(n=a.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=SI(i,r)),i&&i.modifier&&i.modifier(t[r],e,a[n],r))},SN=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(b4(r)&&(n={},wM(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}SM(e,r)}}}},SL=SR.registerPlugin({name:"attr",init:function(e,t,r,n,i){var a,o,s;for(a in this.tween=r,t)s=e.getAttribute(a)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[a],n,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)bV?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},SN("roundProps",xb),SN("modifiers"),SN("snap",xw))||SR;function S_(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}Sl.version=x0.version=SL.version="3.15.0",bG=1,we()&&xB(),xV.Power0,xV.Power1,xV.Power2,xV.Power3,xV.Power4,xV.Linear,xV.Quad,xV.Cubic,xV.Quart,xV.Quint,xV.Strong,xV.Elastic,xV.Back,xV.SteppedEase,xV.Bounce,xV.Sine,xV.Expo,xV.Circ;var SF,SB,SV,S$,SW,SU,Sz,SH={},SG=180/Math.PI,SK=Math.PI/180,SY=Math.atan2,SZ=/([A-Z])/g,Sq=/(left|right|width|margin|padding|x)/i,SX=/[\s,\(]\S/,SQ={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},SJ=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},S0=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},S1=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},S2=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},S3=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},S4=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},S5=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},S6=function(e,t,r){return e.style[t]=r},S8=function(e,t,r){return e.style.setProperty(t,r)},S9=function(e,t,r){return e._gsap[t]=r},S7=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Ee=function(e,t,r,n,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},Et=function(e,t,r,n,i){var a=e._gsap;a[t]=r,a.renderTransform(i,a)},Er="transform",En=Er+"Origin",Ei=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in SH&&a){if(this.tfm=this.tfm||{},"transform"===t)return SQ.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=SQ[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=ES(i,e)}):this.tfm[t]=o.x?o[t]:ES(i,t),t===En&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Er)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(En,r,"")),t=Er}(a||r)&&this.props.push(t,r,a[t])},Ea=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Eo=function(){var e,t,r=this.props,n=this.target,i=n.style,a=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(SZ,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=SU())&&e.isStart||i[Er]||(Ea(i),a.zOrigin&&i[En]&&(i[En]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},Es=function(e,t){var r={target:e,props:[],revert:Eo,save:Ei};return e._gsap||SL.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},El=function(e,t){var r=SF.createElementNS?SF.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):SF.createElement(e);return r&&r.style?r:SF.createElement(e)},Eu=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(SZ,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,Ed(r)||r,1)||""},Ec="O,Moz,ms,Ms,Webkit".split(","),Ed=function(e,t,r){var n=(t||S$).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Ec[i]+e in n););return i<0?null:(3===i?"ms":i>=0?Ec[i]:"")+e},Ef=function(){"u">typeof window&&window.document&&(SB=(SF=window.document).documentElement,S$=El("div")||{style:{}},El("div"),En=(Er=Ed(Er))+"Origin",S$.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Sz=!!Ed("perspective"),SU=SL.core.reverting,SV=1)},Ep=function(e){var t,r=e.ownerSVGElement,n=El("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",n.appendChild(i),SB.appendChild(n);try{t=i.getBBox()}catch(e){}return n.removeChild(i),SB.removeChild(n),t},Eh=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Em=function(e){var t,r;try{t=e.getBBox()}catch(n){t=Ep(e),r=1}return t&&(t.width||t.height)||r||(t=Ep(e)),!t||t.width||t.x||t.y?t:{x:+Eh(e,["x","cx","x1"])||0,y:+Eh(e,["y","cy","y1"])||0,width:0,height:0}},Ey=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Em(e))},Eg=function(e,t){if(t){var r,n=e.style;t in SH&&t!==En&&(t=Er),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(SZ,"-$1").toLowerCase())):n.removeAttribute(t)}},Ev=function(e,t,r,n,i,a){var o=new SS(e._pt,t,r,0,1,a?S5:S4);return e._pt=o,o.b=n,o.e=i,e._props.push(r),o},Eb={deg:1,rad:1,turn:1},Ew={grid:1,flex:1},Ex=function e(t,r,n,i){var a,o,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=S$.style,f=Sq.test(r),p="svg"===t.tagName.toLowerCase(),h=(p?"client":"offset")+(f?"Width":"Height"),m="px"===i,y="%"===i;if(i===c||!u||Eb[i]||Eb[c])return u;if("px"===c||m||(u=e(t,r,n,"px")),l=t.getCTM&&Ey(t),(y||"%"===c)&&(SH[r]||~r.indexOf("adius")))return a=l?t.getBBox()[f?"width":"height"]:t[h],wN(y?u/a*100:u/100*a);if(d[f?"width":"height"]=100+(m?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==SF&&o.appendChild||(o=SF.body),(s=o._gsap)&&y&&s.width&&f&&s.time===xF.time&&!s.uncache)return wN(u/s.width*100);if(y&&("height"===r||"width"===r)){var g=t.style[r];t.style[r]=100+i,a=t[h],g?t.style[r]=g:Eg(t,r)}else(y||"%"===c)&&!Ew[Eu(o,"display")]&&(d.position=Eu(t,"position")),o===t&&(d.position="static"),o.appendChild(S$),a=S$[h],o.removeChild(S$),d.position="absolute";return f&&y&&((s=wR(o)).time=xF.time,s.width=o[h]),wN(m?a*u/100:a&&u?100/a*u:0)},ES=function(e,t,r,n){var i;return SV||Ef(),t in SQ&&"transform"!==t&&~(t=SQ[t]).indexOf(",")&&(t=t.split(",")[0]),SH[t]&&"transform"!==t?(i=EM(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:EN(Eu(e,En))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Ej[t]&&Ej[t](e,t,r)||Eu(e,t)||wI(e,t)||+("opacity"===t)),r&&!~(i+"").trim().indexOf(" ")?Ex(e,t,i,r)+r:i},EE=function(e,t,r,n){if(!r||"none"===r){var i=Ed(t,e,1),a=i&&Eu(e,i,1);a&&a!==r?(t=i,r=a):"borderColor"===t&&(r=Eu(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,h,m,y,g=new SS(this._pt,e.style,t,0,1,Sy),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=Eu(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=Eu(e,t)||n,d?e.style[t]=d:Eg(e,t)),x_(o=[r,n]),r=o[0],n=o[1],l=r.match(wl)||[],(n.match(wl)||[]).length){for(;s=wl.exec(n);)f=s[0],h=n.substring(v,s.index),c?c=(c+1)%5:("rgba("===h.substr(-5)||"hsla("===h.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=w_(u,f)+y),p=parseFloat(f),m=f.substr((p+"").length),v=wl.lastIndex-m.length,m||(m=m||bq.units[t]||y,v===n.length&&(n+=m,g.e+=m)),y!==m&&(u=Ex(e,t,d,m)||0),g._pt={_next:g._pt,p:h||1===b?h:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===t&&"none"===n?S5:S4;return wc.test(n)&&(g.e=0),this._pt=g,g},ED={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},EO=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=ED[r]||r,t[1]=ED[n]||n,t.join(" ")},EP=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)SH[r=s[i]]&&(n=1,r="transformOrigin"===r?En:Er),Eg(a,r);n&&(Eg(a,Er),l&&(l.svg&&a.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",EM(a,1),l.uncache=1,Ea(o)))}},Ej={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var a=e._pt=new SS(e._pt,t,r,0,0,EP);return a.u=n,a.pr=-10,a.tween=i,e._props.push(r),1}}},Ek=[1,0,0,1,0,0],EC={},ET=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},EA=function(e){var t=Eu(e,Er);return ET(t)?Ek:t.substr(7).match(ws).map(wN)},ER=function(e,t){var r,n,i,a,o=e._gsap||wR(e),s=e.style,l=EA(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ek:l:(l!==Ek||e.offsetParent||e===SB||o.svg||(i=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,n=e.nextElementSibling,SB.appendChild(e)),l=EA(e),i?s.display=i:Eg(e,"display"),a&&(n?r.insertBefore(e,n):r?r.appendChild(e):SB.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},EI=function(e,t,r,n,i,a){var o,s,l,u,c=e._gsap,d=i||ER(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,h=c.xOffset||0,m=c.yOffset||0,y=d[0],g=d[1],v=d[2],b=d[3],w=d[4],x=d[5],S=t.split(" "),E=parseFloat(S[0])||0,D=parseFloat(S[1])||0;r?d!==Ek&&(s=y*b-g*v)&&(l=b/s*E+-v/s*D+(v*x-b*w)/s,u=-g/s*E+y/s*D-(y*x-g*w)/s,E=l,D=u):(E=(o=Em(e)).x+(~S[0].indexOf("%")?E/100*o.width:E),D=o.y+(~(S[1]||S[0]).indexOf("%")?D/100*o.height:D)),n||!1!==n&&c.smooth?(c.xOffset=h+((w=E-f)*y+(x=D-p)*v)-w,c.yOffset=m+(w*g+x*b)-x):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=D,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[En]="0px 0px",a&&(Ev(a,c,"xOrigin",f,E),Ev(a,c,"yOrigin",p,D),Ev(a,c,"xOffset",h,c.xOffset),Ev(a,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+D)},EM=function(e,t){var r=e._gsap||new xQ(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A,R,I,M,N=e.style,L=r.scaleX<0,_=getComputedStyle(e),F=Eu(e,En)||"0";return n=i=a=l=u=c=d=f=p=0,o=s=1,r.svg=!!(e.getCTM&&Ey(e)),_.translate&&(("none"!==_.translate||"none"!==_.scale||"none"!==_.rotate)&&(N[Er]=("none"!==_.translate?"translate3d("+(_.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==_.rotate?"rotate("+_.rotate+") ":"")+("none"!==_.scale?"scale("+_.scale.split(" ").join(",")+") ":"")+("none"!==_[Er]?_[Er]:"")),N.scale=N.rotate=N.translate="none"),y=ER(e,r.svg),r.svg&&(r.uncache?(j=e.getBBox(),F=r.xOrigin-j.x+"px "+(r.yOrigin-j.y)+"px",P=""):P=!t&&e.getAttribute("data-svg-origin"),EI(e,P||F,!!P||r.originIsAbsolute,!1!==r.smooth,y)),h=r.xOrigin||0,m=r.yOrigin||0,y!==Ek&&(w=y[0],x=y[1],S=y[2],E=y[3],n=D=y[4],i=O=y[5],6===y.length?(o=Math.sqrt(w*w+x*x),s=Math.sqrt(E*E+S*S),l=w||x?SY(x,w)*SG:0,(d=S||E?SY(S,E)*SG+l:0)&&(s*=Math.abs(Math.cos(d*SK))),r.svg&&(n-=h-(h*w+m*S),i-=m-(h*x+m*E))):(M=y[6],R=y[7],C=y[8],T=y[9],A=y[10],I=y[11],n=y[12],i=y[13],a=y[14],u=(g=SY(M,A))*SG,g&&(P=D*(v=Math.cos(-g))+C*(b=Math.sin(-g)),j=O*v+T*b,k=M*v+A*b,C=-(D*b)+C*v,T=-(O*b)+T*v,A=-(M*b)+A*v,I=-(R*b)+I*v,D=P,O=j,M=k),c=(g=SY(-S,A))*SG,g&&(P=w*(v=Math.cos(-g))-C*(b=Math.sin(-g)),j=x*v-T*b,k=S*v-A*b,I=E*b+I*v,w=P,x=j,S=k),l=(g=SY(x,w))*SG,g&&(P=w*(v=Math.cos(g))+x*(b=Math.sin(g)),j=D*v+O*b,x=x*v-w*b,O=O*v-D*b,w=P,D=j),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=wN(Math.sqrt(w*w+x*x+S*S)),s=wN(Math.sqrt(O*O+M*M)),d=Math.abs(g=SY(D,O))>2e-4?g*SG:0,p=I?1/(I<0?-I:I):0),r.svg&&(P=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!ET(Eu(e,Er)),P&&e.setAttribute("transform",P))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=wN(o),r.scaleY=wN(s),r.rotation=wN(l)+"deg",r.rotationX=wN(u)+"deg",r.rotationY=wN(c)+"deg",r.skewX=d+"deg",r.skewY=f+"deg",r.transformPerspective=p+"px",(r.zOrigin=parseFloat(F.split(" ")[2])||!t&&r.zOrigin||0)&&(N[En]=EN(F)),r.xOffset=r.yOffset=0,r.force3D=bq.force3D,r.renderTransform=r.svg?EV:Sz?EB:E_,r.uncache=0,r},EN=function(e){return(e=e.split(" "))[0]+" "+e[1]},EL=function(e,t,r){var n=xf(t);return wN(parseFloat(t)+parseFloat(Ex(e,"x",r+"px",n)))+n},E_=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,EB(e,t)},EF="0deg",EB=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,a=r.x,o=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,p=r.scaleX,h=r.scaleY,m=r.transformPerspective,y=r.force3D,g=r.target,v=r.zOrigin,b="",w="auto"===y&&e&&1!==e||!0===y;if(v&&(c!==EF||u!==EF)){var x,S=parseFloat(u)*SK,E=Math.sin(S),D=Math.cos(S);a=EL(g,a,-(E*(x=Math.cos(S=parseFloat(c)*SK))*v)),o=EL(g,o,-(-Math.sin(S)*v)),s=EL(g,s,-(D*x*v)+v)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==EF&&(b+="rotate("+l+") "),u!==EF&&(b+="rotateY("+u+") "),c!==EF&&(b+="rotateX("+c+") "),(d!==EF||f!==EF)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==h)&&(b+="scale("+p+", "+h+") "),g.style[Er]=b||"translate(0, 0)"},EV=function(e,t){var r,n,i,a,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,h=s.skewY,m=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,E=parseFloat(c),D=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(h=parseFloat(h))&&(p+=h=parseFloat(h),f+=h),f||p?(f*=SK,p*=SK,r=Math.cos(f)*m,n=Math.sin(f)*m,i=-(Math.sin(f-p)*y),a=Math.cos(f-p)*y,p&&(h*=SK,i*=o=Math.sqrt(1+(o=Math.tan(p-h))*o),a*=o,h&&(r*=o=Math.sqrt(1+(o=Math.tan(h))*o),n*=o)),r=wN(r),n=wN(n),i=wN(i),a=wN(a)):(r=m,a=y,n=i=0),(E&&!~(c+"").indexOf("px")||D&&!~(d+"").indexOf("px"))&&(E=Ex(g,"x",c,"px"),D=Ex(g,"y",d,"px")),(v||b||w||x)&&(E=wN(E+v-(v*r+b*i)+w),D=wN(D+b-(v*n+b*a)+x)),(l||u)&&(E=wN(E+l/100*(o=g.getBBox()).width),D=wN(D+u/100*o.height)),o="matrix("+r+","+n+","+i+","+a+","+E+","+D+")",g.setAttribute("transform",o),S&&(g.style[Er]=o)},E$=function(e,t,r,n,i){var a,o,s=b4(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?SG:1)-n,u=n+l+"deg";return s&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new SS(e._pt,t,r,n,l,S0),o.e=u,o.u="deg",e._props.push(r),o},EW=function(e,t){for(var r in t)e[r]=t[r];return e},EU=function(e,t,r){var n,i,a,o,s,l,u,c=EW({},r._gsap),d=r.style;for(i in c.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),d[Er]=t,n=EM(r,1),Eg(r,Er),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Er],d[Er]=t,n=EM(r,1),d[Er]=a),SH)(a=c[i])!==(o=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(s=xf(a)!==(u=xf(o))?Ex(r,i,a,u):parseFloat(a),l=parseFloat(o),e._pt=new SS(e._pt,n,i,s,l-s,SJ),e._pt.u=u||0,e._props.push(i));EW(n,c)};wM("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",i="Left",a=(t<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return t<2?e+r:"border"+r+e});Ej[t>1?"border"+e:e]=function(e,t,r,n,i){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return ES(e,t,r)})).join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,i)}});var Ez={name:"css",register:Ef,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S=this._props,E=e.style,D=r.vars.startAt;for(d in SV||Ef(),this.styles=this.styles||Es(e),w=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(o=t[d],!(wP[d]&&Se(d,t,r,n,e,i)))){if(u=void 0===o?"undefined":S_(o),c=Ej[d],"function"===u&&(u=void 0===(o=o.call(r,n,e,i))?"undefined":S_(o)),"string"===u&&~o.indexOf("random(")&&(o=xE(o)),c)c(this,e,d,o,r)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",xN.lastIndex=0,!xN.test(a)&&(f=xf(a),(p=xf(o))?f!==p&&(a=Ex(e,d,a,p)+p):f&&(o+=f)),this.add(E,"setProperty",a,o,n,i,0,0,d),S.push(d),w.push(d,0,E[d]);else if("undefined"!==u){if(D&&d in D?(b4(a="function"==typeof D[d]?D[d].call(r,n,e,i):D[d])&&~a.indexOf("random(")&&(a=xE(a)),xf(a+"")||"auto"===a||(a+=bq.units[d]||xf(ES(e,d))||""),"="===(a+"").charAt(1)&&(a=ES(e,d))):a=ES(e,d),l=parseFloat(a),(h="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in SQ&&("autoAlpha"===d&&(1===l&&"hidden"===ES(e,"visibility")&&s&&(l=0),w.push("visibility",0,E.visibility),Ev(this,E,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=SQ[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in SH){if(this.styles.save(d),x=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=Eu(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=o,o=Eu(e,"perspective"),O?e.style.perspective=O:Eg(e,"perspective")}s=parseFloat(o)}if(y||((g=e._gsap).renderTransform&&!t.parseTransform||EM(e,t.parseTransform),v=!1!==t.smoothOrigin&&g.smooth,(y=this._pt=new SS(this._pt,E,Er,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new SS(this._pt,g,"scaleY",g.scaleY,(h?w_(g.scaleY,h+s):s)-g.scaleY||0,SJ),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(En,0,E[En]),o=EO(o),g.svg?EI(e,o,0,v,0,this):((p=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&Ev(this,g,"zOrigin",g.zOrigin,p),Ev(this,E,d,EN(a),EN(o)));continue}else if("svgOrigin"===d){EI(e,o,1,v,0,this);continue}else if(d in EC){E$(this,g,d,l,h?w_(l,h+o):o);continue}else if("smoothOrigin"===d){Ev(this,g,"smooth",g.smooth,o);continue}else if("force3D"===d){g[d]=o;continue}else if("transform"===d){EU(this,o,e);continue}}else d in E||(d=Ed(d)||d);if(m||(s||0===s)&&(l||0===l)&&!SX.test(o)&&d in E)f=(a+"").substr((l+"").length),s||(s=0),p=xf(o)||(d in bq.units?bq.units[d]:f),f!==p&&(l=Ex(e,d,a,p)),this._pt=new SS(this._pt,m?g:E,d,l,(h?w_(l,h+s):s)-l,!m&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?S3:SJ),this._pt.u=p||0,m&&x!==o?(this._pt.b=a,this._pt.e=x,this._pt.r=S2):f!==p&&"%"!==p&&(this._pt.b=a,this._pt.r=S1);else if(d in E)EE.call(this,e,d,a,h?h+o:o);else if(d in e)this.add(e,d,a||e[d],h?h+o:o,n,i);else if("parseTransform"!==d){wy(d,o);continue}m||(d in E?w.push(d,0,E[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,a||e[d])),S.push(d)}}b&&Sx(this)},render:function(e,t){if(t.tween._time||!SU())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:ES,aliases:SQ,getSetter:function(e,t,r){var n=SQ[t];return n&&0>n.indexOf(",")&&(t=n),t in SH&&t!==En&&(e._gsap.x||ES(e,"x"))?r&&SW===r?"scale"===t?S7:S9:(SW=r||{},"scale"===t?Ee:Et):e.style&&!b8(e.style[t])?S6:~t.indexOf("-")?S8:Sp(e,t)},core:{_removeProperty:Eg,_getMatrix:ER}};SL.utils.checkPrefix=Ed,SL.core.getStyleSaver=Es,O6=wM("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(O5="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){SH[e]=1}),wM(O5,function(e){bq.units[e]="deg",EC[e]=1}),SQ[O6[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+O5,wM("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");SQ[t[1]]=O6[t[0]]}),wM("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){bq.units[e]="px"}),SL.registerPlugin(Ez);var EH=SL.registerPlugin(Ez)||SL;function EG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function EK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EY(e){return function(e){if(Array.isArray(e))return EG(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return EG(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EG(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}EH.core.Tween;var EZ=function(e){var t=e.isOpen,r=e.onClose,n=e.position,i=void 0===n?"right":n,a=e.colors,o=e.items,s=e.socialItems,l=e.displaySocials,u=e.displayItemNumbering,c=e.accentColor,d=e.closeOnClickAway,f=void 0===d||d,p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=(0,m.useRef)([]),b=(0,m.useRef)(null),w=(0,m.useRef)(null),x=(0,m.useRef)(null),S=(0,m.useRef)(!1),E=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=EH.context(function(){var e=p.current,t=g.current;if(e){var r=[];t&&(r=Array.from(t.querySelectorAll(".sm-prelayer"))),v.current=r;var n="left"===i?-100:100;EH.set([e].concat(EY(r)),{xPercent:n,opacity:1}),t&&EH.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[i]);var D=(0,m.useCallback)(function(){var e=p.current,t=v.current;if(!e)return null;null==(d=b.current)||d.kill(),w.current&&(w.current.kill(),w.current=null),null==(f=x.current)||f.kill();var r=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),n=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),a=e.querySelector(".sm-socials-title"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s="left"===i?-100:100,l=t.map(function(e){return{el:e,start:s}});r.length&&EH.set(r,{yPercent:140,rotate:10}),n.length&&EH.set(n,EK({},"--sm-num-opacity",0)),a&&EH.set(a,{opacity:0}),o.length&&EH.set(o,{y:25,opacity:0});var u=EH.timeline({paused:!0});l.forEach(function(e,t){u.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var c=(l.length?(l.length-1)*.07:0)+.08*!!l.length;if(u.fromTo(e,{xPercent:s},{xPercent:0,duration:.65,ease:"power4.out"},c),r.length){var d,f,h,m=c+.0975;u.to(r,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},m),n.length&&u.to(n,(EK(h={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),EK(h,"stagger",{each:.08,from:"start"}),h),m+.1)}if(a||o.length){var y=c+.26;a&&u.to(a,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&u.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){EH.set(o,{clearProps:"opacity"})}},y+.04)}return b.current=u,u},[i]),O=(0,m.useCallback)(function(){if(!S.current){S.current=!0;var e=D();e?(e.eventCallback("onComplete",function(){S.current=!1}),e.play(0)):S.current=!1}},[D]),P=(0,m.useCallback)(function(){null==(e=b.current)||e.kill(),b.current=null,null==(t=x.current)||t.kill();var e,t,r,n=p.current,a=v.current;if(n){var o=EY(a).concat([n]);null==(r=w.current)||r.kill();var s="left"===i?-100:100;w.current=EH.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(n.querySelectorAll(".sm-panel-itemLabel"));e.length&&EH.set(e,{yPercent:140,rotate:10});var t=Array.from(n.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&EH.set(t,EK({},"--sm-num-opacity",0));var r=n.querySelector(".sm-socials-title"),i=Array.from(n.querySelectorAll(".sm-socials-link"));r&&EH.set(r,{opacity:0}),i.length&&EH.set(i,{y:25,opacity:0}),S.current=!1}})}},[i]);y().useEffect(function(){t!==E.current&&(E.current=t,t?O():P())},[t,O,P]),y().useEffect(function(){if(f&&t){var e=function(e){p.current&&!p.current.contains(e.target)&&(null==r||r())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f,t,r]);var j=a&&a.length?a.slice(0,4):[];if(j.length>=3){var k=Math.floor(j.length/2);j.splice(k,1)}var C=null!=o?o:[],T=null!=s?s:[];return(0,h.jsxs)("div",{className:"sm-scope",style:c?EK({},"--sm-accent",c):void 0,"data-position":i,children:[(0,h.jsx)("div",{ref:g,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:j.map(function(e,t){return(0,h.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,h.jsx)("aside",{id:"staggered-menu-panel",ref:p,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!t,children:(0,h.jsxs)("div",{className:"sm-panel-inner",children:[C.length>0&&(0,h.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===u||u||void 0,children:C.map(function(e,t){return(0,h.jsx)("li",{className:"sm-panel-itemWrap",children:(0,h.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,h.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(void 0===l||l)&&T.length>0&&(0,h.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,h.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,h.jsx)("ul",{className:"sm-socials-list",role:"list",children:T.map(function(e,t){return(0,h.jsx)("li",{className:"sm-socials-item",children:(0,h.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]})]})}),(0,h.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===i?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===i?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var EX=function(e){var t,r=e.isOpen,n=e.onToggle,i=e.menuButtonColor,a=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,l=e.className,u=(0,m.useRef)(null),c=(0,m.useRef)(null),d=(0,m.useRef)(null),f=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(["Menu","Close"]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Eq(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eq(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1],x=(0,m.useRef)(null),S=(0,m.useRef)(null),E=(0,m.useRef)(null),D=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=EH.context(function(){var e=c.current,t=d.current,r=f.current,n=p.current;e&&t&&r&&n&&(EH.set(e,{transformOrigin:"50% 50%",rotate:0}),EH.set(t,{transformOrigin:"50% 50%",rotate:90}),EH.set(r,{rotate:0,transformOrigin:"50% 50%"}),EH.set(n,{yPercent:0}),u.current&&i&&EH.set(u.current,{color:i}))});return function(){return e.revert()}},[i]),y().useEffect(function(){if(u.current)if(s){var e=D.current?a:i;e&&EH.set(u.current,{color:e})}else i&&EH.set(u.current,{color:i})},[s,i,a]);var O=(0,m.useCallback)(function(e){var t,r=f.current,n=c.current,i=d.current;r&&n&&i&&(null==(t=x.current)||t.kill(),e?(EH.set(r,{rotate:0,transformOrigin:"50% 50%"}),x.current=EH.timeline({defaults:{ease:"power4.out"}}).to(n,{rotate:45,duration:.5},0).to(i,{rotate:-45,duration:.5},0)):x.current=EH.timeline({defaults:{ease:"power3.inOut"}}).to(n,{rotate:0,duration:.35},0).to(i,{rotate:90,duration:.35},0).to(r,{rotate:0,duration:.001},0))},[]),P=(0,m.useCallback)(function(e){var t,r=u.current;if(r)if(null==(t=E.current)||t.kill(),s){var n=e?a:i;n&&(E.current=EH.to(r,{color:n,delay:.18,duration:.3,ease:"power2.out"}))}else i&&EH.set(r,{color:i})},[a,i,s]),j=(0,m.useCallback)(function(e){var t,r=p.current;if(r){null==(t=S.current)||t.kill();for(var n=e?"Menu":"Close",i=e?"Close":"Menu",a=[n],o=n,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",a.push(o);o!==i&&a.push(i),a.push(i),w(a),EH.set(r,{yPercent:0});var l=a.length;S.current=EH.to(r,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return y().useEffect(function(){r!==D.current&&(D.current=r,O(r),P(r),j(r))},[r,O,P,j]),(0,h.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":r?"Close menu":"Open menu","aria-expanded":r,"aria-controls":"staggered-menu-panel",onClick:n,type:"button",children:[(0,h.jsx)("span",{ref:g,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,h.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:b.map(function(e,t){return(0,h.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,h.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,h.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,h.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,h.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function EQ(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class EJ extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(hM(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=hM(e)&&e.offsetWidth||0,n=hM(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left,a.bottom=n-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function E0({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),l=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,m.useContext)(dg),c=function(...e){return m.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=EQ(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():EQ(e[t],null)}}}}(...e),e)}(s,!1!==a?e.props?.ref??e?.ref:void 0);return(0,m.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:h,direction:m}=l.current;if(t||!1===a||!s.current||!e||!c)return;let y="rtl"===m,g="left"===r?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,v="bottom"===n?`bottom: ${h}`:`top: ${d}`;s.current.dataset.motionPopId=o;let b=document.createElement("style");u&&(b.nonce=u);let w=i??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
12
+ }`.trim(),document.head.prepend(n),o=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=((e=document)=>e.activeElement)(),r=null!=t&&st(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||so(this,r)},s=tF(sa(document,"touchstart",t=>{let n=rS(t);e=iL(n)?n:i_(n,!0),r=!1;let i=n.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),sa(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),sa(document,"blur",e=>{let t=rS(e),r=e.relatedTarget;if(r&&st(r))r.focus({preventScroll:!0}),so(r,st(t));else if(!r){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),n.remove(),HTMLElement.prototype.focus=o}):tF((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?si(document.documentElement,"scrollbarGutter","stable"):si(document.documentElement,"paddingRight",`${l}px`)),si(document.documentElement,"overflow","hidden"))),()=>{0==--sn&&i()}}},[t])}({isDisabled:o||!t.isOpen}),(0,m.useEffect)(()=>{if(t.isOpen&&n.current)if(o){var e,r,i=a?.current??n.current;let t=oV[oV.length-1];return t&&!t.visibleNodes.has(i)?(t.visibleNodes.add(i),()=>{t.visibleNodes.delete(i)}):void 0}else{let t,i,o,s,l,u,c,d,f,p,h;return e=[a?.current??n.current],i=(r={shouldUseInert:!0})instanceof(t=rb(e?.[0])).Element?{root:r}:r,o=i?.root??document.body,s=i?.shouldUseInert&&oF,l=new Set(e),u=new Set,c=(e,r)=>{s&&e instanceof t.HTMLElement?e.inert=r:r?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(rx(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=ag(rv(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&f(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)f(e),e=r.nextNode()}},f=e=>{let r=oB.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&c(e,!0),u.add(e),oB.set(e,r+1))},oV.length&&oV[oV.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let r of e)if("childList"===r.type&&r.target.isConnected&&![...l,...u].some(e=>rx(e,r.target)))for(let e of r.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(o,{childList:!0,subtree:!0}),h={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},oV.push(h),()=>{for(let e of(p.disconnect(),u)){let t=oB.get(e);null!=t&&(1===t?(c(e,!1),oB.delete(e)):oB.set(e,t-1))}h===oV[oV.length-1]?(oV.pop(),oV.length&&oV[oV.length-1].observe()):oV.splice(oV.indexOf(h),1)}}},[o,t.isOpen,n,a]);let{focusWithinProps:v}=nU(e);return{popoverProps:t3(d,p,v),arrowProps:h,underlayProps:f,placement:y,triggerAnchorPoint:g}}({...a,offset:a.offset??8,arrowRef:o,groupRef:u?l:s},e),g=a.popoverRef,v=function(e,t=!0){let[r,n]=(0,m.useState)(!0),i=r&&t;return tB(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),sd(e,i,(0,m.useCallback)(()=>n(!1),[])),i}(g,!!p),b=a.isEntering||!a.shouldSkipAnimation&&v||!1,w=t8({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:b,isExiting:t}}),x=!a.isNonModal||"SubmenuTrigger"===a.trigger||"PreviewTrigger"===a.trigger,[S,E]=(0,m.useState)("PreviewTrigger"===a.trigger);tB(()=>{g.current&&E(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),(0,m.useEffect)(()=>{S&&"PreviewTrigger"!==a.trigger&&("SubmenuTrigger"!==a.trigger||"pointer"!==rZ)&&g.current&&!rE(g.current)&&na(g.current)},[S,g,a.trigger]);let D=(0,m.useMemo)(()=>{let e=w.children;if(n)for(let t of n)e=y().createElement(t.Provider,{value:null},e);return e},[w.children,n]),[O,P]=(0,m.useState)(null),j=(0,m.useCallback)(()=>{a.triggerRef.current&&P(a.triggerRef.current.getBoundingClientRect().width+"px")},[a.triggerRef]);tB(j,[j]),o6({ref:w.style?.["--trigger-width"]?void 0:a.triggerRef,onResize:j});let k={...c.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||O},C=y().createElement(ri.div,{...t3(rm(a,{global:!0}),c),...w,id:S?a.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:g,slot:a.slot||void 0,style:k,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":b||void 0,"data-exiting":t||void 0},!a.isNonModal&&y().createElement(su,{onDismiss:e.close}),y().createElement(o_.Provider,{value:{...f,placement:p,ref:o}},D),y().createElement(su,{onDismiss:e.close}));return u?y().createElement(oE,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r??l?.current??void 0},C):y().createElement(oE,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&y().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),y().createElement("div",{ref:s,style:{display:"contents"}},y().createElement(sp.Provider,{value:s},C)))}function sy(e){return e?.start!=null&&null!=e.end}let sg=(0,m.createContext)(null),sv=(0,m.createContext)(null),sb=(0,m.createContext)(null),sw=(0,m.createContext)(null),sx=[ap,nq,oN,n0],sS=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sg);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i1(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),a=r||e.placeholderValue||null,[o,s]=oi(a,e.granularity),l=null!=r?r.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,m.useState)(null),[p,h]=(0,m.useState)(null);if(r&&(d=r,"hour"in r&&(p=r)),a&&!(o in a))throw Error("Invalid granularity "+o+" for value "+a.toString());let y=r?.calendar.identifier==="gregory"&&"BC"===r.era,g=(0,m.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,y]),{minValue:v,maxValue:b,isDateUnavailable:w}=e,x=(0,m.useMemo)(()=>a9(r,v,b,w,g),[r,v,b,w,g]),S=a0({...e,value:r,builtinValidation:x}),E=S.displayValidation.isInvalid,D=e.validationState||(E?"invalid":null),O=(e,t)=>{n("timeZone"in t?t.set((0,iG.gw)(e)):(0,iG.tR)(e,t)),f(null),h(null),S.commitValidation()};return{...S,value:r,defaultValue:e.defaultValue??i,setValue:n,dateValue:d,timeValue:p,setDateValue:r=>{let i="function"==typeof c?c():c;u?p||i?O(r,p||or(e.defaultValue||e.placeholderValue)):f(r):(n(r),S.commitValidation()),i&&t.setOpen(!1)},setTimeValue:e=>{d&&e?O(d,e):h(e)},granularity:o,hasTime:u,...t,setOpen(n){!n&&!r&&d&&u&&O(d,p||or(e.defaultValue||e.placeholderValue)),t.setOpen(n)},validationState:D,isInvalid:E,formatValue:(e,t)=>l?new ic(e,ot(t,g)).format(l):"",getDateFormatter:(e,t)=>new ic(e,ot({},{...g,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n;let i=tQ(),a=tQ(),o=tQ(),s=iP((n=aF)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=a$({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),y=aB(t,r),g=f["aria-labelledby"]||f.id,{locale:v}=il(),b=t.formatValue(v,{month:"long"}),w=iU(b?s.format("selectedDateDescription",{date:b}):""),x=[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=rm(e),E=(0,m.useMemo)(()=>aI(r),[r]),D=(0,m.useRef)(!1),{focusWithinProps:O}=nU({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rx(document.getElementById(a),t.relatedTarget)||(D.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{D.current||(D.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:t3(S,y,f,w,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":x,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...d,onClick:()=>{E.focusFirst()}},fieldProps:{...f,id:o,[aH]:"presentation","aria-describedby":x,value:t.value,defaultValue:t.defaultValue,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,[aJ]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...w,id:i,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${i} ${g}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:a,"aria-labelledby":`${i} ${g}`},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:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:b,isFocused:w,isFocusVisible:x}=nz({within:!0}),S=t8({...e,values:{state:i,isFocusWithin:w,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),E=rm(e,{global:!0});return delete E.id,y().createElement(t6,{values:[[sb,i],[ap,{...l,ref:a,isInvalid:i.isInvalid}],[oh,c],[nq,{...d,isPressed:i.isOpen}],[oN,{...u,ref:o,elementType:"span"}],[at,p],[oO,i],[sf,{trigger:"DatePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oD,f],[n0,{slots:{description:h,errorMessage:g}}],[oj,v]]},y().createElement(ri.div,{...t3(E,S,b),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}),y().createElement(oM,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:i}))}),sE=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sv);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i1(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),[a,o]=(0,m.useState)(()=>r||{start:null,end:null});null==r&&a.start&&a.end&&o(a={start:null,end:null});let s=r||a,l=e=>{o(s=e||{start:null,end:null}),sy(s)?n(s):n(null)},[u,c]=oi(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,h]=(0,m.useState)(null),[y,g]=(0,m.useState)(null);s&&sy(s)&&(p=s,"hour"in s.start&&(y=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,iG.gw)(e.start)):(0,iG.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,iG.gw)(e.end)):(0,iG.tR)(e.end,t.end)}),h(null),g(null),j.commitValidation()},b=r=>{let n="function"==typeof f?f():f;d?sy(r)&&(n||y?.start&&y?.end)?v(r,{start:y?.start||or(e.placeholderValue),end:y?.end||or(e.placeholderValue)}):h(r):sy(r)?(l(r),j.commitValidation()):h(r),n&&t.setOpen(!1)},w=e=>{sy(p)&&sy(e)?v(p,e):g(e)},x=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,S=(0,m.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,x]),{minValue:E,maxValue:D,isDateUnavailable:O}=e,P=(0,m.useMemo)(()=>{var e,t;let r;return e=s,t=O?e=>O(e,null):void 0,r=a4(a9(e?.start??null,E,D,t,S),a9(e?.end??null,E,D,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=a4(r,{isInvalid:!0,validationErrors:[(iw.getGlobalDictionaryForPackage("@react-stately/datepicker")||a6).getStringForLocale("rangeReversed",a8())],validationDetails:{...aZ,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[s,E,D,O,S]),j=a0({...e,value:r,name:(0,m.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:P}),k=j.displayValidation.isInvalid,C=e.validationState||(k?"invalid":null);return{...j,value:s,defaultValue:e.defaultValue??i,setValue:l,dateRange:p,timeRange:y,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?w({start:t,end:y?.end??null}):w({start:y?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:w,...t,setOpen(r){!r&&!(s?.start&&s?.end)&&sy(p)&&d&&v(p,{start:y?.start||or(e.placeholderValue),end:y?.end||or(e.placeholderValue)}),t.setOpen(r)},validationState:C,isInvalid:k,formatValue(t,r){let n;if(!s||!s.start||!s.end)return null;let i="timeZone"in s.start?s.start.timeZone:void 0,a=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=ot(r,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(i||"UTC"),d=s.end.toDate(o||"UTC"),f=new ic(t,u);if(i===o&&a===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let i=0;i<e.length;i++)i<t?r+=e[i].value:i>t&&(n+=e[i].value);return{start:r,end:n}}catch{}n=f}else n=new ic(t,ot(r,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:n.format(d)}},getDateFormatter:(e,t)=>new ic(e,ot({},{...S,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:v,...b}=function(e,t,r){var n;let i=iP((n=aF)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:a,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=a$({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=il(),h=t.formatValue(p,{month:"long"}),y=iU(h?i.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),g={"aria-label":i.format("startDate"),"aria-labelledby":f},v={"aria-label":i.format("endDate"),"aria-labelledby":f},b=tQ(),w=tQ(),x=aB(t,r),S=[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=(0,m.useMemo)(()=>aI(r,{accept:e=>e.id!==b}),[r,b]),D={[aG]:E,[aH]:"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},O=rm(e),P=(0,m.useRef)(!1),{focusWithinProps:j}=nU({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rx(document.getElementById(w),t.relatedTarget)||(P.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{P.current||(P.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),k=(0,m.useRef)(aX),C=(0,m.useRef)(aX);return{groupProps:t3(O,x,u,y,j,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...l,onClick:()=>{E.focusFirst()}},buttonProps:{...y,id:b,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${f}`},startFieldProps:{...g,...D,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[aJ]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){k.current=e,t.updateValidation(a4(e,C.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...D,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[aJ]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){C.current=e,t.updateValidation(a4(k.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.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:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:a,validationErrors:o,validationDetails:s}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:w,isFocused:x,isFocusVisible:S}=nz({within:!0}),E=t8({...e,values:{state:i,isFocusWithin:x,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),D=rm(e,{global:!0});return delete D.id,y().createElement(t6,{values:[[sw,i],[ap,{...l,ref:a,isInvalid:i.isInvalid}],[nq,{...f,isPressed:i.isOpen}],[oN,{...u,ref:o,elementType:"span"}],[ar,h],[oO,i],[sf,{trigger:"DateRangePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oD,p],[oh,{slots:{start:c,end:d}}],[n0,{slots:{description:g,errorMessage:v}}],[oj,b]]},y().createElement(ri.div,{...t3(D,E,w),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}))});function sD(e){return y().createElement(is,e)}var sO=r(208),sP=r.n(sO);function sj(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function sk(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return r?e:void 0;if("string"==typeof e&&!e)return r?null:void 0;if(sj(e,a5.ng)||sj(e,a5._l)||sj(e,a5.Ip))return t?(0,iG.yP)(e,t):e;var n=sP()(e).toDate(),i=new a5.ng(n.getFullYear(),n.getMonth()+1,n.getDate());return t?(0,iG.yP)(i,t):i}function sC(e){if(e)return e.toDate((0,ij.Xj)())}var sT=r(1851),sA=r(3903);function sR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function sI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var sM=(0,m.createContext)(null);function sN(){var e=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,m.useMemo)(function(){var t=(0,sT.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),r=(0,m.useMemo)(function(){var e=(0,sA.a7)(t);return void 0!==e?(0,iH.d)(e):void 0},[t]),n=(0,m.useMemo)(function(){return new Intl.Locale(t,{calendar:null==r?void 0:r.identifier})},[t,r]),i=(0,m.useMemo)(function(){return r?(0,iG.yP)((0,ij.Ec)((0,ij.Xj)()),r):(0,ij.Ec)((0,ij.Xj)())},[r]);return{calendar:r,intlLocale:n,today_:i}}var sL=new a5.ng(1793,1,1),s_=function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return(0,h.jsx)("svg",{className:t,width:n,height:n,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,h.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sF={};function sB(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sV(e={}){let{locale:t}=il();return(0,m.useMemo)(()=>new(0,ou.K)(t,e),[t,e])}sF={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var s$={};s$={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sW=()=>{};function sU(e){var t;let r=(0,m.useRef)(void 0),{value:n,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:y}=e,g=iP((t=s$)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,m.useRef)(!1),b=(0,m.useCallback)(()=>{clearTimeout(r.current),v.current=!1},[]),w=nP(()=>{b()});(0,m.useEffect)(()=>()=>w(),[]);let{keyboardProps:x}=np({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!h&&void h(),End:()=>!!y&&void y()},allowRepeats:!0}),S=(0,m.useRef)(!1),E=()=>{S.current=!0},D=()=>{S.current=!1},O=""===i?g.format("Empty"):(i||`${n}`).replace("-","−");(0,m.useEffect)(()=>{S.current&&(ro&&ro.clear("assertive"),rs(O,"assertive"))},[O]);let P=(0,m.useCallback)(()=>{b()},[b]),j=nP(c??sW),k=nP(f??sW),C=nP(()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n<o)&&(j(),T(60))}),T=nP(e=>{w(),v.current=!0,r.current=window.setTimeout(C,e)}),A=nP(()=>{(void 0===a||isNaN(a)||void 0===n||isNaN(n)||n>a)&&(k(),R(60))}),R=nP(e=>{w(),v.current=!0,r.current=window.setTimeout(A,e)}),I=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:N}=nj(),L=(0,m.useRef)(!1),[_,F]=(0,m.useState)(null);(0,m.useEffect)(()=>{"touch"===_?T(600):_?T(400):_||w()},[_]);let[B,V]=(0,m.useState)(null);return(0,m.useEffect)(()=>{"touch"===B?R(600):B?R(400):B||w()},[B]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":O,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...x,onFocus:E,onBlur:D},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),F("mouse")):(M(window,"pointercancel",P,{capture:!0}),L.current=!1,F("touch")),M(window,"contextmenu",I)},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),N(),F(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&c?.(),L.current=!1,F(null)},onFocus:E,onBlur:D},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),V("mouse")):(M(window,"pointercancel",P,{capture:!0}),L.current=!1,V("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),N(),V(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&f?.(),L.current=!1,V(null)},onFocus:E,onBlur:D}}}let sz=null;var sH=r(4264);function sG(e,t,r){let n="+"===e?t+r:t-r;if(t%1!=0||r%1!=0){let i=t.toString().split("."),a=r.toString().split("."),o=Math.pow(10,Math.max(i[1]&&i[1].length||0,a[1]&&a[1].length||0));t=Math.round(t*o),r=Math.round(r*o),n=("+"===e?t+r:t-r)/o}return n}let sK=(0,m.createContext)(null),sY=(0,m.createContext)(null),sZ=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sK);let{validationBehavior:r}=t9(oT)||{},n=e.validationBehavior??r??"native",{locale:i}=il(),a=function(e){let{minValue:t,maxValue:r,step:n,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===a&&(a=NaN);let f=(0,m.useCallback)(e=>void 0===n||isNaN(n)?o$(e,t,r):oU(e,t,r,n),[n,t,r]);void 0===a||isNaN(a)||"snap"!==d||(a=f(a)),isNaN(o)||"snap"!==d||(o=f(o));let[p,h]=i1(a,isNaN(o)?NaN:o,s),[y]=(0,m.useState)(p),[g,v]=(0,m.useState)(()=>isNaN(p)?"":new(0,ou.K)(l,i).format(p)),b=(0,m.useMemo)(()=>new(0,sH.d)(l,i),[l,i]),w=(0,m.useMemo)(()=>b.getNumberingSystem(g),[b,g]),x=(0,m.useMemo)(()=>new(0,ou.K)(l,{...i,numberingSystem:w}),[l,i,w]),S=(0,m.useMemo)(()=>x.resolvedOptions(),[x]),E=(0,m.useCallback)(e=>isNaN(e)||null===e?"":x.format(e),[x]),D=a0({...e,value:p}),O=void 0===n||isNaN(n)?1:n;"percent"===S.style&&(void 0===n||isNaN(n))&&(O=.01);let[P,j]=(0,m.useState)(p),[k,C]=(0,m.useState)(l),[T,A]=(0,m.useState)(i);Object.is(p,P)&&l===k&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}(i,T)||(v(E(p)),j(p),C(l),A(i));let R=(0,m.useMemo)(()=>b.parse(g),[b,g]),I=(e,n=0)=>{if(isNaN(R))return oU(isNaN(n)?0:n,t,r,O);{let n=oU(R,t,r,O);return"+"===e&&n>R||"-"===e&&n<R?n:oU(sG(e,R,O),t,r,O)}},M=(0,m.useMemo)(()=>!u&&!c&&(isNaN(R)||void 0===r||isNaN(r)||oU(R,t,r,O)>R||sG("+",R,O)<=r),[u,c,t,r,O,R]),N=(0,m.useMemo)(()=>!u&&!c&&(isNaN(R)||void 0===t||isNaN(t)||oU(R,t,r,O)<R||sG("-",R,O)>=t),[u,c,t,r,O,R]);return{...D,validate:e=>b.isValidPartialNumber(e,t,r),increment:()=>{let e=I("+",t);e===p&&v(E(e)),h(e),D.commitValidation()},incrementToMax:()=>{null!=r&&(h(oU(r,t,r,O)),D.commitValidation())},decrement:()=>{let e=I("-",r);e===p&&v(E(e)),h(e),D.commitValidation()},decrementToMin:()=>{null!=t&&(h(t),D.commitValidation())},canIncrement:M,canDecrement:N,minValue:t,maxValue:r,numberValue:R,defaultNumberValue:isNaN(o)?y:o,setNumberValue:h,setInputValue:v,inputValue:g,commit:e=>{let t=void 0===e?g:e,r=R;if(void 0!==e&&(r=b.parse(t)),!t.length){h(NaN),v(void 0===a?"":E(p));return}if(isNaN(r))return void v(E(p));let n="snap"===d?f(r):r,i=(n=b.parse(E(n)))!==p;h(n),v(E(void 0===a?n:p)),i&&D.commitValidation()}}}({...e,locale:i,validationBehavior:n}),o=(0,m.useRef)(null),[s,l]=re(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n,i,a,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:h,incrementAriaLabel:g,isDisabled:v,isReadOnly:b,isRequired:w,minValue:x,maxValue:S,autoFocus:E,label:D,formatOptions:O,onBlur:P=()=>{},onFocus:j,onFocusChange:k,onKeyDown:C,onKeyUp:T,description:A,errorMessage:R,isWheelDisabled:I,...M}=e,{increment:N,incrementToMax:L,decrement:_,decrementToMin:F,numberValue:B,inputValue:V,commit:$,commitValidation:W}=t,U=iP((n=sF)&&n.__esModule?n.default:n,"@react-aria/numberfield"),z=(0,m.useCallback)(()=>{let e=r.current?.value??"";(0,nk.flushSync)(()=>{$()}),r.current?.value!==e&&rs(r.current?.value??"","assertive")},[$,r]),H=tQ(p),{focusProps:G}=no({onBlur(){z()}}),K=sV(O),Y=(0,m.useMemo)(()=>K.resolvedOptions(),[K]),Z=sV({...O,currencySign:void 0}),q=(0,m.useMemo)(()=>isNaN(B)?"":Z.format(B),[Z,B]),{spinButtonProps:X,incrementButtonProps:Q,decrementButtonProps:J}=sU({isDisabled:v,isReadOnly:b,isRequired:w,maxValue:S,minValue:x,onIncrement:N,onIncrementToMax:L,onDecrement:_,onDecrementToMin:F,value:B,textValue:q}),[ee,et]=(0,m.useState)(!1),{focusWithinProps:er}=nU({isDisabled:v,onFocusWithinChange:et});!function(e,t){let{onScroll:r,isDisabled:n}=e,i=(0,m.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))},[r]);iz(t,"wheel",n?void 0:i)}({onScroll:(0,m.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?N():e.deltaY<0&&_())},[_,N]),isDisabled:I||v||b||!ee},r);let en=(Y.maximumFractionDigits??0)>0,ei=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,ea="numeric";rV()?ei?ea="text":en&&(ea="decimal"):rH()&&(ei?ea="numeric":en&&(ea="decimal"));let eo=rm(e),{keyboardProps:es}=np({isDisabled:v||b,shortcuts:{Enter:()=>((0,nk.flushSync)(()=>{$()}),W(),{shouldPreventDefault:!1})},onKeyDown:C,onKeyUp:T}),{isInvalid:el,validationErrors:eu,validationDetails:ec}=t.displayValidation,{labelProps:ed,inputProps:ef,descriptionProps:ep,errorMessageProps:eh}=function(e,t,r){let n=nP(e=>{let n=r.current;if(!n)return;let i=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":i=n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentForward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd+1):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentBackward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart-1)+n.value.slice(n.selectionStart):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":i=n.value.slice(n.selectionStart);break;default:null!=e.data&&(i=n.value.slice(0,n.selectionStart)+e.data+n.value.slice(n.selectionEnd))}null!=i&&t.validate(i)||e.preventDefault()});(0,m.useEffect)(()=>{if(!sB()||!r.current)return;let e=r.current;return e.addEventListener("beforeinput",n,!1),()=>{e.removeEventListener("beforeinput",n,!1)}},[r]);let i=sB()?null:e=>{let r=rS(e).value.slice(0,rS(e).selectionStart)+e.data+rS(e).value.slice(rS(e).selectionEnd);t.validate(r)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=i1(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ny(e,t),d=a0({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:b,errorMessageProps:w}=a$({...e,isInvalid:f,errorMessage:e.errorMessage||p}),x=rm(e,{labelable:!0}),S={type:o,pattern:e.pattern},[E]=(0,m.useState)(l);return aW(t,e.defaultValue??E,u),aU(e,d,t),{labelProps:g,inputProps:t3(x,"input"===r?S:void 0,{disabled:n,readOnly:a,required:i&&"native"===s,"aria-required":i&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(rS(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,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,...c,...v}),descriptionProps:b,errorMessageProps:w,isInvalid:f,validationErrors:p,validationDetails:h}}(e,r),c=(0,m.useRef)(null);return{inputProps:t3(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=r.current;c.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:e,selectionStart:n,selectionEnd:i}=c.current;r.current.value=e,r.current.setSelectionRange(n,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:l,...u}}({...M,...eo,name:void 0,form:void 0,label:D,autoFocus:E,isDisabled:v,isReadOnly:b,isRequired:w,validate:void 0,[aJ]:t,value:V,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:H,type:"text",inputMode:ea,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:P,onFocus:j,onFocusChange:k,onPaste:t=>{e.onPaste?.(t);let r=rS(t);r&&(r.selectionEnd??-1)-(r.selectionStart??0)===r.value.length&&(t.preventDefault(),$(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:A,errorMessage:R},t,r),em=t3(es,ef);aW(r,t.defaultNumberValue,t.setNumberValue),i=t,a=e.validationBehavior,o=e.commitBehavior,s=r,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,tB(()=>{let e=s.current;if("validate"!==o||i.realtimeValidation.isInvalid||!e||e.disabled||(!sz&&"u">typeof document&&((sz=document.createElement("input")).type="number"),!sz))return;sz.min=null==l||isNaN(l)?"":String(l),sz.max=null==u||isNaN(u)?"":String(u),sz.step=null==c||isNaN(c)?"":String(c),sz.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&sz.validity.valid,r=e.validationMessage||sz.validationMessage,n={isInvalid:!t,validationErrors:r?[r]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:sz.validity.rangeOverflow,rangeUnderflow:sz.validity.rangeUnderflow,stepMismatch:sz.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};i.updateValidation(n),"native"!==a||sz.validity.valid||e.setCustomValidity(sz.validationMessage)});let ey=t3(X,G,em,{role:null,"aria-roledescription":rW()?null:U.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ey["aria-required"]=void 0);let eg=e=>{((e=document)=>e.activeElement)()!==r.current&&("mouse"===e.pointerType?r.current?.focus():e.target.focus())},ev=e["aria-label"]||("string"==typeof e.label?e.label:"");ev||(f=null!=e.label?ed.id:e["aria-labelledby"]);let eb=tQ(),ew=tQ(),ex=t3(Q,{"aria-label":g||U.format("increase",{fieldLabel:ev}).trim(),id:f&&!g?eb:null,"aria-labelledby":f&&!g?`${eb} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eg}),eS=t3(J,{"aria-label":h||U.format("decrease",{fieldLabel:ev}).trim(),id:f&&!h?ew:null,"aria-labelledby":f&&!h?`${ew} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eg});return{groupProps:{...er,role:"group","aria-disabled":v,"aria-invalid":el?"true":void 0},labelProps:ed,inputProps:ey,incrementButtonProps:ex,decrementButtonProps:eS,errorMessageProps:eh,descriptionProps:ep,isInvalid:el,validationErrors:eu,validationDetails:ec}}({...rt(e),label:l,validationBehavior:n},a,o),b=t8({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),w=rm(e,{global:!0});return delete w.id,y().createElement(t6,{values:[[sY,a],[ap,c],[am,{...d,ref:o}],[oN,{...u,ref:s}],[nq,{slots:{increment:f,decrement:p}}],[n0,{slots:{description:h,errorMessage:g}}],[oj,v]]},y().createElement(ri.div,{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&y().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(a.numberValue)?"":a.numberValue,disabled:e.isDisabled||void 0}))});function sq(e,t){return Number.parseInt((0,sA.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sX=(0,m.forwardRef)(function(e,t){var r=e.className,n=(0,m.useContext)(an),i=(0,m.useContext)(ai),a=null!=n?n:i,o=(0,m.useContext)(sM),s=(0,ij.Xj)(),l=(0,sA.Yq)(a.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sq(a.visibleRange.start.toDate(s),o),c=a.maxValue?sq(a.maxValue.toDate(s),o):void 0,d=a.minValue?sq(a.minValue.toDate(s),o):void 0,f=(0,m.useCallback)(function(e){a.setFocusedDate(a.focusedDate.cycle("year",e-a.focusedDate.year))},[]);return a&&(0,h.jsxs)("span",{ref:t,className:r,children:[(0,h.jsx)("span",{children:l}),(0,h.jsxs)(sZ,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,h.jsx)(ay,{}),(0,h.jsxs)(ah,{children:[(0,h.jsx)(nX,{slot:"increment",children:(0,h.jsx)(em,{size:8})}),(0,h.jsx)(nX,{slot:"decrement",children:(0,h.jsx)(ef,{size:8})})]})]})]})});let sQ="+4zksyca-I5VROi6oiQzJQ==",sJ="wiExnFcGq1fPxn+K4eWeig==",s0="uiyACHcxSXjudv9HIlh57w==",s1="SxtTLfuOGW-Mst6POMWfQA==",s2="UU1QpNunTQCrdkAN2b2Ecg==",s3="fhR-1dd9yTq-5JUfl4REqA==",s4="_5INZ7v7pw4CkyEJ2Y8RsrA==",s5="RFMrlShZc97nAtIJF9P8jw==";function s6(e){var t=e.children,r=(0,m.useContext)(sb),n=(0,m.useContext)(sw),i=null!=r?r:n,a=(0,b.useOnClickOutside)(function(){return null==i?void 0:i.close()});return(0,h.jsx)(oP,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:a,children:t})}function s8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s9=(0,m.forwardRef)(function(e,t){var r,n,i=e.variant,a=e.today_,o=e.minDate,s=e.maxDate,l="range"===i;return(0,h.jsx)(sh,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,h.jsx)(s6,{children:(0,h.jsxs)(l?ao:aa,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s8(e,t,r[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),n=n={children:[(0,h.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,h.jsx)(nX,{className:v()(s2,s3),slot:"previous",children:(0,h.jsx)(eS,{size:16})}),(0,h.jsx)(sX,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,h.jsx)(nX,{className:v()(s2,s3),slot:"next",children:(0,h.jsx)(eE,{size:16})})]}),(0,h.jsx)(al,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,h.jsx)(af,{className:v()("cds--date-picker__day",s8({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===a.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})});function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function lt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var lr=(0,m.forwardRef)(function(e,t){var r,n=(0,m.useContext)(sb),i=function(e){if(Array.isArray(e))return e}(r=t7({slot:e.slot},t,oh))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(r)||function(e){if(e){if("string"==typeof e)return s7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s7(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1],s=il().locale,l=op(lt(le({},a),{locale:s,createCalendar:iH.d})),u=(0,m.useRef)(null),c=aK(lt(le({},a),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,m.useCallback)(function(){l.isDisabled||n.toggle()},[]);return(0,h.jsxs)(t6,{values:[[om,l],[am,lt(le({},f),{ref:u})],[ap,lt(le({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,h.jsx)(ah,lt(le({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,r){return(0,m.cloneElement)(e.children(t),{key:r})})})),(0,h.jsx)(ay,{})]})});function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var li=(0,m.forwardRef)(function(e,t){var r=(0,m.useContext)(sb),n=(0,m.useContext)(sw);return(null!=r?r:n).isInvalid?(0,h.jsx)(tk,ln({ref:t,size:16},e)):(0,h.jsx)(ed,ln({ref:t,size:16},e))});class la{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let lo=new Map;function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ll(e){if(Array.isArray(e))return e}function lu(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ld(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function lf(e,t){if(e){if("string"==typeof e)return ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ls(e,t)}}var lp=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s,l,u,c,d,f,p=ll(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||lf(r)||lu(),g=p[0],v=p.slice(1),b=g.segment,w=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(g,["segment"]),x=(ll(v)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(v)||lf(v,1)||lu())[0],S=(0,m.useContext)(om),E=t4(x),D=function(e,t,r){let n,i,a,o,s=(0,m.useRef)(""),{locale:l,direction:u}=il(),c=function(){var e;let{locale:t}=il(),r=iO((e=aF)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,m.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new la(t,r)}},[t,r])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:h}=az.get(t),g=e.isPlaceholder?"":e.text,v=(0,m.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=iy({month:"long",timeZone:v.timeZone}),w=iy({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(g=w.format(t.dateValue));else{let e=b.format(t.dateValue);g=e!==g?`${g} \u{2013} ${e}`:e}let{spinButtonProps:x}=sU({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),S=(0,m.useMemo)(()=>new(0,sH.d)(l,{maximumFractionDigits:0}),[l]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),!S.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=S.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),s.current=r}},{keyboardProps:D}=np({shortcuts:{Backspace:()=>{E()},Delete:()=>{E()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:O}=(n=function(e){let{locale:t}=il(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(lo.has(r))return lo.get(r);let n=new Intl.Collator(t,e);return lo.set(r,n),n}({usage:"search",sensitivity:"base"}),i=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),a=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),o=(0,m.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1},[n]),(0,m.useMemo)(()=>({startsWith:i,endsWith:a,contains:o}),[i,a,o])),P=iy({hour:"numeric",hour12:!0}),j=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(0),P.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[P]),k=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(12),P.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[P]),C=iy({year:"numeric",era:"narrow",timeZone:"UTC"}),T=(0,m.useMemo)(()=>{if("era"!==e.type)return[];let r=(0,iG.yP)(new(0,a5.ng)(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:C.formatToParts(t).find(e=>"era"===e.type).value}}),i=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(i)for(let e of n)e.formatted=e.formatted.slice(i);return n},[C,t.calendar,e.type]),A=r=>{if(t.isDisabled||t.isReadOnly)return;let n=s.current+r;switch(e.type){case"dayPeriod":if(O(j,r))t.setSegment("dayPeriod",0);else if(O(k,r))t.setSegment("dayPeriod",1);else break;h.focusNext();break;case"era":{let e=T.find(e=>O(e.formatted,r));e&&(t.setSegment("era",e.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(n))return;let i=S.parse(n),a=i;if(void 0!==e.maxValue&&i>e.maxValue&&(a=S.parse(r)),isNaN(i))return;t.setSegment(e.type,a),void 0!==e.maxValue&&(Number(i+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(s.current="",h.focusNext()):s.current=n}}};iz((0,m.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&rx(r.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===r.current&&e.collapse(r.current)});let R=(0,m.useRef)("");iz(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":R.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&A(n.data)}}),iz(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=R.current),null!=n&&(O(j,n)||O(k,n))&&A(n))}),tB(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(h.focusPrevious()||h.focusNext())}},[r,h]);let I=rW()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,m.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=tQ(),N=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),_=iI({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===u){F.unicodeBidi="embed";let t=v[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:t3(x,_,{id:M,...I,...D,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:N,suppressContentEditableWarning:N,spellCheck:N?"false":void 0,autoCorrect:N?"off":void 0,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:N?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!N?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",r.current&&iV(r.current,{containingElement:i_(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(b,S,E).segmentProps,O=nz(),P=O.focusProps,j=O.isFocused,k=O.isFocusVisible,C=nZ(ld(lc({},w),{isDisabled:S.isDisabled||"literal"===b.type})),T=C.hoverProps,A=C.isHovered,R=(i=(n=ld(lc({},w),{values:ld(lc({},b),{isReadOnly:!b.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:A,isFocused:j,isFocusVisible:k}),defaultChildren:b.text})).className,a=n.style,o=n.children,l=void 0===(s=n.defaultClassName)?void 0:s,c=void 0===(u=n.defaultChildren)?void 0:u,d=n.defaultStyle,f=n.values,(0,m.useMemo)(function(){var e,t,r;return e="function"==typeof i?i(sI(sR({},f),{defaultClassName:l})):i,t="function"==typeof a?a(sI(sR({},f),{defaultStyle:d||{}})):a,r="function"==typeof o?o(sI(sR({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?sR({},d,t):void 0,children:null!=r?r:c,"data-rac":""}},[i,a,o,l,c,d,f])),I=(0,m.useCallback)(function(e){e.stopPropagation()},[]);return(0,h.jsx)("span",ld(lc({},t3(rm(w),D,P,T),R),{ref:E,style:D.style,"data-placeholder":b.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!b.isEditable||void 0,"data-disabled":S.isDisabled||void 0,"data-type":b.type,"data-hovered":A||void 0,"data-focused":j||void 0,"data-focus-visible":k||void 0,onClick:I}))});function lh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lh(e,t,r[t])})}return e}var ly={short:!1,size:"md"},lg=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lm({},ly,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,g=s.label,b=s.labelText,w=s.light,x=s.maxDate,S=s.minDate,E=s.onChange,D=s.onChangeRaw,O=s.short,P=s.size,j=s.value,k=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),C=sN(),T=C.calendar,A=C.intlLocale,R=C.today_,I=(0,m.useId)(),M=!!(null!=b?b:g),N=(0,m.useMemo)(function(){return sk(u,T)},[u,T]),L=(0,m.useMemo)(function(){return sk(j,T,!0)},[j,T]),_=(0,m.useMemo)(function(){return sk(x,T)},[x,T]),F=(0,m.useMemo)(function(){return sk(null!=S?S:sL,T)},[S,T]),B=(0,m.useMemo)(function(){return d||p},[d,p]),V=(0,m.useMemo)(function(){return D&&E&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=D?D:function(e){return null==E?void 0:E(sC(e))}},[D,E]);return(0,h.jsx)(sD,{locale:A.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",l),children:(0,h.jsx)(t6,{values:[[sM,A]],children:(0,h.jsxs)(sS,(r=lm({className:v()("cds--date-picker","cds--date-picker--single",(lh(i={},"cds--date-picker--short",O),lh(i,"cds--date-picker--light",w),i)),defaultValue:N,isDisabled:c,isInvalid:B,maxValue:_,minValue:F,value:L,shouldForceLeadingZeros:"en"===A.language||void 0},k),n=n={onChange:V,children:[(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[M&&(0,h.jsx)(oL,{className:v()("cds--label",{"cds--label--disabled":c}),htmlFor:I,children:null!=b?b:g}),(0,h.jsxs)(ah,{className:sQ,children:[(0,h.jsx)(lr,{id:M?I:void 0,ref:t,className:v()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(lh(a={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===P),lh(a,"ablE9mmlFsZsPekwcW7jjQ==","md"===P||!P||0===P.length),lh(a,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===P),a)),children:function(e){return"era"!==e.type?(0,h.jsx)(lp,{className:sJ,segment:e}):(0,h.jsx)(y().Fragment,{})}}),(0,h.jsx)(nX,{className:v()(s2,(lh(o={},s4,"sm"===P),lh(o,s3,"md"===P||!P||0===P.length),lh(o,s5,"lg"===P),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(ok,{className:s1,children:f})]}),(0,h.jsx)(s9,{variant:"single",today_:R})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lb(e){if(Array.isArray(e))return e}function lw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lS(e,t){if(e){if("string"==typeof e)return lv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lv(e,t)}}var lE=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lb(i=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||lS(i)||lx(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,y=l.isDisabled,g=l.isInvalid,b=l.label,w=l.labelText,x=l.light,S=l.maxDate,E=l.minDate,D=l.onChange,O=l.onChangeRaw,P=l.size,j=void 0===P?"md":P,k=l.value,C=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),T=(lb(u)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(u)||lS(u,1)||lx())[0],A=sN(),R=A.calendar,I=A.intlLocale,M=A.today_,N=(0,m.useId)(),L=!!(null!=w?w:b),_=(0,m.useMemo)(function(){if(k)return{start:sk(k[0],R,!1),end:sk(k[1],R,!1)}},[k,R]),F=(0,m.useMemo)(function(){if(d)return{start:sk(d[0],R,!1),end:sk(d[1],R,!1)}},[d,R]),B=(0,m.useMemo)(function(){return sk(null!=E?E:sL,R,!0)},[E,R]),V=(0,m.useMemo)(function(){return sk(S,R,!0)},[S,R]),$=(0,m.useMemo)(function(){return f||g},[f,g]),W=(0,m.useMemo)(function(){return O&&D&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==D?void 0:D([sC(e.start),sC(e.end)])}},[O,D]);return(0,h.jsx)(sD,{locale:I.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",c),children:(0,h.jsx)(t6,{values:[[sM,I]],children:(0,h.jsx)(sE,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lw(e,t,r[t])})}return e}({id:L?N:void 0,className:v()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":y}),isInvalid:$,shouldForceLeadingZeros:"en"===I.language||void 0,maxValue:V,minValue:B,value:_,defaultValue:F,ref:T,isDisabled:y},C),n=n={onChange:W,children:(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[L&&(0,h.jsx)(oL,{className:v()("cds--label",{"cds--label--disabled":y}),htmlFor:N,children:null!=w?w:b}),(0,h.jsxs)(ah,{className:sQ,children:[(0,h.jsxs)("div",{className:v()("YlkGhdQcBgSDJNSlS1cQnw==",(lw(a={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===j),lw(a,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===j||!j||0===j.length),lw(a,"UgHJ1nnMa-axxvCtxsZexg==","lg"===j),a)),children:[(0,h.jsx)(og,{className:v()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",s0),slot:"start",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}}),(0,h.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,h.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,h.jsx)(og,{className:v()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",s0),slot:"end",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}})]}),(0,h.jsx)(nX,{className:v()(s2,(lw(o={},s4,"sm"===j),lw(o,s3,"md"===j||!j||0===j.length),lw(o,s5,"lg"===j),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(ok,{className:s1,children:p}),(0,h.jsx)(s9,{variant:"range",today_:M,minDate:B,maxDate:V})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lD(e){var t=e.classifications,r=(0,b.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,h.jsx)("div",{"aria-label":(0,_.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var n,i,a="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=a?null!=(n=null==r?void 0:r.primaryColor)?n:"red":o?null!=(i=null==r?void 0:r.secondaryColor)?i:"blue":"gray";return(0,h.jsx)(L.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let lO={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var lP=function(e){var t=e.width,r=e.height;return(0,h.jsx)("svg",{width:void 0===t?"64":t,height:void 0===r?"64":r,viewBox:"0 0 64 64",children:(0,h.jsx)("use",{href:"#egen-empty-data-illustration"})})},lj=function(e){var t="tablet"===(0,b.useLayoutType)(),r=e.launchForm;return(0,h.jsx)(L.Layer,{className:lO.layer,children:(0,h.jsxs)(L.Tile,{className:lO.tile,children:[(0,h.jsx)(x,{title:e.headerTitle}),(0,h.jsx)(lP,{}),(0,h.jsx)("p",{className:lO.content,children:(0,_.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,h.jsx)("p",{className:lO.action,children:r&&(0,h.jsx)(L.Button,{onClick:function(){return r()},kind:"ghost",size:t?"lg":"sm",children:(0,_.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lk=function(e){var t,r,n=e.error,i=e.headerTitle;return(0,h.jsx)(L.Layer,{children:(0,h.jsxs)(L.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,h.jsx)(x,{title:i}),(0,h.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,_.V)("error","Error")," ","".concat(null==n||null==(t=n.response)?void 0:t.status,": "),null==n||null==(r=n.response)?void 0:r.statusText]}),(0,h.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,_.V)("errorCopy")})]})})},lC=lk;let lT={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var lA=function(e){var t=e.fieldIcon,r=e.className;if(!t)return null;var n=t.icon;return(0,h.jsx)(n,{className:[lT.fieldIconGlyph,r].filter(Boolean).join(" "),size:16})};function lR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var lI={success:ev,warning:tk,error:s_},lM=function(e){var t,r,n,i=e.currentValidation,a=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return lR(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lR(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1];if((0,m.useEffect)(function(){if(i&&a){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[i,a]),!a||!i)return null;var u=lI[i.type];return u?(0,h.jsx)("div",{className:v()(lT.validationIcon,lT["validationIcon--".concat(i.type)],(r={},n=lT["validationIcon--visible"],n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s,r)),children:(0,h.jsx)(u,{className:lT.validationIconGlyph,size:16})}):null};let lN=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lL=new Set([...lN,"pathRotation"]),l_=(e,t,r)=>r>t?t:r<e?e:r,lF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lB={...lF,transform:e=>l_(0,1,e)},lV={...lF,default:1},l$=e=>Math.round(1e5*e)/1e5,lW=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lU=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lz=(e,t)=>r=>!!("string"==typeof r&&lU.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),lH=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(lW);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lG={...lF,transform:e=>Math.round(l_(0,255,e))},lK={test:lz("rgb","red"),parse:lH("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lG.transform(e)+", "+lG.transform(t)+", "+lG.transform(r)+", "+l$(lB.transform(n))+")"},lY={test:lz("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:lK.transform},lZ=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lq=lZ("deg"),lX=lZ("%"),lQ=lZ("px"),lJ=lZ("vh"),l0=lZ("vw"),l1={...lX,parse:e=>lX.parse(e)/100,transform:e=>lX.transform(100*e)},l2={test:lz("hsl","hue"),parse:lH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lX.transform(l$(t))+", "+lX.transform(l$(r))+", "+l$(lB.transform(n))+")"},l3={test:e=>lK.test(e)||lY.test(e)||l2.test(e),parse:e=>lK.test(e)?lK.parse(e):l2.test(e)?l2.parse(e):lY.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lK.transform(e):l2.transform(e),getAnimatableNone:e=>{let t=l3.parse(e);return t.alpha=0,l3.transform(t)}},l4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,l5="number",l6="color",l8=/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 l9(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=t.replace(l8,e=>(l3.test(e)?(n.color.push(a),i.push(l6),r.push(l3.parse(e))):e.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(e)):(n.number.push(a),i.push(l5),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function l7({split:e,types:t}){let r=e.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=e[a],void 0!==n[a]){let e=t[a];e===l5?i+=l$(n[a]):e===l6?i+=l3.transform(n[a]):i+=n[a]}return i}}let ue={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lW)?.length||0)+(e.match(l4)?.length||0)>0},parse:function(e){return l9(e).values},createTransformer:function(e){return l7(l9(e))},getAnimatableNone:function(e){let t=l9(e);return l7(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:l3.test(e)?l3.getAnimatableNone(e):e)(e,t.split[r])))}},ut=new Set(["brightness","contrast","saturate","opacity"]);function ur(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(lW)||[];if(!n)return e;let i=r.replace(n,""),a=+!!ut.has(t);return n!==r&&(a*=100),t+"("+a+i+")"}let un=/\b([a-z-]*)\(.*?\)/gu,ui={...ue,getAnimatableNone:e=>{let t=e.match(un);return t?t.map(ur).join(" "):e}},ua={...ue,getAnimatableNone:e=>{let t=ue.parse(e);return ue.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},uo={...lF,transform:Math.round},us={borderWidth:lQ,borderTopWidth:lQ,borderRightWidth:lQ,borderBottomWidth:lQ,borderLeftWidth:lQ,borderRadius:lQ,borderTopLeftRadius:lQ,borderTopRightRadius:lQ,borderBottomRightRadius:lQ,borderBottomLeftRadius:lQ,width:lQ,maxWidth:lQ,height:lQ,maxHeight:lQ,top:lQ,right:lQ,bottom:lQ,left:lQ,inset:lQ,insetBlock:lQ,insetBlockStart:lQ,insetBlockEnd:lQ,insetInline:lQ,insetInlineStart:lQ,insetInlineEnd:lQ,padding:lQ,paddingTop:lQ,paddingRight:lQ,paddingBottom:lQ,paddingLeft:lQ,paddingBlock:lQ,paddingBlockStart:lQ,paddingBlockEnd:lQ,paddingInline:lQ,paddingInlineStart:lQ,paddingInlineEnd:lQ,margin:lQ,marginTop:lQ,marginRight:lQ,marginBottom:lQ,marginLeft:lQ,marginBlock:lQ,marginBlockStart:lQ,marginBlockEnd:lQ,marginInline:lQ,marginInlineStart:lQ,marginInlineEnd:lQ,fontSize:lQ,backgroundPositionX:lQ,backgroundPositionY:lQ,rotate:lq,pathRotation:lq,rotateX:lq,rotateY:lq,rotateZ:lq,scale:lV,scaleX:lV,scaleY:lV,scaleZ:lV,skew:lq,skewX:lq,skewY:lq,distance:lQ,translateX:lQ,translateY:lQ,translateZ:lQ,x:lQ,y:lQ,z:lQ,perspective:lQ,transformPerspective:lQ,opacity:lB,originX:l1,originY:l1,originZ:lQ,zIndex:uo,fillOpacity:lB,strokeOpacity:lB,numOctaves:uo},ul={...us,color:l3,backgroundColor:l3,outlineColor:l3,fill:l3,stroke:l3,borderColor:l3,borderTopColor:l3,borderRightColor:l3,borderBottomColor:l3,borderLeftColor:l3,filter:ui,WebkitFilter:ui,mask:ua,WebkitMask:ua},uu=e=>ul[e],uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),ud=()=>({x:uc(),y:uc()}),uf=()=>({min:0,max:0}),up=()=>({x:uf(),y:uf()}),uh=e=>!!(e&&e.getVelocity),um=new Set(["width","height","top","left","right","bottom",...lN]),uy=e=>t=>t.test(e),ug=[lF,lQ,lX,lq,l0,lJ,{test:e=>"auto"===e,parse:e=>e}],uv=e=>ug.find(uy(e)),ub=()=>{},uw=()=>{},ux=e=>t=>"string"==typeof t&&t.startsWith(e),uS=ux("--"),uE=ux("var(--"),uD=e=>!!uE(e)&&uO.test(e.split("/*")[0].trim()),uO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uP(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let uj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uk=e=>180*e/Math.PI,uC=e=>uA(uk(Math.atan2(e[1],e[0]))),uT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uC,rotateZ:uC,skewX:e=>uk(Math.atan(e[1])),skewY:e=>uk(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uA=e=>((e%=360)<0&&(e+=360),e),uR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uI=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uR,scaleY:uI,scale:e=>(uR(e)+uI(e))/2,rotateX:e=>uA(uk(Math.atan2(e[6],e[5]))),rotateY:e=>uA(uk(Math.atan2(-e[2],e[0]))),rotateZ:uC,rotate:uC,skewX:e=>uk(Math.atan(e[4])),skewY:e=>uk(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uN(e){return+!!e.includes("scale")}function uL(e,t){let r,n;if(!e||"none"===e)return uN(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=uM,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uT,n=t}if(!n)return uN(t);let a=r[t],o=n[1].split(",").map(u_);return"function"==typeof a?a(o):o[a]}function u_(e){return parseFloat(e.trim())}let uF=e=>e===lF||e===lQ,uB=new Set(["x","y","z"]),uV=lN.filter(e=>!uB.has(e)),u$={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},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:(e,{transform:t})=>uL(t,"x"),y:(e,{transform:t})=>uL(t,"y")};u$.translateX=u$.x,u$.translateY=u$.y;let uW=e=>e,uU={},uz=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uH(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=uz.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,i=!1,o=!1)=>{let s=o&&n?t:r;return i&&a.add(e),s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,n){i=!0;return}n=!0;let a=t;t=r,r=a,t.forEach(s),t.clear(),n=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=o,m=()=>{let a=uU.useManualTiming,o=a?i.timestamp:performance.now();r=!1,a||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))};return{schedule:uz.reduce((t,a)=>{let s=o[a];return t[a]=(t,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||e(m)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<uz.length;t++)o[uz[t]].cancel(e)},state:i,steps:o}}let{schedule:uG,cancel:uK,state:uY,steps:uZ}=uH("u">typeof requestAnimationFrame?requestAnimationFrame:uW,!0),uq=new Set,uX=!1,uQ=!1,uJ=!1;function u0(){if(uQ){let e=Array.from(uq).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],uV.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uQ=!1,uX=!1,uq.forEach(e=>e.complete(uJ)),uq.clear()}function u1(){uq.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uQ=!0)})}class u2{constructor(e,t,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(uq.add(this),uX||(uX=!0,uG.read(u1),uG.resolveKeyframes(u0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uq.delete(this)}cancel(){"scheduled"===this.state&&(uq.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let u3=new Set([ui,ua]);function u4(e,t){let r=uu(e);return u3.has(r)||(r=ue),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let u5=new Set(["auto","none","0"]);class u6 extends u2{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&uD(n=n.trim())){let i=function e(t,r,n=1){uw(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,a]=function(e){let t=uj.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uD(a)?e(a,r,n+1):a}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!um.has(r)||2!==e.length)return;let[n,i]=e,a=uv(n),o=uv(i);if(uP(n)!==uP(i)&&u$[r]){this.needsMeasurement=!0;return}if(a!==o)if(uF(a)&&uF(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else u$[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!u5.has(t)&&l9(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=u4(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=u$[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=u$[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let u8=e=>1e3*e;function u9(e,t){-1===e.indexOf(t)&&e.push(t)}function u7(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class ce{constructor(){this.subscriptions=[]}add(e){return u9(this.subscriptions,e),()=>u7(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ct(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function cr(e){let t;return()=>(void 0===t&&(t=e()),t)}let cn={};function ci(e,t){let r=cr(e);return()=>cn[t]??r()}let ca=ci(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),co=e=>null!==e;function cs(e,{repeat:t,repeatType:r="loop"},n,i=1){let a=e.filter(co),o=i<0||t&&"loop"!==r&&t%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}class cl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cu=e=>Array.isArray(e)&&"number"==typeof e[0],cc=ci(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cd=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function ch(e){return"function"==typeof e&&"applyToOptions"in e}class cm extends cl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,uw("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return ch(e)&&cc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?cc()?cd(t,r):"ease-out":cu(t)?cf(t):Array.isArray(t)?t.map(t=>e(t,r)||cp.easeOut):cp[t]}(s,i);Array.isArray(d)&&(c.easing=d);let f={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cs(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ct(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ca())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),uW):n(this)}}let cy=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cg}=uH(queueMicrotask,!1);function cv(){a=void 0}let cb={now:()=>(void 0===a&&cb.set(uY.isProcessing||uU.useManualTiming?uY.timestamp:performance.now()),a),set:e=>{a=e,queueMicrotask(cv)}},cw=(e,t)=>t?1e3/t*e:0,cx;class cS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);let r=this.events[e].add(t);return"change"===e?()=>{r(),uG.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cx&&cx.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cE(e,t){return new cS(e,t)}let cD=[...ug,l3,ue],cO=new WeakMap;function cP(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cj(e){return"string"==typeof e||Array.isArray(e)}let ck=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cC=["initial",...ck];function cT(e){return cP(e.animate)||cC.some(t=>cj(e[t]))}function cA(e){return!!(cT(e)||e.variants)}let cR={current:null},cI={current:!1},cM="u">typeof window;function cN(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function cL(e,t,r,n){if("function"==typeof t){let[i,a]=cN(n);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=cN(n);t=t(void 0!==r?r:e.custom,i,a)}return t}let c_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cF={};class cB{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=u2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=cb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uG.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=cT(t),this.isVariantNode=cA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&uh(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cI.current||function(){if(cI.current=!0,cM)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cR.current=e.matches;e.addEventListener("change",t),t()}else cR.current=!1}(),this.shouldReduceMotion=cR.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uK(this.notifyUpdate),uK(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cy.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:a,duration:o}=t.accelerate,s=new cm({element:this.current,name:e,keyframes:n,times:i,ease:a,duration:u8(o)}),l=r(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let n=lL.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uG.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in cF){let t=cF[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):up()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<c_.length;t++){let r=c_[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if(uh(i))e.addValue(n,i);else if(uh(a))e.addValue(n,cE(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,cE(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=cE(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!cD.find(uy(n))&&ue.test(t)&&(r=u4(e,t))}this.setBaseTarget(e,uh(r)?r.get():r)}return uh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=cL(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||uh(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}}class cV extends cB{constructor(){super(...arguments),this.KeyframeResolver=u6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;uh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function c$(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,cU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cz=lN.length;function cH(e,t,r){let{style:n,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let r=t[e];if(lL.has(e)){o=!0;continue}if(uS(e)){i[e]=r;continue}{let t=cW(r,us[e]);e.startsWith("origin")?(s=!0,a[e]=t):n[e]=t}}if(!t.transform&&(o||r?n.transform=function(e,t,r){let n="",i=!0;for(let a=0;a<cz;a++){let o=lN[a],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||r){let e=cW(s,us[o]);if(!l){i=!1;let t=cU[o]||o;n+=`${t}(${e}) `}r&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,n+=`rotate(${cW(a,us.pathRotation)}) `),n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=a;n.transformOrigin=`${e} ${t} ${r}`}}let cG={offset:"stroke-dashoffset",array:"stroke-dasharray"},cK={offset:"strokeDashoffset",array:"strokeDasharray"},cY=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cZ(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(cH(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cY))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let a=i?cG:cK;e[a.offset]=`${-n}`,e[a.array]=`${t} ${r}`}(d,i,a,o,!1)}let cq=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"]),cX=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cQ(e,{style:t,vars:r},n,i){let a,o=e.style;for(a in t)o[a]=t[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}let cJ=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function c0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let c1={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lQ.test(e))return e;else e=parseFloat(e);let r=c0(e,t.target.x),n=c0(e,t.target.y);return`${r}% ${n}%`}},c2=(e,t,r)=>e+(t-e)*r,c3={borderRadius:{...c1,applyTo:[...cJ]},borderTopLeftRadius:c1,borderTopRightRadius:c1,borderBottomLeftRadius:c1,borderBottomRightRadius:c1,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=ue.parse(e);if(n.length>5)return e;let i=ue.createTransformer(e),a=+("number"!=typeof n[0]),o=r.x.scale*t.x,s=r.y.scale*t.y;n[0+a]/=o,n[1+a]/=s;let l=c2(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function c4(e,{layout:t,layoutId:r}){return lL.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!c3[e]||"opacity"===e)}function c5(e,t,r){let n=e.style,i=t?.style,a={};if(!n)return a;for(let t in n)(uh(n[t])||i&&uh(i[t])||c4(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(a[t]=n[t]);return a}function c6(e,t,r){let n=c5(e,t,r);for(let r in e)(uh(e[r])||uh(t[r]))&&(n[-1!==lN.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class c8 extends cV{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=up}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lL.has(t)){let e=uu(t);return e&&e.default||0}return t=cq.has(t)?t:c$(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return c6(e,t,r)}build(e,t,r){cZ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in cQ(e,t,void 0,n),t.attrs)e.setAttribute(cq.has(r)?r:c$(r),t.attrs[r])}mount(e){this.isSVGTag=cX(e.tagName),super.mount(e)}}function c9({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function c7(e){return void 0===e||1===e}function de({scale:e,scaleX:t,scaleY:r}){return!c7(e)||!c7(t)||!c7(r)}function dt(e){return de(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function dn(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function di(e,t=0,r=1,n,i){e.min=dn(e.min,t,r,n,i),e.max=dn(e.max,t,r,n,i)}function da(e,{x:t,y:r}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,r.translate,r.scale,r.originPoint)}function ds(e,t){e.min+=t,e.max+=t}function dl(e,t,r,n,i=.5){let a=c2(e.min,e.max,i);di(e,t,r,a,n)}function du(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dc(e,t,r){let n=r??e;dl(e.x,du(t.x,n.x),t.scaleX,t.scale,t.originX),dl(e.y,du(t.y,n.y),t.scaleY,t.scale,t.originY)}function dd(e,t){return c9(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class df extends cV{constructor(){super(...arguments),this.type="html",this.renderInstance=cQ}mount(e){uw(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(lL.has(t))return this.projection?.isProjecting?uN(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return uL(r,t)})(e,t);{let r=window.getComputedStyle(e),n=(uS(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return dd(e,t)}build(e,t,r){cH(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return c5(e,t,r)}}let dp=["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 dh(e){if("string"!=typeof e||e.includes("-"));else if(dp.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dm=(0,m.createContext)({}),dy=(0,m.createContext)({strict:!1}),dg=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dv=(0,m.createContext)({});function db(e){return Array.isArray(e)?e.join(" "):e}let dw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dx(e,t,r){for(let n in t)uh(t[n])||c4(n,r)||(e[n]=t[n])}let dS=()=>({...dw(),attrs:{}}),dE=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","propagate","ignoreStrict","viewport"]);function dD(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dE.has(e)}let dO=e=>!dD(e);try{bE=require("@emotion/is-prop-valid").default,"function"==typeof bE&&(dO=e=>e.startsWith("on")?!dD(e):bE(e))}catch{}function dP(e){return uh(e)?e.get():e}let dj=(0,m.createContext)(null);function dk(e){let t=(0,m.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dC=e=>(t,r)=>{let n=(0,m.useContext)(dv),i=(0,m.useContext)(dj),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:function(e,t,r,n){let i={},a=n(e,{});for(let e in a)i[e]=dP(a[e]);let{initial:o,animate:s}=e,l=cT(e),u=cA(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!cP(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let n=cL(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,n,i,e),renderState:t()}})(e,t,n,i);return r?a():dk(a)},dT=dC({scrapeMotionValuesFromProps:c5,createRenderState:dw}),dA=dC({scrapeMotionValuesFromProps:c6,createRenderState:dS}),dR={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"]},dI=!1;function dM(){return!function(){if(dI)return;let e={};for(let t in dR)e[t]={isEnabled:e=>dR[t].some(t=>!!e[t])};cF=e,dI=!0}(),cF}let dN=Symbol.for("motionComponentSymbol"),dL="data-"+c$("framerAppearId"),d_=(0,m.createContext)({});function dF(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dB="u">typeof window?m.useLayoutEffect:m.useEffect;function dV(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&function(e){let t=dM();for(let r in e)t[r]={...t[r],...e[r]};cF=t}(n);let a=r?"svg"===r:dh(e),o=a?dA:dT;function s(r,n){var s;let l,u,c,d={...(0,m.useContext)(dg),...r,layoutId:function({layoutId:e}){let t=(0,m.useContext)(dm).id;return t&&void 0!==e?t+"-"+e:e}(r)},{isStatic:f}=d,p=function(e){let{initial:t,animate:r}=function(e,t){if(cT(e)){let{initial:t,animate:r}=e;return{initial:!1===t||cj(t)?t:void 0,animate:cj(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,m.useContext)(dv));return(0,m.useMemo)(()=>({initial:t,animate:r}),[db(t),db(r)])}(r),y=o(r,f);if(!f&&"u">typeof window){(0,m.useContext)(dy).strict;let t=function(e){let{drag:t,layout:r}=dM();if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,r,n,i,a){let{visualElement:o}=(0,m.useContext)(dv),s=(0,m.useContext)(dy),l=(0,m.useContext)(dj),u=(0,m.useContext)(dg),c=u.reducedMotion,d=u.skipAnimations,f=(0,m.useRef)(null),p=(0,m.useRef)(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,y=(0,m.useContext)(d_);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&dF(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,r,i,y);let g=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{h&&g.current&&h.update(r,l)});let v=r[dL],b=(0,m.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dB(()=>{p.current=!0,h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),(0,m.useEffect)(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),h.enteringChildren=void 0)}),h}(e,y,d,i,t.ProjectionNode,a)}return(0,h.jsxs)(dv.Provider,{value:p,children:[l&&p.visualElement?(0,h.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,r,{latestValues:n},i,a=!1,o){let s=(o??dh(e)?function(e,t,r,n){let i=(0,m.useMemo)(()=>{let r=dS();return cZ(r,t,cX(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};dx(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r,n,i={},a=(r=e.style||{},dx(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,m.useMemo)(()=>{let r=dw();return cH(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,n,i,e),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!uh(e[i])&&(dO(i)||!0===r&&dD(i)||!t&&!dD(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,a),u=e!==m.Fragment?{...l,...s,ref:r}:{},{children:c}=t,d=(0,m.useMemo)(()=>uh(c)?c.get():c,[c]);return(0,m.createElement)(e,{...u,children:d})}(e,r,(s=p.visualElement,u=(0,m.useRef)(n),(0,m.useInsertionEffect)(()=>{u.current=n}),c=(0,m.useRef)(null),(0,m.useCallback)(e=>{e&&y.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),y,f,t,a)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,m.forwardRef)(s);return l[dN]=e,l}class d${constructor(e){this.isMounted=!1,this.node=e}update(){}}function dW(e,t,r){let n=e.getProps();return cL(n,t,void 0!==r?r:n.custom,e)}function dU(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function dz(e,t){let r=e?.[t]??e?.default??e;return r!==e?dU(r,e):r}let dH=e=>Array.isArray(e);function dG(e,t){let{transitionEnd:r={},transition:n={},...i}=dW(e,t)||{};for(let t in i={...i,...r}){var a;let r=dH(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,cE(r))}}function dK(e,t){let r=e.getValue("willChange");if(uh(r)&&r.add)return r.add(t);if(!r&&uU.WillChange){let r=new uU.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let dY=(...e)=>e.reduce((e,t)=>r=>t(e(r)));function dZ(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dq(e,t){return r=>r>0?t:e}let dX=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},dQ=[lY,lK,l2];function dJ(e){let t=dQ.find(t=>t.test(e));if(ub(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===l2&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=dZ(s,n,e+1/3),a=dZ(s,n,e),o=dZ(s,n,e-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let d0=(e,t)=>{let r=dJ(e),n=dJ(t);if(!r||!n)return dq(e,t);let i={...r};return e=>(i.red=dX(r.red,n.red,e),i.green=dX(r.green,n.green,e),i.blue=dX(r.blue,n.blue,e),i.alpha=c2(r.alpha,n.alpha,e),lK.transform(i))},d1=new Set(["none","hidden"]);function d2(e,t){return r=>c2(e,t,r)}function d3(e){return"number"==typeof e?d2:"string"==typeof e?uD(e)?dq:l3.test(e)?d0:d6:Array.isArray(e)?d4:"object"==typeof e?l3.test(e)?d0:d5:dq}function d4(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>d3(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function d5(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=d3(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let d6=(e,t)=>{let r=ue.createTransformer(t),n=l9(e),i=l9(t);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return ub(!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.`,"complex-values-different"),dq(e,t);if(d1.has(e)&&!i.values.length||d1.has(t)&&!n.values.length)return d1.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return dY(d4(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][n[a]],s=e.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function d8(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?c2(e,t,r):d3(e)(e,t)}let d9=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uG.update(t,e),stop:()=>uK(t),now:()=>uY.isProcessing?uY.timestamp:cb.now()}};function d7(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let fe=.01,ft=2,fr=.005,fn=.5;function fi(e,t){return e*Math.sqrt(1-t*t)}let fa=["duration","bounce"],fo=["stiffness","damping","mass"];function fs(e,t){return t.some(t=>void 0!==e[t])}function fl(e=.3,t=.3){let r,n,i,a,o,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:h,damping:m,mass:y,duration:g,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fs(e,fo)&&fs(e,fa))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*l_(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:i}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let i,a;ub(e<=u8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=l_(.05,1,o),e=l_(.01,10,e/1e3),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/fi(t,o)*Math.exp(-i)},a=t=>{let n=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=fi(Math.pow(t,2),o);return(n*r+r-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e=u8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,x=m/(2*Math.sqrt(h*y)),S=f-d,E=Math.sqrt(h/y)/1e3,D=5>Math.abs(S);if(u||(u=D?fe:ft),c||(c=D?fr:fn),x<1)i=fi(E,x),a=(w+x*E*S)/i,r=e=>f-Math.exp(-x*E*e)*(a*Math.sin(i*e)+S*Math.cos(i*e)),o=x*E*a+S*i,s=x*E*S-a*i,n=e=>Math.exp(-x*E*e)*(o*Math.sin(i*e)+s*Math.cos(i*e));else if(1===x){r=e=>f-Math.exp(-E*e)*(S+(w+E*S)*e);let e=w+E*S;n=t=>Math.exp(-E*t)*(E*e*t-w)}else{let e=E*Math.sqrt(x*x-1);r=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return f-r*((w+x*E*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(w+x*E*S)/e,i=x*E*t-S*e,a=x*E*S-t*e;n=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return r*(i*Math.sinh(n)+a*Math.cosh(n))}}let O={calculatedDuration:b&&g||null,velocity:e=>u8(n(e)),next:e=>{if(!b&&x<1){let t=Math.exp(-x*E*e),r=Math.sin(i*e),n=Math.cos(i*e),l=f-t*(a*r+S*n);return p.done=Math.abs(u8(t*(o*r+s*n)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=r(e);return b?p.done=e>=g:p.done=Math.abs(u8(n(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(d7(O),2e4),t=cd(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}function fu(e,t,r){let n=Math.max(t-5,0);return cw(r-e(n),t-n)}function fc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=r*t,y=p+m,g=void 0===o?y:o(y);g!==y&&(m=g-p);let v=e=>-m*Math.exp(-e/n),b=e=>g+v(e),w=e=>{let t=v(e),r=b(e);h.done=Math.abs(t)<=u,h.value=h.done?g:r},x=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=fl({keyframes:[h.value,(r=h.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:fu(b,e,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),h)}}}fl.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(d7(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:i/1e3}}(e,100,fl);return e.ease=t.ease,e.duration=u8(t.duration),e.type="keyframes",e};let fd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ff(e,t,r,n){return e===t&&r===n?uW:i=>0===i||1===i?i:fd(function(e,t,r,n,i){let a,o,s=0;do(a=fd(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,e,r),t,n)}let fp=ff(.42,0,1,1),fh=ff(0,0,.58,1),fm=ff(.42,0,.58,1),fy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fg=e=>t=>1-e(1-t),fv=ff(.33,1.53,.69,.99),fb=fg(fv),fw=fy(fb),fx=e=>e>=1?1:(e*=2)<1?.5*fb(e):.5*(2-Math.pow(2,-10*(e-1))),fS=e=>1-Math.sin(Math.acos(e)),fE=fg(fS),fD=fy(fS),fO={linear:uW,easeIn:fp,easeInOut:fm,easeOut:fh,circIn:fS,circInOut:fD,circOut:fE,backIn:fb,backInOut:fw,backOut:fv,anticipate:fx},fP=e=>{if(cu(e)){uw(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return ff(t,r,n,i)}return"string"==typeof e?(uw(void 0!==fO[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fO[e]):e},fj=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};function fk({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(fP):fP(n),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;if(uw(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||uU.mix||d8,a=e.length-1;for(let r=0;r<a;r++){let a=i(e[r],e[r+1]);t&&(a=dY(Array.isArray(t)?t[r]||uW:t,a)),n.push(a)}return n}(t,n,i),l=s.length,u=r=>{if(o&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=fj(e[n],e[n+1],r);return s[n](i)};return r?t=>u(l_(e[0],e[a-1],t)):u}((i=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=fj(0,t,n);e.push(c2(r,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fm).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fC={decay:fc,inertia:fc,tween:fk,keyframes:fk,spring:fl};function fT(e){"string"==typeof e.type&&(e.type=fC[e.type])}let fA=e=>e/100;class fR extends cl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cb.now()&&this.tick(cb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fT(e);let{type:t=fk,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fk;s!==fk&&"number"!=typeof o[0]&&(this.mixKeyframes=dY(fA,d8(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=d7(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:h,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(w=o)),b=l_(0,1,r)*s}v?(this.delayState.value=c[0],r=this.delayState):r=w.next(b),a&&!v&&(r.value=a(r.value));let{done:x}=r;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&h!==fc&&(r.value=cs(c,this.options,y,this.speed)),m&&m(r.value),S&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fu(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cb.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d9,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fI={anticipate:fx,backInOut:fw,circInOut:fD};class fM extends cm{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fI&&(e.ease=fI[e.ease])}(e),fT(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fR({...a,autoplay:!1}),s=Math.max(10,cb.now()-this.startTime),l=l_(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;i&&c&&ct(i,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fN=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ue.test(e)||"0"===e)&&!e.startsWith("url("));function fL(e){e.duration=0,e.type="keyframes"}let f_=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fF=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fB=cr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fV extends cl{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cb.now();const d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||u2;this.keyframeResolver=new f(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){let i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=cb.now();let d=!0;!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],o=fN(i,t),s=fN(a,t);return ub(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||ch(r))&&n)}(e,a,o,s)&&(d=!1,(uU.instantAnimations||!l)&&c?.(cs(e,r,t)),e[0]=e[e.length-1],fL(r),r.repeat=0);let f={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fB()&&r&&(cy.has(r)||fF.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&f_.test(e[t]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(f),h=f.motionValue?.owner?.current;if(p)try{i=new fM({...f,element:h})}catch{i=new fR(f)}else i=new fR(f);i.finished.then(()=>{this.notifyFinished()}).catch(uW),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uJ=!0,u1(),u0(),uJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let f$={type:"spring",stiffness:500,damping:25,restSpeed:10},fW={type:"keyframes",duration:.8},fU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fz=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fH=(e,t,r,n={},i,a)=>o=>{let s=dz(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=u8(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!fz.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fW:lL.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:f$:fU)(e,c)),c.duration&&(c.duration=u8(c.duration)),c.repeatDelay&&(c.repeatDelay=u8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(fL(c),0===c.delay&&(d=!0)),(uU.instantAnimations||uU.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fL(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){let e=cs(c.keyframes,s);if(void 0!==e)return void uG.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fR(c):new fV(c)};function fG(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,l=e.getDefaultTransition();a=a?dU(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,s,a,r,d),s){let n=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(f,t))continue;let o={delay:r,...dz(a||{},t)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){uG.update(()=>n.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let r=e.props[dL];if(r){let e=window.MotionHandoffAnimation(r,t,uG);null!==e&&(o.startTime=e,p=!0)}}dK(e,t);let h=u??e.shouldReduceMotion;n.start(fH(t,n,i,h&&um.has(t)?{type:!1}:o,e,p));let m=n.animation;m&&d.push(m)}if(o){let t=()=>uG.update(()=>{o&&dG(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fK(e,t,r,n=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function fY(e,t,r={}){let n=dW(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(fG(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=0,a=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fY(l,t,{...o,delay:r+("function"==typeof n?0:n)+fK(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([a(),o(r.delay)]);{let[e,t]="beforeChildren"===s?[a,o]:[o,a];return e().then(()=>t())}}function fZ(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>fY(e,t,r)));else if("string"==typeof t)n=fY(e,t,r);else{let i="function"==typeof t?dW(e,t,r.custom):t;n=Promise.all(fG(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}let fq=cC.length;function fX(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let fQ=[...ck].reverse(),fJ=ck.length;function f0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f1(){return{animate:f0(!0),whileInView:f0(),whileHover:f0(),whileTap:f0(),whileDrag:f0(),whileFocus:f0(),exit:f0()}}let f2=0,f3={x:!1,y:!1};function f4(e){return[e("x"),e("y")]}function f5(e){return e.max-e.min}function f6(e,t,r,n=.5){e.origin=n,e.originPoint=c2(t.min,t.max,e.origin),e.scale=f5(r)/f5(t),e.translate=c2(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f8(e,t,r,n){f6(e.x,t.x,r.x,n?n.originX:void 0),f6(e.y,t.y,r.y,n?n.originY:void 0)}function f9(e,t,r,n=0){e.min=(n?c2(r.min,r.max,n):r.min)+t.min,e.max=e.min+f5(t)}function f7(e,t,r,n=0){let i=n?c2(r.min,r.max,n):r.min;e.min=t.min-i,e.max=e.min+f5(t)}function pe(e,t,r,n){f7(e.x,t.x,r.x,n?.x),f7(e.y,t.y,r.y,n?.y)}let pt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pr=new Set(["INPUT","SELECT","TEXTAREA"]);function pn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}let pi=e=>"object"==typeof e&&null!==e;function pa(e){return pi(e)&&"ownerSVGElement"in e}function po(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let ps=new WeakMap,pl=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:pa(n)&&"getBBox"in n?n.getBBox()[t]:n[r],pu=pl("inline","width","offsetWidth"),pc=pl("block","height","offsetHeight");function pd({target:e,borderBoxSize:t}){ps.get(e)?.forEach(r=>{r(e,{get width(){return pu(e,t)},get height(){return pc(e,t)}})})}function pf(e){e.forEach(pd)}let pp=new Set;function ph(e,t){let r;return"function"==typeof e?(pp.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pp.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{pp.delete(e),pp.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(pf)),(r=po(e)).forEach(e=>{let r=ps.get(e);r||(r=new Set,ps.set(e,r)),r.add(t),o?.observe(e)}),()=>{r.forEach(e=>{let r=ps.get(e);r?.delete(t),r?.size||o?.unobserve(e)})})}let pm=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function py(e){return{point:{x:e.pageX,y:e.pageY}}}function pg(e,t,r,n){return pn(e,t,e=>pm(e)&&r(e,py(e)),n)}let pv=({current:e})=>e?e.ownerDocument.defaultView:null,pb=(e,t)=>Math.abs(e-t),pw=new Set(["auto","scroll"]);class px{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pS(this.lastRawMoveEventInfo,this.transformPagePoint));let r=pD(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(pb(e.x,t.x)**2+pb(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=uY;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pS(t,this.transformPagePoint),uG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=pD("pointercancel"===e.type?this.lastMoveEventInfo:pS(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!pm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const s=pS(py(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uY;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pD(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dY(pg(this.contextWindow,"pointermove",this.handlePointerMove,d),pg(this.contextWindow,"pointerup",this.handlePointerUp,d),pg(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pw.has(e.overflowX)||pw.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:n.x-t.x,y:n.y-t.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,n),uG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uK(this.updatePoint)}}function pS(e,t){return t?{point:t(e.point)}:e}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pD({point:e},t){return{point:e,delta:pE(e,pO(t)),offset:pE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=pO(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>u8(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&n.timestamp-r.timestamp>2*u8(.1)&&(r=e[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function pO(e){return e[e.length-1]}function pP(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function pj(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function pk(e,t,r){return{min:pC(e,t),max:pC(e,r)}}function pC(e,t){return"number"==typeof e?e:e[t]||0}let pT=new WeakMap;class pA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=up(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{t&&this.snapToCursor(py(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f3[e])return null;else return f3[e]=!0,()=>{f3[e]=!1};return f3.x||f3.y?null:(f3.x=f3.y=!0,()=>{f3.x=f3.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),f4(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lX.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=f5(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&uG.update(()=>i(e,t),!1,!0),dK(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&uG.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new px(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:pv(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&uG.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!pI(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?c2(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?c2(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&dF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:pP(e.x,r,i),y:pP(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pk(e,"left","right"),y:pk(e,"top","bottom")}}(t),n!==this.constraints&&!dF(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&f4(e=>{var t,n;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],i={},void 0!==n.min&&(i.min=n.min-t.min),void 0!==n.max&&(i.max=n.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!dF(t))return!1;let n=t.current;uw(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,r){let n=dd(e,r),{scroll:i}=t;return i&&(ds(n.x,i.offset.x),ds(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:pj(e.x,a.x),y:pj(e.y,a.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c9(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(f4(o=>{if(!pI(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return dK(this.visualElement,e),r.start(fH(e,r,0,t,this.visualElement,!1))}stopAnimation(){f4(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){f4(t=>{let{drag:r}=this.getProps();if(!pI(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-c2(r,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!dF(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};f4(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,i;let a,o,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],a=.5,o=f5(r),(s=f5(i))>o?a=fj(i.min,i.max-o,r.min):o>s&&(a=fj(r.min,r.max-s,i.min)),l_(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),f4(t=>{if(!pI(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set(c2(i,a,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pT.set(this.visualElement,this);let t=this.visualElement.current,r=pg(t,"pointerdown",e=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=e.target,a=i!==t&&(pr.has(i.tagName)||!0===i.isContentEditable);r&&n&&!a&&this.start(e)}),n=()=>{var r,n,i;let a,o,{dragConstraints:s}=this.getProps();dF(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,n=s.current,a=ph(r,pR(i=()=>this.scalePositionWithinConstraints())),o=ph(n,pR(i)),e=()=>{a(),o()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),uG.read(n);let o=pn(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(f4(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function pR(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pI(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let pM=e=>(t,r)=>{e&&uG.update(()=>e(t,r),!1,!0)},pN={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pL(e=!0){let t=(0,m.useContext)(dj);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,a=(0,m.useId)();(0,m.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,m.useCallback)(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}let p_=!1;class pF extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),p_&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pN.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),p_=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||uG.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),cg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;p_=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pB(e){let[t,r]=pL(),n=(0,m.useContext)(dm);return(0,h.jsx)(pF,{...e,layoutGroup:n,switchLayoutGroup:(0,m.useContext)(d_),isPresent:t,safeToRemove:r})}let pV=cJ.length,p$=e=>"string"==typeof e?parseFloat(e):e,pW=e=>"number"==typeof e||lQ.test(e);function pU(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pz=pG(0,.5,fE),pH=pG(.5,.95,uW);function pG(e,t,r){return n=>n<e?0:n>t?1:r(fj(e,t,n))}function pK(e,t){e.min=t.min,e.max=t.max}function pY(e,t){pK(e.x,t.x),pK(e.y,t.y)}function pZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pq(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function pX(e,t,[r,n,i],a,o){!function(e,t=0,r=1,n=.5,i,a=e,o=e){if(lX.test(t)&&(t=parseFloat(t),t=c2(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=c2(a.min,a.max,n);e===a&&(s-=t),e.min=pq(e.min,t,r,s,i),e.max=pq(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,a,o)}let pQ=["x","scaleX","originX"],pJ=["y","scaleY","originY"];function p0(e,t,r,n){pX(e.x,t,pQ,r?r.x:void 0,n?n.x:void 0),pX(e.y,t,pJ,r?r.y:void 0,n?n.y:void 0)}function p1(e){return 0===e.translate&&1===e.scale}function p2(e){return p1(e.x)&&p1(e.y)}function p3(e,t){return e.min===t.min&&e.max===t.max}function p4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p5(e,t){return p4(e.x,t.x)&&p4(e.y,t.y)}function p6(e){return f5(e.x)/f5(e.y)}function p8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p9{constructor(){this.members=[]}add(e){u9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(u7(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(u7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=e.options;(void 0===n||n!==i)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let p7=(e,t)=>e.depth-t.depth;class he{constructor(){this.children=[],this.isDirty=!1}add(e){u9(this.children,e),this.isDirty=!0}remove(e){u7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(p7),this.isDirty=!1,this.children.forEach(e)}}let ht=["","X","Y","Z"],hr=0;function hn(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function hi({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=hr++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hs),this.nodes.forEach(hy),this.nodes.forEach(hg),this.nodes.forEach(hl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new he)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=pa(t)&&!(pa(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;uG.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,a;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=cb.now(),a=({timestamp:e})=>{let r=e-t;r>=250&&(uK(a),i(r-250))},uG.setup(a,!0),r=()=>uK(a),pN.hasAnimatedSinceResize&&(pN.hasAnimatedSinceResize=!1,this.nodes.forEach(hm))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||hE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!p5(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dz(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||hm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uK(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(hv),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[dL];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",uG,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(hd),this.nodes.forEach(hc);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(hf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hp),this.nodes.forEach(hh),this.nodes.forEach(ha),this.nodes.forEach(ho)):this.nodes.forEach(hf),this.clearAllSnapshots();let e=cb.now();uY.delta=l_(0,1e3/60,e-uY.timestamp),uY.timestamp=e,uY.isProcessing=!0,uZ.update.process(uY),uZ.preRender.process(uY),uZ.render.process(uY),uY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hu),this.sharedNodes.forEach(hb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f5(this.snapshot.measuredBox.x)||f5(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=up()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!p2(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||dt(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),hP((t=n).x),hP(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return up();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hk))){let{scroll:e}=this.root;e&&(ds(t.x,e.offset.x),ds(t.y,e.offset.y))}return t}removeElementScroll(e){let t=up();if(pY(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&pY(t,e),ds(t.x,i.offset.x),ds(t.y,i.offset.y))}return t}applyTransform(e,t=!1,r){let n=r||up();pY(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ds(n.x,-r.scroll.offset.x),ds(n.y,-r.scroll.offset.y)),dt(r.latestValues)&&dc(n,r.latestValues,r.layout?.layoutBox)}return dt(this.latestValues)&&dc(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=up();pY(t,e);for(let e=0;e<this.path.length;e++){let r,n=this.path[e];dt(n.latestValues)&&(n.instance&&(de(n.latestValues)&&n.updateSnapshot(),pY(r=up(),n.measurePageBox())),p0(t,n.latestValues,n.snapshot?.layoutBox,r))}return dt(this.latestValues)&&p0(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==uY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=uY.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=up(),this.targetWithTransforms=up()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f9(o.x,s.x,l.x,u?.x),f9(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pY(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):pY(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||de(this.parent.latestValues)||dr(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=up(),this.relativeTargetOrigin=up(),pe(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),pY(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===uY.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;pY(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,n=!1){let i,a,o=r.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ds(e.x,-i.scroll.offset.x),ds(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,da(e,a)),n&&dt(i.latestValues)&&dc(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=up());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pZ(this.prevProjectionDelta.x,this.projectionDelta.x),pZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&p8(this.projectionDelta.x,this.prevProjectionDelta.x)&&p8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ud(),this.projectionDelta=ud(),this.projectionDeltaWithTransform=ud()}setAnimationOrigin(e,t=!1,r){let n,i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=ud();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=up(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(hS));this.animationProgress=0;let p=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,i=p?.(r);if(i?(s.x.translate=i.x,s.x.scale=c2(e.x.scale,1,r),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=c2(e.y.scale,1,r),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(hw(s.x,e.x,r),hw(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,y,g,v;pe(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=r,hx(m.x,y.x,g.x,v),hx(m.y,y.y,g.y,v),n&&(c=this.relativeTarget,h=n,p3(c.x,h.x)&&p3(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=up()),pY(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,n,i,a){i?(e.opacity=c2(0,r.opacity??1,pz(n)),e.opacityExit=c2(t.opacity??1,0,pH(n))):a&&(e.opacity=c2(t.opacity??1,r.opacity??1,n));for(let i=0;i<pV;i++){let a=cJ[i],o=pU(t,a),s=pU(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pW(o)===pW(s)?(e[a]=Math.max(c2(p$(o),p$(s),n),0),(lX.test(s)||lX.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=c2(t.rotate||0,r.rotate||0,n))}(o,a,this.latestValues,r,f,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uK(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uG.update(()=>{var t,r,n;let i;pN.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cE(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=uh(t)?t:cE(t)).start(fH("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&hj(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||up();let t=f5(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=f5(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}pY(t,r),dc(t,i),f8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p9),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&hn("z",e,n,this.animationValues);for(let t=0;t<ht.length;t++)hn(`rotate${ht[t]}`,e,n,this.animationValues),hn(`skew${ht[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dP(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dP(t?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotate(${i}deg) `),a&&(n+=`rotateX(${a}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,c3){if(void 0===i[t])continue;let{correct:r,applyTo:o,isCSSVariable:s}=c3[t],l="none"===a?i[t]:r(i[t],n);if(o){let t=o.length;for(let r=0;r<t;r++)e[o[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?dP(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hc),this.root.sharedNodes.clear()}}}function ha(e){e.updateLayout()}function ho(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)f4(e=>{let n=a?t.measuredBox[e]:t.layoutBox[e],i=f5(n);n.min=r[e].min,n.max=n.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";pK(a?t.measuredBox[e]:t.layoutBox[e],r[e])}else hj(i,t.layoutBox,r)&&f4(n=>{let i=a?t.measuredBox[n]:t.layoutBox[n],o=f5(r[n]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ud();f8(o,r,t.layoutBox);let s=ud();a?f8(s,e.applyTransform(n,!0),t.measuredBox):f8(s,r,t.layoutBox);let l=!p2(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let o=e.options.layoutAnchor||void 0,s=up();pe(s,t.layoutBox,i.layoutBox,o);let l=up();pe(l,r,a.layoutBox,o),p5(s,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hs(e){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 hl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hu(e){e.clearSnapshot()}function hc(e){e.clearMeasurements()}function hd(e){e.isLayoutDirty=!0,e.updateLayout()}function hf(e){e.isLayoutDirty=!1}function hp(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hy(e){e.resolveTargetDelta()}function hg(e){e.calcProjection()}function hv(e){e.resetSkewAndRotation()}function hb(e){e.removeLeadSnapshot()}function hw(e,t,r){e.translate=c2(t.translate,0,r),e.scale=c2(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hx(e,t,r,n){e.min=c2(t.min,r.min,n),e.max=c2(t.max,r.max,n)}function hS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let hE={duration:.45,ease:[.4,0,.1,1]},hD=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hO=hD("applewebkit/")&&!hD("chrome/")?Math.round:uW;function hP(e){e.min=hO(e.min),e.max=hO(e.max)}function hj(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p6(t)-p6(r)))}function hk(e){return e!==e.root&&e.scroll?.wasRoot}let hC=hi({attachResizeListener:(e,t)=>pn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hT={current:void 0},hA=hi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hT.current){let e=new hC({});e.mount(window),e.setOptions({layoutScroll:!0}),hT.current=e}return hT.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function hR(e,t){let r=po(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function hI(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&uG.postRender(()=>i(t,py(t)))}function hM(e){return pi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let hN=(e,t)=>!!t&&(e===t||hN(e,t.parentElement)),hL=new WeakSet;function h_(e){return t=>{"Enter"===t.key&&e(t)}}function hF(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function hB(e){return pm(e)&&!(f3.x||f3.y)}let hV=new WeakSet;function h$(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&uG.postRender(()=>i(t,py(t)))}let hW=new WeakMap,hU=new WeakMap,hz=e=>{let t=hW.get(e.target);t&&t(e)},hH=e=>{e.forEach(hz)},hG={some:0,all:1},hK=function(e,t){if("u"<typeof Proxy)return dV;let r=new Map,n=(r,n)=>dV(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,dV(a,void 0,e,t)),r.get(a))})}({animation:{Feature:class extends d${constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>fZ(e,t,r))),r=f1(),n=!0,i=!1,a=t=>(r,n)=>{let i=dW(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<fq;e++){let n=cC[e],i=t.props[n];(cj(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<fJ;t++){var p,h;let m=fQ[t],y=r[m],g=void 0!==s[m]?s[m]:l[m],v=cj(g),b=m===o?y.isActive:null;!1===b&&(f=t);let w=g===l[m]&&g!==s[m]&&v;if(w&&(n||i)&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||cP(g)||"boolean"==typeof g)continue;if("exit"===m&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let x=(p=y.prevProp,"string"==typeof(h=g)?h!==p:!!Array.isArray(h)&&!fX(h,p)),S=x||m===o&&y.isActive&&!w&&v||t>f&&v,E=!1,D=Array.isArray(g)?g:[g],O=D.reduce(a(m),{});!1===b&&(O={});let{prevResolvedValues:P={}}=y,j={...P,...O},k=t=>{S=!0,c.has(t)&&(E=!0,c.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in j){let t=O[e],r=P[e];if(!d.hasOwnProperty(e))(dH(t)&&dH(r)?!fX(t,r)||x:t!==r)?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):y.protectedKeys[e]=!0}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(d={...d,...O}),(n||i)&&e.blockInitialAnimation&&(S=!1);let C=w&&x,T=!C||E;S&&T&&u.push(...D.map(t=>{let r={type:m};if("string"==typeof t&&(n||i)&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=dW(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=fK(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let r=dW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),u.push({animation:t})}let m=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=o(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=f1(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();cP(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends d${constructor(){super(...arguments),this.id=f2++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=dW(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...n}=r;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends d${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:hG[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;hU.has(r)||hU.set(r,{});let n=hU.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hH,{root:e,...t})),n[i]}(s),hW.set(e,l),t.observe(e),()=>{hW.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends d${mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[n,i,a]=hR(e,r),o=e=>{let n=e.currentTarget;if(!hB(e)||hV.has(e))return;hL.add(n),r.stopPropagation&&hV.add(e);let a=t(n,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),hL.has(n)&&hL.delete(n),hB(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{s(e,n===window||n===document||r.useGlobalTarget||hN(n,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),hM(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=h_(()=>{if(hL.has(r))return;hF(r,"down");let e=h_(()=>{hF(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>hF(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),pt.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(h$(this.node,t,"Start"),(e,{success:t})=>h$(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}},focus:{Feature:class extends d${constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=dY(pn(this.node.current,"focus",()=>this.onFocus()),pn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends d${mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=hR(e,r);return n.forEach(e=>{let r,n=!1,a=!1,o=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){a=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||f3.x||f3.y)return;a=!1;let o=t(e,n);"function"==typeof o&&(r=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}(e,(e,t)=>(hI(this.node,t,"Start"),e=>hI(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends d${constructor(){super(...arguments),this.removePointerDownListener=uW}onPointerDown(e){this.session=new px(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:pM(e),onStart:pM(t),onMove:pM(r),onEnd:(e,t)=>{delete this.session,n&&uG.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=pg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends d${constructor(e){super(e),this.removeGroupControls=uW,this.removeListeners=uW,this.controls=new pA(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uW}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:hA,MeasureLayout:pB},layout:{ProjectionNode:hA,MeasureLayout:pB}},(e,t)=>t.isSVG??dh(e)?new c8(t):new df(t,{allowProjection:e!==m.Fragment}));var hY={initial:{},animate:{transition:{staggerChildren:.05}}},hZ={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},hq=function(e){var t=e.label,r=e.active,n=e.required;return(0,h.jsxs)(hK.span,{className:lT.kineticLabel,variants:hY,initial:"initial",animate:r?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,h.jsx)(hK.span,{className:lT.kineticLetter,variants:hZ,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),n&&(0,h.jsx)("span",{className:lT.requiredMark,children:" *"})]})};function hX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hJ={error:[100,50,100],warning:[50,30,50],success:[30]},h0={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function h1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h4=function(e){var t,r,n,i,a,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,y=e.type,g=e.value,b=void 0===g?"":g,w=e.onChange,x=e.className,S=e.disabled,E=void 0!==S&&S,D=e.required,O=void 0!==D&&D,P=e.autoComplete,j=e.autoFocus,k=e.id,C=e.name,T=e.fieldIcon,A=e.validation,R=void 0===A?h0:A,I=e.onFocus,M=e.onBlur,N=e.onValidationChange,L=(0,m.useId)(),_=null!=k?k:"egen-field-".concat(L),F="".concat(_,"-help"),B=h3((0,m.useState)(b),2),V=B[0],$=B[1],W=h3((0,m.useState)(!1),2),U=W[0],z=W[1],H=(0,m.useRef)(null),G=(r=(t=hQ((0,m.useState)(null),2))[0],n=t[1],a=(i=hQ((0,m.useState)(!1),2))[0],o=i[1],s=function(e){R.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(hJ[e]),setTimeout(function(){return o(!1)},600))},(0,m.useEffect)(function(){if(!R.realTimeValidation||!V||0===R.rules.length){n(null),null==N||N(null);return}var e=R.rules.find(function(e){return!e.regex.test(V)});if(e){(null==r?void 0:r.type)!==e.type&&s(e.type),n(e),null==N||N(e);return}var t=R.rules.find(function(e){return"success"===e.type&&e.regex.test(V)});if(t){(null==r?void 0:r.type)!=="success"&&s("success"),n(t),null==N||N(t);return}n(null),null==N||N(null)},[V,R.rules,R.realTimeValidation,null==r?void 0:r.type,N]),{currentValidation:r,isAnimating:a}),K=G.currentValidation,Y=G.isAnimating;(0,m.useEffect)(function(){b!==V&&$(b)},[b]);var Z=(null==T?void 0:T.position)==="left",q=(null==T?void 0:T.position)==="label",X=!!R.showIcons&&!!K,Q=v()(lT.field,lT["field--".concat(c)],lT["field--".concat(void 0===d?"md":d)],(h2(l={},lT["field--disabled"],E),h2(l,lT["field--animating"],Y),h2(l,lT["field--has-left-icon"],Z),h2(l,lT["field--has-validation-icon"],X),l),K&&lT["field--".concat(K.type)],x);return(0,h.jsxs)("div",{className:Q,children:[(0,h.jsxs)("div",{className:lT.fieldControl,ref:H,children:[Z&&(0,h.jsx)("div",{className:lT.leftIcon,children:(0,h.jsx)(lA,{fieldIcon:T})}),(0,h.jsx)("input",{type:void 0===y?"text":y,id:_,name:C,value:V,onChange:function(e){var t=e.target.value;$(t),null==w||w(t)},onFocus:function(e){z(!0),null==I||I(e)},onBlur:function(e){z(!1),null==M||M(e)},disabled:E,required:O,autoComplete:P,autoFocus:j,className:lT.input,placeholder:void 0===p?" ":p,"aria-describedby":R.showMessages&&K?F:void 0,"aria-invalid":(null==K?void 0:K.type)==="error"||void 0}),f&&"kinetic"===c&&(0,h.jsx)("label",{htmlFor:_,className:lT.kineticLabelWrapper,children:(0,h.jsx)(hq,{label:f,active:U||V.length>0,required:O})}),f&&"kinetic"!==c&&(0,h.jsxs)("label",{htmlFor:_,className:lT.label,children:[q&&(0,h.jsx)(lA,{fieldIcon:T,className:lT.labelIconGlyph}),(0,h.jsxs)("span",{className:lT.labelText,children:[f,O&&(0,h.jsxs)("span",{className:lT.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,h.jsx)(lM,{currentValidation:K,showIcons:!!R.showIcons})]}),R.showMessages&&K&&(0,h.jsxs)("p",{id:F,className:lT.message,role:"error"===K.type?"alert":void 0,children:[(0,h.jsxs)("span",{className:lT.messageLead,children:["success"===K.type&&"Parfait !","error"===K.type&&"Erreur —","warning"===K.type&&"Attention —"]})," ",K.message]})]})};function h5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var h6=y().forwardRef(function(e,t){var r,n,i,a=(0,b.useLeftNavStore)(),o=a.slotName,s=a.basePath,l=a.componentContext,u=a.state,c=null!=(i=window.location)?i:{pathname:""},d=(0,b.useAssignedExtensions)(null!=o?o:"");return e.isChildOfHeader&&o&&d.length>0?(0,h.jsxs)(L.SideNav,(r=h5({"aria-label":(0,_.V)("leftNavigation","Left navigation"),className:"jzTJKtCPCooU36+y+NwbPQ==",expanded:!0,isFixedNav:!0,ref:t},e),n=n={children:[(0,h.jsx)(b.ExtensionSlot,{name:"global-nav-menu-slot"}),o?(0,h.jsx)(b.RenderIfValueIsTruthy,{value:l,fallback:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)}),children:(0,h.jsx)(b.ComponentContext.Provider,{value:l,children:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)})})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)):null}),h8=r(6269),h9=r(3709),h7=r(7530);function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mt(e,t){if(e){if("string"==typeof e)return me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(e,t)}}var mr=function(e){var t,r,n,i,a,o,s=e.selectedLocationUuid,l=e.defaultLocationUuid,u=e.locationTag,c=e.locationsPerRequest,d=void 0===c?50:c,f=e.onChange,p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mt(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],v=(0,m.useId)(),w=(r=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,i=(n=(0,h8.A)(r,h7.egenFetch,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,a=n.error,o=n.isLoading,(0,m.useMemo)(function(){var e;return{location:(null==i||null==(e=i.data)?void 0:e.entry)?i.data.entry[0]:null,error:r?a:null,isLoading:!!r&&o}},[i,o,a,r])).location,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(0,b.useDebounce)(r),i=(0,h9.Ay)(function(r,i){if(i){var a,o,s=null==(o=i.data)||null==(a=o.link)?void 0:a.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var u="".concat(h7.fhirBaseUrl,"/Location?"),c=new URLSearchParams;return c.append("_summary","data"),t&&c.append("_count",""+t),r&&c.append("_getpagesoffset",""+r*t),e&&c.append("_tag",e),"string"==typeof n&&""!==n&&c.append("name:contains",n),u+c.toString()},h7.egenFetch),a=i.data,o=i.isLoading,s=i.isValidating,l=i.setSize,u=i.error;return(0,m.useMemo)(function(){var e,t,r,n,i;return{locations:(null==a?void 0:a.length)?null==a?void 0:a.flatMap(function(e){var t,r;return null!=(t=null==e||null==(r=e.data)?void 0:r.entry)?t:[]}):[],isLoading:o,totalResults:null==a||null==(t=a[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=a&&!!a.length&&(null==a||null==(i=a[a.length-1])||null==(n=i.data)||null==(r=n.link)?void 0:r.some(function(e){return"next"===e.relation})),loadingNewData:s,error:u||null,setPage:l}},[o,a,s,l,u])}(u,d,y),S=x.locations,E=x.isLoading,D=x.hasMore,O=x.loadingNewData,P=x.error,j=x.setPage,k=(0,m.useMemo)(function(){if(w&&!y&&l){var e;return[w].concat(function(e){if(Array.isArray(e))return me(e)}(e=S.filter(function(e){return e.resource.id!==l}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mt(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return null!=S?S:[]},[w,S,l,y]),C=(0,m.useCallback)(function(e){f(),g(e.trim())},[f]),T=(0,m.useCallback)(function(){!O&&D&&j(function(e){return e+1})},[O,D,j]),A=(0,b.useOnVisible)(T),R=D?Math.max(0,Math.floor(k.length-d/2)):-1;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(L.Search,{"aria-describedby":P?"".concat(v,"-error"):void 0,labelText:(0,_.V)("searchForLocation"),id:v,placeholder:(0,_.V)("searchForLocation"),onChange:function(e){return C(e.target.value)},size:"lg"}),P&&(0,h.jsx)("div",{className:"vWBFDqCDM8BcQhePvfa35g==",id:"".concat(v,"-error"),children:(0,h.jsx)(L.InlineNotification,{kind:"error",subtitle:(0,_.V)("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:(0,_.V)("error","Error")})}),(0,h.jsx)("div",{className:"Gbet+W1fVEk45aZli6JbrA==",children:E?(0,h.jsx)("div",{className:"QO-zjOxMSWAzXY-PMrSiwQ==",children:Array.from({length:5}).map(function(e,t){return(0,h.jsx)(L.RadioButtonSkeleton,{className:"otoCykP+JQHrsIsgKUOd7A==",role:"progressbar"},t)})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"_6PasfpnQ738RjzgXBzAQpw==",children:k.length>0?(0,h.jsx)(L.RadioButtonGroup,{name:"loginLocations",onChange:function(e){f(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s,children:k.map(function(e,t){return(0,h.jsx)(L.RadioButton,{className:"rTDPjXuaGJbz9KhOf57M3g==",id:e.resource.id,labelText:(0,h.jsx)("span",{ref:t===R?A:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id)})}):(0,h.jsx)("div",{className:"w4-CatRLHH3loLqlunOalg==",children:(0,h.jsx)("p",{className:"Of2MJqhAMKF7nrwI5bKckw==",children:(0,_.V)("noResultsToDisplay")})})}),O&&(0,h.jsx)("div",{className:"NAwSBETYamP9uMuJE63U-w==",children:(0,h.jsx)(L.InlineLoading,{description:(0,_.V)("loading")})})]})})]})},mn=r(8400),mi=r(7988),ma=r(7477),mo=r(8507);function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ml(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function mu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function mc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function md(e,t){if(e){if("string"==typeof e)return ms(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ms(e,t)}}var mf=(0,mi.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),mp=0,mh=window.getComputedStyle(document.body).overflow;function mm(e){var t=e.modalStack,r=e.modalContainer;r&&(t.length?(r.style.visibility||(addEventListener("keydown",mg),document.body.style.overflow="hidden",r.style.visibility="unset"),t.forEach(function(e,n){switch(e.state){case"NEW":var i,a,o,s,l,u,c,d=(i=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(a=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(i),a.setAttribute("role","dialog"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-modal","true"),a);e.container=d,(function(e,t){var r;return(r=function(e,t){var r,n,i,a,o,s=arguments;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},n=(0,ma.Fg)(t),i=null,!e)return[3,2];if(!n)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,n.load)()];case 1:return a=l.sent(),o=mp++,i=(0,mn.mountRootParcel)(mc(mu({},a),{name:"".concat(t,"-").concat(o)}),mc(mu({},r),{domElement:e})),[3,3];case 2:(0,mo.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,i]}})},function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(e){ml(a,n,i,o,s,"next",e)}function s(e){ml(a,n,i,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",r.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=n?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){mf.setState({modalContainer:r,modalStack:t.filter(function(t){return t!==e})})},0)}})):(r.style.removeProperty("visibility"),document.body.style.overflow=mh,removeEventListener("keydown",mg)))}function my(e){var t=mf.getState(),r=t.modalStack.map(function(t){return t===e?mc(mu({},t),{state:"TO_BE_DELETED"}):t});mf.setState(mc(mu({},t),{modalStack:r}))}function mg(e){var t,r;"Escape"===e.key&&(r=(function(e){if(Array.isArray(e))return e}(t=mf.getState().modalStack)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||md(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&my(r)}function mv(e){mf.subscribe(mm),mf.setState(mc(mu({},mf.getState()),{modalContainer:e}))}function mb(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=mf.getState().modalStack.find(function(e){return e.onClose===a});e&&my(e)};return(0,ma.Fg)(e)?(n=[{state:"NEW",onClose:a,modalName:e,props:mu({close:o},i)}].concat(function(e){if(Array.isArray(e))return ms(e)}(r=(t=mf.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||md(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),mf.setState(mc(mu({},t),{modalStack:n}))):(0,mo.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var mw=r(3989),mx=function(e){var t=e.notification,r=t.description,n=t.action,i=t.kind,a=t.critical,o=t.title,s=t.onAction;return(0,h.jsx)(L.ActionableNotification,{actionButtonLabel:n,kind:i||"info",lowContrast:a,subtitle:r,title:o||"",inline:!0,onActionButtonClick:s})};function mS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mE(e,t){if(e){if("string"==typeof e)return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}let mD=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mE(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mS(e)})(r=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mE(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mx,{notification:e},e.id)})})};function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var mP=function(e){var t,r=e.notification,n=r.actionButtonLabel,i=r.onActionButtonClick,a=void 0===i?function(){}:i,o=r.subtitle,s=r.kind,l=r.title,u=r.critical,c=r.progressActionLabel,d=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(n))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return mO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1];return(0,h.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,_.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){a(),c&&y(c)},statusIconDescription:(0,_.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function mj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mk(e,t){if(e){if("string"==typeof e)return mj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mj(e,t)}}let mC=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mk(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mj(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mk(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mP,{notification:e},e.id)})})};var mT=r(5217),mA=r(72),mR=r(2797),mI=r(8206),mM=r(3497),mN=r(8134),mL=r(4666),m_=r(7931),mF=Object.prototype.hasOwnProperty;let mB=function(e){if(null==e)return!0;if((0,mM.A)(e)&&((0,mI.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,mN.A)(e)||(0,m_.A)(e)||(0,mR.A)(e)))return!e.length;var t=(0,mA.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,mL.A)(e))return!(0,mT.A)(e).length;for(var r in e)if(mF.call(e,r))return!1;return!0};var mV=r(8279);function m$(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function mW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function mU(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function mz(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mH=new mw.Subject,mG=0,mK=new mw.Subject,mY=0;function mZ(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mD,{subject:mH}))}function mq(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&(m$(t,Error)||!mB(t)))?(m$(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){mH.next(mU(mW({},e),{id:mG++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function mX(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mC,{subject:mK}))}function mQ(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&!mB(t))?setTimeout(function(){mK.next(mU(mW({},e),{id:mY++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var mJ=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],m0=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"];let m1={container:"ScB70LqU+PKTglPLpquSYA==",card:"OaumoczyyhVxFGgK1Ymncw==","abnormal-value":"nIEaa1DoEVNwq6VRhytuqA==","critical-value":"piSS0orYMnJr8srfIKo2zw==",cell:"WVzs6v9nyUbN4BP3kiRvOg==","critically-high":"nWzimGykDKiWWpAA510ywA==","critically-low":"wz1U5oBN8Au6+HaU5WTJJA==",high:"_5XGrk2jf9LNICUS0mhpcuQ==",low:"bZP-khvj3DMGEuy6EwE+rA==","label-container":"m8YotuX9YyGBVTfwscLQxw==","value-container":"Qfl6BA8qVqs0ch1lkoGorA==",label:"GeE-oU8VbIwmewu0CLedqg==",value:"_1l76wCdnl85Ih71jhnW-4w==",units:"W7zPgHBl62LXyz9iCBMD1Q==","pad-right":"QTCXOa6vj1UmNa4ukP+r9g==","off-scale-low":"vCAWY7zmOXKiCw0oMh2oIQ==","off-scale-high":"_7x8iew49LjFwIFhlYEBJgQ==",arrow:"_53IVZxbBIwcFSLi67OJAqg=="};function m2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m3=function(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,y,g,b,w,x,S=e.value,E=e.unit,D=e.label,O=e.interpretation,P=e.referenceRange,j=e.conceptUuid,k=e.variant,C=e.entityUuid,T=(0,m.useId)(),A=(c=null,(t=P||O?void 0:j)&&(c=C?"".concat(h7.restBaseUrl,"/conceptreferencerange/?entity=").concat(C,"&concept=").concat(t,"&v=full"):"".concat(h7.restBaseUrl,"/conceptreferencerange/?concept=").concat(t,"&v=full")),f=(d=(0,h8.A)(c,h7.egenFetch)).data,p=d.error,y=d.isLoading,{referenceRange:(g=null==f||null==(u=f.data)||null==(l=u.results)?void 0:l[0])?{hiNormal:null!=(r=g.hiNormal)?r:null,hiAbsolute:null!=(n=g.hiAbsolute)?n:null,hiCritical:null!=(i=g.hiCritical)?i:null,lowNormal:null!=(a=g.lowNormal)?a:null,lowAbsolute:null!=(o=g.lowAbsolute)?o:null,lowCritical:null!=(s=g.lowCritical)?s:null}:void 0,error:p,isLoading:y}),R=A.referenceRange,I=A.isLoading,M=null!=P?P:R,N=(0,m.useMemo)(function(){if(O)return O?"--"===O?"normal":mJ.includes(O)?O.toLowerCase():m0.includes(O)?O:"normal":void 0;if(M&&!I){if(!M||null==S||""===S)return"normal";var e="string"==typeof S?Number.parseFloat(S):S;return Number.isNaN(e)?"normal":null!==M.hiAbsolute&&void 0!==M.hiAbsolute&&e>M.hiAbsolute?"off_scale_high":null!==M.hiCritical&&void 0!==M.hiCritical&&e>=M.hiCritical?"critically_high":null!==M.hiNormal&&void 0!==M.hiNormal&&e>M.hiNormal?"high":null!==M.lowAbsolute&&void 0!==M.lowAbsolute&&e<M.lowAbsolute?"off_scale_low":null!==M.lowCritical&&void 0!==M.lowCritical&&e<=M.lowCritical?"critically_low":null!==M.lowNormal&&void 0!==M.lowNormal&&e<M.lowNormal?"low":"normal"}return"normal"},[O,M,S,I]),L=null!=N?N:"normal",F="critically_low"===L||"critically_high"===L||"off_scale_low"===L||"off_scale_high"===L,B="normal"!==L,V=D?"egen-numeric-dp-label-".concat(D.replaceAll(/\s+/g,"-").toLowerCase(),"-").concat(T):void 0,$="egen-numeric-dp-value-".concat(T),W="egen-numeric-dp-unit-".concat(T),U=null!=S&&""!==S,z=U?S:(0,_.V)("notAvailable","Not available"),H=v()((m2(b={},m1["critically-low"],"critically_low"===L||"off_scale_low"===L),m2(b,m1["critically-high"],"critically_high"===L||"off_scale_high"===L),m2(b,m1.low,"low"===L),m2(b,m1.high,"high"===L),m2(b,m1["off-scale-low"],"off_scale_low"===L),m2(b,m1["off-scale-high"],"off_scale_high"===L),b)),G=v()((m2(w={},m1.container,!0),m2(w,m1.card,!0),m2(w,m1["critical-value"],F),m2(w,m1["abnormal-value"],B&&!F),w)),K=v()((m2(x={},m1.cell,!0),m2(x,H,!0),x));return"cell"===(void 0===k?"card":k)?(0,h.jsxs)("div",{className:K,children:[z,U&&E?" ".concat(E):""]}):(0,h.jsxs)("section",{className:G,"data-testid":"numeric-datapoint-card",children:[D&&(0,h.jsxs)("div",{className:m1["label-container"],children:[(0,h.jsx)("span",{id:V,className:m1.label,children:D}),B&&(0,h.jsx)("span",{className:m1[L.replace("_","-")],title:(0,_.V)("abnormalValue","Abnormal value")})]}),(0,h.jsxs)("div",{className:m1["value-container"],children:[(0,h.jsx)("span",{id:$,"aria-labelledby":V&&W?"".concat(V," ").concat(W):V||W||void 0,className:m1.value,children:z}),U&&E&&(0,h.jsx)("span",{id:W,className:m1.units,children:E})]})]})},m4=r(5918);let m5="YOpQLiaTysM+swWB7ATzKw==";function m6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m9(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function m7(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}var ye=function(e){if("children"in e){var t=e.children,r=e.className,n=m7(e,["children","className"]);return(0,h.jsx)("div",m9(m8({className:v()(m5,r)},n),{children:t}))}var i=e.title,a=e.illustration,o=e.className,s=m7(e,["title","illustration","className"]);return(0,h.jsx)("div",m9(m8({className:v()(m5,o)},s),{children:(0,h.jsx)(yt,{title:i,illustration:a})}))},yt=function(e){var t,r=e.title,n=e.illustration,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return m6(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m6(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1];return(0,m.useEffect)(function(){(0,m4.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,h.jsxs)("div",{className:v()("PjsJmcqHjhav+51GzX5n1A==",i),children:[n,(0,h.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,h.jsx)("p",{children:(0,_.V)(o.implementationName)}),(0,h.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:r})]})]})};function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yn=function(e){var t,r=e.totalItems,n=e.pageSize,i=e.onPageNumberChange,a=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,b.usePaginationInfo)(n,r,a,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,b.useLayoutType)(),p=(0,_.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:r,pageItemsCount:d});return(0,h.jsx)(h.Fragment,{children:r>0&&(0,h.jsxs)("div",{className:v()((yr(t={},"lQ3akicW2mAhjncqby7nDA==",f),yr(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,h.jsxs)("div",{children:[p,o&&(0,h.jsx)(b.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,_.V)("seeAll","See all")})]}),(0,h.jsx)(L.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:a,pageSize:n,pageSizes:c,totalItems:r,onChange:i,pageRangeText:function(e,t){return(0,_.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})},yi=r(6625);function ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ys(e){var t,r=e.entity,n=e.entityUuid,i=e.actionsSlotName,a=e.additionalActionsSlotState,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return ya(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ya(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,b.useExtensionSlot)(i).extensions,c="tablet"===(0,b.useLayoutType)(),d=(0,b.useOnClickOutside)(function(){return l(!1)},s),f=(0,m.useRef)(null),p=(0,m.useRef)(null),y=(0,m.useId)(),g="entity-actions-menu-trigger-".concat(y),w="entity-actions-menu-".concat(y),x=(0,m.useCallback)(function(){return l(function(e){return!e})},[]),S=(0,m.useCallback)(function(){var e;l(!1),null==(e=f.current)||e.focus()},[]),E=(0,m.useCallback)(function(e){if("Escape"===e.key&&s){e.stopPropagation(),S();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&s){e.preventDefault();var t,r,n,i,a,o,l=null==(r=p.current)?void 0:r.querySelectorAll('[role="menuitem"]:not([disabled])');if(!(null==l?void 0:l.length))return;var u=null!=(t=null==(i=document.activeElement)||null==(n=i.closest)?void 0:n.call(i,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l["ArrowDown"===e.key?0:l.length-1])||o.focus();return}var d=c+("ArrowDown"===e.key?1:-1),f=d<0?l.length-1:d>=l.length?0:d;null==(a=l[f])||a.focus()}},[S,s]);(0,m.useEffect)(function(){if(s&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[s]);var D=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){yo(e,t,r[t])})}return e}({entityUuid:n,entity:r,closeMenu:S},a)},[n,r,S,a]);return 0===u.length?null:(0,h.jsx)("div",{className:"kWz-FQXziTlflmlOvSQU8w==",children:(0,h.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",V),ref:d,children:[(0,h.jsxs)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},U),"aria-controls":w,"aria-expanded":s,"aria-haspopup":"true",id:g,onClick:x,onKeyDown:E,ref:f,children:[(0,h.jsx)("span",{className:"FNvGkLUDxlNyu5MsobGSiQ==",children:(0,_.V)("actions","Actions")})," ",(0,h.jsx)(yi.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,h.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",$,yo({},W,s)),"aria-labelledby":g,"data-floating-menu-direction":"bottom",id:w,onKeyDown:E,ref:p,role:"menu",tabIndex:-1,children:[(0,h.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c}),children:(0,h.jsx)(b.ExtensionSlot,{name:i,state:D},i)}),(0,h.jsx)("span",{})]})]})})}var yl=r(7488);let yu={contactDetails:"_0WAlP7BAsAgqReeW05Syxg==",deceased:"PaF2EK-ANVeIH6lZnkVXJg==",heading:"_2zRwLuDr67mWUDIQRycpHg==",row:"_1ShtU0d+XSLtWZB5Xtenlg==",col:"EwddJOyljhsm1Mho19p57w==",relationship:"VUQRxyGyP2uVTKGVha-XXg=="};function yc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||yf(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yf(e,t){if(e){if("string"==typeof e)return yc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yc(e,t)}}var yp=function(e){var t,r,n,i,a,o,s,l=(r=e.entityUuid,o=(a=(0,h8.A)(r?"".concat(h7.restBaseUrl,"/cohort?v=custom:(uuid,name,startDate)&member=").concat(r):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{groups:null!=(n=null==o||null==(i=o.data)?void 0:i.results)?n:[],isLoading:s}),u=l.groups,c=void 0===u?[]:u,d=l.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{className:yu.heading,children:[(0,_.V)("entityGroups","Entity Groups")," (",null!=(t=null==c?void 0:c.length)?t:0,")"]}),d?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)("ul",{children:[function(){if((null==c?void 0:c.length)>0){var e=c.sort(function(e,t){return(0,sA._U)(null==e?void 0:e.startDate).getTime()-(0,sA._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return(0,h.jsx)("li",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups/").concat(e.uuid),children:e.name},e.uuid)},e.uuid)})}return(0,h.jsx)("li",{children:"--"})}(),c.length>3&&(0,h.jsx)("li",{className:yu.link,children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups"),children:(0,_.V)("seeMoreGroups","See {{count}} more groups",{count:(null==c?void 0:c.length)-3})})})]})]})},yh=function(e){var t,r=e.entityId,n=(0,b.useEntity)(r),i=n.entity,a=n.isLoading,o=null==i||null==(t=i.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return a?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("address","Address")}),(0,h.jsx)("ul",{children:o?Object.entries(o).filter(function(e){var t=yd(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,r,n,i=yd(e,2),a=i[0],l=i[1];return"extension"===a?null==(n=o.extension)||null==(r=n[0])||null==(t=r.extension)?void 0:t.map(function(e,t){return(0,h.jsxs)("li",{children:[(0,_.V)(s(e.url),s(e.url)),": ",e.valueString]},"address-".concat(a,"-").concat(t))}):(0,h.jsxs)("li",{children:[(0,_.V)(a,a),": ",l]},"address-".concat(a))}):(0,h.jsx)("li",{children:"--"})})]})},ym=function(e){var t,r,n,i,a,o,s,l=(t=e.entityUuid,i=(0,b.useConfig)().contactAttributeTypes,o=(a=(0,h8.A)(t?"".concat(h7.restBaseUrl,"/entity/").concat(t,"?v=custom:(attributes:(attributeType:(display,uuid),value))"):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{contactAttributes:null==o||null==(n=o.data)||null==(r=n.attributes)?void 0:r.filter(function(e){var t;return null==i||null==(t=i.uuids)?void 0:t.includes(e.attributeType.uuid)}),isLoading:s}),u=l.isLoading,c=l.contactAttributes,d=(0,m.useMemo)(function(){var e;return c?function(e){if(Array.isArray(e))return yc(e)}(e=null==c?void 0:c.map(function(e){return[e.attributeType.display?(0,_.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yf(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[c]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("contactDetails","Contact Details")}),u?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:d.length?d.map(function(e,t){var r=yd(e,2),n=r[0],i=r[1];return(0,h.jsxs)("li",{children:[n,": ",i]},"".concat(n,"-").concat(i,"-").concat(t))}):(0,h.jsx)("li",{children:"--"})})]})},yy=function(e){var t,r,n,i,a,o,s,l,u,c,d=(t=e.entityId,i="".concat(h7.restBaseUrl,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),o=(a=(0,yl.Ay)(t?i:null,h7.egenFetch)).data,s=a.error,l=a.isLoading,u=a.isValidating,c=(null==o||null==(n=o.data)||null==(r=n.results)?void 0:r.length)?function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;e===l.personA.uuid?r.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):r.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,o.data.results):null,{data:o?c:null,error:s,isLoading:l,isValidating:u}),f=d.data,p=d.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yu.heading,children:(0,_.V)("relationships","Relationships")}),p?(0,h.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:f&&f.length>0?(0,h.jsx)(h.Fragment,{children:f.map(function(e){return(0,h.jsxs)("li",{className:yu.relationship,children:[(0,h.jsx)("div",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/entity/").concat(e.relativeUuid,"/detail"),children:e.display})}),(0,h.jsx)("div",{children:e.relationshipType}),(0,h.jsx)("div",{children:"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?(0,_.V)("yearAbbreviation","yr"):(0,_.V)("yearsAbbreviation","yrs"):"")})]},e.uuid)})}):(0,h.jsx)("li",{children:"--"})})]})};function yg(e){var t,r,n=e.entityId,i=e.inactive;return(0,h.jsxs)("div",{className:v()(yu.contactDetails,(t={},r=yu.inactive,r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t)),children:[(0,h.jsxs)("div",{className:yu.row,children:[(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yh,{entityId:n})}),(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(ym,{entityUuid:n})})]}),(0,h.jsxs)("div",{className:yu.row,children:[(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yy,{entityId:n})}),(0,h.jsx)("div",{className:yu.col,children:(0,h.jsx)(yp,{entityUuid:n})})]})]})}let yv={container:"Cv77SWzKIL33Efa8UclO5A==",activePatientContainer:"+EdOeUGN-+Myht0Gc4ikMw==",patientBanner:"+1X-eoTNiJAWmrNyW1uKTg==",patientName:"HjFT+u-cDhT-hf+hsn11Xg==",patientAvatar:"OP0MHpvYVC6OF7zImdEV3w==",patientAvatarButton:"-mC5reGPR9tvkeM0qSc5MA==",patientInfo:"mgVTXloP5WwGSJLgIW5TVg==",demographics:"_0Cixc19K7YZnsR1MGmBQNg==",row:"yZ25PajVI7esFz4wL1yOCg==",flexRow:"Ejo0BoOk-a+rWthDWMDH7w==",tagsSlot:"+MEITB-Gk8ZjLAvj3B8W3w==",identifiers:"BwRJpSUWSzceV7Pjz5UofA==",identifier:"kLaARBBq9K0roZYiS7GA1Q==",primaryIdentifier:"qYvg+lAUHmwTgbGCFXK8Yg==",secondaryIdentifier:"TLLxFft-df-e9delKSNViA==",value:"_4WXcSlqEoM5a51gAHLpS0A==",tag:"pzpHt574Yu33MqipyxxXag==",gender:"QtDv05OhEBSxQ0LZ6FfmNA==",separator:"Ld4CZgLBPDUgajeNQgM4Hw==",tooltipPadding:"GF5dbiMid4Mc+k7iKSbQCQ==",tooltipSmallText:"GlMubU+ECQXv0RlYebaD0g==",actionsButtonText:"MX8Uu4J+mIeszpUoF2RRgA=="};function yb(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsx)("span",{className:yv.primaryIdentifier,children:(0,h.jsxs)(L.Tag,{className:yv.tag,type:"gray",children:[t&&(null==r?void 0:r.text)&&(0,h.jsxs)("span",{className:yv.label,children:[r.text,": "]}),(0,h.jsx)("span",{className:yv.value,children:n})]})})}function yw(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsxs)(L.FormLabel,{className:yv.secondaryIdentifier,id:"entity-banner-identifier-".concat(n),children:[t&&(0,h.jsxs)("span",{className:yv.label,children:[null==r?void 0:r.text,": "]}),(0,h.jsx)("span",{className:yv.value,children:n})]})}function yx(e){var t,r=e.identifiers,n=e.showIdentifierLabel,i=(0,b.useConfig)().excludeEntityIdentifierCodeTypes,a=(0,b.usePrimaryIdentifierCode)().primaryIdentifierCode,o=null!=(t=null==r?void 0:r.filter(function(e){var t,r,n,a=null==(n=e.type)||null==(r=n.coding)||null==(t=r[0])?void 0:t.code;return a&&!(null==i?void 0:i.uuids.includes(a))}))?t:[];return(0,h.jsx)(h.Fragment,{children:(null==o?void 0:o.length)?o.map(function(e,t){var r,i,s=e.value,l=e.type;return(0,h.jsxs)(y().Fragment,{children:[(0,h.jsx)("span",{className:yv.identifier,children:(null==l||null==(i=l.coding)||null==(r=i[0])?void 0:r.code)===a?(0,h.jsx)(yb,{showIdentifierLabel:n,type:l,value:s}):(0,h.jsx)(yw,{showIdentifierLabel:n,type:l,value:s})}),t<o.length-1&&(0,h.jsx)("span",{className:yv.separator,children:"\xb7"})]},s)}):""})}function yS(e){var t,r,n=e.entity,i=e.renderedFrom,a=(null==n||null==(t=n.name)?void 0:t[0])?[null==(r=n.name[0].given)?void 0:r.join(" "),n.name[0].family].filter(Boolean).join(" "):(0,_.V)("unknown","Unknown"),o=(0,m.useMemo)(function(){return{entityUuid:n.id,entity:n,renderedFrom:i}},[n.id,n,i]);return(0,h.jsxs)("div",{className:yv.entityInfo,children:[(0,h.jsx)("div",{className:v()(yv.row,yv.entityNameRow),children:(0,h.jsxs)("div",{className:yv.flexRow,children:[(0,h.jsx)("span",{className:yv.entityName,children:a}),(0,h.jsx)(b.ExtensionSlot,{className:yv.tagsSlot,name:"entity-banner-tags-slot",state:o})]})}),(0,h.jsxs)("div",{className:yv.demographics,children:[n.birthDate&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{children:(0,sA.LW)(n.birthDate,{time:!1})}),(0,h.jsx)("span",{className:yv.separator,children:"\xb7"})]}),(0,h.jsx)(yx,{identifiers:n.identifier,showIdentifierLabel:!0}),(0,h.jsx)(b.ExtensionSlot,{className:yv.extensionSlot,name:"entity-banner-bottom-slot",state:o})]})]})}var yE=r(6768),yD=r.n(yE);function yO(e){var t,r,n,i=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).entityPhotoConceptUuid,a=i?"".concat(h7.restBaseUrl,"/datapoint?entity=").concat(e,"&concept=").concat(i,"&v=full"):null,o=(0,yl.Ay)(e?a:null,h7.egenFetch),s=o.data,l=o.error,u=o.isLoading,c=null==s||null==(t=s.data)?void 0:t.results[0];return{data:c?{dateTime:null==c?void 0:c.recordedDatetime,imageSrc:null==c||null==(n=c.value)||null==(r=n.links)?void 0:r.uri}:null,error:l,isLoading:u}}let yP=function(e){var t=e.width,r=e.height,n=e["aria-label"],i=(0,q.useTranslation)().t;return(0,h.jsxs)("svg",{"aria-label":null!=n?n:i("entityPhotoPlaceholder","Entity photo placeholder"),width:void 0===t?56:t,height:void 0===r?56:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},yj="zGr2tPPbF8QVWzyTv0fDHw==";function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yk(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yT(e){var t=e.entityUuid,r=e.entityName,n=e.alt,i=yO(t),a=i.data,o=i.isLoading,s=yC((0,m.useState)(null),2),l=s[0],u=s[1],c=yC((0,m.useState)(!1),2),d=c[0],f=c[1],p=(0,m.useMemo)(function(){return yD().generate(t)},[t]);(0,m.useEffect)(function(){if(null==a?void 0:a.imageSrc){var e=new URL(a.imageSrc,window.location.origin).pathname;f(!0);var t=!1,r=new Image;return r.onload=function(){t||(u(e),f(!1))},r.onerror=function(){t||(u(null),f(!1))},r.src=e,function(){t=!0}}u(null),f(!1)},[null==a?void 0:a.imageSrc]);var y=(0,m.useMemo)(function(){return n||(l?(0,_.V)("entityPhotoAlt","Profile photo of {{entityName}}",{entityName:r}):(0,_.V)("entityAvatarAlt","Avatar for {{entityName}}",{entityName:r}))},[n,l,r]);return o||d?(0,h.jsx)(L.SkeletonIcon,{className:"f9LV60t8m0NTwg0u9VNH6Q==","data-testid":"skeleton-icon"}):(null==a?void 0:a.imageSrc)&&!l?(0,h.jsx)(yP,{"aria-label":(0,_.V)("entityPhotoPlaceholder","Photo placeholder for {{entityName}}",{entityName:r})}):l?(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("img",{className:yj,src:l,alt:y,title:r})}):(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("div",{className:yj,title:r,style:{backgroundImage:p.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,h.jsx)("span",{className:"_6J1JiNoLqU9+wHh+JKTp0A==",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.split(/\s+/).filter(Boolean).slice(0,t).map(function(e){return e[0]}).join("")}(r)})})})}function yA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yR(e){if(Array.isArray(e))return e}function yI(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yM(e,t){if(e){if("string"==typeof e)return yA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yA(e,t)}}var yN=["egen-pict-appointments","egen-pict-assessment-1","egen-pict-assessment-2","egen-pict-blood-bank","egen-pict-cardiology","egen-pict-ct-scan","egen-pict-dentistry","egen-pict-emergency-department","egen-pict-facility","egen-pict-geriatrics","egen-pict-gynaecology","egen-pict-in-patient","egen-pict-laboratory","egen-pict-labs-2","egen-pict-obstetrics","egen-pict-patient-search","egen-pict-patients","egen-pict-payments-desk","egen-pict-pharmacy","egen-pict-pharmacy-2","egen-pict-registration","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer","egen-pict-triage","egen-pict-x-ray"],yL=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-appointments",pictogramProps:e})})),y_=yL,yF=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-assessment-1",pictogramProps:e})})),yB=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-assessment-2",pictogramProps:e})})),yV=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-blood-bank",pictogramProps:e})})),y$=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-cardiology",pictogramProps:e})})),yW=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-ct-scan",pictogramProps:e})})),yU=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-dentistry",pictogramProps:e})})),yz=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-emergency-department",pictogramProps:e})})),yH=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-facility",pictogramProps:e})})),yG=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-geriatrics",pictogramProps:e})})),yK=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-gynaecology",pictogramProps:e})})),yY=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-in-patient",pictogramProps:e})})),yZ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-laboratory",pictogramProps:e})})),yq=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-labs-2",pictogramProps:e})})),yX=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-obstetrics",pictogramProps:e})})),yQ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-patient-search",pictogramProps:e})})),yJ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-patients",pictogramProps:e})})),y0=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),y1=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-pharmacy",pictogramProps:e})})),y2=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-pharmacy-2",pictogramProps:e})})),y3=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-registration",pictogramProps:e})})),y4=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),y5=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),y6=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),y8=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-triage",pictogramProps:e})})),y9=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gr,{ref:t,pictogram:"egen-pict-x-ray",pictogramProps:e})})),y7=yH,ge=yJ,gt=(0,m.memo)((0,m.forwardRef)(function(e,t){var r,n=yR(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||yM(r)||yI(),i=n[0],a=n.slice(1),o=i.pictogram,s=i.fallback,l=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["pictogram","fallback"]),u=(yR(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||yM(a,1)||yI())[0],c=(0,m.useRef)(document.getElementById(o));return(0,m.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,h.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,h.jsx)(gr,{ref:u,pictogram:o,pictogramProps:l})})})),gr=(0,m.memo)((0,m.forwardRef)(function(e,t){var r=e.pictogram,n=Object.assign({},{size:92},e.pictogramProps),i=n.className,a=n.size;return(a<=26||a>144)&&(console.error("Invalid size '".concat(a,"' specified for ").concat(r,". Defaulting to 92.")),a=92),(0,h.jsx)("svg",{ref:t,className:v()("wXX7tgyTzQUB487Ai2jwkw==",i),height:a,width:a,children:(0,h.jsx)("use",{href:"#".concat(r)})})})),gn=function(e){var t=e.children;return"tablet"===(0,b.useLayoutType)()?(0,h.jsx)(L.Layer,{children:t}):(0,h.jsx)(h.Fragment,{children:t})};function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gi(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var gs=function(e){var t,r=e.snackbar,n=e.closeSnackbar,i=r.actionButtonLabel,a=r.kind,o=void 0===a?"success":a,s=r.onActionButtonClick,l=void 0===s?function(){}:s,u=r.isLowContrast,c=r.progressActionLabel,d=r.subtitle,f=r.timeoutInMs,p=void 0===f?5e3:f,y=r.autoClose,g=void 0===y?"error"!==o:y,b=r.title,w=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=go((0,m.useState)(void 0===i?"":i),2),S=x[0],E=x[1],D=go((0,m.useState)(!0),2),O=D[0],P=D[1],j=go((0,m.useState)(!1),2),k=j[0],C=j[1],T=(0,m.useCallback)(function(){setTimeout(n,250)},[n]),A=(0,m.useCallback)(function(){C(!0),T()},[T]);return(0,m.useEffect)(function(){if(g){var e=setTimeout(A,p);return function(){return clearTimeout(e)}}},[p,g,A]),(0,m.useEffect)(function(){P(!1),window.setTimeout(function(){P(!0)},0)},[]),(0,h.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ga(e,t,r[t])})}return e}({actionButtonLabel:S,"aria-label":(0,_.V)("closeSnackbar","Close snackbar"),className:v()("-oZItDje+VqIMbRFsj0vKg==",(ga(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",O),ga(t,"yEmGTBZUeA8w30tHbNSn5g==",k),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),A(),c&&E(c)},onClose:T,statusIconDescription:(0,_.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:b},w))};function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gu(e,t){if(e){if("string"==typeof e)return gl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gl(e,t)}}let gc=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gu(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gl(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gu(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(gs,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var gd=new mw.Subject,gf=0;function gp(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gc,{subject:gd}))}function gh(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,r;gd.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gf++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}function gm(e){var t=document.querySelector("template#loading-spinner");if(t){var r=t.content.cloneNode(!0),n=Array.prototype.map.call(r.childNodes,function(e){return e});return e.appendChild(r),function(){return n.forEach(function(e){return e.remove()})}}return function(){}}let gy={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gv(e,t,r[t])})}return e}var gw=function(e){var t,r,n,i,a=e.children,o=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,y=e.expandedHeight,g=e.blurIntensity,b=e.shadowIntensity,w=e.glowIntensity,x=e.borderRadius,S=void 0===x?"0px":x,E=e.style,D=e.onClick,O=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return gg(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gg(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),P=O[0],j=O[1],k="egen-glass-blur-".concat((0,m.useId)().replace(/:/g,"")),C=l||c,T=C?hK.div:"div",A=C?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:y||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?P?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||j(function(e){return!e})}:D,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:D};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{className:gy.hiddenFilterSvg,"aria-hidden":"true",children:(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:k,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,h.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,h.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,h.jsxs)(T,(r=gb({className:v()(gy.card,(gv(i={},gy["card--draggable"],l),gv(i,gy["card--expandable"],c),i),o),style:gb({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,E)},A),n=n={children:[(0,h.jsx)("div",{className:v()(gy.bendLayer,gy["blur--".concat(void 0===g?"xl":g)]),style:{borderRadius:S,filter:"url(#".concat(k,")")}}),(0,h.jsx)("div",{className:v()(gy.faceLayer,gy["glow--".concat(void 0===w?"sm":w)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:v()(gy.edgeLayer,gy["shadow--".concat(void 0===b?"md":b)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:gy.content,children:a})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))]})},gx={success:{icon:ev,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:s_,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:tk,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:tk,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:eH,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:eG,defaultEyebrow:"Information",colorToken:"info"}};let gS={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var gE=function(e){var t=e.colorVar,r=e.mode,n=e.durationMs,i=e.value;return(0,h.jsx)("div",{className:gS.progressTrack,children:"countdown"===r?(0,h.jsx)(hK.div,{className:gS.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=n?n:4e3)/1e3,ease:"linear"}}):(0,h.jsx)(hK.div,{className:gS.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=i?i:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},gD=function(e){var t,r=e.toast,n=e.closeToast,i=r.description,a=r.kind,o=r.critical,s=r.title,l=r.actionButtonLabel,u=r.onActionButtonClick,c=r.variant,d=void 0===c?"default":c,f=r.eyebrow,p=r.progress,y=r.actions,g=r.duration;r.toastKey;var b=gx[void 0===a?"info":a],w=b.icon,x="var(--colors-".concat(b.colorToken,"-500)"),S=(0,m.useMemo)(function(){return(null==y?void 0:y.length)?y:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[y,l,u]),E=(0,m.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&n()},[n]),D=null!=g?g:"default"===d&&0===S.length?4e3:void 0;(0,m.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(n,1200);return function(){return clearTimeout(e)}}return}if(D){var t=setTimeout(n,D);return function(){return clearTimeout(t)}}},[d,p,D,n]);var O=null!=f?f:b.defaultEyebrow,P=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](i):i instanceof t)?i.message:i;return(0,h.jsx)(hK.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:gS.wrapper,children:(0,h.jsxs)(gw,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:v()(gS.card,gS["card--".concat(b.colorToken)]),children:[(0,h.jsxs)("div",{className:gS.body,children:[(0,h.jsx)(w,{className:gS.icon,size:20}),(0,h.jsxs)("div",{className:gS.textArea,children:[(0,h.jsx)("span",{className:gS.eyebrow,children:O}),s&&(0,h.jsx)("p",{className:gS.title,children:s}),(0,h.jsx)("div",{className:gS.description,children:P})]}),(0,h.jsx)("button",{type:"button",onClick:n,className:gS.closeButton,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:14})})]}),S.length>0&&(0,h.jsx)("div",{className:gS.actionsRow,children:S.map(function(e,t){var r,n;return(0,h.jsx)("button",{type:"button",className:v()(gS.actionButton,gS["actionButton--".concat(null!=(r=e.kind)?r:"primary")]),onClick:function(){return E(e)},children:e.label},null!=(n=e.id)?n:t)})}),"transfer"===d?(0,h.jsx)(gE,{colorVar:x,mode:"progress",value:p}):D&&(0,h.jsx)(gE,{colorVar:x,mode:"countdown",durationMs:D})]})})};function gO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gP(e,t){if(e){if("string"==typeof e)return gO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gO(e,t)}}let gj=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gP(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gO(e)})(r=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gP(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){var t;return(0,h.jsx)(gD,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var gk=new mw.Subject,gC=0;function gT(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gj,{subject:gk}))}function gA(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!mB(t))?setTimeout(function(){var t,r;gk.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gC++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var gR=r(7774);function gI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function gN(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function gL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var r=g$[e];return!r||!r()}function g_(e,t){var r,n=null==(r=gZ.getState())?void 0:r.workspaceGroup,i=null==n?void 0:n.name;i&&e===i&&gJ(function(){var r=g4(e);r&&(r.setState({},!0),r.subscribe(function(){})()),"function"==typeof(null==n?void 0:n.cleanup)&&n.cleanup(),gZ.setState(function(e){return gN(gM({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},i?function(e){return e.currentWorkspaceGroup===i}:function(){return!0})}function gF(e,t){var r,n=t.name,i=t.additionalProps;(0,ma.Xb)(n);var a=function(){gG(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return gB(n,i)},closeWorkspaceGroup:!1})};gL(e.name)?a():g1("closing-workspace-launching-new-workspace",a,null!=(r=e.title)?r:e.name)}function gB(e,t){var r,n,i=(0,ma.Xb)(e),a=gZ.getState().workspaceGroup;if(a&&!(null==(r=a.members)?void 0:r.includes(e)))return void g_(a.name,function(){gB(e,t)});var o=null==(n=gZ.getState().workspaceGroup)?void 0:n.name,s=gN(gM({},i),{title:g2(i,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gG(e,t)},closeWorkspaceWithSavedChanges:function(t){return gG(e,gM({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var r,n;return r=e,n=t,void(g$[r]=n)},setTitle:function(t,r){s.title=t,s.titleNode=r,gZ.setState(function(t){var r=t.openWorkspaces.map(function(t){return t.name===e?s:t});return gN(gM({},t),{openWorkspaces:r})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){gZ.setState(function(r){var n,i=[e].concat(function(e){if(Array.isArray(e))return gI(e)}(n=null!=t?t:r.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e){if(e){if("string"==typeof e)return gI(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gI(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=gQ(e);return gN(gM({},r),{openWorkspaces:i,workspaceWindowState:a})})}o&&g4(o,t);var u=gZ.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(gM(gN(gM({},f),{additionalProps:s.additionalProps}),f.title===g2(f,f.additionalProps)&&{title:g2(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,gZ.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),gF(d,{name:e,additionalProps:t})):l(s);else gF(u[0],{name:e,additionalProps:t})}function gV(e){var t=e.targetUrl,r=e.contextKey,n=e.workspaceName,i=e.additionalProps;gK(r),gB(n,i),(0,gR.oo)({to:t})}var g$={};function gW(e,t){g$[e]=t}function gU(e){return g$[e]}function gz(){var e=gZ.getState();gZ.setState(gN(gM({},e),{prompt:null}))}var gH={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function gG(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=gM({},gH,r);var n=function(){var t,n,i=gZ.getState();i.openWorkspaces.find(function(t){return t.name===e});var a=i.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=gZ.getState().workspaceGroup)?void 0:t.name;o&&r.closeWorkspaceGroup&&g_(o),g$[e]=function(){return!1},gZ.setState(function(e){return gN(gM({},e),{prompt:null,openWorkspaces:a,workspaceWindowState:gQ(null==a?void 0:a[0])})}),null==r||null==(n=r.onWorkspaceClose)||n.call(r)};return gL(e,null==r?void 0:r.ignoreChanges)?(n(),!0):(g1("closing-workspace",n,null!=(t=(0,ma.Xb)(e).title)?t:e),!1)}function gK(e){gZ.getState().context!=e&&gZ.setState({context:e,openWorkspaces:[],prompt:null})}var gY={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},gZ=(0,mi.createGlobalStore)("workspace",gY);function gq(){return gZ}function gX(e){var t=gZ.getState();gZ.setState(gN(gM({},t),{workspaceWindowState:e}))}function gQ(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function gJ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=gZ.getState().openWorkspaces.filter(t).every(function(e){return gL(e.name)}),n=function(){g3(),null==e||e()};r?n():g1("closing-all-workspaces",n)}function g0(){var e=(0,b.useStore)(gZ),t=e.workspaceWindowState,r=e.openWorkspaces,n=e.prompt,i=e.workspaceGroup;return(0,m.useMemo)(function(){return{active:r.length>0,prompt:n,workspaceWindowState:t,workspaces:r,workspaceGroup:i}},[r,t,n,i])}function g1(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==r||r()},confirmText:(0,_.V)("discard","Discard")};break;case"closing-all-workspaces":var i=gZ.getState().openWorkspaces.filter(function(e){return!gL(e.name)}).map(function(e,t){var r=e.title;return"".concat(t+1,". ").concat(r)});t={title:(0,_.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,_.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:i.join(",")}),onConfirm:function(){null==r||r()},confirmText:(0,_.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:i.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:function(){gZ.setState(function(e){return gN(gM({},e),{prompt:null})}),null==r||r()},confirmText:(0,_.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==r||r();return}gZ.setState(function(e){return gN(gM({},e),{prompt:t})})}function g2(e,t){var r;return null!=(r=null==t?void 0:t.workspaceTitle)?r:e.title}function g3(){gZ.setState(gY)}function g4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var r=(0,mi.getGlobalStore)(e,{});return t&&r.setState(function(e){return gM({},e,t)}),r}}let g5="f7spBy3jUTfjOH25a05A1A==",g6="ZROo9Y2WovRqEcmbEXN7sQ==",g8="+mcQhrE2BMNqPBknif4FqQ==";function g9(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g7(e){var t=e.getIcon,r=e.formOpenInTheBackground,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,h.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:n})]})}var ve=function(e){var t,r=e.getIcon,n=e.label,i=e.iconDescription,a=e.handler,o=e.type,s=e.tagContent,l=(0,b.useLayoutType)(),u=g0(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===o}))?t:-1,p="hidden"!==d&&0===f,m=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,h.jsxs)(L.Button,{className:v()(g5,g9({},g8,p)),iconDescription:i,kind:"ghost",onClick:a,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:g6,children:(0,h.jsx)(g7,{formOpenInTheBackground:m,getIcon:r,tagContent:s})}),(0,h.jsx)("span",{children:n})]}):(0,h.jsx)(L.IconButton,{align:"left","aria-label":i,className:v()(g5,g9({},g8,p)),enterDelayMs:300,kind:"ghost",label:n,onClick:a,size:"md",children:(0,h.jsx)("div",{className:g6,children:(0,h.jsx)(g7,{formOpenInTheBackground:m,getIcon:r,tagContent:s})})})};function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(e){var t,r,n=e.isWithinWorkspace,i=e.name,a=e.actionMenuProps,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vt(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vt(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,m.useRef)(window.innerHeight),c=(0,m.useContext)(b.ComponentContext).featureName,d=(0,b.useLayoutType)();return(0,m.useEffect)(function(){var e=function(){l(!(0,b.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,h.jsx)("aside",{className:v()("GJUJ7TWs47hZNAq1HgT48A==",(vr(r={},"_7+TCfrT4vrpC5TH4e1by0w==",n),vr(r,"bQ0UMzF1JBk1bcCogWlGrw==",s),vr(r,"v-1cRnDYDLbApkU1gJodvg==",!s),r)),children:(0,h.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,h.jsx)(b.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(i&&"default"!=i?i:c,"-items-slot"),state:void 0===a?{}:a})})})}var vi=r(2086);function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vo(e){if(Array.isArray(e))return e}function vs(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vu(e,t){if(e){if("string"==typeof e)return va(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return va(e,t)}}var vc=y().forwardRef(function(e,t){var r,n=vo(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vu(r)||vs(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vo(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vu(a,1)||vs())[0];return 16===l||"16"===l||"16px"===l?y().createElement(vi.A,vl({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,h.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):y().createElement(vi.A,vl({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,h.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vd=r(2283);function vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vp(e){if(Array.isArray(e))return e}function vh(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vm(e,t){if(e){if("string"==typeof e)return vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vf(e,t)}}var vy=y().forwardRef(function(e,t){var r,n=vp(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vm(r)||vh(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vp(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vm(a,1)||vh())[0];return y().createElement(vi.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,h.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),vg=r(2768),vv=/[\\^$.*+?()[\]{}|]/g,vb=RegExp(vv.source);let vw=function(e){return(e=(0,vg.A)(e))&&vb.test(e)?e.replace(vv,"\\$&"):e};function vx(e){var t,r,n=e.contextKey,i=g0().prompt;return(0,m.useEffect)(function(){new RegExp("/".concat(vw(n),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(n,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,m.useEffect)(function(){return gK(n),function(){gK(null)}},[n]),(0,m.useEffect)(function(){var e=function(e){var t=e.detail,r=t.cancelNavigation,i=t.newUrl,a=new RegExp("/".concat(vw(n),"(/|$)")),o=new URL(i),s=a.test(o.pathname),l=gZ.getState().openWorkspaces.every(function(e){return gL(e.name)});s||(l?g3():(null==r||r(),gJ(function(){(0,gR.oo)({to:i})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=i?(0,h.jsxs)(L.ComposedModal,{open:!0,onClose:gz,children:[(0,h.jsx)(L.ModalHeader,{title:i.title}),(0,h.jsx)(L.ModalBody,{children:(0,h.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:i.body})}),(0,h.jsxs)(L.ModalFooter,{children:[(0,h.jsx)(L.Button,{kind:"secondary",onClick:gz,children:null!=(t=i.cancelText)?t:(0,_.V)("cancel")}),(0,h.jsx)(L.Button,{kind:"danger",onClick:i.onConfirm,children:null!=(r=i.confirmText)?r:(0,_.V)("confirm")})]})]}):null}var vS=r(2879);function vE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(r),!0).forEach(function(t){vP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vj(e){return(vj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vk(e,t){return(vk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vC(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vT=function(e){var t=m.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vk(o,t);var r,n,i,a=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vj(o);e=r?Reflect.construct(t,arguments,vj(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vC(this)});function o(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),vP(vC(t=a.call(this,e)),"handleRef",function(e){t.el=e}),vP(vC(t),"addThingToDo",function(e,r){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return r.apply(void 0,arguments)}).catch(function(r){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),r&&r.message&&(r.message="During '".concat(e,"', parcel threw an error: ").concat(r.message)),t.props.handleError?t.props.handleError(r):setTimeout(function(){throw r}),r}))}),vP(vC(t),"getParcelProps",function(){var e=vD(vD({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return n=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,r=e.props.mountParcel||e.mountParcel;if(!r)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(r){t.style[r]=e.props.wrapStyle[r]}),e.props.appendTo.appendChild(t)),e.parcel=r(e.props.config,vD({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vS.i&&vS.i.Consumer?m.createElement(vS.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vS.i&&vS.i.Consumer?m.createElement(vS.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return m.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vO(o.prototype,n),i&&vO(o,i),o}();vP(vT,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vN(e){var t,r,n,i,a,o,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vI(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vI(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1],y=(r=u.currentWorkspaceGroup,i=(n=vR((0,m.useState)({}),2))[0],a=n[1],s=(o=vR((0,m.useState)(r),2))[0],l=o[1],(0,m.useEffect)(function(){s!==r&&l(r)},[r]),(0,m.useEffect)(function(){var e,t=g4(s);return t&&(a(t.getState()),e=t.subscribe(a)),function(){t&&(null==e||e())}},[s]),i);(0,m.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var g=(0,m.useMemo)(function(){return u&&vM({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,y,u.additionalProps)},[u,c,y]);return f?(0,h.jsx)(vT,vM({config:f,mountParcel:mn.mountRootParcel},g),u.name):(0,h.jsx)(L.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,_.V)("loading","Loading")," ...")})}function vL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t,r,n,i=e.contextKey,a=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,b.useLayoutType)(),c=g0(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,y=null==p?void 0:p.name,g=d[0],w="hidden"===f||null==g,x=null!=(t=null==g?void 0:g.width)?t:a?"wider":"narrow",S=(0,m.useMemo)(function(){return o||y&&!w},[y,w,o]);return(0,b.useBodyScrollLock)(!w&&!(0,b.isDesktop)(u)),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,h.jsx)("aside",{className:v()(a?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(vL(r={},"AJHmQ2iPp0Yic2jCrU6NIA==",w),vL(r,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===x),vL(r,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===x),vL(r,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===x),r)),children:(0,h.jsx)("div",{className:v()("pBPmoo5CjBr1d116v8KrrA==",(vL(n={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),vL(n,"BxutHfy6GErdVMJpbvmkVg==",w),n)),children:d.map(function(e,t){return(0,h.jsx)("div",{className:v()("tYaVVyyd6Tcv58Bbo4mkcw==",vL({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,h.jsx)(m.Suspense,{fallback:null,children:(0,h.jsx)(q.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,h.jsx)(vF,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,h.jsx)(vx,{contextKey:i})]}),S&&(0,h.jsx)(vn,{name:y,isWithinWorkspace:!o,actionMenuProps:l})]})}function vF(e){var t,r=e.workspaceInstance,n=e.additionalWorkspaceProps,i=(0,q.useTranslation)().t,a=(0,b.useLayoutType)(),o=g0(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,m.useEffect)(function(){var e=i(r.title);e!==r.title&&r.setTitle(e)},[r.title,i,r.setTitle]);var d=(0,m.useContext)(b.ComponentContext).featureName,f=(0,m.useCallback)(function(){gX(c?"normal":"maximized")},[c]),p=(0,m.useMemo)(function(){return null!=r?r:{}},[r]),y=p.canHide,g=void 0!==y&&y,w=p.canMaximize,x=p.currentWorkspaceGroup,S=p.closeWorkspace,E=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){vL(e,t,r[t])})}return e}({},n,null==r?void 0:r.additionalProps)},[n,r]);return r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,b.isDesktop)(a)&&!g&&(0,h.jsx)(L.HeaderMenuButton,{"aria-label":(0,_.V)("close","Close"),renderMenuIcon:(0,h.jsx)(eo,{}),onClick:function(){return S()}}),(0,h.jsx)(L.HeaderName,{prefix:"",children:null!=(t=r.titleNode)?t:i(r.title)}),(0,h.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,h.jsxs)(L.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-group-".concat(r.currentWorkspaceGroup,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-type-".concat(r.type,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:E}),(0,b.isDesktop)(a)&&(0,h.jsxs)(h.Fragment,{children:[(void 0!==w&&w||c)&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":c?(0,_.V)("minimize","Minimize"):(0,_.V)("maximize","Maximize"),onClick:f,children:c?(0,h.jsx)(vc,{}):(0,h.jsx)(vd.hz,{})}),g&&!u?(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide","Hide"),onClick:function(){return gX("hidden")},children:(0,h.jsx)(es,{})}):(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(eO,{})})]}),"tablet"===a&&g&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(vy,{})})]})]}),(0,h.jsx)("div",{className:v()("cNdK12M+p0cj6LR0VGui6A==",vL({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===x?"":x))),children:(0,h.jsx)(vN,{workspace:r,additionalPropsFromPage:n},r.name)})]})}var vB=r(188),vV=r(8254);function v$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vW(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function vU(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){vW(a,n,i,o,s,"next",e)}function s(e){vW(a,n,i,o,s,"throw",e)}o(void 0)})}}function vz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vH(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function vG(e){return function(e){if(Array.isArray(e))return v$(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v$(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v$(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vK(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function vY(e,t){return vU(function(){var r;return vK(this,function(n){switch(n.label){case 0:if(!(r=ma.J_.getState().openedGroup))return[3,3];if(!(r.groupName!==e||!vX(r.props,t)))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!n.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return ma.J_.setState(function(r){return vH(vz({},r),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function vZ(e){return vU(function(){var t,r,n,i;return vK(this,function(a){switch(a.label){case 0:if(r=(t=ma.J_.getState()).openedGroup,n=t.openedWindows,!r)return[3,4];if(!(n.length>0))return[3,3];if(i=e)return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:i=a.sent(),a.label=2;case 2:if(!i)return[2,!1];a.label=3;case 3:return ma.J_.setState(function(e){return vH(vz({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function vq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return vU(function(){var i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return vK(this,function(P){switch(P.label){case 0:if(!(i=ma.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(a=(0,ma.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=i.openedGroup,s=a.name,!(l=(0,ma.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(a.name," is not registered to a workspace group"));if(c=(u=(0,ma.YX)(e))>=0,!(o&&(o.groupName!==l.name||!vX(o.props,n))))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:n},openedWindows:[{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=i.openedWindows[u],h=null!=(d=null==(f=i.openedGroup)?void 0:f.props)?d:{},m=i.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!vX(p.props,r))return[3,6];if(!((g=y.find(function(t){return t.workspaceName===e}))&&vX(g.props,t)))return[3,3];return(m||u!==i.openedWindows.length-1)&&ma.J_.setState(vJ.restoreWindow(i,s)),[2,!0];case 3:return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(v=null==i||null==(w=i.openedGroup)?void 0:w.props)?v:h},openedWindows:vG(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:null!=(b=null==p?void 0:p.props)?b:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,vQ({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=h?h:null==i||null==(x=i.openedGroup)?void 0:x.props},openedWindows:vG(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,vQ({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:a.name})];case 10:if(P.sent())return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(S=null!=n?n:null==i||null==(E=i.openedGroup)?void 0:E.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return ma.J_.setState(vH(vz({},i),{openedGroup:{groupName:l.name,props:null!=(D=null!=n?n:null==i||null==(O=i.openedGroup)?void 0:O.props)?D:null},openedWindows:vG(i.openedWindows).concat([{windowName:s,openedWorkspaces:[v3(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function vX(e,t){return null==e||null==t||(0,vV.b)(e,t)}function vQ(e){function t(e,t){for(var r=[],n=e.openedWorkspaces.length-1;n>=0;n--){var i=e.openedWorkspaces[n];if(i.hasUnsavedChanges&&r.push(i),t&&i.workspaceName===t)break}return r}var r=ma.J_.getState(),n=r.openedWindows,i=r.workspaceTitleByWorkspaceName,a=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":a=n.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=n.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(o);break;case"CLOSE_WORKSPACE":var s=n.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":a=n.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===a.length?Promise.resolve(!0):new Promise(function(e){var t=mb("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:a.map(function(e){return i[e.workspaceName]})})})}var vJ={setWindowMaximized:function(e,t,r){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),i=vG(e.openedWindows),a=vH(vz({},i[n]),{maximized:r});return i[n]=a,vH(vz({},e),{openedWindows:i})},hideWindow:function(e){return vH(vz({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),n=e.openedWindows[r],i=vG(e.openedWindows.filter(function(e,t){return t!==r})).concat([n]);return vH(vz({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var r=(0,ma.YX)(t);if(r<0)return e;var n=vz({},e.openedWindows[r]),i=n.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),a=vG(e.openedWindows);n.openedWorkspaces=n.openedWorkspaces.slice(0,i);var o=e.isMostRecentlyOpenedWindowHidden;if(0===n.openedWorkspaces.length){var s=r===e.openedWindows.length-1;a.splice(r,1),s&&a.length>0&&(o=!1)}else a[r]=n;return vH(vz({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,r,n){var i=e.registeredWorkspacesByName[r];if(!i)throw Error('No workspace named "'.concat(r,'" registered'));var a=e.registeredWorkspacesByName[t];if(!a)throw Error('No workspace named "'.concat(t,'" registered'));if(a.window!==i.window)throw Error("Child workspace ".concat(r," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===i.window});if(-1==o)throw Error("Cannot open child workspace ".concat(r," as window ").concat(i.window," is not opened"));var s=e.openedWindows[o].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(r," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==o?vH(vz({},e),{openedWorkspaces:vG(u).concat([v3(r,n)])}):e})}},setHasUnsavedChanges:function(e,t,r){var n=(0,ma.YX)(t);if(n<0)return e;var i=vz({},e.openedWindows[n]),a=i.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(a<0)return e;i.openedWorkspaces[a]=vH(vz({},i.openedWorkspaces[a]),{hasUnsavedChanges:r});var o=vG(e.openedWindows);return o[n]=i,vH(vz({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,r){var n=vz({},e.workspaceTitleByWorkspaceName);return null===r?delete n[t]:n[t]=r,vH(vz({},e),{workspaceTitleByWorkspaceName:n})}};function v0(){return(0,b.useStoreWithActions)(ma.J_,vJ)}var v1=function(){return(0,m.useContext)(vS.i)},v2=function(){return Object.keys(ma.J_.getState().registeredWorkspacesByName)};function v3(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,vB.A)()}}let v4={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function v5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v6=function(e){var t,r,n,i,a=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,b.useLayoutType)(),c=v0(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,y=c.openedWindows,g=c.openedGroup,w=c.registeredGroupsByName,x=c.registeredWindowsByName,S=c.registeredWorkspacesByName,E=c.workspaceTitleByWorkspaceName,D=c.setWorkspaceTitle,O=c.isMostRecentlyOpenedWindowHidden,P=v1(),j=P.workspaceName,k=P.isRootWorkspace,C=P.closeWorkspace,T=P.showActionMenu,A=(0,ma.YX)(j),R=y[A],I=null==R?void 0:R.openedWorkspaces.find(function(e){return e.workspaceName===j});if((0,m.useEffect)(function(){(null==I?void 0:I.hasUnsavedChanges)!=l&&p(j,null!=l&&l)},[null==I?void 0:I.hasUnsavedChanges,l,j,p]),(0,m.useEffect)(function(){E[j]!==a&&D(j,a)},[E,j,a,D]),A<0||null==g||null==I)return null;var M=w[g.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(g.groupName));var N=S[j].window,F=x[N];if(!F)throw Error("Cannot find registered workspace window ".concat(N));var B=F.icon,V=F.canMaximize,$="closable"===M.persistence,W=!!B&&!$,U=R.maximized,z=null!=(t=null==F?void 0:F.width)?t:"narrow",H=Object.values(x).some(function(e){return e.group===g.groupName&&void 0!==e.icon}),G=A<y.length-1||O;return(0,h.jsxs)("div",{className:v()(v4.workspaceOuterContainer,(v5(r={},v4.narrowWorkspace,"narrow"===z),v5(r,v4.widerWorkspace,"wider"===z),v5(r,v4.extraWideWorkspace,"extra-wide"===z),v5(r,v4.isActionMenuOpened,H),r)),children:[(0,h.jsx)("div",{className:v()(v4.workspaceSpacer,v5({},v4.hidden,G))}),(0,h.jsx)("div",{className:v()(v4.workspaceMiddleContainer,(v5(n={},v4.maximized,U),v5(n,v4.hidden,G),v5(n,v4.isRootWorkspace,k),v5(n,v4.showActionMenu,T),n)),children:(0,h.jsxs)("div",{className:v()(v4.workspaceInnerContainer,(v5(i={},v4.maximized,U),v5(i,v4.hidden,G),v5(i,v4.isRootWorkspace,k),i)),children:[(0,h.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader"),className:v4.header,children:[(0,h.jsx)(L.HeaderName,{prefix:"",children:a}),(0,h.jsx)("div",{className:v4.overlayHeaderSpacer}),(0,h.jsx)(L.HeaderGlobalBar,{className:v4.headerButtons,children:(0,b.isDesktop)(u)?(0,h.jsxs)(h.Fragment,{children:[(V||U)&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":U?(0,_.V)("minimize"):(0,_.V)("maximize"),onClick:function(){return d(N,!U)},children:U?(0,h.jsx)(vc,{}):(0,h.jsx)(vd.hz,{})}),W&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(es,{})}),!$&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){return C({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]}):(0,h.jsxs)(h.Fragment,{children:[W&&(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(vy,{})}),(0,h.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){$?vZ():C({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]})})]}),(0,h.jsx)("div",{className:v()(v4.workspaceContent),children:o})]})})]})};let v8="jc6--ve4CL-z756RWjy-Gg==",v9="whLL8QyjyxlJqTQo67X7BQ==",v7="fbyFm5PlSWWUnG9aPE8kTg==",be="+aVpzvvOae5n83hGlMESXg==";function bt(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bn(e){var t=e.getIcon,r=e.hasUnsavedChanges,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,h.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:n})]})}var bi=function(e){var t,r,n,i=e.icon,a=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,b.useLayoutType)(),c=v0(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,y=c.isMostRecentlyOpenedWindowHidden,g=(0,m.useContext)(b.ComponentContext).extension,w=d.findIndex(function(e){return e.windowName===(null==g?void 0:g.extensionId)}),x=d[w],S=null!=x,E=S&&(w<d.length-1||y),D=S&&!E,O=null!=(t=null==x?void 0:x.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,P=function(){var e;return(e=function(){var e,t;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(!S)return[3,1];return E?f(x.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:r.sent()&&(t=s.workspaceName,vq(t,s.workspaceProps,s.windowProps)),r.label=3;case 3:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bt(a,n,i,o,s,"next",e)}function s(e){bt(a,n,i,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,h.jsxs)(L.Button,{className:v()(v8,(br(r={},v7,S&&!D),br(r,be,D),r)),iconDescription:a,kind:"ghost",onClick:P,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:v9,children:(0,h.jsx)(bn,{hasUnsavedChanges:O,getIcon:i,tagContent:o})}),(0,h.jsx)("span",{children:a})]}):(0,h.jsx)(L.IconButton,{align:"left","aria-label":a,className:v()(v8,(br(n={},v7,S&&!D),br(n,be,D),n)),enterDelayMs:300,kind:"ghost",label:a,onClick:P,size:"md",children:(0,h.jsx)("div",{className:v9,children:(0,h.jsx)(bn,{hasUnsavedChanges:O,getIcon:i,tagContent:o})})})},ba=r(3447);let bo="_6Gke0iocK8-7xF6UDXtjtQ==";function bs(e){var t=e.workspaceGroup,r=e.groupProps,n=(0,b.useLayoutType)(),i=t.persistence;return(0,h.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,h.jsxs)("div",{className:bo,children:["closable"==i&&(0,b.isDesktop)(n)&&(0,h.jsx)(L.IconButton,{align:"left",onClick:function(){return vZ()},label:(0,_.V)("close"),kind:"ghost",children:(0,h.jsx)(eO,{})}),(0,h.jsx)(b.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,h.jsx)(b.ExtensionSlot,{className:bo,name:t.name,state:{groupProps:r}})})]})})}var bl=r(8148);function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function bc(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function bd(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bc(a,n,i,o,s,"next",e)}function s(e){bc(a,n,i,o,s,"throw",e)}o(void 0)})}}function bf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bp(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var bh=function(e){var t=e.lifeCycle,r=e.openedWorkspace,n=e.openedWindow,i=e.isRootWorkspace,a=e.isLeafWorkspace,o=e.showActionMenu,s=v0(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,m.useMemo)(function(){return r&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bd(function(){var t,i,a,o,s,l;return bp(this,function(c){switch(c.label){case 0:if(i=void 0!==(t=e.closeWindow)&&t,o=void 0!==(a=e.discardUnsavedChanges)&&a,!i)return[3,3];if(s=o)return[3,2];return[4,vQ({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(n.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:r.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(r.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return bd(function(){var i,a,o;return bp(this,function(s){switch(s.label){case 0:if(i=r.workspaceName,-1===(o=(a=n.openedWorkspaces).findIndex(function(e){return e.workspaceName===i})))return[2];if(o===a.length-1||!a.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,vQ({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:a[o+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(i,e,t||{}),[2]}})})()},workspaceName:r.workspaceName,workspaceProps:r.props,windowProps:n.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:i,isLeafWorkspace:a,windowName:n.windowName,showActionMenu:o}},[r,u,l,n]);if(!t){var f,p,y=ma.J_.getState().registeredWorkspacesByName[r.workspaceName],g=y&&y.window?y.window:void 0,b=ma.J_.getState().registeredWindowsByName,w=g?b[g]:void 0,x=w&&w.width?w.width:"narrow",S=Object.values(b).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,h.jsxs)("div",{className:v()(v4.workspaceOuterContainer,(bf(f={},v4.narrowWorkspace,"narrow"===x),bf(f,v4.widerWorkspace,"wider"===x),bf(f,v4.extraWideWorkspace,"extra-wide"===x),bf(f,v4.isActionMenuOpened,S),f)),children:[(0,h.jsx)("div",{className:v4.workspaceSpacer}),(0,h.jsx)("div",{className:v()(v4.workspaceMiddleContainer,(bf(p={},v4.isRootWorkspace,i),bf(p,v4.showActionMenu,o),p)),children:(0,h.jsx)("div",{className:v()(v4.workspaceInnerContainer,bf({},v4.isRootWorkspace,i)),children:(0,h.jsx)(L.InlineLoading,{className:v4.loader,description:"".concat((0,_.V)("loading")," ...")})})})]})}return(0,h.jsx)(vT,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){bf(e,t,r[t])})}return e}({config:t,mountParcel:mn.mountRootParcel},d),r.workspaceName)};let bm=function(e){var t,r=e.openedWindow,n=e.showActionMenu,i=r.openedWorkspaces,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return bu(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bu(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1],l=ma.J_.getState().registeredWorkspacesByName;return(0,m.useEffect)(function(){Promise.all(i.map(function(e){var t=l[e.workspaceName],r=t.moduleName,n=t.component;return(0,bl.o)(r,n)})).then(s)},[i]),(0,h.jsx)(h.Fragment,{children:i.map(function(e,t){return(0,h.jsx)(bh,{openedWorkspace:e,openedWindow:r,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===i.length-1,showActionMenu:n},e.uuid)})})};function by(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bg(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(bv,{}))}function bv(){var e,t=v0(),r=t.openedGroup,n=t.openedWindows,i=t.registeredGroupsByName,a=t.registeredWindowsByName;if((0,m.useEffect)(function(){return(0,ba.mI)("before-page-changed",function(e){var t=e.newPage,n=e.cancelNavigation,a=e.oldUrl,o=e.newUrl;if(r){if(t)return void n(vZ().then(function(e){return!e}));var s=i[r.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,r){try{var n=new URL(t,window.location.origin).pathname,i=new URL(r,window.location.origin).pathname,a=new RegExp(e),o=n.match(a),s=i.match(a);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,a,o)&&n(vZ().then(function(e){return!e}))}})},[r,i]),!r)return null;var o=i[r.groupName],s=n.some(function(e){return e.maximized}),l=o.name,u=Object.values(a).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var r,n;return(null!=(r=e.order)?r:Number.MAX_VALUE)-(null!=(n=t.order)?n:Number.MAX_VALUE)}).length>0;return(0,h.jsxs)("div",{className:v()("_2u2mcnHqn77Jo33H5a1H2g==",(by(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),by(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,h.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:n.map(function(e){return(0,h.jsx)(bm,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,h.jsx)(bs,{workspaceGroup:o,groupProps:r.props})]})}function bb(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bw(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bS,bE,bD,bO,bP,bj,bk,bC,bT,bA,bR,bI,bM,bN,bL,b_,bF,bB,bV,b$,bW,bU,bz,bH,bG,bK,bY,bZ,bq={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},bX={duration:.5,overwrite:!1,delay:0},bQ=2*Math.PI,bJ=bQ/4,b0=0,b1=Math.sqrt,b2=Math.cos,b3=Math.sin,b4=function(e){return"string"==typeof e},b5=function(e){return"function"==typeof e},b6=function(e){return"number"==typeof e},b8=function(e){return void 0===e},b9=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},b7=function(e){return!1!==e},we=function(){return"u">typeof window},wt=function(e){return b5(e)||b4(e)},wr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},wn=Array.isArray,wi=/random\([^)]+\)/g,wa=/,\s*/g,wo=/(?:-?\.?\d|\.)+/gi,ws=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wu=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wc=/[+-]=-?[.\d]+/,wd=/[^,'"\[\]\s]+/gi,wf=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wp={},wh={},wm=function(e){return(wh=wH(e,wp))&&SL},wy=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},wg=function(e,t){return!t&&console.warn(e)},wv=function(e,t){return e&&(wp[e]=t)&&wh&&(wh[e]=t)||wp},wb=function(){return 0},ww={suppressEvents:!0,isStart:!0,kill:!1},wx={suppressEvents:!0,kill:!1},wS={suppressEvents:!0},wE={},wD=[],wO={},wP={},wj={},wk=30,wC=[],wT="",wA=function(e){var t,r,n=e[0];if(b9(n)||b5(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=wC.length;r--&&!wC[r].targetTest(n););t=wC[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new xQ(e[r],t)))||e.splice(r,1);return e},wR=function(e){return e._gsap||wA(xm(e))[0]._gsap},wI=function(e,t,r){return(r=e[t])&&b5(r)?e[t]():b8(r)&&e.getAttribute&&e.getAttribute(t)||r},wM=function(e,t){return(e=e.split(",")).forEach(t)||e},wN=function(e){return Math.round(1e5*e)/1e5||0},wL=function(e){return Math.round(1e7*e)/1e7||0},w_=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},wF=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},wB=function(){var e,t,r=wD.length,n=wD.slice(0);for(e=0,wO={},wD.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},wV=function(e){return!!(e._initted||e._startAt||e.add)},w$=function(e,t,r,n){wD.length&&!bV&&wB(),e.render(t,r,n||!!(bV&&t<0&&wV(e))),wD.length&&!bV&&wB()},wW=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(wd).length<2?t:b4(e)?e.trim():e},wU=function(e){return e},wz=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},wH=function(e,t){for(var r in t)e[r]=t[r];return e},wG=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=b9(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},wK=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},wY=function(e){var t,r=e.parent||bW,n=e.keyframes?(t=wn(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):wz;if(b7(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},wZ=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},wq=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,o=e[n];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},wX=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,a=t._next;i?i._next=a:e[r]===t&&(e[r]=a),a?a._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},wQ=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},wJ=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},w0=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},w1=function(e,t,r,n){return e._startAt&&(bV?e._startAt.revert(wx):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},w2=function(e){return e._repeat?w3(e._tTime,e=e.duration()+e._rDelay)*e:0},w3=function(e,t){var r=Math.floor(e=wL(e/t));return e&&r===e?r-1:r},w4=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},w5=function(e){return e._end=wL(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},w6=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=wL(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),w5(e),r._dirty||wJ(r,e)),e},w8=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=w4(e.rawTime(),t),(!t._dur||xd(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),wJ(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},w9=function(e,t,r,n){return t.parent&&wQ(t),t._start=wL((b6(r)?r:r||e!==bW?xl(e,r,t):e._time)+t._delay),t._end=wL(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),wq(e,t,"_first","_last",e._sort?"_start":0),xr(t)||(e._recent=t),n||w8(e,t),e._ts<0&&w6(e,e._tTime),e},w7=function(e,t){return(wp.ScrollTrigger||wy("scrollTrigger",t))&&wp.ScrollTrigger.create(t,e)},xe=function(e,t,r,n,i){return(St(e,t,i),e._initted)?!r&&e._pt&&!bV&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&bK!==xF.frame?(wD.push(e),e._lazy=[i,n],1):void 0:1},xt=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},xr=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xn=function(e,t,r,n){var i,a,o,s=e.ratio,l=t<0||!t&&(!e._start&&xt(e)&&!(!e._initted&&xr(e))||(e._ts<0||e._dp._ts<0)&&!xr(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(a=w3(c=xd(0,e._tDur,t),u),e._yoyo&&1&a&&(l=1-l),a!==w3(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||bV||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xe(e,t,n,r,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&w1(e,t,r,!0),e._onUpdate&&!r&&xP(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&xP(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&wQ(e,1),r||bV||(xP(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xi=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},xa=function(e,t,r,n){var i=e._repeat,a=wL(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:wL(a*(i+1)+e._rDelay*i):a,o>0&&!n&&w6(e,e._tTime=e._tDur*o),e.parent&&w5(e),r||wJ(e.parent,e),e},xo=function(e){return bb(e,x0)?wJ(e):xa(e,e._dur)},xs={_start:0,endTime:wb,totalDuration:wb},xl=function e(t,r,n){var i,a,o,s=t.labels,l=t._recent||xs,u=t.duration()>=1e8?l.endTime(!1):t._dur;return b4(r)&&(isNaN(r)||r in s)?(a=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===a||">"===a)?(i>=0&&(r=r.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=u),s[r]):(a=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(a=a/100*(wn(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+a:u+a):null==r?u:+r},xu=function(e,t,r){var n,i,a=b6(t[1]),o=(a?2:1)+(e<2?0:1),s=t[o];if(a&&(s.duration=t[1]),s.parent=r,e){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=b7(i.vars.inherit)&&i.parent;s.immediateRender=b7(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Sl(t[0],s,t[o+1])},xc=function(e,t){return e||0===e?t(e):t},xd=function(e,t,r){return r<e?e:r>t?t:r},xf=function(e,t){return b4(e)&&(t=wf.exec(e))?t[1]:""},xp=[].slice,xh=function(e,t){return e&&b9(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&b9(e[0]))&&!e.nodeType&&e!==bU},xm=function(e,t,r){var n;return b$&&!t&&b$.selector?b$.selector(e):b4(e)&&!r&&(bz||!xB())?xp.call((t||bH).querySelectorAll(e),0):wn(e)?(void 0===n&&(n=[]),e.forEach(function(e){var t;return b4(e)&&!r||xh(e,1)?(t=n).push.apply(t,xm(e)):n.push(e)})||n):xh(e)?xp.call(e,0):e?[e]:[]},xy=function(e){return e=xm(e)[0]||wg("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return xm(t,r.querySelectorAll?r:r===e?wg("Invalid scope")||bH.createElement("div"):e)}},xg=function(e){return e.sort(function(){return .5-Math.random()})},xv=function(e){if(b5(e))return e;var t=b9(e)?e:{each:e},r=xK(t.ease),n=t.from||0,i=parseFloat(t.base)||0,a={},o=n>0&&n<1,s=isNaN(n)||o,l=t.axis,u=n,c=n;return b4(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!o&&s&&(u=n[0],c=n[1]),function(e,o,d){var f,p,h,m,y,g,v,b,w,x=(d||t).length,S=a[x];if(!S){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(g=0,S=a[x]=[],f=s?Math.min(w,x)*u-.5:n%w,p=1e8===w?0:s?x*c/w-.5:n/w|0,v=0,b=1e8;g<x;g++)h=g%w-f,m=p-(g/w|0),S[g]=y=l?Math.abs("y"===l?m:h):b1(h*h+m*m),y>v&&(v=y),y<b&&(b=y);"random"===n&&xg(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===n?-1:1),S.b=x<0?i-x:i,S.u=xf(t.amount||t.each)||0,r=r&&x<0?xG(r):r}return x=(S[e]-S.min)/S.max||0,wL(S.b+(r?r(x):x)*S.v)+S.u}},xb=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=wL(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(b6(r)?0:xf(r))}},xw=function(e,t){var r,n,i=wn(e);return!i&&b9(e)&&(r=i=e.radius||1e8,e.values?(n=!b6((e=xm(e.values))[0]))&&(r*=r):e=xb(e.increment)),xc(t,i?b5(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var i,a,o=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,u=0,c=e.length;c--;)(i=n?(i=e[c].x-o)*i+(a=e[c].y-s)*a:Math.abs(e[c]-o))<l&&(l=i,u=c);return u=!r||l<=r?e[u]:t,n||u===t||b6(t)?u:u+xf(t)}:xb(e))},xx=function(e,t,r,n){return xc(wn(e)?!t:!0===r?(r=0,!1):!n,function(){return wn(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},xS=function(e,t,r){return xc(r,function(r){return e[~~t(r)]})},xE=function(e){return e.replace(wi,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(wa);return xx(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},xD=function(e,t,r,n,i){var a=t-e,o=n-r;return xc(i,function(t){return r+((t-e)/a*o||0)})},xO=function(e,t,r){var n,i,a,o=e.labels,s=1e8;for(n in o)(i=o[n]-t)<0==!!r&&i&&s>(i=Math.abs(i))&&(a=n,s=i);return a},xP=function(e,t,r){var n,i,a,o=e.vars,s=o[t],l=b$,u=e._ctx;if(s)return n=o[t+"Params"],i=o.callbackScope||e,r&&wD.length&&wB(),u&&(b$=u),a=n?s.apply(i,n):s.call(i),b$=l,a},xj=function(e){return wQ(e),e.scrollTrigger&&e.scrollTrigger.kill(!!bV),1>e.progress()&&xP(e,"onInterrupt"),e},xk=[],xC=function(e){if(e)if(e=!e.name&&e.default||e,we()||e.headless){var t=e.name,r=b5(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:wb,render:Sg,add:x9,kill:Sb,modifier:Sv,rawVars:0},a={targetTest:0,get:0,getSetter:Sp,aliases:{},register:0};if(xB(),e!==n){if(wP[t])return;wz(n,wz(wK(e,i),a)),wH(n.prototype,wH(i,wK(e,a))),wP[n.prop=t]=n,e.targetTest&&(wC.push(n),wE[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}wv(t,n),e.register&&e.register(SL,n,SS)}else xk.push(e)},xT={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xA=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},xR=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p=e?b6(e)?[e>>16,e>>8&255,255&e]:0:xT.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xT[e])p=xT[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),e="#"+n+n+(i=e.charAt(2))+i+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(wo),t){if(~e.indexOf("="))return p=e.match(ws),r&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,i=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-i,p.length>3&&(p[3]*=1),p[0]=xA(o+1/3,n,i),p[1]=xA(o,n,i),p[2]=xA(o-1/3,n,i);else p=e.match(wo)||xT.transparent;p=p.map(Number)}return t&&!f&&(n=p[0]/255,l=((u=Math.max(n,i=p[1]/255,a=p[2]/255))+(c=Math.min(n,i,a)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===n?(i-a)/d+6*(i<a):u===i?(a-n)/d+2:(n-i)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),r&&p.length<4&&(p[3]=1),p},xI=function(e){var t=[],r=[],n=-1;return e.split(xN).forEach(function(e){var i=e.match(wl)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},xM=function(e,t,r){var n,i,a,o,s="",l=(e+s).match(xN),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xR(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(a=xI(e),(n=r.c).join(s)!==a.c.join(s)))for(o=(i=e.replace(xN,"1").split(wl)).length-1;c<o;c++)s+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:r).shift());if(!i)for(o=(i=e.split(xN)).length-1;c<o;c++)s+=i[c]+l[c];return s+i[o]},xN=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xT)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),xL=/hsl[a]?\(/,x_=function(e){var t,r=e.join(" ");if(xN.lastIndex=0,xN.test(r))return t=xL.test(r),e[1]=xM(e[1],t),e[0]=xM(e[0],t,xI(e[1])),!0},xF=(bT=Date.now,bA=500,bR=33,bM=bI=bT(),bN=1e3/240,bL=1e3/240,b_=[],bF=function e(t){var r,n,i,a,o=bT()-bM,s=!0===t;if((o>bA||o<0)&&(bI+=o-bR),bM+=o,((r=(i=bM-bI)-bL)>0||s)&&(a=++bj.frame,bk=i-1e3*bj.time,bj.time=i/=1e3,bL+=r+(r>=bN?4:bN-r),n=1),s||(bD=bO(e)),n)for(bC=0;bC<b_.length;bC++)b_[bC](i,bk,a,t)},bj={time:0,frame:0,tick:function(){bF(!0)},deltaRatio:function(e){return bk/(1e3/(e||60))},wake:function(){bG&&(!bz&&we()&&(bH=(bU=bz=window).document||{},wp.gsap=SL,(bU.gsapVersions||(bU.gsapVersions=[])).push(SL.version),wm(wh||bU.GreenSockGlobals||!bU.gsap&&bU||{}),xk.forEach(xC)),bP="u">typeof requestAnimationFrame&&requestAnimationFrame,bD&&bj.sleep(),bO=bP||function(e){return setTimeout(e,bL-1e3*bj.time+1|0)},bZ=1,bF(2))},sleep:function(){(bP?cancelAnimationFrame:clearTimeout)(bD),bZ=0,bO=wb},lagSmoothing:function(e,t){bR=Math.min(t||33,bA=e||1/0)},fps:function(e){bN=1e3/(e||240),bL=1e3*bj.time+bN},add:function(e,t,r){var n=t?function(t,r,i,a){e(t,r,i,a),bj.remove(n)}:e;return bj.remove(e),b_[r?"unshift":"push"](n),xB(),n},remove:function(e,t){~(t=b_.indexOf(e))&&b_.splice(t,1)&&bC>=t&&bC--},_listeners:b_}),xB=function(){return!bZ&&xF.wake()},xV={},x$=/^[\d.\-M][\d.\-,\s]/,xW=/["']/g,xU=function(e){for(var t,r,n,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)r=a[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[o]=isNaN(n)?n.replace(xW,"").trim():+n,o=r.substr(t+1).trim();return i},xz=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},xH=function(e){var t=(e+"").split("("),r=xV[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[xU(t[1])]:xz(e).split(",").map(wW)):xV._CE&&x$.test(e)?xV._CE("",e):r},xG=function(e){return function(t){return 1-e(1-t)}},xK=function(e,t){return e&&(b5(e)?e:xV[e]||xH(e))||t},xY=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,a={easeIn:t,easeOut:r,easeInOut:n};return wM(e,function(e){for(var t in xV[e]=wp[e]=a,xV[i=e.toLowerCase()]=r,a)xV[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=xV[e+"."+t]=a[t]}),a},xZ=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},xq=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/bQ*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*b3((e-o)*a)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:xZ(s);return a=bQ/a,l.config=function(r,n){return e(t,r,n)},l},xX=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:xZ(n);return i.config=function(r){return e(t,r)},i};wM("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;xY(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),xV.Linear.easeNone=xV.none=xV.Linear.easeIn,xY("Elastic",xq("in"),xq("out"),xq()),x2=2*(x1=1/2.75),x3=2.5*x1,xY("Bounce",function(e){return 1-x4(1-e)},x4=function(e){return e<x1?7.5625*e*e:e<x2?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<x3?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),xY("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),xY("Circ",function(e){return-(b1(1-e*e)-1)}),xY("Sine",function(e){return 1===e?1:-b2(e*bJ)+1}),xY("Back",xX("in"),xX("out"),xX()),xV.SteppedEase=xV.steps=wp.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+ +!t,i=+!!t,a=.99999999;return function(e){return((n*xd(0,a,e)|0)+i)*r}}},bX.ease=xV["quad.out"],wM("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return wT+=e+","+e+"Params,"});var xQ=function(e,t){this.id=b0++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wI,this.set=t?t.getSetter:Sp},xJ=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xa(this,+e.duration,1,1),this.data=e.data,b$&&(this._ctx=b$,b$.data.push(this)),bZ||xF.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xa(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xB(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(w6(this,e),!r._dp||r.parent||w8(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&w9(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),w$(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+w2(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+w2(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?w3(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?w4(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xd(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),w5(this),w0(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xB(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=wL(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&w9(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(b7(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?w4(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=wS);var t=bV;return bV=e,wV(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),bV=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xo(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xo(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xl(this,e),b7(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,b7(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var i=b5(e)?e:wU,a=function(){var e=t.then;t.then=null,r&&r(),b5(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){xj(this)},e}();wz(xJ.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var x0=function(e){function t(t,r){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=b7(t.sortChildren),bW&&w9(t.parent||bW,bw(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&w7(bw(n),t.scrollTrigger),n}bx(t,e);var r=t.prototype;return r.to=function(e,t,r){return xu(0,arguments,this),this},r.from=function(e,t,r){return xu(1,arguments,this),this},r.fromTo=function(e,t,r,n){return xu(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,wY(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Sl(e,t,xl(this,r),1),this},r.call=function(e,t,r){return w9(this,Sl.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,a,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=o,r.parent=this,new Sl(e,r,xl(this,i)),this},r.staggerFrom=function(e,t,r,n,i,a,o){return r.runBackwards=1,wY(r).immediateRender=b7(r.immediateRender),this.staggerTo(e,t,r,n,i,a,o)},r.staggerFromTo=function(e,t,r,n,i,a,o,s){return n.startAt=r,wY(n).immediateRender=b7(n.immediateRender),this.staggerTo(e,t,n,i,a,o,s)},r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p,h,m=this._time,y=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=e<=0?0:wL(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==bW&&v>y&&e>=0&&(v=y),v!==this._tTime||r||b){if(m!==this._time&&g&&(v+=this._time-m,e+=this._time-m),n=v,d=this._start,l=!(c=this._ts),b&&(g||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=wL(v%s),v===y?(o=this._repeat,n=g):((o=~~(f=wL(v/s)))&&o===f&&(n=g,o--),n>g&&(n=g)),f=w3(this._tTime,s),!m&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(n=g-n,h=1),o!==f&&!this._lock){var w=p&&1&f,x=w===(p&&1&o);if(o<f&&(w=!w),m=w?0:v%g?g:v,this._lock=1,this.render(m||(h?0:wL(o*s)),t,!g)._lock=0,this._tTime=v,!t&&this.parent&&xP(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1,f=o),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,y=this._tDur,x&&(this._lock=2,m=w?g:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xi(this,wL(m),wL(n)))&&(v-=n-(n=u._start)),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&v&&g&&!t&&!f&&(xP(this,"onStart"),this._tTime!==v))return this;if(n>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var S=e<0?e:n;i;){if(a=i._prev,(i._act||S<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(S-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(S-i._start)*i._ts,t,r||bV&&wV(i)),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=S?-1e-8:1e-8);break}}i=a}}if(u&&!t&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=d,w5(this),this.render(e,t,r);this._onUpdate&&!t&&xP(this,"onUpdate",!0),(v===y&&this._tTime>=this.totalDuration()||!v&&m)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(v===y&&this._ts>0||!v&&this._ts<0)&&wQ(this,1),t||e<0&&!m||!v&&!m&&y||(xP(this,v===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<y&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(b6(t)||(t=xl(this,t,e)),!bb(e,xJ)){if(wn(e))return e.forEach(function(e){return r.add(e,t)}),this;if(b4(e))return this.addLabel(e,t);if(!b5(e))return this;e=Sl.delayedCall(0,e)}return this!==e?w9(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],a=this._first;a;)a._start>=n&&(bb(a,Sl)?t&&i.push(a):(r&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,r)))),a=a._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return b4(e)?this.removeLabel(e):b5(e)?this.killTweensOf(e):(e.parent===this&&wX(this,e),e===this._recent&&(this._recent=this._last),wJ(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wL(xF.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=xl(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=Sl.delayedCall(0,t||wb,r);return n.data="isPause",this._hasPause=1,w9(this,n,xl(this,e))},r.removePause=function(e){var t=this._first;for(e=xl(this,e);t;)t._start===e&&"isPause"===t.data&&wQ(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)x5!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=xm(e),a=this._first,o=b6(t);a;)bb(a,Sl)?wF(a._targets,i)&&(o?(!x5||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&n.push(a):(r=a.getTweensOf(i,t)).length&&n.push.apply(n,r),a=a._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=xl(n,e),a=t,o=a.startAt,s=a.onStart,l=a.onStartParams,u=a.immediateRender,c=Sl.to(n,wz({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==e&&xa(c,e,0,1).render(c._time,!0,!0),r=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,wz({startAt:{time:xl(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),xO(this,xl(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),xO(this,xl(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,i=this._first,a=this.labels;for(e=wL(e);i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in a)a[n]>=r&&(a[n]+=e);return wJ(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),wJ(this)},r.totalDuration=function(e){var t,r,n,i=0,a=this._last,o=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(n=this.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&this._sort&&a._ts&&!this._lock?(this._lock=1,w9(this,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!this._dp||n&&n.smoothChildTiming)&&(this._start+=wL(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),o=0),a._end>i&&a._ts&&(i=a._end),a=t;xa(this,this===bW&&this._time>i?this._time:i,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(bW._ts&&(w$(bW,w4(e,bW)),bK=xF.frame),xF.frame>=wk){wk+=bq.autoSleep||120;var t=bW._first;if((!t||!t._ts)&&bq.autoSleep&&xF._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||xF.sleep()}}},t}(xJ);wz(x0.prototype,{_lock:0,_hasPause:0,_forcing:0});var x1,x2,x3,x4,x5,x6,x8=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m=new SS(this._pt,e,t,0,1,Sy,null,i),y=0,g=0;for(m.b=r,m.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=xE(n)),a&&(a(h=[r,n],e,t),r=h[0],n=h[1]),l=r.match(wu)||[];s=wu.exec(n);)c=s[0],d=n.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[g++]&&(f=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:f,c:"="===c.charAt(1)?w_(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=wu.lastIndex);return m.c=y<n.length?n.substring(y,n.length):"",m.fp=o,(wc.test(n)||p)&&(m.e=0),this._pt=m,m},x9=function(e,t,r,n,i,a,o,s,l,u){b5(n)&&(n=n(i||0,e,a));var c,d=e[t],f="get"!==r?r:b5(d)?l?e[t.indexOf("set")||!b5(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=b5(d)?l?Sd:Sc:Su;if(b4(n)&&(~n.indexOf("random(")&&(n=xE(n)),"="===n.charAt(1)&&((c=w_(f,n)+(xf(f)||0))||0===c)&&(n=c)),!u||f!==n||x6)return isNaN(f*n)||""===n?(d||t in e||wy(t,n),x8.call(this,e,t,f,n,p,s||bq.stringFilter,l)):(c=new SS(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?Sm:Sh,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},x7=function(e,t,r,n,i){if(b5(e)&&(e=Sa(e,i,t,r,n)),!b9(e)||e.style&&e.nodeType||wn(e)||wr(e))return b4(e)?Sa(e,i,t,r,n):e;var a,o={};for(a in e)o[a]=Sa(e[a],i,t,r,n);return o},Se=function(e,t,r,n,i,a){var o,s,l,u;if(wP[e]&&!1!==(o=new wP[e]).init(i,o.rawVars?t[e]:x7(t[e],n,i,a,r),r,n,a)&&(r._pt=s=new SS(r._pt,i,e,0,1,o.render,o,0,o.priority),r!==bY))for(l=r._ptLookup[r._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=s;return o},St=function e(t,r,n){var i,a,o,s,l,u,c,d,f,p,h,m,y,g=t.vars,v=g.ease,b=g.startAt,w=g.immediateRender,x=g.lazy,S=g.onUpdate,E=g.runBackwards,D=g.yoyoEase,O=g.keyframes,P=g.autoRevert,j=t._dur,k=t._startAt,C=t._targets,T=t.parent,A=T&&"nested"===T.data?T.vars.targets:C,R="auto"===t._overwrite&&!bB,I=t.timeline,M=g.easeReverse||D;if(!I||O&&v||(v="none"),t._ease=xK(v,bX.ease),t._rEase=M&&(xK(M)||t._ease),t._from=!I&&!!g.runBackwards,t._from&&(t.ratio=1),!I||O&&!g.stagger){if(m=(d=C[0]?wR(C[0]).harness:0)&&g[d.prop],i=wK(g,wE),k&&(k._zTime<0&&k.progress(1),r<0&&E&&w&&!P?k.render(-1,!0):k.revert(E&&j?wx:ww),k._lazy=0),b){if(wQ(t._startAt=Sl.set(C,wz({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!k&&b7(x),startAt:null,delay:0,onUpdate:S&&function(){return xP(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(bV||!w&&!P)&&t._startAt.revert(wx),w&&j&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(E&&j&&!k)if(r&&(w=!1),o=wz({overwrite:!1,data:"isFromStart",lazy:w&&!k&&b7(x),immediateRender:w,stagger:0,parent:T},i),m&&(o[d.prop]=m),wQ(t._startAt=Sl.set(C,o)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(bV?t._startAt.revert(wx):t._startAt.render(-1,!0)),t._zTime=r,w){if(!r)return}else e(t._startAt,1e-8,1e-8);for(a=0,t._pt=t._ptCache=0,x=j&&b7(x)||x&&!j;a<C.length;a++){if(c=(l=C[a])._gsap||wA(C)[a]._gsap,t._ptLookup[a]=p={},wO[c.id]&&wD.length&&wB(),h=A===C?a:A.indexOf(l),d&&!1!==(f=new d).init(l,m||i,t,h,A)&&(t._pt=s=new SS(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||m)for(o in i)wP[o]&&(f=Se(o,i,t,h,l,A))?f.priority&&(u=1):p[o]=s=x9.call(t,l,o,"get",i[o],h,A,0,g.stringFilter);t._op&&t._op[a]&&t.kill(l,t._op[a]),R&&t._pt&&(x5=t,bW.killTweensOf(l,p,t.globalTime(r)),y=!t.parent,x5=0),t._pt&&x&&(wO[c.id]=1)}u&&Sx(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,O&&r<=0&&I.render(1e8,!0,!0)},Sr=function(e,t,r,n,i,a,o,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return x6=1,e.vars[t]="+=0",St(e,o),x6=0,s?wg(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(n||0===n)&&!i?n:l.s+(n||0)+a*l.c,l.c=r-l.s,u.e&&(u.e=wN(r)+xf(u.e)),u.b&&(u.b=l.s+xf(u.b))},Sn=function(e,t){var r,n,i,a,o=e[0]?wR(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=wH({},t),s)if(n in r)for(i=(a=s[n].split(",")).length;i--;)r[a[i]]=r[n];return r},Si=function(e,t,r,n){var i,a,o=t.ease||n||"power1.inOut";if(wn(t))a=r[e]||(r[e]=[]),t.forEach(function(e,r){return a.push({t:r/(t.length-1)*100,v:e,e:o})});else for(i in t)a=r[i]||(r[i]=[]),"ease"===i||a.push({t:parseFloat(e),v:t[i],e:o})},Sa=function(e,t,r,n,i){return b5(e)?e.call(t,r,n,i):b4(e)&&~e.indexOf("random(")?xE(e):e},So=wT+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Ss={};wM(So+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return Ss[e]=1});var Sl=function(e){function t(t,r,n,i){"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,s,l,u,c,d,f,p=e.call(this,i?r:wY(r))||this,h=p.vars,m=h.duration,y=h.delay,g=h.immediateRender,v=h.stagger,b=h.overwrite,w=h.keyframes,x=h.defaults,S=h.scrollTrigger,E=r.parent||bW,D=(wn(t)||wr(t)?b6(t[0]):"length"in r)?[t]:xm(t);if(p._targets=D.length?wA(D):wg("GSAP target "+t+" not found. https://gsap.com",!bq.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,w||v||wt(m)||wt(y)){var O=(r=p.vars).easeReverse||r.yoyoEase;if((a=p.timeline=new x0({data:"nested",defaults:x||{},targets:E&&"nested"===E.data?E.vars.targets:D})).kill(),a.parent=a._dp=bw(p),a._start=0,v||wt(m)||wt(y)){if(l=D.length,d=v&&xv(v),b9(v))for(u in v)~So.indexOf(u)&&(f||(f={}),f[u]=v[u]);for(o=0;o<l;o++)(s=wK(r,Ss)).stagger=0,O&&(s.easeReverse=O),f&&wH(s,f),c=D[o],s.duration=+Sa(m,bw(p),o,c,D),s.delay=(+Sa(y,bw(p),o,c,D)||0)-p._delay,!v&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),a.to(c,s,d?d(o,c,D):0),a._ease=xV.none;a.duration()?m=y=0:p.timeline=0}else if(w){wY(wz(a.vars.defaults,{ease:"none"})),a._ease=xK(w.ease||r.ease||"none");var P,j,k,C=0;if(wn(w))w.forEach(function(e){return a.to(D,e,">")}),a.duration();else{for(u in s={},w)"ease"===u||"easeEach"===u||Si(u,w[u],s,w.easeEach);for(u in s)for(o=0,P=s[u].sort(function(e,t){return e.t-t.t}),C=0;o<P.length;o++)(k={ease:(j=P[o]).e,duration:(j.t-(o?P[o-1].t:0))/100*m})[u]=j.v,a.to(D,k,C),C+=k.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||p.duration(m=a.duration())}else p.timeline=0;return!0!==b||bB||(x5=bw(p),bW.killTweensOf(D),x5=0),w9(E,bw(p),n),r.reversed&&p.reverse(),r.paused&&p.paused(!0),(g||!m&&!w&&p._start===wL(E._time)&&b7(g)&&function e(t){return!t||t._ts&&e(t.parent)}(bw(p))&&"nested"!==E.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&w7(bw(p),S),p}bx(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,h=e<0,m=e>f-1e-8&&!h?f:e<1e-8?0:e;if(p){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(n=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*o+e,t,r);if(n=wL(m%o),m===f?(a=this._repeat,n=p):(a=~~(s=wL(m/o)))&&a===s?(n=p,a--):n>p&&(n=p),(l=this._yoyo&&1&a)&&(n=p-n),s=w3(this._tTime,o),n===d&&!r&&this._initted&&a===s)return this._tTime=m,this;a!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(wL(o*a),!0).invalidate()._lock=0)}if(!this._initted){if(xe(this,h?e:n,r,t,m))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(e,t,r)}if(this._rEase){var y=n<d;if(y!==this._inv){var g=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=g?(y?-1:1)/g:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/p);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(xP(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(e<0?e:c._dur*c._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(h&&w1(this,e,t,r),xP(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&xP(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(h&&!this._onUpdate&&w1(this,e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&wQ(this,1),!t&&!(h&&!d)&&(m||d||l)&&(xP(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else xn(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,i){bZ||xF.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||St(this,a),Sr(this,e,t,r,n,this._ease(a/this._dur),a,i))?this.resetTo(e,t,r,n,1):(w6(this,0),this.parent||wq(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xj(this):this.scrollTrigger&&this.scrollTrigger.kill(!!bV),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,x5&&!0!==x5.vars.overwrite)._first||xj(this),this.parent&&r!==this.timeline.totalDuration()&&xa(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,a,o,s,l,u,c=this._targets,d=e?xm(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&wZ(c,d))return"all"===t&&(this._pt=0),xj(this);for(n=this._op=this._op||[],"all"!==t&&(b4(t)&&(s={},wM(t,function(e){return s[e]=1}),t=s),t=Sn(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in i=f[u],"all"===t?(n[u]=t,o=i,a={}):(a=n[u]=n[u]||{},o=t),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||wX(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&xj(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return xu(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return xu(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return bW.killTweensOf(e,t,r)},t}(xJ);wz(Sl.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wM("staggerTo,staggerFrom,staggerFromTo",function(e){Sl[e]=function(){var t=new x0,r=xp.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var Su=function(e,t,r){return e[t]=r},Sc=function(e,t,r){return e[t](r)},Sd=function(e,t,r,n){return e[t](n.fp,r)},Sf=function(e,t,r){return e.setAttribute(t,r)},Sp=function(e,t){return b5(e[t])?Sc:b8(e[t])&&e.setAttribute?Sf:Su},Sh=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Sm=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Sy=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Sg=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Sv=function(e,t,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(e,t,r),a=i},Sb=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):wX(this,n,"_pt"),n=r;return!t},Sw=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Sx=function(e){for(var t,r,n,i,a=e._pt;a;){for(t=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=t}e._pt=n},SS=function(){function e(e,t,r,n,i,a,o,s,l){this.t=t,this.s=n,this.c=i,this.p=r,this.r=a||Sh,this.d=o||this,this.set=s||Su,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=Sw,this.m=e,this.mt=r,this.tween=t},e}();wM(wT+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return wE[e]=1}),wp.TweenMax=wp.TweenLite=Sl,wp.TimelineLite=wp.TimelineMax=x0,bW=new x0({sortChildren:!1,defaults:bX,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),bq.stringFilter=x_;var SE=[],SD={},SO=[],SP=0,Sj=0,Sk=function(e){return(SD[e]||SO).map(function(e){return e()})},SC=function(){var e=Date.now(),t=[];e-SP>2&&(Sk("matchMediaInit"),SE.forEach(function(e){var r,n,i,a,o=e.queries,s=e.conditions;for(n in o)(r=bU.matchMedia(o[n]).matches)&&(i=1),r!==s[n]&&(s[n]=r,a=1);a&&(e.revert(),i&&t.push(e))}),Sk("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),SP=e,Sk("matchMedia"))},ST=function(){function e(e,t){this.selector=t&&xy(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Sj++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){b5(e)&&(r=t,t=e,e=b5);var n=this,i=function(){var e,i=b$,a=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=xy(r)),b$=n,e=t.apply(n,arguments),b5(e)&&n._r.push(e),b$=i,n.selector=a,n.isReverted=!1,e};return n.last=i,e===b5?i(n,function(e){return n.add(null,e)}):e?n[e]=i:i},t.ignore=function(e){var t=b$;b$=null,e(this),b$=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return bb(r,e)?t.push.apply(t,r.getTweens()):bb(r,Sl)&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e){for(var n,i=r.getTweens(),a=r.data.length;a--;)"isFlip"===(n=r.data[a]).data&&(n.revert(),n.getChildren(!0,!0,!1).forEach(function(e){return i.splice(i.indexOf(e),1)}));for(i.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),a=r.data.length;a--;)bb(n=r.data[a],x0)?"nested"!==n.data&&(n.scrollTrigger&&n.scrollTrigger.revert(),n.kill()):!bb(n,Sl)&&n.revert&&n.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=SE.length;o--;)SE[o].id===this.id&&SE.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),SA=function(){function e(e){this.contexts=[],this.scope=e,b$&&b$.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){b9(e)||(e={matches:e});var n,i,a,o=new ST(0,r||this.scope),s=o.conditions={};for(i in b$&&!o.selector&&(o.selector=b$.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===i?a=1:(n=bU.matchMedia(e[i]))&&(0>SE.indexOf(o)&&SE.push(o),(s[i]=n.matches)&&(a=1),n.addListener?n.addListener(SC):n.addEventListener("change",SC));return a&&t(o,function(e){return o.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),SR={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return xC(e)})},timeline:function(e){return new x0(e)},getTweensOf:function(e,t){return bW.getTweensOf(e,t)},getProperty:function(e,t,r,n){b4(e)&&(e=xm(e)[0]);var i=wR(e||{}).get,a=r?wU:wW;return"native"===r&&(r=""),e?t?a((wP[t]&&wP[t].get||i)(e,t,r,n)):function(t,r,n){return a((wP[t]&&wP[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=xm(e)).length>1){var n=e.map(function(e){return SL.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var a=wP[t],o=wR(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=a?function(t){var n=new a;bY._pt=0,n.init(e,r?t+r:t,bY,0,[e]),n.render(1,n),bY._pt&&Sg(1,bY)}:o.set(e,s);return a?l:function(t){return l(e,s,r?t+r:t,o,1)}},quickTo:function(e,t,r){var n,i=SL.to(e,wz(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(e,r,n){return i.resetTo(t,e,r,n)};return a.tween=i,a},isTweening:function(e){return bW.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=xK(e.ease,bX.ease)),wG(bX,e||{})},config:function(e){return wG(bq,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!wP[e]&&!wp[e]&&wg(t+" effect requires "+e+" plugin.")}),wj[t]=function(e,t,n){return r(xm(e),wz(t||{},i),n)},a&&(x0.prototype[t]=function(e,r,n){return this.add(wj[t](e,b9(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){xV[e]=xK(t)},parseEase:function(e,t){return arguments.length?xK(e,t):xV},getById:function(e){return bW.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new x0(e);for(i.smoothChildTiming=b7(e.smoothChildTiming),bW.remove(i),i._dp=0,i._time=i._tTime=bW._time,r=bW._first;r;)n=r._next,(t||!(!r._dur&&bb(r,Sl)&&r.vars.onComplete===r._targets[0]))&&w9(i,r,r._start-r._delay),r=n;return w9(bW,i,0),i},context:function(e,t){return e?new ST(e,t):b$},matchMedia:function(e){return new SA(e)},matchMediaRefresh:function(){return SE.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||SC()},addEventListener:function(e,t){var r=SD[e]||(SD[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=SD[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var i=r-t;return wn(t)?xS(t,e(0,t.length),r):xc(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,a=2*i;return wn(t)?xS(t,e(0,t.length-1),r):xc(n,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},distribute:xv,random:xx,snap:xw,normalize:function(e,t,r){return xD(e,t,0,1,r)},getUnit:xf,clamp:function(e,t,r){return xc(r,function(r){return xd(e,t,r)})},splitColor:xR,toArray:xm,selector:xy,mapRange:xD,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||xf(r))}},interpolate:function e(t,r,n,i){var a=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!a){var o,s,l,u,c,d=b4(t),f={};if(!0===n&&(i=1)&&(n=null),d)t={p:t},r={p:r};else if(wn(t)&&!wn(r)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,a=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},n=r}else i||(t=wH(wn(t)?[]:{},t));if(!l){for(o in r)x9.call(f,t,o,"get",r[o]);a=function(e){return Sg(e,f)||(d?t.p:t)}}}return xc(n,a)},shuffle:xg},install:wm,effects:wj,ticker:xF,updateRoot:x0.updateRoot,plugins:wP,globalTimeline:bW,core:{PropTween:SS,globals:wv,Tween:Sl,Timeline:x0,Animation:xJ,getCache:wR,_removeLinkedListItem:wX,reverting:function(){return bV},context:function(e){return e&&b$&&(b$.data.push(e),e._ctx=b$),b$},suppressOverwrites:function(e){return bB=e}}};wM("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return SR[e]=Sl[e]}),xF.add(x0.updateRoot),bY=SR.to({},{duration:0});var SI=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},SM=function(e,t){var r,n,i,a=e._targets;for(r in t)for(n=a.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=SI(i,r)),i&&i.modifier&&i.modifier(t[r],e,a[n],r))},SN=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(b4(r)&&(n={},wM(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}SM(e,r)}}}},SL=SR.registerPlugin({name:"attr",init:function(e,t,r,n,i){var a,o,s;for(a in this.tween=r,t)s=e.getAttribute(a)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[a],n,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)bV?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},SN("roundProps",xb),SN("modifiers"),SN("snap",xw))||SR;function S_(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}Sl.version=x0.version=SL.version="3.15.0",bG=1,we()&&xB(),xV.Power0,xV.Power1,xV.Power2,xV.Power3,xV.Power4,xV.Linear,xV.Quad,xV.Cubic,xV.Quart,xV.Quint,xV.Strong,xV.Elastic,xV.Back,xV.SteppedEase,xV.Bounce,xV.Sine,xV.Expo,xV.Circ;var SF,SB,SV,S$,SW,SU,Sz,SH={},SG=180/Math.PI,SK=Math.PI/180,SY=Math.atan2,SZ=/([A-Z])/g,Sq=/(left|right|width|margin|padding|x)/i,SX=/[\s,\(]\S/,SQ={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},SJ=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},S0=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},S1=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},S2=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},S3=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},S4=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},S5=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},S6=function(e,t,r){return e.style[t]=r},S8=function(e,t,r){return e.style.setProperty(t,r)},S9=function(e,t,r){return e._gsap[t]=r},S7=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Ee=function(e,t,r,n,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},Et=function(e,t,r,n,i){var a=e._gsap;a[t]=r,a.renderTransform(i,a)},Er="transform",En=Er+"Origin",Ei=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in SH&&a){if(this.tfm=this.tfm||{},"transform"===t)return SQ.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=SQ[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=ES(i,e)}):this.tfm[t]=o.x?o[t]:ES(i,t),t===En&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Er)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(En,r,"")),t=Er}(a||r)&&this.props.push(t,r,a[t])},Ea=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Eo=function(){var e,t,r=this.props,n=this.target,i=n.style,a=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(SZ,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=SU())&&e.isStart||i[Er]||(Ea(i),a.zOrigin&&i[En]&&(i[En]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},Es=function(e,t){var r={target:e,props:[],revert:Eo,save:Ei};return e._gsap||SL.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},El=function(e,t){var r=SF.createElementNS?SF.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):SF.createElement(e);return r&&r.style?r:SF.createElement(e)},Eu=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(SZ,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,Ed(r)||r,1)||""},Ec="O,Moz,ms,Ms,Webkit".split(","),Ed=function(e,t,r){var n=(t||S$).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Ec[i]+e in n););return i<0?null:(3===i?"ms":i>=0?Ec[i]:"")+e},Ef=function(){"u">typeof window&&window.document&&(SB=(SF=window.document).documentElement,S$=El("div")||{style:{}},El("div"),En=(Er=Ed(Er))+"Origin",S$.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Sz=!!Ed("perspective"),SU=SL.core.reverting,SV=1)},Ep=function(e){var t,r=e.ownerSVGElement,n=El("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",n.appendChild(i),SB.appendChild(n);try{t=i.getBBox()}catch(e){}return n.removeChild(i),SB.removeChild(n),t},Eh=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Em=function(e){var t,r;try{t=e.getBBox()}catch(n){t=Ep(e),r=1}return t&&(t.width||t.height)||r||(t=Ep(e)),!t||t.width||t.x||t.y?t:{x:+Eh(e,["x","cx","x1"])||0,y:+Eh(e,["y","cy","y1"])||0,width:0,height:0}},Ey=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Em(e))},Eg=function(e,t){if(t){var r,n=e.style;t in SH&&t!==En&&(t=Er),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(SZ,"-$1").toLowerCase())):n.removeAttribute(t)}},Ev=function(e,t,r,n,i,a){var o=new SS(e._pt,t,r,0,1,a?S5:S4);return e._pt=o,o.b=n,o.e=i,e._props.push(r),o},Eb={deg:1,rad:1,turn:1},Ew={grid:1,flex:1},Ex=function e(t,r,n,i){var a,o,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=S$.style,f=Sq.test(r),p="svg"===t.tagName.toLowerCase(),h=(p?"client":"offset")+(f?"Width":"Height"),m="px"===i,y="%"===i;if(i===c||!u||Eb[i]||Eb[c])return u;if("px"===c||m||(u=e(t,r,n,"px")),l=t.getCTM&&Ey(t),(y||"%"===c)&&(SH[r]||~r.indexOf("adius")))return a=l?t.getBBox()[f?"width":"height"]:t[h],wN(y?u/a*100:u/100*a);if(d[f?"width":"height"]=100+(m?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==SF&&o.appendChild||(o=SF.body),(s=o._gsap)&&y&&s.width&&f&&s.time===xF.time&&!s.uncache)return wN(u/s.width*100);if(y&&("height"===r||"width"===r)){var g=t.style[r];t.style[r]=100+i,a=t[h],g?t.style[r]=g:Eg(t,r)}else(y||"%"===c)&&!Ew[Eu(o,"display")]&&(d.position=Eu(t,"position")),o===t&&(d.position="static"),o.appendChild(S$),a=S$[h],o.removeChild(S$),d.position="absolute";return f&&y&&((s=wR(o)).time=xF.time,s.width=o[h]),wN(m?a*u/100:a&&u?100/a*u:0)},ES=function(e,t,r,n){var i;return SV||Ef(),t in SQ&&"transform"!==t&&~(t=SQ[t]).indexOf(",")&&(t=t.split(",")[0]),SH[t]&&"transform"!==t?(i=EM(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:EN(Eu(e,En))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Ej[t]&&Ej[t](e,t,r)||Eu(e,t)||wI(e,t)||+("opacity"===t)),r&&!~(i+"").trim().indexOf(" ")?Ex(e,t,i,r)+r:i},EE=function(e,t,r,n){if(!r||"none"===r){var i=Ed(t,e,1),a=i&&Eu(e,i,1);a&&a!==r?(t=i,r=a):"borderColor"===t&&(r=Eu(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,h,m,y,g=new SS(this._pt,e.style,t,0,1,Sy),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=Eu(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=Eu(e,t)||n,d?e.style[t]=d:Eg(e,t)),x_(o=[r,n]),r=o[0],n=o[1],l=r.match(wl)||[],(n.match(wl)||[]).length){for(;s=wl.exec(n);)f=s[0],h=n.substring(v,s.index),c?c=(c+1)%5:("rgba("===h.substr(-5)||"hsla("===h.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=w_(u,f)+y),p=parseFloat(f),m=f.substr((p+"").length),v=wl.lastIndex-m.length,m||(m=m||bq.units[t]||y,v===n.length&&(n+=m,g.e+=m)),y!==m&&(u=Ex(e,t,d,m)||0),g._pt={_next:g._pt,p:h||1===b?h:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===t&&"none"===n?S5:S4;return wc.test(n)&&(g.e=0),this._pt=g,g},ED={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},EO=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=ED[r]||r,t[1]=ED[n]||n,t.join(" ")},EP=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)SH[r=s[i]]&&(n=1,r="transformOrigin"===r?En:Er),Eg(a,r);n&&(Eg(a,Er),l&&(l.svg&&a.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",EM(a,1),l.uncache=1,Ea(o)))}},Ej={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var a=e._pt=new SS(e._pt,t,r,0,0,EP);return a.u=n,a.pr=-10,a.tween=i,e._props.push(r),1}}},Ek=[1,0,0,1,0,0],EC={},ET=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},EA=function(e){var t=Eu(e,Er);return ET(t)?Ek:t.substr(7).match(ws).map(wN)},ER=function(e,t){var r,n,i,a,o=e._gsap||wR(e),s=e.style,l=EA(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ek:l:(l!==Ek||e.offsetParent||e===SB||o.svg||(i=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,n=e.nextElementSibling,SB.appendChild(e)),l=EA(e),i?s.display=i:Eg(e,"display"),a&&(n?r.insertBefore(e,n):r?r.appendChild(e):SB.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},EI=function(e,t,r,n,i,a){var o,s,l,u,c=e._gsap,d=i||ER(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,h=c.xOffset||0,m=c.yOffset||0,y=d[0],g=d[1],v=d[2],b=d[3],w=d[4],x=d[5],S=t.split(" "),E=parseFloat(S[0])||0,D=parseFloat(S[1])||0;r?d!==Ek&&(s=y*b-g*v)&&(l=b/s*E+-v/s*D+(v*x-b*w)/s,u=-g/s*E+y/s*D-(y*x-g*w)/s,E=l,D=u):(E=(o=Em(e)).x+(~S[0].indexOf("%")?E/100*o.width:E),D=o.y+(~(S[1]||S[0]).indexOf("%")?D/100*o.height:D)),n||!1!==n&&c.smooth?(c.xOffset=h+((w=E-f)*y+(x=D-p)*v)-w,c.yOffset=m+(w*g+x*b)-x):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=D,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[En]="0px 0px",a&&(Ev(a,c,"xOrigin",f,E),Ev(a,c,"yOrigin",p,D),Ev(a,c,"xOffset",h,c.xOffset),Ev(a,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+D)},EM=function(e,t){var r=e._gsap||new xQ(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A,R,I,M,N=e.style,L=r.scaleX<0,_=getComputedStyle(e),F=Eu(e,En)||"0";return n=i=a=l=u=c=d=f=p=0,o=s=1,r.svg=!!(e.getCTM&&Ey(e)),_.translate&&(("none"!==_.translate||"none"!==_.scale||"none"!==_.rotate)&&(N[Er]=("none"!==_.translate?"translate3d("+(_.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==_.rotate?"rotate("+_.rotate+") ":"")+("none"!==_.scale?"scale("+_.scale.split(" ").join(",")+") ":"")+("none"!==_[Er]?_[Er]:"")),N.scale=N.rotate=N.translate="none"),y=ER(e,r.svg),r.svg&&(r.uncache?(j=e.getBBox(),F=r.xOrigin-j.x+"px "+(r.yOrigin-j.y)+"px",P=""):P=!t&&e.getAttribute("data-svg-origin"),EI(e,P||F,!!P||r.originIsAbsolute,!1!==r.smooth,y)),h=r.xOrigin||0,m=r.yOrigin||0,y!==Ek&&(w=y[0],x=y[1],S=y[2],E=y[3],n=D=y[4],i=O=y[5],6===y.length?(o=Math.sqrt(w*w+x*x),s=Math.sqrt(E*E+S*S),l=w||x?SY(x,w)*SG:0,(d=S||E?SY(S,E)*SG+l:0)&&(s*=Math.abs(Math.cos(d*SK))),r.svg&&(n-=h-(h*w+m*S),i-=m-(h*x+m*E))):(M=y[6],R=y[7],C=y[8],T=y[9],A=y[10],I=y[11],n=y[12],i=y[13],a=y[14],u=(g=SY(M,A))*SG,g&&(P=D*(v=Math.cos(-g))+C*(b=Math.sin(-g)),j=O*v+T*b,k=M*v+A*b,C=-(D*b)+C*v,T=-(O*b)+T*v,A=-(M*b)+A*v,I=-(R*b)+I*v,D=P,O=j,M=k),c=(g=SY(-S,A))*SG,g&&(P=w*(v=Math.cos(-g))-C*(b=Math.sin(-g)),j=x*v-T*b,k=S*v-A*b,I=E*b+I*v,w=P,x=j,S=k),l=(g=SY(x,w))*SG,g&&(P=w*(v=Math.cos(g))+x*(b=Math.sin(g)),j=D*v+O*b,x=x*v-w*b,O=O*v-D*b,w=P,D=j),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=wN(Math.sqrt(w*w+x*x+S*S)),s=wN(Math.sqrt(O*O+M*M)),d=Math.abs(g=SY(D,O))>2e-4?g*SG:0,p=I?1/(I<0?-I:I):0),r.svg&&(P=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!ET(Eu(e,Er)),P&&e.setAttribute("transform",P))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=wN(o),r.scaleY=wN(s),r.rotation=wN(l)+"deg",r.rotationX=wN(u)+"deg",r.rotationY=wN(c)+"deg",r.skewX=d+"deg",r.skewY=f+"deg",r.transformPerspective=p+"px",(r.zOrigin=parseFloat(F.split(" ")[2])||!t&&r.zOrigin||0)&&(N[En]=EN(F)),r.xOffset=r.yOffset=0,r.force3D=bq.force3D,r.renderTransform=r.svg?EV:Sz?EB:E_,r.uncache=0,r},EN=function(e){return(e=e.split(" "))[0]+" "+e[1]},EL=function(e,t,r){var n=xf(t);return wN(parseFloat(t)+parseFloat(Ex(e,"x",r+"px",n)))+n},E_=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,EB(e,t)},EF="0deg",EB=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,a=r.x,o=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,p=r.scaleX,h=r.scaleY,m=r.transformPerspective,y=r.force3D,g=r.target,v=r.zOrigin,b="",w="auto"===y&&e&&1!==e||!0===y;if(v&&(c!==EF||u!==EF)){var x,S=parseFloat(u)*SK,E=Math.sin(S),D=Math.cos(S);a=EL(g,a,-(E*(x=Math.cos(S=parseFloat(c)*SK))*v)),o=EL(g,o,-(-Math.sin(S)*v)),s=EL(g,s,-(D*x*v)+v)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==EF&&(b+="rotate("+l+") "),u!==EF&&(b+="rotateY("+u+") "),c!==EF&&(b+="rotateX("+c+") "),(d!==EF||f!==EF)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==h)&&(b+="scale("+p+", "+h+") "),g.style[Er]=b||"translate(0, 0)"},EV=function(e,t){var r,n,i,a,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,h=s.skewY,m=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,E=parseFloat(c),D=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(h=parseFloat(h))&&(p+=h=parseFloat(h),f+=h),f||p?(f*=SK,p*=SK,r=Math.cos(f)*m,n=Math.sin(f)*m,i=-(Math.sin(f-p)*y),a=Math.cos(f-p)*y,p&&(h*=SK,i*=o=Math.sqrt(1+(o=Math.tan(p-h))*o),a*=o,h&&(r*=o=Math.sqrt(1+(o=Math.tan(h))*o),n*=o)),r=wN(r),n=wN(n),i=wN(i),a=wN(a)):(r=m,a=y,n=i=0),(E&&!~(c+"").indexOf("px")||D&&!~(d+"").indexOf("px"))&&(E=Ex(g,"x",c,"px"),D=Ex(g,"y",d,"px")),(v||b||w||x)&&(E=wN(E+v-(v*r+b*i)+w),D=wN(D+b-(v*n+b*a)+x)),(l||u)&&(E=wN(E+l/100*(o=g.getBBox()).width),D=wN(D+u/100*o.height)),o="matrix("+r+","+n+","+i+","+a+","+E+","+D+")",g.setAttribute("transform",o),S&&(g.style[Er]=o)},E$=function(e,t,r,n,i){var a,o,s=b4(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?SG:1)-n,u=n+l+"deg";return s&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new SS(e._pt,t,r,n,l,S0),o.e=u,o.u="deg",e._props.push(r),o},EW=function(e,t){for(var r in t)e[r]=t[r];return e},EU=function(e,t,r){var n,i,a,o,s,l,u,c=EW({},r._gsap),d=r.style;for(i in c.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),d[Er]=t,n=EM(r,1),Eg(r,Er),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Er],d[Er]=t,n=EM(r,1),d[Er]=a),SH)(a=c[i])!==(o=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(s=xf(a)!==(u=xf(o))?Ex(r,i,a,u):parseFloat(a),l=parseFloat(o),e._pt=new SS(e._pt,n,i,s,l-s,SJ),e._pt.u=u||0,e._props.push(i));EW(n,c)};wM("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",i="Left",a=(t<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return t<2?e+r:"border"+r+e});Ej[t>1?"border"+e:e]=function(e,t,r,n,i){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return ES(e,t,r)})).join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,i)}});var Ez={name:"css",register:Ef,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S=this._props,E=e.style,D=r.vars.startAt;for(d in SV||Ef(),this.styles=this.styles||Es(e),w=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(o=t[d],!(wP[d]&&Se(d,t,r,n,e,i)))){if(u=void 0===o?"undefined":S_(o),c=Ej[d],"function"===u&&(u=void 0===(o=o.call(r,n,e,i))?"undefined":S_(o)),"string"===u&&~o.indexOf("random(")&&(o=xE(o)),c)c(this,e,d,o,r)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",xN.lastIndex=0,!xN.test(a)&&(f=xf(a),(p=xf(o))?f!==p&&(a=Ex(e,d,a,p)+p):f&&(o+=f)),this.add(E,"setProperty",a,o,n,i,0,0,d),S.push(d),w.push(d,0,E[d]);else if("undefined"!==u){if(D&&d in D?(b4(a="function"==typeof D[d]?D[d].call(r,n,e,i):D[d])&&~a.indexOf("random(")&&(a=xE(a)),xf(a+"")||"auto"===a||(a+=bq.units[d]||xf(ES(e,d))||""),"="===(a+"").charAt(1)&&(a=ES(e,d))):a=ES(e,d),l=parseFloat(a),(h="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in SQ&&("autoAlpha"===d&&(1===l&&"hidden"===ES(e,"visibility")&&s&&(l=0),w.push("visibility",0,E.visibility),Ev(this,E,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=SQ[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in SH){if(this.styles.save(d),x=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=Eu(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=o,o=Eu(e,"perspective"),O?e.style.perspective=O:Eg(e,"perspective")}s=parseFloat(o)}if(y||((g=e._gsap).renderTransform&&!t.parseTransform||EM(e,t.parseTransform),v=!1!==t.smoothOrigin&&g.smooth,(y=this._pt=new SS(this._pt,E,Er,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new SS(this._pt,g,"scaleY",g.scaleY,(h?w_(g.scaleY,h+s):s)-g.scaleY||0,SJ),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(En,0,E[En]),o=EO(o),g.svg?EI(e,o,0,v,0,this):((p=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&Ev(this,g,"zOrigin",g.zOrigin,p),Ev(this,E,d,EN(a),EN(o)));continue}else if("svgOrigin"===d){EI(e,o,1,v,0,this);continue}else if(d in EC){E$(this,g,d,l,h?w_(l,h+o):o);continue}else if("smoothOrigin"===d){Ev(this,g,"smooth",g.smooth,o);continue}else if("force3D"===d){g[d]=o;continue}else if("transform"===d){EU(this,o,e);continue}}else d in E||(d=Ed(d)||d);if(m||(s||0===s)&&(l||0===l)&&!SX.test(o)&&d in E)f=(a+"").substr((l+"").length),s||(s=0),p=xf(o)||(d in bq.units?bq.units[d]:f),f!==p&&(l=Ex(e,d,a,p)),this._pt=new SS(this._pt,m?g:E,d,l,(h?w_(l,h+s):s)-l,!m&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?S3:SJ),this._pt.u=p||0,m&&x!==o?(this._pt.b=a,this._pt.e=x,this._pt.r=S2):f!==p&&"%"!==p&&(this._pt.b=a,this._pt.r=S1);else if(d in E)EE.call(this,e,d,a,h?h+o:o);else if(d in e)this.add(e,d,a||e[d],h?h+o:o,n,i);else if("parseTransform"!==d){wy(d,o);continue}m||(d in E?w.push(d,0,E[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,a||e[d])),S.push(d)}}b&&Sx(this)},render:function(e,t){if(t.tween._time||!SU())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:ES,aliases:SQ,getSetter:function(e,t,r){var n=SQ[t];return n&&0>n.indexOf(",")&&(t=n),t in SH&&t!==En&&(e._gsap.x||ES(e,"x"))?r&&SW===r?"scale"===t?S7:S9:(SW=r||{},"scale"===t?Ee:Et):e.style&&!b8(e.style[t])?S6:~t.indexOf("-")?S8:Sp(e,t)},core:{_removeProperty:Eg,_getMatrix:ER}};SL.utils.checkPrefix=Ed,SL.core.getStyleSaver=Es,O6=wM("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(O5="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){SH[e]=1}),wM(O5,function(e){bq.units[e]="deg",EC[e]=1}),SQ[O6[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+O5,wM("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");SQ[t[1]]=O6[t[0]]}),wM("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){bq.units[e]="px"}),SL.registerPlugin(Ez);var EH=SL.registerPlugin(Ez)||SL;function EG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function EK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EY(e){return function(e){if(Array.isArray(e))return EG(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return EG(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EG(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}EH.core.Tween;var EZ=function(e){var t=e.isOpen,r=e.onClose,n=e.position,i=void 0===n?"right":n,a=e.colors,o=e.items,s=e.socialItems,l=e.displaySocials,u=e.displayItemNumbering,c=e.accentColor,d=e.closeOnClickAway,f=void 0===d||d,p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=(0,m.useRef)([]),b=(0,m.useRef)(null),w=(0,m.useRef)(null),x=(0,m.useRef)(null),S=(0,m.useRef)(!1),E=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=EH.context(function(){var e=p.current,t=g.current;if(e){var r=[];t&&(r=Array.from(t.querySelectorAll(".sm-prelayer"))),v.current=r;var n="left"===i?-100:100;EH.set([e].concat(EY(r)),{xPercent:n,opacity:1}),t&&EH.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[i]);var D=(0,m.useCallback)(function(){var e=p.current,t=v.current;if(!e)return null;null==(d=b.current)||d.kill(),w.current&&(w.current.kill(),w.current=null),null==(f=x.current)||f.kill();var r=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),n=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),a=e.querySelector(".sm-socials-title"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s="left"===i?-100:100,l=t.map(function(e){return{el:e,start:s}});r.length&&EH.set(r,{yPercent:140,rotate:10}),n.length&&EH.set(n,EK({},"--sm-num-opacity",0)),a&&EH.set(a,{opacity:0}),o.length&&EH.set(o,{y:25,opacity:0});var u=EH.timeline({paused:!0});l.forEach(function(e,t){u.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var c=(l.length?(l.length-1)*.07:0)+.08*!!l.length;if(u.fromTo(e,{xPercent:s},{xPercent:0,duration:.65,ease:"power4.out"},c),r.length){var d,f,h,m=c+.0975;u.to(r,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},m),n.length&&u.to(n,(EK(h={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),EK(h,"stagger",{each:.08,from:"start"}),h),m+.1)}if(a||o.length){var y=c+.26;a&&u.to(a,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&u.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){EH.set(o,{clearProps:"opacity"})}},y+.04)}return b.current=u,u},[i]),O=(0,m.useCallback)(function(){if(!S.current){S.current=!0;var e=D();e?(e.eventCallback("onComplete",function(){S.current=!1}),e.play(0)):S.current=!1}},[D]),P=(0,m.useCallback)(function(){null==(e=b.current)||e.kill(),b.current=null,null==(t=x.current)||t.kill();var e,t,r,n=p.current,a=v.current;if(n){var o=EY(a).concat([n]);null==(r=w.current)||r.kill();var s="left"===i?-100:100;w.current=EH.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(n.querySelectorAll(".sm-panel-itemLabel"));e.length&&EH.set(e,{yPercent:140,rotate:10});var t=Array.from(n.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&EH.set(t,EK({},"--sm-num-opacity",0));var r=n.querySelector(".sm-socials-title"),i=Array.from(n.querySelectorAll(".sm-socials-link"));r&&EH.set(r,{opacity:0}),i.length&&EH.set(i,{y:25,opacity:0}),S.current=!1}})}},[i]);y().useEffect(function(){t!==E.current&&(E.current=t,t?O():P())},[t,O,P]),y().useEffect(function(){if(f&&t){var e=function(e){p.current&&!p.current.contains(e.target)&&(null==r||r())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f,t,r]);var j=a&&a.length?a.slice(0,4):[];if(j.length>=3){var k=Math.floor(j.length/2);j.splice(k,1)}var C=null!=o?o:[],T=null!=s?s:[];return(0,h.jsxs)("div",{className:"sm-scope",style:c?EK({},"--sm-accent",c):void 0,"data-position":i,children:[(0,h.jsx)("div",{ref:g,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:j.map(function(e,t){return(0,h.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,h.jsx)("aside",{id:"staggered-menu-panel",ref:p,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!t,children:(0,h.jsxs)("div",{className:"sm-panel-inner",children:[C.length>0&&(0,h.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===u||u||void 0,children:C.map(function(e,t){return(0,h.jsx)("li",{className:"sm-panel-itemWrap",children:(0,h.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,h.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(void 0===l||l)&&T.length>0&&(0,h.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,h.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,h.jsx)("ul",{className:"sm-socials-list",role:"list",children:T.map(function(e,t){return(0,h.jsx)("li",{className:"sm-socials-item",children:(0,h.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]})]})}),(0,h.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===i?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===i?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var EX=function(e){var t,r=e.isOpen,n=e.onToggle,i=e.menuButtonColor,a=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,l=e.className,u=(0,m.useRef)(null),c=(0,m.useRef)(null),d=(0,m.useRef)(null),f=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(["Menu","Close"]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Eq(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eq(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1],x=(0,m.useRef)(null),S=(0,m.useRef)(null),E=(0,m.useRef)(null),D=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=EH.context(function(){var e=c.current,t=d.current,r=f.current,n=p.current;e&&t&&r&&n&&(EH.set(e,{transformOrigin:"50% 50%",rotate:0}),EH.set(t,{transformOrigin:"50% 50%",rotate:90}),EH.set(r,{rotate:0,transformOrigin:"50% 50%"}),EH.set(n,{yPercent:0}),u.current&&i&&EH.set(u.current,{color:i}))});return function(){return e.revert()}},[i]),y().useEffect(function(){if(u.current)if(s){var e=D.current?a:i;e&&EH.set(u.current,{color:e})}else i&&EH.set(u.current,{color:i})},[s,i,a]);var O=(0,m.useCallback)(function(e){var t,r=f.current,n=c.current,i=d.current;r&&n&&i&&(null==(t=x.current)||t.kill(),e?(EH.set(r,{rotate:0,transformOrigin:"50% 50%"}),x.current=EH.timeline({defaults:{ease:"power4.out"}}).to(n,{rotate:45,duration:.5},0).to(i,{rotate:-45,duration:.5},0)):x.current=EH.timeline({defaults:{ease:"power3.inOut"}}).to(n,{rotate:0,duration:.35},0).to(i,{rotate:90,duration:.35},0).to(r,{rotate:0,duration:.001},0))},[]),P=(0,m.useCallback)(function(e){var t,r=u.current;if(r)if(null==(t=E.current)||t.kill(),s){var n=e?a:i;n&&(E.current=EH.to(r,{color:n,delay:.18,duration:.3,ease:"power2.out"}))}else i&&EH.set(r,{color:i})},[a,i,s]),j=(0,m.useCallback)(function(e){var t,r=p.current;if(r){null==(t=S.current)||t.kill();for(var n=e?"Menu":"Close",i=e?"Close":"Menu",a=[n],o=n,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",a.push(o);o!==i&&a.push(i),a.push(i),w(a),EH.set(r,{yPercent:0});var l=a.length;S.current=EH.to(r,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return y().useEffect(function(){r!==D.current&&(D.current=r,O(r),P(r),j(r))},[r,O,P,j]),(0,h.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":r?"Close menu":"Open menu","aria-expanded":r,"aria-controls":"staggered-menu-panel",onClick:n,type:"button",children:[(0,h.jsx)("span",{ref:g,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,h.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:b.map(function(e,t){return(0,h.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,h.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,h.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,h.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,h.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function EQ(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class EJ extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(hM(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=hM(e)&&e.offsetWidth||0,n=hM(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left,a.bottom=n-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function E0({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),l=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,m.useContext)(dg),c=function(...e){return m.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=EQ(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():EQ(e[t],null)}}}}(...e),e)}(s,!1!==a?e.props?.ref??e?.ref:void 0);return(0,m.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:h,direction:m}=l.current;if(t||!1===a||!s.current||!e||!c)return;let y="rtl"===m,g="left"===r?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,v="bottom"===n?`bottom: ${h}`:`top: ${d}`;s.current.dataset.motionPopId=o;let b=document.createElement("style");u&&(b.nonce=u);let w=i??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
13
13
  [data-motion-pop-id="${o}"] {
14
14
  position: absolute !important;
15
15
  width: ${e}px !important;
@@ -17,4 +17,4 @@
17
17
  ${g}px !important;
18
18
  ${v}px !important;
19
19
  }
20
- `),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,h.jsx)(EJ,{isPresent:t,childRef:s,sizeRef:l,pop:a,children:!1===a?e:m.cloneElement(e,{ref:c})})}let E1=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dk(E2),d=(0,m.useId)(),f=(0,m.useRef)(r),p=(0,m.useRef)(n);dB(()=>{f.current=r,p.current=n});let y=!0,g=(0,m.useMemo)(()=>(y=!1,{id:d,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[r,c,n]);return a&&y&&(g={...g}),(0,m.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),m.useEffect(()=>{r||c.size||!n||n()},[r]),e=(0,h.jsx)(E0,{pop:"popLayout"===o,isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,h.jsx)(dj.Provider,{value:g,children:e})};function E2(){return new Map}let E3=e=>e.key||"";function E4(e){let t=[];return m.Children.forEach(e,e=>{(0,m.isValidElement)(e)&&t.push(e)}),t}let E5=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=pL(o),f=(0,m.useMemo)(()=>E4(e),[e]),p=o&&!c?[]:f.map(E3),y=(0,m.useRef)(!0),g=(0,m.useRef)(f),v=dk(()=>new Map),b=(0,m.useRef)(new Set),[w,x]=(0,m.useState)(f),[S,E]=(0,m.useState)(f);dB(()=>{y.current=!1,g.current=f;for(let e=0;e<S.length;e++){let t=E3(S[e]);p.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[S,p.length,p.join("-")]);let D=[];if(f!==w){let e=[...f];for(let t=0;t<S.length;t++){let r=S[t],n=E3(r);p.includes(n)||(e.splice(t,0,r),D.push(r))}return"wait"===a&&D.length&&(e=D),E(E4(e)),x(f),null}let{forceRender:O}=(0,m.useContext)(dm);return(0,h.jsx)(h.Fragment,{children:S.map(e=>{let m=E3(e),w=(!o||!!c)&&(f===S||p.includes(m));return(0,h.jsx)(E1,{isPresent:w,initial:(!y.current||!!r)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:w?void 0:()=>{if(b.current.has(m)||!v.has(m))return;b.current.add(m),v.set(m,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(O?.(),E(g.current),o&&d?.(),n&&n())},anchorX:s,anchorY:l,children:e},m)})})},E6={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function E8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var E9=function(e){var t,r=e.columnItems,n=e.columnIndex,i=e.activeItems,a=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return E8(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E8(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,m.useMemo)(function(){if(!c.trim())return r;var e=c.trim().toLowerCase();return r.filter(function(t){return t.label.toLowerCase().includes(e)})},[r,c]);return(0,h.jsxs)(hK.div,{className:E6.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[a&&(0,h.jsxs)("div",{className:E6.columnSearch,children:[(0,h.jsx)(tl,{className:E6.columnSearchIcon,size:14}),(0,h.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:E6.columnSearchInput,"aria-label":o})]}),(0,h.jsxs)("ul",{className:E6.columnList,role:"list",children:[f.map(function(e){var t,r=i[n]===e.id,a=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,h.jsx)("li",{children:(0,h.jsxs)("button",{type:"button",className:E6.columnItem,"data-active":r||void 0,onMouseEnter:function(){return s(e,n)},onFocus:function(){return s(e,n)},onClick:function(){!a&&e.path&&l(e.path)},children:[o&&(0,h.jsx)(o,{className:E6.columnItemIcon,size:16}),(0,h.jsx)("span",{className:E6.columnItemLabel,children:e.label}),a&&(0,h.jsx)(eE,{className:E6.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,h.jsx)("li",{className:E6.columnEmpty,children:"—"})]})]})};function E7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||Dn(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(e){return function(e){if(Array.isArray(e))return E7(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dn(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){if(e){if("string"==typeof e)return E7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E7(e,t)}}var Di=function(e){var t,r,n=e.items,i=e.triggerLabel,a=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,y=Dt((0,m.useState)(!1),2),g=y[0],b=y[1],w=Dt((0,m.useState)([n]),2),x=w[0],S=w[1],E=Dt((0,m.useState)([]),2),D=E[0],O=E[1],P=Dt((0,m.useState)(null),2),j=P[0],k=P[1],C=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){g||(S([n]),O([]))},[n,g]),(0,m.useLayoutEffect)(function(){if(g&&C.current){var e=C.current.getBoundingClientRect();k("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[g,s]);var T=function(e,t){var r,n=Dr(D);n[t]=e.id,(null==(r=e.children)?void 0:r.length)?S(Dr(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),O(n)},A=function(e){b(!1),null==f||f(e)};return(0,h.jsxs)("div",{className:v()(E6.wrapper,p),children:[(0,h.jsxs)("button",{ref:C,type:"button",className:E6.trigger,onClick:function(){return b(function(e){return!e})},"aria-haspopup":"true","aria-expanded":g,children:[a&&(0,h.jsx)(a,{className:E6.triggerIcon,size:16}),(0,h.jsx)("span",{children:void 0===i?"Navigation":i}),(0,h.jsx)(ex,{className:v()(E6.triggerChevron,(De(t={},E6["triggerChevron--open"],g),De(t,E6["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,h.jsx)(E5,{children:g&&j&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:E6.overlay,onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsx)(hK.div,{className:v()(E6.panel,E6["panel--".concat(s)]),style:(De(r={left:j.left,top:j.top,bottom:j.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),De(r,"--cnd-column-width","16rem"),r),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,h.jsx)("div",{className:E6.panelInner,children:(0,h.jsx)(E5,{mode:"sync",children:x.map(function(e,t){return(0,h.jsx)(E9,{columnItems:e,columnIndex:t,activeItems:D,searchable:u,searchPlaceholder:d,onHover:T,onNavigate:A},t)})})})})]})})]})},Da=(0,m.createContext)(null),Do=function(){var e=(0,m.useContext)(Da);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dl=function(e){var t,r=e.children,n=e.open,i=e.onOpenChange,a=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null!=a&&a))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Ds(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ds(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==n,y=p?n:d,g=(0,m.useCallback)(function(e){null==i||i(e),p||f(e)},[i,p]);return(0,h.jsx)(Da.Provider,{value:{isOpen:y,onOpenChange:g,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:r})};function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dc=function(e){var t,r=e.children,n=e.container,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Du(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Du(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1];if((0,m.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=i?(0,h.jsx)("div",{className:i,children:r}):r;return(0,nk.createPortal)(l,n||document.body)};let Dd={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function Df(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dp(e){if(Array.isArray(e))return e}function Dh(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dm(e,t){if(e){if("string"==typeof e)return Df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Df(e,t)}}var Dy=(0,m.forwardRef)(function(e,t){var r,n=Dp(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Dm(r)||Dh(),i=n[0],a=n.slice(1),o=i.className,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["className"]),l=(Dp(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||Dm(a,1)||Dh())[0],u=Do(),c=u.isOpen,d=u.onOpenChange,f=(0,m.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,h.jsx)(hK.div,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:v()(Dd.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function Dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Dv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}Dy.displayName="SheetOverlay";var Db=function(e){var t=e.asChild,r=e.children,n=e.className,i=Do().onOpenChange,a=function(){return i(!0)};return t&&y().isValidElement(r)?y().cloneElement(r,Dv(Dg({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(Dd.triggerReset,n),children:r})},Dw=function(e){var t=e.asChild,r=e.children,n=e.className,i=Do().onOpenChange,a=function(){return i(!1)};return t&&y().isValidElement(r)?y().cloneElement(r,Dv(Dg({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(Dd.triggerReset,n),children:r})};function Dx(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&dG(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{Dx(e,t)})})}function DS(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){uw(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push(fZ(e,r,{transitionOverride:n}))}),Promise.all(i)},set:r=>(uw(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?Dx(t,n):"string"==typeof n?Dx(t,[n]):dG(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}let DE=function(){let e=dk(DS);return dB(e.mount,[]),e};function DD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var DO=function(e){var t,r=e.children,n=e.className,i=Do(),a=i.isOpen,o=i.onOpenChange,s=i.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=DE(),f=(0,m.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return DD(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return DD(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],b="top"===c?-1:1,w=(0,m.useCallback)(function(){return o(!1)},[o]),x=(0,m.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,r=window.innerWidth;return e=r<=640?.6*t:r<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,m.useEffect)(function(){var e=function(){return g(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,m.useEffect)(function(){return a?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:b*(y+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[a,d,y,b]),(0,m.useEffect)(function(){var e=function(e){"Escape"===e.key&&a&&w()};return a&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[a,w]);var S=(0,m.useCallback)(function(e,t){var r=b*t.offset.y>y*u,n=b*t.velocity.y>800;r||n?w():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,w,u,y,b]),E=(0,m.useCallback)(function(e){e.target===f.current&&w()},[w]);if(0===y)return null;var D="top"===c?{top:-y,bottom:0}:{top:0,bottom:y};return(0,h.jsx)(Dc,{children:(0,h.jsxs)("div",{className:v()(Dd.container,!a&&Dd["container--closed"]),children:[(0,h.jsx)(hK.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!a},transition:{duration:.2,ease:"easeOut"},onClick:E,className:Dd.overlay,style:{pointerEvents:a?"auto":"none"}}),(0,h.jsxs)(hK.div,{drag:"y",dragConstraints:D,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:b*(y+50)},className:v()(Dd.panel,Dd["panel--".concat(c)],void 0===n?"":n),style:{height:y},children:["bottom"===c&&(0,h.jsx)("div",{className:Dd.handleRow,children:(0,h.jsx)("div",{className:Dd.handle})}),(0,h.jsx)("div",{className:Dd.body,children:(0,h.jsx)("div",{className:Dd.scrollArea,children:r})}),"top"===c&&(0,h.jsx)("div",{className:Dd.handleRow,children:(0,h.jsx)("div",{className:Dd.handle})})]})]})})},DP=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(Dd.header,r),children:t})},Dj=function(e){var t=e.children,r=e.className;return(0,h.jsx)("h3",{className:v()(Dd.title,r),children:t})},Dk=function(e){var t=e.children,r=e.className;return(0,h.jsx)("p",{className:v()(Dd.description,r),children:t})},DC=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(Dd.footer,r),children:t})},DT=Dl;function DA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var DM=function(e){var t=e.items,r=e.title,n=e.hint,i=void 0===n?"Glisser une carte vers le bas pour fermer":n,a=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,y=e.accentColor,g=DI((0,m.useState)(void 0!==o&&o),2),b=g[0],w=g[1],x=DI((0,m.useState)(!1),2),S=x[0],E=x[1],D=void 0!==a,O=D?a:b,P=function(e){null==s||s(e),D||w(e)},j=function(e,t){t.offset.y>100&&O&&(P(!1),E(!1))},k=(t.length-1)/2,C=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){DR(e,t,r[t])})}return e}({},y?DR({},"--fg-accent",y):void 0,u);return(0,h.jsx)("div",{className:v()("mf1PQJZJIkTcC6ieajp06g==",l),style:C,children:(0,h.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,h.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,h.jsxs)(hK.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,h.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,h.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,h.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,h.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var r=t-k,n=1-.03*Math.abs(r);return(0,h.jsx)(hK.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:j,className:v()("x+8qV1iWMRfwOVcjmG22XA==",DR({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*r,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*r-40:-5*r,x:S?30*r:3*r,rotate:S?8*r:3*r,scale:n,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,h.jsx)(hK.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:S?-25:0,y:10*!!S,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return E(!0)},onMouseLeave:function(){return E(!1)},onClick:function(){return P(!0)},children:(0,h.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,h.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,h.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,h.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===r?"Dossier":r})})]})})]}),i&&(0,h.jsx)(hK.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:i})]})})};function DN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DN(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DF(e){var t=e.items,r=e.className,n=e.style,i=D_((0,m.useState)(null),2),a=i[0],o=i[1],s=D_((0,m.useState)(null),2),l=s[0],u=s[1],c=function(e){u(a),o(e)},d=function(){u(a),o(null)};return(0,m.useEffect)(function(){if(a){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[a]),(0,h.jsxs)("div",{className:v()("cwEvWWvWR1VRjUW5EIdhaA==",r),style:n,children:[t.map(function(e){var t,r=(null==a?void 0:a.id)===e.id,n=!r&&(null==l?void 0:l.id)===e.id;return(0,h.jsx)("div",{className:e.className,children:(0,h.jsxs)(hK.div,{role:"button",tabIndex:0,"aria-pressed":r,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:v()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(DL(t={},"wpWM12DNjfwunfLOmmaBnQ==",r),DL(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!r),DL(t,"_1zQI0+1IAUASZtCPebAKvg==",n),t)),layoutId:"layout-grid-card-".concat(e.id),children:[r&&(0,h.jsx)(DV,{item:a}),(0,h.jsx)(DB,{item:e})]})},e.id)}),(0,h.jsx)(hK.div,{onClick:d,className:v()("SfuCW8U7MUzYHVthm3806Q==",DL({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==a?void 0:a.id))),animate:{opacity:+(null!=a&&!!a.id)},"aria-hidden":"true"})]})}function DB(e){var t=e.item;return(0,h.jsx)(hK.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function DV(e){var t=e.item;return(0,h.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,h.jsx)(hK.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,h.jsx)(hK.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let D$="VL60poBQJU5GXBc55DtOgg==",DW="Z-QYx9GU0-9PvqywVAWDOw==",DU="k5GwrlmSGQEXCHiD9NJSgg==",Dz="Sd+oehXhY2IvCEPY7LquSQ==",DH="_2TUXiGgesFw6MMltbcDw7g==",DG="aaY-ypFw8QYOvR34L1Ad3g==",DK="_0FXGSaE3Vf6Xfst6Bn-1XQ==",DY="J+6pxxgImJiBa+5uolSRLA==",DZ="-cMLmEDNbTRZO+q9J5EnZQ==",Dq="pNL9YXjomLOkN1Sc1NOXsw==",DX="YY-ar9Letsk0I16pNK2koQ==";var DQ=function(){return(0,h.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,h.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function DJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DJ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D2=function(e){var t=e.title,r=e.coverImageUrl,n=e.category,i=e.itemCountLabel,a=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=D1((0,m.useState)(!1),2),f=d[0],p=d[1],y=D1((0,m.useState)(null),2),g=y[0],b=y[1],w=D1((0,m.useState)(null),2),x=w[0],S=w[1],E=D1((0,m.useState)(0),2),D=E[0],O=E[1],P=D1((0,m.useState)("translateY(0px)"),2),j=P[0],k=P[1],C=(0,m.useRef)(null),T=(0,m.useRef)(new Map),A=null!==g,R=f||A;(0,m.useEffect)(function(){if(null!==g){var e=function(){var e=T.current.get(g);e&&C.current&&O(e.getBoundingClientRect().top-C.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[g]);var I=function(e){if(e.detail){var t=T.current.get(e.id);if(t&&C.current){var r=window.innerHeight-t.getBoundingClientRect().bottom+C.current.offsetTop-390;k("translateY(".concat(r,"px)"))}b(e.id),S(e)}};return(0,h.jsx)("div",{className:v()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,h.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,h.jsxs)("div",{ref:C,className:v()("_09AECjHCq6I9nuofSaItrA==",D0({},"GyoWR7DyKiD7EWOqlosJAg==",R)),children:[(0,h.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,h.jsxs)("div",{className:D$,children:[(0,h.jsx)("img",{className:DW,src:r,alt:""}),(0,h.jsx)("img",{className:v()(DW,DU),src:r,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,h.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,h.jsx)("h1",{className:Dz,children:t}),(0,h.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[n&&(0,h.jsx)("p",{className:DH,children:n}),n&&i&&(0,h.jsx)("div",{className:DK}),i&&(0,h.jsx)("p",{className:DH,children:i}),i&&a&&(0,h.jsx)("div",{className:DK}),a&&(0,h.jsx)("p",{className:DH,children:a})]})]}),(0,h.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,h.jsxs)("div",{ref:(t=e.id,function(e){e?T.current.set(t,e):T.current.delete(t)}),className:DY,onClick:function(){return I(e)},children:[(0,h.jsx)("p",{className:DG,children:e.title}),(0,h.jsxs)("div",{className:DZ,children:[(0,h.jsx)("button",{type:"button",className:Dq,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,h.jsx)(e5,{size:20})}),e.meta&&(0,h.jsx)("p",{className:DH,children:e.meta})]})]},e.id)})})]})]}),x&&(0,h.jsxs)("div",{className:v()("T5TjonuT8CpL6L9LnfYUbg==",D0({},"Yw84bwYkOFxUPSl8uIlHYA==",A)),style:{top:"".concat(D,"px"),transform:j},children:[(0,h.jsxs)("div",{className:DY,children:[(0,h.jsx)("p",{className:DG,children:x.title}),(0,h.jsxs)("div",{className:DZ,children:[(0,h.jsx)("button",{type:"button",className:Dq,onClick:function(){k("translateY(0px)"),b(null)},"aria-label":"Fermer",children:(0,h.jsx)(ei,{size:20,className:DX})}),x.meta&&(0,h.jsx)("p",{className:DH,children:x.meta})]})]}),(0,h.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,h.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,h.jsx)(DQ,{})]}),s&&(0,h.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":A?"none":void 0},children:[(0,h.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,h.jsx)(ei,{size:24,className:v()(D0({},DX,f))})}),(0,h.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,h.jsxs)("div",{className:D$,children:[(0,h.jsx)("h1",{className:Dz,children:s.name}),(0,h.jsx)("img",{className:DW,src:s.photoUrl,alt:""}),(0,h.jsx)("img",{className:v()(DW,DU),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,h.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,h.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,h.jsx)("p",{className:v()(DH,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,h.jsx)("div",{className:DK}),s.itemCountLabel&&(0,h.jsx)("p",{className:DH,children:s.itemCountLabel})]}),s.statLabel&&(0,h.jsx)("p",{className:DH,children:s.statLabel})]}),s.description&&(0,h.jsx)("p",{className:DG,children:s.description})]})]}),(0,h.jsx)(DQ,{}),(0,h.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})},D3={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},none:{initial:{},animate:{},exit:{}}};let D4={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};function D5(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D5(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D9=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},D7=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Oe=function(e){var t,r,n,i,a,o,s,l,u=e.open,c=e.defaultOpen,d=e.onOpenChange,f=e.trigger,p=e.children,y=e.showCloseButton,g=e.renderCloseButton,b=e.cardVariant,w=e.cardProps,x=e.draggable,S=void 0!==x&&x,E=e.dockable,D=void 0!==E&&E,O=e.dockIcon,P=e.dockEdgeThreshold,j=void 0===P?80:P,k=e.dockUndockDistance,C=void 0===k?120:k,T=e.dockSize,A=void 0===T?56:T,R=e.closeOnOverlayClick,I=e.closeOnEscape,N=void 0===I||I,L=e.showOverlay,_=e.lockScroll,F=void 0===_||_,B=e.animation,V=void 0===B?"scale":B,$=e.overlayAnimation,W=e.className,U=e.style,z=e.overlayClassName,H=D8((0,m.useState)(void 0!==c&&c),2),G=H[0],K=H[1],Y=D8((0,m.useState)(!1),2),Z=Y[0],q=Y[1],X=D8((0,m.useState)(null),2),Q=X[0],J=X[1],ee=(0,m.useRef)(null),et=(0,m.useId)(),er=void 0!==u,en=er?u:G,ei=(0,m.useCallback)(function(e){null==d||d(e),er||K(e)},[d,er]),ea=(0,m.useCallback)(function(){return ei(!1)},[ei]);(0,m.useEffect)(function(){return q(!0)},[]),(0,m.useEffect)(function(){en&&J(null)},[en]);var eo=(0,m.useCallback)(function(){if(D&&ee.current&&"u">typeof window){var e=ee.current.getBoundingClientRect(),t=e.left+e.width/2,r=e.top+e.height/2;if(Q)return void(Math.abs(t-("left"===Q.side?0:window.innerWidth))>C?J(null):J({side:Q.side,y:D9(r,A)}));t<=j?J({side:"left",y:D9(r,A)}):t>=window.innerWidth-j&&J({side:"right",y:D9(r,A)})}},[D,Q,j,C,A]);(0,m.useEffect)(function(){if(en&&F)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[en,F]),(0,m.useEffect)(function(){if(en&&N){var e=function(e){"Escape"===e.key&&ea()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[en,N,ea]);var es=D7(V)?V:{preset:V},el=null!=(n=es.variants)?n:D3[null!=(i=es.preset)?i:"scale"],eu={duration:null!=(a=es.duration)?a:.25,ease:null!=(o=es.ease)?o:[.16,1,.3,1]},ec={duration:null!=(s=null==$?void 0:$.duration)?s:.2,ease:null!=(l=null==$?void 0:$.ease)?l:"easeOut"},ed=(0,h.jsx)(E5,{children:en&&(0,h.jsxs)("div",{className:D4.root,children:[(void 0===L||L)&&!Q&&(0,h.jsx)(hK.div,{className:v()(D4.overlay,z),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ec,onClick:void 0===R||R?ea:void 0,"aria-hidden":"true"}),Q?(0,h.jsx)(hK.div,{ref:ee,className:v()(D4.dockBubble,D4["dockBubble--".concat(Q.side)]),style:D6({top:Q.y,width:A,height:A},Q.side,-(A/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eo,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&J(null)},children:null!=O?O:(0,h.jsx)(eQ,{size:20})}):(0,h.jsx)("div",{className:D4.centerLayer,children:(0,h.jsx)(hK.div,{ref:ee,role:"dialog","aria-modal":"true","aria-labelledby":(null==w?void 0:w.title)?et:void 0,className:v()(D4.panel,W),style:U,variants:el,initial:"initial",animate:"animate",exit:"exit",transition:eu,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:D?eo:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,h.jsxs)(M,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){D6(e,t,r[t])})}return e}({variant:void 0===b?"default":b},w),r=r={children:[(void 0===y||y)&&(g?g(ea):(0,h.jsx)("button",{type:"button",className:D4.closeButton,onClick:ea,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:18})})),p]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})})]})});return(0,h.jsxs)(h.Fragment,{children:[f&&(0,h.jsx)("span",{className:D4.triggerWrap,onClick:function(){return ei(!0)},children:f}),Z&&(0,nk.createPortal)(ed,document.body)]})},Ot=(0,m.createContext)(null);function Or(){var e=(0,m.useContext)(Ot);if(!e)throw Error("Select compound components must be used within <Select>");return e}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oi(e){var t,r=e.children,n=e.options,i=e.selectedOptionId,a=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return On(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return On(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1],g=(0,m.useRef)(null),v=void 0!==o,b=v?o:p,w=(0,m.useCallback)(function(e){null==s||s(e),v||y(e)},[s,v]),x=(0,m.useMemo)(function(){var e;return i&&null!=(e=n.find(function(e){return u(e)===i}))?e:n[0]},[n,i,u]),S=(0,m.useCallback)(function(e){null==a||a(e),w(!1)},[a,w]);return(0,h.jsx)(Ot.Provider,{value:{open:b,setOpen:w,selectedOption:x,options:n,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:g},children:r})}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Oo=function(e){var t,r=e.src,n=e.name,i=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Oa(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oa(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1];return r&&!a?(0,h.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:r,alt:"",onError:function(){return o(!0)}}):(0,h.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:n.charAt(0).toUpperCase()})};function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ol=function(e){var t,r,n=e.className,i=e.renderTrigger,a=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Or(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,h.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Os(e,t,r[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:v()("t3j-WppHuYF4Q80G8ssYTw==",n),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),r=r={children:[i?i(d,u):(0,h.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,h.jsxs)(h.Fragment,{children:[(void 0===a||a)&&(0,h.jsx)(Oo,{src:d.logo,name:f(d)}),(0,h.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,h.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,h.jsx)(ex,{className:v()("Mx+cKK19Fg1ZkYsq9XTF+Q==",Os({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Of=function(e){var t=e.className,r=e.style,n=e.renderOption,i=e.title,a=void 0===i?"Options":i,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,y=Or(),g=y.open,b=y.setOpen,w=y.options,x=y.selectedOption,S=y.onOptionSelect,E=y.getOptionId,D=y.getOptionName,O=y.triggerRef,P=Od((0,m.useState)(""),2),j=P[0],k=P[1],C=Od((0,m.useState)(null),2),T=C[0],A=C[1],R=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){if(g&&O.current){var e=O.current.getBoundingClientRect();A({top:e.bottom+8,left:e.left,width:e.width})}},[g,O]),(0,m.useLayoutEffect)(function(){if(g){var e=function(e){var t,r,n=e.target;(null==(t=R.current)?void 0:t.contains(n))||(null==(r=O.current)?void 0:r.contains(n))||b(!1)},t=function(e){"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[g,b,O]),(0,m.useLayoutEffect)(function(){null==u||u(j)},[j,u]);var I=(0,m.useMemo)(function(){if(!j.trim())return w;var e=j.trim().toLowerCase();return w.filter(function(t){return D(t).toLowerCase().includes(e)})},[w,j,D]);return(0,h.jsx)(E5,{children:g&&T&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsxs)(hK.div,{ref:R,role:"listbox",className:v()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Oc(e,t,r[t])})}return e}({top:T.top,left:T.left,minWidth:T.width},r),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[a&&(0,h.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,h.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:a})}),void 0!==o&&o&&(0,h.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,h.jsx)(tl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,h.jsx)("input",{type:"search",value:j,onChange:function(e){return k(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,h.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===I.length?(0,h.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):I.map(function(e){var t=!!(x&&E(x)===E(e));return(0,h.jsx)("button",{type:"button",role:"option","aria-selected":t,className:v()("mqfrCZDVzn25GOVXds14vw==",Oc({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:n?n(e,t):(0,h.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,h.jsx)(Oo,{src:e.logo,name:D(e)}),(0,h.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,h.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:D(e)}),"string"==typeof e.plan&&(0,h.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,h.jsx)(eb,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},E(e))})}),p&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,h.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let Op="YDxgnSM2QPGOYYICdgjq7Q==";function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Om(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||Oy(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(e,t){if(e){if("string"==typeof e)return Oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oh(e,t)}}function Og(e){var t=e.options,r=e.defaultActiveIndex,n=e.onChange,i=e.title,a=e.subtitle,o=e.className,s=e.style,l=Om((0,m.useState)(void 0===r?0:r),2),u=l[0],c=l[1],d=Om((0,m.useState)([]),2),f=d[0],p=d[1],y=function(e){e!==u&&(c(e),null==n||n(e))};return(0,m.useEffect)(function(){var e=[];return t.forEach(function(t,r){var n=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return Oh(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oy(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([r])})},180*r);e.push(n)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,h.jsxs)("div",{className:v()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(i||a)&&(0,h.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[i&&(0,h.jsx)("h1",{className:v()("TsIf8Q8vAVSLc-vC4h6-UA==",Op,"CUA6-RpM0KPkwxkPhWbpzg=="),children:i}),a&&(0,h.jsx)("p",{className:v()("GiaxLFLhrXHmZTTZjk2qqg==",Op,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:a})]}),(0,h.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,h.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var r=u===t,n=f.includes(t);return(0,h.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":r,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:r?"auto 100%":"auto 120%",opacity:+!!n,transform:n?"translateX(0)":"translateX(-60px)",borderColor:r?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:r?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:r?"7 1 0%":"1 1 0%",zIndex:r?10:1},onClick:function(){return y(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y(t))},children:[(0,h.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:r?"0":"-40px",boxShadow:r?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,h.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,h.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,h.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,h.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.title}),(0,h.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ob(e,t){if(e){if("string"==typeof e)return Ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ov(e,t)}}var Ow=function(e){var t,r=e.images,n=e.cardWidth,i=void 0===n?256:n,a=e.cardHeight,o=void 0===a?352:a,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,m.useRef)(null),f=(0,m.useRef)(!1),p=(0,m.useRef)(0),y=(0,m.useRef)(0),g=(0,m.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(function(){return Array.from({length:r.length},function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||Ob(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=b[0],x=b[1];(0,m.useEffect)(function(){x(Array.from({length:r.length},function(e,t){return t}))},[r.length]);var S=(0,m.useCallback)(function(e,t){var r,n,i=null==(n=getComputedStyle(t||document.documentElement))||null==(r=n.getPropertyValue(e))?void 0:r.trim();return i?i.endsWith("ms")?parseFloat(i):i.endsWith("s")?1e3*parseFloat(i):parseFloat(i)||0:0},[]),E=(0,m.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),D=(0,m.useCallback)(function(){return E()[0]||null},[E]),O=(0,m.useCallback)(function(){E().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[E]),P=(0,m.useCallback)(function(e){var t=D();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[D]),j=(0,m.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,y.current=e;var t=D();t&&(t.style.transition="none")}},[D]),k=(0,m.useCallback)(function(){if(f.current){g.current&&(cancelAnimationFrame(g.current),g.current=null);var e=y.current-p.current,t=S("--card-swap-duration",d.current),r=D();if(r)if(r.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var n=Math.sign(e);r.style.setProperty("--swipe-x","".concat(300*n,"px")),r.style.setProperty("--swipe-rotate","".concat(20*n,"deg")),setTimeout(function(){D()===r&&r.style.setProperty("--swipe-rotate","".concat(-(20*n),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],n>0?"right":"left"),((function(e){if(Array.isArray(e))return Ov(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Ob(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else P(0);f.current=!1,p.current=0,y.current=0}},[S,D,P,c]),C=(0,m.useCallback)(function(e){f.current&&(g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function(){y.current=e;var t=y.current-p.current;P(t),Math.abs(t)>50&&k()}))},[P,k]);return(0,m.useEffect)(function(){var e=d.current;if(e){var t=function(e){return j(e.clientX)},r=function(e){return C(e.clientX)},n=function(){return k()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",r),e.addEventListener("pointerup",n),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",r),e.removeEventListener("pointerup",n),g.current&&cancelAnimationFrame(g.current)}}},[j,C,k]),(0,m.useEffect)(function(){O()},[w,O]),(0,h.jsx)("section",{ref:d,className:v()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":r.length.toString(),"--card-swap-duration":"0.3s"},l),children:w.map(function(e,t){return(0,h.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:r.length-t,width:i,height:o},children:(0,h.jsx)("img",{src:r[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(r[e],"-").concat(e))})})},Ox=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OS=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OE=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,OD=/(^[#\.][a-z]|[a-y][a-z])/i,OO=Math.PI/180,OP=180/Math.PI,Oj=Math.sin,Ok=Math.cos,OC=Math.abs,OT=Math.sqrt,OA=Math.atan2,OR=function(e){return"string"==typeof e},OI=function(e){return"number"==typeof e},OM={},ON={},OL=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},O_=function(e){return Math.round(1e5*e)/1e5||0},OF=function(e){return Math.round(1e10*e)/1e10||0},OB=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},OV=function(e,t,r,n){var i=e[t],a=1===n?6:OQ(i,r,n);if((a||!n)&&a+r+2<i.length)return e.splice(t,0,i.slice(0,r+a+2)),i.splice(0,r+a),1},O$=function(e,t,r){var n=e.length,i=~~(r*n);if(e[i]>t){for(;--i&&e[i]>t;);i<0&&(i=0)}else for(;e[++i]<t&&i<n;);return i<n?i:n-1},OW=function(e,t){var r=e.length;for(t||e.reverse();r--;)e[r].reversed||function(e){var t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}(e[r])},OU=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},Oz=function(e,t){var r=e.length,n=e[r-1]||[],i=n.length;r&&t[0]===n[i-2]&&t[1]===n[i-1]&&(t=n.concat(t.slice(2)),r--),e[r]=t};function OH(e){var t,r=(e=OR(e)&&OD.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(t=r._gsPath[e])&&!t._dirty?t:r._gsPath[e]=O2(e)):e?OR(e)?O2(e):OI(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var OG=function(e,t){var r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),i=[].slice.call(e.attributes),a=i.length;for(t=","+t+",";--a>-1;)r=i[a].nodeName.toLowerCase(),0>t.indexOf(","+r+",")&&n.setAttributeNS(null,r,i[a].nodeValue);return n},OK={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},OY=function(e,t){for(var r=t?t.split(","):[],n={},i=r.length;--i>-1;)n[r[i]]=+e.getAttribute(r[i])||0;return n};function OZ(e,t,r){var n,i=e[t],a=e[t+2],o=e[t+4];return i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,n=a+(o+(e[t+6]-o)*r-a)*r-i,i=e[t+1],a=e[t+3],o=e[t+5],i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,O_(OA(a+(o+(e[t+7]-o)*r-a)*r-i,n)*OP)}function Oq(e,t,r){var n=Math.max(0,~~(OC((r=void 0===r?1:OF(r)||0)-(t=OF(t)||0))-1e-8)),i=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=OU(e[r],e[r].slice(0));return OU(e,t)}(e);if(t>r&&(t=1-t,r=1-r,OW(i),i.totalLength=0),t<0||r<0){var a=Math.abs(~~Math.min(t,r))+1;t+=a,r+=a}i.totalLength||OX(i);var o,s,l,u,c,d,f,p,h=r>1,m=OJ(i,t,OM,!0),y=OJ(i,r,ON),g=y.segment,v=m.segment,b=y.segIndex,w=m.segIndex,x=y.i,S=m.i,E=w===b,D=x===S&&E;if(h||n){for(o=b<w||E&&x<S||D&&y.t<m.t,OV(i,w,S,m.t)&&(w++,!o&&(b++,D?(y.t=(y.t-m.t)/(1-m.t),x=0):E&&(x-=S))),1e-5>Math.abs(1-(r-t))?b=w-1:!y.t&&b?b--:OV(i,b,x,y.t)&&o&&w++,1===m.t&&(w=(w+1)%i.length),c=[],f=1+(d=i.length)*n,p=w,f+=(d-w+b)%d,u=0;u<f;u++)Oz(c,i[p++%d]);i=c}else if(l=1===y.t?6:OQ(g,x,y.t),t!==r)for(s=OQ(v,S,D?m.t/y.t:m.t),E&&(l+=s),g.splice(x+l+2),(s||S)&&v.splice(0,S+s),u=i.length;u--;)(u<w||u>b)&&i.splice(u,1);else g.angle=OZ(g,x+l,0),x+=l,m=g[x],y=g[x+1],g.length=g.totalLength=0,g.totalPoints=i.totalPoints=8,g.push(m,y,m,y,m,y,m,y);return i.totalLength=0,i}function OX(e,t){var r,n,i;for(i=r=n=0;i<e.length;i++)e[i].resolution=~~t||12,r+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b=~~e.resolution||12,w=1/b,x=e.length,S=e[t],E=e[t+1],D=t?t/6*b:0,O=e.samples,P=e.lookup,j=(t?e.minLength:1e8)||1e8,k=O[D+(void 0)*b-1],C=t?O[D-1]:0;for(O.length=P.length=0,n=t+2;n<x;n+=6){if(i=e[n+4]-S,a=e[n+2]-S,o=e[n]-S,u=e[n+5]-E,c=e[n+3]-E,d=e[n+1]-E,s=l=f=p=0,.01>OC(i)&&.01>OC(u)&&OC(o)+OC(d)<.01)e.length>8&&(e.splice(n,6),n-=6,x-=6);else for(r=1;r<=b;r++)h=1-(m=w*r),s=l-(l=(m*m*i+3*h*(m*a+h*o))*m),(g=OT((f=p-(p=(m*m*u+3*h*(m*c+h*d))*m))*f+s*s))<j&&(j=g),C+=g,O[D++]=C;S+=i,E+=u}if(k)for(k-=C;D<O.length;D++)O[D]+=k;if(O.length&&j){if(e.totalLength=v=O[O.length-1]||0,e.minLength=j,v/j<9999)for(r=0,g=y=0;r<v;r+=j)P[g++]=O[y]<r?++y:y}else e.totalLength=O[0]=0;return t?C-O[t/2-1]:C}(e[i]),n+=e[i].length;return e.totalPoints=n,e.totalLength=r,e}function OQ(e,t,r){if(r<=0||r>=1)return 0;var n=e[t],i=e[t+1],a=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=n+(a-n)*r,f=a+(s-a)*r,p=i+(o-i)*r,h=o+(l-o)*r,m=d+(f-d)*r,y=p+(h-p)*r,g=s+(u-s)*r,v=l+(c-l)*r;return f+=(g-f)*r,h+=(v-h)*r,e.splice(t+2,4,O_(d),O_(p),O_(m),O_(y),O_(m+(f-m)*r),O_(y+(h-y)*r),O_(f),O_(h),O_(g),O_(v)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function OJ(e,t,r,n){r=r||{},e.totalLength||OX(e),(t<0||t>1)&&(t=OL(t));var i,a,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}i=f.samples,a=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:O$(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),c=1/a*((o-s)/(l-s)+u%a),u=6*~~(u/a),n&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return r.t=c,r.i=u,r.path=e,r.segment=f,r.segIndex=d,r}function O0(e,t,r,n){var i,a,o,s,l,u,c,d,f,p=e[0],h=n||{};if((t<0||t>1)&&(t=OL(t)),p.lookup||OX(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return i=p.samples,a=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:O$(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),f=1-(c=1/a*((o-s)/(l-s)+u%a)||0),d=p[u=6*~~(u/a)],h.x=O_((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),h.y=O_((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),r&&(h.angle=p.totalLength?OZ(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),h}function O1(e,t,r,n,i,a,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*n+a,s[u+1]=c*r+d*i+o;return e._dirty=1,e}function O2(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y=(e+"").replace(OE,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Ox)||[],g=[],v=0,b=0,w=2/3,x=y.length,S=0,E="ERROR: malformed path: "+e,D=function(e,t,r,n){c=(r-e)/3,d=(n-t)/3,s.push(e+c,t+d,r-c,n-d,r,n)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(E),g;for(t=0;t<x;t++)if(p=a,isNaN(y[t])?o=(a=y[t].toUpperCase())!==y[t]:t--,n=+y[t+1],i=+y[t+2],o&&(n+=v,i+=b),t||(l=n,u=i),"M"===a)s&&(s.length<8?g.length-=1:S+=s.length,OB(s)),v=l=n,b=u=i,s=[n,i],g.push(s),t+=2,a="L";else if("C"===a)s||(s=[0,0]),o||(v=b=0),s.push(n,i,v+ +y[t+3],b+ +y[t+4],v+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===a)c=v,d=b,("C"===p||"S"===p)&&(c+=v-s[s.length-4],d+=b-s[s.length-3]),o||(v=b=0),s.push(c,d,n,i,v+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===a)c=v+(n-v)*w,d=b+(i-b)*w,o||(v=b=0),v+=+y[t+3],b+=+y[t+4],s.push(c,d,v+(n-v)*w,b+(i-b)*w,v,b),t+=4;else if("T"===a)c=v-s[s.length-4],d=b-s[s.length-3],s.push(v+c,b+d,n+(v+1.5*c-n)*w,i+(b+1.5*d-i)*w,v=n,b=i),t+=2;else if("H"===a)D(v,b,v=n,b),t+=1;else if("V"===a)D(v,b,v,b=n+(o?b-v:0)),t+=1;else if("L"===a||"Z"===a)"Z"===a&&(n=l,i=u,s.closed=!0),("L"===a||OC(v-n)>.5||OC(b-i)>.5)&&(D(v,b,n,i),"L"===a&&(t+=2)),v=n,b=i;else if("A"===a){if(h=y[t+4],m=y[t+5],c=y[t+6],d=y[t+7],r=7,h.length>1&&(h.length<3?(d=c,c=m,r--):(d=m,c=h.substr(2),r-=2),m=h.charAt(1),h=h.charAt(0)),f=function(e,t,r,n,i,a,o,s,l){if(e!==s||t!==l){r=OC(r),n=OC(n);var u=i%360*OO,c=Ok(u),d=Oj(u),f=Math.PI,p=2*f,h=(e-s)/2,m=(t-l)/2,y=c*h+d*m,g=-d*h+c*m,v=y*y,b=g*g,w=v/(r*r)+b/(n*n);w>1&&(r=OT(w)*r,n=OT(w)*n);var x=r*r,S=n*n,E=(x*S-x*b-S*v)/(x*b+S*v);E<0&&(E=0);var D=(a===o?-1:1)*OT(E),O=r*g/n*D,P=-(n*y/r*D),j=(e+s)/2+(c*O-d*P),k=(t+l)/2+(d*O+c*P),C=(y-O)/r,T=(g-P)/n,A=(-y-O)/r,R=(-g-P)/n,I=C*C+T*T,M=(T<0?-1:1)*Math.acos(C/OT(I)),N=(C*R-T*A<0?-1:1)*Math.acos((C*A+T*R)/OT(I*(A*A+R*R)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),M%=p;var L,_=Math.ceil(OC(N%=p)/(p/4)),F=[],B=N/_,V=4/3*Oj(B/2)/(1+Ok(B/2)),$=c*r,W=d*r,U=-(d*n),z=c*n;for(L=0;L<_;L++)y=Ok(i=M+L*B),g=Oj(i),C=Ok(i+=B),T=Oj(i),F.push(y-V*g,g+V*y,C+V*T,T-V*C,C,T);for(L=0;L<F.length;L+=2)y=F[L],g=F[L+1],F[L]=y*$+g*U+j,F[L+1]=y*W+g*z+k;return F[L-2]=s,F[L-1]=l,F}}(v,b,+y[t+1],+y[t+2],+y[t+3],+h,+m,(o?v:0)+ +c,(o?b:0)+ +d),t+=r,f)for(r=0;r<f.length;r++)s.push(f[r]);v=s[s.length-2],b=s[s.length-1]}else console.log(E);return(t=s.length)<6?(g.pop(),t=0):OB(s),g.totalPoints=S+t,g}function O3(e,t){1e-4>OC(e[0]-e[2])&&1e-4>OC(e[1]-e[3])&&(e=e.slice(2));var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g=e.length-2,v=+e[0],b=+e[1],w=+e[2],x=+e[3],S=[v,b,v,b],E=w-v,D=x-b,O=e.nonSmooth||[],P=.001>Math.abs(e[g]-v)&&.001>Math.abs(e[g+1]-b);if(!g)return[v,b,v,b,v,b,v,b];for(P&&(e.push(w,x),w=v,x=b,v=e[g-2],b=e[g-1],e.unshift(v,b),g+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,i=2;i<g;i+=2)if(r=v,n=b,v=w,b=x,w=+e[i+2],x=+e[i+3],v!==w||b!==x){if(a=E,o=D,E=w-v,D=x-b,O[i]){S.push(v-(v-r)/4,b-(b-n)/4,v,b,v+(w-v)/4,b+(x-b)/4);continue}s=OT(a*a+o*o),l=OT(E*E+D*D),u=OT(Math.pow(E/l+a/s,2)+Math.pow(D/l+o/s,2)),c=(s+l)*t*.25/u,d=v-(v-r)*(s?c/s:0),f=v+(w-v)*(l?c/l:0),p=v-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),h=b-(b-n)*(s?c/s:0),m=b+(x-b)*(l?c/l:0),y=b-(h+((m-h)*(3*s/(s+l)+.5)/4||0)),S.push(O_(d+p),O_(h+y),O_(v),O_(b),O_(f+p),O_(m+y))}return v!==w||b!==x||S.length<4?S.push(O_(w),O_(x),O_(w),O_(x)):S.length-=2,2===S.length?S.push(v,b,v,b,v,b):P&&(S.splice(0,6),S.length-=6),S.closed=P,S}function O4(e){OI(e[0])&&(e=[e]);var t,r,n,i,a="",o=e.length;for(r=0;r<o;r++){for(a+="M"+O_((i=e[r])[0])+","+O_(i[1])+" C",t=i.length,n=2;n<t;n++)a+=O_(i[n++])+","+O_(i[n++])+" "+O_(i[n++])+","+O_(i[n++])+" "+O_(i[n++])+","+O_(i[n])+" ";i.closed&&(a+="z")}return a}var O5,O6,O8,O9,O7,Pe,Pt,Pr,Pn,Pi,Pa,Po="transform",Ps=Po+"Origin",Pl=function(e){var t=e.ownerDocument||e;for(!(Po in e.style)&&("msTransform"in e.style)&&(Ps=(Po="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(O9=window,Pn=new Pv,t){O8=t,O7=t.documentElement,Pe=t.body,(Pi=O8.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=t.createElement("div"),n=t.createElement("div"),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.style.position="static",r.style.transform="translate3d(0,0,1px)",Pa=n.offsetParent!==r,i.removeChild(r))}return t},Pu=function(e){for(var t,r;e&&e!==Pe;)(r=e._gsap)&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Pc=[],Pd=[],Pf=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},Pp=function e(t,r){if(t.parentNode&&(O8||Pl(t))){var n=Pf(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?r?"rect":"g":"div",o=100*(2===r),s=100*(3===r),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=O8.createElementNS?O8.createElementNS(i.replace(/^https/,"http"),a):O8.createElement(a);return r&&(n?(Pr||(Pr=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Pr.appendChild(u)):(Pt||Object.assign((Pt=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Pt.appendChild(u))),u}throw"Need document and parent."},Ph=function(e){for(var t=new Pv,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},Pm=function(e){var t,r=e.getCTM();return r||(t=e.style[Po],e.style[Po]="none",e.appendChild(Pi),r=Pi.getCTM(),e.removeChild(Pi),t?e.style[Po]=t:e.style.removeProperty(Po.replace(/([A-Z])/g,"-$1").toLowerCase())),r||Pn.clone()},Py=function(e,t){var r,n,i,a,o,s,l=Pf(e),u=e===l,c=l?Pc:Pd,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===O9)return e;if(c.length||c.push(Pp(e,1),Pp(e,2),Pp(e,3)),r=l?Pr:Pt,l)u?(a=-(i=Pm(e)).e/i.a,o=-i.f/i.d,n=Pn):e.getBBox?(i=e.getBBox(),a=(n=(n=e.transform?e.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?Ph(n):n.getItem(0).matrix:Pn).a*i.x+n.c*i.y,o=n.b*i.x+n.d*i.y):(n=new Pv,a=o=0),t&&"g"===e.tagName.toLowerCase()&&(a=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+o)+")");else{if(a=o=0,Pa)for(n=e.offsetParent,i=e;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(O9.getComputedStyle(i)[Po]+"").length>4&&(a=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(s=O9.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;d&&d!==n;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(i=r.style).top=e.offsetTop-o+"px",i.left=e.offsetLeft-a+"px",i[Po]=s[Po],i[Ps]=s[Ps],i.position="fixed"===s.position?"fixed":"absolute",f.appendChild(r)}return r},Pg=function(e,t,r,n,i,a,o){return e.a=t,e.b=r,e.c=n,e.d=i,e.e=a,e.f=o,e},Pv=function(){function e(e,t,r,n,i,a){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===a&&(a=0),Pg(this,e,t,r,n,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,r=this.c,n=this.d,i=this.e,a=this.f,o=e*n-t*r||1e-10;return Pg(this,n/o,-t/o,-r/o,e/o,(r*a-n*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return Pg(this,s*t+u*n,s*r+u*i,l*t+c*n,l*r+c*i,a+d*t+f*n,o+d*r+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&r===e.b&&n===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var r=e.x,n=e.y,i=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=r*i+n*o+l||0,t.y=r*a+n*s+u||0,t},e}();function Pb(e,t,r,n){if(!e||!e.parentNode||(O8||Pl(e)).documentElement===e)return new Pv;var i=Pu(e),a=Pf(e)?Pc:Pd,o=Py(e,r),s=a[0].getBoundingClientRect(),l=a[1].getBoundingClientRect(),u=a[2].getBoundingClientRect(),c=o.parentNode,d=!n&&function e(t){return"fixed"===O9.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new Pv((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:O9.pageXOffset||O8.scrollLeft||O7.scrollLeft||Pe.scrollLeft||0),s.top+(d?0:O9.pageYOffset||O8.scrollTop||O7.scrollTop||Pe.scrollTop||0));if(c.removeChild(o),i)for(s=i.length;s--;)(l=i[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var Pw,Px,PS,PE,PD,PO,PP="x,translateX,left,marginLeft,xPercent".split(","),Pj="y,translateY,top,marginTop,yPercent".split(","),Pk=Math.PI/180,PC=function(e,t,r,n){for(var i=t.length,a=2===n?0:n,o=0;o<i;o++)e[a]=parseFloat(t[o][r]),2===n&&(e[a+1]=0),a+=2;return e},PT=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},PA=function(e){var t,r=e[0],n=e[1];for(t=2;t<e.length;t+=2)r=e[t]+=r,n=e[t+1]+=n},PR=function(e,t,r,n,i,a,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(PT(r,n,s),i?PT(r,i,l):0),o.relative&&PA(t),t=[(i?O3:function(e,t){void 0===t&&(t=1);for(var r=e[0],n=0,i=[r,0],a=2;a<e.length;a+=2)i.push(r,n,e[a],n=(e[a]-r)*t/2,r=e[a],-n);return i})(t,o.curviness)]),t=a(P_(t,r,o)),PF(e,r,n,t,"x",s),i&&PF(e,r,i,t,"y",l),OX(t,o.resolution||(0===o.curviness?20:12))},PI=function(e){return e},PM=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,PN=function(e,t,r){var n,i=Pb(e),a=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(n=e.viewBox.baseVal).width||(n={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):n=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(a=t.push?t[0]*(n?n.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(n?n.height:e.offsetHeight||0):t.y),r.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})},PL=function(e,t,r,n){var i,a=Pb(e.parentNode,!0,!0),o=a.clone().multiply(Pb(t)),s=PN(e,r,a),l=PN(t,n,a),u=l.x,c=l.y;return o.e=o.f=0,"auto"===n&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(i=t.getAttribute("d").match(PM)||[],u+=(i=o.apply({x:+i[0],y:+i[1]})).x,c+=i.y),i&&(u-=(i=o.apply(t.getBBox())).x,c-=i.y),o.e=u-s.x,o.f=c-s.y,o},P_=function(e,t,r){var n,i,a,o=r.align,s=r.matrix,l=r.offsetX,u=r.offsetY,c=r.alignOrigin,d=e[0][0],f=e[0][1],p=PT(t,"x"),h=PT(t,"y");return e&&e.length?(o&&("self"===o||(n=PE(o)[0]||t)===t?O1(e,1,0,0,1,p-d,h-f):(c&&!1!==c[2]?Pw.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(PT(t,"xPercent")/100),-(PT(t,"yPercent")/100)],a=(i=PL(t,n,c,"auto")).apply({x:d,y:f}),O1(e,i.a,i.b,i.c,i.d,p+i.e-(a.x-i.e),h+i.f-(a.y-i.f)))),s?O1(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&O1(e,1,0,0,1,l||0,u||0),e):OH("M0,0L0,0")},PF=function(e,t,r,n,i,a){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[r],u=l&&0>l.indexOf(",")?l:r,c=e._pt=new Px(e._pt,t,u,0,0,PI,0,o.set(t,u,e));c.u=PS(o.get(t,u,a))||0,c.path=n,c.pp=i,e._props.push(u)},PB={version:"3.15.0",name:"motionPath",register:function(e,t,r){PS=(Pw=e).utils.getUnit,PE=Pw.utils.toArray,PD=Pw.core.getStyleSaver,PO=Pw.core.reverting||function(){},Px=r},init:function(e,t,r){if(!Pw)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&!t.style&&t.path||(t={path:t});var n,i,a,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,h=u.x,m=u.y,y=c[0],g=(i=t.start,a="end"in t?t.end:1,function(e){return i||1!==a?Oq(e,i,a):e});if(this.rawPaths=l,this.target=e,this.tween=r,this.styles=PD&&PD(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=PS(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)OX(o=g(P_(OH(t.path),e,t)),t.resolution),l.push(o),PF(this,e,t.x||"x",o,"x",t.unitX||"px"),PF(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!h&&~PP.indexOf(s)?h=s:!m&&~Pj.indexOf(s)&&(m=s);for(s in h&&m?l.push(PR(this,PC(PC([],c,h,0),c,m,1),e,h,m,g,t,f||PS(c[0][h]),p||PS(c[0][m]))):h=m=0,y)s!==h&&s!==m&&l.push(PR(this,PC([],c,s,2),e,s,0,g,t,PS(c[0][s])))}r.vars.immediateRender&&this.render(r.progress(),this)},render:function(e,t){var r=t.rawPaths,n=r.length,i=t._pt;if(t.tween._time||!PO()){for(e>1?e=1:e<0&&(e=0);n--;)O0(r[n],e,!n&&t.rotate,r[n]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,e),i=i._next;t.rotate&&t.rSet(t.target,t.rProp,r[0].angle*(t.radians?Pk:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return OX(OH(e)).totalLength},sliceRawPath:Oq,getRawPath:OH,pointsToSegment:O3,stringToRawPath:O2,rawPathToString:O4,transformRawPath:O1,getGlobalMatrix:Pb,getPositionOnPath:O0,cacheRawPathMeasurements:OX,convertToPath:function(e,t){return PE(e).map(function(e){var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return r=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=OG(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),D=OY(e,OK[O]),"rect"===O?(o=D.rx,s=D.ry||o,i=D.x,a=D.y,f=D.width-2*o,p=D.height-2*s,o||s?(h=i+.44771525016900005*o,g=(y=(m=i+o)+f)+.552284749831*o,v=y+o,b=a+.44771525016900005*s,S=(x=(w=a+s)+p)+.552284749831*s,E=x+s,n="M"+v+","+w+" V"+x+" C"+[v,S,g,E,y,E,y-(y-m)/3,E,m+(y-m)/3,E,m,E,h,E,i,S,i,x,i,x-(x-w)/3,i,w+(x-w)/3,i,w,i,b,h,a,m,a,m+(y-m)/3,a,y-(y-m)/3,a,y,a,g,a,v,b,v,w].join(",")+"z"):n="M"+(i+f)+","+a+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=D.r):(o=D.rx,c=.552284749831*(s=D.ry)),i=D.cx,a=D.cy,u=.552284749831*o,n="M"+(i+o)+","+a+" C"+[i+o,a+c,i+u,a+s,i,a+s,i-u,a+s,i-o,a+c,i-o,a,i-o,a-c,i-u,a-s,i,a-s,i+u,a-s,i+o,a-c,i+o,a].join(",")+"z"):"line"===O?n="M"+D.x1+","+D.y1+" L"+D.x2+","+D.y2:("polyline"===O||"polygon"===O)&&(n="M"+(i=(d=(e.getAttribute("points")+"").match(OS)||[]).shift())+","+(a=d.shift())+" L"+d.join(","),"polygon"===O&&(n+=","+i+","+a+"z")),l.setAttribute("d",O4(l._gsRawPath=O2(n))),r&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,r){var n=Pb(t,!0,!0).multiply(Pb(e));return r?n.apply(r):n},getAlignMatrix:PL,getRelativePosition:function(e,t,r,n){var i=PL(e,t,r,n);return{x:i.e,y:i.f}},arrayToRawPath:function(e,t){var r=PC(PC([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&PA(r),["cubic"===t.type?r:O3(r,t.curviness)]}};(Pw||"u">typeof window&&(Pw=window.gsap)&&Pw.registerPlugin&&Pw)&&Pw.registerPlugin(PB);let PV="_91T10b5z4yVLEvBTiOHB2w==",P$="DV-xKWaHEEvN+MaZK6G-sw==",PW="BiOYgCt0Z+UKXxmzw9enhg==";function PU(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function PH(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}EH.registerPlugin(PB);var PG=function(e){var t,r=e.url,n=e.title,i=e.open,a=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return PU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return PU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,m.useRef)(null),p={transformOrigin:"center center"},y=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},g=function(){return{cx:200,cy:200,r:49}};return(0,m.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,r=c?0:e+t;i?EH.timeline().set(f.current,Pz({},p,y())).to(f.current,PH(Pz({},p,g()),{duration:t,ease:"power3.inOut"})).to(f.current,PH(Pz({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):EH.timeline({overwrite:!0}).set(f.current,Pz({},p,{cx:5100,cy:200,r:4900})).to(f.current,PH(Pz({},p,g()),{delay:r,duration:e,ease:"power4.out"})).to(f.current,PH(Pz({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},y()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[i]),(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PV,children:[(0,h.jsxs)("defs",{children:[(0,h.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,h.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,h.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,h.jsx)("rect",{width:400,height:400})})]}),(0,h.jsx)("g",{clipPath:"url(#".concat(o).concat(a?"_squareClip":"_circleClip",")"),children:(0,h.jsx)("image",{width:400,height:400,href:r,className:P$,children:(0,h.jsx)("title",{children:n})})})]})},PK=function(e){var t=e.images,r=e.onSelect,n=function(e){return 200-(24*t.length-10)/2+24*e},i=function(){return 370};return(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PV,children:t.map(function(e,t){return(0,h.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,h.jsx)("circle",{cx:n(t),cy:i(),r:7})})}),(0,h.jsx)("image",{x:n(t)-7,y:i()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:P$,preserveAspectRatio:"xMidYMid slice"}),(0,h.jsx)("circle",{onClick:function(){return r(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:n(t),cy:i(),r:9,children:(0,h.jsx)("title",{children:e.title})})]},e.url)})})};function PY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pq=function(e){var t=e.images,r=e.autoplay,n=void 0===r||r,i=e.autoplayInterval,a=void 0===i?4500:i,o=e.className,s=e.style,l=PZ((0,m.useState)(0),2),u=l[0],c=l[1],d=PZ((0,m.useState)(0),2),f=d[0],p=d[1],y=PZ((0,m.useState)(!1),2),g=y[0],b=y[1],w=(0,m.useRef)(null),x=function(e){return p(e)},S=(0,m.useCallback)(function(){c(function(e){var r=e+1;return r>=t.length&&(r=0),r})},[t.length]),E=(0,m.useCallback)(function(){c(function(e){var r=e-1;return r<0&&(r=t.length-1),r})},[t.length]);return(0,m.useEffect)(function(){return b(!0)},[u]),(0,m.useEffect)(function(){return b(!1)},[f]),(0,m.useEffect)(function(){if(n)return w.current&&clearInterval(w.current),w.current=window.setInterval(S,a),function(){w.current&&clearInterval(w.current)}},[u,n,a,S]),(0,h.jsxs)("div",{className:v()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,h.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,r){return(0,h.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===r?r:t.length+1},children:(0,h.jsx)(PG,{total:t.length,id:r,url:e.url,title:e.title,open:u===r,inPlace:f===r,onInPlace:x})},e.url)}),(0,h.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,h.jsx)(PK,{images:t,onSelect:function(e){g||c(e)}})})]}),(0,h.jsx)("button",{type:"button",className:v()(PW,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:E,disabled:g,"aria-label":"Image pr\xe9c\xe9dente",children:(0,h.jsx)(eS,{size:28})}),(0,h.jsx)("button",{type:"button",className:v()(PW,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:g,"aria-label":"Image suivante",children:(0,h.jsx)(eE,{size:28})})]})};function PX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PQ(e){var t=e.handleShuffle,r=e.testimonial,n=e.position,i=e.id,a=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,m.useRef)(0),f="front"===n;return(0,h.jsxs)(hK.div,{style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){PX(e,t,r[t])})}return e}({zIndex:"front"===n?2:+("middle"===n),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===n?"-6deg":"middle"===n?"0deg":"6deg",x:"front"===n?"0%":"middle"===n?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var r=e.clientX;d.current-r>150&&t(),d.current=0},transition:{duration:.35},className:v()("ohCq+RO21+rIvJcyy3o2gw==",PX({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,h.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(i),alt:"Avatar of ".concat(a),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,h.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',r,'"']}),(0,h.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:a})]})}function PJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P0(e){if(Array.isArray(e))return e}function P1(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function P2(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P3(e,t){if(e){if("string"==typeof e)return PJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PJ(e,t)}}function P4(e){var t,r=e.testimonials,n=e.cardWidth,i=void 0===n?350:n,a=e.cardHeight,o=void 0===a?450:a,s=e.className,l=e.style,u=e.onShuffle,c=P0(t=(0,m.useState)(function(){return r.map(function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||P3(t,2)||P2(),d=c[0],f=c[1];(0,m.useEffect)(function(){f(r.map(function(e,t){return t}))},[r]);var p=(0,m.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,n=P0(e)||P1(e)||P3(e)||P2(),i=n[0],a=n.slice(1);return null==u||u(null==(t=r[i])?void 0:t.id),((function(e){if(Array.isArray(e))return PJ(e)})(a)||P1(a)||P3(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([i])})},[u,r]);return(0,h.jsx)("div",{className:v()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i,height:o},l),children:d.map(function(e,t){var n=r[e];return n?(0,h.jsx)(PQ,{id:n.id,testimonial:n.testimonial,author:n.author,avatarUrl:n.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:i,cardHeight:o},n.id):null})})}var P5=(0,m.createContext)(null),P6=function(){var e=(0,m.useContext)(P5);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function P8(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function P9(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(function(r){var n=e[r],i=t[r];return"function"==typeof n?"".concat(n)==="".concat(i):P8(n)&&P8(i)?P9(n,i):n===i})}function P7(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jt(e){return"number"==typeof e}function jr(e){return"string"==typeof e}function jn(e){return"boolean"==typeof e}function ji(e){return"[object Object]"===Object.prototype.toString.call(e)}function ja(e){return Math.abs(e)}function jo(e){return Math.sign(e)}function js(e){return jd(e).map(Number)}function jl(e){return e[ju(e)]}function ju(e){return Math.max(0,e.length-1)}function jc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,r){return t+r})}function jd(e){return Object.keys(e)}function jf(e,t){var r;return void 0!==t.MouseEvent&&(null!=(r=t.MouseEvent)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)}function jp(){var e=[],t={add:function(r,n,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in r?(r.addEventListener(n,i,o),a=function(){return r.removeEventListener(n,i,o)}):(r.addListener(i),a=function(){return r.removeListener(i)}),e.push(a),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function jh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=ja(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function jm(e){var t=e;function r(e){return jt(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function jy(e,t){var r="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},n=t.style,i=null,a=!1;return{clear:function(){!a&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!a){var o=Math.round(100*e.direction(t))/100;o!==i&&(n.transform=r(o),i=o)}},toggleActive:function(e){a=!e}}}var jg={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function jv(e,t,r){var n,i,a,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,r){return[t,r].reduce(function(t,r){return jd(r).forEach(function(n){var i=t[n],a=r[n],o=ji(i)&&ji(a);t[n]=o?e(i,a):a}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){var n=r.breakpoints||{},i=jd(n).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return n[e]}).reduce(function(e,r){return t(e,r)},{});return t(r,i)},optionsMediaQueries:function(t){return t.map(function(e){return jd(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),h=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var r,n;return Object.assign(e,(r={},n=t.name,n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),m=jp(),y=(i={},a={init:function(e){n=e},emit:function(e){return(i[e]||[]).forEach(function(t){return t(n,e)}),a},off:function(e,t){return i[e]=(i[e]||[]).filter(function(e){return e!==t}),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),g=p.mergeOptions,v=p.optionsAtMedia,b=p.optionsMediaQueries,w=y.on,x=y.off,S=y.emit,E=!1,D=g(jg,jv.globalOptions),O=g(D),P=[];function j(t,r){var n,i,a,o;!E&&(O=v(D=g(D,t)),P=r||P,n=O.container,i=O.slides,u=(jr(n)?e.querySelector(n):n)||e.children[0],a=jr(i)?u.querySelectorAll(i):i,c=[].slice.call(a||u.children),s=function t(r){var n=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A,R,I,M,N,L,_,F,B,V,$,W,U,z,H,G,K,Y,Z,q,X=a.align,Q=a.axis,J=a.direction,ee=a.startIndex,et=a.loop,er=a.duration,en=a.dragFree,ei=a.dragThreshold,ea=a.inViewThreshold,eo=a.slidesToScroll,es=a.skipSnaps,el=a.containScroll,eu=a.watchResize,ec=a.watchSlides,ed=a.watchDrag,ef=a.watchFocus,ep={measure:function(e){var t=e.offsetTop,r=e.offsetLeft,n=e.offsetWidth,i=e.offsetHeight;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},eh=ep.measure(t),em=r.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,h=f?"top":d?"right":"left",m=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:h,endEdge:m,measureSize:function(e){var t=e.height,r=e.width;return f?t:r},direction:function(e){return e*p}}),eg=ey.measureSize(eh),ev={measure:function(e){return e/100*eg}},eb=(s=X,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return jr(s)?u[s](e):s(l,e,t)}}),ew=!et&&!!el,ex=et||!!el,eS=(y=ey.measureSize,g=ey.startEdge,v=ey.endEdge,b=em[0]&&ex,w=function(){if(!b)return 0;var e=em[0];return ja(eh[g]-e[g])}(),x=b?parseFloat(i.getComputedStyle(jl(r)).getPropertyValue("margin-".concat(v))):0,S=em.map(y),E=em.map(function(e,t,r){var n=t===ju(r);return t?n?S[t]+x:r[t+1][g]-e[g]:S[t]+w}).map(ja),{slideSizes:S,slideSizesWithGaps:E,startGap:w,endGap:x}),eE=eS.slideSizes,eD=eS.slideSizesWithGaps,eO=eS.startGap,eP=eS.endGap,ej=(D=ey.startEdge,O=ey.endEdge,P=ey.direction,j=jt(eo),{groupSlides:function(e){return j?js(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?js(e).reduce(function(t,r,n){var i=jl(t)||0,a=r===ju(e),o=eh[D]-em[i][D],s=eh[D]-em[r][O],l=et||0!==i?0:P(eO),u=ja(s-(!et&&a?P(eP):0)-(o+l));return n&&u>eg+2&&t.push(r),a&&t.push(e.length),t},[]).map(function(t,r,n){var i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}),ek=(k=ey.startEdge,C=ey.endEdge,A=(T=ej.groupSlides)(em).map(function(e){return jl(e)[C]-e[0][k]}).map(ja).map(eb.measure),I=T(R=em.map(function(e){return eh[k]-e[k]}).map(function(e){return-ja(e)})).map(function(e){return e[0]}).map(function(e,t){return e+A[t]}),{snaps:R,snapsAligned:I}),eC=ek.snaps,eT=ek.snapsAligned,eA=-jl(eC)+jl(eD),eR=function(e,t,r,n){var i,a,o=jh(-t+e,0),s=r.map(function(e,t){var n=o.min,i=o.max,a=o.constrain(e),s=t===ju(r);return t?s||function(e,t){return 1>=ja(e-t)}(n,a)?n:function(e,t){return 1>=ja(e-t)}(i,a)?i:a:i}).map(function(e){return parseFloat(e.toFixed(3))}),l=(i=s[0],a=jl(s),jh(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return s;var r=l.min,i=l.max;return s.slice(r,i)}(),scrollContainLimit:l}}(eg,eA,eT,el),eI=eR.snapsContained,eM=eR.scrollContainLimit,eN=ew?eI:eT,eL=(M=eN[0],{limit:jh(et?M-eA:jl(eN),M)}).limit,e_=function e(t,r,n){var i=jh(0,t).constrain,a=t+1,o=s(r);function s(e){return n?ja((a+e)%a):i(e)}function l(){return e(t,o,n)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(ju(eN),ee,et),eF=e_.clone(),eB=js(r),eV=function(e){var t=e.dragHandler,r=e.scrollBody,n=e.scrollBounds;e.options.loop||n.constrain(t.pointerDown()),r.seek()},e$=function(e,t){var r=e.scrollBody,n=e.translate,i=e.location,a=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,h=r.settled(),m=!f.shouldConstrain(),y=p?h:h&&m,g=y&&!u.pointerDown();g&&c.stop();var v=i.get()*t+o.get()*(1-t);a.set(v),p&&(s.loop(r.direction()),l.loop()),n.to(a.get()),g&&d.emit("settle"),y||d.emit("scroll")},eW=function(e,t,r,n){var i=jp(),a=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,r(),r());var i=e-o;for(o=e,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,function(){return eV(e2)},function(e){return e$(e2,e)}),eU=eN[e_.get()],ez=jm(eU),eH=jm(eU),eG=jm(eU),eK=jm(eU),eY=function(e,t,r,n,i){var a=0,o=0,s=i,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){var t=n.get()-e.get(),i=0;return s?(r.set(e),a+=t/s,a*=l,u+=a,e.add(a),i=u-c):(a=0,r.set(n),e.set(n),i=t),o=jo(i),c=u,p},settled:function(){return .001>ja(n.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return p}(ez,eG,eH,eK,er),eZ=function(e,t,r,n,i){var a=n.reachedAny,o=n.removeOffset,s=n.constrain;function l(e){return e.concat().sort(function(e,t){return ja(e)-ja(t)})[0]}function u(t,n){var i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);var a=i.filter(function(e){return jo(e)===n});return a.length?l(a):jl(i)-r}return{byDistance:function(r,n){var l,c=i.get()+r,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return ja(e.diff)-ja(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,h=!e&&a(c);if(!n||h)return{index:f,distance:r};var m=r+u(t[f]-p,0);return{index:f,distance:m}},byIndex:function(e,r){var n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(et,eN,eA,eL,eK),eq=function(e,t,r,n,i,a,o){function s(i){var s=i.distance,l=i.index!==t.get();a.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){var n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(eW,e_,eF,eY,eZ,eK,o),eX=(N=eL.max,L=eL.length,{get:function(e){return L?-((e-N)/L):0}}),eQ=jp(),eJ=(F={},B=null,V=null,$=!1,{init:function(){_=new IntersectionObserver(function(e){$||(e.forEach(function(e){F[r.indexOf(e.target)]=e}),B=null,V=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ea}),r.forEach(function(e){return _.observe(e)})},destroy:function(){_&&_.disconnect(),$=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&B)return B;if(!e&&V)return V;var t=jd(F).reduce(function(t,r){var n=parseInt(r),i=F[n].isIntersecting;return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(B=t),e||(V=t),t}}),e0=(W=ej.groupSlides,U=eM.min,z=eM.max,{slideRegistry:(c=W(eB),1===eN.length?[eB]:ew&&"keepSnaps"!==el?c.slice(U,z).map(function(e,t,r){var n=t===ju(r);return t?n?jc(ju(eB)-jl(r)[0]+1,jl(r)[0]):e:jc(jl(r[0])+1)}):c)}).slideRegistry,e1=function(e,t,r,n,i,a,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(a.add(document,"keydown",c,!1),t.forEach(function(t,c){a.add(t,"focus",function(t){(jn(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var a=r.findIndex(function(e){return e.includes(t)});jt(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,r,e0,eq,eY,eQ,o,ef),e2={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:eh,slideRects:em,animation:eW,axis:ey,dragHandler:function(e,t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g){var v=e.cross,b=e.direction,w=["INPUT","SELECT","TEXTAREA"],x={passive:!1},S=jp(),E=jp(),D=jh(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},P={mouse:500,touch:600},j=h?43:25,k=!1,C=0,T=0,A=!1,R=!1,I=!1,M=!1;function N(e){if(!jf(e,n)&&e.touches.length>=2)return L(e);var t=a.readPoint(e),r=a.readPoint(e,v),o=ja(t-C),l=ja(r-T);if(!R&&!M&&(!e.cancelable||!(R=o>l)))return L(e);var c=a.pointerMove(e);o>m&&(I=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(b(c)),e.preventDefault()}function L(e){var t,r,n,i=c.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(h?P:O)[M?"mouse":"touch"],s=(t=b(o),r=d.add(-1*jo(t)),n=c.byDistance(t,!h).distance,h||ja(t)<D?n:y&&i?.5*n:c.byIndex(r.get(),0).distance),p=function(e,t){if(0===e||0===t||ja(e)<=ja(t))return 0;var r,n,i=(r=ja(e),n=ja(t),ja(r-n));return ja(i/e)}(o,s);R=!1,A=!1,E.clear(),u.useDuration(j-10*p).useFriction(.68+p/50),l.distance(s,!h),M=!1,f.emit("pointerUp")}function _(e){I&&(e.stopPropagation(),e.preventDefault(),I=!1)}return{init:function(e){g&&S.add(t,"dragstart",function(e){return e.preventDefault()},x).add(t,"touchmove",function(){},x).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",L).add(t,"contextmenu",L).add(t,"click",_,!0);function s(s){var l,c,d,p;(jn(g)||g(e,s))&&(M=p=jf(l=s,n),I=h&&p&&!l.buttons&&k,k=ja(i.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",w.includes(c)||(A=!0,a.pointerDown(l),u.useFriction(0).useDuration(0),i.set(o),d=M?r:t,E.add(d,"touchmove",N,x).add(d,"touchend",L).add(d,"mousemove",N,x).add(d,"mouseup",L),C=a.readPoint(l),T=a.readPoint(l,v),f.emit("pointerDown"))))}},destroy:function(){S.clear(),E.clear()},pointerDown:function(){return A}}}(ey,e,n,i,eK,function(e,t){var r,n;function i(e){return e.timeStamp}function a(r,n){var i=n||e.scroll;return(jf(r,t)?r:r.touches[0])["client".concat("x"===i?"X":"Y")]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){var t=a(e)-a(n),o=i(e)-i(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;var t=a(n)-a(r),o=i(e)-i(r),s=i(e)-i(n)>170,l=t/o;return o&&!s&&ja(l)>.1?l:0},readPoint:a}}(ey,i),ez,eW,eq,eY,eZ,e_,o,ev,en,ei,es,ed),eventStore:eQ,percentOfView:ev,index:e_,indexPrevious:eF,limit:eL,location:ez,offsetLocation:eG,previousLocation:eH,options:a,resizeHandler:function(e,t,r,n,i,a,o){var s,l,u=[e].concat(n),c=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=f(e),c=n.map(f),s=new ResizeObserver(function(r){(jn(a)||a(i,r))&&function(r){var a=!0,o=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(a=(u=p.next()).done);a=!0){var h=u.value;if(d)return;var m=h.target===e,y=n.indexOf(h.target),g=m?l:c[y],v=f(m?e:n[y]);if(ja(v-g)>=.5){i.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{a||null==p.return||p.return()}finally{if(o)throw s}}}(r)}),r.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,i,r,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,r,n,i){var a=i.measure(10),o=i.measure(50),s=jh(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=ja(e[l]-t.get()),d=r.get()-t.get(),f=s.constrain(c/o);r.subtract(d*f),!i&&ja(d)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eG,eK,eY,ev),scrollLooper:(H=[ez,eG,eH,eK],K=(G=jh(eL.min+.1,eL.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&K(eG.get())){var t=-1*e*eA;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eN.map(eX.get),scrollSnaps:eN,scrollTarget:eZ,scrollTo:eq,slideLooper:function(e,t,r,n,i,a,o,s,l){var u=js(i),c=js(i).reverse(),d=h(p(c,o[0]),r,!1).concat(h(p(u,t-o[0]-1),-r,!0));function f(e,t){return e.reduce(function(e,t){return e-i[t]},t)}function p(e,t){return e.reduce(function(e,r){return f(e,t)>0?e.concat([r]):e},[])}function h(i,o,u){var c=a.map(function(e,r){return{start:e-n[r]+.5+o,end:e+t-.5+o}});return i.map(function(t){var n=u?0:-r,i=u?r:0,a=c[t][u?"end":"start"];return{index:t,loopPoint:a,slideLocation:jm(-1),translate:jy(e,l[t]),target:function(){return s.get()>a?n:i}}})}return{canLoop:function(){return d.every(function(e){var r=e.index;return .1>=f(u.filter(function(e){return e!==r}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,r=e.translate,n=e.slideLocation,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:d}}(ey,eg,eA,eE,eD,eC,eN,eG,r),slideFocus:e1,slidesHandler:(q=!1,{init:function(e){ec&&(Z=new MutationObserver(function(t){!q&&(jn(ec)||ec(e,t))&&function(t){var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(t)})).observe(t,{childList:!0})},destroy:function(){Z&&Z.disconnect(),q=!0}}),slidesInView:eJ,slideIndexes:eB,slideRegistry:e0,slidesToScroll:ej,target:eK,translate:jy(ey,t)};return e2}(e,u,c,d,f,r,y);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(O),b([D].concat(function(e){if(Array.isArray(e))return je(e)}(o=P.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return je(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return je(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return m.add(e,"change",k)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(R),s.eventHandler.init(R),s.resizeHandler.init(R),s.slidesHandler.init(R),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(R),l=h.init(R,P)))}function k(e,t){var r=A();C(),j(g({startIndex:r},e),t),y.emit("reInit")}function C(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),h.destroy(),m.clear()}function T(e,t,r){O.active&&!E&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,r||0))}function A(){return s.index.get()}var R={canScrollNext:function(){return s.index.add(1).get()!==A()},canScrollPrev:function(){return s.index.add(-1).get()!==A()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){E||(E=!0,m.clear(),C(),y.emit("destroy"),y.clear())},off:x,on:w,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:k,rootNode:function(){return e},scrollNext:function(e){T(s.index.add(1).get(),e,-1)},scrollPrev:function(e){T(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:T,selectedScrollSnap:A,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return j(t,r),setTimeout(function(){return y.emit("init")},0),R}function jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jb(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,m.useRef)(e),n=(0,m.useRef)(t),i=jw((0,m.useState)(),2),a=i[0],o=i[1],s=jw((0,m.useState)(),2),l=s[0],u=s[1],c=(0,m.useCallback)(function(){a&&a.reInit(r.current,n.current)},[a]);return(0,m.useEffect)(function(){P9(r.current,e)||(r.current=e,c())},[e,c]),(0,m.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var r=P7(e),n=P7(t);return r.every(function(e,t){return P9(e,n[t])})}(n.current,t)&&(n.current=t,c())},[t,c]),(0,m.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){jv.globalOptions=jx.globalOptions;var e=jv(l,r.current,n.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,a]}jv.globalOptions=void 0,jx.globalOptions=void 0;let jS={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function jE(e){var t=e.children,r=e.className,n=P6(),i=n.axis,a=n.mainViewportRef;return(0,h.jsx)("div",{ref:a,className:v()(jS.viewport,jS["viewport--".concat(i)],r),children:(0,h.jsx)("div",{className:v()(jS.container,jS["container--".concat(i)]),children:t})})}function jD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jD(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jP(e){var t,r,n,i=e.children,a=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(n=null==a?void 0:a.axis)?n:"x",f=jO(jx((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},a),r=r={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),o),2),p=f[0],g=f[1],b=jO(jx({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),w=b[0],x=b[1],S=jO((0,m.useState)(0),2),E=S[0],D=S[1],O=(0,m.useMemo)(function(){return function(e){var t=y().Children.toArray(e),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(y().isValidElement(s)&&s.type===jE){var l=s.props;return y().Children.toArray(l.children).filter(y().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return[]}(i)},[i]),P=(0,m.useCallback)(function(e){null==g||g.scrollTo(e)},[g]),j=(0,m.useCallback)(function(){if(g){var e=g.selectedScrollSnap();D(e),null==x||x.scrollTo(e)}},[g,x]);return(0,m.useEffect)(function(){if(g)return j(),g.on("select",j).on("reInit",j),function(){g.off("select",j).off("reInit",j)}},[g,j]),(0,h.jsx)(P5.Provider,{value:{axis:d,mainViewportRef:p,mainApi:g,thumbsViewportRef:w,thumbsApi:x,selectedIndex:E,scrollTo:P,thumbnails:O},children:(0,h.jsx)("div",{className:v()(jS.root,u),style:c,children:i})})}function jj(e){var t=e.children,r=e.className,n=P6().axis;return(0,h.jsx)("div",{className:v()(jS.slide,jS["slide--".concat(n)],r),children:t})}function jk(e){var t=e.className,r=e.thumbsSliderClassName,n=P6(),i=n.axis,a=n.thumbsViewportRef,o=n.thumbnails,s=n.selectedIndex,l=n.scrollTo;return 0===o.length?null:(0,h.jsx)("div",{ref:a,className:v()(jS.thumbsViewport,t),children:(0,h.jsx)("div",{className:v()(jS.thumbsContainer,jS["thumbsContainer--".concat(i)]),children:o.map(function(e,t){var n,i,a=t===s;return(0,h.jsx)("button",{type:"button",onClick:function(){return l(t)},className:v()(jS.thumb,(n={},i=jS["thumb--active"],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n),a&&r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":a,children:e&&(0,h.jsx)("img",{src:e,alt:"",className:jS.thumbImage})},t)})})})}function jC(e){var t=e.className,r=e.dotClassName,n=P6(),i=n.thumbnails,a=n.selectedIndex,o=n.scrollTo;return 0===i.length?null:(0,h.jsx)("div",{className:v()(jS.dots,t),children:i.map(function(e,t){var n,i,s;return(0,h.jsx)("button",{type:"button",onClick:function(){return o(t)},className:v()(jS.dot,(n={},i=jS["dot--active"],s=t===a,i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,n),r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===a},t)})})}},5923(e,t,r){"use strict";r.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var n=r(2974),i=r(240),a=r(2298),o=r(345),s=r(9405);function l(e){let t,r="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,(0,n.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)(this,e)}cycle(e,t,r){return(0,n.xy)(this,e,t,r)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,a.$T)(this)}compare(e){return(0,i.SE)(this,e)}}class c{#t;constructor(e=0,t=0,r=0,i=0){this.hour=e,this.minute=t,this.second=r,this.millisecond=i,(0,n.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.tY)(this,e)}subtract(e){return(0,n.YP)(this,e)}set(e){return(0,n.ib)(this,e)}cycle(e,t,r){return(0,n.gt)(this,e,t,r)}toString(){return(0,a.ot)(this)}compare(e){return(0,i.Nu)(this,e)}}class d{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)((0,n.ib)(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return(0,n.xy)(this,e,t,r);default:return(0,n.gt)(this,e,t,r)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,a.qk)(this)}compare(e){let t=(0,i.SE)(this,e);return 0===t?(0,i.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,r,i,a,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.E0)(this,e)}subtract(e){return(0,n.d_)(this,e)}set(e,t){return(0,n.D8)(this,e,t)}cycle(e,t,r){return(0,n.XH)(this,e,t,r)}toDate(){return(0,s.cd)(this)}toString(){return(0,a.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,r){"use strict";r.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>a});var n=r(5923),i=r(5504);function a(e,t,r,n){let i=(t=s(e,t))-1,a=-2;return r<=2?a=0:o(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={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 c{fromJulianDay(e){let t=e-1721426,r=Math.floor(t/146097),s=(0,i.z)(t,146097),u=Math.floor(s/36524),c=(0,i.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,i.z)(c,1461)/365),[p,h]=l(400*r+100*u+4*d+f+ +(4!==u&&4!==f)),m=e-a(p,h,1,1),y=2;e<a(p,h,3,1)?y=0:o(h)&&(y=1);let g=Math.floor(((m+y)*12+373)/367),v=e-a(p,h,g,1)+1;return new(0,n.ng)(p,h,g,v)}toJulianDay(e){return a(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,r){"use strict";r.d(t,{Ou:()=>x,Tr:()=>f,Yd:()=>h,ay:()=>p,cd:()=>b,gw:()=>m,oU:()=>s,tR:()=>y,uB:()=>v,yP:()=>g});var n=r(5923),i=r(2974),a=r(345),o=r(240);function s(e){return e=g(e,new(0,a.FG)),l((0,a.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,r,n,i,a,o){let s=new Date;return s.setUTCHours(n,i,a,o),s.setUTCFullYear(e,t-1,r),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:i,hour:a,minute:s,second:u}=d(e,t);return l(r,n,i,a,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let r=c.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let e of n)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function f(e,t,r="compatible"){var n,i,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===r&&!(0,o.rS)()){c=g(c,new(0,a.FG));let e=new Date,t=(0,a.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),h=u(p-864e5,t),m=u(p+864e5,t),v=(n=c,((i=p-h)==(l=p-m)?[i]:[i,l]).filter(e=>{var r;let i;return r=n,i=d(e,t),r.year===i.year&&r.month===i.month&&r.day===i.day&&r.hour===i.hour&&r.minute===i.minute&&r.second===i.second}));if(1===v.length)return v[0];if(v.length>1)switch(r){case"compatible":case"earlier":return v[0];case"later":return v[v.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(p-h,p-m);case"compatible":case"later":return Math.max(p-h,p-m);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function h(e,t){let r=u(e,t),i=new Date(e+r),a=i.getUTCFullYear(),o=i.getUTCMonth()+1,s=i.getUTCDate(),l=i.getUTCHours(),c=i.getUTCMinutes(),d=i.getUTCSeconds(),f=i.getUTCMilliseconds();return new(0,n.Ip)(a<1?"BC":"AD",a<1?-a+1:a,o,s,t,r,l,c,d,f)}function m(e){return new(0,n.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let r=0,i=0,a=0,o=0;if("timeZone"in e)({hour:r,minute:i,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:i,second:a,millisecond:o}=t),new(0,n._l)(e.calendar,e.era,e.year,e.month,e.day,r,i,a,o)}function g(e,t){if((0,o.Jg)(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,i.AU)(n),n}function v(e,t,r){return e instanceof n.Ip?e.timeZone===t?e:w(e,t):h(f(e,t,r),t)}function b(e){return new Date(s(e)-e.offset)}function w(e,t){return g(h(s(e)-e.offset,t),e.calendar)}function x(e){return w(e,(0,o.Xj)())}},227(e,t,r){"use strict";let n,i;r.d(t,{d:()=>Z});var a=r(5923),o=r(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=(0,o.LA)(t.era,t.year);return new(0,a.ng)(this,r- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,r]=(0,o.f5)(e.year+-543);return new(0,a.ng)(t,r,e.month,e.day)}function u(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function c(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-u(e,r,1,1))/30),i=t+1-u(e,r,n,1);return[r,n,i]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,r,n]=c(1723856,e),i="AM";return t<=0&&(i="AA",t+=5500),new(0,a.ng)(this,i,t,r,n)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class h extends p{fromJulianDay(e){let[t,r,n]=c(1723856,e);return t+=5500,new(0,a.ng)(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class m extends p{fromJulianDay(e){let[t,r,n]=c(1824665,e),i="CE";return t<=0&&(i="BCE",t=1-t),new(0,a.ng)(this,i,t,r,n)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=r(5504);let g=765433;function v(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),r=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(r+1),7)&&(r+=1),r}function w(e){let t,r;return b(e)+(t=b(e-1),r=b(e),b(e+1)-r==356?2:+(r-t==382))}function x(e){return w(e+1)-w(e)}function S(e,t){if(t>=6&&!v(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let r=function(e){let t=x(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===r?30:29:3===t?0===r?29:30:6===t?30*!!v(e):30}class E{fromJulianDay(e){let t=e-347997,r=Math.floor((25920*t/g*19+234)/235)+1,n=w(r),i=Math.floor(t-n);for(;i<1;)i=Math.floor(t-(n=w(--r)));let o=1,s=0;for(;s<i;)s+=S(r,o),o++;let l=i-(s-=S(r,--o));return new(0,a.ng)(this,r,o,l)}toJulianDay(e){let t=w(e.year);for(let r=1;r<e.month;r++)t+=S(e.year,r);return t+e.day+347997}getDaysInMonth(e){return S(e.year,e.month)}getMonthsInYear(e){return v(e.year)?13:12}getDaysInYear(e){return x(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(v(t.year)&&!v(e.year)&&t.month>6?e.month--:!v(t.year)&&v(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class D extends o.FG{fromJulianDay(e){let t,r,n,i=super.fromJulianDay(e),s=i.year-78,l=e-(0,o.rG)(i.era,i.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(i.year-1)?31:30)+155+90+10):(t=(0,o.U_)(i.year)?31:30,l-=80),l<t)r=1,n=l+1;else{let e=l-t;e<155?(r=Math.floor(e/31)+2,n=e%31+1):(e-=155,r=Math.floor(e/30)+7,n=e%30+1)}return new(0,a.ng)(this,s,r,n)}toJulianDay(e){let t,r,n=e.year+78,[i,a]=(0,o.f5)(n);return((0,o.U_)(a)?(t=31,r=(0,o.rG)(i,a,3,21)):(t=30,r=(0,o.rG)(i,a,3,22)),1===e.month)?r+e.day-1:(r+=t+31*Math.min(e.month-2,5),e.month>=8&&(r+=(e.month-7)*30),r+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function P(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+O(t,n,1,1)))/29.5)+1),o=r-O(t,n,i,1)+1;return new(0,a.ng)(e,n,i,o)}function j(e){return(14+11*e)%30<11}class k{fromJulianDay(e){return P(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&j(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return j(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class C extends k{fromJulianDay(e){return P(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function T(e){return 460322+i[e-1300]}function A(e,t){return(n[e-1300]&1<<11-(t-1))==0?29:30}function R(e,t){let r=T(e);for(let n=1;n<t;n++)r+=A(e,n);return r}function I(e){return i[e+1-1300]-i[e-1300]}class M extends k{constructor(){if(super(),this.identifier="islamic-umalqura",n||(n=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!i){i=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){i[t-1300]=e;for(let r=1;r<=12;r++)e+=A(t,r)}}}fromJulianDay(e){let t=e-1948440,r=T(1300),n=T(1600);if(t<r||t>n)return super.fromJulianDay(e);{let e=1299,r=1,n=1;for(;n>0;){n=t-T(++e)+1;let i=I(e);if(n===i){r=12;break}if(n<i){let t=A(e,r);for(r=1;n>t;)n-=t,t=A(e,++r);break}}return new(0,a.ng)(this,e,r,t-R(e,r)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+R(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):A(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):I(e.year)}}let N=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],L=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function B(e){let t=N.findIndex(([t,r,n])=>!!(e.year<t)||e.year===t&&!!(e.month<r)||e.year===t&&e.month===r&&!!(e.day<n));return -1===t?N.length-1:0===t?0:t-1}function V(e){let t=_[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,a.ng)(e.year+t,e.month,e.day)}class $ extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=B(t);return new(0,a.ng)(this,F[r],t.year-_[r],t.month,t.day)}toJulianDay(e){return super.toJulianDay(V(e))}balanceDate(e){let t=V(e),r=B(t);F[r]!==e.era&&(e.era=F[r],e.year=t.year-_[r]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),r=L[t];if(null!=r){let[n,i,a]=r,o=n-_[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,r,n]=N[t];e.month=Math.max(r,e.month),e.month===r&&(e.day=Math.max(n,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),r=N[t],n=N[t+1];if(null==n)return 9999-r[0]+1;let i=n[0]-r[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(V(e))}getMinimumMonthInYear(e){let t=W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function W(e){if(1===e.year)return N[F.indexOf(e.era)]}let U=[0,31,62,93,124,155,186,216,246,276,306,336];class z{fromJulianDay(e){let t=e-1948320,r=1+Math.floor((33*t+3)/12053),n=t-(365*(r-1)+Math.floor((8*r+21)/33)),i=n<216?Math.floor(n/31):Math.floor((n-6)/30),o=n-U[i]+1;return new(0,a.ng)(this,r,i+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=U[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class K extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[r,n]=G((0,o.LA)(t.era,t.year));return new(0,a.ng)(this,r,n,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,r]=G(H(e));e.era=t,e.year=r}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,r]=(0,o.f5)(H(e));return new(0,a.ng)(t,r,e.month,e.day)}function Z(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new h;case"coptic":return new m;case"hebrew":return new E;case"indian":return new D;case"islamic-civil":return new k;case"islamic-tbla":return new C;case"islamic-umalqura":return new M;case"japanese":return new $;case"persian":return new z;case"roc":return new K;default:return new(0,o.FG)}}},2974(e,t,r){"use strict";r.d(t,{AU:()=>u,D8:()=>O,E0:()=>S,Rb:()=>h,Re:()=>d,WQ:()=>a,XH:()=>D,YP:()=>v,d_:()=>E,gt:()=>w,hZ:()=>f,ib:()=>p,tY:()=>g,xy:()=>b});var n=r(9405),i=r(345);function a(e,t){let r=e.copy(),n="hour"in r?y(r,t):0;o(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,s(r),l(r),r.day+=7*(t.weeks||0),r.day+=t.days||0,r.day+=n,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){let e=r.calendar.isInverseEra?.(r);r.year=i,r.month=e?1:r.calendar.getMonthsInYear(r),r.day=e?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(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 u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function d(e,t){return a(e,c(t))}function f(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),u(r),r}function p(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),h(r),r}function h(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),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 m(e,t){let r=e%t;return r<0&&(r+=t),r}function y(e,t){let r;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=m(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m(e.minute,60),r=Math.floor(e.hour/24),e.hour=m(e.hour,24),r}function g(e,t){let r=e.copy();return y(r,t),r}function v(e,t){return g(e,c(t))}function b(e,t,r,n){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=x(a,r,0,t.length-1,n?.round),i.era=t[a],u(i);break}case"year":i.calendar.isInverseEra?.(i)&&(r=-r),i.year=x(e.year,r,-1/0,9999,n?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=x(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":i.day=x(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),u(i),i}function w(e,t,r,n){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if(n?.hourCycle===12){let e=t>=12;a=12*!!e,o=e?23:11}i.hour=x(t,r,a,o,n?.round);break}case"minute":i.minute=x(e.minute,r,0,59,n?.round);break;case"second":i.second=x(e.second,r,0,59,n?.round);break;case"millisecond":i.millisecond=x(e.millisecond,r,0,999,n?.round);break;default:throw Error("Unsupported field "+t)}return i}function x(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function S(e,t){let r;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let i=a((0,n.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=(0,n.Tr)(i,e.timeZone)}else r=(0,n.oU)(e)-e.offset;r+=t.milliseconds||0,r+=1e3*(t.seconds||0),r+=6e4*(t.minutes||0),r+=36e5*(t.hours||0);let i=(0,n.Yd)(r,e.timeZone);return(0,n.yP)(i,e.calendar)}function E(e,t){return S(e,c(t))}function D(e,t,r,a){switch(t){case"hour":{let t=0,o=23;if(a?.hourCycle===12){let r=e.hour>=12;t=12*!!r,o=r?23:11}let s=(0,n.tR)(e),l=(0,n.yP)(p(s,{hour:t}),new(0,i.FG)),u=[(0,n.Tr)(l,e.timeZone,"earlier"),(0,n.Tr)(l,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===l.day)[0],c=(0,n.yP)(p(s,{hour:o}),new(0,i.FG)),d=[(0,n.Tr)(c,e.timeZone,"earlier"),(0,n.Tr)(c,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,n.oU)(e)-e.offset,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*x(h,r,Math.floor(u/36e5),Math.floor(d/36e5),a?.round)+m,(0,n.yP)((0,n.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return w(e,t,r,a);case"era":case"year":case"month":case"day":{let i=b((0,n.tR)(e),t,r,a),o=(0,n.Tr)(i,e.timeZone);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,r){let i=(0,n.tR)(e),a=p(f(i,t),t);if(0===a.compare(i))return e;let o=(0,n.Tr)(a,e.timeZone,r);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}},240(e,t,r){"use strict";r.d(t,{p9:()=>x,$I:()=>D,RZ:()=>j,tB:()=>f,rS:()=>b,kq:()=>E,Jg:()=>l,Py:()=>k,tF:()=>o,Xj:()=>v,Nu:()=>m,SJ:()=>d,SE:()=>h,ro:()=>a,D:()=>S,ZI:()=>C,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>w});var n=r(9405);let i={"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 a(e,t){return t=(0,n.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,n.yP)(t,e.calendar),e=w(e),t=w(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&a(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return a(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,r){let n=Math.ceil(e.calendar.toJulianDay(e)+1-(r?c[r]:function(e){let t=P.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo()))return P.set(e,t),t.firstDay}let r=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];t="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&i[r]||0};P.set(e,t)}return t.firstDay}(t)))%7;return n<0&&(n+=7),n}function f(e){return(0,n.Yd)(Date.now(),e)}function p(e){return(0,n.gw)(f(e))}function h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function m(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let g=null;function v(){return null==g&&(g=new Intl.DateTimeFormat().resolvedOptions().timeZone),g}function b(){return!1}function w(e){return e.subtract({days:e.day-1})}function x(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function S(e){return w(e.subtract({months:e.month-1}))}function E(e,t,r){let n=d(e,t,r);return e.subtract({days:n})}function D(e,t,r){return E(e,t,r).add({days:6})}let O=new Map,P=new Map;function j(e,t,r){let n=e.calendar.getDaysInMonth(e);return Math.ceil((d(w(e),t,r)+n)/7)}function k(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function C(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,r){"use strict";r.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>m,ot:()=>f,qk:()=>h});var n=r(5923),i=r(9405),a=r(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let r=new(0,n.ng)(d(t[1],0,9999),d(t[2],1,12),1);return r.day=d(t[3],1,r.calendar.getDaysInMonth(r)),r}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let r=d(t[1],-9999,9999),i=new(0,n._l)(r<1?"BC":"AD",r<1?-r+1:r,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return i.day=d(t[3],0,i.calendar.getDaysInMonth(i)),i}function d(e,t,r){let n=Number(e);if(n<t||n>r)throw RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function f(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 p(e){let t,r=(0,i.yP)(e,new(0,a.FG));return t="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${t}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function h(e){return`${p(e)}T${f(e)}`}function m(e){var t;let r,n,i,a,o;return`${h(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),i=Math.floor(t%36e5/6e4),a=Math.floor(t%36e5%6e4/1e3),o=`${r}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`,0!==a&&(o+=`:${String(a).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,r){"use strict";function n(e,t){return e-t*Math.floor(e/t)}r.d(t,{z:()=>n})},99(e,t,r){"use strict";r.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var n=r(9726),i=r(5565),a=r(8048);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",n=arguments.length>2?arguments[2]:void 0;return s(function(){var i,a,o,s,d,p,h;return u(this,function(u){switch(u.label){case 0:return i=(null==n?void 0:n.maxLoadingTime)&&!(n.maxLoadingTime<=0)?n.maxLoadingTime:6e5,a=void 0,[4,Promise.race([f(e,null==n?void 0:n.importMap),new Promise(function(t,r){a=setTimeout(function(){var t;r(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=i)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},i)})])];case 1:var m;if(u.sent(),a&&clearTimeout(a),o=c(e),!((void 0===(m=s=window[o])?"undefined":l(m))==="object"&&null!==m&&"init"in m&&"function"==typeof m.init&&"get"in m&&"function"==typeof m.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(r.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(h="Container for ".concat(e," did not return an ESM module as expected")),Error(h);return[2,p]}})})()}function f(e,t){return s(function(){var r,o,s,l,d,f,m;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(r=c(e),window[r])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,a.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,r){var n,i,a,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[h];if(s||(s=window[h]=new Set([])),o)s.has(e)?(a=function(){n&&o.removeEventListener("load",n),i&&o.removeEventListener("error",i)},n=function(){a(),t(null)},i=function(e){a(),r(e.message)},o.addEventListener("load",n),o.addEventListener("error",i)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var n,i="Failed to load script from ".concat(e);console.error(i,t),r(null!=(n=t.message)?n:i)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return m=u.sent(),f&&(0,n.Vt)({kind:"error",title:(0,i.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,i.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,i.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,a.w_)(),window.location.reload()}}),[2,Promise.reject(m)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,a.F$)()]})})()}var h=Symbol("__egen_script_loading")},8048(e,t,r){"use strict";function n(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)})}}function a(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}r.d(t,{BX:()=>E,E:()=>x,F$:()=>h,SM:()=>O,fd:()=>w,o5:()=>y,q1:()=>b,tK:()=>m,uT:()=>g,w_:()=>S,xI:()=>v});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return i(function(){var e,t,r,n,i,o,s;return a(this,function(a){switch(a.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],r=0,a.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],a.label=2;case 2:if(a.trys.push([2,7,,8]),!n.src)return[3,5];return[4,fetch(n.src)];case 3:return i=a.sent(),o=t.push,[4,i.json()];case 4:return o.apply(t,[a.sent()]),[3,6];case 5:n.textContent&&t.push(JSON.parse(n.textContent)),a.label=6;case 6:return[3,8];case 7:return s=a.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(r),s),[3,8];case 8:return r++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function p(){var e={};try{for(var t=v(),r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=n.slice(o.length);if(!t.includes(i)){var a=localStorage.getItem(n);a&&(e[i]=a)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function h(){return i(function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function m(){return i(function(){return a(this,function(e){return[2,d()]})})()}function y(){return i(function(){return a(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function g(e){if(!u)return{imports:{}};if(e){for(var t={},r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=localStorage.getItem(n);i&&(t[n.slice(o.length)]=i)}}return{imports:t}}return p()}function v(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&v().includes(e)}function w(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function x(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function S(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(o))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function E(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var D=!1;function O(){!D&&(D=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,r){"use strict";r.d(t,{xI:()=>i.xI,E:()=>i.E,eH:()=>S,SM:()=>i.SM,zU:()=>g,BX:()=>i.BX,w_:()=>i.w_,Y6:()=>v,Yv:()=>n.Yv,tK:()=>i.tK,Ln:()=>n.Ln,FM:()=>y,o5:()=>i.o5,fd:()=>i.fd,Tx:()=>w,KI:()=>x,rL:()=>n.rL,WY:()=>b,F$:()=>i.F$,zC:()=>n.zC,_m:()=>D,q1:()=>i.q1,uT:()=>i.uT});var n=r(99),i=r(8048),a=r(2235);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,r,n,i,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],r=0,s.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],s.label=2;case 2:if(s.trys.push([2,7,,8]),i=void 0,!n.src)return[3,5];return[4,fetch(n.src)];case 3:return[4,s.sent().json()];case 4:return i=s.sent(),[3,6];case 5:n.textContent&&(i=JSON.parse(n.textContent)),s.label=6;case 6:return i&&(0,a.S)(i)&&t.push(i),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(r),o),[3,8];case 8:return r++,[3,1];case 9:return[2,h(t)]}})})()}function h(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function m(){return s(function(){var e,t,r,n,i,o,c,d,f,p,h,m;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],r=0;r<localStorage.length;r++)(null==(n=localStorage.key(r))?void 0:n.startsWith(u))&&(i=localStorage.getItem(n))&&t.push({moduleName:n.slice(u.length),raw:i});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,r=e.raw;return s(function(){var e,n;return l(this,function(i){switch(i.label){case 0:if(e=JSON.parse(r),(0,a.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,i.sent().json()];case 2:if(n=i.sent(),(0,a.j)(n))return[2,{moduleName:t,routes:n}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(h=p.next()).done);c=!0)m=h.value,"fulfilled"===m.status?e[m.value.moduleName]=m.value.routes:console.warn("[route-maps] Failed to load route override",m.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(r){switch(r.label){case 0:return[4,p()];case 1:if(e=r.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,m()];case 3:t=r.sent(),r.label=4;case 4:return[2,h([e,t])]}})})()}function g(){return s(function(){return l(this,function(e){return[2,p()]})})()}function v(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,m()];case 2:return[2,h.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var r=localStorage.key(t);if(null==r?void 0:r.startsWith(u)){var n=localStorage.getItem(r);n&&(e[r.slice(u.length)]=n)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var r,n=JSON.parse(t);if(!(0,a.j)(n))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(n))}else if(r=URL,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,a.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function x(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function S(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(u))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var E=null;function D(){return E||(E=(d="development"===window.spaEnv)?m().then(function(e){f=e}):Promise.resolve())}},8507(e,t,r){"use strict";r.d(t,{J:()=>a,N:()=>i});var n=r(9726);function i(e){var t=o(e);setTimeout(function(){throw t})}function a(){var e=Error();return function(t){var r=o(t);r.stack+="\nAsync stacktrace:\n".concat(e.stack),i(t)}}function o(e){var t,r;if(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(r){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,n.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,n.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,r){"use strict";r.d(t,{dX:()=>n.dX,wE:()=>n.wE,_3:()=>n._3,uN:()=>n.uN,$F:()=>n.$F,Gz:()=>n.Gz,eb:()=>n.eb,Sj:()=>n.Sj,mv:()=>n.mv,yp:()=>l,PQ:()=>n.PQ});var n=r(6014),i=r(4356),a=r(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,r={globals:s({},a.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,i.A)(e):e,r),function(e){if(Array.isArray(e))return o(e)}(t=r.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return r=e,n=t,u(r.argument,n);case"BinaryExpression":return i=e,a=t,[u(i.left,a),u(i.right,a)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,h=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),h;case"ArrowFunctionExpression":return function(e,t){var r=s({},t);r.isLocalExpression=!0;var n=null!=(d=null==(p=e.params)?void 0:p.map(c(r)))?d:[],i=null!=(f=u(e.body,r))?f:[];if(i&&Array.isArray(i)){var a=!0,o=!1,l=void 0;try{for(var d,f,p,h,m=i[Symbol.iterator]();!(a=(h=m.next()).done);a=!0){var y=h.value;n.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{a||null==m.return||m.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return m=e,y=t,u(m.object,y),void((g=s({},y)).isLocalExpression=!0,u(m.property,g));case"ArrayExpression":return v=e,b=t,void(null==(w=v.elements)||w.map(c(b)));case"SequenceExpression":return x=e,S=t,void(null==(E=x.expressions)||E.map(c(S)));case"NewExpression":return D=e,O=t,void(null==(P=D.arguments)||P.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var r,n,i,a,o,l,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A=e,R=t;if(!(A.name in R.globals))if(R.isLocalExpression)return A.name;else R.variables.add(A.name);return;case"TemplateLiteral":return j=e,k=t,void(null==(C=j.expressions)||C.map(c(k)),null==(T=j.quasis)||T.map(c(k)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,r){"use strict";r.r(t),r.d(t,{ActionMenu:()=>v.WyE,ActionMenuButton:()=>v.EDM,ActionMenuButton2:()=>v.Wjo,ActionableNotificationComponent:()=>v.drd,ActivityIcon:()=>v.npY,AddIcon:()=>v.REV,AllergiesIcon:()=>v.UgN,AppointmentsAltPictogram:()=>v.MnZ,AppointmentsPictogram:()=>v.B1u,ArrowDownIcon:()=>v.ZLN,ArrowLeftIcon:()=>v.A60,ArrowRightIcon:()=>v.flY,ArrowUpIcon:()=>v.Kpk,Assessment1Pictogram:()=>v.IHy,Assessment2Pictogram:()=>v.$iy,AttachmentIcon:()=>v.PtA,BabyIcon:()=>v.qYP,BloodBankPictogram:()=>v.nvs,Breakpoint:()=>v.EA,CalendarHeatMapIcon:()=>v.mmM,CalendarIcon:()=>v.CTc,CardHeader:()=>v.aRn,CardModal:()=>v.oVc,CardiologyPictogram:()=>v.uU$,CaretDownIcon:()=>v.bDP,CaretLeftIcon:()=>v.eCO,CaretRightIcon:()=>v.JJd,CaretUpIcon:()=>v.SwV,Carousel:()=>v.FNf,CarouselContext:()=>v.Ycj,CascadingNavDropdown:()=>v._PX,ChartAverageIcon:()=>v.ZHE,ChartLineIcon:()=>v.SCH,CheckmarkFilledIcon:()=>v.FtQ,CheckmarkOutlineIcon:()=>v.pm$,ChemistryIcon:()=>v.W4t,ChevronDownIcon:()=>v.D3D,ChevronLeftIcon:()=>v.YJP,ChevronRightIcon:()=>v.vKP,ChevronUpIcon:()=>v.Mtm,CircularGallery:()=>v.GF9,ClassificationTags:()=>v.QpY,CloseFilledIcon:()=>v.oCk,CloseIcon:()=>v.USm,CloseOutlineIcon:()=>v.Wdn,ColumnWithSearch:()=>v.Fny,ConditionsIcon:()=>v.ci3,CtScanPictogram:()=>v.DeE,CustomOverflowMenu:()=>v.TQT,CustomOverflowMenuItem:()=>v.cxd,DashboardExtension:()=>v.cJN,DecoratedCard:()=>v.mqB,DentistryPictogram:()=>v.TNY,DocumentAttachmentIcon:()=>v.Ce6,DocumentIcon:()=>v.pyG,DownloadIcon:()=>v.s3U,DrugOrderIcon:()=>v.uqj,DynamicField:()=>v.koC,EditIcon:()=>v.qUP,EgenDatePicker:()=>v.O_s,EgenDateRangePicker:()=>v.tKr,EmergencyDepartmentPictogram:()=>v.sgv,EmptyCard:()=>v.slS,EmptyCardIllustration:()=>v.Ua6,EntityBannerActionsMenu:()=>v.M9T,EntityBannerContactDetails:()=>v.EGc,EntityBannerEntityIdentifiers:()=>v.teX,EntityBannerEntityInfo:()=>v.Zpy,EntityDetailBrowser:()=>v.NIm,EntityPhoto:()=>v.Klm,ErrorCard:()=>v.JrA,ErrorState:()=>v.W5n,EventScheduleIcon:()=>v.XaH,EventsIcon:()=>v.Jc,FacilityPictogram:()=>v.ECF,FolderGallery:()=>v.fNA,GenderFemaleIcon:()=>v.XB2,GenderMaleIcon:()=>v.szA,GenderOtherIcon:()=>v.hXZ,GenderUnknownIcon:()=>v.x1U,GenericOrderTypeIcon:()=>v.naI,GeriatricsPictogram:()=>v.SQq,GradientBlur:()=>v.wtE,GroupAccessIcon:()=>v.Pyy,GroupIcon:()=>v.nFg,GynaecologyPictogram:()=>v.owH,HomePictogram:()=>v.KKH,HospitalBedIcon:()=>v.jMM,Icon:()=>v.Int,ImageMedicalIcon:()=>v.Ix5,ImageSwiper:()=>v.QeH,InPatientPictogram:()=>v.thS,InformationFilledIcon:()=>v._e_,InformationIcon:()=>v.uQc,InformationSquareIcon:()=>v.ZrL,InteractiveSelector:()=>v.wmT,InventoryManagementIcon:()=>v.vFG,LabOrderIcon:()=>v.hi6,LaboratoryPictogram:()=>v.ehn,Labs2Pictogram:()=>v.rpF,LayoutGrid:()=>v.D6i,LeftNavMenu:()=>v.Ojh,LiquidGlassCard:()=>v.lok,ListCheckedIcon:()=>v.Rt$,LocationIcon:()=>v.BT6,LocationPicker:()=>v.MTs,MaterialOrderIcon:()=>v.zZ0,MaximizeIcon:()=>v._Xm,MaybeIcon:()=>v.oy0,MaybePictogram:()=>v.bmf,MedicationIcon:()=>v.Fnj,MenuToggleButton:()=>v.qLc,MessageQueueIcon:()=>v.uFu,MicroscopeIcon:()=>v.u4h,MoneyIcon:()=>v.yBj,MotherIcon:()=>v.XEq,MovementIcon:()=>v.lyJ,Notification:()=>v.Eg0,NumericDataPoint:()=>v.YiA,ObstetricsPictogram:()=>v.Bk2,OverflowMenuHorizontalIcon:()=>v.rv3,OverflowMenuVerticalIcon:()=>v.Rnm,PageHeader:()=>v.zYs,PageHeaderContent:()=>v.gpz,Pagination:()=>v.dKS,PasswordIcon:()=>v.BGy,PatientListsPictogram:()=>v.$2H,PatientSearchPictogram:()=>v.cxq,PatientsPictogram:()=>v.X25,PaymentsDeskPictogram:()=>v.dNG,PedestrianFamilyIcon:()=>v.PPo,PenIcon:()=>v.rZj,Pharmacy2Pictogram:()=>v.Q92,PharmacyPictogram:()=>v.w21,Pictogram:()=>v.bF1,PrinterIcon:()=>v.wwY,ProcedureOrderIcon:()=>v.H0x,ProgramsIcon:()=>v.lq$,RadiologyIcon:()=>v.SA3,ReferralOrderIcon:()=>v.tCH,RegistrationPictogram:()=>v.et7,RenewIcon:()=>v.JTN,ReportIcon:()=>v.cQD,ResetIcon:()=>v.NAP,ResponsiveWrapper:()=>v.KFv,SaveIcon:()=>v.LPu,SearchIcon:()=>v.WIv,Select:()=>v.l6P,SelectContent:()=>v.gCo,SelectContext:()=>v.CW5,SelectTrigger:()=>v.bqE,ServiceQueuesPictogram:()=>v.Y21,SettingsIcon:()=>v.Zes,Sheet:()=>v.cjw,SheetClose:()=>v.kNS,SheetContent:()=>v.hae,SheetContext:()=>v.P8U,SheetDescription:()=>v.Qsg,SheetFooter:()=>v.XWC,SheetHeader:()=>v.Fm9,SheetOverlay:()=>v.YP7,SheetPortal:()=>v.yde,SheetRoot:()=>v.KId,SheetTitle:()=>v.qpM,SheetTrigger:()=>v.CGR,ShoppingCartAddItemIcon:()=>v.Uve,ShoppingCartArrowDownIcon:()=>v.Lfm,ShoppingCartIcon:()=>v.aJF,Slider:()=>v.Apm,SliderContainer:()=>v.Jbi,SliderDotButton:()=>v.vY7,Snackbar:()=>v.qb_,StaggeredMenuPanel:()=>v._kB,StickyNoteAddIcon:()=>v.OC$,StockManagementPictogram:()=>v.q__,SwitcherIcon:()=>v.RFy,SyringeIcon:()=>v.hZg,TableBatchActions:()=>v.GGC,TableIcon:()=>v.KbA,TableOfContentsIcon:()=>v.pYV,TestimonialCard:()=>v._f_,TestimonialCardStack:()=>v.uDL,ThumbsSlider:()=>v.BM2,TimeIcon:()=>v.b1c,Toast:()=>v.y8,ToolsIcon:()=>v.dwU,TransferPictogram:()=>v.SKX,TranslateIcon:()=>v.SwB,TrashCanIcon:()=>v.EJV,TreeViewAltIcon:()=>v.MO4,TriagePictogram:()=>v.XHu,UserAvatarIcon:()=>v.yDT,UserFollowIcon:()=>v.osL,UserIcon:()=>v.nys,UserXrayIcon:()=>v.feL,ViewIcon:()=>v.tCQ,ViewOffIcon:()=>v.Oi_,WarningIcon:()=>v.id,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>v.ozP,WorkspaceContainer:()=>v.XvC,WorkspaceNotification:()=>v.tMf,XrayPictogram:()=>v.B2u,activateOfflineCapability:()=>h.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>w.KW,ageAsDuration:()=>w.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>h.FO,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>h.xN,canCloseWorkspaceWithoutPrompting:()=>v.SvQ,cancelPrompt:()=>v.zlb,cardModalAnimationPresets:()=>v.QsE,changeWorkspaceContext:()=>v.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>v.G_3,closeWorkspace:()=>v.MJ8,closeWorkspaceGroup2:()=>v.biy,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createDashboard:()=>v.n6L,createErrorHandler:()=>l.J,defaultValidation:()=>v.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>h.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>w.QC,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>h.T$,egenOfflineResponseBodyHttpHeaderName:()=>h.Q1,egenOfflineResponseStatusHttpHeaderName:()=>h.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>v.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatEntityName:()=>w.MS,formatPartialDate:()=>w.LW,formatPatientName:()=>w.Qr,formatTime:()=>w.fU,formattedName:()=>w.qK,generateOfflineUuid:()=>h.sA,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>h.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>h.FE,getDynamicOfflineDataEntriesFor:()=>h.WA,getDynamicOfflineDataHandlers:()=>h.qb,getEgenServiceWorker:()=>h.b1,getEntityName:()=>w.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>h.C$,getFullSynchronizationItemsFor:()=>h.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getOfflineDb:()=>h.e,getOfflineEntityDataStore:()=>h.sm,getOfflineSynchronizationStore:()=>h.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>w.Vp,getPromptBeforeClosingFcn:()=>v.OeE,getRegisteredWorkspace2Names:()=>v.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>h.Gp,getSynchronizationItems:()=>h.pb,getSynchronizationItemsFor:()=>h.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>v.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>v.XzH,goBackInHistory:()=>p.tA,iconIds:()=>v.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>v.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isImportMapOverrideDisabled:()=>o.q1,isOfflineUuid:()=>h.bO,isOnline:()=>w.sc,isVersionSatisfied:()=>w.rX,jsep:()=>u.PQ,launchWorkspace:()=>v.TC2,launchWorkspace2:()=>v.pTx,launchWorkspaceGroup:()=>v.aN0,launchWorkspaceGroup2:()=>v.GYk,leftNavStore:()=>c.Gp,loadLifeCycles:()=>y.oB,matchLocale:()=>w.w7,messageEgenServiceWorker:()=>h.Oc,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>v.Fmw,offlineUuidPrefix:()=>h.jU,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>v.vJW,preloadImport:()=>o.zC,promptBeforeClosing:()=>v.F3N,promptForClosingWorkspaces:()=>v.hLN,putDynamicOfflineData:()=>h.yD,putDynamicOfflineDataFor:()=>h.ff,queueSynchronizationItem:()=>h.Zr,queueSynchronizationItemFor:()=>h.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>h.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerOfflineEntityHandler:()=>h.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>h.NU,removeDynamicOfflineDataFor:()=>h.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>v.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>v.CU$,renderLoadingSpinner:()=>v.uWG,renderSnackbars:()=>v.ZLm,renderToasts:()=>v.f1b,renderWorkspaceWindowsAndMenu:()=>v.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>v._1W,retry:()=>w.L5,runSynchronization:()=>h.AO,saveWorkSession:()=>s.XM,selectPreferredName:()=>w.VO,setCurrentOfflineMode:()=>h.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setLeftNav:()=>c.Vx,setupDynamicOfflineDataHandler:()=>h.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>v.EPe,setupOfflineSync:()=>h.cy,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>w.bN,showActionableNotification:()=>v.ZyP,showModal:()=>v.toY,showNotification:()=>v.Dsh,showSnackbar:()=>v.tdF,showToast:()=>v.P0c,showWorkspacePrompts:()=>v.ctS,slugify:()=>o.Yv,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>h.Td,syncDynamicOfflineData:()=>h.u1,syncOfflineEntityData:()=>h.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,unsetLeftNav:()=>c.sr,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>v._RD,useCarouselContext:()=>v.RGi,useCustomOverflowMenu:()=>v.ckU,useEntityPhoto:()=>v.XhU,useSelectContext:()=>v.hPu,useSheetContext:()=>v.sCq,useWorkspace2Context:()=>v.WO_,useWorkspace2Store:()=>v.AkA,useWorkspaces:()=>v.CH0,workspace2Store:()=>c.J_,workspace2StoreActions:()=>v.cJy,workspaceStore:()=>v.x9q});var n=r(7530),i={};for(let e in n)"default"!==e&&(i[e]=()=>n[e]);r.d(t,i);var a=r(5918),i={};for(let e in a)"default"!==e&&(i[e]=()=>a[e]);r.d(t,i);var o=r(101),s=r(7335),l=r(8507),u=r(9360),c=r(7477),d=r(5794),f=r(5895),p=r(7774),h=r(6563),m=r(2716),i={};for(let e in m)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>m[e]);r.d(t,i);var y=r(7334),g=r(7988),i={};for(let e in g)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","finishRegisteringAllApps","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","loadLifeCycles","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>g[e]);r.d(t,i);var v=r(9837),b=r(5565),w=r(7184)},5895(e,t,r){"use strict";r.d(t,{$3:()=>n.$3,FI:()=>n.FI,LQ:()=>n.LQ,Ss:()=>i.S,Vt:()=>n.Vt,Yt:()=>n.Yt,bJ:()=>n.bJ,bK:()=>n.bK,dX:()=>n.dX,ff:()=>n.ff,gj:()=>n.gj,j0:()=>i.j,ls:()=>n.ls,pc:()=>n.pc,sT:()=>n.sT});var n=r(9726),i=r(2235)},2235(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function a(e){return!!e&&(void 0===e?"undefined":i(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":i(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],i=t[1];return"string"==typeof r&&a(i)})}r.d(t,{S:()=>o,j:()=>a})},7334(e,t,r){"use strict";r.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var n=r(8400),i=r(5918),a=r(5794),o=r(7477),s=r(8148);function l(e,t){var r=t.name;if(!r)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(r," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var n=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:r,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var i=!0,a=!1,l=void 0;try{for(var u,c,d,f=n[Symbol.iterator]();!(i=(d=f.next()).done);i=!0){var p=d.value;(0,o.K0)(p,r)}}catch(e){a=!0,l=e}finally{try{i||null==f.return||f.return()}finally{if(a)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,i.registerModuleWithConfigSystem)(e);var r,n,d,f,p,h,m,y,g,v=null!=(r=t.extensions)?r:[],b=null!=(n=t.modals)?n:[],w=null!=(d=t.workspaces)?d:[],x=null!=(f=t.workspaceGroups)?f:[],S=null!=(p=t.featureFlags)?p:[],E=null!=(h=t.workspaceGroups2)?h:[],D=null!=(m=t.workspaceWindows2)?m:[],O=null!=(y=t.workspaces2)?y:[];null==(g=t.pages)||g.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var r,n;c.push((r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),n=n={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),v.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var r;(r=t.name)?t.component?(0,o.Ju)({name:r,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var r=t.name;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var n=t.title;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var i=!0,a=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;(0,o.io)({name:d,members:[r]})}}catch(e){a=!0,l=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var r,n;(n=t.name)?(0,o.io)({name:n,members:null!=(r=t.members)?r:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,E),function(e,t){(0,o.Qb)(e,t);var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(e,D),(0,o.Uh)(e,O),S.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,a.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,r=!1,i=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),h=null!=(u=d.containerDomId)?u:"egen-apps-container",m=document.getElementById(h),y="single-spa-application:".concat(p);if(m){var g=document.createElement("div");g.id=y,null==m||m.appendChild(g)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(h,'"; DOM element does not exist.'));!function(e,t){var r,i,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(r=function e(t){if(Array.isArray(t)){var r,i=t.map(e);return function(e){return i.some(function(t){return t(e)})}}return"string"==typeof t?(0,n.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(r=RegExp)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),i=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==i||i)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,a.jj)(l))&&r(e)}:r);(0,n.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){r=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw i}}}},8148(e,t,r){"use strict";r.d(t,{o:()=>u});var n=r(99),i=r(5918);function a(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,l,"next",e)}function l(e){a(o,n,i,s,l,"throw",e)}s(void 0)})}}function s(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var r,a,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(a=(r=t.indexOf("#"))>=0)?t.substring(0,r):e,d=a?t.substring(r+1):t,[4,(0,n.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var h,m;return[2,(h=u,m=f,o(function(){var e,t;return s(this,function(r){switch(r.label){case 0:if(h in l)return[3,5];if(null==m)return[3,1];return t=m,[3,3];case 1:return[4,(0,n.rL)(h)];case 2:t=r.sent(),r.label=3;case 3:return e=t,[4,l[h]=new Promise(function(t,r){if(Object.hasOwn(e,"startupApp")){var n=e.startupApp;if("function"==typeof n)return Promise.resolve(n()).then(function(){(0,i.registerModuleLoad)(h),t(null)}).catch(r)}(0,i.registerModuleLoad)(h),t(null)})];case 4:return r.sent(),[3,7];case 5:return[4,l[h]];case 6:r.sent(),r.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,r){"use strict";r.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>er,a7:()=>ee,L8:()=>K,Yq:()=>en,L3:()=>Z,fU:()=>ea,_U:()=>q,d4:()=>es,p0:()=>eh,kQ:()=>Y,qE:()=>eu,pf:()=>G});var n,i=r(9405),a=r(227);if("u">typeof navigator){let e=navigator;n=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;n=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch(e){return"en-US"}}(n||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},h={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},m={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(p).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...m,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},g={},v=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){return g[t.toLowerCase()]||(g[t.toLowerCase()]=new e(t)),g[t.toLowerCase()]}constructor(e=o){this.locale=e,this.lookups={...h},this.vars={...m};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let r=0;r<e.length;r++)t+=String(this.lookups.digit[e[r]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let r=this.lookups.meridiem[t?.toLowerCase()]||0,n=this.toInt(e);return n<12&&12===r&&(n+=12),12===n&&0===r&&(n=0),n}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,r,n]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(r)+this.toInt(n||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(f[e])return f[e];if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let t=u[e];if(!t)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(t),n=String.fromCharCode(t+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(t+e)]=e;return f[e]={group:`[${r}-${n}]`,lookup:i},f[e]}(this.numberingSystem);for(let r in this.lookups.digit=t,y)y.hasOwnProperty(r)&&(this.vars[r]=y[r].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((r,n)=>{["","k","kuu","kuuta"].forEach((i,a)=>{e[r+i+(a<2?"\\.?":"")]=!0,t[r+i]=n+1})});else{let r=[],n=e=>"month"===e.type;for(let e=0;e<12;e++)r.push(new Date(2017,e,1));for(let i of["full","long","medium"]){let a=Intl.DateTimeFormat(this.locale,{dateStyle:i});for(let o=0;o<12;o++){let s=a.formatToParts(r[o]).find(n).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===i?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=o+1)}}let i=Intl.DateTimeFormat(this.locale,{month:"short"});for(let a=0;a<12;a++){let o=i.formatToParts(r[a]).find(n).value.toLocaleLowerCase(this.locale);o=o.replace(/\.$/,""),e[`${o}\\.?`]=!0,t[o]=a+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let r=[],n={};for(let i of["long","short"]){let a=Intl.DateTimeFormat(this.locale,{weekday:i});for(let o=0;o<7;o++){let s=a.formatToParts(e[o]).find(t).value.toLocaleLowerCase(this.locale);"short"===i?(s=s.replace(/\.$/,""),r.push(`${s}\\.?`)):r.push(s),n[s]=o}}this.vars.DAYNAME=r.join("|"),this.lookups.dayname=n}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,r=[],n={},i=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let a=0;a<2;a++){let o=i.formatToParts(e[a]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);r.push(s),n[s]=12*a}this.vars.MERIDIEM=r.join("|"),this.lookups.meridiem=n}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],w={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},x=()=>new Date;function S(e){return function(t){let r={};for(let n=0,i=e.length;n<i;n++){let i=e[n];i&&(r[i]=t[n])}return r}}var E=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:r,formatter:n}){this.doneChecker=e,this.fallback=t,this.patterns=r,this.formatter=n}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),r={},n=!1;for(let e of this.patterns){let i=t.match(e.regex);if(!i)continue;n=!0;let a=e.handler(i);if(a){for(let[e,t]of Object.entries(a))e in r||void 0===t||(r[e]=t);if(t=(t=t.slice(0,i.index)+t.slice(i.index+i[0].length+1)).trim(),this.doneChecker(r,t))break}}return n?this.formatter(r):this.fallback(e)}},D=["year","month","day","hour","minute","second","millisecond","offset"],O={};function P(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var j=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],k={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...j],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:j,id:j,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function C(e,t=o){let r=function(e){if(!O[e]){var t,r;let n,i,a=v.factory(e);O[e]=new E({doneChecker:P,fallback:(t=e,function(e){let r=String(e).slice(0,50);return""===r&&(r="(empty string)"),{invalid:`Unable to parse "${r}" with locale "${t}"`}}),patterns:(n=[{name:"timestampWithOffset",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:a.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:S(["","year","month","day"])},{name:"korean",regex:a.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:S(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=x(),r=e[0].toLowerCase(),n={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[r];0!==n&&t.setTime(t.getTime()+n);let i={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===r?{...i,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:i}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,r,n]){t=parseFloat(t),"week"===(r=r.length<=2?w[r]:(r=r.replace(/s$/,"")).toLowerCase())&&(r="day",t*=7),("-"===e||n)&&(t*=-1);let i=x();return"millisecond"===r?i.setUTCMilliseconds(i.getUTCMilliseconds()+t):"second"===r?i.setUTCSeconds(i.getUTCSeconds()+t):"minute"===r?i.setUTCMinutes(i.getUTCMinutes()+t):"hour"===r?i.setUTCHours(i.getUTCHours()+t):"day"===r?i.setUTCDate(i.getUTCDate()+t):"month"===r?i.setUTCMonth(i.getUTCMonth()+t):"year"===r&&i.setUTCFullYear(i.getUTCFullYear()+t),{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:a.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:a.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:a.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:a.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:a.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:a.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:a.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:a.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:a.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:a.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:a.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:a.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:a.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:a.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:a.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:a.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:a.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:a.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:a.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:a.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:a.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:a.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:a.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:a.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:a.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:a.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:a.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:a.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:a.compile("_OFFSET_"),handler:S(["offset"])}],i=a.baseName.slice(0,5),b.includes(i)?n:n.filter(e=>!["mdy","md"].includes(e.name))),formatter:(r=a,function(e){let t={};for(let[n,i]of Object.entries(e))if("monthname"===n){if(i){let e=r.monthNameToInt(i);void 0!==e&&(t.month=e)}}else if("hour"===n&&e.meridiem){let n=r.h12ToInt(i,e.meridiem);void 0!==n&&(t.hour=n)}else if("zone"===n){if(i){let e=r.zoneToOffset(i);void 0!==e&&(t.offset=e)}}else if("offset"===n){let e=r.offsetToMinutes(i);void 0!==e&&(t.offset=e)}else if("millisecond"===n){let e=r.millisecondToInt(i);"number"==typeof e&&(t.millisecond=e)}else if(D.includes(n)){let e=r.toInt(i);"number"==typeof e&&(t[n]=e)}return t.year<100&&(t.year=l[e.year]),t.year&&"buddhist"===r.dateOptions.calendar&&(t.year-=543),t})})}return O[e]}(t),n=function(e,t){let r=k[t.slice(0,2).toLowerCase()];if(!r)return e;for(let[t,n]of r)e=e.replace(t,n);return e}(e,t);return r.attempt(n)}function T(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function A(e,t=o){let r=C(e,t),n=r.invalid?new s(NaN):T(r);return n.isValid()||(n.invalid=`Unable to parse date "${e}"`),n}function R(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):A(e,t)}Date.fromString=s.fromString=A,Date.fromAny=s.fromAny=R,"u">typeof window&&(window.anyDateParser={fromString:A,fromAny:R,fromObject:T,attempt:C});var I=r(208),M=r.n(I),N=r(648),L=r(6871),_=r(2147);let F=function(e){return null==e};var B=r(313),V=r(1851);function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){W(e,t,r[t])})}return e}function z(e,t){var r=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return r.get?r.get.call(e):r.value}M().extend(N),M().extend(_),M().extend(L);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&M()(e,H).isValid()}function K(e){return M()(e).isToday()}function Y(e){return G(e)?M()(e,H).toDate():null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=M()(e);return t&&(r=r.utc()),r.format(H)}function q(e){return M()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,r=X,n={writable:!0,value:new Map};if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,n)}return e=[{key:"register",value:function(e,t){z(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if(z(this,X).has(t))return z(this,X).get(t)}if(e.language&&z(this,X).has(e.language))return z(this,X).get(e.language);var r=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return z(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),r),r}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,r=null!=e?e:(0,V.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](r):r instanceof t)?r:new Intl.Locale(r))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=C(e,(0,V.J)());if(r.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(r.day)&&F(r.month)&&(r=Object.assign({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,B.A)(r,"day"),{date:r.day}));var n=M()().set(r).toDate();return F(r.year)&&(t.year=!1),F(r.month)&&(t.month=!1),F(r.date)&&(t.day=!1),en(n,t)}function en(e,t){var r,n,i=null!=(r=null==t?void 0:t.locale)?r:(0,V.J)(),a=new Intl.Locale(i),o=U({},et,{noToday:"am"===a.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,h=o.numberingSystem,m={calendar:null!=s?s:ee(a),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:h},y=M()(e).isToday();if(y&&!p)n=(n=new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(i)+n.slice(1);else{"en"===a.language&&(i="en-GB");var g=new Intl.DateTimeFormat(i,m).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==l&&f&&c&&(g=g.map(ei("-"))),"wide"==l&&(g=g.map(ei(" — "))),"ethiopic"===m.calendar&&(g=g.filter(function(e,t,r){return"era"!==e.type&&("literal"!==e.type||!(t<r.length-1)||"era"!==r[t+1].type)})),n=g.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(n+=", ".concat(ea(e))),n}var ei=function(e){return function(t,r,n){return"literal"!==t.type||" "!==t.value||r<n.length-1&&"era"===n[r+1].type?t:{type:"literal",value:e}}};function ea(e){return e.toLocaleTimeString((0,V.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var r,n;return en(e,(r=U({},t),n=n={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function es(e,t){var r=ee("string"==typeof t?new Intl.Locale(t):t);return r?(0,i.yP)(e,(0,a.d)(r)):e}function el(e,t){return new Intl.DurationFormat((0,V.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var r=C(e,(0,V.J)());return r.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(r.day&&!r.month&&(r=U({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=U({},(0,B.A)(r,"day"),{date:r.day})),M()(t).set(r))}return M()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function eh(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),n=arguments.length>2?arguments[2]:void 0,i=M()(r),a=eu(e,i);if(null==a)return null;if("string"==typeof n){var o=ef(n);return W({},o,i.diff(a,o))}var s=null!=n?n:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,r){for(var n=ec.indexOf(r),i=0;i<ec.length;i++){var a=ec[i];if(t.diff(e,a)>0)return i<=n?a:r}return r}(a,i,null!=f?f:"seconds"):ef(u),function(e,t,r,n){var i=ec.indexOf(r),a=ec.indexOf(n),o=ec.slice(i,a+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value,m=t.diff(l,h);s[h]=m,l=l.add(m,h)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(a,i,d,null!=f?f:d)}var p=(t=function(e){var t=U({},ep);if(e){var r=!0,n=!1,i=void 0;try{for(var a,o=Object.entries(e)[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s,l=(s=a.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(s)||function(e){if(e){if("string"==typeof e)return $(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}return t}(l),i.diff(a,"seconds")<t.seconds?"seconds":i.diff(a,"minutes")<t.minutes?"minutes":i.diff(a,"hours")<t.hours?"hours":i.diff(a,"days")<t.days?"days":i.diff(a,"months")<t.months?"months":"years");return W({},p,i.diff(a,p))}var em={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),r=arguments.length>2?arguments[2]:void 0,n=eh(e,t,r);return null==n?null:el(n,(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&r.formatOptions?U({},em,r.formatOptions):em)}},1851(e,t,r){"use strict";function n(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}r.d(t,{J:()=>n})},7184(e,t,r){"use strict";r.d(t,{g2:()=>a.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>a.a3,LW:()=>a.LW,MS:()=>m,He:()=>f,rX:()=>O,L8:()=>a.L8,VO:()=>v,QC:()=>h,_U:()=>a._U,kQ:()=>a.kQ,qE:()=>a.qE,KW:()=>s,pf:()=>a.pf,kd:()=>function e(t){var r={},n=!0,i=!1,a=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;if(x(t[l])&&t[l].hasOwnProperty("_default"))r[l]=t[l]._default;else{if(l.startsWith("_"))continue;x(t[l])?r[l]=e(t[l]):r[l]=t[l]}}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},L5:()=>C,XE:()=>a.XE,Qr:()=>y,_g:()=>w,a7:()=>a.a7,sc:()=>u.s,w7:()=>d,L3:()=>a.L3,Yq:()=>a.Yq,fU:()=>a.fU,qK:()=>g,d4:()=>a.d4,Cy:()=>o,p0:()=>a.p0,Vp:()=>p,Rt:()=>a.Rt});var n=r(208),i=r.n(n),a=r(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=i()(t),n=(0,a.qE)(e,r);if(null==n)return null;var o=r.diff(n,"hours"),s=r.diff(n,"days"),l=r.diff(n,"weeks"),u=r.diff(n,"months"),c=r.diff(n,"years"),d={};if(o<2)d.minutes=r.diff(n,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=r.subtract(l,"weeks").diff(n,"days");d.weeks=l,d.days=f}else if(c<2){var p=r.subtract(u,"months").diff(n,"days");d.months=u,d.days=p}else if(c<18){var h=r.subtract(c,"year").diff(n,"months");d.years=c,d.months=h}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=o(e,t);if(null==r)return null;var n={style:"short",localeMatcher:"lookup"};return"minutes"in r&&0===r.minutes&&(n.minutesDisplay="always"),(0,a.a3)(r,n)}var l=r(1851),u=r(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,r){if(null==e)return r;var n=c(e);if(!n)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),r;var i=[],a=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}i.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}for(var p=n;p;){var h=function(){var e=i.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",r=i.find(function(e){return e.canonical.startsWith(t)});if(r)return{v:r.original};if("ht"===p)return p="fr-HT","continue";var n=p.lastIndexOf("-");if(-1===n)return"break";var a=(p=p.slice(0,n)).lastIndexOf("-");-1!==a&&p.length-a==2&&(p=p.slice(0,a))}();if("object"==(h&&"u">typeof Symbol&&h.constructor===Symbol?"symbol":typeof h))return h.v;if("break"===h)break}return r}function f(e){return m(v(e,"usual","official"))}function p(e){return f(e)}function h(e){return f(e)}function m(e){var t,r,n,i;return e?null!=(t=e.text)?t:(i=null!=(n=(r=e).given)?n:[],(r.family?i.concat(r.family):i).join(" ")):""}function y(e){return m(e)}function g(e){return m(e)}function v(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];0===r.length&&(r=["usual"]);var i=!0,a=!1,o=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=function(){var t,r=s.value,n=null==(t=e.name)?void 0:t.find(function(e){var t,n;return t=e,n=r,t.use?t.use===n:"usual"===n});if(n)return{v:n}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){a=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}}var b=r(8254);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function x(e){return!!e&&e.constructor===Object}var S=r(8164);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){var t,r=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),3!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return E(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],i=r[1],a=r[2];return"".concat(n,".").concat(i,".").concat(a)}function O(e,t){var r=function(e){var t=e.indexOf("-");if(t>=0){var r=D(e.slice(0,t)),n=e.slice(t+1);return"".concat(r,"-").concat(n)}return D(e)}(t);return S.satisfies(r,e,{includePrerelease:!0})}function P(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function j(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){P(a,n,i,o,s,"next",e)}function s(e){P(a,n,i,o,s,"throw",e)}o(void 0)})}}function k(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function C(e){return j(function(e){var t,r,n,i,a,o,s,l=arguments;return k(this,function(u){switch(u.label){case 0:r=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,n=t.getDelay,i=t.onError,r=null!=r?r:function(e){return e<=5},n=null!=n?n:function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,r?e+1:e)}(e,1e3)},a=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=n(a),j(function(){return k(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==i||i(s,a),o=s,[3,5];case 5:if(r(a++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
20
+ `),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,h.jsx)(EJ,{isPresent:t,childRef:s,sizeRef:l,pop:a,children:!1===a?e:m.cloneElement(e,{ref:c})})}let E1=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dk(E2),d=(0,m.useId)(),f=(0,m.useRef)(r),p=(0,m.useRef)(n);dB(()=>{f.current=r,p.current=n});let y=!0,g=(0,m.useMemo)(()=>(y=!1,{id:d,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[r,c,n]);return a&&y&&(g={...g}),(0,m.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),m.useEffect(()=>{r||c.size||!n||n()},[r]),e=(0,h.jsx)(E0,{pop:"popLayout"===o,isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,h.jsx)(dj.Provider,{value:g,children:e})};function E2(){return new Map}let E3=e=>e.key||"";function E4(e){let t=[];return m.Children.forEach(e,e=>{(0,m.isValidElement)(e)&&t.push(e)}),t}let E5=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=pL(o),f=(0,m.useMemo)(()=>E4(e),[e]),p=o&&!c?[]:f.map(E3),y=(0,m.useRef)(!0),g=(0,m.useRef)(f),v=dk(()=>new Map),b=(0,m.useRef)(new Set),[w,x]=(0,m.useState)(f),[S,E]=(0,m.useState)(f);dB(()=>{y.current=!1,g.current=f;for(let e=0;e<S.length;e++){let t=E3(S[e]);p.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[S,p.length,p.join("-")]);let D=[];if(f!==w){let e=[...f];for(let t=0;t<S.length;t++){let r=S[t],n=E3(r);p.includes(n)||(e.splice(t,0,r),D.push(r))}return"wait"===a&&D.length&&(e=D),E(E4(e)),x(f),null}let{forceRender:O}=(0,m.useContext)(dm);return(0,h.jsx)(h.Fragment,{children:S.map(e=>{let m=E3(e),w=(!o||!!c)&&(f===S||p.includes(m));return(0,h.jsx)(E1,{isPresent:w,initial:(!y.current||!!r)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:w?void 0:()=>{if(b.current.has(m)||!v.has(m))return;b.current.add(m),v.set(m,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(O?.(),E(g.current),o&&d?.(),n&&n())},anchorX:s,anchorY:l,children:e},m)})})},E6={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function E8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var E9=function(e){var t,r=e.columnItems,n=e.columnIndex,i=e.activeItems,a=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return E8(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E8(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,m.useMemo)(function(){if(!c.trim())return r;var e=c.trim().toLowerCase();return r.filter(function(t){return t.label.toLowerCase().includes(e)})},[r,c]);return(0,h.jsxs)(hK.div,{className:E6.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[a&&(0,h.jsxs)("div",{className:E6.columnSearch,children:[(0,h.jsx)(tl,{className:E6.columnSearchIcon,size:14}),(0,h.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:E6.columnSearchInput,"aria-label":o})]}),(0,h.jsxs)("ul",{className:E6.columnList,role:"list",children:[f.map(function(e){var t,r=i[n]===e.id,a=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,h.jsx)("li",{children:(0,h.jsxs)("button",{type:"button",className:E6.columnItem,"data-active":r||void 0,onMouseEnter:function(){return s(e,n)},onFocus:function(){return s(e,n)},onClick:function(){!a&&e.path&&l(e.path)},children:[o&&(0,h.jsx)(o,{className:E6.columnItemIcon,size:16}),(0,h.jsx)("span",{className:E6.columnItemLabel,children:e.label}),a&&(0,h.jsx)(eE,{className:E6.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,h.jsx)("li",{className:E6.columnEmpty,children:"—"})]})]})};function E7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||Dn(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(e){return function(e){if(Array.isArray(e))return E7(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dn(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){if(e){if("string"==typeof e)return E7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E7(e,t)}}var Di=function(e){var t,r,n=e.items,i=e.triggerLabel,a=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,y=Dt((0,m.useState)(!1),2),g=y[0],b=y[1],w=Dt((0,m.useState)([n]),2),x=w[0],S=w[1],E=Dt((0,m.useState)([]),2),D=E[0],O=E[1],P=Dt((0,m.useState)(null),2),j=P[0],k=P[1],C=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){g||(S([n]),O([]))},[n,g]),(0,m.useLayoutEffect)(function(){if(g&&C.current){var e=C.current.getBoundingClientRect();k("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[g,s]);var T=function(e,t){var r,n=Dr(D);n[t]=e.id,(null==(r=e.children)?void 0:r.length)?S(Dr(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),O(n)},A=function(e){b(!1),null==f||f(e)};return(0,h.jsxs)("div",{className:v()(E6.wrapper,p),children:[(0,h.jsxs)("button",{ref:C,type:"button",className:E6.trigger,onClick:function(){return b(function(e){return!e})},"aria-haspopup":"true","aria-expanded":g,children:[a&&(0,h.jsx)(a,{className:E6.triggerIcon,size:16}),(0,h.jsx)("span",{children:void 0===i?"Navigation":i}),(0,h.jsx)(ex,{className:v()(E6.triggerChevron,(De(t={},E6["triggerChevron--open"],g),De(t,E6["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,h.jsx)(E5,{children:g&&j&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:E6.overlay,onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsx)(hK.div,{className:v()(E6.panel,E6["panel--".concat(s)]),style:(De(r={left:j.left,top:j.top,bottom:j.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),De(r,"--cnd-column-width","16rem"),r),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,h.jsx)("div",{className:E6.panelInner,children:(0,h.jsx)(E5,{mode:"sync",children:x.map(function(e,t){return(0,h.jsx)(E9,{columnItems:e,columnIndex:t,activeItems:D,searchable:u,searchPlaceholder:d,onHover:T,onNavigate:A},t)})})})})]})})]})},Da=(0,m.createContext)(null),Do=function(){var e=(0,m.useContext)(Da);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dl=function(e){var t,r=e.children,n=e.open,i=e.onOpenChange,a=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null!=a&&a))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Ds(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ds(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==n,y=p?n:d,g=(0,m.useCallback)(function(e){null==i||i(e),p||f(e)},[i,p]);return(0,h.jsx)(Da.Provider,{value:{isOpen:y,onOpenChange:g,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:r})};function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dc=function(e){var t,r=e.children,n=e.container,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Du(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Du(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],s=a[1];if((0,m.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=i?(0,h.jsx)("div",{className:i,children:r}):r;return(0,nk.createPortal)(l,n||document.body)};let Dd={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function Df(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dp(e){if(Array.isArray(e))return e}function Dh(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dm(e,t){if(e){if("string"==typeof e)return Df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Df(e,t)}}var Dy=(0,m.forwardRef)(function(e,t){var r,n=Dp(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Dm(r)||Dh(),i=n[0],a=n.slice(1),o=i.className,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["className"]),l=(Dp(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||Dm(a,1)||Dh())[0],u=Do(),c=u.isOpen,d=u.onOpenChange,f=(0,m.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,h.jsx)(hK.div,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:v()(Dd.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function Dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Dv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}Dy.displayName="SheetOverlay";var Db=function(e){var t=e.asChild,r=e.children,n=e.className,i=Do().onOpenChange,a=function(){return i(!0)};return t&&y().isValidElement(r)?y().cloneElement(r,Dv(Dg({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(Dd.triggerReset,n),children:r})},Dw=function(e){var t=e.asChild,r=e.children,n=e.className,i=Do().onOpenChange,a=function(){return i(!1)};return t&&y().isValidElement(r)?y().cloneElement(r,Dv(Dg({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(Dd.triggerReset,n),children:r})};function Dx(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&dG(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{Dx(e,t)})})}function DS(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){uw(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push(fZ(e,r,{transitionOverride:n}))}),Promise.all(i)},set:r=>(uw(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?Dx(t,n):"string"==typeof n?Dx(t,[n]):dG(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}let DE=function(){let e=dk(DS);return dB(e.mount,[]),e};function DD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var DO=function(e){var t,r=e.children,n=e.className,i=Do(),a=i.isOpen,o=i.onOpenChange,s=i.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=DE(),f=(0,m.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return DD(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return DD(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],b="top"===c?-1:1,w=(0,m.useCallback)(function(){return o(!1)},[o]),x=(0,m.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,r=window.innerWidth;return e=r<=640?.6*t:r<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,m.useEffect)(function(){var e=function(){return g(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,m.useEffect)(function(){return a?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:b*(y+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[a,d,y,b]),(0,m.useEffect)(function(){var e=function(e){"Escape"===e.key&&a&&w()};return a&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[a,w]);var S=(0,m.useCallback)(function(e,t){var r=b*t.offset.y>y*u,n=b*t.velocity.y>800;r||n?w():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,w,u,y,b]),E=(0,m.useCallback)(function(e){e.target===f.current&&w()},[w]);if(0===y)return null;var D="top"===c?{top:-y,bottom:0}:{top:0,bottom:y};return(0,h.jsx)(Dc,{children:(0,h.jsxs)("div",{className:v()(Dd.container,!a&&Dd["container--closed"]),children:[(0,h.jsx)(hK.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!a},transition:{duration:.2,ease:"easeOut"},onClick:E,className:Dd.overlay,style:{pointerEvents:a?"auto":"none"}}),(0,h.jsxs)(hK.div,{drag:"y",dragConstraints:D,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:b*(y+50)},className:v()(Dd.panel,Dd["panel--".concat(c)],void 0===n?"":n),style:{height:y},children:["bottom"===c&&(0,h.jsx)("div",{className:Dd.handleRow,children:(0,h.jsx)("div",{className:Dd.handle})}),(0,h.jsx)("div",{className:Dd.body,children:(0,h.jsx)("div",{className:Dd.scrollArea,children:r})}),"top"===c&&(0,h.jsx)("div",{className:Dd.handleRow,children:(0,h.jsx)("div",{className:Dd.handle})})]})]})})},DP=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(Dd.header,r),children:t})},Dj=function(e){var t=e.children,r=e.className;return(0,h.jsx)("h3",{className:v()(Dd.title,r),children:t})},Dk=function(e){var t=e.children,r=e.className;return(0,h.jsx)("p",{className:v()(Dd.description,r),children:t})},DC=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(Dd.footer,r),children:t})},DT=Dl;function DA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var DM=function(e){var t=e.items,r=e.title,n=e.hint,i=void 0===n?"Glisser une carte vers le bas pour fermer":n,a=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,y=e.accentColor,g=DI((0,m.useState)(void 0!==o&&o),2),b=g[0],w=g[1],x=DI((0,m.useState)(!1),2),S=x[0],E=x[1],D=void 0!==a,O=D?a:b,P=function(e){null==s||s(e),D||w(e)},j=function(e,t){t.offset.y>100&&O&&(P(!1),E(!1))},k=(t.length-1)/2,C=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){DR(e,t,r[t])})}return e}({},y?DR({},"--fg-accent",y):void 0,u);return(0,h.jsx)("div",{className:v()("mf1PQJZJIkTcC6ieajp06g==",l),style:C,children:(0,h.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,h.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,h.jsxs)(hK.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,h.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,h.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,h.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,h.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var r=t-k,n=1-.03*Math.abs(r);return(0,h.jsx)(hK.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:j,className:v()("x+8qV1iWMRfwOVcjmG22XA==",DR({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*r,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*r-40:-5*r,x:S?30*r:3*r,rotate:S?8*r:3*r,scale:n,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,h.jsx)(hK.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:S?-25:0,y:10*!!S,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return E(!0)},onMouseLeave:function(){return E(!1)},onClick:function(){return P(!0)},children:(0,h.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,h.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,h.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,h.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===r?"Dossier":r})})]})})]}),i&&(0,h.jsx)(hK.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:i})]})})};function DN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DN(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DF(e){var t=e.items,r=e.className,n=e.style,i=D_((0,m.useState)(null),2),a=i[0],o=i[1],s=D_((0,m.useState)(null),2),l=s[0],u=s[1],c=function(e){u(a),o(e)},d=function(){u(a),o(null)};return(0,m.useEffect)(function(){if(a){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[a]),(0,h.jsxs)("div",{className:v()("cwEvWWvWR1VRjUW5EIdhaA==",r),style:n,children:[t.map(function(e){var t,r=(null==a?void 0:a.id)===e.id,n=!r&&(null==l?void 0:l.id)===e.id;return(0,h.jsx)("div",{className:e.className,children:(0,h.jsxs)(hK.div,{role:"button",tabIndex:0,"aria-pressed":r,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:v()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(DL(t={},"wpWM12DNjfwunfLOmmaBnQ==",r),DL(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!r),DL(t,"_1zQI0+1IAUASZtCPebAKvg==",n),t)),layoutId:"layout-grid-card-".concat(e.id),children:[r&&(0,h.jsx)(DV,{item:a}),(0,h.jsx)(DB,{item:e})]})},e.id)}),(0,h.jsx)(hK.div,{onClick:d,className:v()("SfuCW8U7MUzYHVthm3806Q==",DL({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==a?void 0:a.id))),animate:{opacity:+(null!=a&&!!a.id)},"aria-hidden":"true"})]})}function DB(e){var t=e.item;return(0,h.jsx)(hK.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function DV(e){var t=e.item;return(0,h.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,h.jsx)(hK.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,h.jsx)(hK.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let D$="VL60poBQJU5GXBc55DtOgg==",DW="Z-QYx9GU0-9PvqywVAWDOw==",DU="k5GwrlmSGQEXCHiD9NJSgg==",Dz="Sd+oehXhY2IvCEPY7LquSQ==",DH="_2TUXiGgesFw6MMltbcDw7g==",DG="aaY-ypFw8QYOvR34L1Ad3g==",DK="_0FXGSaE3Vf6Xfst6Bn-1XQ==",DY="J+6pxxgImJiBa+5uolSRLA==",DZ="-cMLmEDNbTRZO+q9J5EnZQ==",Dq="pNL9YXjomLOkN1Sc1NOXsw==",DX="YY-ar9Letsk0I16pNK2koQ==";var DQ=function(){return(0,h.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,h.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function DJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DJ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D2=function(e){var t=e.title,r=e.coverImageUrl,n=e.category,i=e.itemCountLabel,a=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=D1((0,m.useState)(!1),2),f=d[0],p=d[1],y=D1((0,m.useState)(null),2),g=y[0],b=y[1],w=D1((0,m.useState)(null),2),x=w[0],S=w[1],E=D1((0,m.useState)(0),2),D=E[0],O=E[1],P=D1((0,m.useState)("translateY(0px)"),2),j=P[0],k=P[1],C=(0,m.useRef)(null),T=(0,m.useRef)(new Map),A=null!==g,R=f||A;(0,m.useEffect)(function(){if(null!==g){var e=function(){var e=T.current.get(g);e&&C.current&&O(e.getBoundingClientRect().top-C.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[g]);var I=function(e){if(e.detail){var t=T.current.get(e.id);if(t&&C.current){var r=window.innerHeight-t.getBoundingClientRect().bottom+C.current.offsetTop-390;k("translateY(".concat(r,"px)"))}b(e.id),S(e)}};return(0,h.jsx)("div",{className:v()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,h.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,h.jsxs)("div",{ref:C,className:v()("_09AECjHCq6I9nuofSaItrA==",D0({},"GyoWR7DyKiD7EWOqlosJAg==",R)),children:[(0,h.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,h.jsxs)("div",{className:D$,children:[(0,h.jsx)("img",{className:DW,src:r,alt:""}),(0,h.jsx)("img",{className:v()(DW,DU),src:r,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,h.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,h.jsx)("h1",{className:Dz,children:t}),(0,h.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[n&&(0,h.jsx)("p",{className:DH,children:n}),n&&i&&(0,h.jsx)("div",{className:DK}),i&&(0,h.jsx)("p",{className:DH,children:i}),i&&a&&(0,h.jsx)("div",{className:DK}),a&&(0,h.jsx)("p",{className:DH,children:a})]})]}),(0,h.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,h.jsxs)("div",{ref:(t=e.id,function(e){e?T.current.set(t,e):T.current.delete(t)}),className:DY,onClick:function(){return I(e)},children:[(0,h.jsx)("p",{className:DG,children:e.title}),(0,h.jsxs)("div",{className:DZ,children:[(0,h.jsx)("button",{type:"button",className:Dq,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,h.jsx)(e5,{size:20})}),e.meta&&(0,h.jsx)("p",{className:DH,children:e.meta})]})]},e.id)})})]})]}),x&&(0,h.jsxs)("div",{className:v()("T5TjonuT8CpL6L9LnfYUbg==",D0({},"Yw84bwYkOFxUPSl8uIlHYA==",A)),style:{top:"".concat(D,"px"),transform:j},children:[(0,h.jsxs)("div",{className:DY,children:[(0,h.jsx)("p",{className:DG,children:x.title}),(0,h.jsxs)("div",{className:DZ,children:[(0,h.jsx)("button",{type:"button",className:Dq,onClick:function(){k("translateY(0px)"),b(null)},"aria-label":"Fermer",children:(0,h.jsx)(ei,{size:20,className:DX})}),x.meta&&(0,h.jsx)("p",{className:DH,children:x.meta})]})]}),(0,h.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,h.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,h.jsx)(DQ,{})]}),s&&(0,h.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":A?"none":void 0},children:[(0,h.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,h.jsx)(ei,{size:24,className:v()(D0({},DX,f))})}),(0,h.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,h.jsxs)("div",{className:D$,children:[(0,h.jsx)("h1",{className:Dz,children:s.name}),(0,h.jsx)("img",{className:DW,src:s.photoUrl,alt:""}),(0,h.jsx)("img",{className:v()(DW,DU),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,h.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,h.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,h.jsx)("p",{className:v()(DH,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,h.jsx)("div",{className:DK}),s.itemCountLabel&&(0,h.jsx)("p",{className:DH,children:s.itemCountLabel})]}),s.statLabel&&(0,h.jsx)("p",{className:DH,children:s.statLabel})]}),s.description&&(0,h.jsx)("p",{className:DG,children:s.description})]})]}),(0,h.jsx)(DQ,{}),(0,h.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})},D3={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},none:{initial:{},animate:{},exit:{}}};let D4={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};function D5(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D5(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D9=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},D7=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Oe=function(e){var t,r,n,i,a,o,s,l,u=e.open,c=e.defaultOpen,d=e.onOpenChange,f=e.trigger,p=e.children,y=e.showCloseButton,g=e.renderCloseButton,b=e.cardVariant,w=e.cardProps,x=e.draggable,S=void 0!==x&&x,E=e.dockable,D=void 0!==E&&E,O=e.dockIcon,P=e.dockEdgeThreshold,j=void 0===P?80:P,k=e.dockUndockDistance,C=void 0===k?120:k,T=e.dockSize,A=void 0===T?56:T,R=e.closeOnOverlayClick,I=e.closeOnEscape,N=void 0===I||I,L=e.showOverlay,_=e.lockScroll,F=void 0===_||_,B=e.animation,V=void 0===B?"scale":B,$=e.overlayAnimation,W=e.className,U=e.style,z=e.overlayClassName,H=D8((0,m.useState)(void 0!==c&&c),2),G=H[0],K=H[1],Y=D8((0,m.useState)(!1),2),Z=Y[0],q=Y[1],X=D8((0,m.useState)(null),2),Q=X[0],J=X[1],ee=(0,m.useRef)(null),et=(0,m.useId)(),er=void 0!==u,en=er?u:G,ei=(0,m.useCallback)(function(e){null==d||d(e),er||K(e)},[d,er]),ea=(0,m.useCallback)(function(){return ei(!1)},[ei]);(0,m.useEffect)(function(){return q(!0)},[]),(0,m.useEffect)(function(){en&&J(null)},[en]);var eo=(0,m.useCallback)(function(){if(D&&ee.current&&"u">typeof window){var e=ee.current.getBoundingClientRect(),t=e.left+e.width/2,r=e.top+e.height/2;if(Q)return void(Math.abs(t-("left"===Q.side?0:window.innerWidth))>C?J(null):J({side:Q.side,y:D9(r,A)}));t<=j?J({side:"left",y:D9(r,A)}):t>=window.innerWidth-j&&J({side:"right",y:D9(r,A)})}},[D,Q,j,C,A]);(0,m.useEffect)(function(){if(en&&F)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[en,F]),(0,m.useEffect)(function(){if(en&&N){var e=function(e){"Escape"===e.key&&ea()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[en,N,ea]);var es=D7(V)?V:{preset:V},el=null!=(n=es.variants)?n:D3[null!=(i=es.preset)?i:"scale"],eu={duration:null!=(a=es.duration)?a:.25,ease:null!=(o=es.ease)?o:[.16,1,.3,1]},ec={duration:null!=(s=null==$?void 0:$.duration)?s:.2,ease:null!=(l=null==$?void 0:$.ease)?l:"easeOut"},ed=(0,h.jsx)(E5,{children:en&&(0,h.jsxs)("div",{className:D4.root,children:[(void 0===L||L)&&!Q&&(0,h.jsx)(hK.div,{className:v()(D4.overlay,z),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ec,onClick:void 0===R||R?ea:void 0,"aria-hidden":"true"}),Q?(0,h.jsx)(hK.div,{ref:ee,className:v()(D4.dockBubble,D4["dockBubble--".concat(Q.side)]),style:D6({top:Q.y,width:A,height:A},Q.side,-(A/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eo,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&J(null)},children:null!=O?O:(0,h.jsx)(eQ,{size:20})}):(0,h.jsx)("div",{className:D4.centerLayer,children:(0,h.jsx)(hK.div,{ref:ee,role:"dialog","aria-modal":"true","aria-labelledby":(null==w?void 0:w.title)?et:void 0,className:v()(D4.panel,W),style:U,variants:el,initial:"initial",animate:"animate",exit:"exit",transition:eu,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:D?eo:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,h.jsxs)(M,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){D6(e,t,r[t])})}return e}({variant:void 0===b?"default":b},w),r=r={children:[(void 0===y||y)&&(g?g(ea):(0,h.jsx)("button",{type:"button",className:D4.closeButton,onClick:ea,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:18})})),p]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})})]})});return(0,h.jsxs)(h.Fragment,{children:[f&&(0,h.jsx)("span",{className:D4.triggerWrap,onClick:function(){return ei(!0)},children:f}),Z&&(0,nk.createPortal)(ed,document.body)]})},Ot=(0,m.createContext)(null);function Or(){var e=(0,m.useContext)(Ot);if(!e)throw Error("Select compound components must be used within <Select>");return e}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oi(e){var t,r=e.children,n=e.options,i=e.selectedOptionId,a=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return On(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return On(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1],g=(0,m.useRef)(null),v=void 0!==o,b=v?o:p,w=(0,m.useCallback)(function(e){null==s||s(e),v||y(e)},[s,v]),x=(0,m.useMemo)(function(){var e;return i&&null!=(e=n.find(function(e){return u(e)===i}))?e:n[0]},[n,i,u]),S=(0,m.useCallback)(function(e){null==a||a(e),w(!1)},[a,w]);return(0,h.jsx)(Ot.Provider,{value:{open:b,setOpen:w,selectedOption:x,options:n,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:g},children:r})}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Oo=function(e){var t,r=e.src,n=e.name,i=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Oa(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oa(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1];return r&&!a?(0,h.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:r,alt:"",onError:function(){return o(!0)}}):(0,h.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:n.charAt(0).toUpperCase()})};function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ol=function(e){var t,r,n=e.className,i=e.renderTrigger,a=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Or(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,h.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Os(e,t,r[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:v()("t3j-WppHuYF4Q80G8ssYTw==",n),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),r=r={children:[i?i(d,u):(0,h.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,h.jsxs)(h.Fragment,{children:[(void 0===a||a)&&(0,h.jsx)(Oo,{src:d.logo,name:f(d)}),(0,h.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,h.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,h.jsx)(ex,{className:v()("Mx+cKK19Fg1ZkYsq9XTF+Q==",Os({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Of=function(e){var t=e.className,r=e.style,n=e.renderOption,i=e.title,a=void 0===i?"Options":i,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,y=Or(),g=y.open,b=y.setOpen,w=y.options,x=y.selectedOption,S=y.onOptionSelect,E=y.getOptionId,D=y.getOptionName,O=y.triggerRef,P=Od((0,m.useState)(""),2),j=P[0],k=P[1],C=Od((0,m.useState)(null),2),T=C[0],A=C[1],R=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){if(g&&O.current){var e=O.current.getBoundingClientRect();A({top:e.bottom+8,left:e.left,width:e.width})}},[g,O]),(0,m.useLayoutEffect)(function(){if(g){var e=function(e){var t,r,n=e.target;(null==(t=R.current)?void 0:t.contains(n))||(null==(r=O.current)?void 0:r.contains(n))||b(!1)},t=function(e){"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[g,b,O]),(0,m.useLayoutEffect)(function(){null==u||u(j)},[j,u]);var I=(0,m.useMemo)(function(){if(!j.trim())return w;var e=j.trim().toLowerCase();return w.filter(function(t){return D(t).toLowerCase().includes(e)})},[w,j,D]);return(0,h.jsx)(E5,{children:g&&T&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsxs)(hK.div,{ref:R,role:"listbox",className:v()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Oc(e,t,r[t])})}return e}({top:T.top,left:T.left,minWidth:T.width},r),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[a&&(0,h.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,h.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:a})}),void 0!==o&&o&&(0,h.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,h.jsx)(tl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,h.jsx)("input",{type:"search",value:j,onChange:function(e){return k(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,h.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===I.length?(0,h.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):I.map(function(e){var t=!!(x&&E(x)===E(e));return(0,h.jsx)("button",{type:"button",role:"option","aria-selected":t,className:v()("mqfrCZDVzn25GOVXds14vw==",Oc({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:n?n(e,t):(0,h.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,h.jsx)(Oo,{src:e.logo,name:D(e)}),(0,h.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,h.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:D(e)}),"string"==typeof e.plan&&(0,h.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,h.jsx)(eb,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},E(e))})}),p&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,h.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let Op="YDxgnSM2QPGOYYICdgjq7Q==";function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Om(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||Oy(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(e,t){if(e){if("string"==typeof e)return Oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oh(e,t)}}function Og(e){var t=e.options,r=e.defaultActiveIndex,n=e.onChange,i=e.title,a=e.subtitle,o=e.className,s=e.style,l=Om((0,m.useState)(void 0===r?0:r),2),u=l[0],c=l[1],d=Om((0,m.useState)([]),2),f=d[0],p=d[1],y=function(e){e!==u&&(c(e),null==n||n(e))};return(0,m.useEffect)(function(){var e=[];return t.forEach(function(t,r){var n=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return Oh(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oy(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([r])})},180*r);e.push(n)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,h.jsxs)("div",{className:v()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(i||a)&&(0,h.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[i&&(0,h.jsx)("h1",{className:v()("TsIf8Q8vAVSLc-vC4h6-UA==",Op,"CUA6-RpM0KPkwxkPhWbpzg=="),children:i}),a&&(0,h.jsx)("p",{className:v()("GiaxLFLhrXHmZTTZjk2qqg==",Op,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:a})]}),(0,h.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,h.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var r=u===t,n=f.includes(t);return(0,h.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":r,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:r?"auto 100%":"auto 120%",opacity:+!!n,transform:n?"translateX(0)":"translateX(-60px)",borderColor:r?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:r?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:r?"7 1 0%":"1 1 0%",zIndex:r?10:1},onClick:function(){return y(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y(t))},children:[(0,h.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:r?"0":"-40px",boxShadow:r?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,h.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,h.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,h.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,h.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.title}),(0,h.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ob(e,t){if(e){if("string"==typeof e)return Ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ov(e,t)}}var Ow=function(e){var t,r=e.images,n=e.cardWidth,i=void 0===n?256:n,a=e.cardHeight,o=void 0===a?352:a,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,m.useRef)(null),f=(0,m.useRef)(!1),p=(0,m.useRef)(0),y=(0,m.useRef)(0),g=(0,m.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(function(){return Array.from({length:r.length},function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||Ob(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=b[0],x=b[1];(0,m.useEffect)(function(){x(Array.from({length:r.length},function(e,t){return t}))},[r.length]);var S=(0,m.useCallback)(function(e,t){var r,n,i=null==(n=getComputedStyle(t||document.documentElement))||null==(r=n.getPropertyValue(e))?void 0:r.trim();return i?i.endsWith("ms")?parseFloat(i):i.endsWith("s")?1e3*parseFloat(i):parseFloat(i)||0:0},[]),E=(0,m.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),D=(0,m.useCallback)(function(){return E()[0]||null},[E]),O=(0,m.useCallback)(function(){E().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[E]),P=(0,m.useCallback)(function(e){var t=D();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[D]),j=(0,m.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,y.current=e;var t=D();t&&(t.style.transition="none")}},[D]),k=(0,m.useCallback)(function(){if(f.current){g.current&&(cancelAnimationFrame(g.current),g.current=null);var e=y.current-p.current,t=S("--card-swap-duration",d.current),r=D();if(r)if(r.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var n=Math.sign(e);r.style.setProperty("--swipe-x","".concat(300*n,"px")),r.style.setProperty("--swipe-rotate","".concat(20*n,"deg")),setTimeout(function(){D()===r&&r.style.setProperty("--swipe-rotate","".concat(-(20*n),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],n>0?"right":"left"),((function(e){if(Array.isArray(e))return Ov(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Ob(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else P(0);f.current=!1,p.current=0,y.current=0}},[S,D,P,c]),C=(0,m.useCallback)(function(e){f.current&&(g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function(){y.current=e;var t=y.current-p.current;P(t),Math.abs(t)>50&&k()}))},[P,k]);return(0,m.useEffect)(function(){var e=d.current;if(e){var t=function(e){return j(e.clientX)},r=function(e){return C(e.clientX)},n=function(){return k()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",r),e.addEventListener("pointerup",n),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",r),e.removeEventListener("pointerup",n),g.current&&cancelAnimationFrame(g.current)}}},[j,C,k]),(0,m.useEffect)(function(){O()},[w,O]),(0,h.jsx)("section",{ref:d,className:v()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":r.length.toString(),"--card-swap-duration":"0.3s"},l),children:w.map(function(e,t){return(0,h.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:r.length-t,width:i,height:o},children:(0,h.jsx)("img",{src:r[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(r[e],"-").concat(e))})})},Ox=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OS=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OE=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,OD=/(^[#\.][a-z]|[a-y][a-z])/i,OO=Math.PI/180,OP=180/Math.PI,Oj=Math.sin,Ok=Math.cos,OC=Math.abs,OT=Math.sqrt,OA=Math.atan2,OR=function(e){return"string"==typeof e},OI=function(e){return"number"==typeof e},OM={},ON={},OL=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},O_=function(e){return Math.round(1e5*e)/1e5||0},OF=function(e){return Math.round(1e10*e)/1e10||0},OB=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},OV=function(e,t,r,n){var i=e[t],a=1===n?6:OQ(i,r,n);if((a||!n)&&a+r+2<i.length)return e.splice(t,0,i.slice(0,r+a+2)),i.splice(0,r+a),1},O$=function(e,t,r){var n=e.length,i=~~(r*n);if(e[i]>t){for(;--i&&e[i]>t;);i<0&&(i=0)}else for(;e[++i]<t&&i<n;);return i<n?i:n-1},OW=function(e,t){var r=e.length;for(t||e.reverse();r--;)e[r].reversed||function(e){var t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}(e[r])},OU=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},Oz=function(e,t){var r=e.length,n=e[r-1]||[],i=n.length;r&&t[0]===n[i-2]&&t[1]===n[i-1]&&(t=n.concat(t.slice(2)),r--),e[r]=t};function OH(e){var t,r=(e=OR(e)&&OD.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(t=r._gsPath[e])&&!t._dirty?t:r._gsPath[e]=O2(e)):e?OR(e)?O2(e):OI(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var OG=function(e,t){var r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),i=[].slice.call(e.attributes),a=i.length;for(t=","+t+",";--a>-1;)r=i[a].nodeName.toLowerCase(),0>t.indexOf(","+r+",")&&n.setAttributeNS(null,r,i[a].nodeValue);return n},OK={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},OY=function(e,t){for(var r=t?t.split(","):[],n={},i=r.length;--i>-1;)n[r[i]]=+e.getAttribute(r[i])||0;return n};function OZ(e,t,r){var n,i=e[t],a=e[t+2],o=e[t+4];return i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,n=a+(o+(e[t+6]-o)*r-a)*r-i,i=e[t+1],a=e[t+3],o=e[t+5],i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,O_(OA(a+(o+(e[t+7]-o)*r-a)*r-i,n)*OP)}function Oq(e,t,r){var n=Math.max(0,~~(OC((r=void 0===r?1:OF(r)||0)-(t=OF(t)||0))-1e-8)),i=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=OU(e[r],e[r].slice(0));return OU(e,t)}(e);if(t>r&&(t=1-t,r=1-r,OW(i),i.totalLength=0),t<0||r<0){var a=Math.abs(~~Math.min(t,r))+1;t+=a,r+=a}i.totalLength||OX(i);var o,s,l,u,c,d,f,p,h=r>1,m=OJ(i,t,OM,!0),y=OJ(i,r,ON),g=y.segment,v=m.segment,b=y.segIndex,w=m.segIndex,x=y.i,S=m.i,E=w===b,D=x===S&&E;if(h||n){for(o=b<w||E&&x<S||D&&y.t<m.t,OV(i,w,S,m.t)&&(w++,!o&&(b++,D?(y.t=(y.t-m.t)/(1-m.t),x=0):E&&(x-=S))),1e-5>Math.abs(1-(r-t))?b=w-1:!y.t&&b?b--:OV(i,b,x,y.t)&&o&&w++,1===m.t&&(w=(w+1)%i.length),c=[],f=1+(d=i.length)*n,p=w,f+=(d-w+b)%d,u=0;u<f;u++)Oz(c,i[p++%d]);i=c}else if(l=1===y.t?6:OQ(g,x,y.t),t!==r)for(s=OQ(v,S,D?m.t/y.t:m.t),E&&(l+=s),g.splice(x+l+2),(s||S)&&v.splice(0,S+s),u=i.length;u--;)(u<w||u>b)&&i.splice(u,1);else g.angle=OZ(g,x+l,0),x+=l,m=g[x],y=g[x+1],g.length=g.totalLength=0,g.totalPoints=i.totalPoints=8,g.push(m,y,m,y,m,y,m,y);return i.totalLength=0,i}function OX(e,t){var r,n,i;for(i=r=n=0;i<e.length;i++)e[i].resolution=~~t||12,r+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b=~~e.resolution||12,w=1/b,x=e.length,S=e[t],E=e[t+1],D=t?t/6*b:0,O=e.samples,P=e.lookup,j=(t?e.minLength:1e8)||1e8,k=O[D+(void 0)*b-1],C=t?O[D-1]:0;for(O.length=P.length=0,n=t+2;n<x;n+=6){if(i=e[n+4]-S,a=e[n+2]-S,o=e[n]-S,u=e[n+5]-E,c=e[n+3]-E,d=e[n+1]-E,s=l=f=p=0,.01>OC(i)&&.01>OC(u)&&OC(o)+OC(d)<.01)e.length>8&&(e.splice(n,6),n-=6,x-=6);else for(r=1;r<=b;r++)h=1-(m=w*r),s=l-(l=(m*m*i+3*h*(m*a+h*o))*m),(g=OT((f=p-(p=(m*m*u+3*h*(m*c+h*d))*m))*f+s*s))<j&&(j=g),C+=g,O[D++]=C;S+=i,E+=u}if(k)for(k-=C;D<O.length;D++)O[D]+=k;if(O.length&&j){if(e.totalLength=v=O[O.length-1]||0,e.minLength=j,v/j<9999)for(r=0,g=y=0;r<v;r+=j)P[g++]=O[y]<r?++y:y}else e.totalLength=O[0]=0;return t?C-O[t/2-1]:C}(e[i]),n+=e[i].length;return e.totalPoints=n,e.totalLength=r,e}function OQ(e,t,r){if(r<=0||r>=1)return 0;var n=e[t],i=e[t+1],a=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=n+(a-n)*r,f=a+(s-a)*r,p=i+(o-i)*r,h=o+(l-o)*r,m=d+(f-d)*r,y=p+(h-p)*r,g=s+(u-s)*r,v=l+(c-l)*r;return f+=(g-f)*r,h+=(v-h)*r,e.splice(t+2,4,O_(d),O_(p),O_(m),O_(y),O_(m+(f-m)*r),O_(y+(h-y)*r),O_(f),O_(h),O_(g),O_(v)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function OJ(e,t,r,n){r=r||{},e.totalLength||OX(e),(t<0||t>1)&&(t=OL(t));var i,a,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}i=f.samples,a=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:O$(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),c=1/a*((o-s)/(l-s)+u%a),u=6*~~(u/a),n&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return r.t=c,r.i=u,r.path=e,r.segment=f,r.segIndex=d,r}function O0(e,t,r,n){var i,a,o,s,l,u,c,d,f,p=e[0],h=n||{};if((t<0||t>1)&&(t=OL(t)),p.lookup||OX(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return i=p.samples,a=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:O$(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),f=1-(c=1/a*((o-s)/(l-s)+u%a)||0),d=p[u=6*~~(u/a)],h.x=O_((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),h.y=O_((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),r&&(h.angle=p.totalLength?OZ(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),h}function O1(e,t,r,n,i,a,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*n+a,s[u+1]=c*r+d*i+o;return e._dirty=1,e}function O2(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y=(e+"").replace(OE,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Ox)||[],g=[],v=0,b=0,w=2/3,x=y.length,S=0,E="ERROR: malformed path: "+e,D=function(e,t,r,n){c=(r-e)/3,d=(n-t)/3,s.push(e+c,t+d,r-c,n-d,r,n)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(E),g;for(t=0;t<x;t++)if(p=a,isNaN(y[t])?o=(a=y[t].toUpperCase())!==y[t]:t--,n=+y[t+1],i=+y[t+2],o&&(n+=v,i+=b),t||(l=n,u=i),"M"===a)s&&(s.length<8?g.length-=1:S+=s.length,OB(s)),v=l=n,b=u=i,s=[n,i],g.push(s),t+=2,a="L";else if("C"===a)s||(s=[0,0]),o||(v=b=0),s.push(n,i,v+ +y[t+3],b+ +y[t+4],v+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===a)c=v,d=b,("C"===p||"S"===p)&&(c+=v-s[s.length-4],d+=b-s[s.length-3]),o||(v=b=0),s.push(c,d,n,i,v+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===a)c=v+(n-v)*w,d=b+(i-b)*w,o||(v=b=0),v+=+y[t+3],b+=+y[t+4],s.push(c,d,v+(n-v)*w,b+(i-b)*w,v,b),t+=4;else if("T"===a)c=v-s[s.length-4],d=b-s[s.length-3],s.push(v+c,b+d,n+(v+1.5*c-n)*w,i+(b+1.5*d-i)*w,v=n,b=i),t+=2;else if("H"===a)D(v,b,v=n,b),t+=1;else if("V"===a)D(v,b,v,b=n+(o?b-v:0)),t+=1;else if("L"===a||"Z"===a)"Z"===a&&(n=l,i=u,s.closed=!0),("L"===a||OC(v-n)>.5||OC(b-i)>.5)&&(D(v,b,n,i),"L"===a&&(t+=2)),v=n,b=i;else if("A"===a){if(h=y[t+4],m=y[t+5],c=y[t+6],d=y[t+7],r=7,h.length>1&&(h.length<3?(d=c,c=m,r--):(d=m,c=h.substr(2),r-=2),m=h.charAt(1),h=h.charAt(0)),f=function(e,t,r,n,i,a,o,s,l){if(e!==s||t!==l){r=OC(r),n=OC(n);var u=i%360*OO,c=Ok(u),d=Oj(u),f=Math.PI,p=2*f,h=(e-s)/2,m=(t-l)/2,y=c*h+d*m,g=-d*h+c*m,v=y*y,b=g*g,w=v/(r*r)+b/(n*n);w>1&&(r=OT(w)*r,n=OT(w)*n);var x=r*r,S=n*n,E=(x*S-x*b-S*v)/(x*b+S*v);E<0&&(E=0);var D=(a===o?-1:1)*OT(E),O=r*g/n*D,P=-(n*y/r*D),j=(e+s)/2+(c*O-d*P),k=(t+l)/2+(d*O+c*P),C=(y-O)/r,T=(g-P)/n,A=(-y-O)/r,R=(-g-P)/n,I=C*C+T*T,M=(T<0?-1:1)*Math.acos(C/OT(I)),N=(C*R-T*A<0?-1:1)*Math.acos((C*A+T*R)/OT(I*(A*A+R*R)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),M%=p;var L,_=Math.ceil(OC(N%=p)/(p/4)),F=[],B=N/_,V=4/3*Oj(B/2)/(1+Ok(B/2)),$=c*r,W=d*r,U=-(d*n),z=c*n;for(L=0;L<_;L++)y=Ok(i=M+L*B),g=Oj(i),C=Ok(i+=B),T=Oj(i),F.push(y-V*g,g+V*y,C+V*T,T-V*C,C,T);for(L=0;L<F.length;L+=2)y=F[L],g=F[L+1],F[L]=y*$+g*U+j,F[L+1]=y*W+g*z+k;return F[L-2]=s,F[L-1]=l,F}}(v,b,+y[t+1],+y[t+2],+y[t+3],+h,+m,(o?v:0)+ +c,(o?b:0)+ +d),t+=r,f)for(r=0;r<f.length;r++)s.push(f[r]);v=s[s.length-2],b=s[s.length-1]}else console.log(E);return(t=s.length)<6?(g.pop(),t=0):OB(s),g.totalPoints=S+t,g}function O3(e,t){1e-4>OC(e[0]-e[2])&&1e-4>OC(e[1]-e[3])&&(e=e.slice(2));var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g=e.length-2,v=+e[0],b=+e[1],w=+e[2],x=+e[3],S=[v,b,v,b],E=w-v,D=x-b,O=e.nonSmooth||[],P=.001>Math.abs(e[g]-v)&&.001>Math.abs(e[g+1]-b);if(!g)return[v,b,v,b,v,b,v,b];for(P&&(e.push(w,x),w=v,x=b,v=e[g-2],b=e[g-1],e.unshift(v,b),g+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,i=2;i<g;i+=2)if(r=v,n=b,v=w,b=x,w=+e[i+2],x=+e[i+3],v!==w||b!==x){if(a=E,o=D,E=w-v,D=x-b,O[i]){S.push(v-(v-r)/4,b-(b-n)/4,v,b,v+(w-v)/4,b+(x-b)/4);continue}s=OT(a*a+o*o),l=OT(E*E+D*D),u=OT(Math.pow(E/l+a/s,2)+Math.pow(D/l+o/s,2)),c=(s+l)*t*.25/u,d=v-(v-r)*(s?c/s:0),f=v+(w-v)*(l?c/l:0),p=v-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),h=b-(b-n)*(s?c/s:0),m=b+(x-b)*(l?c/l:0),y=b-(h+((m-h)*(3*s/(s+l)+.5)/4||0)),S.push(O_(d+p),O_(h+y),O_(v),O_(b),O_(f+p),O_(m+y))}return v!==w||b!==x||S.length<4?S.push(O_(w),O_(x),O_(w),O_(x)):S.length-=2,2===S.length?S.push(v,b,v,b,v,b):P&&(S.splice(0,6),S.length-=6),S.closed=P,S}function O4(e){OI(e[0])&&(e=[e]);var t,r,n,i,a="",o=e.length;for(r=0;r<o;r++){for(a+="M"+O_((i=e[r])[0])+","+O_(i[1])+" C",t=i.length,n=2;n<t;n++)a+=O_(i[n++])+","+O_(i[n++])+" "+O_(i[n++])+","+O_(i[n++])+" "+O_(i[n++])+","+O_(i[n])+" ";i.closed&&(a+="z")}return a}var O5,O6,O8,O9,O7,Pe,Pt,Pr,Pn,Pi,Pa,Po="transform",Ps=Po+"Origin",Pl=function(e){var t=e.ownerDocument||e;for(!(Po in e.style)&&("msTransform"in e.style)&&(Ps=(Po="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(O9=window,Pn=new Pv,t){O8=t,O7=t.documentElement,Pe=t.body,(Pi=O8.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=t.createElement("div"),n=t.createElement("div"),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.style.position="static",r.style.transform="translate3d(0,0,1px)",Pa=n.offsetParent!==r,i.removeChild(r))}return t},Pu=function(e){for(var t,r;e&&e!==Pe;)(r=e._gsap)&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Pc=[],Pd=[],Pf=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},Pp=function e(t,r){if(t.parentNode&&(O8||Pl(t))){var n=Pf(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?r?"rect":"g":"div",o=100*(2===r),s=100*(3===r),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=O8.createElementNS?O8.createElementNS(i.replace(/^https/,"http"),a):O8.createElement(a);return r&&(n?(Pr||(Pr=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Pr.appendChild(u)):(Pt||Object.assign((Pt=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Pt.appendChild(u))),u}throw"Need document and parent."},Ph=function(e){for(var t=new Pv,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},Pm=function(e){var t,r=e.getCTM();return r||(t=e.style[Po],e.style[Po]="none",e.appendChild(Pi),r=Pi.getCTM(),e.removeChild(Pi),t?e.style[Po]=t:e.style.removeProperty(Po.replace(/([A-Z])/g,"-$1").toLowerCase())),r||Pn.clone()},Py=function(e,t){var r,n,i,a,o,s,l=Pf(e),u=e===l,c=l?Pc:Pd,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===O9)return e;if(c.length||c.push(Pp(e,1),Pp(e,2),Pp(e,3)),r=l?Pr:Pt,l)u?(a=-(i=Pm(e)).e/i.a,o=-i.f/i.d,n=Pn):e.getBBox?(i=e.getBBox(),a=(n=(n=e.transform?e.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?Ph(n):n.getItem(0).matrix:Pn).a*i.x+n.c*i.y,o=n.b*i.x+n.d*i.y):(n=new Pv,a=o=0),t&&"g"===e.tagName.toLowerCase()&&(a=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+o)+")");else{if(a=o=0,Pa)for(n=e.offsetParent,i=e;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(O9.getComputedStyle(i)[Po]+"").length>4&&(a=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(s=O9.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;d&&d!==n;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(i=r.style).top=e.offsetTop-o+"px",i.left=e.offsetLeft-a+"px",i[Po]=s[Po],i[Ps]=s[Ps],i.position="fixed"===s.position?"fixed":"absolute",f.appendChild(r)}return r},Pg=function(e,t,r,n,i,a,o){return e.a=t,e.b=r,e.c=n,e.d=i,e.e=a,e.f=o,e},Pv=function(){function e(e,t,r,n,i,a){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===a&&(a=0),Pg(this,e,t,r,n,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,r=this.c,n=this.d,i=this.e,a=this.f,o=e*n-t*r||1e-10;return Pg(this,n/o,-t/o,-r/o,e/o,(r*a-n*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return Pg(this,s*t+u*n,s*r+u*i,l*t+c*n,l*r+c*i,a+d*t+f*n,o+d*r+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&r===e.b&&n===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var r=e.x,n=e.y,i=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=r*i+n*o+l||0,t.y=r*a+n*s+u||0,t},e}();function Pb(e,t,r,n){if(!e||!e.parentNode||(O8||Pl(e)).documentElement===e)return new Pv;var i=Pu(e),a=Pf(e)?Pc:Pd,o=Py(e,r),s=a[0].getBoundingClientRect(),l=a[1].getBoundingClientRect(),u=a[2].getBoundingClientRect(),c=o.parentNode,d=!n&&function e(t){return"fixed"===O9.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new Pv((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:O9.pageXOffset||O8.scrollLeft||O7.scrollLeft||Pe.scrollLeft||0),s.top+(d?0:O9.pageYOffset||O8.scrollTop||O7.scrollTop||Pe.scrollTop||0));if(c.removeChild(o),i)for(s=i.length;s--;)(l=i[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var Pw,Px,PS,PE,PD,PO,PP="x,translateX,left,marginLeft,xPercent".split(","),Pj="y,translateY,top,marginTop,yPercent".split(","),Pk=Math.PI/180,PC=function(e,t,r,n){for(var i=t.length,a=2===n?0:n,o=0;o<i;o++)e[a]=parseFloat(t[o][r]),2===n&&(e[a+1]=0),a+=2;return e},PT=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},PA=function(e){var t,r=e[0],n=e[1];for(t=2;t<e.length;t+=2)r=e[t]+=r,n=e[t+1]+=n},PR=function(e,t,r,n,i,a,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(PT(r,n,s),i?PT(r,i,l):0),o.relative&&PA(t),t=[(i?O3:function(e,t){void 0===t&&(t=1);for(var r=e[0],n=0,i=[r,0],a=2;a<e.length;a+=2)i.push(r,n,e[a],n=(e[a]-r)*t/2,r=e[a],-n);return i})(t,o.curviness)]),t=a(P_(t,r,o)),PF(e,r,n,t,"x",s),i&&PF(e,r,i,t,"y",l),OX(t,o.resolution||(0===o.curviness?20:12))},PI=function(e){return e},PM=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,PN=function(e,t,r){var n,i=Pb(e),a=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(n=e.viewBox.baseVal).width||(n={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):n=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(a=t.push?t[0]*(n?n.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(n?n.height:e.offsetHeight||0):t.y),r.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})},PL=function(e,t,r,n){var i,a=Pb(e.parentNode,!0,!0),o=a.clone().multiply(Pb(t)),s=PN(e,r,a),l=PN(t,n,a),u=l.x,c=l.y;return o.e=o.f=0,"auto"===n&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(i=t.getAttribute("d").match(PM)||[],u+=(i=o.apply({x:+i[0],y:+i[1]})).x,c+=i.y),i&&(u-=(i=o.apply(t.getBBox())).x,c-=i.y),o.e=u-s.x,o.f=c-s.y,o},P_=function(e,t,r){var n,i,a,o=r.align,s=r.matrix,l=r.offsetX,u=r.offsetY,c=r.alignOrigin,d=e[0][0],f=e[0][1],p=PT(t,"x"),h=PT(t,"y");return e&&e.length?(o&&("self"===o||(n=PE(o)[0]||t)===t?O1(e,1,0,0,1,p-d,h-f):(c&&!1!==c[2]?Pw.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(PT(t,"xPercent")/100),-(PT(t,"yPercent")/100)],a=(i=PL(t,n,c,"auto")).apply({x:d,y:f}),O1(e,i.a,i.b,i.c,i.d,p+i.e-(a.x-i.e),h+i.f-(a.y-i.f)))),s?O1(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&O1(e,1,0,0,1,l||0,u||0),e):OH("M0,0L0,0")},PF=function(e,t,r,n,i,a){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[r],u=l&&0>l.indexOf(",")?l:r,c=e._pt=new Px(e._pt,t,u,0,0,PI,0,o.set(t,u,e));c.u=PS(o.get(t,u,a))||0,c.path=n,c.pp=i,e._props.push(u)},PB={version:"3.15.0",name:"motionPath",register:function(e,t,r){PS=(Pw=e).utils.getUnit,PE=Pw.utils.toArray,PD=Pw.core.getStyleSaver,PO=Pw.core.reverting||function(){},Px=r},init:function(e,t,r){if(!Pw)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&!t.style&&t.path||(t={path:t});var n,i,a,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,h=u.x,m=u.y,y=c[0],g=(i=t.start,a="end"in t?t.end:1,function(e){return i||1!==a?Oq(e,i,a):e});if(this.rawPaths=l,this.target=e,this.tween=r,this.styles=PD&&PD(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=PS(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)OX(o=g(P_(OH(t.path),e,t)),t.resolution),l.push(o),PF(this,e,t.x||"x",o,"x",t.unitX||"px"),PF(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!h&&~PP.indexOf(s)?h=s:!m&&~Pj.indexOf(s)&&(m=s);for(s in h&&m?l.push(PR(this,PC(PC([],c,h,0),c,m,1),e,h,m,g,t,f||PS(c[0][h]),p||PS(c[0][m]))):h=m=0,y)s!==h&&s!==m&&l.push(PR(this,PC([],c,s,2),e,s,0,g,t,PS(c[0][s])))}r.vars.immediateRender&&this.render(r.progress(),this)},render:function(e,t){var r=t.rawPaths,n=r.length,i=t._pt;if(t.tween._time||!PO()){for(e>1?e=1:e<0&&(e=0);n--;)O0(r[n],e,!n&&t.rotate,r[n]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,e),i=i._next;t.rotate&&t.rSet(t.target,t.rProp,r[0].angle*(t.radians?Pk:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return OX(OH(e)).totalLength},sliceRawPath:Oq,getRawPath:OH,pointsToSegment:O3,stringToRawPath:O2,rawPathToString:O4,transformRawPath:O1,getGlobalMatrix:Pb,getPositionOnPath:O0,cacheRawPathMeasurements:OX,convertToPath:function(e,t){return PE(e).map(function(e){var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return r=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=OG(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),D=OY(e,OK[O]),"rect"===O?(o=D.rx,s=D.ry||o,i=D.x,a=D.y,f=D.width-2*o,p=D.height-2*s,o||s?(h=i+.44771525016900005*o,g=(y=(m=i+o)+f)+.552284749831*o,v=y+o,b=a+.44771525016900005*s,S=(x=(w=a+s)+p)+.552284749831*s,E=x+s,n="M"+v+","+w+" V"+x+" C"+[v,S,g,E,y,E,y-(y-m)/3,E,m+(y-m)/3,E,m,E,h,E,i,S,i,x,i,x-(x-w)/3,i,w+(x-w)/3,i,w,i,b,h,a,m,a,m+(y-m)/3,a,y-(y-m)/3,a,y,a,g,a,v,b,v,w].join(",")+"z"):n="M"+(i+f)+","+a+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=D.r):(o=D.rx,c=.552284749831*(s=D.ry)),i=D.cx,a=D.cy,u=.552284749831*o,n="M"+(i+o)+","+a+" C"+[i+o,a+c,i+u,a+s,i,a+s,i-u,a+s,i-o,a+c,i-o,a,i-o,a-c,i-u,a-s,i,a-s,i+u,a-s,i+o,a-c,i+o,a].join(",")+"z"):"line"===O?n="M"+D.x1+","+D.y1+" L"+D.x2+","+D.y2:("polyline"===O||"polygon"===O)&&(n="M"+(i=(d=(e.getAttribute("points")+"").match(OS)||[]).shift())+","+(a=d.shift())+" L"+d.join(","),"polygon"===O&&(n+=","+i+","+a+"z")),l.setAttribute("d",O4(l._gsRawPath=O2(n))),r&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,r){var n=Pb(t,!0,!0).multiply(Pb(e));return r?n.apply(r):n},getAlignMatrix:PL,getRelativePosition:function(e,t,r,n){var i=PL(e,t,r,n);return{x:i.e,y:i.f}},arrayToRawPath:function(e,t){var r=PC(PC([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&PA(r),["cubic"===t.type?r:O3(r,t.curviness)]}};(Pw||"u">typeof window&&(Pw=window.gsap)&&Pw.registerPlugin&&Pw)&&Pw.registerPlugin(PB);let PV="_91T10b5z4yVLEvBTiOHB2w==",P$="DV-xKWaHEEvN+MaZK6G-sw==",PW="BiOYgCt0Z+UKXxmzw9enhg==";function PU(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function PH(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}EH.registerPlugin(PB);var PG=function(e){var t,r=e.url,n=e.title,i=e.open,a=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return PU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return PU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,m.useRef)(null),p={transformOrigin:"center center"},y=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},g=function(){return{cx:200,cy:200,r:49}};return(0,m.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,r=c?0:e+t;i?EH.timeline().set(f.current,Pz({},p,y())).to(f.current,PH(Pz({},p,g()),{duration:t,ease:"power3.inOut"})).to(f.current,PH(Pz({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):EH.timeline({overwrite:!0}).set(f.current,Pz({},p,{cx:5100,cy:200,r:4900})).to(f.current,PH(Pz({},p,g()),{delay:r,duration:e,ease:"power4.out"})).to(f.current,PH(Pz({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},y()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[i]),(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PV,children:[(0,h.jsxs)("defs",{children:[(0,h.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,h.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,h.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,h.jsx)("rect",{width:400,height:400})})]}),(0,h.jsx)("g",{clipPath:"url(#".concat(o).concat(a?"_squareClip":"_circleClip",")"),children:(0,h.jsx)("image",{width:400,height:400,href:r,className:P$,children:(0,h.jsx)("title",{children:n})})})]})},PK=function(e){var t=e.images,r=e.onSelect,n=function(e){return 200-(24*t.length-10)/2+24*e},i=function(){return 370};return(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PV,children:t.map(function(e,t){return(0,h.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,h.jsx)("circle",{cx:n(t),cy:i(),r:7})})}),(0,h.jsx)("image",{x:n(t)-7,y:i()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:P$,preserveAspectRatio:"xMidYMid slice"}),(0,h.jsx)("circle",{onClick:function(){return r(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:n(t),cy:i(),r:9,children:(0,h.jsx)("title",{children:e.title})})]},e.url)})})};function PY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pq=function(e){var t=e.images,r=e.autoplay,n=void 0===r||r,i=e.autoplayInterval,a=void 0===i?4500:i,o=e.className,s=e.style,l=PZ((0,m.useState)(0),2),u=l[0],c=l[1],d=PZ((0,m.useState)(0),2),f=d[0],p=d[1],y=PZ((0,m.useState)(!1),2),g=y[0],b=y[1],w=(0,m.useRef)(null),x=function(e){return p(e)},S=(0,m.useCallback)(function(){c(function(e){var r=e+1;return r>=t.length&&(r=0),r})},[t.length]),E=(0,m.useCallback)(function(){c(function(e){var r=e-1;return r<0&&(r=t.length-1),r})},[t.length]);return(0,m.useEffect)(function(){return b(!0)},[u]),(0,m.useEffect)(function(){return b(!1)},[f]),(0,m.useEffect)(function(){if(n)return w.current&&clearInterval(w.current),w.current=window.setInterval(S,a),function(){w.current&&clearInterval(w.current)}},[u,n,a,S]),(0,h.jsxs)("div",{className:v()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,h.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,r){return(0,h.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===r?r:t.length+1},children:(0,h.jsx)(PG,{total:t.length,id:r,url:e.url,title:e.title,open:u===r,inPlace:f===r,onInPlace:x})},e.url)}),(0,h.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,h.jsx)(PK,{images:t,onSelect:function(e){g||c(e)}})})]}),(0,h.jsx)("button",{type:"button",className:v()(PW,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:E,disabled:g,"aria-label":"Image pr\xe9c\xe9dente",children:(0,h.jsx)(eS,{size:28})}),(0,h.jsx)("button",{type:"button",className:v()(PW,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:g,"aria-label":"Image suivante",children:(0,h.jsx)(eE,{size:28})})]})};function PX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PQ(e){var t=e.handleShuffle,r=e.testimonial,n=e.position,i=e.id,a=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,m.useRef)(0),f="front"===n;return(0,h.jsxs)(hK.div,{style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){PX(e,t,r[t])})}return e}({zIndex:"front"===n?2:+("middle"===n),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===n?"-6deg":"middle"===n?"0deg":"6deg",x:"front"===n?"0%":"middle"===n?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var r=e.clientX;d.current-r>150&&t(),d.current=0},transition:{duration:.35},className:v()("ohCq+RO21+rIvJcyy3o2gw==",PX({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,h.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(i),alt:"Avatar of ".concat(a),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,h.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',r,'"']}),(0,h.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:a})]})}function PJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P0(e){if(Array.isArray(e))return e}function P1(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function P2(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P3(e,t){if(e){if("string"==typeof e)return PJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PJ(e,t)}}function P4(e){var t,r=e.testimonials,n=e.cardWidth,i=void 0===n?350:n,a=e.cardHeight,o=void 0===a?450:a,s=e.className,l=e.style,u=e.onShuffle,c=P0(t=(0,m.useState)(function(){return r.map(function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||P3(t,2)||P2(),d=c[0],f=c[1];(0,m.useEffect)(function(){f(r.map(function(e,t){return t}))},[r]);var p=(0,m.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,n=P0(e)||P1(e)||P3(e)||P2(),i=n[0],a=n.slice(1);return null==u||u(null==(t=r[i])?void 0:t.id),((function(e){if(Array.isArray(e))return PJ(e)})(a)||P1(a)||P3(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([i])})},[u,r]);return(0,h.jsx)("div",{className:v()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i,height:o},l),children:d.map(function(e,t){var n=r[e];return n?(0,h.jsx)(PQ,{id:n.id,testimonial:n.testimonial,author:n.author,avatarUrl:n.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:i,cardHeight:o},n.id):null})})}var P5=(0,m.createContext)(null),P6=function(){var e=(0,m.useContext)(P5);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function P8(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function P9(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(function(r){var n=e[r],i=t[r];return"function"==typeof n?"".concat(n)==="".concat(i):P8(n)&&P8(i)?P9(n,i):n===i})}function P7(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jt(e){return"number"==typeof e}function jr(e){return"string"==typeof e}function jn(e){return"boolean"==typeof e}function ji(e){return"[object Object]"===Object.prototype.toString.call(e)}function ja(e){return Math.abs(e)}function jo(e){return Math.sign(e)}function js(e){return jd(e).map(Number)}function jl(e){return e[ju(e)]}function ju(e){return Math.max(0,e.length-1)}function jc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,r){return t+r})}function jd(e){return Object.keys(e)}function jf(e,t){var r;return void 0!==t.MouseEvent&&(null!=(r=t.MouseEvent)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)}function jp(){var e=[],t={add:function(r,n,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in r?(r.addEventListener(n,i,o),a=function(){return r.removeEventListener(n,i,o)}):(r.addListener(i),a=function(){return r.removeListener(i)}),e.push(a),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function jh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=ja(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function jm(e){var t=e;function r(e){return jt(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function jy(e,t){var r="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},n=t.style,i=null,a=!1;return{clear:function(){!a&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!a){var o=Math.round(100*e.direction(t))/100;o!==i&&(n.transform=r(o),i=o)}},toggleActive:function(e){a=!e}}}var jg={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function jv(e,t,r){var n,i,a,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,r){return[t,r].reduce(function(t,r){return jd(r).forEach(function(n){var i=t[n],a=r[n],o=ji(i)&&ji(a);t[n]=o?e(i,a):a}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){var n=r.breakpoints||{},i=jd(n).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return n[e]}).reduce(function(e,r){return t(e,r)},{});return t(r,i)},optionsMediaQueries:function(t){return t.map(function(e){return jd(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),h=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var r,n;return Object.assign(e,(r={},n=t.name,n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),m=jp(),y=(i={},a={init:function(e){n=e},emit:function(e){return(i[e]||[]).forEach(function(t){return t(n,e)}),a},off:function(e,t){return i[e]=(i[e]||[]).filter(function(e){return e!==t}),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),g=p.mergeOptions,v=p.optionsAtMedia,b=p.optionsMediaQueries,w=y.on,x=y.off,S=y.emit,E=!1,D=g(jg,jv.globalOptions),O=g(D),P=[];function j(t,r){var n,i,a,o;!E&&(O=v(D=g(D,t)),P=r||P,n=O.container,i=O.slides,u=(jr(n)?e.querySelector(n):n)||e.children[0],a=jr(i)?u.querySelectorAll(i):i,c=[].slice.call(a||u.children),s=function t(r){var n=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A,R,I,M,N,L,_,F,B,V,$,W,U,z,H,G,K,Y,Z,q,X=a.align,Q=a.axis,J=a.direction,ee=a.startIndex,et=a.loop,er=a.duration,en=a.dragFree,ei=a.dragThreshold,ea=a.inViewThreshold,eo=a.slidesToScroll,es=a.skipSnaps,el=a.containScroll,eu=a.watchResize,ec=a.watchSlides,ed=a.watchDrag,ef=a.watchFocus,ep={measure:function(e){var t=e.offsetTop,r=e.offsetLeft,n=e.offsetWidth,i=e.offsetHeight;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},eh=ep.measure(t),em=r.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,h=f?"top":d?"right":"left",m=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:h,endEdge:m,measureSize:function(e){var t=e.height,r=e.width;return f?t:r},direction:function(e){return e*p}}),eg=ey.measureSize(eh),ev={measure:function(e){return e/100*eg}},eb=(s=X,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return jr(s)?u[s](e):s(l,e,t)}}),ew=!et&&!!el,ex=et||!!el,eS=(y=ey.measureSize,g=ey.startEdge,v=ey.endEdge,b=em[0]&&ex,w=function(){if(!b)return 0;var e=em[0];return ja(eh[g]-e[g])}(),x=b?parseFloat(i.getComputedStyle(jl(r)).getPropertyValue("margin-".concat(v))):0,S=em.map(y),E=em.map(function(e,t,r){var n=t===ju(r);return t?n?S[t]+x:r[t+1][g]-e[g]:S[t]+w}).map(ja),{slideSizes:S,slideSizesWithGaps:E,startGap:w,endGap:x}),eE=eS.slideSizes,eD=eS.slideSizesWithGaps,eO=eS.startGap,eP=eS.endGap,ej=(D=ey.startEdge,O=ey.endEdge,P=ey.direction,j=jt(eo),{groupSlides:function(e){return j?js(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?js(e).reduce(function(t,r,n){var i=jl(t)||0,a=r===ju(e),o=eh[D]-em[i][D],s=eh[D]-em[r][O],l=et||0!==i?0:P(eO),u=ja(s-(!et&&a?P(eP):0)-(o+l));return n&&u>eg+2&&t.push(r),a&&t.push(e.length),t},[]).map(function(t,r,n){var i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}),ek=(k=ey.startEdge,C=ey.endEdge,A=(T=ej.groupSlides)(em).map(function(e){return jl(e)[C]-e[0][k]}).map(ja).map(eb.measure),I=T(R=em.map(function(e){return eh[k]-e[k]}).map(function(e){return-ja(e)})).map(function(e){return e[0]}).map(function(e,t){return e+A[t]}),{snaps:R,snapsAligned:I}),eC=ek.snaps,eT=ek.snapsAligned,eA=-jl(eC)+jl(eD),eR=function(e,t,r,n){var i,a,o=jh(-t+e,0),s=r.map(function(e,t){var n=o.min,i=o.max,a=o.constrain(e),s=t===ju(r);return t?s||function(e,t){return 1>=ja(e-t)}(n,a)?n:function(e,t){return 1>=ja(e-t)}(i,a)?i:a:i}).map(function(e){return parseFloat(e.toFixed(3))}),l=(i=s[0],a=jl(s),jh(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return s;var r=l.min,i=l.max;return s.slice(r,i)}(),scrollContainLimit:l}}(eg,eA,eT,el),eI=eR.snapsContained,eM=eR.scrollContainLimit,eN=ew?eI:eT,eL=(M=eN[0],{limit:jh(et?M-eA:jl(eN),M)}).limit,e_=function e(t,r,n){var i=jh(0,t).constrain,a=t+1,o=s(r);function s(e){return n?ja((a+e)%a):i(e)}function l(){return e(t,o,n)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(ju(eN),ee,et),eF=e_.clone(),eB=js(r),eV=function(e){var t=e.dragHandler,r=e.scrollBody,n=e.scrollBounds;e.options.loop||n.constrain(t.pointerDown()),r.seek()},e$=function(e,t){var r=e.scrollBody,n=e.translate,i=e.location,a=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,h=r.settled(),m=!f.shouldConstrain(),y=p?h:h&&m,g=y&&!u.pointerDown();g&&c.stop();var v=i.get()*t+o.get()*(1-t);a.set(v),p&&(s.loop(r.direction()),l.loop()),n.to(a.get()),g&&d.emit("settle"),y||d.emit("scroll")},eW=function(e,t,r,n){var i=jp(),a=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,r(),r());var i=e-o;for(o=e,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,function(){return eV(e2)},function(e){return e$(e2,e)}),eU=eN[e_.get()],ez=jm(eU),eH=jm(eU),eG=jm(eU),eK=jm(eU),eY=function(e,t,r,n,i){var a=0,o=0,s=i,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){var t=n.get()-e.get(),i=0;return s?(r.set(e),a+=t/s,a*=l,u+=a,e.add(a),i=u-c):(a=0,r.set(n),e.set(n),i=t),o=jo(i),c=u,p},settled:function(){return .001>ja(n.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return p}(ez,eG,eH,eK,er),eZ=function(e,t,r,n,i){var a=n.reachedAny,o=n.removeOffset,s=n.constrain;function l(e){return e.concat().sort(function(e,t){return ja(e)-ja(t)})[0]}function u(t,n){var i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);var a=i.filter(function(e){return jo(e)===n});return a.length?l(a):jl(i)-r}return{byDistance:function(r,n){var l,c=i.get()+r,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return ja(e.diff)-ja(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,h=!e&&a(c);if(!n||h)return{index:f,distance:r};var m=r+u(t[f]-p,0);return{index:f,distance:m}},byIndex:function(e,r){var n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(et,eN,eA,eL,eK),eq=function(e,t,r,n,i,a,o){function s(i){var s=i.distance,l=i.index!==t.get();a.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){var n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(eW,e_,eF,eY,eZ,eK,o),eX=(N=eL.max,L=eL.length,{get:function(e){return L?-((e-N)/L):0}}),eQ=jp(),eJ=(F={},B=null,V=null,$=!1,{init:function(){_=new IntersectionObserver(function(e){$||(e.forEach(function(e){F[r.indexOf(e.target)]=e}),B=null,V=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ea}),r.forEach(function(e){return _.observe(e)})},destroy:function(){_&&_.disconnect(),$=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&B)return B;if(!e&&V)return V;var t=jd(F).reduce(function(t,r){var n=parseInt(r),i=F[n].isIntersecting;return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(B=t),e||(V=t),t}}),e0=(W=ej.groupSlides,U=eM.min,z=eM.max,{slideRegistry:(c=W(eB),1===eN.length?[eB]:ew&&"keepSnaps"!==el?c.slice(U,z).map(function(e,t,r){var n=t===ju(r);return t?n?jc(ju(eB)-jl(r)[0]+1,jl(r)[0]):e:jc(jl(r[0])+1)}):c)}).slideRegistry,e1=function(e,t,r,n,i,a,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(a.add(document,"keydown",c,!1),t.forEach(function(t,c){a.add(t,"focus",function(t){(jn(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var a=r.findIndex(function(e){return e.includes(t)});jt(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,r,e0,eq,eY,eQ,o,ef),e2={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:eh,slideRects:em,animation:eW,axis:ey,dragHandler:function(e,t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g){var v=e.cross,b=e.direction,w=["INPUT","SELECT","TEXTAREA"],x={passive:!1},S=jp(),E=jp(),D=jh(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},P={mouse:500,touch:600},j=h?43:25,k=!1,C=0,T=0,A=!1,R=!1,I=!1,M=!1;function N(e){if(!jf(e,n)&&e.touches.length>=2)return L(e);var t=a.readPoint(e),r=a.readPoint(e,v),o=ja(t-C),l=ja(r-T);if(!R&&!M&&(!e.cancelable||!(R=o>l)))return L(e);var c=a.pointerMove(e);o>m&&(I=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(b(c)),e.preventDefault()}function L(e){var t,r,n,i=c.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(h?P:O)[M?"mouse":"touch"],s=(t=b(o),r=d.add(-1*jo(t)),n=c.byDistance(t,!h).distance,h||ja(t)<D?n:y&&i?.5*n:c.byIndex(r.get(),0).distance),p=function(e,t){if(0===e||0===t||ja(e)<=ja(t))return 0;var r,n,i=(r=ja(e),n=ja(t),ja(r-n));return ja(i/e)}(o,s);R=!1,A=!1,E.clear(),u.useDuration(j-10*p).useFriction(.68+p/50),l.distance(s,!h),M=!1,f.emit("pointerUp")}function _(e){I&&(e.stopPropagation(),e.preventDefault(),I=!1)}return{init:function(e){g&&S.add(t,"dragstart",function(e){return e.preventDefault()},x).add(t,"touchmove",function(){},x).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",L).add(t,"contextmenu",L).add(t,"click",_,!0);function s(s){var l,c,d,p;(jn(g)||g(e,s))&&(M=p=jf(l=s,n),I=h&&p&&!l.buttons&&k,k=ja(i.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",w.includes(c)||(A=!0,a.pointerDown(l),u.useFriction(0).useDuration(0),i.set(o),d=M?r:t,E.add(d,"touchmove",N,x).add(d,"touchend",L).add(d,"mousemove",N,x).add(d,"mouseup",L),C=a.readPoint(l),T=a.readPoint(l,v),f.emit("pointerDown"))))}},destroy:function(){S.clear(),E.clear()},pointerDown:function(){return A}}}(ey,e,n,i,eK,function(e,t){var r,n;function i(e){return e.timeStamp}function a(r,n){var i=n||e.scroll;return(jf(r,t)?r:r.touches[0])["client".concat("x"===i?"X":"Y")]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){var t=a(e)-a(n),o=i(e)-i(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;var t=a(n)-a(r),o=i(e)-i(r),s=i(e)-i(n)>170,l=t/o;return o&&!s&&ja(l)>.1?l:0},readPoint:a}}(ey,i),ez,eW,eq,eY,eZ,e_,o,ev,en,ei,es,ed),eventStore:eQ,percentOfView:ev,index:e_,indexPrevious:eF,limit:eL,location:ez,offsetLocation:eG,previousLocation:eH,options:a,resizeHandler:function(e,t,r,n,i,a,o){var s,l,u=[e].concat(n),c=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=f(e),c=n.map(f),s=new ResizeObserver(function(r){(jn(a)||a(i,r))&&function(r){var a=!0,o=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(a=(u=p.next()).done);a=!0){var h=u.value;if(d)return;var m=h.target===e,y=n.indexOf(h.target),g=m?l:c[y],v=f(m?e:n[y]);if(ja(v-g)>=.5){i.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{a||null==p.return||p.return()}finally{if(o)throw s}}}(r)}),r.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,i,r,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,r,n,i){var a=i.measure(10),o=i.measure(50),s=jh(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=ja(e[l]-t.get()),d=r.get()-t.get(),f=s.constrain(c/o);r.subtract(d*f),!i&&ja(d)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eG,eK,eY,ev),scrollLooper:(H=[ez,eG,eH,eK],K=(G=jh(eL.min+.1,eL.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&K(eG.get())){var t=-1*e*eA;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eN.map(eX.get),scrollSnaps:eN,scrollTarget:eZ,scrollTo:eq,slideLooper:function(e,t,r,n,i,a,o,s,l){var u=js(i),c=js(i).reverse(),d=h(p(c,o[0]),r,!1).concat(h(p(u,t-o[0]-1),-r,!0));function f(e,t){return e.reduce(function(e,t){return e-i[t]},t)}function p(e,t){return e.reduce(function(e,r){return f(e,t)>0?e.concat([r]):e},[])}function h(i,o,u){var c=a.map(function(e,r){return{start:e-n[r]+.5+o,end:e+t-.5+o}});return i.map(function(t){var n=u?0:-r,i=u?r:0,a=c[t][u?"end":"start"];return{index:t,loopPoint:a,slideLocation:jm(-1),translate:jy(e,l[t]),target:function(){return s.get()>a?n:i}}})}return{canLoop:function(){return d.every(function(e){var r=e.index;return .1>=f(u.filter(function(e){return e!==r}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,r=e.translate,n=e.slideLocation,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:d}}(ey,eg,eA,eE,eD,eC,eN,eG,r),slideFocus:e1,slidesHandler:(q=!1,{init:function(e){ec&&(Z=new MutationObserver(function(t){!q&&(jn(ec)||ec(e,t))&&function(t){var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(t)})).observe(t,{childList:!0})},destroy:function(){Z&&Z.disconnect(),q=!0}}),slidesInView:eJ,slideIndexes:eB,slideRegistry:e0,slidesToScroll:ej,target:eK,translate:jy(ey,t)};return e2}(e,u,c,d,f,r,y);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(O),b([D].concat(function(e){if(Array.isArray(e))return je(e)}(o=P.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return je(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return je(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return m.add(e,"change",k)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(R),s.eventHandler.init(R),s.resizeHandler.init(R),s.slidesHandler.init(R),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(R),l=h.init(R,P)))}function k(e,t){var r=A();C(),j(g({startIndex:r},e),t),y.emit("reInit")}function C(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),h.destroy(),m.clear()}function T(e,t,r){O.active&&!E&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,r||0))}function A(){return s.index.get()}var R={canScrollNext:function(){return s.index.add(1).get()!==A()},canScrollPrev:function(){return s.index.add(-1).get()!==A()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){E||(E=!0,m.clear(),C(),y.emit("destroy"),y.clear())},off:x,on:w,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:k,rootNode:function(){return e},scrollNext:function(e){T(s.index.add(1).get(),e,-1)},scrollPrev:function(e){T(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:T,selectedScrollSnap:A,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return j(t,r),setTimeout(function(){return y.emit("init")},0),R}function jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jb(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,m.useRef)(e),n=(0,m.useRef)(t),i=jw((0,m.useState)(),2),a=i[0],o=i[1],s=jw((0,m.useState)(),2),l=s[0],u=s[1],c=(0,m.useCallback)(function(){a&&a.reInit(r.current,n.current)},[a]);return(0,m.useEffect)(function(){P9(r.current,e)||(r.current=e,c())},[e,c]),(0,m.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var r=P7(e),n=P7(t);return r.every(function(e,t){return P9(e,n[t])})}(n.current,t)&&(n.current=t,c())},[t,c]),(0,m.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){jv.globalOptions=jx.globalOptions;var e=jv(l,r.current,n.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,a]}jv.globalOptions=void 0,jx.globalOptions=void 0;let jS={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function jE(e){var t=e.children,r=e.className,n=P6(),i=n.axis,a=n.mainViewportRef;return(0,h.jsx)("div",{ref:a,className:v()(jS.viewport,jS["viewport--".concat(i)],r),children:(0,h.jsx)("div",{className:v()(jS.container,jS["container--".concat(i)]),children:t})})}function jD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jD(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jP(e){var t,r,n,i=e.children,a=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(n=null==a?void 0:a.axis)?n:"x",f=jO(jx((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},a),r=r={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),o),2),p=f[0],g=f[1],b=jO(jx({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),w=b[0],x=b[1],S=jO((0,m.useState)(0),2),E=S[0],D=S[1],O=(0,m.useMemo)(function(){return function(e){var t=y().Children.toArray(e),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(y().isValidElement(s)&&s.type===jE){var l=s.props;return y().Children.toArray(l.children).filter(y().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return[]}(i)},[i]),P=(0,m.useCallback)(function(e){null==g||g.scrollTo(e)},[g]),j=(0,m.useCallback)(function(){if(g){var e=g.selectedScrollSnap();D(e),null==x||x.scrollTo(e)}},[g,x]);return(0,m.useEffect)(function(){if(g)return j(),g.on("select",j).on("reInit",j),function(){g.off("select",j).off("reInit",j)}},[g,j]),(0,h.jsx)(P5.Provider,{value:{axis:d,mainViewportRef:p,mainApi:g,thumbsViewportRef:w,thumbsApi:x,selectedIndex:E,scrollTo:P,thumbnails:O},children:(0,h.jsx)("div",{className:v()(jS.root,u),style:c,children:i})})}function jj(e){var t=e.children,r=e.className,n=P6().axis;return(0,h.jsx)("div",{className:v()(jS.slide,jS["slide--".concat(n)],r),children:t})}function jk(e){var t=e.className,r=e.thumbsSliderClassName,n=P6(),i=n.axis,a=n.thumbsViewportRef,o=n.thumbnails,s=n.selectedIndex,l=n.scrollTo;return 0===o.length?null:(0,h.jsx)("div",{ref:a,className:v()(jS.thumbsViewport,t),children:(0,h.jsx)("div",{className:v()(jS.thumbsContainer,jS["thumbsContainer--".concat(i)]),children:o.map(function(e,t){var n,i,a=t===s;return(0,h.jsx)("button",{type:"button",onClick:function(){return l(t)},className:v()(jS.thumb,(n={},i=jS["thumb--active"],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n),a&&r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":a,children:e&&(0,h.jsx)("img",{src:e,alt:"",className:jS.thumbImage})},t)})})})}function jC(e){var t=e.className,r=e.dotClassName,n=P6(),i=n.thumbnails,a=n.selectedIndex,o=n.scrollTo;return 0===i.length?null:(0,h.jsx)("div",{className:v()(jS.dots,t),children:i.map(function(e,t){var n,i,s;return(0,h.jsx)("button",{type:"button",onClick:function(){return o(t)},className:v()(jS.dot,(n={},i=jS["dot--active"],s=t===a,i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,n),r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===a},t)})})}},5923(e,t,r){"use strict";r.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var n=r(2974),i=r(240),a=r(2298),o=r(345),s=r(9405);function l(e){let t,r="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,(0,n.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)(this,e)}cycle(e,t,r){return(0,n.xy)(this,e,t,r)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,a.$T)(this)}compare(e){return(0,i.SE)(this,e)}}class c{#t;constructor(e=0,t=0,r=0,i=0){this.hour=e,this.minute=t,this.second=r,this.millisecond=i,(0,n.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.tY)(this,e)}subtract(e){return(0,n.YP)(this,e)}set(e){return(0,n.ib)(this,e)}cycle(e,t,r){return(0,n.gt)(this,e,t,r)}toString(){return(0,a.ot)(this)}compare(e){return(0,i.Nu)(this,e)}}class d{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)((0,n.ib)(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return(0,n.xy)(this,e,t,r);default:return(0,n.gt)(this,e,t,r)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,a.qk)(this)}compare(e){let t=(0,i.SE)(this,e);return 0===t?(0,i.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,r,i,a,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.E0)(this,e)}subtract(e){return(0,n.d_)(this,e)}set(e,t){return(0,n.D8)(this,e,t)}cycle(e,t,r){return(0,n.XH)(this,e,t,r)}toDate(){return(0,s.cd)(this)}toString(){return(0,a.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,r){"use strict";r.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>a});var n=r(5923),i=r(5504);function a(e,t,r,n){let i=(t=s(e,t))-1,a=-2;return r<=2?a=0:o(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={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 c{fromJulianDay(e){let t=e-1721426,r=Math.floor(t/146097),s=(0,i.z)(t,146097),u=Math.floor(s/36524),c=(0,i.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,i.z)(c,1461)/365),[p,h]=l(400*r+100*u+4*d+f+ +(4!==u&&4!==f)),m=e-a(p,h,1,1),y=2;e<a(p,h,3,1)?y=0:o(h)&&(y=1);let g=Math.floor(((m+y)*12+373)/367),v=e-a(p,h,g,1)+1;return new(0,n.ng)(p,h,g,v)}toJulianDay(e){return a(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,r){"use strict";r.d(t,{Ou:()=>x,Tr:()=>f,Yd:()=>h,ay:()=>p,cd:()=>b,gw:()=>m,oU:()=>s,tR:()=>y,uB:()=>v,yP:()=>g});var n=r(5923),i=r(2974),a=r(345),o=r(240);function s(e){return e=g(e,new(0,a.FG)),l((0,a.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,r,n,i,a,o){let s=new Date;return s.setUTCHours(n,i,a,o),s.setUTCFullYear(e,t-1,r),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:i,hour:a,minute:s,second:u}=d(e,t);return l(r,n,i,a,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let r=c.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let e of n)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function f(e,t,r="compatible"){var n,i,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===r&&!(0,o.rS)()){c=g(c,new(0,a.FG));let e=new Date,t=(0,a.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),h=u(p-864e5,t),m=u(p+864e5,t),v=(n=c,((i=p-h)==(l=p-m)?[i]:[i,l]).filter(e=>{var r;let i;return r=n,i=d(e,t),r.year===i.year&&r.month===i.month&&r.day===i.day&&r.hour===i.hour&&r.minute===i.minute&&r.second===i.second}));if(1===v.length)return v[0];if(v.length>1)switch(r){case"compatible":case"earlier":return v[0];case"later":return v[v.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(p-h,p-m);case"compatible":case"later":return Math.max(p-h,p-m);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function h(e,t){let r=u(e,t),i=new Date(e+r),a=i.getUTCFullYear(),o=i.getUTCMonth()+1,s=i.getUTCDate(),l=i.getUTCHours(),c=i.getUTCMinutes(),d=i.getUTCSeconds(),f=i.getUTCMilliseconds();return new(0,n.Ip)(a<1?"BC":"AD",a<1?-a+1:a,o,s,t,r,l,c,d,f)}function m(e){return new(0,n.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let r=0,i=0,a=0,o=0;if("timeZone"in e)({hour:r,minute:i,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:i,second:a,millisecond:o}=t),new(0,n._l)(e.calendar,e.era,e.year,e.month,e.day,r,i,a,o)}function g(e,t){if((0,o.Jg)(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,i.AU)(n),n}function v(e,t,r){return e instanceof n.Ip?e.timeZone===t?e:w(e,t):h(f(e,t,r),t)}function b(e){return new Date(s(e)-e.offset)}function w(e,t){return g(h(s(e)-e.offset,t),e.calendar)}function x(e){return w(e,(0,o.Xj)())}},227(e,t,r){"use strict";let n,i;r.d(t,{d:()=>Z});var a=r(5923),o=r(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=(0,o.LA)(t.era,t.year);return new(0,a.ng)(this,r- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,r]=(0,o.f5)(e.year+-543);return new(0,a.ng)(t,r,e.month,e.day)}function u(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function c(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-u(e,r,1,1))/30),i=t+1-u(e,r,n,1);return[r,n,i]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,r,n]=c(1723856,e),i="AM";return t<=0&&(i="AA",t+=5500),new(0,a.ng)(this,i,t,r,n)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class h extends p{fromJulianDay(e){let[t,r,n]=c(1723856,e);return t+=5500,new(0,a.ng)(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class m extends p{fromJulianDay(e){let[t,r,n]=c(1824665,e),i="CE";return t<=0&&(i="BCE",t=1-t),new(0,a.ng)(this,i,t,r,n)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=r(5504);let g=765433;function v(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),r=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(r+1),7)&&(r+=1),r}function w(e){let t,r;return b(e)+(t=b(e-1),r=b(e),b(e+1)-r==356?2:+(r-t==382))}function x(e){return w(e+1)-w(e)}function S(e,t){if(t>=6&&!v(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let r=function(e){let t=x(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===r?30:29:3===t?0===r?29:30:6===t?30*!!v(e):30}class E{fromJulianDay(e){let t=e-347997,r=Math.floor((25920*t/g*19+234)/235)+1,n=w(r),i=Math.floor(t-n);for(;i<1;)i=Math.floor(t-(n=w(--r)));let o=1,s=0;for(;s<i;)s+=S(r,o),o++;let l=i-(s-=S(r,--o));return new(0,a.ng)(this,r,o,l)}toJulianDay(e){let t=w(e.year);for(let r=1;r<e.month;r++)t+=S(e.year,r);return t+e.day+347997}getDaysInMonth(e){return S(e.year,e.month)}getMonthsInYear(e){return v(e.year)?13:12}getDaysInYear(e){return x(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(v(t.year)&&!v(e.year)&&t.month>6?e.month--:!v(t.year)&&v(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class D extends o.FG{fromJulianDay(e){let t,r,n,i=super.fromJulianDay(e),s=i.year-78,l=e-(0,o.rG)(i.era,i.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(i.year-1)?31:30)+155+90+10):(t=(0,o.U_)(i.year)?31:30,l-=80),l<t)r=1,n=l+1;else{let e=l-t;e<155?(r=Math.floor(e/31)+2,n=e%31+1):(e-=155,r=Math.floor(e/30)+7,n=e%30+1)}return new(0,a.ng)(this,s,r,n)}toJulianDay(e){let t,r,n=e.year+78,[i,a]=(0,o.f5)(n);return((0,o.U_)(a)?(t=31,r=(0,o.rG)(i,a,3,21)):(t=30,r=(0,o.rG)(i,a,3,22)),1===e.month)?r+e.day-1:(r+=t+31*Math.min(e.month-2,5),e.month>=8&&(r+=(e.month-7)*30),r+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function P(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+O(t,n,1,1)))/29.5)+1),o=r-O(t,n,i,1)+1;return new(0,a.ng)(e,n,i,o)}function j(e){return(14+11*e)%30<11}class k{fromJulianDay(e){return P(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&j(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return j(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class C extends k{fromJulianDay(e){return P(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function T(e){return 460322+i[e-1300]}function A(e,t){return(n[e-1300]&1<<11-(t-1))==0?29:30}function R(e,t){let r=T(e);for(let n=1;n<t;n++)r+=A(e,n);return r}function I(e){return i[e+1-1300]-i[e-1300]}class M extends k{constructor(){if(super(),this.identifier="islamic-umalqura",n||(n=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!i){i=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){i[t-1300]=e;for(let r=1;r<=12;r++)e+=A(t,r)}}}fromJulianDay(e){let t=e-1948440,r=T(1300),n=T(1600);if(t<r||t>n)return super.fromJulianDay(e);{let e=1299,r=1,n=1;for(;n>0;){n=t-T(++e)+1;let i=I(e);if(n===i){r=12;break}if(n<i){let t=A(e,r);for(r=1;n>t;)n-=t,t=A(e,++r);break}}return new(0,a.ng)(this,e,r,t-R(e,r)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+R(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):A(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):I(e.year)}}let N=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],L=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function B(e){let t=N.findIndex(([t,r,n])=>!!(e.year<t)||e.year===t&&!!(e.month<r)||e.year===t&&e.month===r&&!!(e.day<n));return -1===t?N.length-1:0===t?0:t-1}function V(e){let t=_[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,a.ng)(e.year+t,e.month,e.day)}class $ extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=B(t);return new(0,a.ng)(this,F[r],t.year-_[r],t.month,t.day)}toJulianDay(e){return super.toJulianDay(V(e))}balanceDate(e){let t=V(e),r=B(t);F[r]!==e.era&&(e.era=F[r],e.year=t.year-_[r]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),r=L[t];if(null!=r){let[n,i,a]=r,o=n-_[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,r,n]=N[t];e.month=Math.max(r,e.month),e.month===r&&(e.day=Math.max(n,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),r=N[t],n=N[t+1];if(null==n)return 9999-r[0]+1;let i=n[0]-r[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(V(e))}getMinimumMonthInYear(e){let t=W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function W(e){if(1===e.year)return N[F.indexOf(e.era)]}let U=[0,31,62,93,124,155,186,216,246,276,306,336];class z{fromJulianDay(e){let t=e-1948320,r=1+Math.floor((33*t+3)/12053),n=t-(365*(r-1)+Math.floor((8*r+21)/33)),i=n<216?Math.floor(n/31):Math.floor((n-6)/30),o=n-U[i]+1;return new(0,a.ng)(this,r,i+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=U[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class K extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[r,n]=G((0,o.LA)(t.era,t.year));return new(0,a.ng)(this,r,n,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,r]=G(H(e));e.era=t,e.year=r}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,r]=(0,o.f5)(H(e));return new(0,a.ng)(t,r,e.month,e.day)}function Z(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new h;case"coptic":return new m;case"hebrew":return new E;case"indian":return new D;case"islamic-civil":return new k;case"islamic-tbla":return new C;case"islamic-umalqura":return new M;case"japanese":return new $;case"persian":return new z;case"roc":return new K;default:return new(0,o.FG)}}},2974(e,t,r){"use strict";r.d(t,{AU:()=>u,D8:()=>O,E0:()=>S,Rb:()=>h,Re:()=>d,WQ:()=>a,XH:()=>D,YP:()=>v,d_:()=>E,gt:()=>w,hZ:()=>f,ib:()=>p,tY:()=>g,xy:()=>b});var n=r(9405),i=r(345);function a(e,t){let r=e.copy(),n="hour"in r?y(r,t):0;o(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,s(r),l(r),r.day+=7*(t.weeks||0),r.day+=t.days||0,r.day+=n,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){let e=r.calendar.isInverseEra?.(r);r.year=i,r.month=e?1:r.calendar.getMonthsInYear(r),r.day=e?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(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 u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function d(e,t){return a(e,c(t))}function f(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),u(r),r}function p(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),h(r),r}function h(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),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 m(e,t){let r=e%t;return r<0&&(r+=t),r}function y(e,t){let r;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=m(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m(e.minute,60),r=Math.floor(e.hour/24),e.hour=m(e.hour,24),r}function g(e,t){let r=e.copy();return y(r,t),r}function v(e,t){return g(e,c(t))}function b(e,t,r,n){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=x(a,r,0,t.length-1,n?.round),i.era=t[a],u(i);break}case"year":i.calendar.isInverseEra?.(i)&&(r=-r),i.year=x(e.year,r,-1/0,9999,n?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=x(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":i.day=x(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),u(i),i}function w(e,t,r,n){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if(n?.hourCycle===12){let e=t>=12;a=12*!!e,o=e?23:11}i.hour=x(t,r,a,o,n?.round);break}case"minute":i.minute=x(e.minute,r,0,59,n?.round);break;case"second":i.second=x(e.second,r,0,59,n?.round);break;case"millisecond":i.millisecond=x(e.millisecond,r,0,999,n?.round);break;default:throw Error("Unsupported field "+t)}return i}function x(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function S(e,t){let r;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let i=a((0,n.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=(0,n.Tr)(i,e.timeZone)}else r=(0,n.oU)(e)-e.offset;r+=t.milliseconds||0,r+=1e3*(t.seconds||0),r+=6e4*(t.minutes||0),r+=36e5*(t.hours||0);let i=(0,n.Yd)(r,e.timeZone);return(0,n.yP)(i,e.calendar)}function E(e,t){return S(e,c(t))}function D(e,t,r,a){switch(t){case"hour":{let t=0,o=23;if(a?.hourCycle===12){let r=e.hour>=12;t=12*!!r,o=r?23:11}let s=(0,n.tR)(e),l=(0,n.yP)(p(s,{hour:t}),new(0,i.FG)),u=[(0,n.Tr)(l,e.timeZone,"earlier"),(0,n.Tr)(l,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===l.day)[0],c=(0,n.yP)(p(s,{hour:o}),new(0,i.FG)),d=[(0,n.Tr)(c,e.timeZone,"earlier"),(0,n.Tr)(c,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,n.oU)(e)-e.offset,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*x(h,r,Math.floor(u/36e5),Math.floor(d/36e5),a?.round)+m,(0,n.yP)((0,n.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return w(e,t,r,a);case"era":case"year":case"month":case"day":{let i=b((0,n.tR)(e),t,r,a),o=(0,n.Tr)(i,e.timeZone);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,r){let i=(0,n.tR)(e),a=p(f(i,t),t);if(0===a.compare(i))return e;let o=(0,n.Tr)(a,e.timeZone,r);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}},240(e,t,r){"use strict";r.d(t,{p9:()=>x,$I:()=>D,RZ:()=>j,tB:()=>f,rS:()=>b,kq:()=>E,Jg:()=>l,Py:()=>k,tF:()=>o,Xj:()=>v,Nu:()=>m,SJ:()=>d,SE:()=>h,ro:()=>a,D:()=>S,ZI:()=>C,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>w});var n=r(9405);let i={"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 a(e,t){return t=(0,n.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,n.yP)(t,e.calendar),e=w(e),t=w(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&a(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return a(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,r){let n=Math.ceil(e.calendar.toJulianDay(e)+1-(r?c[r]:function(e){let t=P.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo()))return P.set(e,t),t.firstDay}let r=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];t="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&i[r]||0};P.set(e,t)}return t.firstDay}(t)))%7;return n<0&&(n+=7),n}function f(e){return(0,n.Yd)(Date.now(),e)}function p(e){return(0,n.gw)(f(e))}function h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function m(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let g=null;function v(){return null==g&&(g=new Intl.DateTimeFormat().resolvedOptions().timeZone),g}function b(){return!1}function w(e){return e.subtract({days:e.day-1})}function x(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function S(e){return w(e.subtract({months:e.month-1}))}function E(e,t,r){let n=d(e,t,r);return e.subtract({days:n})}function D(e,t,r){return E(e,t,r).add({days:6})}let O=new Map,P=new Map;function j(e,t,r){let n=e.calendar.getDaysInMonth(e);return Math.ceil((d(w(e),t,r)+n)/7)}function k(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function C(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,r){"use strict";r.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>m,ot:()=>f,qk:()=>h});var n=r(5923),i=r(9405),a=r(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let r=new(0,n.ng)(d(t[1],0,9999),d(t[2],1,12),1);return r.day=d(t[3],1,r.calendar.getDaysInMonth(r)),r}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let r=d(t[1],-9999,9999),i=new(0,n._l)(r<1?"BC":"AD",r<1?-r+1:r,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return i.day=d(t[3],0,i.calendar.getDaysInMonth(i)),i}function d(e,t,r){let n=Number(e);if(n<t||n>r)throw RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function f(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 p(e){let t,r=(0,i.yP)(e,new(0,a.FG));return t="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${t}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function h(e){return`${p(e)}T${f(e)}`}function m(e){var t;let r,n,i,a,o;return`${h(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),i=Math.floor(t%36e5/6e4),a=Math.floor(t%36e5%6e4/1e3),o=`${r}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`,0!==a&&(o+=`:${String(a).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,r){"use strict";function n(e,t){return e-t*Math.floor(e/t)}r.d(t,{z:()=>n})},99(e,t,r){"use strict";r.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var n=r(9726),i=r(5565),a=r(8048);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",n=arguments.length>2?arguments[2]:void 0;return s(function(){var i,a,o,s,d,p,h;return u(this,function(u){switch(u.label){case 0:return i=(null==n?void 0:n.maxLoadingTime)&&!(n.maxLoadingTime<=0)?n.maxLoadingTime:6e5,a=void 0,[4,Promise.race([f(e,null==n?void 0:n.importMap),new Promise(function(t,r){a=setTimeout(function(){var t;r(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=i)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},i)})])];case 1:var m;if(u.sent(),a&&clearTimeout(a),o=c(e),!((void 0===(m=s=window[o])?"undefined":l(m))==="object"&&null!==m&&"init"in m&&"function"==typeof m.init&&"get"in m&&"function"==typeof m.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(r.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(h="Container for ".concat(e," did not return an ESM module as expected")),Error(h);return[2,p]}})})()}function f(e,t){return s(function(){var r,o,s,l,d,f,m;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(r=c(e),window[r])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,a.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,r){var n,i,a,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[h];if(s||(s=window[h]=new Set([])),o)s.has(e)?(a=function(){n&&o.removeEventListener("load",n),i&&o.removeEventListener("error",i)},n=function(){a(),t(null)},i=function(e){a(),r(e.message)},o.addEventListener("load",n),o.addEventListener("error",i)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var n,i="Failed to load script from ".concat(e);console.error(i,t),r(null!=(n=t.message)?n:i)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return m=u.sent(),f&&(0,n.Vt)({kind:"error",title:(0,i.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,i.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,i.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,a.w_)(),window.location.reload()}}),[2,Promise.reject(m)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,a.F$)()]})})()}var h=Symbol("__egen_script_loading")},8048(e,t,r){"use strict";function n(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)})}}function a(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}r.d(t,{BX:()=>E,E:()=>x,F$:()=>h,SM:()=>O,fd:()=>w,o5:()=>y,q1:()=>b,tK:()=>m,uT:()=>g,w_:()=>S,xI:()=>v});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return i(function(){var e,t,r,n,i,o,s;return a(this,function(a){switch(a.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],r=0,a.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],a.label=2;case 2:if(a.trys.push([2,7,,8]),!n.src)return[3,5];return[4,fetch(n.src)];case 3:return i=a.sent(),o=t.push,[4,i.json()];case 4:return o.apply(t,[a.sent()]),[3,6];case 5:n.textContent&&t.push(JSON.parse(n.textContent)),a.label=6;case 6:return[3,8];case 7:return s=a.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(r),s),[3,8];case 8:return r++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function p(){var e={};try{for(var t=v(),r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=n.slice(o.length);if(!t.includes(i)){var a=localStorage.getItem(n);a&&(e[i]=a)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function h(){return i(function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function m(){return i(function(){return a(this,function(e){return[2,d()]})})()}function y(){return i(function(){return a(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function g(e){if(!u)return{imports:{}};if(e){for(var t={},r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=localStorage.getItem(n);i&&(t[n.slice(o.length)]=i)}}return{imports:t}}return p()}function v(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&v().includes(e)}function w(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function x(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function S(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(o))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function E(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var D=!1;function O(){!D&&(D=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,r){"use strict";r.d(t,{xI:()=>i.xI,E:()=>i.E,eH:()=>S,SM:()=>i.SM,zU:()=>g,BX:()=>i.BX,w_:()=>i.w_,Y6:()=>v,Yv:()=>n.Yv,tK:()=>i.tK,Ln:()=>n.Ln,FM:()=>y,o5:()=>i.o5,fd:()=>i.fd,Tx:()=>w,KI:()=>x,rL:()=>n.rL,WY:()=>b,F$:()=>i.F$,zC:()=>n.zC,_m:()=>D,q1:()=>i.q1,uT:()=>i.uT});var n=r(99),i=r(8048),a=r(2235);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,r,n,i,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],r=0,s.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],s.label=2;case 2:if(s.trys.push([2,7,,8]),i=void 0,!n.src)return[3,5];return[4,fetch(n.src)];case 3:return[4,s.sent().json()];case 4:return i=s.sent(),[3,6];case 5:n.textContent&&(i=JSON.parse(n.textContent)),s.label=6;case 6:return i&&(0,a.S)(i)&&t.push(i),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(r),o),[3,8];case 8:return r++,[3,1];case 9:return[2,h(t)]}})})()}function h(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function m(){return s(function(){var e,t,r,n,i,o,c,d,f,p,h,m;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],r=0;r<localStorage.length;r++)(null==(n=localStorage.key(r))?void 0:n.startsWith(u))&&(i=localStorage.getItem(n))&&t.push({moduleName:n.slice(u.length),raw:i});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,r=e.raw;return s(function(){var e,n;return l(this,function(i){switch(i.label){case 0:if(e=JSON.parse(r),(0,a.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,i.sent().json()];case 2:if(n=i.sent(),(0,a.j)(n))return[2,{moduleName:t,routes:n}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(h=p.next()).done);c=!0)m=h.value,"fulfilled"===m.status?e[m.value.moduleName]=m.value.routes:console.warn("[route-maps] Failed to load route override",m.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(r){switch(r.label){case 0:return[4,p()];case 1:if(e=r.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,m()];case 3:t=r.sent(),r.label=4;case 4:return[2,h([e,t])]}})})()}function g(){return s(function(){return l(this,function(e){return[2,p()]})})()}function v(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,m()];case 2:return[2,h.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var r=localStorage.key(t);if(null==r?void 0:r.startsWith(u)){var n=localStorage.getItem(r);n&&(e[r.slice(u.length)]=n)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var r,n=JSON.parse(t);if(!(0,a.j)(n))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(n))}else if(r=URL,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,a.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function x(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function S(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(u))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var E=null;function D(){return E||(E=(d="development"===window.spaEnv)?m().then(function(e){f=e}):Promise.resolve())}},8507(e,t,r){"use strict";r.d(t,{J:()=>a,N:()=>i});var n=r(9726);function i(e){var t=o(e);setTimeout(function(){throw t})}function a(){var e=Error();return function(t){var r=o(t);r.stack+="\nAsync stacktrace:\n".concat(e.stack),i(t)}}function o(e){var t,r;if(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(r){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,n.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,n.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,r){"use strict";r.d(t,{dX:()=>n.dX,wE:()=>n.wE,_3:()=>n._3,uN:()=>n.uN,$F:()=>n.$F,Gz:()=>n.Gz,eb:()=>n.eb,Sj:()=>n.Sj,mv:()=>n.mv,yp:()=>l,PQ:()=>n.PQ});var n=r(6014),i=r(4356),a=r(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,r={globals:s({},a.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,i.A)(e):e,r),function(e){if(Array.isArray(e))return o(e)}(t=r.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return r=e,n=t,u(r.argument,n);case"BinaryExpression":return i=e,a=t,[u(i.left,a),u(i.right,a)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,h=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),h;case"ArrowFunctionExpression":return function(e,t){var r=s({},t);r.isLocalExpression=!0;var n=null!=(d=null==(p=e.params)?void 0:p.map(c(r)))?d:[],i=null!=(f=u(e.body,r))?f:[];if(i&&Array.isArray(i)){var a=!0,o=!1,l=void 0;try{for(var d,f,p,h,m=i[Symbol.iterator]();!(a=(h=m.next()).done);a=!0){var y=h.value;n.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{a||null==m.return||m.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return m=e,y=t,u(m.object,y),void((g=s({},y)).isLocalExpression=!0,u(m.property,g));case"ArrayExpression":return v=e,b=t,void(null==(w=v.elements)||w.map(c(b)));case"SequenceExpression":return x=e,S=t,void(null==(E=x.expressions)||E.map(c(S)));case"NewExpression":return D=e,O=t,void(null==(P=D.arguments)||P.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var r,n,i,a,o,l,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,P,j,k,C,T,A=e,R=t;if(!(A.name in R.globals))if(R.isLocalExpression)return A.name;else R.variables.add(A.name);return;case"TemplateLiteral":return j=e,k=t,void(null==(C=j.expressions)||C.map(c(k)),null==(T=j.quasis)||T.map(c(k)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,r){"use strict";r.r(t),r.d(t,{ActionMenu:()=>v.WyE,ActionMenuButton:()=>v.EDM,ActionMenuButton2:()=>v.Wjo,ActionableNotificationComponent:()=>v.drd,ActivityIcon:()=>v.npY,AddIcon:()=>v.REV,AllergiesIcon:()=>v.UgN,AppointmentsAltPictogram:()=>v.MnZ,AppointmentsPictogram:()=>v.B1u,ArrowDownIcon:()=>v.ZLN,ArrowLeftIcon:()=>v.A60,ArrowRightIcon:()=>v.flY,ArrowUpIcon:()=>v.Kpk,Assessment1Pictogram:()=>v.IHy,Assessment2Pictogram:()=>v.$iy,AttachmentIcon:()=>v.PtA,BabyIcon:()=>v.qYP,BloodBankPictogram:()=>v.nvs,Breakpoint:()=>v.EA,CalendarHeatMapIcon:()=>v.mmM,CalendarIcon:()=>v.CTc,CardHeader:()=>v.aRn,CardModal:()=>v.oVc,CardiologyPictogram:()=>v.uU$,CaretDownIcon:()=>v.bDP,CaretLeftIcon:()=>v.eCO,CaretRightIcon:()=>v.JJd,CaretUpIcon:()=>v.SwV,Carousel:()=>v.FNf,CarouselContext:()=>v.Ycj,CascadingNavDropdown:()=>v._PX,ChartAverageIcon:()=>v.ZHE,ChartLineIcon:()=>v.SCH,CheckmarkFilledIcon:()=>v.FtQ,CheckmarkOutlineIcon:()=>v.pm$,ChemistryIcon:()=>v.W4t,ChevronDownIcon:()=>v.D3D,ChevronLeftIcon:()=>v.YJP,ChevronRightIcon:()=>v.vKP,ChevronUpIcon:()=>v.Mtm,CircularGallery:()=>v.GF9,ClassificationTags:()=>v.QpY,CloseFilledIcon:()=>v.oCk,CloseIcon:()=>v.USm,CloseOutlineIcon:()=>v.Wdn,ColumnWithSearch:()=>v.Fny,ConditionsIcon:()=>v.ci3,CtScanPictogram:()=>v.DeE,CustomOverflowMenu:()=>v.TQT,CustomOverflowMenuItem:()=>v.cxd,DashboardExtension:()=>v.cJN,DecoratedCard:()=>v.mqB,DentistryPictogram:()=>v.TNY,DocumentAttachmentIcon:()=>v.Ce6,DocumentIcon:()=>v.pyG,DownloadIcon:()=>v.s3U,DrugOrderIcon:()=>v.uqj,DynamicField:()=>v.koC,EditIcon:()=>v.qUP,EgenDatePicker:()=>v.O_s,EgenDateRangePicker:()=>v.tKr,EmergencyDepartmentPictogram:()=>v.sgv,EmptyCard:()=>v.slS,EmptyCardIllustration:()=>v.Ua6,EntityBannerActionsMenu:()=>v.M9T,EntityBannerContactDetails:()=>v.EGc,EntityBannerEntityIdentifiers:()=>v.teX,EntityBannerEntityInfo:()=>v.Zpy,EntityDetailBrowser:()=>v.NIm,EntityPhoto:()=>v.Klm,ErrorCard:()=>v.JrA,ErrorState:()=>v.W5n,EventScheduleIcon:()=>v.XaH,EventsIcon:()=>v.Jc,FacilityPictogram:()=>v.ECF,FolderGallery:()=>v.fNA,GenderFemaleIcon:()=>v.XB2,GenderMaleIcon:()=>v.szA,GenderOtherIcon:()=>v.hXZ,GenderUnknownIcon:()=>v.x1U,GenericOrderTypeIcon:()=>v.naI,GeriatricsPictogram:()=>v.SQq,GradientBlur:()=>v.wtE,GroupAccessIcon:()=>v.Pyy,GroupIcon:()=>v.nFg,GynaecologyPictogram:()=>v.owH,HomePictogram:()=>v.KKH,HospitalBedIcon:()=>v.jMM,Icon:()=>v.Int,ImageMedicalIcon:()=>v.Ix5,ImageSwiper:()=>v.QeH,InPatientPictogram:()=>v.thS,InformationFilledIcon:()=>v._e_,InformationIcon:()=>v.uQc,InformationSquareIcon:()=>v.ZrL,InteractiveSelector:()=>v.wmT,InventoryManagementIcon:()=>v.vFG,LabOrderIcon:()=>v.hi6,LaboratoryPictogram:()=>v.ehn,Labs2Pictogram:()=>v.rpF,LayoutGrid:()=>v.D6i,LeftNavMenu:()=>v.Ojh,LiquidGlassCard:()=>v.lok,ListCheckedIcon:()=>v.Rt$,LocationIcon:()=>v.BT6,LocationPicker:()=>v.MTs,MaterialOrderIcon:()=>v.zZ0,MaximizeIcon:()=>v._Xm,MaybeIcon:()=>v.oy0,MaybePictogram:()=>v.bmf,MedicationIcon:()=>v.Fnj,MenuToggleButton:()=>v.qLc,MessageQueueIcon:()=>v.uFu,MicroscopeIcon:()=>v.u4h,MoneyIcon:()=>v.yBj,MotherIcon:()=>v.XEq,MovementIcon:()=>v.lyJ,Notification:()=>v.Eg0,NumericDataPoint:()=>v.YiA,ObstetricsPictogram:()=>v.Bk2,OverflowMenuHorizontalIcon:()=>v.rv3,OverflowMenuVerticalIcon:()=>v.Rnm,PageHeader:()=>v.zYs,PageHeaderContent:()=>v.gpz,Pagination:()=>v.dKS,PasswordIcon:()=>v.BGy,PatientListsPictogram:()=>v.$2H,PatientSearchPictogram:()=>v.cxq,PatientsPictogram:()=>v.X25,PaymentsDeskPictogram:()=>v.dNG,PedestrianFamilyIcon:()=>v.PPo,PenIcon:()=>v.rZj,Pharmacy2Pictogram:()=>v.Q92,PharmacyPictogram:()=>v.w21,Pictogram:()=>v.bF1,PrinterIcon:()=>v.wwY,ProcedureOrderIcon:()=>v.H0x,ProgramsIcon:()=>v.lq$,RadiologyIcon:()=>v.SA3,ReferralOrderIcon:()=>v.tCH,RegistrationPictogram:()=>v.et7,RenewIcon:()=>v.JTN,ReportIcon:()=>v.cQD,ResetIcon:()=>v.NAP,ResponsiveWrapper:()=>v.KFv,SaveIcon:()=>v.LPu,SearchIcon:()=>v.WIv,Select:()=>v.l6P,SelectContent:()=>v.gCo,SelectContext:()=>v.CW5,SelectTrigger:()=>v.bqE,ServiceQueuesPictogram:()=>v.Y21,SettingsIcon:()=>v.Zes,Sheet:()=>v.cjw,SheetClose:()=>v.kNS,SheetContent:()=>v.hae,SheetContext:()=>v.P8U,SheetDescription:()=>v.Qsg,SheetFooter:()=>v.XWC,SheetHeader:()=>v.Fm9,SheetOverlay:()=>v.YP7,SheetPortal:()=>v.yde,SheetRoot:()=>v.KId,SheetTitle:()=>v.qpM,SheetTrigger:()=>v.CGR,ShoppingCartAddItemIcon:()=>v.Uve,ShoppingCartArrowDownIcon:()=>v.Lfm,ShoppingCartIcon:()=>v.aJF,Slider:()=>v.Apm,SliderContainer:()=>v.Jbi,SliderDotButton:()=>v.vY7,Snackbar:()=>v.qb_,StaggeredMenuPanel:()=>v._kB,StickyNoteAddIcon:()=>v.OC$,StockManagementPictogram:()=>v.q__,SwitcherIcon:()=>v.RFy,SyringeIcon:()=>v.hZg,TableBatchActions:()=>v.GGC,TableIcon:()=>v.KbA,TableOfContentsIcon:()=>v.pYV,TestimonialCard:()=>v._f_,TestimonialCardStack:()=>v.uDL,ThumbsSlider:()=>v.BM2,TimeIcon:()=>v.b1c,Toast:()=>v.y8,ToolsIcon:()=>v.dwU,TransferPictogram:()=>v.SKX,TranslateIcon:()=>v.SwB,TrashCanIcon:()=>v.EJV,TreeViewAltIcon:()=>v.MO4,TriagePictogram:()=>v.XHu,UserAvatarIcon:()=>v.yDT,UserFollowIcon:()=>v.osL,UserIcon:()=>v.nys,UserXrayIcon:()=>v.feL,ViewIcon:()=>v.tCQ,ViewOffIcon:()=>v.Oi_,WarningIcon:()=>v.id,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>v.ozP,WorkspaceContainer:()=>v.XvC,WorkspaceNotification:()=>v.tMf,XrayPictogram:()=>v.B2u,activateOfflineCapability:()=>h.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>w.KW,ageAsDuration:()=>w.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>h.FO,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>h.xN,canCloseWorkspaceWithoutPrompting:()=>v.SvQ,cancelPrompt:()=>v.zlb,cardModalAnimationPresets:()=>v.QsE,changeWorkspaceContext:()=>v.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>v.G_3,closeWorkspace:()=>v.MJ8,closeWorkspaceGroup2:()=>v.biy,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createDashboard:()=>v.n6L,createErrorHandler:()=>l.J,defaultValidation:()=>v.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>h.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>w.QC,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>h.T$,egenOfflineResponseBodyHttpHeaderName:()=>h.Q1,egenOfflineResponseStatusHttpHeaderName:()=>h.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>v.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatEntityName:()=>w.MS,formatPartialDate:()=>w.LW,formatPatientName:()=>w.Qr,formatTime:()=>w.fU,formattedName:()=>w.qK,generateOfflineUuid:()=>h.sA,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>h.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>h.FE,getDynamicOfflineDataEntriesFor:()=>h.WA,getDynamicOfflineDataHandlers:()=>h.qb,getEgenServiceWorker:()=>h.b1,getEntityName:()=>w.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>h.C$,getFullSynchronizationItemsFor:()=>h.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getOfflineDb:()=>h.e,getOfflineEntityDataStore:()=>h.sm,getOfflineSynchronizationStore:()=>h.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>w.Vp,getPromptBeforeClosingFcn:()=>v.OeE,getRegisteredWorkspace2Names:()=>v.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>h.Gp,getSynchronizationItems:()=>h.pb,getSynchronizationItemsFor:()=>h.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>v.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>v.XzH,goBackInHistory:()=>p.tA,iconIds:()=>v.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>v.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isImportMapOverrideDisabled:()=>o.q1,isOfflineUuid:()=>h.bO,isOnline:()=>w.sc,isVersionSatisfied:()=>w.rX,jsep:()=>u.PQ,launchWorkspace:()=>v.TC2,launchWorkspace2:()=>v.pTx,launchWorkspaceGroup:()=>v.aN0,launchWorkspaceGroup2:()=>v.GYk,leftNavStore:()=>c.Gp,loadLifeCycles:()=>y.oB,matchLocale:()=>w.w7,messageEgenServiceWorker:()=>h.Oc,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>v.Fmw,offlineUuidPrefix:()=>h.jU,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>v.vJW,preloadImport:()=>o.zC,promptBeforeClosing:()=>v.F3N,promptForClosingWorkspaces:()=>v.hLN,putDynamicOfflineData:()=>h.yD,putDynamicOfflineDataFor:()=>h.ff,queueSynchronizationItem:()=>h.Zr,queueSynchronizationItemFor:()=>h.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>h.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerOfflineEntityHandler:()=>h.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>h.NU,removeDynamicOfflineDataFor:()=>h.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>v.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>v.CU$,renderLoadingSpinner:()=>v.uWG,renderSnackbars:()=>v.ZLm,renderToasts:()=>v.f1b,renderWorkspaceWindowsAndMenu:()=>v.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>v._1W,retry:()=>w.L5,runSynchronization:()=>h.AO,saveWorkSession:()=>s.XM,selectPreferredName:()=>w.VO,setCurrentOfflineMode:()=>h.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setLeftNav:()=>c.Vx,setupDynamicOfflineDataHandler:()=>h.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>v.EPe,setupOfflineSync:()=>h.cy,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>w.bN,showActionableNotification:()=>v.ZyP,showModal:()=>v.toY,showNotification:()=>v.Dsh,showSnackbar:()=>v.tdF,showToast:()=>v.P0c,showWorkspacePrompts:()=>v.ctS,slugify:()=>o.Yv,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>h.Td,syncDynamicOfflineData:()=>h.u1,syncOfflineEntityData:()=>h.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,unsetLeftNav:()=>c.sr,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>v._RD,useCarouselContext:()=>v.RGi,useCustomOverflowMenu:()=>v.ckU,useEntityPhoto:()=>v.XhU,useSelectContext:()=>v.hPu,useSheetContext:()=>v.sCq,useWorkspace2Context:()=>v.WO_,useWorkspace2Store:()=>v.AkA,useWorkspaces:()=>v.CH0,workspace2Store:()=>c.J_,workspace2StoreActions:()=>v.cJy,workspaceStore:()=>v.x9q});var n=r(7530),i={};for(let e in n)"default"!==e&&(i[e]=()=>n[e]);r.d(t,i);var a=r(5918),i={};for(let e in a)"default"!==e&&(i[e]=()=>a[e]);r.d(t,i);var o=r(101),s=r(3447),l=r(8507),u=r(9360),c=r(7477),d=r(5794),f=r(5895),p=r(7774),h=r(6563),m=r(2716),i={};for(let e in m)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>m[e]);r.d(t,i);var y=r(7334),g=r(7988),i={};for(let e in g)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","finishRegisteringAllApps","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","loadLifeCycles","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>g[e]);r.d(t,i);var v=r(9837),b=r(5565),w=r(7184)},5895(e,t,r){"use strict";r.d(t,{$3:()=>n.$3,FI:()=>n.FI,LQ:()=>n.LQ,Ss:()=>i.S,Vt:()=>n.Vt,Yt:()=>n.Yt,bJ:()=>n.bJ,bK:()=>n.bK,dX:()=>n.dX,ff:()=>n.ff,gj:()=>n.gj,j0:()=>i.j,ls:()=>n.ls,pc:()=>n.pc,sT:()=>n.sT});var n=r(9726),i=r(2235)},2235(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function a(e){return!!e&&(void 0===e?"undefined":i(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":i(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],i=t[1];return"string"==typeof r&&a(i)})}r.d(t,{S:()=>o,j:()=>a})},7334(e,t,r){"use strict";r.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var n=r(8400),i=r(5918),a=r(5794),o=r(7477),s=r(8148);function l(e,t){var r=t.name;if(!r)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(r," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var n=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:r,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var i=!0,a=!1,l=void 0;try{for(var u,c,d,f=n[Symbol.iterator]();!(i=(d=f.next()).done);i=!0){var p=d.value;(0,o.K0)(p,r)}}catch(e){a=!0,l=e}finally{try{i||null==f.return||f.return()}finally{if(a)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,i.registerModuleWithConfigSystem)(e);var r,n,d,f,p,h,m,y,g,v=null!=(r=t.extensions)?r:[],b=null!=(n=t.modals)?n:[],w=null!=(d=t.workspaces)?d:[],x=null!=(f=t.workspaceGroups)?f:[],S=null!=(p=t.featureFlags)?p:[],E=null!=(h=t.workspaceGroups2)?h:[],D=null!=(m=t.workspaceWindows2)?m:[],O=null!=(y=t.workspaces2)?y:[];null==(g=t.pages)||g.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var r,n;c.push((r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),n=n={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),v.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var r;(r=t.name)?t.component?(0,o.Ju)({name:r,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var r=t.name;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var n=t.title;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var i=!0,a=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;(0,o.io)({name:d,members:[r]})}}catch(e){a=!0,l=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var r,n;(n=t.name)?(0,o.io)({name:n,members:null!=(r=t.members)?r:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,E),function(e,t){(0,o.Qb)(e,t);var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(e,D),(0,o.Uh)(e,O),S.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,a.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,r=!1,i=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),h=null!=(u=d.containerDomId)?u:"egen-apps-container",m=document.getElementById(h),y="single-spa-application:".concat(p);if(m){var g=document.createElement("div");g.id=y,null==m||m.appendChild(g)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(h,'"; DOM element does not exist.'));!function(e,t){var r,i,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(r=function e(t){if(Array.isArray(t)){var r,i=t.map(e);return function(e){return i.some(function(t){return t(e)})}}return"string"==typeof t?(0,n.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(r=RegExp)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),i=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==i||i)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,a.jj)(l))&&r(e)}:r);(0,n.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){r=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw i}}}},8148(e,t,r){"use strict";r.d(t,{o:()=>u});var n=r(99),i=r(5918);function a(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,l,"next",e)}function l(e){a(o,n,i,s,l,"throw",e)}s(void 0)})}}function s(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var r,a,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(a=(r=t.indexOf("#"))>=0)?t.substring(0,r):e,d=a?t.substring(r+1):t,[4,(0,n.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var h,m;return[2,(h=u,m=f,o(function(){var e,t;return s(this,function(r){switch(r.label){case 0:if(h in l)return[3,5];if(null==m)return[3,1];return t=m,[3,3];case 1:return[4,(0,n.rL)(h)];case 2:t=r.sent(),r.label=3;case 3:return e=t,[4,l[h]=new Promise(function(t,r){if(Object.hasOwn(e,"startupApp")){var n=e.startupApp;if("function"==typeof n)return Promise.resolve(n()).then(function(){(0,i.registerModuleLoad)(h),t(null)}).catch(r)}(0,i.registerModuleLoad)(h),t(null)})];case 4:return r.sent(),[3,7];case 5:return[4,l[h]];case 6:r.sent(),r.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,r){"use strict";r.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>er,a7:()=>ee,L8:()=>K,Yq:()=>en,L3:()=>Z,fU:()=>ea,_U:()=>q,d4:()=>es,p0:()=>eh,kQ:()=>Y,qE:()=>eu,pf:()=>G});var n,i=r(9405),a=r(227);if("u">typeof navigator){let e=navigator;n=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;n=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch(e){return"en-US"}}(n||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},h={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},m={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(p).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...m,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},g={},v=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){return g[t.toLowerCase()]||(g[t.toLowerCase()]=new e(t)),g[t.toLowerCase()]}constructor(e=o){this.locale=e,this.lookups={...h},this.vars={...m};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let r=0;r<e.length;r++)t+=String(this.lookups.digit[e[r]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let r=this.lookups.meridiem[t?.toLowerCase()]||0,n=this.toInt(e);return n<12&&12===r&&(n+=12),12===n&&0===r&&(n=0),n}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,r,n]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(r)+this.toInt(n||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(f[e])return f[e];if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let t=u[e];if(!t)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(t),n=String.fromCharCode(t+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(t+e)]=e;return f[e]={group:`[${r}-${n}]`,lookup:i},f[e]}(this.numberingSystem);for(let r in this.lookups.digit=t,y)y.hasOwnProperty(r)&&(this.vars[r]=y[r].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((r,n)=>{["","k","kuu","kuuta"].forEach((i,a)=>{e[r+i+(a<2?"\\.?":"")]=!0,t[r+i]=n+1})});else{let r=[],n=e=>"month"===e.type;for(let e=0;e<12;e++)r.push(new Date(2017,e,1));for(let i of["full","long","medium"]){let a=Intl.DateTimeFormat(this.locale,{dateStyle:i});for(let o=0;o<12;o++){let s=a.formatToParts(r[o]).find(n).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===i?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=o+1)}}let i=Intl.DateTimeFormat(this.locale,{month:"short"});for(let a=0;a<12;a++){let o=i.formatToParts(r[a]).find(n).value.toLocaleLowerCase(this.locale);o=o.replace(/\.$/,""),e[`${o}\\.?`]=!0,t[o]=a+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let r=[],n={};for(let i of["long","short"]){let a=Intl.DateTimeFormat(this.locale,{weekday:i});for(let o=0;o<7;o++){let s=a.formatToParts(e[o]).find(t).value.toLocaleLowerCase(this.locale);"short"===i?(s=s.replace(/\.$/,""),r.push(`${s}\\.?`)):r.push(s),n[s]=o}}this.vars.DAYNAME=r.join("|"),this.lookups.dayname=n}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,r=[],n={},i=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let a=0;a<2;a++){let o=i.formatToParts(e[a]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);r.push(s),n[s]=12*a}this.vars.MERIDIEM=r.join("|"),this.lookups.meridiem=n}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],w={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},x=()=>new Date;function S(e){return function(t){let r={};for(let n=0,i=e.length;n<i;n++){let i=e[n];i&&(r[i]=t[n])}return r}}var E=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:r,formatter:n}){this.doneChecker=e,this.fallback=t,this.patterns=r,this.formatter=n}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),r={},n=!1;for(let e of this.patterns){let i=t.match(e.regex);if(!i)continue;n=!0;let a=e.handler(i);if(a){for(let[e,t]of Object.entries(a))e in r||void 0===t||(r[e]=t);if(t=(t=t.slice(0,i.index)+t.slice(i.index+i[0].length+1)).trim(),this.doneChecker(r,t))break}}return n?this.formatter(r):this.fallback(e)}},D=["year","month","day","hour","minute","second","millisecond","offset"],O={};function P(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var j=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],k={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...j],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:j,id:j,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function C(e,t=o){let r=function(e){if(!O[e]){var t,r;let n,i,a=v.factory(e);O[e]=new E({doneChecker:P,fallback:(t=e,function(e){let r=String(e).slice(0,50);return""===r&&(r="(empty string)"),{invalid:`Unable to parse "${r}" with locale "${t}"`}}),patterns:(n=[{name:"timestampWithOffset",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:a.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:a.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:S(["","year","month","day"])},{name:"korean",regex:a.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:S(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=x(),r=e[0].toLowerCase(),n={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[r];0!==n&&t.setTime(t.getTime()+n);let i={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===r?{...i,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:i}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,r,n]){t=parseFloat(t),"week"===(r=r.length<=2?w[r]:(r=r.replace(/s$/,"")).toLowerCase())&&(r="day",t*=7),("-"===e||n)&&(t*=-1);let i=x();return"millisecond"===r?i.setUTCMilliseconds(i.getUTCMilliseconds()+t):"second"===r?i.setUTCSeconds(i.getUTCSeconds()+t):"minute"===r?i.setUTCMinutes(i.getUTCMinutes()+t):"hour"===r?i.setUTCHours(i.getUTCHours()+t):"day"===r?i.setUTCDate(i.getUTCDate()+t):"month"===r?i.setUTCMonth(i.getUTCMonth()+t):"year"===r&&i.setUTCFullYear(i.getUTCFullYear()+t),{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:a.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:a.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:a.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:a.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:a.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:a.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:a.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:a.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:a.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:a.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:a.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:a.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:a.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:a.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:a.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:a.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:a.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:a.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:a.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:a.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:a.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:a.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:a.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:a.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:a.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:a.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:a.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:a.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:a.compile("_OFFSET_"),handler:S(["offset"])}],i=a.baseName.slice(0,5),b.includes(i)?n:n.filter(e=>!["mdy","md"].includes(e.name))),formatter:(r=a,function(e){let t={};for(let[n,i]of Object.entries(e))if("monthname"===n){if(i){let e=r.monthNameToInt(i);void 0!==e&&(t.month=e)}}else if("hour"===n&&e.meridiem){let n=r.h12ToInt(i,e.meridiem);void 0!==n&&(t.hour=n)}else if("zone"===n){if(i){let e=r.zoneToOffset(i);void 0!==e&&(t.offset=e)}}else if("offset"===n){let e=r.offsetToMinutes(i);void 0!==e&&(t.offset=e)}else if("millisecond"===n){let e=r.millisecondToInt(i);"number"==typeof e&&(t.millisecond=e)}else if(D.includes(n)){let e=r.toInt(i);"number"==typeof e&&(t[n]=e)}return t.year<100&&(t.year=l[e.year]),t.year&&"buddhist"===r.dateOptions.calendar&&(t.year-=543),t})})}return O[e]}(t),n=function(e,t){let r=k[t.slice(0,2).toLowerCase()];if(!r)return e;for(let[t,n]of r)e=e.replace(t,n);return e}(e,t);return r.attempt(n)}function T(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function A(e,t=o){let r=C(e,t),n=r.invalid?new s(NaN):T(r);return n.isValid()||(n.invalid=`Unable to parse date "${e}"`),n}function R(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):A(e,t)}Date.fromString=s.fromString=A,Date.fromAny=s.fromAny=R,"u">typeof window&&(window.anyDateParser={fromString:A,fromAny:R,fromObject:T,attempt:C});var I=r(208),M=r.n(I),N=r(648),L=r(6871),_=r(2147);let F=function(e){return null==e};var B=r(313),V=r(1851);function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){W(e,t,r[t])})}return e}function z(e,t){var r=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return r.get?r.get.call(e):r.value}M().extend(N),M().extend(_),M().extend(L);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&M()(e,H).isValid()}function K(e){return M()(e).isToday()}function Y(e){return G(e)?M()(e,H).toDate():null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=M()(e);return t&&(r=r.utc()),r.format(H)}function q(e){return M()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,r=X,n={writable:!0,value:new Map};if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,n)}return e=[{key:"register",value:function(e,t){z(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if(z(this,X).has(t))return z(this,X).get(t)}if(e.language&&z(this,X).has(e.language))return z(this,X).get(e.language);var r=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return z(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),r),r}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,r=null!=e?e:(0,V.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](r):r instanceof t)?r:new Intl.Locale(r))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=C(e,(0,V.J)());if(r.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(r.day)&&F(r.month)&&(r=Object.assign({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,B.A)(r,"day"),{date:r.day}));var n=M()().set(r).toDate();return F(r.year)&&(t.year=!1),F(r.month)&&(t.month=!1),F(r.date)&&(t.day=!1),en(n,t)}function en(e,t){var r,n,i=null!=(r=null==t?void 0:t.locale)?r:(0,V.J)(),a=new Intl.Locale(i),o=U({},et,{noToday:"am"===a.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,h=o.numberingSystem,m={calendar:null!=s?s:ee(a),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:h},y=M()(e).isToday();if(y&&!p)n=(n=new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(i)+n.slice(1);else{"en"===a.language&&(i="en-GB");var g=new Intl.DateTimeFormat(i,m).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==l&&f&&c&&(g=g.map(ei("-"))),"wide"==l&&(g=g.map(ei(" — "))),"ethiopic"===m.calendar&&(g=g.filter(function(e,t,r){return"era"!==e.type&&("literal"!==e.type||!(t<r.length-1)||"era"!==r[t+1].type)})),n=g.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(n+=", ".concat(ea(e))),n}var ei=function(e){return function(t,r,n){return"literal"!==t.type||" "!==t.value||r<n.length-1&&"era"===n[r+1].type?t:{type:"literal",value:e}}};function ea(e){return e.toLocaleTimeString((0,V.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var r,n;return en(e,(r=U({},t),n=n={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function es(e,t){var r=ee("string"==typeof t?new Intl.Locale(t):t);return r?(0,i.yP)(e,(0,a.d)(r)):e}function el(e,t){return new Intl.DurationFormat((0,V.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var r=C(e,(0,V.J)());return r.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(r.day&&!r.month&&(r=U({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=U({},(0,B.A)(r,"day"),{date:r.day})),M()(t).set(r))}return M()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function eh(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),n=arguments.length>2?arguments[2]:void 0,i=M()(r),a=eu(e,i);if(null==a)return null;if("string"==typeof n){var o=ef(n);return W({},o,i.diff(a,o))}var s=null!=n?n:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,r){for(var n=ec.indexOf(r),i=0;i<ec.length;i++){var a=ec[i];if(t.diff(e,a)>0)return i<=n?a:r}return r}(a,i,null!=f?f:"seconds"):ef(u),function(e,t,r,n){var i=ec.indexOf(r),a=ec.indexOf(n),o=ec.slice(i,a+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value,m=t.diff(l,h);s[h]=m,l=l.add(m,h)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(a,i,d,null!=f?f:d)}var p=(t=function(e){var t=U({},ep);if(e){var r=!0,n=!1,i=void 0;try{for(var a,o=Object.entries(e)[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s,l=(s=a.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(s)||function(e){if(e){if("string"==typeof e)return $(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}return t}(l),i.diff(a,"seconds")<t.seconds?"seconds":i.diff(a,"minutes")<t.minutes?"minutes":i.diff(a,"hours")<t.hours?"hours":i.diff(a,"days")<t.days?"days":i.diff(a,"months")<t.months?"months":"years");return W({},p,i.diff(a,p))}var em={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),r=arguments.length>2?arguments[2]:void 0,n=eh(e,t,r);return null==n?null:el(n,(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&r.formatOptions?U({},em,r.formatOptions):em)}},1851(e,t,r){"use strict";function n(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}r.d(t,{J:()=>n})},7184(e,t,r){"use strict";r.d(t,{g2:()=>a.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>a.a3,LW:()=>a.LW,MS:()=>m,He:()=>f,rX:()=>O,L8:()=>a.L8,VO:()=>v,QC:()=>h,_U:()=>a._U,kQ:()=>a.kQ,qE:()=>a.qE,KW:()=>s,pf:()=>a.pf,kd:()=>function e(t){var r={},n=!0,i=!1,a=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;if(x(t[l])&&t[l].hasOwnProperty("_default"))r[l]=t[l]._default;else{if(l.startsWith("_"))continue;x(t[l])?r[l]=e(t[l]):r[l]=t[l]}}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},L5:()=>C,XE:()=>a.XE,Qr:()=>y,_g:()=>w,a7:()=>a.a7,sc:()=>u.s,w7:()=>d,L3:()=>a.L3,Yq:()=>a.Yq,fU:()=>a.fU,qK:()=>g,d4:()=>a.d4,Cy:()=>o,p0:()=>a.p0,Vp:()=>p,Rt:()=>a.Rt});var n=r(208),i=r.n(n),a=r(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=i()(t),n=(0,a.qE)(e,r);if(null==n)return null;var o=r.diff(n,"hours"),s=r.diff(n,"days"),l=r.diff(n,"weeks"),u=r.diff(n,"months"),c=r.diff(n,"years"),d={};if(o<2)d.minutes=r.diff(n,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=r.subtract(l,"weeks").diff(n,"days");d.weeks=l,d.days=f}else if(c<2){var p=r.subtract(u,"months").diff(n,"days");d.months=u,d.days=p}else if(c<18){var h=r.subtract(c,"year").diff(n,"months");d.years=c,d.months=h}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=o(e,t);if(null==r)return null;var n={style:"short",localeMatcher:"lookup"};return"minutes"in r&&0===r.minutes&&(n.minutesDisplay="always"),(0,a.a3)(r,n)}var l=r(1851),u=r(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,r){if(null==e)return r;var n=c(e);if(!n)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),r;var i=[],a=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}i.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}for(var p=n;p;){var h=function(){var e=i.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",r=i.find(function(e){return e.canonical.startsWith(t)});if(r)return{v:r.original};if("ht"===p)return p="fr-HT","continue";var n=p.lastIndexOf("-");if(-1===n)return"break";var a=(p=p.slice(0,n)).lastIndexOf("-");-1!==a&&p.length-a==2&&(p=p.slice(0,a))}();if("object"==(h&&"u">typeof Symbol&&h.constructor===Symbol?"symbol":typeof h))return h.v;if("break"===h)break}return r}function f(e){return m(v(e,"usual","official"))}function p(e){return f(e)}function h(e){return f(e)}function m(e){var t,r,n,i;return e?null!=(t=e.text)?t:(i=null!=(n=(r=e).given)?n:[],(r.family?i.concat(r.family):i).join(" ")):""}function y(e){return m(e)}function g(e){return m(e)}function v(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];0===r.length&&(r=["usual"]);var i=!0,a=!1,o=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=function(){var t,r=s.value,n=null==(t=e.name)?void 0:t.find(function(e){var t,n;return t=e,n=r,t.use?t.use===n:"usual"===n});if(n)return{v:n}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){a=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}}var b=r(8254);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function x(e){return!!e&&e.constructor===Object}var S=r(8164);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){var t,r=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),3!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return E(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],i=r[1],a=r[2];return"".concat(n,".").concat(i,".").concat(a)}function O(e,t){var r=function(e){var t=e.indexOf("-");if(t>=0){var r=D(e.slice(0,t)),n=e.slice(t+1);return"".concat(r,"-").concat(n)}return D(e)}(t);return S.satisfies(r,e,{includePrerelease:!0})}function P(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function j(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){P(a,n,i,o,s,"next",e)}function s(e){P(a,n,i,o,s,"throw",e)}o(void 0)})}}function k(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function C(e){return j(function(e){var t,r,n,i,a,o,s,l=arguments;return k(this,function(u){switch(u.label){case 0:r=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,n=t.getDelay,i=t.onError,r=null!=r?r:function(e){return e<=5},n=null!=n?n:function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,r?e+1:e)}(e,1e3)},a=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=n(a),j(function(){return k(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==i||i(s,a),o=s,[3,5];case 5:if(r(a++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);