@windstream/react-shared-components 0.0.89 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +635 -635
- package/dist/contentful/index.d.ts +11 -5
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +177 -177
- package/src/components/accordion/Accordion.stories.tsx +230 -230
- package/src/components/accordion/types.ts +10 -10
- package/src/components/alert-card/AlertCard.stories.tsx +171 -171
- package/src/components/alert-card/index.tsx +32 -32
- package/src/components/alert-card/types.ts +9 -9
- package/src/components/brand-button/BrandButton.stories.tsx +223 -223
- package/src/components/brand-button/helpers.ts +35 -35
- package/src/components/brand-button/index.tsx +115 -115
- package/src/components/brand-button/types.ts +37 -37
- package/src/components/button/Button.stories.tsx +108 -108
- package/src/components/button/index.tsx +27 -27
- package/src/components/button/types.ts +14 -14
- package/src/components/call-button/CallButton.stories.tsx +324 -324
- package/src/components/call-button/index.tsx +86 -86
- package/src/components/call-button/types.ts +11 -11
- package/src/components/checkbox/Checkbox.stories.tsx +247 -247
- package/src/components/checkbox/index.tsx +197 -197
- package/src/components/checkbox/types.ts +27 -27
- package/src/components/checklist/Checklist.stories.tsx +150 -150
- package/src/components/checklist/index.tsx +55 -54
- package/src/components/checklist/types.ts +14 -9
- package/src/components/collapse/Collapse.stories.tsx +255 -255
- package/src/components/collapse/index.tsx +46 -46
- package/src/components/collapse/types.ts +6 -6
- package/src/components/divider/Divider.stories.tsx +205 -205
- package/src/components/divider/index.tsx +22 -22
- package/src/components/divider/type.ts +3 -3
- package/src/components/image/Image.stories.tsx +113 -113
- package/src/components/image/index.tsx +25 -25
- package/src/components/image/types.ts +40 -40
- package/src/components/input/Input.stories.tsx +325 -325
- package/src/components/input/index.tsx +177 -177
- package/src/components/input/types.ts +37 -37
- package/src/components/link/Link.stories.tsx +163 -163
- package/src/components/link/types.ts +25 -25
- package/src/components/list/List.stories.tsx +272 -272
- package/src/components/list/index.tsx +88 -88
- package/src/components/list/list-item/index.tsx +38 -38
- package/src/components/list/list-item/types.ts +13 -13
- package/src/components/list/types.ts +29 -29
- package/src/components/material-icon/MaterialIcon.stories.tsx +330 -330
- package/src/components/material-icon/constants.ts +98 -98
- package/src/components/material-icon/index.tsx +44 -44
- package/src/components/material-icon/types.ts +31 -31
- package/src/components/modal/Modal.stories.tsx +171 -171
- package/src/components/modal/index.tsx +164 -164
- package/src/components/modal/types.ts +24 -24
- package/src/components/next-image/index.tsx +32 -32
- package/src/components/next-image/types.ts +1 -1
- package/src/components/radio-button/RadioButton.stories.tsx +307 -307
- package/src/components/radio-button/index.tsx +75 -75
- package/src/components/radio-button/types.ts +21 -21
- package/src/components/see-more/SeeMore.stories.tsx +181 -181
- package/src/components/see-more/index.tsx +44 -44
- package/src/components/see-more/types.ts +4 -4
- package/src/components/select/Select.stories.tsx +411 -411
- package/src/components/select/index.tsx +150 -150
- package/src/components/select/types.ts +35 -35
- package/src/components/select-plan-button/SelectPlanButton.stories.tsx +184 -184
- package/src/components/select-plan-button/index.tsx +31 -31
- package/src/components/select-plan-button/types.ts +5 -5
- package/src/components/skeleton/Skeleton.stories.tsx +179 -179
- package/src/components/skeleton/index.tsx +61 -61
- package/src/components/skeleton/types.ts +4 -4
- package/src/components/spinner/Spinner.stories.tsx +335 -335
- package/src/components/spinner/index.tsx +44 -44
- package/src/components/spinner/types.ts +5 -5
- package/src/components/text/Text.stories.tsx +321 -321
- package/src/components/text/index.tsx +25 -25
- package/src/components/text/types.ts +45 -45
- package/src/components/tooltip/Tooltip.stories.tsx +219 -219
- package/src/components/tooltip/index.tsx +74 -74
- package/src/components/tooltip/types.ts +7 -7
- package/src/components/view-cart-button/ViewCartButton.stories.tsx +252 -252
- package/src/components/view-cart-button/index.tsx +42 -42
- package/src/components/view-cart-button/types.ts +5 -5
- package/src/contentful/blocks/button/Button.stories.tsx +40 -40
- package/src/contentful/blocks/button/index.tsx +99 -99
- package/src/contentful/blocks/button/types.ts +31 -31
- package/src/contentful/blocks/callout/Callout.stories.tsx +23 -23
- package/src/contentful/blocks/callout/index.tsx +66 -66
- package/src/contentful/blocks/cards/Cards.stories.tsx +23 -23
- package/src/contentful/blocks/cards/index.tsx +13 -13
- package/src/contentful/blocks/cards/product-card/index.tsx +199 -199
- package/src/contentful/blocks/cards/product-card/types.ts +21 -20
- package/src/contentful/blocks/cards/simple-card/index.tsx +77 -77
- package/src/contentful/blocks/cards/simple-card/types.ts +31 -31
- package/src/contentful/blocks/cards/testimonial-card/index.tsx +88 -88
- package/src/contentful/blocks/cards/testimonial-card/types.tsx +12 -12
- package/src/contentful/blocks/cards/types.ts +1 -1
- package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -23
- package/src/contentful/blocks/carousel/helper.tsx +349 -314
- package/src/contentful/blocks/carousel/index.tsx +68 -52
- package/src/contentful/blocks/carousel/types.ts +139 -126
- package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -46
- package/src/contentful/blocks/cta-callout/index.tsx +54 -54
- package/src/contentful/blocks/cta-callout/types.ts +22 -22
- package/src/contentful/blocks/find-kinetic/index.tsx +124 -124
- package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +34 -34
- package/src/contentful/blocks/floating-banner/types.ts +22 -22
- package/src/contentful/blocks/footer/Footer.stories.tsx +30 -30
- package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -23
- package/src/contentful/blocks/image-promo-bar/helper.tsx +28 -0
- package/src/contentful/blocks/image-promo-bar/index.tsx +231 -154
- package/src/contentful/blocks/image-promo-bar/types.ts +44 -31
- package/src/contentful/blocks/image-promo-bar/vimeo-embed.tsx +93 -0
- package/src/contentful/blocks/image-promo-bar/youtube-embed.tsx +46 -0
- package/src/contentful/blocks/modal/constants.ts +53 -53
- package/src/contentful/blocks/modal/index.tsx +91 -91
- package/src/contentful/blocks/modal/types.ts +12 -12
- package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +111 -111
- package/src/contentful/blocks/navigation/index.tsx +385 -385
- package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +80 -80
- package/src/contentful/blocks/navigation/types.ts +41 -41
- package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -23
- package/src/contentful/blocks/primary-hero/index.tsx +228 -228
- package/src/contentful/blocks/primary-hero/types.ts +35 -35
- package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -26
- package/src/contentful/blocks/shape-background-wrapper/index.tsx +124 -124
- package/src/contentful/blocks/shape-background-wrapper/types.ts +36 -36
- package/src/contentful/blocks/text/Text.stories.tsx +23 -23
- package/src/contentful/blocks/text/index.tsx +12 -12
- package/src/contentful/blocks/text/types.ts +1 -1
- package/src/contentful/index.ts +57 -57
- package/src/hooks/use-body-scroll-lock.ts +34 -34
- package/src/hooks/use-outside-click.ts +17 -17
- package/src/index.ts +96 -96
- package/src/next/index.ts +5 -5
- package/src/setupTests.ts +46 -46
- package/src/stories/DocsTemplate.tsx +24 -24
- package/src/styles/globals.css +307 -307
- package/src/types/global.d.ts +9 -9
- package/src/types/micro-components.ts +89 -89
- package/src/utils/index.ts +49 -49
package/dist/contentful/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/image"),s=require("react-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=r(t);function i(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=i(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function a(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=i(e))&&(s&&(s+=" "),s+=t);return s}const l=e=>{const t=h(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),c(n,t)||d(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&s[e]?[...r,...s[e]]:r}}},c=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?c(e.slice(1),s):void 0;if(r)return r;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},u=/^\[(.+)\]$/,d=e=>{if(u.test(e)){const t=u.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},h=e=>{const{theme:t,classGroups:n}=e,s={nextPart:new Map,validators:[]};for(const e in n)m(n[e],s,e,t);return s},m=(e,t,n,s)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:p(t,e)).classGroupId=n)}if("function"==typeof e)return f(e)?void m(e(s),t,n,s):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,r])=>{m(r,p(t,e),n,s)})})},p=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},f=e=>e.isThemeGetter,g=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(r,o)=>{n.set(r,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=s.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},v=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=e=>{const t=[];let n,s=0,r=0,o=0;for(let i=0;i<e.length;i++){let a=e[i];if(0===s&&0===r){if(":"===a){t.push(e.slice(o,i)),o=i+1;continue}if("/"===a){n=i;continue}}"["===a?s++:"]"===a?s--:"("===a?r++:")"===a&&r--}const i=0===t.length?e:e.substring(o),a=x(i);return{modifiers:t,hasImportantModifier:a!==i,baseClassName:a,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=s;s=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=s;s=t=>n({className:t,parseClassName:e})}return s},x=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,y=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let s=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...s.sort(),e),s=[]):s.push(e)}),n.push(...s.sort()),n}},b=/\s+/;function w(){let e,t,n=0,s="";for(;n<arguments.length;)(e=arguments[n++])&&(t=j(e))&&(s&&(s+=" "),s+=t);return s}const j=e=>{if("string"==typeof e)return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=j(e[s]))&&(n&&(n+=" "),n+=t);return n};function k(e,...t){let n,s,r,o=function(a){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:g(e.cacheSize),parseClassName:v(e),sortModifiers:y(e),...l(e)}))(c),s=n.cache.get,r=n.cache.set,o=i,i(a)};function i(e){const t=s(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],a=e.trim().split(b);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=s(p?h.substring(0,m):h);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=s(h),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=o(u).join(":"),v=d?g+"!":g,x=v+f;if(i.includes(x))continue;i.push(x);const y=r(f,p);for(let e=0;e<y.length;++e){const t=y[e];i.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return r(e,o),o}return function(){return o(w.apply(null,arguments))}}const N=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>P.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),B=e=>e.endsWith("%")&&R(e.slice(0,-1)),F=e=>S.test(e),O=()=>!0,I=e=>T.test(e)&&!A.test(e),$=()=>!1,z=e=>M.test(e),_=e=>D.test(e),U=e=>!G(e)&&!Z(e),W=e=>re(e,le,$),G=e=>C.test(e),H=e=>re(e,ce,I),Y=e=>re(e,ue,R),q=e=>re(e,ie,$),X=e=>re(e,ae,_),K=e=>re(e,he,z),Z=e=>E.test(e),J=e=>oe(e,ce),Q=e=>oe(e,de),ee=e=>oe(e,ie),te=e=>oe(e,le),ne=e=>oe(e,ae),se=e=>oe(e,he,!0),re=(e,t,n)=>{const s=C.exec(e);return!!s&&(s[1]?t(s[1]):n(s[2]))},oe=(e,t,n=!1)=>{const s=E.exec(e);return!!s&&(s[1]?t(s[1]):n)},ie=e=>"position"===e||"percentage"===e,ae=e=>"image"===e||"url"===e,le=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,ue=e=>"number"===e,de=e=>"family-name"===e,he=e=>"shadow"===e,me=()=>{const e=N("color"),t=N("font"),n=N("text"),s=N("font-weight"),r=N("tracking"),o=N("leading"),i=N("breakpoint"),a=N("container"),l=N("spacing"),c=N("radius"),u=N("shadow"),d=N("inset-shadow"),h=N("text-shadow"),m=N("drop-shadow"),p=N("blur"),f=N("perspective"),g=N("aspect"),v=N("ease"),x=N("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Z,G],b=()=>[Z,G,l],w=()=>[V,"full","auto",...b()],j=()=>[L,"none","subgrid",Z,G],k=()=>["auto",{span:["full",L,Z,G]},L,Z,G],C=()=>[L,"auto",Z,G],E=()=>["auto","min","max","fr",Z,G],P=()=>["auto",...b()],S=()=>[V,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],T=()=>[e,Z,G],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,q,{position:[Z,G]}],M=()=>["auto","cover","contain",te,W,{size:[Z,G]}],D=()=>[B,J,H],I=()=>["","none","full",c,Z,G],$=()=>["",R,J,H],z=()=>[R,B,ee,q],_=()=>["","none",p,Z,G],re=()=>["none",R,Z,G],oe=()=>["none",R,Z,G],ie=()=>[R,Z,G],ae=()=>[V,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[O],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[U],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",R],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",V,G,Z,g]}],container:["container"],columns:[{columns:[R,G,Z,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",Z,G]}],basis:[{basis:[V,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,V,"auto","initial","none",G]}],grow:[{grow:["",R,Z,G]}],shrink:[{shrink:["",R,Z,G]}],order:[{order:[L,"first","last","none",Z,G]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Z,Y]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",B,G]}],"font-family":[{font:[Q,G,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Z,G]}],"line-clamp":[{"line-clamp":[R,"none",Z,Y]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",Z,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",Z,H]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[R,"auto",Z,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,Z,G],radial:["",Z,G],conic:[L,Z,G]},ne,X]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[R,Z,G]}],"outline-w":[{outline:["",R,J,H]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,se,K]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,se,K]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[R,H]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,se,K]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[R,Z,G]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,G]}],filter:[{filter:["","none",Z,G]}],blur:[{blur:_()}],brightness:[{brightness:[R,Z,G]}],contrast:[{contrast:[R,Z,G]}],"drop-shadow":[{"drop-shadow":["","none",m,se,K]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",R,Z,G]}],"hue-rotate":[{"hue-rotate":[R,Z,G]}],invert:[{invert:["",R,Z,G]}],saturate:[{saturate:[R,Z,G]}],sepia:[{sepia:["",R,Z,G]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,G]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[R,Z,G]}],"backdrop-contrast":[{"backdrop-contrast":[R,Z,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,Z,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,Z,G]}],"backdrop-invert":[{"backdrop-invert":["",R,Z,G]}],"backdrop-opacity":[{"backdrop-opacity":[R,Z,G]}],"backdrop-saturate":[{"backdrop-saturate":[R,Z,G]}],"backdrop-sepia":[{"backdrop-sepia":["",R,Z,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",Z,G]}],ease:[{ease:["linear","initial",v,Z,G]}],delay:[{delay:[R,Z,G]}],animate:[{animate:["none",x,Z,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Z,G]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[Z,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,G]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[R,J,H,Y]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pe=(e,t,n)=>{void 0!==n&&(e[t]=n)},fe=(e,t)=>{if(t)for(const n in t)pe(e,n,t[n])},ge=(e,t)=>{if(t)for(const n in t)ve(e,t,n)},ve=(e,t,n)=>{const s=t[n];void 0!==s&&(e[n]=e[n]?e[n].concat(s):s)},xe=((e,...t)=>"function"==typeof e?k(me,e,...t):k(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(pe(e,"cacheSize",t),pe(e,"prefix",n),pe(e,"experimentalParseClassName",s),fe(e.theme,o.theme),fe(e.classGroups,o.classGroups),fe(e.conflictingClassGroups,o.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),pe(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),ge(e.theme,r.theme),ge(e.classGroups,r.classGroups),ge(e.conflictingClassGroups,r.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),ve(e,r,"orderSensitiveModifiers"),e))(me(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),ye=(...e)=>xe(a(...e)),be=t.forwardRef(({children:t,className:n="",style:s,disabled:r,...o},i)=>e.jsx("button",{ref:i,className:ye(n),style:s,disabled:r,...o,children:t}));be.displayName="Button";const we=n=>{const{open:s,children:r}=n,o=t.useRef(null),[i,a]=t.useState(0);return t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(s?e.scrollHeight:0)};let n;return t(),s&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[s,r]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:s?1:0},"aria-hidden":!s,children:e.jsx("div",{ref:o,children:r})})};we.displayName="Collapse";const je=({name:t,fill:n=0,opticalSize:s="48dp",weight:r="200",emphasis:o=145,size:i=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const h={fontVariationSettings:`'FILL' ${n}, 'wght' ${r}, 'GRAD' ${o}, 'opsz' ${s.substring(0,2)}`,fontSize:`${i}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:h,className:ye("material-symbols-rounded",c),onClick:u,"data-testid":d,children:t})};je.displayName="MaterialIcon";const ke=n=>{const{title:s,defaultOpen:r,children:o,containerClassName:i,titleClassName:a,className:l,buttonClassName:c,openOnlyOnDesktop:u}=n,[d,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(u){const e=window.innerWidth>=1024;h(e)}else h(Boolean(r))},[u,r]),e.jsxs("div",{className:ye("rounded-lg border",i),children:[e.jsxs(be,{type:"button",className:ye("flex w-full items-center justify-between gap-4 rounded-t-lg px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:ye("label5",a),children:s}),e.jsx(je,{name:d?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(we,{open:d,children:e.jsx("div",{className:ye("px-4 py-4",l),children:o})})]})};ke.displayName="Accordion";const Ne=t.forwardRef(({children:e,as:n,className:s="",style:r,...o},i)=>{const a=n||"p";return t.createElement(a,{ref:i,className:s,style:r,...o},e)});Ne.displayName="Text";const Ce={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Ee=t.forwardRef(({className:t,...s},r)=>{const o="string"==typeof s.src?s.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net")&&i.endsWith(".svg");return e.jsx(n,{ref:r,className:ye(t),...s,unoptimized:a})});Ee.displayName="NextImage";const Pe=({card:t,lgWidth:n,mdWidth:s})=>{var r,o,i;const a=(null===(r=t.imageAlignment)||void 0===r?void 0:r.toLowerCase())||"left",l="left"===a?"lg:items-start":"right"===a?"lg:items-end":"lg:items-center";return e.jsx("div",{className:`callout-card ${s} ${n} w-full ${null!==(i=Ce[null!==(o=t.backgroundColor)&&void 0!==o?o:""])&&void 0!==i?i:""}`,children:e.jsxs("div",{className:`card-template flex h-full flex-col items-center gap-6 p-8 text-center ${l}`,children:[e.jsx("div",{className:"card-header",children:(t=>{var n,s,r;if(!t.image)return null;return"full"===(null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase())?e.jsx(Ee,{width:400,height:280,src:t.image,alt:null!==(s=t.title)&&void 0!==s?s:"card-icon",className:"rounded-3xl"}):e.jsx(Ee,{width:88,height:88,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon"})})(t)}),e.jsxs("div",{className:"card-body flex flex-col gap-3 text-start",children:[t.title&&e.jsx(Ne,{as:"h5",className:"heading5 font-black",children:t.title}),t.body&&e.jsx(Ne,{as:"div",className:"body1",children:t.body})]})]})})},Se=t.forwardRef(({children:t,className:n="",variant:s="unstyled",style:r,...o},i)=>{const a=ye("unstyled"===s?"":"mb-1 leading-6","list-item",`list-item--${s}`,n);return e.jsx("li",{ref:i,className:a,style:r,...o,children:t})});Se.displayName="ListItem";const Te=t.forwardRef(({type:t="ul",items:n,className:s="",renderItem:r,children:o,variant:i="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===i)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d={className:ye(u,`list--${t}`,`list--${i}`,s),style:a,...l,children:o||(n&&0!==n.length?n.map((t,n)=>r?r(t,n):e.jsx(Se,{className:t.className,variant:i,children:t.content},t.id||n)):null)};return"ol"===t?e.jsx("ol",{...d,ref:c}):e.jsx("ul",{...d,ref:c})});Te.displayName="List";const Ae=t=>{const{items:n,listIconName:s="check",listItemClassName:r,iconSize:o=20,iconPosition:i="center",iconColor:a="brand"}=t,l="disc"!==s;return(null==n?void 0:n.length)?e.jsx(Te,{className:"mt-2 space-y-1",variant:l?"unstyled":"default",children:n.map((t,n)=>e.jsxs(Se,{variant:l?"unstyled":"default",className:ye(`${l?"flex":""} ${"top"===i?"items-start":"items-center"} gap-2 text-text-secondary`,r),children:[l&&e.jsx("div",{children:e.jsx(je,{name:s,size:o,weight:"600",className:`text-icon-${a} ${"top"===i?"mt-1":""}`})}),e.jsx(Ne,{as:"div",children:t})]},n))}):null};Ae.displayName="Checklist";const Me=t.forwardRef(({as:t,className:n="",...s},r)=>{const o=ye(n);if(t){const n=t;return e.jsx(n,{ref:r,className:o,...s})}return e.jsx("img",{ref:r,className:o,...s})});Me.displayName="Image";const De=({onSelect:t,speed:n,isSelected:s=!1})=>{const r=`btn-medium rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${s?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `;return e.jsxs(be,{onClick:t,className:ye(r,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${n}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(s?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e.jsx(je,{name:"chevron_right",fill:1,size:24})})]})},Ve=({planName:n,speed:s,price:r,description:o,bestValue:i=!1,bestValueText:a="best value",giftBadge:l,innerBadge:c,theme:u="light",featuresTitle:d="Business Ready Internet features",features:h=[],isExpanded:m,onToggleExpand:p,onCtaClick:f,hostType:g})=>{const[v,x]=t.useState(!1),y=void 0!==m?m:v,b="dark"===u;return e.jsxs("article",{className:ye("relative flex h-full w-full max-w-[392px] flex-col",!i&&"pt-[28px]"),children:[i&&e.jsx("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:a}),e.jsxs("div",{className:ye("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",b?"bg-bg-fill-inverse text-white":"bg-white text-text",i?"rounded-t-none":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Ne,{as:"h3",className:ye("whitespace-nowrap text-subheading2 font-black lowercase",b?"text-bg-fill-brand-accent":"text-text-brand"),children:n}),"smb"===g?e.jsx(Ne,{as:"p",className:`text-label3 font-black ${b?"text-bg-fill-brand-accent":"text-text-brand"} lowercase md:whitespace-nowrap`,children:"business ready internet"}):null]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"text-xl font-normal",children:"$"}),e.jsx("span",{className:"text-subheading6 font-medium leading-none",children:r.split(".")[0]}),e.jsxs("span",{className:"text-sm font-black",children:[r.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Ne,{className:ye("text-base",b?"text-white":"text-text"),children:o})}),e.jsx("div",{className:ye("flex-col items-center rounded-xl p-2",b?"bg-bg-surface-inverse":"bg-gray-200"),children:l&&(null==l?void 0:l.map(t=>e.jsxs("div",{className:"flex items-center gap-2 p-1",children:[e.jsx(Me,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Ne,{className:"text-sm font-bold",children:t.title})]},t.title)))}),e.jsx(De,{onSelect:f,speed:s,isSelected:b}),h.length>0&&e.jsxs("section",{className:"flex flex-col gap-6",children:[e.jsxs(be,{onClick:()=>{p?p():x(!v)},className:"group flex w-full items-center justify-between text-left",children:[e.jsx(Ne,{as:"h4",className:"text-base font-bold",children:d}),e.jsx(je,{name:"keyboard_arrow_up",fill:1,size:24,className:ye("transition-transform duration-300",y&&"rotate-180")})]}),e.jsxs("div",{className:ye("overflow-hidden transition-all duration-300 ease-in-out",y?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col gap-3",children:e.jsx(Ae,{items:h,listItemClassName:""+(b?"text-white":"text-text")})}),(null==c?void 0:c.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(Me,{src:c.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"text-sm",children:c.badgeText.includes("|")?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-bold",children:c.badgeText.split("|")[0]}),e.jsx("span",{className:"font-normal",children:c.badgeText.split("|")[1]})]}):e.jsx(Ne,{className:"font-bold",children:c.badgeText})})]}):null]})]})]})]})},Re=({title:t,quote:s,rating:r,author:o,role:i,avatarUrl:l,isActive:c=!1,className:u})=>e.jsxs("figure",{className:a("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",c?"bg-white shadow-lg":"bg-gray-50 opacity-60",u),children:[e.jsx("header",{children:e.jsx(Ne,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:t})}),e.jsx("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:s}),r?e.jsx("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e.jsx(je,{size:24,name:"star",fill:1,className:a("h-5 w-5",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,o&&e.jsxs("figcaption",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:l?e.jsx(n,{src:l,alt:o,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:o.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"text-sm font-bold not-italic text-text",children:o}),e.jsx(Ne,{as:"p",className:"text-xs text-text",children:i})]})]})]});function Le({fields:n}){var s,r,o,i;const l=(null===(o=null===(r=null===(s=null==n?void 0:n.items)||void 0===s?void 0:s.items)||void 0===r?void 0:r[0])||void 0===o?void 0:o.benefitsExpanded)||!1,[c,u]=t.useState(l),[d,h]=t.useState({}),[m,p]=t.useState(0),f=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[],g=f.length>2,v=t.useRef([]),x=t.useCallback(()=>{g&&p(e=>(e+3)%f.length)},[g,f.length]),y=t.useCallback(()=>{g&&p(e=>(e-3+f.length)%f.length)},[g,f.length]);if(t.useEffect(()=>{if(!g)return;const e=()=>{const e=v.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[g,c,f.length]),!f.length&&!(null==n?void 0:n.title))return null;const b=(t,n,s=!1)=>{var r,o,i,l,m,p,f,g;const x=`${(null===(r=null==t?void 0:t.techType)||void 0===r?void 0:r.startsWith("FIBER"))?"fiber ":""}${(null==t?void 0:t.speed)||""}`,y=(null===(i=null===(o=null==t?void 0:t.priceSuffix)||void 0===o?void 0:o.split("/"))||void 0===i?void 0:i[0])||"00",b=`${(null==t?void 0:t.price)||"0"}.${y}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],j=(null==t?void 0:t.highlighted)||!1,k=(null===(p=null===(m=null==t?void 0:t.giftRewards)||void 0===m?void 0:m.list)||void 0===p?void 0:p.items)||[],N={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},C=s?d[n]||!1:c;return e.jsx("div",{ref:s?void 0:e=>{e&&!v.current.includes(e)&&(v.current[n]=e)},className:a(s?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Ve,{planName:x,speed:(null==t?void 0:t.speed)||"",price:b,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:k,innerBadge:N,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:j,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:w,isExpanded:C,onToggleExpand:()=>{s?h(e=>({...e,[n]:!e[n]})):u(!c)},ctaText:(null===(g=null==t?void 0:t.cta)||void 0===g?void 0:g.buttonLabel)||"Select plan",onCtaClick:()=>{},hostType:"smb"})},n)},w=[...f,...f,...f,...f,...f],j=2*f.length;return g?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:f.map((e,t)=>b(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[e.jsxs("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e.jsx(be,{onClick:x,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx(be,{onClick:y,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})})]}),e.jsx("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e.jsx("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${j+m} * (392px + 12px)))`},children:w.map((e,t)=>b(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:f.map((e,t)=>b(e,t))})}const Be=({fields:n})=>{var s;const r=(null===(s=null==n?void 0:n.items)||void 0===s?void 0:s.items)||[],[o,i]=t.useState(0),l=t.useRef(null),c=t.useCallback(()=>{0!==r.length&&i(e=>(e+1)%r.length)},[r.length]),u=t.useCallback(()=>{0!==r.length&&i(e=>0===e?r.length-1:e-1)},[r.length]);return t.useEffect(()=>{if(0!==r.length)return l.current=setInterval(()=>{c()},8e3),()=>{l.current&&clearInterval(l.current)}},[c,r.length]),r&&0!==r.length?e.jsxs("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e.jsx(be,{onClick:u,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:r.map((t,n)=>{let s=n-o;const i=r.length;s>i/2&&(s-=i),s<-i/2&&(s+=i);const l=0===s;return e.jsx("div",{className:a("col-start-1 row-start-1 w-full md:max-w-[815px]",l?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${l?"0%":105*s+"%"})`,zIndex:l?10:5,visibility:Math.abs(s)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e.jsx(Re,{...t,isActive:l,className:"h-full"})},n)})}),e.jsx(be,{onClick:c,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})}),e.jsx("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:r.map((t,n)=>e.jsx("button",{onClick:()=>i(n),className:a("h-2 w-2 rounded-full transition-all duration-300",o===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},Fe=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Oe=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:s,label:r,disabled:o,fullWidth:i,size:a={base:"medium"},as:l="button",...c},u)=>{const d=(()=>{const e=ye((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(a),"rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",i&&"w-full"),s=ye((o||n)&&"cursor-not-allowed",n&&"pl-7",o&&"bg-bg-fill-brand-disabled");return ye(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[t]||"",s)})();let h=`button--${t}`;n&&(h+=" button--loading"),o&&(h+=" button--disabled");const m=`${h} ${d}`,p=e.jsxs(e.Fragment,{children:[n?e.jsx(je,{name:"progress_activity",className:"animate-spin"}):null,r?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:ye(Fe(a)),children:r}),s]}):s]});return"a"===l?e.jsx("a",{ref:u,className:ye(m),...c,children:p}):e.jsx("button",{ref:u,className:ye(m),disabled:o||n,...c,children:p})});Oe.displayName="BrandButton";const Ie=t.forwardRef(({children:t,href:n,className:s="",onClick:r,variant:o="unstyled",style:i,external:a=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===o)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[o]||e.default,t].filter(Boolean).join(" ")})(),h={...c,ref:u,className:ye(d,`link--${o}`,l&&"link--disabled",s),style:i,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==r||r(e)},...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e.jsx("a",{...h,children:t})});Ie.displayName="Link";const $e=({showButtonAs:t="solid",buttonVariant:n="primary_brand",buttonLabel:s,buttonPrefix:r,href:o,target:i="_blank",anchorId:a,linkClassName:l,linkVariant:c,fullWidth:u,preDefinedFunctionExecution:d,renderCheckPlans:h,buttonClassName:m,clickToOpen:p,tabmodalNameToOpen:f,onModalButtonClick:g,onClick:v,...x})=>{if("check availability"===d){return null==h?void 0:h({ctaText:s,buttonVariant:n,showButtonAs:t})}function y(e){"modal"===p&&(null==g||g(f)),null==v||v(e)}function b(e){"modal"===p&&(null==g||g(f)),null==v||v(e)}let w=e.jsx(be,{onClick:b,className:m,...x});switch(t){case"solid":w=o?e.jsx(Oe,{as:"a",href:o,id:a,variant:n,text:s,label:r,fullWidth:u,onClick:y}):e.jsx(Oe,{id:a,variant:n,text:s,label:r,fullWidth:u,onClick:b});break;case"text":w=e.jsx(Ie,{href:o,target:i,variant:c||"default",className:`text-text-brand ${l||""}`,onClick:y,children:s})}return w},ze=({link:n,anchorName:s})=>{const[r,o]=t.useState(!1),i=t.useRef(null);if(((e,n)=>{const s=t=>{var s;(null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}))})(i,()=>o(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx($e,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:a,title:l,items:c}=n,u=Array.isArray(null==c?void 0:c.items)?c.items:[],d=`--link-anchor-${s}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:d},ref:i,children:[e.jsxs($e,{onClick:()=>o(e=>!e),"aria-expanded":r,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e.jsx(Ne,{as:"span",className:"group-hover:underline",children:null!=l?l:null}),e.jsx(je,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),e.jsx("div",{className:ye("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",r&&u.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:d,top:"anchor(bottom)",right:"anchor(right)"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",children:u.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx($e,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},_e=({link:n})=>{const[s,r]=t.useState(!1);if(!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx($e,{...n,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:o,title:i,items:a}=n,l=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs($e,{onClick:()=>r(e=>!e),"aria-expanded":s,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=i?i:null,e.jsx(je,{weight:"700",name:s?"keyboard_arrow_up":"keyboard_arrow_down"})]},o),s&&l.length>0&&e.jsx(Ue,{items:l})]})},Ue=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx($e,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),We=t=>{const{showBlinkDot:n=!1,buttonStyle:s="primary",size:r="md",children:o,className:i,...a}=t;return e.jsxs(Ie,{...a,className:ye("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[r],{primary:"border-[0.727px] border-border text-text"}[s],i),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[r]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[r]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[r]} items-center justify-center rounded-full bg-icon-brand`,children:e.jsx(je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[r],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]})};We.displayName="CallButton";const Ge=t.forwardRef((n,s)=>{const{className:r,size:o,required:i,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:p=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:v,prefixIconClassName:x,loading:y,hasError:b,type:w,...j}=n,k=b?"error":c,[N,C]=t.useState(!1),[E,P]=t.useState(!1),[S,T]=t.useState(w||"text"),A=t.useCallback(e=>{e.stopPropagation(),T(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:ye("inline-block pb-1"),children:e.jsxs(Ne,{as:"span",className:"footnote text-text",children:[l,i?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:ye("relative flex flex-row items-center overflow-hidden rounded-xl border border-input-border bg-input-bg-surface",{sm:"h-[48px] rounded-lg px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],v,(N||"hover"===k)&&!E&&"error"!==k&&"border-input-border-hover",(E||"focus"===k||"active"===k)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===k&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:p,height:p,overflow:"hidden"},children:e.jsx(je,{name:d,fill:h?1:0,size:p,className:ye(x)})}):null,e.jsx("input",{ref:s,id:l,disabled:y||j.disabled,className:ye("h-full grow rounded-xl p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",r),placeholder:a,type:S,...j,onMouseOver:()=>C(!0),onMouseOut:()=>C(!1),onFocus:e=>{var t;null===(t=j.onFocus)||void 0===t||t.call(j,e),P(!0)},onBlur:e=>{var t;null===(t=j.onBlur)||void 0===t||t.call(j,e),P(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:A,children:e.jsx(je,{name:"text"===S?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===k&&u&&""!=u?e.jsxs(Ne,{className:ye("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(je,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Ge.displayName="Input";const He=n=>{var s;const{primaryNavigationLinks:r,utilityNavigationLinks:o}=n,[i,a]=t.useState(!1);t.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=i?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],s=t[t.length-1],r=e=>{var t,r,o,i;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(r=(t=s).focus)||void 0===r||r.call(t),e.preventDefault()):document.activeElement===s&&(null===(i=(o=n).focus)||void 0===i||i.call(o),e.preventDefault()))};return window.addEventListener("keydown",r),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",r)}},[i]);const l=()=>{a(!1)};return e.jsxs("div",{children:[e.jsx($e,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>a(!0),children:e.jsx(je,{name:"menu"})}),i?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:ye("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",i?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between px-4",children:[e.jsx("div",{children:e.jsx(We,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e.jsx("div",{children:e.jsx($e,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:l,children:e.jsx(je,{name:"close"})})})]}),e.jsx(Ye,{closeMenu:l,isMenuOpen:i,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(s=n.searchBarIcon)||void 0===s?void 0:s.url)||"",onSearch:n.onSearch||(()=>{})}),e.jsxs("div",{className:"flex-grow overflow-y-auto",children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:null==r?void 0:r.map((t,n)=>e.jsx("li",{children:e.jsx(_e,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((t,n)=>e.jsx("li",{children:e.jsx($e,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:ye("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Ye=n=>{const{closeMenu:s,onSearch:r,isMenuOpen:o,searchBarIconURL:i}=n,[a,l]=t.useState(""),c=t.useRef(null),u=e=>{s(),e.preventDefault(),r(a)};return t.useEffect(()=>{o||l("")},[o]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Ee,{src:i,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Ge,{ref:c,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:a,onChange:e=>l(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},qe=n=>{const{searchBarIconURL:s,onSearch:r}=n,[o,i]=t.useState(""),a=t.useRef(null),l=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:l,children:[e.jsx(Ee,{src:s,width:32,height:32,alt:"Search icon",role:"button",onClick:l}),e.jsx(Ge,{ref:a,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:o,onChange:e=>i(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},Xe={closed:{opacity:0},open:{opacity:1}},Ke={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Ze={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Je=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Qe=t.createContext({}),et=t.createContext(null),tt="undefined"!=typeof document,nt=tt?t.useLayoutEffect:t.useEffect,st=t.createContext({strict:!1});function rt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ot(e){return"string"==typeof e||Array.isArray(e)}function it(e){return"object"==typeof e&&"function"==typeof e.start}const at=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lt=["initial",...at];function ct(e){return it(e.animate)||lt.some(t=>ot(e[t]))}function ut(e){return Boolean(ct(e)||e.variants)}function dt(e){const{initial:n,animate:s}=function(e,t){if(ct(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ot(t)?t:void 0,animate:ot(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(Qe));return t.useMemo(()=>({initial:n,animate:s}),[ht(n),ht(s)])}function ht(e){return Array.isArray(e)?e.join(" "):e}const mt={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"]},pt={};for(const e in mt)pt[e]={isEnabled:t=>mt[e].some(e=>!!t[e])};const ft=t.createContext({}),gt=t.createContext({}),vt=Symbol.for("motionComponentSymbol");function xt({preloadedFeatures:e,createVisualElement:n,useRender:s,useVisualState:r,Component:i}){e&&function(e){for(const t in e)pt[t]={...pt[t],...e[t]}}(e);const a=t.forwardRef(function(a,l){let c;const u={...t.useContext(Je),...a,layoutId:yt(a)},{isStatic:d}=u,h=dt(a),m=r(a,d);if(!d&&tt){h.visualElement=function(e,n,s,r){const{visualElement:o}=t.useContext(Qe),i=t.useContext(st),a=t.useContext(et),l=t.useContext(Je).reducedMotion,c=t.useRef();r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:n,parent:o,props:s,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(s,a)}),nt(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?nt:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const s=t.useContext(gt),r=t.useContext(st).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,r,e,s))}return o.createElement(Qe.Provider,{value:h},c&&h.visualElement?o.createElement(c,{visualElement:h.visualElement,...u}):null,s(i,a,function(e,n,s){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),s&&("function"==typeof s?s(t):rt(s)&&(s.current=t))},[n])}(m,h.visualElement,l),m,d,h.visualElement))});return a[vt]=i,a}function yt({layoutId:e}){const n=t.useContext(ft).id;return n&&void 0!==e?n+"-"+e:e}function bt(e){function t(t,n={}){return xt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,s)=>(n.has(s)||n.set(s,t(s)),n.get(s))})}const wt=["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 jt(e){return"string"==typeof e&&!e.includes("-")&&!!(wt.indexOf(e)>-1||/[A-Z]/.test(e))}const kt={};const Nt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ct=new Set(Nt);function Et(e,{layout:t,layoutId:n}){return Ct.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!kt[e]||"opacity"===e)}const Pt=e=>Boolean(e&&e.getVelocity),St={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tt=Nt.length;const At=e=>t=>"string"==typeof t&&t.startsWith(e),Mt=At("--"),Dt=At("var(--"),Vt=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Rt=(e,t,n)=>Math.min(Math.max(n,e),t),Lt={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Bt={...Lt,transform:e=>Rt(0,1,e)},Ft={...Lt,default:1},Ot=e=>Math.round(1e5*e)/1e5,It=/(-)?([\d]*\.?[\d])+/g,$t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _t(e){return"string"==typeof e}const Ut=e=>({test:t=>_t(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Wt=Ut("deg"),Gt=Ut("%"),Ht=Ut("px"),Yt=Ut("vh"),qt=Ut("vw"),Xt={...Gt,parse:e=>Gt.parse(e)/100,transform:e=>Gt.transform(100*e)},Kt={...Lt,transform:Math.round},Zt={borderWidth:Ht,borderTopWidth:Ht,borderRightWidth:Ht,borderBottomWidth:Ht,borderLeftWidth:Ht,borderRadius:Ht,radius:Ht,borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomRightRadius:Ht,borderBottomLeftRadius:Ht,width:Ht,maxWidth:Ht,height:Ht,maxHeight:Ht,size:Ht,top:Ht,right:Ht,bottom:Ht,left:Ht,padding:Ht,paddingTop:Ht,paddingRight:Ht,paddingBottom:Ht,paddingLeft:Ht,margin:Ht,marginTop:Ht,marginRight:Ht,marginBottom:Ht,marginLeft:Ht,rotate:Wt,rotateX:Wt,rotateY:Wt,rotateZ:Wt,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:Wt,skewX:Wt,skewY:Wt,distance:Ht,translateX:Ht,translateY:Ht,translateZ:Ht,x:Ht,y:Ht,z:Ht,perspective:Ht,transformPerspective:Ht,opacity:Bt,originX:Xt,originY:Xt,originZ:Ht,zIndex:Kt,fillOpacity:Bt,strokeOpacity:Bt,numOctaves:Kt};function Jt(e,t,n,s){const{style:r,vars:o,transform:i,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Mt(e)){o[e]=n;continue}const s=Zt[e],d=Vt(n,s);if(Ct.has(e)){if(l=!0,i[e]=d,!u)continue;n!==(s.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):r[e]=d}if(t.transform||(l||s?r.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},s,r){let o="";for(let t=0;t<Tt;t++){const n=Nt[t];void 0!==e[n]&&(o+=`${St[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),r?o=r(e,s?"":o):n&&s&&(o="none"),o}(e.transform,n,u,s):r.transform&&(r.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const Qt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function en(e,t,n){for(const s in t)Pt(t[s])||Et(s,n)||(e[s]=t[s])}function tn(e,n,s){const r={};return en(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n,s){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Jt(t,n,{enableHardwareAcceleration:!s},e),Object.assign({},t.vars,t.style)},[n])}(e,n,s)),e.transformValues?e.transformValues(r):r}function nn(e,t,n){const s={},r=tn(e,t,n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=r,s}const sn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function rn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||sn.has(e)}let on=e=>!rn(e);try{(an=require("@emotion/is-prop-valid").default)&&(on=e=>e.startsWith("on")?!rn(e):an(e))}catch(e){}var an;function ln(e,t,n){return"string"==typeof e?e:Ht.transform(t+n*e)}const cn={offset:"stroke-dashoffset",array:"stroke-dasharray"},un={offset:"strokeDashoffset",array:"strokeDasharray"};function dn(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},u,d,h){if(Jt(e,c,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${ln(t,e.x,e.width)} ${ln(n,e.y,e.height)}`}(f,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==s&&(m.scale=s),void 0!==i&&function(e,t,n=1,s=0,r=!0){e.pathLength=1;const o=r?cn:un;e[o.offset]=Ht.transform(-s);const i=Ht.transform(t),a=Ht.transform(n);e[o.array]=`${i} ${a}`}(m,i,a,l,!1)}const hn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),mn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function pn(e,n,s,r){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return dn(t,n,{enableHardwareAcceleration:!1},mn(r),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};en(t,e.style,e),o.style={...t,...o.style}}return o}function fn(e=!1){return(n,s,r,{latestValues:o},i)=>{const a=(jt(n)?pn:nn)(s,o,i,n),l=function(e,t,n){const s={};for(const r in e)"values"===r&&"object"==typeof e.values||(on(r)||!0===n&&rn(r)||!t&&!rn(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}(s,"string"==typeof n,e),c={...l,...a,ref:r},{children:u}=s,d=t.useMemo(()=>Pt(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const gn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vn(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const t in n)e.style.setProperty(t,n[t])}const xn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yn(e,t,n,s){vn(e,t,void 0,s);for(const n in t.attrs)e.setAttribute(xn.has(n)?n:gn(n),t.attrs[n])}function bn(e,t){const{style:n}=e,s={};for(const r in n)(Pt(n[r])||t.style&&Pt(t.style[r])||Et(r,e))&&(s[r]=n[r]);return s}function wn(e,t){const n=bn(e,t);for(const s in e)if(Pt(e[s])||Pt(t[s])){n[-1!==Nt.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=e[s]}return n}function jn(e,t,n,s={},r={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,s,r)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,s,r)),t}const kn=e=>Array.isArray(e),Nn=e=>kn(e)?e[e.length-1]||0:e;function Cn(e){const t=Pt(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const En=e=>(n,s)=>{const r=t.useContext(Qe),o=t.useContext(et),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},s,r,o){const i={latestValues:Pn(s,r,o,e),renderState:t()};return n&&(i.mount=e=>n(s,e,i)),i}(e,n,r,o);return s?i():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(i)};function Pn(e,t,n,s){const r={},o=s(e,{});for(const e in o)r[e]=Cn(o[e]);let{initial:i,animate:a}=e;const l=ct(e),c=ut(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?a:i;if(d&&"boolean"!=typeof d&&!it(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=jn(e,t);if(!n)return;const{transitionEnd:s,transition:o,...i}=n;for(const e in i){let t=i[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(r[e]=t)}for(const e in s)r[e]=s[e]})}return r}const Sn={useVisualState:En({scrapeMotionValuesFromProps:wn,createRenderState:hn,onMount:(e,t,{renderState:n,latestValues:s})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}dn(n,s,{enableHardwareAcceleration:!1},mn(t.tagName),e.transformTemplate),yn(t,n)}})},Tn={useVisualState:En({scrapeMotionValuesFromProps:bn,createRenderState:Qt})};function An(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Mn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Dn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Vn(e,t,n,s){return An(e,t,(e=>t=>Mn(t)&&e(t,Dn(t)))(n),s)}const Rn=(e,t)=>n=>t(e(n)),Ln=(...e)=>e.reduce(Rn);function Bn(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Fn=Bn("dragHorizontal"),On=Bn("dragVertical");function In(e){let t=!1;if("y"===e)t=On();else if("x"===e)t=Fn();else{const e=Fn(),n=On();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function $n(){const e=In(!0);return!e||(e(),!1)}class zn{constructor(e){this.isMounted=!1,this.node=e}update(){}}const _n={delta:0,timestamp:0,isProcessing:!1};let Un=!0,Wn=!1;const Gn=["read","update","preRender","render","postRender"],Hn=Gn.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],s=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&r,c=l?t:n;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&r&&(s=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(r)o=!0;else{if(r=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let n=0;n<s;n++){const s=t[n];s(l),i.has(s)&&(a.schedule(s),e())}r=!1,o&&(o=!1,a.process(l))}}};return a}(()=>Wn=!0),e),{}),Yn=e=>Hn[e].process(_n),qn=e=>{Wn=!1,_n.delta=Un?1e3/60:Math.max(Math.min(e-_n.timestamp,40),1),_n.timestamp=e,_n.isProcessing=!0,Gn.forEach(Yn),_n.isProcessing=!1,Wn&&(Un=!1,requestAnimationFrame(qn))},Xn=Gn.reduce((e,t)=>{const n=Hn[t];return e[t]=(e,t=!1,s=!1)=>(Wn||(Wn=!0,Un=!0,_n.isProcessing||requestAnimationFrame(qn)),n.schedule(e,t,s)),e},{});function Kn(e){Gn.forEach(t=>Hn[t].cancel(e))}function Zn(e,t){const n="pointer"+(t?"enter":"leave"),s="onHover"+(t?"Start":"End");return Vn(e.current,n,(n,r)=>{if("touch"===n.type||$n())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[s]&&Xn.update(()=>o[s](n,r))},{passive:!e.getProps()[s]})}const Jn=(e,t)=>!!t&&(e===t||Jn(e,t.parentElement)),Qn=e=>e;function es(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dn(n))}const ts=new WeakMap,ns=new WeakMap,ss=e=>{const t=ts.get(e.target);t&&t(e)},rs=e=>{e.forEach(ss)};function os(e,t,n){const s=function({root:e,...t}){const n=e||document;ns.has(n)||ns.set(n,{});const s=ns.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(rs,{root:e,...t})),s[r]}(t);return ts.set(e,n),s.observe(e),()=>{ts.delete(e),s.unobserve(e)}}const is={some:0,all:1};const as={inView:{Feature:class extends zn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:s="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:is[s]};return os(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),o=t?n:s;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends zn{constructor(){super(...arguments),this.removeStartListeners=Qn,this.removeEndListeners=Qn,this.removeAccessibleListeners=Qn,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=Vn(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:s}=this.node.getProps();Xn.update(()=>{Jn(this.node.current,e.target)?n&&n(e,t):s&&s(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),r=Vn(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ln(s,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=An(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=An(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&es("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Xn.update(()=>n(e,t))})}),es("down",(e,t)=>{this.startPress(e,t)})}),t=An(this.node.current,"blur",()=>{this.isPressing&&es("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Ln(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xn.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$n()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xn.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Vn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=An(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ln(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends zn{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=Ln(An(this.node.current,"focus",()=>this.onFocus()),An(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends zn{mount(){this.unmount=Ln(Zn(this.node,!0),Zn(this.node,!1))}unmount(){}}}};function ls(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function cs(e,t,n){const s=e.getProps();return jn(s,t,void 0!==n?n:s.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const us="data-"+gn("framerAppearId");let ds=Qn,hs=Qn;"production"!==process.env.NODE_ENV&&(ds=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},hs=(e,t)=>{if(!e)throw new Error(t)});const ms=e=>1e3*e,ps=e=>e/1e3,fs=!1,gs=e=>Array.isArray(e)&&"number"==typeof e[0];function vs(e){return Boolean(!e||"string"==typeof e&&ys[e]||gs(e)||Array.isArray(e)&&e.every(vs))}const xs=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,ys={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xs([0,.65,.55,1]),circOut:xs([.55,0,1,.45]),backIn:xs([.31,.01,.66,-.59]),backOut:xs([.33,1.53,.69,.99])};function bs(e){if(e)return gs(e)?xs(e):Array.isArray(e)?e.map(bs):ys[e]}const ws={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},js={},ks={};for(const e in ws)ks[e]=()=>(void 0===js[e]&&(js[e]=ws[e]()),js[e]);const Ns=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Cs(e,t,n,s){if(e===t&&n===s)return Qn;const r=t=>function(e,t,n,s,r){let o,i,a=0;do{i=t+(n-t)/2,o=Ns(i,s,r)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++a<12);return i}(t,0,1,e,n);return e=>0===e||1===e?e:Ns(r(e),t,s)}const Es=Cs(.42,0,1,1),Ps=Cs(0,0,.58,1),Ss=Cs(.42,0,.58,1),Ts=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,As=e=>t=>1-e(1-t),Ms=e=>1-Math.sin(Math.acos(e)),Ds=As(Ms),Vs=Ts(Ds),Rs=Cs(.33,1.53,.69,.99),Ls=As(Rs),Bs=Ts(Ls),Fs={linear:Qn,easeIn:Es,easeInOut:Ss,easeOut:Ps,circIn:Ms,circInOut:Vs,circOut:Ds,backIn:Ls,backInOut:Bs,backOut:Rs,anticipate:e=>(e*=2)<1?.5*Ls(e):.5*(2-Math.pow(2,-10*(e-1)))},Os=e=>{if(Array.isArray(e)){hs(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,r]=e;return Cs(t,n,s,r)}return"string"==typeof e?(hs(void 0!==Fs[e],`Invalid easing type '${e}'`),Fs[e]):e},Is=(e,t)=>n=>Boolean(_t(n)&&zt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$s=(e,t,n)=>s=>{if(!_t(s))return s;const[r,o,i,a]=s.match(It);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},zs={...Lt,transform:e=>Math.round((e=>Rt(0,255,e))(e))},_s={test:Is("rgb","red"),parse:$s("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+zs.transform(e)+", "+zs.transform(t)+", "+zs.transform(n)+", "+Ot(Bt.transform(s))+")"};const Us={test:Is("#"),parse:function(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:_s.transform},Ws={test:Is("hsl","hue"),parse:$s("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Gt.transform(Ot(t))+", "+Gt.transform(Ot(n))+", "+Ot(Bt.transform(s))+")"},Gs={test:e=>_s.test(e)||Us.test(e)||Ws.test(e),parse:e=>_s.test(e)?_s.parse(e):Ws.test(e)?Ws.parse(e):Us.parse(e),transform:e=>_t(e)?e:e.hasOwnProperty("red")?_s.transform(e):Ws.transform(e)},Hs=(e,t,n)=>-n*e+n*t+e;function Ys(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const qs=(e,t,n)=>{const s=e*e;return Math.sqrt(Math.max(0,n*(t*t-s)+s))},Xs=[Us,_s,Ws];function Ks(e){const t=(n=e,Xs.find(e=>e.test(n)));var n;hs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let s=t.parse(e);return t===Ws&&(s=function({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,n/=100;let r=0,o=0,i=0;if(t/=100){const s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=Ys(a,s,e+1/3),o=Ys(a,s,e),i=Ys(a,s,e-1/3)}else r=o=i=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*i),alpha:s}}(s)),s}const Zs=(e,t)=>{const n=Ks(e),s=Ks(t),r={...n};return e=>(r.red=qs(n.red,s.red,e),r.green=qs(n.green,s.green,e),r.blue=qs(n.blue,s.blue,e),r.alpha=Hs(n.alpha,s.alpha,e),_s.transform(r))};const Js={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Qn},Qs={regex:$t,countKey:"Colors",token:"${c}",parse:Gs.parse},er={regex:It,countKey:"Numbers",token:"${n}",parse:Lt.parse};function tr(e,{regex:t,countKey:n,token:s,parse:r}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,s),e.values.push(...o.map(r)))}function nr(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tr(n,Js),tr(n,Qs),tr(n,er),n}function sr(e){return nr(e).values}function rr(e){const{values:t,numColors:n,numVars:s,tokenised:r}=nr(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=r<s?t.replace(Js.token,e[r]):r<s+n?t.replace(Qs.token,Gs.transform(e[r])):t.replace(er.token,Ot(e[r]));return t}}const or=e=>"number"==typeof e?0:e;const ir={test:function(e){var t,n;return isNaN(e)&&_t(e)&&((null===(t=e.match(It))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($t))||void 0===n?void 0:n.length)||0)>0},parse:sr,createTransformer:rr,getAnimatableNone:function(e){const t=sr(e);return rr(e)(t.map(or))}},ar=(e,t)=>n=>`${n>0?t:e}`;function lr(e,t){return"number"==typeof e?n=>Hs(e,t,n):Gs.test(e)?Zs(e,t):e.startsWith("var(")?ar(e,t):dr(e,t)}const cr=(e,t)=>{const n=[...e],s=n.length,r=e.map((e,n)=>lr(e,t[n]));return e=>{for(let t=0;t<s;t++)n[t]=r[t](e);return n}},ur=(e,t)=>{const n={...e,...t},s={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(s[r]=lr(e[r],t[r]));return e=>{for(const t in s)n[t]=s[t](e);return n}},dr=(e,t)=>{const n=ir.createTransformer(t),s=nr(e),r=nr(t);return s.numVars===r.numVars&&s.numColors===r.numColors&&s.numNumbers>=r.numNumbers?Ln(cr(s.values,r.values),n):(ds(!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.`),ar(e,t))},hr=(e,t,n)=>{const s=t-e;return 0===s?1:(n-e)/s},mr=(e,t)=>n=>Hs(e,t,n);function pr(e,t,n){const s=[],r=n||("number"==typeof(o=e[0])?mr:"string"==typeof o?Gs.test(o)?Zs:dr:Array.isArray(o)?cr:"object"==typeof o?ur:mr);var o;const i=e.length-1;for(let n=0;n<i;n++){let o=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Qn:t;o=Ln(e,o)}s.push(o)}return s}function fr(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const o=e.length;if(hs(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=pr(t,s,r),a=i.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const s=hr(e[n],e[n+1],t);return i[n](s)};return n?t=>l(Rt(e[0],e[o-1],t)):l}function gr(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=hr(0,t,s);e.push(Hs(n,1,r))}}(t,e.length-1),t}function vr({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(s)?s.map(Os):Os(s),o={done:!1,value:t[0]},i=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:gr(t),e),a=fr(i,t,{ease:Array.isArray(r)?r:(l=t,c=r,l.map(()=>c||Ss).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function xr(e,t){return t?e*(1e3/t):0}function yr(e,t,n){const s=Math.max(t-5,0);return xr(n-e(s),t-s)}const br=.001;function wr({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let r,o;ds(e<=ms(10),"Spring duration must be 10 seconds or less");let i=1-t;i=Rt(.05,1,i),e=Rt(.01,10,ps(e)),i<1?(r=t=>{const s=t*i,r=s*e,o=s-n,a=kr(t,i),l=Math.exp(-r);return br-o/a*l},o=t=>{const s=t*i*e,o=s*n+n,a=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-s),c=kr(Math.pow(t,2),i);return(-r(t)+br>0?-1:1)*((o-a)*l)/c}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let s=n;for(let n=1;n<jr;n++)s-=e(s)/t(s);return s}(r,o,5/e);if(e=ms(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*s;return{stiffness:t,damping:2*i*Math.sqrt(s*t),duration:e}}}const jr=12;function kr(e,t){return e*Math.sqrt(1-t*t)}const Nr=["duration","bounce"],Cr=["stiffness","damping","mass"];function Er(e,t){return t.some(t=>void 0!==e[t])}function Pr({keyframes:e,restDelta:t,restSpeed:n,...s}){const r=e[0],o=e[e.length-1],i={done:!1,value:r},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Er(e,Cr)&&Er(e,Nr)){const n=wr(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(s),m=u?-ps(u):0,p=l/(2*Math.sqrt(a*c)),f=o-r,g=ps(Math.sqrt(a/c)),v=Math.abs(f)<5;let x;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=kr(g,p);x=t=>{const n=Math.exp(-p*g*t);return o-n*((m+p*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===p)x=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(p*p-1);x=t=>{const n=Math.exp(-p*g*t),s=Math.min(e*t,300);return o-n*((m+p*g*f)*Math.sinh(s)+e*f*Math.cosh(s))/e}}return{calculatedDuration:h&&d||null,next:e=>{const s=x(e);if(h)i.done=e>=d;else{let r=m;0!==e&&(r=p<1?yr(x,e,s):0);const a=Math.abs(r)<=n,l=Math.abs(o-s)<=t;i.done=a&&l}return i.value=i.done?o:s,i}}}function Sr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const f=d+p,g=void 0===i?f:i(f);g!==f&&(p=g-d);const v=e=>-p*Math.exp(-e/s),x=e=>g+v(e),y=e=>{const t=v(e),n=x(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let b,w;const j=e=>{var t;(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(b=e,w=Pr({keyframes:[h.value,m(h.value)],velocity:yr(x,e,h.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,y(e),j(e)),void 0!==b&&e>b?w.next(e-b):(!t&&y(e),h)}}}const Tr=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Xn.update(t,!0),stop:()=>Kn(t),now:()=>_n.isProcessing?_n.timestamp:performance.now()}};function Ar(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const Mr={decay:Sr,inertia:Sr,tween:vr,keyframes:vr,spring:Pr};function Dr({autoplay:e=!0,delay:t=0,driver:n=Tr,keyframes:s,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...h}){let m,p,f=1,g=!1;const v=()=>{m&&m(),p=new Promise(e=>{m=e})};let x;v();const y=Mr[r]||vr;let b;y!==vr&&"number"!=typeof s[0]&&(b=fr([0,100],s,{clamp:!1}),s=[0,100]);const w=y({...h,keyframes:s});let j;"mirror"===a&&(j=y({...h,keyframes:[...s].reverse(),velocity:-(h.velocity||0)}));let k="idle",N=null,C=null,E=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=Ar(w));const{calculatedDuration:P}=w;let S=1/0,T=1/0;null!==P&&(S=P+i,T=S*(o+1)-i);let A=0;const M=e=>{if(null===C)return;f>0&&(C=Math.min(C,e)),A=null!==N?N:(e-C)*f;const n=A-t,r=n<0;A=Math.max(n,0),"finished"===k&&null===N&&(A=T);let l=A,c=w;if(o){const e=A/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const s=Boolean(t%2);s&&("reverse"===a?(n=1-n,i&&(n-=i/S)):"mirror"===a&&(c=j));let r=Rt(0,1,n);A>T&&(r="reverse"===a&&s?1:0),l=r*S}const u=r?{done:!1,value:s[0]}:c.next(l);b&&(u.value=b(u.value));let{done:h}=u;r||null===P||(h=A>=T);const m=null===N&&("finished"===k||"running"===k&&h||f<0&&A<=0);return d&&d(u.value),m&&R(),u},D=()=>{x&&x.stop(),x=void 0},V=()=>{k="idle",D(),v(),C=E=null},R=()=>{k="finished",u&&u(),D(),v()},L=()=>{if(g)return;x||(x=n(M));const e=x.now();l&&l(),null!==N?C=e-N:C&&"finished"!==k||(C=e),E=C,N=null,k="running",x.start()};e&&L();const B={then:(e,t)=>p.then(e,t),get time(){return ps(A)},set time(e){e=ms(e),A=e,null===N&&x&&0!==f?C=x.now()-e/f:N=e},get duration(){const e=null===w.calculatedDuration?Ar(w):w.calculatedDuration;return ps(e)},get speed(){return f},set speed(e){e!==f&&x&&(f=e,B.time=ps(A))},get state(){return k},play:L,pause:()=>{k="paused",N=A},stop:()=>{g=!0,"idle"!==k&&(k="idle",c&&c(),V())},cancel:()=>{null!==E&&M(E),V()},complete:()=>{k="finished"},sample:e=>(C=0,M(e))};return B}const Vr=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Rr(e,t,{onUpdate:n,onComplete:s,...r}){if(!(ks.waapi()&&Vr.has(t)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let o,i,a=!1;const l=()=>{i=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:h}=r;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!vs(t.ease))(t,r)){const e=Dr({...r,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let s=0;for(;!t.done&&s<2e4;)t=e.sample(s),n.push(t.value),s+=10;h=void 0,c=n,u=s-10,d="linear"}const m=function(e,t,n,{delay:s=0,duration:r,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=bs(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(e.owner.current,t,c,{...r,duration:u,ease:d,times:h}),p=()=>m.cancel(),f=()=>{Xn.update(p),o(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,r)),s&&s(),f()},{then:(e,t)=>i.then(e,t),get time(){return ps(m.currentTime||0)},set time(e){m.currentTime=ms(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return ps(u)},play:()=>{a||(m.play(),Kn(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Dr({...r,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Lr={type:"spring",stiffness:500,damping:25,restSpeed:10},Br={type:"keyframes",duration:.8},Fr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Or=(e,{keyframes:t})=>t.length>2?Br:Ct.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Lr:Fr,Ir=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ir.test(t)&&"0"!==t||t.startsWith("url("))),$r=new Set(["brightness","contrast","saturate","opacity"]);function zr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[s]=n.match(It)||[];if(!s)return e;const r=n.replace(s,"");let o=$r.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+r+")"}const _r=/([a-z-]*)\(.*?\)/g,Ur={...ir,getAnimatableNone:e=>{const t=e.match(_r);return t?t.map(zr).join(" "):e}},Wr={...Zt,color:Gs,backgroundColor:Gs,outlineColor:Gs,fill:Gs,stroke:Gs,borderColor:Gs,borderTopColor:Gs,borderRightColor:Gs,borderBottomColor:Gs,borderLeftColor:Gs,filter:Ur,WebkitFilter:Ur},Gr=e=>Wr[e];function Hr(e,t){let n=Gr(e);return n!==Ur&&(n=ir),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yr=e=>/^0[^.\s]+$/.test(e);function qr(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Yr(e):void 0}function Xr(e,t){return e[t]||e.default||e}const Kr=(e,t,n,s={})=>r=>{const o=Xr(s,e)||{},i=o.delay||s.delay||0;let{elapsed:a=0}=s;a-=ms(i);const l=function(e,t,n,s){const r=Ir(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const i=void 0!==s.from?s.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?i:o[e-1]),qr(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(r&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=Hr(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=Ir(e,c),h=Ir(e,u);ds(d===h,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,...Or(e,m)}),m.duration&&(m.duration=ms(m.duration)),m.repeatDelay&&(m.repeatDelay=ms(m.repeatDelay)),!d||!h||fs||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:s}){const r=()=>(n&&n(e[e.length-1]),s&&s(),{time:0,speed:1,duration:0,play:Qn,pause:Qn,stop:Qn,then:e=>(e(),Promise.resolve()),cancel:Qn,complete:Qn});return t?Dr({keyframes:[0,1],duration:0,delay:t,onComplete:r}):r()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Rr(t,e,m);if(n)return n}return Dr(m)};function Zr(e){return Boolean(Pt(e)&&e.add)}const Jr=e=>/^\-?\d*\.?\d+$/.test(e);function Qr(e,t){-1===e.indexOf(t)&&e.push(t)}function eo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class to{constructor(){this.subscriptions=[]}add(e){return Qr(this.subscriptions,e),()=>eo(this.subscriptions,e)}notify(e,t,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,n);else for(let r=0;r<s;r++){const s=this.subscriptions[r];s&&s(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const no=new Set;function so(e,t,n){e||no.has(t)||(console.warn(t),no.add(t))}class ro{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:s}=_n;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,Xn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Xn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&so(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new to);const n=this.events[e].add(t);return"change"===e?()=>{n(),Xn.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function oo(e,t){return new ro(e,t)}const io=e=>t=>t.test(e),ao=[Lt,Ht,Gt,Wt,qt,Yt,{test:e=>"auto"===e,parse:e=>e}],lo=e=>ao.find(io(e)),co=[...ao,Gs,ir],uo=e=>co.find(io(e));function ho(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oo(n))}function mo(e,t){if(!t)return;return(t[e]||t.default||t).from}function po({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,s}function fo(e,t,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");s&&(o=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const t in a){const s=e.getValue(t),r=a[t];if(!s||void 0===r||u&&po(u,t))continue;const i={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!s.hasAnimated){const n=e.getProps()[us];n&&(i.elapsed=window.HandoffAppearAnimations(n,t,s,Xn))}s.start(Kr(t,s,r,e.shouldReduceMotion&&Ct.has(t)?{type:!1}:i));const d=s.animation;Zr(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return i&&Promise.all(c).then(()=>{i&&function(e,t){const n=cs(e,t);let{transitionEnd:s={},transition:r={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const t in o)ho(e,t,Nn(o[t]))}(e,i)}),c}function go(e,t,n={}){const s=cs(e,t,n.custom);let{transition:r=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(fo(e,s,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=r;return function(e,t,n=0,s=0,r=1,o){const i=[],a=(e.variantChildren.size-1)*s,l=1===r?(e=0)=>e*s:(e=0)=>a-e*s;return Array.from(e.variantChildren).sort(vo).forEach((e,s)=>{e.notify("AnimationStart",t),i.push(go(e,t,{...o,delay:n+l(s)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,o+s,i,a,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[e,t]="beforeChildren"===a?[o,i]:[i,o];return e().then(()=>t())}return Promise.all([o(),i(n.delay)])}function vo(e,t){return e.sortNodePosition(t)}const xo=[...at].reverse(),yo=at.length;function bo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map(t=>go(e,t,n));s=Promise.all(r)}else if("string"==typeof t)s=go(e,t,n);else{const r="function"==typeof t?cs(e,t,n.custom):t;s=Promise.all(fo(e,r,n))}return s.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function wo(e){let t=bo(e);const n={animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()};let s=!0;const r=(t,n)=>{const s=cs(e,n);if(s){const{transition:e,transitionEnd:n,...r}=s;t={...t,...r,...n}}return t};function o(o,i){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},h=1/0;for(let t=0;t<yo;t++){const m=xo[t],p=n[m],f=void 0!==a[m]?a[m]:l[m],g=ot(f),v=m===i?p.isActive:null;!1===v&&(h=t);let x=f===l[m]&&f!==a[m]&&g;if(x&&s&&e.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...d},!p.isActive&&null===v||!f&&!p.prevProp||it(f)||"boolean"==typeof f)continue;const y=jo(p.prevProp,f);let b=y||m===i&&p.isActive&&!x&&g||t>h&&g;const w=Array.isArray(f)?f:[f];let j=w.reduce(r,{});!1===v&&(j={});const{prevResolvedValues:k={}}=p,N={...k,...j},C=e=>{b=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in N){const t=j[e],n=k[e];d.hasOwnProperty(e)||(t!==n?kn(t)&&kn(n)?!ls(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=f,p.prevResolvedValues=j,p.isActive&&(d={...d,...j}),s&&e.blockInitialAnimation&&(b=!1),b&&!x&&c.push(...w.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const s=e.getBaseTarget(n);void 0!==s&&(t[n]=s)}),c.push({animation:t})}let m=Boolean(c.length);return s&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),s=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,s,r){var i;if(n[t].isActive===s)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,s)}),n[t].isActive=s;const a=o(r,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function jo(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ls(t,e)}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let No=0;const Co={animation:{Feature:class extends zn{constructor(e){super(e),e.animationState||(e.animationState=wo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),it(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends zn{constructor(){super(...arguments),this.id=No++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const r=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Eo=(e,t)=>Math.abs(e-t);class Po{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ao(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Eo(e.x,t.x),s=Eo(e.y,t.y);return Math.sqrt(n**2+s**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:s}=e,{timestamp:r}=_n;this.history.push({...s,timestamp:r});const{onStart:o,onMove:i}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=So(t,this.transformPagePoint),Xn.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:s}=this.handlers,r=Ao("pointercancel"===e.type?this.lastMoveEventInfo:So(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,r),s&&s(e,r)},!Mn(e))return;this.handlers=t,this.transformPagePoint=n;const s=So(Dn(e),this.transformPagePoint),{point:r}=s,{timestamp:o}=_n;this.history=[{...r,timestamp:o}];const{onSessionStart:i}=t;i&&i(e,Ao(s,this.history)),this.removeListeners=Ln(Vn(window,"pointermove",this.handlePointerMove),Vn(window,"pointerup",this.handlePointerUp),Vn(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Kn(this.updatePoint)}}function So(e,t){return t?{point:t(e.point)}:e}function To(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ao({point:e},t){return{point:e,delta:To(e,Do(t)),offset:To(e,Mo(t)),velocity:Vo(t,.1)}}function Mo(e){return e[0]}function Do(e){return e[e.length-1]}function Vo(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=Do(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>ms(t)));)n--;if(!s)return{x:0,y:0};const o=ps(r.timestamp-s.timestamp);if(0===o)return{x:0,y:0};const i={x:(r.x-s.x)/o,y:(r.y-s.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ro(e){return e.max-e.min}function Lo(e,t=0,n=.01){return Math.abs(e-t)<=n}function Bo(e,t,n,s=.5){e.origin=s,e.originPoint=Hs(t.min,t.max,e.origin),e.scale=Ro(n)/Ro(t),(Lo(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Hs(n.min,n.max,e.origin)-e.originPoint,(Lo(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Fo(e,t,n,s){Bo(e.x,t.x,n.x,s?s.originX:void 0),Bo(e.y,t.y,n.y,s?s.originY:void 0)}function Oo(e,t,n){e.min=n.min+t.min,e.max=e.min+Ro(t)}function Io(e,t,n){e.min=t.min-n.min,e.max=e.min+Ro(t)}function $o(e,t,n){Io(e.x,t.x,n.x),Io(e.y,t.y,n.y)}function zo(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function _o(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}const Uo=.35;function Wo(e,t,n){return{min:Go(e,t),max:Go(e,n)}}function Go(e,t){return"number"==typeof e?e:e[t]||0}const Ho=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Yo(e){return[e("x"),e("y")]}function qo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Xo(e){return void 0===e||1===e}function Ko({scale:e,scaleX:t,scaleY:n}){return!Xo(e)||!Xo(t)||!Xo(n)}function Zo(e){return Ko(e)||Jo(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Jo(e){return Qo(e.x)||Qo(e.y)}function Qo(e){return e&&"0%"!==e}function ei(e,t,n){return n+t*(e-n)}function ti(e,t,n,s,r){return void 0!==r&&(e=ei(e,r,s)),ei(e,n,s)+t}function ni(e,t=0,n=1,s,r){e.min=ti(e.min,t,n,s,r),e.max=ti(e.max,t,n,s,r)}function si(e,{x:t,y:n}){ni(e.x,t.translate,t.scale,t.originPoint),ni(e.y,n.translate,n.scale,n.originPoint)}function ri(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function oi(e,t){e.min=e.min+t,e.max=e.max+t}function ii(e,t,[n,s,r]){const o=void 0!==t[r]?t[r]:.5,i=Hs(e.min,e.max,o);ni(e,t[n],t[s],i,t.scale)}const ai=["x","scaleX","originX"],li=["y","scaleY","originY"];function ci(e,t){ii(e.x,t,ai),ii(e.y,t,li)}function ui(e,t){return qo(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}const di=new WeakMap;class hi{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Po(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Dn(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:s,onDragStart:r}=this.getProps();if(n&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=In(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yo(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Gt.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const s=n.layout.layoutBox[e];if(s){t=Ro(s)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),r&&Xn.update(()=>r(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:s,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:i}=t;if(s&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=t;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&Xn.update(()=>r(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:s}=this.getProps();if(!n||!mi(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},s){return void 0!==t&&e<t?e=s?Hs(t,e,s.min):Math.max(e,t):void 0!==n&&e>n&&(e=s?Hs(n,e,s.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&rt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:s,right:r}){return{x:zo(e.x,n,r),y:zo(e.y,t,s)}}(n.layoutBox,e),this.elastic=function(e=Uo){return!1===e?e=0:!0===e&&(e=Uo),{x:Wo(e,"left","right"),y:Wo(e,"top","bottom")}}(t),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Yo(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!rt(e))return!1;const n=e.current;hs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=function(e,t,n){const s=ui(e,n),{scroll:r}=t;return r&&(oi(s.x,r.offset.x),oi(s.y,r.offset.y)),s}(n,s.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:_o(e.x,t.x),y:_o(e.y,t.y)}}(s.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=qo(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},l=Yo(i=>{if(!mi(i,t,this.currentDirection))return;let l=a&&a[i]||{};o&&(l={min:0,max:0});const c=s?200:1e6,u=s?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(i,d)});return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Kr(e,n,0,t))}stopAnimation(){Yo(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[t];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Yo(t=>{const{drag:n}=this.getProps();if(!mi(t,n,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){const{min:n,max:o}=s.layout.layoutBox[t];r.set(e[t]-Hs(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!rt(t)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Yo(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();s[e]=function(e,t){let n=.5;const s=Ro(e),r=Ro(t);return r>s?n=hr(t.min,t.max-s,e.min):s>r&&(n=hr(e.min,e.max-r,t.min)),Rt(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Yo(t=>{if(!mi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(Hs(r,o,s[t]))})}addListeners(){if(!this.visualElement.current)return;di.set(this.visualElement,this);const e=Vn(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();rt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const r=An(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Yo(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),s(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=Uo,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:i}}}function mi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const pi=e=>(t,n)=>{e&&Xn.update(()=>e(t,n))};const fi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vi={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ht.test(e))return e;e=parseFloat(e)}return`${gi(e,t.target.x)}% ${gi(e,t.target.y)}%`}},xi={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=ir.parse(e);if(r.length>5)return s;const o=ir.createTransformer(e),i="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+i]/=a,r[1+i]/=l;const c=Hs(a,l,.5);return"number"==typeof r[2+i]&&(r[2+i]/=c),"number"==typeof r[3+i]&&(r[3+i]/=c),o(r)}};class yi extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:s}=this.props,{projection:r}=e;var o;o=wi,Object.assign(kt,o),r&&(t.group&&t.group.add(r),n&&n.register&&s&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),fi.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:s,isPresent:r}=this.props,o=n.projection;return o?(o.isPresent=r,s||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||Xn.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function bi(e){const[n,s]=function(){const e=t.useContext(et);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=e,o=t.useId();return t.useEffect(()=>r(o),[]),!n&&s?[!1,()=>s&&s(o)]:[!0]}(),r=t.useContext(ft);return t.createElement(yi,{...e,layoutGroup:r,switchLayoutGroup:t.useContext(gt),isPresent:n,safeToRemove:s})}const wi={borderRadius:{...vi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vi,borderTopRightRadius:vi,borderBottomLeftRadius:vi,borderBottomRightRadius:vi,boxShadow:xi},ji=["TopLeft","TopRight","BottomLeft","BottomRight"],ki=ji.length,Ni=e=>"string"==typeof e?parseFloat(e):e,Ci=e=>"number"==typeof e||Ht.test(e);function Ei(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Pi=Ti(0,.5,Ds),Si=Ti(.5,.95,Qn);function Ti(e,t,n){return s=>s<e?0:s>t?1:n(hr(e,t,s))}function Ai(e,t){e.min=t.min,e.max=t.max}function Mi(e,t){Ai(e.x,t.x),Ai(e.y,t.y)}function Di(e,t,n,s,r){return e=ei(e-=t,1/n,s),void 0!==r&&(e=ei(e,1/r,s)),e}function Vi(e,t,[n,s,r],o,i){!function(e,t=0,n=1,s=.5,r,o=e,i=e){Gt.test(t)&&(t=parseFloat(t),t=Hs(i.min,i.max,t/100)-i.min);if("number"!=typeof t)return;let a=Hs(o.min,o.max,s);e===o&&(a-=t),e.min=Di(e.min,t,n,a,r),e.max=Di(e.max,t,n,a,r)}(e,t[n],t[s],t[r],t.scale,o,i)}const Ri=["x","scaleX","originX"],Li=["y","scaleY","originY"];function Bi(e,t,n,s){Vi(e.x,t,Ri,n?n.x:void 0,s?s.x:void 0),Vi(e.y,t,Li,n?n.y:void 0,s?s.y:void 0)}function Fi(e){return 0===e.translate&&1===e.scale}function Oi(e){return Fi(e.x)&&Fi(e.y)}function Ii(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function $i(e){return Ro(e.x)/Ro(e.y)}class zi{constructor(){this.members=[]}add(e){Qr(this.members,e),e.scheduleRender()}remove(e){if(eo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;!1===s&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _i(e,t,n){let s="";const r=e.x.translate/t.x,o=e.y.translate/t.y;if((r||o)&&(s=`translate3d(${r}px, ${o}px, 0) `),1===t.x&&1===t.y||(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:r}=n;e&&(s+=`rotate(${e}deg) `),t&&(s+=`rotateX(${t}deg) `),r&&(s+=`rotateY(${r}deg) `)}const i=e.x.scale*t.x,a=e.y.scale*t.y;return 1===i&&1===a||(s+=`scale(${i}, ${a})`),s||"none"}const Ui=(e,t)=>e.depth-t.depth;class Wi{constructor(){this.children=[],this.isDirty=!1}add(e){Qr(this.children,e),this.isDirty=!0}remove(e){eo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ui),this.isDirty=!1,this.children.forEach(e)}}const Gi=["","X","Y","Z"];let Hi=0;const Yi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Hi++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Yi.totalNodes=Yi.resolvedTargetDeltas=Yi.recalculatedProjection=0,this.nodes.forEach(Zi),this.nodes.forEach(ra),this.nodes.forEach(oa),this.nodes.forEach(Ji),e=Yi,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wi)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new to),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var s;this.isSVG=(s=t)instanceof SVGElement&&"svg"!==s.tagName,this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||r)&&(this.isLayoutDirty=!0),e){let n;const s=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),s=({timestamp:r})=>{const o=r-n;o>=t&&(Kn(s),e(o-t))};return Xn.read(s,!0),()=>Kn(s)}(s,250),fi.hasAnimatedSinceResize&&(fi.hasAnimatedSinceResize=!1,this.nodes.forEach(sa))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||i.getDefaultTransition()||da,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Ii(this.targetLayout,s)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Xr(r,"layout"),onPlay:o,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||sa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Kn(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(ia),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ea);this.isUpdating||this.nodes.forEach(ta),this.isUpdating=!1,this.nodes.forEach(na),this.nodes.forEach(Xi),this.nodes.forEach(Ki),this.clearAllSnapshots();const e=performance.now();_n.delta=Rt(0,1e3/60,e-_n.timestamp),_n.timestamp=e,_n.isProcessing=!0,Hn.update.process(_n),Hn.preRender.process(_n),Hn.render.process(_n),_n.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Qi),this.sharedNodes.forEach(aa)}scheduleUpdateProjection(){Xn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Xn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Oi(this.projectionDelta),n=this.getTransformTemplate(),s=n?n(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;e&&(t||Zo(this.latestValues)||o)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var s;return e&&(n=this.removeTransform(n)),ha((s=n).x),ha(s.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(oi(t.x,n.offset.x),oi(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Mi(t,e);for(let n=0;n<this.path.length;n++){const s=this.path[n],{scroll:r,options:o}=s;if(s!==this.root&&r&&o.layoutScroll){if(r.isRoot){Mi(t,e);const{scroll:n}=this.root;n&&(oi(t.x,-n.offset.x),oi(t.y,-n.offset.y))}oi(t.x,r.offset.x),oi(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Mi(n,e);for(let e=0;e<this.path.length;e++){const s=this.path[e];!t&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ci(n,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),Zo(s.latestValues)&&ci(n,s.latestValues)}return Zo(this.latestValues)&&ci(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Mi(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Zo(n.latestValues))continue;Ko(n.latestValues)&&n.updateSnapshot();const s=Ho();Mi(s,n.measurePageBox()),Bi(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,s)}return Zo(this.latestValues)&&Bi(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!==_n.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const s=Boolean(this.resumingFrom)||this!==n;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=_n.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},$o(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Mi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,l=this.relativeParent.target,Oo(i.x,a.x,l.x),Oo(i.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Mi(this.target,this.layout.layoutBox),si(this.target,this.targetDelta)):Mi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},$o(this.relativeTargetOrigin,this.target,e.target),Mi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ko(this.parent.latestValues)&&!Jo(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let s=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(s=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===_n.timestamp&&(s=!1),s)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;Mi(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,s=!1){const r=n.length;if(!r)return;let o,i;t.x=t.y=1;for(let a=0;a<r;a++){o=n[a],i=o.projectionDelta;const r=o.instance;r&&r.style&&"contents"===r.style.display||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,si(e,i)),s&&Zo(o.latestValues)&&ci(e,o.latestValues))}t.x=ri(t.x),t.y=ri(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;Fo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=_i(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Yi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(ua));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,h,m,p;la(o.x,e.x,n),la(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,h=this.relativeTargetOrigin,m=i,p=n,ca(l.x,h.x,m.x,p),ca(l.y,h.y,m.y,p),d&&Ii(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Mi(d,this.relativeTarget)),a&&(this.animationValues=r,function(e,t,n,s,r,o){r?(e.opacity=Hs(0,void 0!==n.opacity?n.opacity:1,Pi(s)),e.opacityExit=Hs(void 0!==t.opacity?t.opacity:1,0,Si(s))):o&&(e.opacity=Hs(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,s));for(let r=0;r<ki;r++){const o=`border${ji[r]}Radius`;let i=Ei(t,o),a=Ei(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||Ci(i)===Ci(a)?(e[o]=Math.max(Hs(Ni(i),Ni(a),s),0),(Gt.test(a)||Gt.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=Hs(t.rotate||0,n.rotate||0,s))}(r,s,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xn.update(()=>{fi.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const s=Pt(e)?e:oo(e);return s.start(Kr("",s,t,n)),s.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const 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(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:s,latestValues:r}=e;if(t&&n&&s){if(this!==e&&this.layout&&s&&ma(this.options.animationType,this.layout.layoutBox,s.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ro(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const s=Ro(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+s}Mi(t,n),ci(t,r),Fo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new zi);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const s=this.getStack();s&&s.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const s={};for(let t=0;t<Gi.length;t++){const r="rotate"+Gi[t];n[r]&&(s[r]=n[r],e.setStaticValue(r,0))}e.render();for(const t in s)e.setStaticValue(t,s[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";const r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Cn(e.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Cn(e.pointerEvents)||""),this.hasProjected&&!Zo(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const i=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=_i(this.projectionDeltaWithTransform,this.treeScale,i),r&&(s.transform=r(i,s.transform));const{x:a,y:l}=this.projectionDelta;s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:s.opacity=o===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in kt){if(void 0===i[e])continue;const{correct:t,applyTo:n}=kt[e],r="none"===s.transform?i[e]:t(i[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)s[n[t]]=r}else s[e]=r}return this.options.layoutId&&(s.pointerEvents=o===this?Cn(e.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ea),this.root.sharedNodes.clear()}}}function Xi(e){e.updateLayout()}function Ki(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:s}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?Yo(e=>{const s=o?n.measuredBox[e]:n.layoutBox[e],r=Ro(s);s.min=t[e].min,s.max=s.min+r}):ma(r,n.layoutBox,t)&&Yo(s=>{const r=o?n.measuredBox[s]:n.layoutBox[s],i=Ro(t[s]);r.max=r.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+i)});const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Fo(i,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Fo(a,e.applyTransform(s,!0),n.measuredBox):Fo(a,t,n.layoutBox);const l=!Oi(i);let c=!1;if(!e.resumeFrom){const s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:r,layout:o}=s;if(r&&o){const i={x:{min:0,max:0},y:{min:0,max:0}};$o(i,n.layoutBox,r.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};$o(a,t,o.layoutBox),Ii(i,a)||(c=!0),s.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=i,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zi(e){Yi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ji(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Qi(e){e.clearSnapshot()}function ea(e){e.clearMeasurements()}function ta(e){e.isLayoutDirty=!1}function na(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ra(e){e.resolveTargetDelta()}function oa(e){e.calcProjection()}function ia(e){e.resetRotation()}function aa(e){e.removeLeadSnapshot()}function la(e,t,n){e.translate=Hs(t.translate,0,n),e.scale=Hs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ca(e,t,n,s){e.min=Hs(t.min,n.min,s),e.max=Hs(t.max,n.max,s)}function ua(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const da={duration:.45,ease:[.4,0,.1,1]};function ha(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ma(e,t,n){return"position"===e||"preserve-aspect"===e&&!Lo($i(t),$i(n),.2)}const pa=qi({attachResizeListener:(e,t)=>An(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fa={current:void 0},ga=qi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fa.current){const e=new pa({});e.mount(window),e.setOptions({layoutScroll:!0}),fa.current=e}return fa.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),va={pan:{Feature:class extends zn{constructor(){super(...arguments),this.removePointerDownListener=Qn}onPointerDown(e){this.session=new Po(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:pi(e),onStart:pi(t),onMove:n,onEnd:(e,t)=>{delete this.session,s&&Xn.update(()=>s(e,t))}}}mount(){this.removePointerDownListener=Vn(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 zn{constructor(e){super(e),this.removeGroupControls=Qn,this.removeListeners=Qn,this.controls=new hi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ga,MeasureLayout:bi}},xa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ya(e,t,n=1){hs(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,r]=function(e){const t=xa.exec(e);if(!t)return[,];const[,n,s]=t;return[n,s]}(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);return o?o.trim():Dt(r)?ya(r,t,n+1):r}const ba=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wa=e=>ba.has(e),ja=e=>e===Lt||e===Ht,ka=(e,t)=>parseFloat(e.split(", ")[t]),Na=(e,t)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/);if(r)return ka(r[1],t);{const t=s.match(/^matrix\((.+)\)$/);return t?ka(t[1],e):0}},Ca=new Set(["x","y","z"]),Ea=Nt.filter(e=>!Ca.has(e));const Pa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Na(4,13),y:Na(5,14)},Sa=(e,t,n={},s={})=>{t={...t},s={...s};const r=Object.keys(t).filter(wa);let o=[],i=!1;const a=[];if(r.forEach(r=>{const l=e.getValue(r);if(!e.hasValue(r))return;let c=n[r],u=lo(c);const d=t[r];let h;if(kn(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=lo(c);for(let n=t;n<e&&null!==d[n];n++)h?hs(lo(d[n])===h,"All keyframes must be of the same type"):(h=lo(d[n]),hs(h===u||ja(u)&&ja(h),"Keyframes must be of the same dimension as the current value"))}else h=lo(d);if(u!==h)if(ja(u)&&ja(h)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[r]=parseFloat(d):Array.isArray(d)&&h===Ht&&(t[r]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==h?void 0:h.transform)&&(0===c||0===d)?0===c?l.set(h.transform(c)):t[r]=u.transform(d):(i||(o=function(e){const t=[];return Ea.forEach(n=>{const s=e.getValue(n);void 0!==s&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),i=!0),a.push(r),s[r]=void 0!==s[r]?s[r]:t[r],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,r=((e,t,n)=>{const s=t.measureViewportBox(),r=t.current,o=getComputedStyle(r),{display:i}=o,a={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Pa[e](s,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const s=t.getValue(n);s&&s.jump(a[n]),e[n]=Pa[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),tt&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:s}}return{target:t,transitionEnd:s}};function Ta(e,t,n,s){return(e=>Object.keys(e).some(wa))(t)?Sa(e,t,n,s):{target:t,transitionEnd:s}}const Aa=(e,t,n,s)=>{const r=function(e,{...t},n){const s=e.current;if(!(s instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Dt(t))return;const n=ya(t,s);n&&e.set(n)});for(const e in t){const r=t[e];if(!Dt(r))continue;const o=ya(r,s);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=r))}return{target:t,transitionEnd:n}}(e,t,s);return Ta(e,t=r.target,n,s=r.transitionEnd)},Ma={current:null},Da={current:!1};const Va=new WeakMap,Ra=Object.keys(pt),La=Ra.length,Ba=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fa=lt.length;class Oa{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Xn.render(this.render,!1,!0);const{latestValues:i,renderState:a}=r;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=ct(t),this.isVariantNode=ut(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==i[e]&&Pt(t)&&(t.set(i[e],!1),Zr(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Va.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)),Da.current||function(){if(Da.current=!0,tt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ma.current=e.matches;e.addListener(t),t()}else Ma.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ma.current),"production"!==process.env.NODE_ENV&&so(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Va.delete(this.current),this.projection&&this.projection.unmount(),Kn(this.notifyUpdate),Kn(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Ct.has(e),s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Xn.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,s,r){let o,i;if("production"!==process.env.NODE_ENV&&s&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ds(!1,e):hs(!1,e)}for(let e=0;e<La;e++){const n=Ra[e],{isEnabled:s,Feature:r,ProjectionNode:a,MeasureLayout:l}=pt[n];a&&(o=a),s(t)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(i=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:s,dragConstraints:i,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(s)||i&&rt(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return i}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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<Ba.length;t++){const n=Ba[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=e["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(e,t,n){const{willChange:s}=t;for(const r in t){const o=t[r],i=n[r];if(Pt(o))e.addValue(r,o),Zr(s)&&s.add(r),"development"===process.env.NODE_ENV&&so("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Pt(i))e.addValue(r,oo(o,{owner:e})),Zr(s)&&s.remove(r);else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,oo(void 0!==t?t:o,{owner:e}))}}for(const s in n)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Fa;e++){const n=lt[e],s=this.props[n];(ot(s)||!1===s)&&(t[n]=s)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const 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 n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oo(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,s="string"==typeof n||"object"==typeof n?null===(t=jn(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==s)return s;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Pt(r)?void 0!==this.initialValues[e]&&void 0===s?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new to),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ia extends Oa{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:s},r){let o=function(e,t,n){const s={};for(const r in e){const e=mo(r,t);if(void 0!==e)s[r]=e;else{const e=n.getValue(r);e&&(s[r]=e.get())}}return s}(n,e||{},this);if(s&&(t&&(t=s(t)),n&&(n=s(n)),o&&(o=s(o))),r){!function(e,t,n){var s,r;const o=Object.keys(t).filter(t=>!e.hasValue(t)),i=o.length;if(i)for(let a=0;a<i;a++){const i=o[a],l=t[i];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(r=null!==(s=n[i])&&void 0!==s?s:e.readValue(i))&&void 0!==r?r:t[i]),null!=c&&("string"==typeof c&&(Jr(c)||Yr(c))?c=parseFloat(c):!uo(c)&&ir.test(l)&&(c=Hr(i,l)),e.addValue(i,oo(c,{owner:e})),void 0===n[i]&&(n[i]=c),null!==c&&e.setBaseTarget(i,c))}}(this,n,o);const e=Aa(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class $a extends Ia{readValueFromInstance(e,t){if(Ct.has(t)){const e=Gr(t);return e&&e.default||0}{const s=(n=e,window.getComputedStyle(n)),r=(Mt(t)?s.getPropertyValue(t):s[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ui(e,t)}build(e,t,n,s){Jt(e,t,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,t){return bn(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pt(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,s){vn(e,t,n,s)}}class za extends Ia{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ct.has(t)){const e=Gr(t);return e&&e.default||0}return t=xn.has(t)?t:gn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return wn(e,t)}build(e,t,n,s){dn(e,t,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,t,n,s){yn(e,t,0,s)}mount(e){this.isSVGTag=mn(e.tagName),super.mount(e)}}const _a=(e,t)=>jt(e)?new za(t,{enableHardwareAcceleration:!1}):new $a(t,{enableHardwareAcceleration:!0}),Ua={...Co,...as,...va,...{layout:{ProjectionNode:ga,MeasureLayout:bi}}},Wa=bt((e,t)=>function(e,{forwardMotionProps:t=!1},n,s){return{...jt(e)?Sn:Tn,preloadedFeatures:n,useRender:fn(t),createVisualElement:s,Component:e}}(e,t,Ua,_a));function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ga.apply(null,arguments)}function Ha(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(null==e||e(s),!1===n||!s.defaultPrevented)return null==t?void 0:t(s)}}function Ya(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function qa(...e){return t.useCallback(Ya(...e),e)}function Xa(...e){const n=e[0];if(1===e.length)return n;const s=()=>{const s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=s.reduce((t,{useScope:n,scopeName:s})=>({...t,...n(e)[`__scope${s}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return s.scopeName=n.scopeName,s}const Ka=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},Za=o["useId".toString()]||(()=>{});let Ja=0;function Qa(e){const[t,n]=o.useState(Za());return Ka(()=>{n(e=>null!=e?e:String(Ja++))},[e]),e||(t?`radix-${t}`:"")}function el(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function tl({prop:e,defaultProp:n,onChange:s=()=>{}}){const[r,o]=function({defaultProp:e,onChange:n}){const s=t.useState(e),[r]=s,o=t.useRef(r),i=el(n);return t.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),s}({defaultProp:n,onChange:s}),i=void 0!==e,a=i?e:r,l=el(s);return[a,t.useCallback(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[i,e,o,l])]}const nl=t.forwardRef((e,n)=>{const{children:s,...r}=e,o=t.Children.toArray(s),i=o.find(ol);if(i){const e=i.props.children,s=o.map(n=>n===i?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(sl,Ga({},r,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,s):null)}return t.createElement(sl,Ga({},r,{ref:n}),s)});nl.displayName="Slot";const sl=t.forwardRef((e,n)=>{const{children:s,...r}=e;return t.isValidElement(s)?t.cloneElement(s,{...il(r,s.props),ref:n?Ya(n,s.ref):s.ref}):t.Children.count(s)>1?t.Children.only(null):null});sl.displayName="SlotClone";const rl=({children:e})=>t.createElement(t.Fragment,null,e);function ol(e){return t.isValidElement(e)&&e.type===rl}function il(e,t){const n={...t};for(const s in t){const r=e[s],o=t[s];/^on[A-Z]/.test(s)?r&&o?n[s]=(...e)=>{o(...e),r(...e)}:r&&(n[s]=r):"style"===s?n[s]={...r,...o}:"className"===s&&(n[s]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}const al=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const s=t.forwardRef((e,s)=>{const{asChild:r,...o}=e,i=r?nl:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(i,Ga({},o,{ref:s}))});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});const ll="dismissableLayer.update",cl="dismissableLayer.pointerDownOutside",ul="dismissableLayer.focusOutside";let dl;const hl=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ml=t.forwardRef((e,n)=>{var s;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(hl),[h,m]=t.useState(null),p=null!==(s=null==h?void 0:h.ownerDocument)&&void 0!==s?s:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=qa(n,e=>m(e)),v=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),b=h?v.indexOf(h):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=y,k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=el(e),r=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!r.current){const t={originalEvent:e};function i(){fl(cl,s,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=i,n.addEventListener("click",o.current,{once:!0})):i()}else n.removeEventListener("click",o.current);r.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));j&&!n&&(null==i||i(e),null==l||l(e),e.defaultPrevented||null==c||c())},p),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=el(e),r=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!r.current){fl(ul,s,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},p);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=el(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&s(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[s,n])}(e=>{b===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),t.useEffect(()=>{if(h)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(dl=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),pl(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=dl)}},[h,p,r,d]),t.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),pl())},[h,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(ll,e),()=>document.removeEventListener(ll,e)},[]),t.createElement(al.div,Ga({},u,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:Ha(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ha(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ha(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pl(){const e=new CustomEvent(ll);document.dispatchEvent(e)}function fl(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}const gl="focusScope.autoFocusOnMount",vl="focusScope.autoFocusOnUnmount",xl={bubbles:!1,cancelable:!0},yl=t.forwardRef((e,n)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=t.useState(null),u=el(o),d=el(i),h=t.useRef(null),m=qa(n,e=>c(e)),p=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(r){function e(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?h.current=t:kl(h.current,{select:!0})}function t(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||kl(h.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&kl(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const s=new MutationObserver(n);return l&&s.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),s.disconnect()}}},[r,l,p.paused]),t.useEffect(()=>{if(l){Nl.add(p);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(gl,xl);l.addEventListener(gl,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(kl(s,{select:t}),document.activeElement!==n)return}((e=bl(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&kl(l))}return()=>{l.removeEventListener(gl,u),setTimeout(()=>{const e=new CustomEvent(vl,xl);l.addEventListener(vl,d),l.dispatchEvent(e),e.defaultPrevented||kl(null!=t?t:document.body,{select:!0}),l.removeEventListener(vl,d),Nl.remove(p)},0)}}var e},[l,u,d,p]);const f=t.useCallback(e=>{if(!s&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,o]=function(e){const t=bl(e),n=wl(t,e),s=wl(t.reverse(),e);return[n,s]}(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),s&&kl(o,{select:!0})):(e.preventDefault(),s&&kl(r,{select:!0})):n===t&&e.preventDefault()}},[s,r,p.paused]);return t.createElement(al.div,Ga({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function bl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wl(e,t){for(const n of e)if(!jl(n,{upTo:t}))return n}function jl(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function kl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Nl=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Cl(e,t),e.unshift(t)},remove(t){var n;e=Cl(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Cl(e,t){const n=[...e],s=n.indexOf(t);return-1!==s&&n.splice(s,1),n}const El=t.forwardRef((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return o?s.createPortal(t.createElement(al.div,Ga({},i,{ref:n})),o):null});const Pl=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),i=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const s=n[e][t];return null!=s?s:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Sl(o.current);a.current="mounted"===c?e:"none"},[c]),Ka(()=>{const t=o.current,n=i.current;if(n!==e){const s=a.current,r=Sl(t);if(e)u("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&s!==r?"ANIMATION_OUT":"UNMOUNT")}i.current=e}},[e,u]),Ka(()=>{if(n){const e=e=>{const t=Sl(o.current).includes(e.animationName);e.target===n&&t&&s.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Sl(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=qa(o.ref,i.ref);return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:a}):null};function Sl(e){return(null==e?void 0:e.animationName)||"none"}Pl.displayName="Presence";let Tl=0;function Al(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ml=function(){return Ml=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ml.apply(this,arguments)};function Dl(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Vl="right-scroll-bar-position",Rl="width-before-scroll-bar";function Ll(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bl="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Fl=new WeakMap;function Ol(e,n){var s,r,o,i=(s=null,r=function(t){return e.forEach(function(e){return Ll(e,t)})},(o=t.useState(function(){return{value:s,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Bl(function(){var t=Fl.get(i);if(t){var n=new Set(t),s=new Set(e),r=i.current;n.forEach(function(e){s.has(e)||Ll(e,null)}),s.forEach(function(e){n.has(e)||Ll(e,r)})}Fl.set(i,e)},[e]),i}function Il(e){return e}var $l=function(e){var t=e.sideCar,n=Dl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return o.createElement(s,Ml({},n))};$l.isSideCarExport=!0;var zl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Il);var n=[],s=!1,r={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,s);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(s=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){s=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return r}(null);return t.options=Ml({async:!0,ssr:!1},e),t}(),_l=function(){},Ul=o.forwardRef(function(e,t){var n=o.useRef(null),s=o.useState({onScrollCapture:_l,onWheelCapture:_l,onTouchMoveCapture:_l}),r=s[0],i=s[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,v=e.as,x=void 0===v?"div":v,y=Dl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=m,w=Ol([n,t]),j=Ml(Ml({},y),r);return o.createElement(o.Fragment,null,d&&o.createElement(b,{sideCar:zl,removeScrollBar:u,shards:h,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?o.cloneElement(o.Children.only(l),Ml(Ml({},j),{ref:w})):o.createElement(x,Ml({},j,{className:c,ref:w}),l))});Ul.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ul.classNames={fullWidth:Rl,zeroRight:Vl};function Wl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Gl=function(){var e=0,t=null;return{add:function(n){var s,r;0==e&&(t=Wl())&&(r=n,(s=t).styleSheet?s.styleSheet.cssText=r:s.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hl=function(){var e,t=(e=Gl(),function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,s=e.dynamic;return t(n,s),null}},Yl={left:0,top:0,right:0,gap:0},ql=function(e){return parseInt(e||"",10)||0},Xl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Yl;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],s=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[ql(n),ql(s),ql(r)]}(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Kl=Hl(),Zl="data-scroll-locked",Jl=function(e,t,n,s){var r=e.left,o=e.top,i=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(s,";\n padding-right: ").concat(a,"px ").concat(s,";\n }\n body[").concat(Zl,"] {\n overflow: hidden ").concat(s,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(s,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(s,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Vl," {\n right: ").concat(a,"px ").concat(s,";\n }\n \n .").concat(Rl," {\n margin-right: ").concat(a,"px ").concat(s,";\n }\n \n .").concat(Vl," .").concat(Vl," {\n right: 0 ").concat(s,";\n }\n \n .").concat(Rl," .").concat(Rl," {\n margin-right: 0 ").concat(s,";\n }\n \n body[").concat(Zl,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Ql=function(){var e=parseInt(document.body.getAttribute(Zl)||"0",10);return isFinite(e)?e:0},ec=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=void 0===s?"margin":s;o.useEffect(function(){return document.body.setAttribute(Zl,(Ql()+1).toString()),function(){var e=Ql()-1;e<=0?document.body.removeAttribute(Zl):document.body.setAttribute(Zl,e.toString())}},[]);var i=o.useMemo(function(){return Xl(r)},[r]);return o.createElement(Kl,{styles:Jl(i,!t,r,n?"":"!important")})},tc=!1;if("undefined"!=typeof window)try{var nc=Object.defineProperty({},"passive",{get:function(){return tc=!0,!0}});window.addEventListener("test",nc,nc),window.removeEventListener("test",nc,nc)}catch(e){tc=!1}var sc=!!tc&&{passive:!1},rc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},oc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ic(e,n)){var s=ac(e,n);if(s[1]>s[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ic=function(e,t){return"v"===e?function(e){return rc(e,"overflowY")}(t):function(e){return rc(e,"overflowX")}(t)},ac=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cc=function(e){return[e.deltaX,e.deltaY]},uc=function(e){return e&&"current"in e?e.current:e},dc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},hc=0,mc=[];var pc,fc=(pc=function(e){var t=o.useRef([]),n=o.useRef([0,0]),s=o.useRef(),r=o.useState(hc++)[0],i=o.useState(function(){return Hl()})[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(uc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,o=lc(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-o[0],c="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=oc(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=oc(d,u)),!h)return!1;if(!s.current&&"changedTouches"in e&&(l||c)&&(s.current=r),!r)return!0;var m=s.current||r;return function(e,t,n,s){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=r*s,i=n.target,a=t.contains(i),l=!1,c=o>0,u=0,d=0;do{var h=ac(e,i),m=h[0],p=h[1]-h[2]-r*m;(m||p)&&ic(e,i)&&(u+=p,d+=m),i=i.parentNode}while(!a&&i!==document.body||a&&(t.contains(i)||t===i));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=o.useCallback(function(e){var n=e;if(mc.length&&mc[mc.length-1]===i){var s="deltaY"in n?cc(n):lc(n),r=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,r=s,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var o=(a.current.shards||[]).map(uc).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?l(n,o[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,s,r){var o={name:e,delta:n,target:s,should:r};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){n.current=lc(e),s.current=void 0},[]),h=o.useCallback(function(t){u(t.type,cc(t),t.target,l(t,e.lockRef.current))},[]),m=o.useCallback(function(t){u(t.type,lc(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return mc.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,sc),document.addEventListener("touchmove",c,sc),document.addEventListener("touchstart",d,sc),function(){mc=mc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,sc),document.removeEventListener("touchmove",c,sc),document.removeEventListener("touchstart",d,sc)}},[]);var p=e.removeScrollBar,f=e.inert;return o.createElement(o.Fragment,null,f?o.createElement(i,{styles:dc(r)}):null,p?o.createElement(ec,{gapMode:"margin"}):null)},zl.useMedium(pc),$l),gc=o.forwardRef(function(e,t){return o.createElement(Ul,Ml({},e,{ref:t,sideCar:fc}))});gc.classNames=Ul.classNames;var vc=new WeakMap,xc=new WeakMap,yc={},bc=0,wc=function(e){return e&&(e.host||wc(e.parentNode))},jc=function(e,t,n,s){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=wc(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);yc[n]||(yc[n]=new WeakMap);var o=yc[n],i=[],a=new Set,l=new Set(r),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(s),r=null!==t&&"false"!==t,l=(vc.get(e)||0)+1,c=(o.get(e)||0)+1;vc.set(e,l),o.set(e,c),i.push(e),1===l&&r&&xc.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),bc++,function(){i.forEach(function(e){var t=vc.get(e)-1,r=o.get(e)-1;vc.set(e,t),o.set(e,r),t||(xc.has(e)||e.removeAttribute(s),xc.delete(e)),r||e.removeAttribute(n)}),--bc||(vc=new WeakMap,vc=new WeakMap,xc=new WeakMap,yc={})}},kc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live], script"))),jc(s,r,n,"aria-hidden")):function(){return null}};const Nc="Dialog",[Cc,Ec]=function(e,n=[]){let s=[];const r=()=>{const n=s.map(e=>t.createContext(e));return function(s){const r=(null==s?void 0:s[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...s,[e]:r}}),[s,r])}};return r.scopeName=e,[function(n,r){const o=t.createContext(r),i=s.length;function a(n){const{scope:s,children:r,...a}=n,l=(null==s?void 0:s[e][i])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},r)}return s=[...s,r],a.displayName=n+"Provider",[a,function(s,a){const l=(null==a?void 0:a[e][i])||o,c=t.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${s}\` must be used within \`${n}\``)}]},Xa(r,...n)]}(Nc),[Pc,Sc]=Cc(Nc),Tc="DialogPortal",[Ac,Mc]=Cc(Tc,{forceMount:void 0}),Dc="DialogOverlay",Vc=t.forwardRef((e,n)=>{const s=Mc(Dc,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,i=Sc(Dc,e.__scopeDialog);return i.modal?t.createElement(Pl,{present:r||i.open},t.createElement(Rc,Ga({},o,{ref:n}))):null}),Rc=t.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=Sc(Dc,s);return t.createElement(gc,{as:nl,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(al.div,Ga({"data-state":Uc(o.open)},r,{ref:n,style:{pointerEvents:"auto",...r.style}})))}),Lc="DialogContent",Bc=t.forwardRef((e,n)=>{const s=Mc(Lc,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,i=Sc(Lc,e.__scopeDialog);return t.createElement(Pl,{present:r||i.open},i.modal?t.createElement(Fc,Ga({},o,{ref:n})):t.createElement(Oc,Ga({},o,{ref:n})))}),Fc=t.forwardRef((e,n)=>{const s=Sc(Lc,e.__scopeDialog),r=t.useRef(null),o=qa(n,s.contentRef,r);return t.useEffect(()=>{const e=r.current;if(e)return kc(e)},[]),t.createElement(Ic,Ga({},e,{ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ha(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=s.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Ha(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Ha(e.onFocusOutside,e=>e.preventDefault())}))}),Oc=t.forwardRef((e,n)=>{const s=Sc(Lc,e.__scopeDialog),r=t.useRef(!1),o=t.useRef(!1);return t.createElement(Ic,Ga({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(r.current||null===(i=s.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(i=s.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Ic=t.forwardRef((e,n)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sc(Lc,s),c=qa(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Al()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Al()),Tl++,()=>{1===Tl&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Tl--}},[]),t.createElement(t.Fragment,null,t.createElement(yl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},t.createElement(ml,Ga({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Uc(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),$c="DialogTitle",zc="DialogClose",_c=t.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=Sc(zc,s);return t.createElement(al.button,Ga({type:"button"},r,{ref:n,onClick:Ha(e.onClick,()=>o.onOpenChange(!1))}))});function Uc(e){return e?"open":"closed"}!function(e,n){const s=t.createContext(n);function r(e){const{children:n,...r}=e,o=t.useMemo(()=>r,Object.values(r));return t.createElement(s.Provider,{value:o},n)}r.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Lc,titleName:$c,docsSlug:"dialog"});const Wc=e=>{const{__scopeDialog:n,children:s,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=tl({prop:r,defaultProp:o,onChange:i});return t.createElement(Pc,{scope:n,triggerRef:l,contentRef:c,contentId:Qa(),titleId:Qa(),descriptionId:Qa(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},s)},Gc=e=>{const{__scopeDialog:n,forceMount:s,children:r,container:o}=e,i=Sc(Tc,n);return t.createElement(Ac,{scope:n,forceMount:s},t.Children.map(r,e=>t.createElement(Pl,{present:s||i.open},t.createElement(El,{asChild:!0,container:o},e))))},Hc=Vc,Yc=Bc,qc=_c;exports.Accordion=({items:t,title:n,background:s="white",enableHeading:r=!1,maxWidth:o=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[s]} component-container`,children:e.jsxs("div",{className:(o?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e.jsx("div",{children:e.jsx(Ne,{as:r?"h1":"h2",className:"heading1 text-left lg:text-center",children:n})}),e.jsx("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==t?void 0:t.map((t,n)=>e.jsx("div",{children:e.jsx(ke,{title:t.title,containerClassName:"border-0 border-b-[1px] rounded-none",openOnlyOnDesktop:!0,children:e.jsx(Ne,{children:t.description})})},`item-${n}`))})]})}),exports.Button=$e,exports.Callout=({title:t,items:n,enableHeading:s=!1,subtitle:r,color:o="dark",maxWidth:i=!0,maxCardsPerRow:a})=>{const l={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[a||4]||" lg:w-[calc(25%-1.125rem)]",c=1===n.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e.jsx("div",{className:"component-container",children:e.jsx("div",{className:`mx-5 mb-5 mt-12 ${i?"max-w-120 xl:mx-auto":""} ${"dark"==o?"text-text":"text-white"}`,children:e.jsxs("div",{className:"callout-container flex flex-col gap-8",children:[e.jsxs("div",{className:"title-holder",children:[t&&e.jsx(Ne,{as:s?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:t}),r&&e.jsx(Ne,{as:s?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:r})]}),e.jsx("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:n.map((t,n)=>e.jsx(Pe,{card:t,lgWidth:l,mdWidth:c},n))})]})})})},exports.Cards=({fields:t})=>e.jsx("div",{children:e.jsx(Ne,{children:"Cards"})}),exports.Carousel=({fields:t,hasTestimonialCards:n,hasProductCards:s,disclaimerText:r,backgroundColor:o})=>e.jsx("div",{className:`${o} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:e.jsxs("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[e.jsx(Ne,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==t?void 0:t.title}),(null==t?void 0:t.subTitle)&&e.jsx(Ne,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==t?void 0:t.subTitle}),n&&e.jsx(Be,{fields:t}),s&&e.jsx(Le,{fields:t}),e.jsx(Ne,{as:"div",className:"body1 mt-8 px-4 text-center",children:r})]})}),exports.ComparisonTable=({title:t,disclaimer:n,table:s,maxWidth:r=!0})=>e.jsx("div",{className:"component-container",children:e.jsxs("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(r?"max-w-120 xl:mx-auto":""),children:[e.jsx(Ne,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:t}),e.jsx("div",{className:"comparison-table-container mt-20 xl:mt-10",children:s}),e.jsx(Ne,{as:"div",className:"micro mt-8 text-center",children:n})]})}),exports.CtaCallout=({title:t,background:n="white",button:s,color:r,contentAlignment:o,description:i,descriptionAlignment:a,enableHeading:l,subTitle:c,maxWidth:u=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[n]} component-container`,children:e.jsxs("div",{className:`${u?"mx-auto max-w-120":""} color-${r} flex flex-col ${"dark"==r?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e.jsx(Ne,{as:l?"h1":"h2",className:`heading2 lg:heading1 text-${o}`,children:t}),e.jsx(Ne,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${o}`,children:c}),e.jsx("div",{className:`pt-2 text-body1 lg:pt-3 text-${a}`,children:i}),e.jsx("div",{className:"flex justify-center pt-5 lg:pt-14",children:e.jsx($e,{...s})})]})}),exports.FindKinetic=({background:t="white",description:n,enableHeading:s,image:r,list:o=[],subTitle:i,title:a,color:l="dark",maxWidth:c=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[t]} component-container overflow-hidden ${"dark"==l?"text-text":"text-white"}`,children:e.jsxs("div",{className:(c?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[a&&e.jsx(Ne,{as:s?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:a}),i&&e.jsx(Ne,{as:s?"h2":"h3",className:"heading3 mt-4 text-center",children:i}),e.jsxs("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[e.jsxs("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[n&&e.jsx(Ne,{as:"p",className:"body1",children:n}),o.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),s=[];for(let e=0;e<n;e++)for(let r=0;r<2;r++){const o=r*n+e;o<t.length&&s.push(t[o])}return s.map((t,n)=>e.jsx("li",{children:e.jsx(Ie,{href:`/${t.code}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e.jsx("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),s=[];for(let e=0;e<n;e++)for(let r=0;r<3;r++){const o=r*n+e;o<t.length&&s.push(t[o])}return s.map((t,n)=>e.jsx("li",{children:e.jsx(Ie,{href:`/${t.code}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),r&&e.jsx("aside",{className:"hidden xl:block",children:e.jsx(Ee,{width:472,height:100,src:r,alt:"image"})})]})]})}),exports.FloatingBanner=({title:t,subtitle:n,description:s,disclaimer:r,icon:o,cta:i,background:a="navy",color:l="light",enableHeading:c,maxWidth:u=!0})=>e.jsx("div",{className:"component-container",children:e.jsxs("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(u?"max-w-120":""),children:[e.jsxs("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[a]} ${"dark"==l?"text-text":"text-white"} `,children:[o&&e.jsx("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e.jsx("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e.jsx(Ee,{width:80,height:80,alt:"icon",src:o})})}),e.jsxs("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[t&&e.jsx(Ne,{as:c?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:t}),n&&e.jsx(Ne,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:n}),s&&e.jsx(Ne,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:s})]}),i&&e.jsx("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e.jsx($e,{...i})})]}),r&&e.jsx("div",{children:e.jsx(Ne,{as:"div",className:"body3 mt-3 text-center",children:r})})]})}),exports.Footer=({body:n,links:s,bottomLinks:r,copyrights:o,terms:i,maxWidth:a=!0,onClick:l})=>{function c(e){null==l||l(e)}return e.jsx("div",{className:"component-container bg-bg-inverse text-white",children:e.jsxs("div",{className:` ${a?"mx-auto max-w-120":""} px-5 py-8`,children:[e.jsx("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e.jsx("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e.jsx("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==s?void 0:s.map((n,s)=>{var r,o;return e.jsxs(t.Fragment,{children:[e.jsx("div",{children:e.jsxs("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e.jsx(Ne,{as:"div",className:"label3",children:null==n?void 0:n.title}),e.jsx("ul",{className:"flex flex-col",children:null===(o=null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||void 0===o?void 0:o.map((t,n)=>e.jsx("li",{className:"pt-3",children:e.jsx($e,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:c})},`site-links-${n}`))})]},`link-group-${s}`)},`footer-link-group-${s}`),e.jsx("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${s}`)})}),e.jsxs("div",{className:"pt-8",children:[e.jsx("p",{className:"copy-rights",children:o}),e.jsxs("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",i]}),e.jsx("nav",{"aria-label":"Footer legal",children:e.jsx("ul",{className:"bottom-links list-none",children:null==r?void 0:r.map((t,n)=>e.jsx("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e.jsx($e,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:c})},`links-${n}`))})})]})]})})},exports.ImagePromoBar=({brow:t,enableHeading:n,title:s,subTitle:r,ctaDisclaimer:o,disclaimer:i,description:a,image:l,imageLinks:c,mediaPosition:u=!0,checklist:d,secondaryCta:h,cta:m,videoLink:p,maxWidth:f=!0,color:g="light",imageWidth:v=660,imageHeight:x=660,onModalButtonClick:y})=>e.jsx("div",{className:"component-container",children:e.jsx("div",{className:`image-promo-bar-content ${f?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:e.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:gap-[126px] "+(u?"flex-row xl:flex-row-reverse":"xl:flex-row"),children:[e.jsxs("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==g?"text-text":"text-white"),children:[e.jsxs("div",{className:"heading holder",children:[t&&e.jsx(Ne,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:t}),s&&e.jsx(Ne,{as:n?"h1":"h2",className:"heading2 xl:heading1",children:s}),r&&e.jsx(Ne,{as:n?"h2":"h3",className:"subheading1 mt-3",children:r})]}),a&&e.jsx(Ne,{as:"div",className:"body1",children:a}),d.length>0&&e.jsx(Ae,{items:d,iconPosition:"top",iconSize:24}),e.jsx("div",{className:"flex gap-4",children:null==c?void 0:c.map((t,n)=>e.jsx("div",{className:"image-link w-[147px]",children:e.jsx(Ie,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e.jsx(Me,{src:t.image,alt:"icon-link"})})},n))}),e.jsxs("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[m&&e.jsx("div",{className:"primary-cta w-full xl:w-auto",children:e.jsx($e,{...m,fullWidth:!0,onModalButtonClick:y})}),h&&e.jsx("div",{className:"secondary-cta",children:e.jsx($e,{...h,fullWidth:!0,onModalButtonClick:y})})]}),o&&e.jsx("div",{children:o}),i&&e.jsx("div",{children:i})]}),e.jsxs("aside",{className:"flex shrink-0 content-center items-center",children:[e.jsx("div",{className:"relative aspect-[16/9] w-full xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:l&&e.jsx(Ee,{src:l,alt:"section-image",width:v,height:x,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),e.jsx("div",{children:(null==p?void 0:p.link)&&e.jsx("div",{className:"video-section",children:p.image&&e.jsx(Ee,{src:p.image,alt:"Video preview",width:486,height:100,className:"rounded-[40px]"})})})]})]})})}),exports.Modal=t=>{const{isOpen:n,onRequestClose:s,size:r,title:o,content:i,description:a,children:l,bodyClassName:c}=t;return e.jsx(Wc,{open:n,onOpenChange:()=>n&&(null==s?void 0:s()),children:e.jsxs(Gc,{children:[e.jsx(Wa.div,{initial:"closed",animate:n?"open":"closed",variants:Xe,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(Hc,{})}),e.jsx(Wa.div,{initial:"closed",animate:n?"open":"closed",variants:Ke,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:e.jsxs(Yc,{className:ye("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",c),style:{maxWidth:Ze[r||"lg"]},children:[e.jsx(qc,{asChild:!0,children:e.jsx($e,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx(je,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[o?e.jsx(Ne,{className:ye("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:o}):null,a?e.jsx(Ne,{as:"div",children:a}):null,i,l||null]})]})})]})})},exports.Navigation=t=>{const{primaryNavigationLinks:n,utilityNavigationLinks:s,checkPlansJSX:r,primaryNavigationLogo:o,accountNavigationLinks:i,supportNavigationLinks:a,searchBarIcon:l,invocaPhoneNumberLink:c,invocaPhoneNumberDisplayText:u,onSearch:d=()=>{}}=t;return e.jsxs("div",{className:"component-container",children:[e.jsxs("nav",{className:"menu-container",children:[e.jsx("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:e.jsxs("div",{className:"mx-auto flex max-w-120 justify-between",children:[e.jsx("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==s?void 0:s.map((t,n)=>e.jsx("li",{children:e.jsx($e,{linkClassName:ye("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),e.jsxs("div",{className:"flex items-center gap-10",children:[e.jsx(We,{className:"border-none",href:c,children:e.jsx(Ne,{className:"body3",children:u})}),null==i?void 0:i.map((t,n)=>e.jsx(ze,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),e.jsxs("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[e.jsxs("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e.jsx("div",{children:e.jsx(Ie,{href:"/",className:"flex",children:e.jsx(Ee,{src:"string"==typeof o?o:(null==o?void 0:o.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(We,{href:c,children:e.jsx(Ne,{as:"span",className:"footnote",children:u})}),e.jsx(He,{...t})]})]}),e.jsx("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:e.jsxs("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[e.jsxs("div",{className:"flex h-full",children:[e.jsx(Ie,{href:"/",className:"flex",children:e.jsx(Ee,{src:"string"==typeof o?o:(null==o?void 0:o.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e.jsx("div",{className:"flex h-full items-center gap-5",children:null==n?void 0:n.map((t,n)=>e.jsx(ze,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),e.jsxs("div",{className:"flex h-full items-center gap-10",children:[e.jsx(qe,{searchBarIconURL:"string"==typeof l?l:(null==l?void 0:l.url)||"",onSearch:d}),null==a?void 0:a.map((t,n)=>e.jsx(ze,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),r&&e.jsx("div",{className:"md:hidden",children:r})]})},exports.PrimaryHero=t=>{var n;const{title:s,showAsHeading:r,subTitle:o,primaryCta1:i,carouselImages:a,bottomLink:l,price:c,priceCallout:u,priceSuffix:d,checklist:h,renderCheckPlans:m,badgeImage:p,pricingDescriptionDisclaimer:f,secondaryCta:g,secondaryCtaPrefix:v,onModalButtonClick:x}=t,y=null!==(n=null==l?void 0:l.buttonLabel)&&void 0!==n?n:null==l?void 0:l.label;return e.jsx("div",{className:"component-container p-5 lg:h-[724px] lg:p-0",children:e.jsxs("div",{className:ye("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e.jsx("div",{className:ye("relative flex flex-col text-white sm:w-[485px]"),children:e.jsxs("div",{className:"flex flex-col gap-5 lg:gap-6",children:[s&&e.jsx(Ne,{as:r?"h1":"h2",className:"heading2 lg:heading1",children:s}),o&&e.jsx(Ne,{as:"p",className:"subheading3 lg:subheading1",children:o}),c?e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"mr-2 mt-0.5",children:u?u.split("|").map((t,n)=>e.jsx(Ne,{as:"p",className:"body2",children:t},n)):null}),e.jsxs("div",{className:"flex",children:[e.jsx(Ne,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e.jsx(Ne,{as:"p",className:"subheading5",children:c}),d?e.jsx(Ne,{as:"p",className:"subheading1 mt-0.5",children:d}):null]})]}):null,h&&e.jsx(Ae,{listItemClassName:"text-white body2",items:h.map(e=>e.title)}),e.jsxs("div",{className:"flex flex-col gap-3",children:[i&&e.jsx("div",{className:ye("hidden lg:flex lg:flex-col"),children:e.jsx($e,{...i,renderCheckPlans:m,onModalButtonClick:x})}),v||g?e.jsxs("div",{className:"flex",children:[v&&e.jsx(Ne,{as:"span",className:"body2 mr-1",children:v}),g&&e.jsx($e,{linkClassName:"body2 text-text-inverse",onModalButtonClick:x,...g})]}):null,l&&(y||(null==l?void 0:l.href))&&e.jsx("div",{className:"hidden lg:block",children:e.jsx($e,{...l,linkClassName:"text-footnote text-white",onModalButtonClick:x})}),f?e.jsx(Ne,{as:"p",className:"body3",children:f}):null]})]})}),e.jsxs("div",{className:"lg:hidden",children:[e.jsxs("div",{className:"relative my-8",children:[p?e.jsx(Ee,{src:p,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,a&&a[0]?e.jsx(Ee,{src:a[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),l&&(y||(null==l?void 0:l.href))&&e.jsx("div",{children:e.jsx($e,{...l,onModalButtonClick:x,linkClassName:"body3 text-white"})}),f?e.jsx(Ne,{as:"p",className:"body3",children:f}):null,v||g?e.jsxs("div",{className:"flex",children:[v&&e.jsx(Ne,{as:"span",className:"body2 mr-1",children:v}),g&&e.jsx($e,{...g,onModalButtonClick:x})]}):null]}),e.jsxs("div",{className:ye("relative hidden lg:block"),children:[p?e.jsx(Ee,{src:p,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,a&&a[0]?e.jsx(Ee,{src:a[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},exports.ProductCard=Ve,exports.ShapeBackgroundWrapper=({children:t,background:n,className:s,fill:r="yellow",maxFit:o,show:i=!0,path:a="path2"})=>{const l=`${a}`,c={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},d="string"==typeof n&&n in u,h=d?u[n]:void 0,m=n&&!d?{background:n}:void 0,p=r in c?c[r]:"text-[#F5FF1E]";return i?e.jsxs("div",{className:`shape-bg relative overflow-hidden ${null!=s?s:""} ${o?"max-content":""} ${null!=h?h:m?"":"bg-white"}`,style:m,children:["path1"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${l} fill-current ${p}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${l} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${l} fill-current ${p}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${l} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e.jsx("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e.jsx("div",{className:s,style:m,children:t})},exports.SimpleCard=Pe,exports.TestimonialCard=Re,exports.Text=({fields:t})=>e.jsx("div",{children:e.jsx(Ne,{children:"Text Block"})});
|
|
3
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/image"),s=require("react-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=r(t);function i(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=i(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function a(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=i(e))&&(s&&(s+=" "),s+=t);return s}const l=e=>{const t=h(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),c(n,t)||d(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&s[e]?[...r,...s[e]]:r}}},c=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?c(e.slice(1),s):void 0;if(r)return r;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},u=/^\[(.+)\]$/,d=e=>{if(u.test(e)){const t=u.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},h=e=>{const{theme:t,classGroups:n}=e,s={nextPart:new Map,validators:[]};for(const e in n)m(n[e],s,e,t);return s},m=(e,t,n,s)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:p(t,e)).classGroupId=n)}if("function"==typeof e)return f(e)?void m(e(s),t,n,s):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,r])=>{m(r,p(t,e),n,s)})})},p=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},f=e=>e.isThemeGetter,g=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(r,o)=>{n.set(r,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=s.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},v=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=e=>{const t=[];let n,s=0,r=0,o=0;for(let i=0;i<e.length;i++){let a=e[i];if(0===s&&0===r){if(":"===a){t.push(e.slice(o,i)),o=i+1;continue}if("/"===a){n=i;continue}}"["===a?s++:"]"===a?s--:"("===a?r++:")"===a&&r--}const i=0===t.length?e:e.substring(o),a=x(i);return{modifiers:t,hasImportantModifier:a!==i,baseClassName:a,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=s;s=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=s;s=t=>n({className:t,parseClassName:e})}return s},x=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,y=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let s=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...s.sort(),e),s=[]):s.push(e)}),n.push(...s.sort()),n}},b=/\s+/;function w(){let e,t,n=0,s="";for(;n<arguments.length;)(e=arguments[n++])&&(t=j(e))&&(s&&(s+=" "),s+=t);return s}const j=e=>{if("string"==typeof e)return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=j(e[s]))&&(n&&(n+=" "),n+=t);return n};function k(e,...t){let n,s,r,o=function(a){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:g(e.cacheSize),parseClassName:v(e),sortModifiers:y(e),...l(e)}))(c),s=n.cache.get,r=n.cache.set,o=i,i(a)};function i(e){const t=s(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],a=e.trim().split(b);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=s(p?h.substring(0,m):h);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=s(h),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=o(u).join(":"),v=d?g+"!":g,x=v+f;if(i.includes(x))continue;i.push(x);const y=r(f,p);for(let e=0;e<y.length;++e){const t=y[e];i.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return r(e,o),o}return function(){return o(w.apply(null,arguments))}}const N=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>P.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),B=e=>e.endsWith("%")&&R(e.slice(0,-1)),F=e=>S.test(e),I=()=>!0,O=e=>T.test(e)&&!A.test(e),$=()=>!1,z=e=>M.test(e),_=e=>D.test(e),U=e=>!G(e)&&!Z(e),W=e=>re(e,le,$),G=e=>C.test(e),H=e=>re(e,ce,O),Y=e=>re(e,ue,R),q=e=>re(e,ie,$),X=e=>re(e,ae,_),K=e=>re(e,he,z),Z=e=>E.test(e),J=e=>oe(e,ce),Q=e=>oe(e,de),ee=e=>oe(e,ie),te=e=>oe(e,le),ne=e=>oe(e,ae),se=e=>oe(e,he,!0),re=(e,t,n)=>{const s=C.exec(e);return!!s&&(s[1]?t(s[1]):n(s[2]))},oe=(e,t,n=!1)=>{const s=E.exec(e);return!!s&&(s[1]?t(s[1]):n)},ie=e=>"position"===e||"percentage"===e,ae=e=>"image"===e||"url"===e,le=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,ue=e=>"number"===e,de=e=>"family-name"===e,he=e=>"shadow"===e,me=()=>{const e=N("color"),t=N("font"),n=N("text"),s=N("font-weight"),r=N("tracking"),o=N("leading"),i=N("breakpoint"),a=N("container"),l=N("spacing"),c=N("radius"),u=N("shadow"),d=N("inset-shadow"),h=N("text-shadow"),m=N("drop-shadow"),p=N("blur"),f=N("perspective"),g=N("aspect"),v=N("ease"),x=N("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Z,G],b=()=>[Z,G,l],w=()=>[V,"full","auto",...b()],j=()=>[L,"none","subgrid",Z,G],k=()=>["auto",{span:["full",L,Z,G]},L,Z,G],C=()=>[L,"auto",Z,G],E=()=>["auto","min","max","fr",Z,G],P=()=>["auto",...b()],S=()=>[V,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],T=()=>[e,Z,G],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,q,{position:[Z,G]}],M=()=>["auto","cover","contain",te,W,{size:[Z,G]}],D=()=>[B,J,H],O=()=>["","none","full",c,Z,G],$=()=>["",R,J,H],z=()=>[R,B,ee,q],_=()=>["","none",p,Z,G],re=()=>["none",R,Z,G],oe=()=>["none",R,Z,G],ie=()=>[R,Z,G],ae=()=>[V,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[I],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[U],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",R],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",V,G,Z,g]}],container:["container"],columns:[{columns:[R,G,Z,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",Z,G]}],basis:[{basis:[V,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,V,"auto","initial","none",G]}],grow:[{grow:["",R,Z,G]}],shrink:[{shrink:["",R,Z,G]}],order:[{order:[L,"first","last","none",Z,G]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Z,Y]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",B,G]}],"font-family":[{font:[Q,G,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Z,G]}],"line-clamp":[{"line-clamp":[R,"none",Z,Y]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",Z,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",Z,H]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[R,"auto",Z,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,Z,G],radial:["",Z,G],conic:[L,Z,G]},ne,X]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[R,Z,G]}],"outline-w":[{outline:["",R,J,H]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,se,K]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,se,K]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[R,H]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,se,K]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[R,Z,G]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,G]}],filter:[{filter:["","none",Z,G]}],blur:[{blur:_()}],brightness:[{brightness:[R,Z,G]}],contrast:[{contrast:[R,Z,G]}],"drop-shadow":[{"drop-shadow":["","none",m,se,K]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",R,Z,G]}],"hue-rotate":[{"hue-rotate":[R,Z,G]}],invert:[{invert:["",R,Z,G]}],saturate:[{saturate:[R,Z,G]}],sepia:[{sepia:["",R,Z,G]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,G]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[R,Z,G]}],"backdrop-contrast":[{"backdrop-contrast":[R,Z,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,Z,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,Z,G]}],"backdrop-invert":[{"backdrop-invert":["",R,Z,G]}],"backdrop-opacity":[{"backdrop-opacity":[R,Z,G]}],"backdrop-saturate":[{"backdrop-saturate":[R,Z,G]}],"backdrop-sepia":[{"backdrop-sepia":["",R,Z,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",Z,G]}],ease:[{ease:["linear","initial",v,Z,G]}],delay:[{delay:[R,Z,G]}],animate:[{animate:["none",x,Z,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Z,G]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[Z,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,G]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[R,J,H,Y]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pe=(e,t,n)=>{void 0!==n&&(e[t]=n)},fe=(e,t)=>{if(t)for(const n in t)pe(e,n,t[n])},ge=(e,t)=>{if(t)for(const n in t)ve(e,t,n)},ve=(e,t,n)=>{const s=t[n];void 0!==s&&(e[n]=e[n]?e[n].concat(s):s)},xe=((e,...t)=>"function"==typeof e?k(me,e,...t):k(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(pe(e,"cacheSize",t),pe(e,"prefix",n),pe(e,"experimentalParseClassName",s),fe(e.theme,o.theme),fe(e.classGroups,o.classGroups),fe(e.conflictingClassGroups,o.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),pe(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),ge(e.theme,r.theme),ge(e.classGroups,r.classGroups),ge(e.conflictingClassGroups,r.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),ve(e,r,"orderSensitiveModifiers"),e))(me(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),ye=(...e)=>xe(a(...e)),be=t.forwardRef(({children:t,className:n="",style:s,disabled:r,...o},i)=>e.jsx("button",{ref:i,className:ye(n),style:s,disabled:r,...o,children:t}));be.displayName="Button";const we=n=>{const{open:s,children:r}=n,o=t.useRef(null),[i,a]=t.useState(0);return t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(s?e.scrollHeight:0)};let n;return t(),s&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[s,r]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:s?1:0},"aria-hidden":!s,children:e.jsx("div",{ref:o,children:r})})};we.displayName="Collapse";const je=({name:t,fill:n=0,opticalSize:s="48dp",weight:r="200",emphasis:o=145,size:i=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const h={fontVariationSettings:`'FILL' ${n}, 'wght' ${r}, 'GRAD' ${o}, 'opsz' ${s.substring(0,2)}`,fontSize:`${i}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:h,className:ye("material-symbols-rounded",c),onClick:u,"data-testid":d,children:t})};je.displayName="MaterialIcon";const ke=n=>{const{title:s,defaultOpen:r,children:o,containerClassName:i,titleClassName:a,className:l,buttonClassName:c,openOnlyOnDesktop:u}=n,[d,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(u){const e=window.innerWidth>=1024;h(e)}else h(Boolean(r))},[u,r]),e.jsxs("div",{className:ye("rounded-lg border",i),children:[e.jsxs(be,{type:"button",className:ye("flex w-full items-center justify-between gap-4 rounded-t-lg px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:ye("label5",a),children:s}),e.jsx(je,{name:d?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(we,{open:d,children:e.jsx("div",{className:ye("px-4 py-4",l),children:o})})]})};ke.displayName="Accordion";const Ne=t.forwardRef(({children:e,as:n,className:s="",style:r,...o},i)=>{const a=n||"p";return t.createElement(a,{ref:i,className:s,style:r,...o},e)});Ne.displayName="Text";const Ce={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Ee=t.forwardRef(({className:t,...s},r)=>{const o="string"==typeof s.src?s.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net")&&i.endsWith(".svg");return e.jsx(n,{ref:r,className:ye(t),...s,unoptimized:a})});Ee.displayName="NextImage";const Pe=({card:t,lgWidth:n,mdWidth:s})=>{var r,o,i;const a=(null===(r=t.imageAlignment)||void 0===r?void 0:r.toLowerCase())||"left",l="left"===a?"lg:items-start":"right"===a?"lg:items-end":"lg:items-center";return e.jsx("div",{className:`callout-card ${s} ${n} w-full ${null!==(i=Ce[null!==(o=t.backgroundColor)&&void 0!==o?o:""])&&void 0!==i?i:""}`,children:e.jsxs("div",{className:`card-template flex h-full flex-col items-center gap-6 p-8 text-center ${l}`,children:[e.jsx("div",{className:"card-header",children:(t=>{var n,s,r;if(!t.image)return null;return"full"===(null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase())?e.jsx(Ee,{width:400,height:280,src:t.image,alt:null!==(s=t.title)&&void 0!==s?s:"card-icon",className:"rounded-3xl"}):e.jsx(Ee,{width:88,height:88,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon"})})(t)}),e.jsxs("div",{className:"card-body flex flex-col gap-3 text-start",children:[t.title&&e.jsx(Ne,{as:"h5",className:"heading5 font-black",children:t.title}),t.body&&e.jsx(Ne,{as:"div",className:"body1",children:t.body})]})]})})},Se={green:"#209A61",yellow:"#F5FF36"},Te=t.forwardRef(({children:t,className:n="",variant:s="unstyled",style:r,...o},i)=>{const a=ye("unstyled"===s?"":"mb-1 leading-6","list-item",`list-item--${s}`,n);return e.jsx("li",{ref:i,className:a,style:r,...o,children:t})});Te.displayName="ListItem";const Ae=t.forwardRef(({type:t="ul",items:n,className:s="",renderItem:r,children:o,variant:i="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===i)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d={className:ye(u,`list--${t}`,`list--${i}`,s),style:a,...l,children:o||(n&&0!==n.length?n.map((t,n)=>r?r(t,n):e.jsx(Te,{className:t.className,variant:i,children:t.content},t.id||n)):null)};return"ol"===t?e.jsx("ol",{...d,ref:c}):e.jsx("ul",{...d,ref:c})});Ae.displayName="List";const Me=t=>{const{items:n,listIconName:s="check",listItemClassName:r,iconSize:o=20,iconPosition:i="center",iconColor:a="green"}=t,l="disc"!==s;return(null==n?void 0:n.length)?e.jsx(Ae,{className:"mt-2 space-y-1",variant:l?"unstyled":"default",children:n.map((t,n)=>e.jsxs(Te,{variant:l?"unstyled":"default",className:ye(`${l?"flex":""} ${"top"===i?"items-start":"items-center"} gap-2 text-text-secondary`,r),children:[l&&e.jsx("div",{children:e.jsx(je,{name:s,size:o,color:Se[a],weight:"600",className:"top"===i?"mt-1":""})}),e.jsx(Ne,{as:"div",children:t})]},n))}):null};Me.displayName="Checklist";const De=t.forwardRef(({as:t,className:n="",...s},r)=>{const o=ye(n);if(t){const n=t;return e.jsx(n,{ref:r,className:o,...s})}return e.jsx("img",{ref:r,className:o,...s})});De.displayName="Image";const Ve=({onSelect:t,speed:n,isSelected:s=!1})=>{const r=`btn-medium rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${s?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `;return e.jsxs(be,{onClick:t,className:ye(r,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${n}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(s?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e.jsx(je,{name:"chevron_right",fill:1,size:24})})]})},Re=({planName:n,planSubtext:s,speed:r,price:o,description:i,bestValue:a=!1,bestValueText:l="best value",giftBadge:c,innerBadge:u,theme:d="light",featuresTitle:h="Business Ready Internet features",features:m=[],isExpanded:p,onToggleExpand:f,onCtaClick:g,hostType:v})=>{const[x,y]=t.useState(!1),b=void 0!==p?p:x,w="dark"===d;return e.jsxs("article",{className:ye("relative flex h-full w-full max-w-[392px] flex-col",!a&&"pt-[28px]"),children:[a&&e.jsx("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:l}),e.jsxs("div",{className:ye("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",w?"bg-bg-fill-inverse text-white":"bg-white text-text",a?"rounded-t-none":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Ne,{as:"h3",className:ye("whitespace-nowrap text-subheading2 font-black lowercase",w?"text-bg-fill-brand-accent":"text-text-brand"),children:n}),e.jsx(Ne,{as:"p",className:`text-label3 font-black ${w?"text-bg-fill-brand-accent":"text-text-brand"} lowercase md:whitespace-nowrap`,children:s})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"text-xl font-normal",children:"$"}),e.jsx("span",{className:"text-subheading6 font-medium leading-none",children:o.split(".")[0]}),e.jsxs("span",{className:"text-sm font-black",children:[o.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Ne,{className:ye("text-base",w?"text-white":"text-text"),children:i})}),e.jsx("div",{className:ye("flex-col items-center rounded-xl p-2",w?"bg-bg-surface-inverse":"bg-gray-200"),children:c&&(null==c?void 0:c.map(t=>e.jsxs("div",{className:"flex items-center gap-2 p-1",children:[e.jsx(De,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Ne,{className:"text-sm font-bold",children:t.title})]},t.title)))}),e.jsx(Ve,{onSelect:g,speed:r,isSelected:w}),m.length>0&&e.jsxs("section",{className:"flex flex-col gap-6",children:[e.jsxs(be,{onClick:()=>{f?f():y(!x)},className:"group flex w-full items-center justify-between text-left",children:[e.jsx(Ne,{as:"h4",className:"text-base font-bold",children:h}),e.jsx(je,{name:"keyboard_arrow_up",fill:1,size:24,className:ye("transition-transform duration-300",b&&"rotate-180")})]}),e.jsxs("div",{className:ye("overflow-hidden transition-all duration-300 ease-in-out",b?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col gap-3",children:e.jsx(Me,{items:m,iconColor:w?"yellow":"green",listItemClassName:""+(w?"text-white":"text-text")})}),(null==u?void 0:u.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(De,{src:u.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"text-sm",children:u.badgeText.includes("|")?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-bold",children:u.badgeText.split("|")[0]}),e.jsx("span",{className:"font-normal",children:u.badgeText.split("|")[1]})]}):e.jsx(Ne,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},Le=({title:t,quote:s,rating:r,author:o,role:i,avatarUrl:l,isActive:c=!1,className:u})=>e.jsxs("figure",{className:a("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",c?"bg-white shadow-lg":"bg-gray-50 opacity-60",u),children:[e.jsx("header",{children:e.jsx(Ne,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:t})}),e.jsx("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:s}),r?e.jsx("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e.jsx(je,{size:24,name:"star",fill:1,className:a("h-5 w-5",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,o&&e.jsxs("figcaption",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:l?e.jsx(n,{src:l,alt:o,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:o.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"text-sm font-bold not-italic text-text",children:o}),e.jsx(Ne,{as:"p",className:"text-xs text-text",children:i})]})]})]});function Be({fields:n}){var s,r,o,i;const a=(null===(o=null===(r=null===(s=null==n?void 0:n.items)||void 0===s?void 0:s.items)||void 0===r?void 0:r[0])||void 0===o?void 0:o.benefitsExpanded)||!1,[l,c]=t.useState(a),[u,d]=t.useState({}),[h,m]=t.useState(0),p=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[],f=p.length>2,g=t.useRef([]),v=t.useCallback(()=>{f&&m(e=>(e+3)%p.length)},[f,p.length]),x=t.useCallback(()=>{f&&m(e=>(e-3+p.length)%p.length)},[f,p.length]);if(t.useEffect(()=>{if(!f)return;const e=()=>{const e=g.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[f,l,p.length]),!p.length&&!(null==n?void 0:n.title))return null;const y=(t,n,s=!1)=>{var r,o,i,a,h,m,p,f,v;const x=null===(r=null==t?void 0:t.speed)||void 0===r?void 0:r.split("|"),y=`${(null===(o=null==t?void 0:t.techType)||void 0===o?void 0:o.startsWith("FIBER"))?"fiber ":""}${(null==x?void 0:x[0])||""}`,b=(null==x?void 0:x[1])||"",w=(null===(a=null===(i=null==t?void 0:t.priceSuffix)||void 0===i?void 0:i.split("/"))||void 0===a?void 0:a[0])||"00",j=`${(null==t?void 0:t.price)||"0"}.${w}`,k=(null===(h=null==t?void 0:t.benefits)||void 0===h?void 0:h.items)||[],N=(null==t?void 0:t.highlighted)||!1,C=(null===(p=null===(m=null==t?void 0:t.giftRewards)||void 0===m?void 0:m.list)||void 0===p?void 0:p.items)||[],E={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},P=s?u[n]||!1:l;return e.jsx("div",{ref:s?void 0:e=>{e&&!g.current.includes(e)&&(g.current[n]=e)},className:ye(s?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Re,{planName:y,planSubtext:b,speed:(null==t?void 0:t.speed)||"",price:j,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:C,innerBadge:E,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:N,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:k,isExpanded:P,onToggleExpand:()=>{s?d(e=>({...e,[n]:!e[n]})):c(!l)},ctaText:(null===(v=null==t?void 0:t.cta)||void 0===v?void 0:v.buttonLabel)||"Select plan",onCtaClick:()=>{},hostType:"smb"})},n)},b=[...p,...p,...p,...p,...p],w=2*p.length;return f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:p.map((e,t)=>y(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[e.jsxs("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e.jsx(be,{onClick:v,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx(be,{onClick:x,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})})]}),e.jsx("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e.jsx("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${w+h} * (392px + 12px)))`},children:b.map((e,t)=>y(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:p.map((e,t)=>y(e,t))})}const Fe=({fields:n})=>{var s;const r=(null===(s=null==n?void 0:n.items)||void 0===s?void 0:s.items)||[],[o,i]=t.useState(0),a=t.useRef(null),l=t.useCallback(()=>{0!==r.length&&i(e=>(e+1)%r.length)},[r.length]),c=t.useCallback(()=>{0!==r.length&&i(e=>0===e?r.length-1:e-1)},[r.length]);return t.useEffect(()=>{if(0!==r.length)return a.current=setInterval(()=>{l()},8e3),()=>{a.current&&clearInterval(a.current)}},[l,r.length]),r&&0!==r.length?e.jsxs("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e.jsx(be,{onClick:c,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:r.map((t,n)=>{let s=n-o;const i=r.length;s>i/2&&(s-=i),s<-i/2&&(s+=i);const a=0===s;return e.jsx("div",{className:ye("col-start-1 row-start-1 w-full md:max-w-[815px]",a?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${a?"0%":105*s+"%"})`,zIndex:a?10:5,visibility:Math.abs(s)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e.jsx(Le,{...t,isActive:a,className:"h-full"})},n)})}),e.jsx(be,{onClick:l,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})}),e.jsx("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:r.map((t,n)=>e.jsx("button",{onClick:()=>i(n),className:ye("h-2 w-2 rounded-full transition-all duration-300",o===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},Ie=({tabs:t,activeTab:n,onChange:s,className:r})=>e.jsx("div",{className:ye("mx-auto my-6 flex w-fit rounded-2xl bg-white p-1",r),children:t.map(t=>e.jsx("button",{onClick:()=>s(t),className:ye("min-w-[160px] whitespace-nowrap rounded-2xl px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-[#E5E5E7]"),children:t},t))}),Oe=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},$e=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:s,label:r,disabled:o,fullWidth:i,size:a={base:"medium"},as:l="button",...c},u)=>{const d=(()=>{const e=ye((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(a),"rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",i&&"w-full"),s=ye((o||n)&&"cursor-not-allowed",n&&"pl-7",o&&"bg-bg-fill-brand-disabled");return ye(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[t]||"",s)})();let h=`button--${t}`;n&&(h+=" button--loading"),o&&(h+=" button--disabled");const m=`${h} ${d}`,p=e.jsxs(e.Fragment,{children:[n?e.jsx(je,{name:"progress_activity",className:"animate-spin"}):null,r?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:ye(Oe(a)),children:r}),s]}):s]});return"a"===l?e.jsx("a",{ref:u,className:ye(m),...c,children:p}):e.jsx("button",{ref:u,className:ye(m),disabled:o||n,...c,children:p})});$e.displayName="BrandButton";const ze=t.forwardRef(({children:t,href:n,className:s="",onClick:r,variant:o="unstyled",style:i,external:a=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===o)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[o]||e.default,t].filter(Boolean).join(" ")})(),h={...c,ref:u,className:ye(d,`link--${o}`,l&&"link--disabled",s),style:i,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==r||r(e)},...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e.jsx("a",{...h,children:t})});ze.displayName="Link";const _e=({showButtonAs:t="solid",buttonVariant:n="primary_brand",buttonLabel:s,buttonPrefix:r,href:o,target:i="_blank",anchorId:a,linkClassName:l,linkVariant:c,fullWidth:u,preDefinedFunctionExecution:d,renderCheckPlans:h,buttonClassName:m,clickToOpen:p,tabmodalNameToOpen:f,onModalButtonClick:g,onClick:v,...x})=>{if("check availability"===d){return null==h?void 0:h({ctaText:s,buttonVariant:n,showButtonAs:t})}function y(e){"modal"===p&&(null==g||g(f)),null==v||v(e)}function b(e){"modal"===p&&(null==g||g(f)),null==v||v(e)}let w=e.jsx(be,{onClick:b,className:m,...x});switch(t){case"solid":w=o?e.jsx($e,{as:"a",href:o,id:a,variant:n,text:s,label:r,fullWidth:u,onClick:y}):e.jsx($e,{id:a,variant:n,text:s,label:r,fullWidth:u,onClick:b});break;case"text":w=e.jsx(ze,{href:o,target:i,variant:c||"default",className:`text-text-brand ${l||""}`,onClick:y,children:s})}return w},Ue=({isHovered:t,containerClassName:n})=>e.jsx("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e.jsx(je,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),We=n=>{const{link:s,containerClassName:r,autoplay:o=!1,debug:i=!1}=n,{href:a,embedId:l}=t.useMemo(()=>{if(!s)return{href:"",embedId:""};const e=s.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),s=t.split("/"),r=s[s.length-1];return(null==n?void 0:n[1])?n[1]===r?n[1]:`${n[1]}/${r}`:""})(e);return{href:e,embedId:t}},[s]);if(i&&console.log("[VimeoEmbed] href:",a,"id:",l),!l)return null;const c=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],s=n[2],r=`https://player.vimeo.com/video/${e}`;return s&&/^[a-f0-9]+$/i.test(s)&&t.searchParams.set("h",s),`${r}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${l}?${new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e.jsx("div",{className:ye("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:c,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const Ge=n=>{const{link:s,containerClassName:r,autoplay:o=!1}=n,i=t.useMemo(()=>{if(!s)return"";const e=s.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[s]),a=o?"?autoplay=1":"";return e.jsx("div",{className:ye("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${i}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},He=({link:n,anchorName:s})=>{const[r,o]=t.useState(!1),i=t.useRef(null);if(((e,n)=>{const s=t=>{var s;(null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}))})(i,()=>o(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(_e,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:a,title:l,items:c}=n,u=Array.isArray(null==c?void 0:c.items)?c.items:[],d=`--link-anchor-${s}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:d},ref:i,children:[e.jsxs(_e,{onClick:()=>o(e=>!e),"aria-expanded":r,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e.jsx(Ne,{as:"span",className:"group-hover:underline",children:null!=l?l:null}),e.jsx(je,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),e.jsx("div",{className:ye("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",r&&u.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:d,top:"anchor(bottom)",right:"anchor(right)"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",children:u.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(_e,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},Ye=({link:n})=>{const[s,r]=t.useState(!1);if(!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(_e,{...n,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:o,title:i,items:a}=n,l=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(_e,{onClick:()=>r(e=>!e),"aria-expanded":s,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=i?i:null,e.jsx(je,{weight:"700",name:s?"keyboard_arrow_up":"keyboard_arrow_down"})]},o),s&&l.length>0&&e.jsx(qe,{items:l})]})},qe=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(_e,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),Xe=t=>{const{showBlinkDot:n=!1,buttonStyle:s="primary",size:r="md",children:o,className:i,...a}=t;return e.jsxs(ze,{...a,className:ye("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[r],{primary:"border-[0.727px] border-border text-text"}[s],i),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[r]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[r]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[r]} items-center justify-center rounded-full bg-icon-brand`,children:e.jsx(je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[r],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]})};Xe.displayName="CallButton";const Ke=t.forwardRef((n,s)=>{const{className:r,size:o,required:i,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:p=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:v,prefixIconClassName:x,loading:y,hasError:b,type:w,...j}=n,k=b?"error":c,[N,C]=t.useState(!1),[E,P]=t.useState(!1),[S,T]=t.useState(w||"text"),A=t.useCallback(e=>{e.stopPropagation(),T(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:ye("inline-block pb-1"),children:e.jsxs(Ne,{as:"span",className:"footnote text-text",children:[l,i?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:ye("relative flex flex-row items-center overflow-hidden rounded-xl border border-input-border bg-input-bg-surface",{sm:"h-[48px] rounded-lg px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],v,(N||"hover"===k)&&!E&&"error"!==k&&"border-input-border-hover",(E||"focus"===k||"active"===k)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===k&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:p,height:p,overflow:"hidden"},children:e.jsx(je,{name:d,fill:h?1:0,size:p,className:ye(x)})}):null,e.jsx("input",{ref:s,id:l,disabled:y||j.disabled,className:ye("h-full grow rounded-xl p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",r),placeholder:a,type:S,...j,onMouseOver:()=>C(!0),onMouseOut:()=>C(!1),onFocus:e=>{var t;null===(t=j.onFocus)||void 0===t||t.call(j,e),P(!0)},onBlur:e=>{var t;null===(t=j.onBlur)||void 0===t||t.call(j,e),P(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:A,children:e.jsx(je,{name:"text"===S?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===k&&u&&""!=u?e.jsxs(Ne,{className:ye("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(je,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Ke.displayName="Input";const Ze=n=>{var s;const{primaryNavigationLinks:r,utilityNavigationLinks:o}=n,[i,a]=t.useState(!1);t.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=i?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],s=t[t.length-1],r=e=>{var t,r,o,i;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(r=(t=s).focus)||void 0===r||r.call(t),e.preventDefault()):document.activeElement===s&&(null===(i=(o=n).focus)||void 0===i||i.call(o),e.preventDefault()))};return window.addEventListener("keydown",r),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",r)}},[i]);const l=()=>{a(!1)};return e.jsxs("div",{children:[e.jsx(_e,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>a(!0),children:e.jsx(je,{name:"menu"})}),i?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:ye("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",i?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between px-4",children:[e.jsx("div",{children:e.jsx(Xe,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e.jsx("div",{children:e.jsx(_e,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:l,children:e.jsx(je,{name:"close"})})})]}),e.jsx(Je,{closeMenu:l,isMenuOpen:i,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(s=n.searchBarIcon)||void 0===s?void 0:s.url)||"",onSearch:n.onSearch||(()=>{})}),e.jsxs("div",{className:"flex-grow overflow-y-auto",children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:null==r?void 0:r.map((t,n)=>e.jsx("li",{children:e.jsx(Ye,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((t,n)=>e.jsx("li",{children:e.jsx(_e,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:ye("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Je=n=>{const{closeMenu:s,onSearch:r,isMenuOpen:o,searchBarIconURL:i}=n,[a,l]=t.useState(""),c=t.useRef(null),u=e=>{s(),e.preventDefault(),r(a)};return t.useEffect(()=>{o||l("")},[o]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Ee,{src:i,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Ke,{ref:c,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:a,onChange:e=>l(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},Qe=n=>{const{searchBarIconURL:s,onSearch:r}=n,[o,i]=t.useState(""),a=t.useRef(null),l=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:l,children:[e.jsx(Ee,{src:s,width:32,height:32,alt:"Search icon",role:"button",onClick:l}),e.jsx(Ke,{ref:a,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:o,onChange:e=>i(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},et={closed:{opacity:0},open:{opacity:1}},tt={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},nt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},st=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rt=t.createContext({}),ot=t.createContext(null),it="undefined"!=typeof document,at=it?t.useLayoutEffect:t.useEffect,lt=t.createContext({strict:!1});function ct(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ut(e){return"string"==typeof e||Array.isArray(e)}function dt(e){return"object"==typeof e&&"function"==typeof e.start}const ht=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mt=["initial",...ht];function pt(e){return dt(e.animate)||mt.some(t=>ut(e[t]))}function ft(e){return Boolean(pt(e)||e.variants)}function gt(e){const{initial:n,animate:s}=function(e,t){if(pt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ut(t)?t:void 0,animate:ut(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(rt));return t.useMemo(()=>({initial:n,animate:s}),[vt(n),vt(s)])}function vt(e){return Array.isArray(e)?e.join(" "):e}const xt={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"]},yt={};for(const e in xt)yt[e]={isEnabled:t=>xt[e].some(e=>!!t[e])};const bt=t.createContext({}),wt=t.createContext({}),jt=Symbol.for("motionComponentSymbol");function kt({preloadedFeatures:e,createVisualElement:n,useRender:s,useVisualState:r,Component:i}){e&&function(e){for(const t in e)yt[t]={...yt[t],...e[t]}}(e);const a=t.forwardRef(function(a,l){let c;const u={...t.useContext(st),...a,layoutId:Nt(a)},{isStatic:d}=u,h=gt(a),m=r(a,d);if(!d&&it){h.visualElement=function(e,n,s,r){const{visualElement:o}=t.useContext(rt),i=t.useContext(lt),a=t.useContext(ot),l=t.useContext(st).reducedMotion,c=t.useRef();r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:n,parent:o,props:s,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(s,a)}),at(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?at:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const s=t.useContext(wt),r=t.useContext(lt).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,r,e,s))}return o.createElement(rt.Provider,{value:h},c&&h.visualElement?o.createElement(c,{visualElement:h.visualElement,...u}):null,s(i,a,function(e,n,s){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),s&&("function"==typeof s?s(t):ct(s)&&(s.current=t))},[n])}(m,h.visualElement,l),m,d,h.visualElement))});return a[jt]=i,a}function Nt({layoutId:e}){const n=t.useContext(bt).id;return n&&void 0!==e?n+"-"+e:e}function Ct(e){function t(t,n={}){return kt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,s)=>(n.has(s)||n.set(s,t(s)),n.get(s))})}const Et=["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 Pt(e){return"string"==typeof e&&!e.includes("-")&&!!(Et.indexOf(e)>-1||/[A-Z]/.test(e))}const St={};const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set(Tt);function Mt(e,{layout:t,layoutId:n}){return At.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!St[e]||"opacity"===e)}const Dt=e=>Boolean(e&&e.getVelocity),Vt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rt=Tt.length;const Lt=e=>t=>"string"==typeof t&&t.startsWith(e),Bt=Lt("--"),Ft=Lt("var(--"),It=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ot=(e,t,n)=>Math.min(Math.max(n,e),t),$t={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},zt={...$t,transform:e=>Ot(0,1,e)},_t={...$t,default:1},Ut=e=>Math.round(1e5*e)/1e5,Wt=/(-)?([\d]*\.?[\d])+/g,Gt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ht=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yt(e){return"string"==typeof e}const qt=e=>({test:t=>Yt(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Xt=qt("deg"),Kt=qt("%"),Zt=qt("px"),Jt=qt("vh"),Qt=qt("vw"),en={...Kt,parse:e=>Kt.parse(e)/100,transform:e=>Kt.transform(100*e)},tn={...$t,transform:Math.round},nn={borderWidth:Zt,borderTopWidth:Zt,borderRightWidth:Zt,borderBottomWidth:Zt,borderLeftWidth:Zt,borderRadius:Zt,radius:Zt,borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomRightRadius:Zt,borderBottomLeftRadius:Zt,width:Zt,maxWidth:Zt,height:Zt,maxHeight:Zt,size:Zt,top:Zt,right:Zt,bottom:Zt,left:Zt,padding:Zt,paddingTop:Zt,paddingRight:Zt,paddingBottom:Zt,paddingLeft:Zt,margin:Zt,marginTop:Zt,marginRight:Zt,marginBottom:Zt,marginLeft:Zt,rotate:Xt,rotateX:Xt,rotateY:Xt,rotateZ:Xt,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:Xt,skewX:Xt,skewY:Xt,distance:Zt,translateX:Zt,translateY:Zt,translateZ:Zt,x:Zt,y:Zt,z:Zt,perspective:Zt,transformPerspective:Zt,opacity:zt,originX:en,originY:en,originZ:Zt,zIndex:tn,fillOpacity:zt,strokeOpacity:zt,numOctaves:tn};function sn(e,t,n,s){const{style:r,vars:o,transform:i,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Bt(e)){o[e]=n;continue}const s=nn[e],d=It(n,s);if(At.has(e)){if(l=!0,i[e]=d,!u)continue;n!==(s.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):r[e]=d}if(t.transform||(l||s?r.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},s,r){let o="";for(let t=0;t<Rt;t++){const n=Tt[t];void 0!==e[n]&&(o+=`${Vt[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),r?o=r(e,s?"":o):n&&s&&(o="none"),o}(e.transform,n,u,s):r.transform&&(r.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function on(e,t,n){for(const s in t)Dt(t[s])||Mt(s,n)||(e[s]=t[s])}function an(e,n,s){const r={};return on(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n,s){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return sn(t,n,{enableHardwareAcceleration:!s},e),Object.assign({},t.vars,t.style)},[n])}(e,n,s)),e.transformValues?e.transformValues(r):r}function ln(e,t,n){const s={},r=an(e,t,n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=r,s}const cn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function un(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||cn.has(e)}let dn=e=>!un(e);try{(hn=require("@emotion/is-prop-valid").default)&&(dn=e=>e.startsWith("on")?!un(e):hn(e))}catch(e){}var hn;function mn(e,t,n){return"string"==typeof e?e:Zt.transform(t+n*e)}const pn={offset:"stroke-dashoffset",array:"stroke-dasharray"},fn={offset:"strokeDashoffset",array:"strokeDasharray"};function gn(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},u,d,h){if(sn(e,c,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${mn(t,e.x,e.width)} ${mn(n,e.y,e.height)}`}(f,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==s&&(m.scale=s),void 0!==i&&function(e,t,n=1,s=0,r=!0){e.pathLength=1;const o=r?pn:fn;e[o.offset]=Zt.transform(-s);const i=Zt.transform(t),a=Zt.transform(n);e[o.array]=`${i} ${a}`}(m,i,a,l,!1)}const vn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),xn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function yn(e,n,s,r){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return gn(t,n,{enableHardwareAcceleration:!1},xn(r),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};on(t,e.style,e),o.style={...t,...o.style}}return o}function bn(e=!1){return(n,s,r,{latestValues:o},i)=>{const a=(Pt(n)?yn:ln)(s,o,i,n),l=function(e,t,n){const s={};for(const r in e)"values"===r&&"object"==typeof e.values||(dn(r)||!0===n&&un(r)||!t&&!un(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}(s,"string"==typeof n,e),c={...l,...a,ref:r},{children:u}=s,d=t.useMemo(()=>Dt(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const wn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function jn(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const t in n)e.style.setProperty(t,n[t])}const kn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Nn(e,t,n,s){jn(e,t,void 0,s);for(const n in t.attrs)e.setAttribute(kn.has(n)?n:wn(n),t.attrs[n])}function Cn(e,t){const{style:n}=e,s={};for(const r in n)(Dt(n[r])||t.style&&Dt(t.style[r])||Mt(r,e))&&(s[r]=n[r]);return s}function En(e,t){const n=Cn(e,t);for(const s in e)if(Dt(e[s])||Dt(t[s])){n[-1!==Tt.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=e[s]}return n}function Pn(e,t,n,s={},r={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,s,r)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,s,r)),t}const Sn=e=>Array.isArray(e),Tn=e=>Sn(e)?e[e.length-1]||0:e;function An(e){const t=Dt(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Mn=e=>(n,s)=>{const r=t.useContext(rt),o=t.useContext(ot),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},s,r,o){const i={latestValues:Dn(s,r,o,e),renderState:t()};return n&&(i.mount=e=>n(s,e,i)),i}(e,n,r,o);return s?i():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(i)};function Dn(e,t,n,s){const r={},o=s(e,{});for(const e in o)r[e]=An(o[e]);let{initial:i,animate:a}=e;const l=pt(e),c=ft(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?a:i;if(d&&"boolean"!=typeof d&&!dt(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Pn(e,t);if(!n)return;const{transitionEnd:s,transition:o,...i}=n;for(const e in i){let t=i[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(r[e]=t)}for(const e in s)r[e]=s[e]})}return r}const Vn={useVisualState:Mn({scrapeMotionValuesFromProps:En,createRenderState:vn,onMount:(e,t,{renderState:n,latestValues:s})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}gn(n,s,{enableHardwareAcceleration:!1},xn(t.tagName),e.transformTemplate),Nn(t,n)}})},Rn={useVisualState:Mn({scrapeMotionValuesFromProps:Cn,createRenderState:rn})};function Ln(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Bn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Fn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function In(e,t,n,s){return Ln(e,t,(e=>t=>Bn(t)&&e(t,Fn(t)))(n),s)}const On=(e,t)=>n=>t(e(n)),$n=(...e)=>e.reduce(On);function zn(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const _n=zn("dragHorizontal"),Un=zn("dragVertical");function Wn(e){let t=!1;if("y"===e)t=Un();else if("x"===e)t=_n();else{const e=_n(),n=Un();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Gn(){const e=Wn(!0);return!e||(e(),!1)}class Hn{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Yn={delta:0,timestamp:0,isProcessing:!1};let qn=!0,Xn=!1;const Kn=["read","update","preRender","render","postRender"],Zn=Kn.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],s=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&r,c=l?t:n;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&r&&(s=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(r)o=!0;else{if(r=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let n=0;n<s;n++){const s=t[n];s(l),i.has(s)&&(a.schedule(s),e())}r=!1,o&&(o=!1,a.process(l))}}};return a}(()=>Xn=!0),e),{}),Jn=e=>Zn[e].process(Yn),Qn=e=>{Xn=!1,Yn.delta=qn?1e3/60:Math.max(Math.min(e-Yn.timestamp,40),1),Yn.timestamp=e,Yn.isProcessing=!0,Kn.forEach(Jn),Yn.isProcessing=!1,Xn&&(qn=!1,requestAnimationFrame(Qn))},es=Kn.reduce((e,t)=>{const n=Zn[t];return e[t]=(e,t=!1,s=!1)=>(Xn||(Xn=!0,qn=!0,Yn.isProcessing||requestAnimationFrame(Qn)),n.schedule(e,t,s)),e},{});function ts(e){Kn.forEach(t=>Zn[t].cancel(e))}function ns(e,t){const n="pointer"+(t?"enter":"leave"),s="onHover"+(t?"Start":"End");return In(e.current,n,(n,r)=>{if("touch"===n.type||Gn())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[s]&&es.update(()=>o[s](n,r))},{passive:!e.getProps()[s]})}const ss=(e,t)=>!!t&&(e===t||ss(e,t.parentElement)),rs=e=>e;function os(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fn(n))}const is=new WeakMap,as=new WeakMap,ls=e=>{const t=is.get(e.target);t&&t(e)},cs=e=>{e.forEach(ls)};function us(e,t,n){const s=function({root:e,...t}){const n=e||document;as.has(n)||as.set(n,{});const s=as.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(cs,{root:e,...t})),s[r]}(t);return is.set(e,n),s.observe(e),()=>{is.delete(e),s.unobserve(e)}}const ds={some:0,all:1};const hs={inView:{Feature:class extends Hn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:s="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:ds[s]};return us(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),o=t?n:s;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Hn{constructor(){super(...arguments),this.removeStartListeners=rs,this.removeEndListeners=rs,this.removeAccessibleListeners=rs,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=In(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:s}=this.node.getProps();es.update(()=>{ss(this.node.current,e.target)?n&&n(e,t):s&&s(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),r=In(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$n(s,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Ln(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Ln(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&os("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&es.update(()=>n(e,t))})}),os("down",(e,t)=>{this.startPress(e,t)})}),t=Ln(this.node.current,"blur",()=>{this.isPressing&&os("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=$n(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&es.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Gn()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&es.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=In(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Ln(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$n(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Hn{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=$n(Ln(this.node.current,"focus",()=>this.onFocus()),Ln(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Hn{mount(){this.unmount=$n(ns(this.node,!0),ns(this.node,!1))}unmount(){}}}};function ms(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function ps(e,t,n){const s=e.getProps();return Pn(s,t,void 0!==n?n:s.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const fs="data-"+wn("framerAppearId");let gs=rs,vs=rs;"production"!==process.env.NODE_ENV&&(gs=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},vs=(e,t)=>{if(!e)throw new Error(t)});const xs=e=>1e3*e,ys=e=>e/1e3,bs=!1,ws=e=>Array.isArray(e)&&"number"==typeof e[0];function js(e){return Boolean(!e||"string"==typeof e&&Ns[e]||ws(e)||Array.isArray(e)&&e.every(js))}const ks=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Ns={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function Cs(e){if(e)return ws(e)?ks(e):Array.isArray(e)?e.map(Cs):Ns[e]}const Es={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ps={},Ss={};for(const e in Es)Ss[e]=()=>(void 0===Ps[e]&&(Ps[e]=Es[e]()),Ps[e]);const Ts=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function As(e,t,n,s){if(e===t&&n===s)return rs;const r=t=>function(e,t,n,s,r){let o,i,a=0;do{i=t+(n-t)/2,o=Ts(i,s,r)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++a<12);return i}(t,0,1,e,n);return e=>0===e||1===e?e:Ts(r(e),t,s)}const Ms=As(.42,0,1,1),Ds=As(0,0,.58,1),Vs=As(.42,0,.58,1),Rs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ls=e=>t=>1-e(1-t),Bs=e=>1-Math.sin(Math.acos(e)),Fs=Ls(Bs),Is=Rs(Fs),Os=As(.33,1.53,.69,.99),$s=Ls(Os),zs=Rs($s),_s={linear:rs,easeIn:Ms,easeInOut:Vs,easeOut:Ds,circIn:Bs,circInOut:Is,circOut:Fs,backIn:$s,backInOut:zs,backOut:Os,anticipate:e=>(e*=2)<1?.5*$s(e):.5*(2-Math.pow(2,-10*(e-1)))},Us=e=>{if(Array.isArray(e)){vs(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,r]=e;return As(t,n,s,r)}return"string"==typeof e?(vs(void 0!==_s[e],`Invalid easing type '${e}'`),_s[e]):e},Ws=(e,t)=>n=>Boolean(Yt(n)&&Ht.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Gs=(e,t,n)=>s=>{if(!Yt(s))return s;const[r,o,i,a]=s.match(Wt);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},Hs={...$t,transform:e=>Math.round((e=>Ot(0,255,e))(e))},Ys={test:Ws("rgb","red"),parse:Gs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Hs.transform(e)+", "+Hs.transform(t)+", "+Hs.transform(n)+", "+Ut(zt.transform(s))+")"};const qs={test:Ws("#"),parse:function(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:Ys.transform},Xs={test:Ws("hsl","hue"),parse:Gs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Kt.transform(Ut(t))+", "+Kt.transform(Ut(n))+", "+Ut(zt.transform(s))+")"},Ks={test:e=>Ys.test(e)||qs.test(e)||Xs.test(e),parse:e=>Ys.test(e)?Ys.parse(e):Xs.test(e)?Xs.parse(e):qs.parse(e),transform:e=>Yt(e)?e:e.hasOwnProperty("red")?Ys.transform(e):Xs.transform(e)},Zs=(e,t,n)=>-n*e+n*t+e;function Js(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Qs=(e,t,n)=>{const s=e*e;return Math.sqrt(Math.max(0,n*(t*t-s)+s))},er=[qs,Ys,Xs];function tr(e){const t=(n=e,er.find(e=>e.test(n)));var n;vs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let s=t.parse(e);return t===Xs&&(s=function({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,n/=100;let r=0,o=0,i=0;if(t/=100){const s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=Js(a,s,e+1/3),o=Js(a,s,e),i=Js(a,s,e-1/3)}else r=o=i=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*i),alpha:s}}(s)),s}const nr=(e,t)=>{const n=tr(e),s=tr(t),r={...n};return e=>(r.red=Qs(n.red,s.red,e),r.green=Qs(n.green,s.green,e),r.blue=Qs(n.blue,s.blue,e),r.alpha=Zs(n.alpha,s.alpha,e),Ys.transform(r))};const sr={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:rs},rr={regex:Gt,countKey:"Colors",token:"${c}",parse:Ks.parse},or={regex:Wt,countKey:"Numbers",token:"${n}",parse:$t.parse};function ir(e,{regex:t,countKey:n,token:s,parse:r}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,s),e.values.push(...o.map(r)))}function ar(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ir(n,sr),ir(n,rr),ir(n,or),n}function lr(e){return ar(e).values}function cr(e){const{values:t,numColors:n,numVars:s,tokenised:r}=ar(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=r<s?t.replace(sr.token,e[r]):r<s+n?t.replace(rr.token,Ks.transform(e[r])):t.replace(or.token,Ut(e[r]));return t}}const ur=e=>"number"==typeof e?0:e;const dr={test:function(e){var t,n;return isNaN(e)&&Yt(e)&&((null===(t=e.match(Wt))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Gt))||void 0===n?void 0:n.length)||0)>0},parse:lr,createTransformer:cr,getAnimatableNone:function(e){const t=lr(e);return cr(e)(t.map(ur))}},hr=(e,t)=>n=>`${n>0?t:e}`;function mr(e,t){return"number"==typeof e?n=>Zs(e,t,n):Ks.test(e)?nr(e,t):e.startsWith("var(")?hr(e,t):gr(e,t)}const pr=(e,t)=>{const n=[...e],s=n.length,r=e.map((e,n)=>mr(e,t[n]));return e=>{for(let t=0;t<s;t++)n[t]=r[t](e);return n}},fr=(e,t)=>{const n={...e,...t},s={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(s[r]=mr(e[r],t[r]));return e=>{for(const t in s)n[t]=s[t](e);return n}},gr=(e,t)=>{const n=dr.createTransformer(t),s=ar(e),r=ar(t);return s.numVars===r.numVars&&s.numColors===r.numColors&&s.numNumbers>=r.numNumbers?$n(pr(s.values,r.values),n):(gs(!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.`),hr(e,t))},vr=(e,t,n)=>{const s=t-e;return 0===s?1:(n-e)/s},xr=(e,t)=>n=>Zs(e,t,n);function yr(e,t,n){const s=[],r=n||("number"==typeof(o=e[0])?xr:"string"==typeof o?Ks.test(o)?nr:gr:Array.isArray(o)?pr:"object"==typeof o?fr:xr);var o;const i=e.length-1;for(let n=0;n<i;n++){let o=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||rs:t;o=$n(e,o)}s.push(o)}return s}function br(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const o=e.length;if(vs(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=yr(t,s,r),a=i.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const s=vr(e[n],e[n+1],t);return i[n](s)};return n?t=>l(Ot(e[0],e[o-1],t)):l}function wr(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=vr(0,t,s);e.push(Zs(n,1,r))}}(t,e.length-1),t}function jr({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(s)?s.map(Us):Us(s),o={done:!1,value:t[0]},i=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:wr(t),e),a=br(i,t,{ease:Array.isArray(r)?r:(l=t,c=r,l.map(()=>c||Vs).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function kr(e,t){return t?e*(1e3/t):0}function Nr(e,t,n){const s=Math.max(t-5,0);return kr(n-e(s),t-s)}const Cr=.001;function Er({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let r,o;gs(e<=xs(10),"Spring duration must be 10 seconds or less");let i=1-t;i=Ot(.05,1,i),e=Ot(.01,10,ys(e)),i<1?(r=t=>{const s=t*i,r=s*e,o=s-n,a=Sr(t,i),l=Math.exp(-r);return Cr-o/a*l},o=t=>{const s=t*i*e,o=s*n+n,a=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-s),c=Sr(Math.pow(t,2),i);return(-r(t)+Cr>0?-1:1)*((o-a)*l)/c}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let s=n;for(let n=1;n<Pr;n++)s-=e(s)/t(s);return s}(r,o,5/e);if(e=xs(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*s;return{stiffness:t,damping:2*i*Math.sqrt(s*t),duration:e}}}const Pr=12;function Sr(e,t){return e*Math.sqrt(1-t*t)}const Tr=["duration","bounce"],Ar=["stiffness","damping","mass"];function Mr(e,t){return t.some(t=>void 0!==e[t])}function Dr({keyframes:e,restDelta:t,restSpeed:n,...s}){const r=e[0],o=e[e.length-1],i={done:!1,value:r},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mr(e,Ar)&&Mr(e,Tr)){const n=Er(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(s),m=u?-ys(u):0,p=l/(2*Math.sqrt(a*c)),f=o-r,g=ys(Math.sqrt(a/c)),v=Math.abs(f)<5;let x;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=Sr(g,p);x=t=>{const n=Math.exp(-p*g*t);return o-n*((m+p*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===p)x=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(p*p-1);x=t=>{const n=Math.exp(-p*g*t),s=Math.min(e*t,300);return o-n*((m+p*g*f)*Math.sinh(s)+e*f*Math.cosh(s))/e}}return{calculatedDuration:h&&d||null,next:e=>{const s=x(e);if(h)i.done=e>=d;else{let r=m;0!==e&&(r=p<1?Nr(x,e,s):0);const a=Math.abs(r)<=n,l=Math.abs(o-s)<=t;i.done=a&&l}return i.value=i.done?o:s,i}}}function Vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const f=d+p,g=void 0===i?f:i(f);g!==f&&(p=g-d);const v=e=>-p*Math.exp(-e/s),x=e=>g+v(e),y=e=>{const t=v(e),n=x(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let b,w;const j=e=>{var t;(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(b=e,w=Dr({keyframes:[h.value,m(h.value)],velocity:Nr(x,e,h.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,y(e),j(e)),void 0!==b&&e>b?w.next(e-b):(!t&&y(e),h)}}}const Rr=e=>{const t=({timestamp:t})=>e(t);return{start:()=>es.update(t,!0),stop:()=>ts(t),now:()=>Yn.isProcessing?Yn.timestamp:performance.now()}};function Lr(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const Br={decay:Vr,inertia:Vr,tween:jr,keyframes:jr,spring:Dr};function Fr({autoplay:e=!0,delay:t=0,driver:n=Rr,keyframes:s,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...h}){let m,p,f=1,g=!1;const v=()=>{m&&m(),p=new Promise(e=>{m=e})};let x;v();const y=Br[r]||jr;let b;y!==jr&&"number"!=typeof s[0]&&(b=br([0,100],s,{clamp:!1}),s=[0,100]);const w=y({...h,keyframes:s});let j;"mirror"===a&&(j=y({...h,keyframes:[...s].reverse(),velocity:-(h.velocity||0)}));let k="idle",N=null,C=null,E=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=Lr(w));const{calculatedDuration:P}=w;let S=1/0,T=1/0;null!==P&&(S=P+i,T=S*(o+1)-i);let A=0;const M=e=>{if(null===C)return;f>0&&(C=Math.min(C,e)),A=null!==N?N:(e-C)*f;const n=A-t,r=n<0;A=Math.max(n,0),"finished"===k&&null===N&&(A=T);let l=A,c=w;if(o){const e=A/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const s=Boolean(t%2);s&&("reverse"===a?(n=1-n,i&&(n-=i/S)):"mirror"===a&&(c=j));let r=Ot(0,1,n);A>T&&(r="reverse"===a&&s?1:0),l=r*S}const u=r?{done:!1,value:s[0]}:c.next(l);b&&(u.value=b(u.value));let{done:h}=u;r||null===P||(h=A>=T);const m=null===N&&("finished"===k||"running"===k&&h||f<0&&A<=0);return d&&d(u.value),m&&R(),u},D=()=>{x&&x.stop(),x=void 0},V=()=>{k="idle",D(),v(),C=E=null},R=()=>{k="finished",u&&u(),D(),v()},L=()=>{if(g)return;x||(x=n(M));const e=x.now();l&&l(),null!==N?C=e-N:C&&"finished"!==k||(C=e),E=C,N=null,k="running",x.start()};e&&L();const B={then:(e,t)=>p.then(e,t),get time(){return ys(A)},set time(e){e=xs(e),A=e,null===N&&x&&0!==f?C=x.now()-e/f:N=e},get duration(){const e=null===w.calculatedDuration?Lr(w):w.calculatedDuration;return ys(e)},get speed(){return f},set speed(e){e!==f&&x&&(f=e,B.time=ys(A))},get state(){return k},play:L,pause:()=>{k="paused",N=A},stop:()=>{g=!0,"idle"!==k&&(k="idle",c&&c(),V())},cancel:()=>{null!==E&&M(E),V()},complete:()=>{k="finished"},sample:e=>(C=0,M(e))};return B}const Ir=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Or(e,t,{onUpdate:n,onComplete:s,...r}){if(!(Ss.waapi()&&Ir.has(t)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let o,i,a=!1;const l=()=>{i=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:h}=r;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!js(t.ease))(t,r)){const e=Fr({...r,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let s=0;for(;!t.done&&s<2e4;)t=e.sample(s),n.push(t.value),s+=10;h=void 0,c=n,u=s-10,d="linear"}const m=function(e,t,n,{delay:s=0,duration:r,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Cs(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(e.owner.current,t,c,{...r,duration:u,ease:d,times:h}),p=()=>m.cancel(),f=()=>{es.update(p),o(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,r)),s&&s(),f()},{then:(e,t)=>i.then(e,t),get time(){return ys(m.currentTime||0)},set time(e){m.currentTime=xs(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return ys(u)},play:()=>{a||(m.play(),ts(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Fr({...r,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const $r={type:"spring",stiffness:500,damping:25,restSpeed:10},zr={type:"keyframes",duration:.8},_r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ur=(e,{keyframes:t})=>t.length>2?zr:At.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:$r:_r,Wr=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!dr.test(t)&&"0"!==t||t.startsWith("url("))),Gr=new Set(["brightness","contrast","saturate","opacity"]);function Hr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[s]=n.match(Wt)||[];if(!s)return e;const r=n.replace(s,"");let o=Gr.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+r+")"}const Yr=/([a-z-]*)\(.*?\)/g,qr={...dr,getAnimatableNone:e=>{const t=e.match(Yr);return t?t.map(Hr).join(" "):e}},Xr={...nn,color:Ks,backgroundColor:Ks,outlineColor:Ks,fill:Ks,stroke:Ks,borderColor:Ks,borderTopColor:Ks,borderRightColor:Ks,borderBottomColor:Ks,borderLeftColor:Ks,filter:qr,WebkitFilter:qr},Kr=e=>Xr[e];function Zr(e,t){let n=Kr(e);return n!==qr&&(n=dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jr=e=>/^0[^.\s]+$/.test(e);function Qr(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Jr(e):void 0}function eo(e,t){return e[t]||e.default||e}const to=(e,t,n,s={})=>r=>{const o=eo(s,e)||{},i=o.delay||s.delay||0;let{elapsed:a=0}=s;a-=xs(i);const l=function(e,t,n,s){const r=Wr(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const i=void 0!==s.from?s.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?i:o[e-1]),Qr(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(r&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=Zr(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=Wr(e,c),h=Wr(e,u);gs(d===h,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,...Ur(e,m)}),m.duration&&(m.duration=xs(m.duration)),m.repeatDelay&&(m.repeatDelay=xs(m.repeatDelay)),!d||!h||bs||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:s}){const r=()=>(n&&n(e[e.length-1]),s&&s(),{time:0,speed:1,duration:0,play:rs,pause:rs,stop:rs,then:e=>(e(),Promise.resolve()),cancel:rs,complete:rs});return t?Fr({keyframes:[0,1],duration:0,delay:t,onComplete:r}):r()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Or(t,e,m);if(n)return n}return Fr(m)};function no(e){return Boolean(Dt(e)&&e.add)}const so=e=>/^\-?\d*\.?\d+$/.test(e);function ro(e,t){-1===e.indexOf(t)&&e.push(t)}function oo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class io{constructor(){this.subscriptions=[]}add(e){return ro(this.subscriptions,e),()=>oo(this.subscriptions,e)}notify(e,t,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,n);else for(let r=0;r<s;r++){const s=this.subscriptions[r];s&&s(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ao=new Set;function lo(e,t,n){e||ao.has(t)||(console.warn(t),ao.add(t))}class co{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:s}=Yn;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,es.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>es.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&lo(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new io);const n=this.events[e].add(t);return"change"===e?()=>{n(),es.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?kr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new co(e,t)}const ho=e=>t=>t.test(e),mo=[$t,Zt,Kt,Xt,Qt,Jt,{test:e=>"auto"===e,parse:e=>e}],po=e=>mo.find(ho(e)),fo=[...mo,Ks,dr],go=e=>fo.find(ho(e));function vo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function xo(e,t){if(!t)return;return(t[e]||t.default||t).from}function yo({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,s}function bo(e,t,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");s&&(o=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const t in a){const s=e.getValue(t),r=a[t];if(!s||void 0===r||u&&yo(u,t))continue;const i={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!s.hasAnimated){const n=e.getProps()[fs];n&&(i.elapsed=window.HandoffAppearAnimations(n,t,s,es))}s.start(to(t,s,r,e.shouldReduceMotion&&At.has(t)?{type:!1}:i));const d=s.animation;no(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return i&&Promise.all(c).then(()=>{i&&function(e,t){const n=ps(e,t);let{transitionEnd:s={},transition:r={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const t in o)vo(e,t,Tn(o[t]))}(e,i)}),c}function wo(e,t,n={}){const s=ps(e,t,n.custom);let{transition:r=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(bo(e,s,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=r;return function(e,t,n=0,s=0,r=1,o){const i=[],a=(e.variantChildren.size-1)*s,l=1===r?(e=0)=>e*s:(e=0)=>a-e*s;return Array.from(e.variantChildren).sort(jo).forEach((e,s)=>{e.notify("AnimationStart",t),i.push(wo(e,t,{...o,delay:n+l(s)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,o+s,i,a,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[e,t]="beforeChildren"===a?[o,i]:[i,o];return e().then(()=>t())}return Promise.all([o(),i(n.delay)])}function jo(e,t){return e.sortNodePosition(t)}const ko=[...ht].reverse(),No=ht.length;function Co(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map(t=>wo(e,t,n));s=Promise.all(r)}else if("string"==typeof t)s=wo(e,t,n);else{const r="function"==typeof t?ps(e,t,n.custom):t;s=Promise.all(bo(e,r,n))}return s.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Eo(e){let t=Co(e);const n={animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()};let s=!0;const r=(t,n)=>{const s=ps(e,n);if(s){const{transition:e,transitionEnd:n,...r}=s;t={...t,...r,...n}}return t};function o(o,i){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},h=1/0;for(let t=0;t<No;t++){const m=ko[t],p=n[m],f=void 0!==a[m]?a[m]:l[m],g=ut(f),v=m===i?p.isActive:null;!1===v&&(h=t);let x=f===l[m]&&f!==a[m]&&g;if(x&&s&&e.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...d},!p.isActive&&null===v||!f&&!p.prevProp||dt(f)||"boolean"==typeof f)continue;const y=Po(p.prevProp,f);let b=y||m===i&&p.isActive&&!x&&g||t>h&&g;const w=Array.isArray(f)?f:[f];let j=w.reduce(r,{});!1===v&&(j={});const{prevResolvedValues:k={}}=p,N={...k,...j},C=e=>{b=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in N){const t=j[e],n=k[e];d.hasOwnProperty(e)||(t!==n?Sn(t)&&Sn(n)?!ms(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=f,p.prevResolvedValues=j,p.isActive&&(d={...d,...j}),s&&e.blockInitialAnimation&&(b=!1),b&&!x&&c.push(...w.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const s=e.getBaseTarget(n);void 0!==s&&(t[n]=s)}),c.push({animation:t})}let m=Boolean(c.length);return s&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),s=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,s,r){var i;if(n[t].isActive===s)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,s)}),n[t].isActive=s;const a=o(r,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Po(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ms(t,e)}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let To=0;const Ao={animation:{Feature:class extends Hn{constructor(e){super(e),e.animationState||(e.animationState=Eo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),dt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Hn{constructor(){super(...arguments),this.id=To++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const r=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Mo=(e,t)=>Math.abs(e-t);class Do{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Mo(e.x,t.x),s=Mo(e.y,t.y);return Math.sqrt(n**2+s**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:s}=e,{timestamp:r}=Yn;this.history.push({...s,timestamp:r});const{onStart:o,onMove:i}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Vo(t,this.transformPagePoint),es.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:s}=this.handlers,r=Lo("pointercancel"===e.type?this.lastMoveEventInfo:Vo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,r),s&&s(e,r)},!Bn(e))return;this.handlers=t,this.transformPagePoint=n;const s=Vo(Fn(e),this.transformPagePoint),{point:r}=s,{timestamp:o}=Yn;this.history=[{...r,timestamp:o}];const{onSessionStart:i}=t;i&&i(e,Lo(s,this.history)),this.removeListeners=$n(In(window,"pointermove",this.handlePointerMove),In(window,"pointerup",this.handlePointerUp),In(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ts(this.updatePoint)}}function Vo(e,t){return t?{point:t(e.point)}:e}function Ro(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lo({point:e},t){return{point:e,delta:Ro(e,Fo(t)),offset:Ro(e,Bo(t)),velocity:Io(t,.1)}}function Bo(e){return e[0]}function Fo(e){return e[e.length-1]}function Io(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=Fo(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>xs(t)));)n--;if(!s)return{x:0,y:0};const o=ys(r.timestamp-s.timestamp);if(0===o)return{x:0,y:0};const i={x:(r.x-s.x)/o,y:(r.y-s.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Oo(e){return e.max-e.min}function $o(e,t=0,n=.01){return Math.abs(e-t)<=n}function zo(e,t,n,s=.5){e.origin=s,e.originPoint=Zs(t.min,t.max,e.origin),e.scale=Oo(n)/Oo(t),($o(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Zs(n.min,n.max,e.origin)-e.originPoint,($o(e.translate)||isNaN(e.translate))&&(e.translate=0)}function _o(e,t,n,s){zo(e.x,t.x,n.x,s?s.originX:void 0),zo(e.y,t.y,n.y,s?s.originY:void 0)}function Uo(e,t,n){e.min=n.min+t.min,e.max=e.min+Oo(t)}function Wo(e,t,n){e.min=t.min-n.min,e.max=e.min+Oo(t)}function Go(e,t,n){Wo(e.x,t.x,n.x),Wo(e.y,t.y,n.y)}function Ho(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Yo(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}const qo=.35;function Xo(e,t,n){return{min:Ko(e,t),max:Ko(e,n)}}function Ko(e,t){return"number"==typeof e?e:e[t]||0}const Zo=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Jo(e){return[e("x"),e("y")]}function Qo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function ei(e){return void 0===e||1===e}function ti({scale:e,scaleX:t,scaleY:n}){return!ei(e)||!ei(t)||!ei(n)}function ni(e){return ti(e)||si(e)||e.z||e.rotate||e.rotateX||e.rotateY}function si(e){return ri(e.x)||ri(e.y)}function ri(e){return e&&"0%"!==e}function oi(e,t,n){return n+t*(e-n)}function ii(e,t,n,s,r){return void 0!==r&&(e=oi(e,r,s)),oi(e,n,s)+t}function ai(e,t=0,n=1,s,r){e.min=ii(e.min,t,n,s,r),e.max=ii(e.max,t,n,s,r)}function li(e,{x:t,y:n}){ai(e.x,t.translate,t.scale,t.originPoint),ai(e.y,n.translate,n.scale,n.originPoint)}function ci(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ui(e,t){e.min=e.min+t,e.max=e.max+t}function di(e,t,[n,s,r]){const o=void 0!==t[r]?t[r]:.5,i=Zs(e.min,e.max,o);ai(e,t[n],t[s],i,t.scale)}const hi=["x","scaleX","originX"],mi=["y","scaleY","originY"];function pi(e,t){di(e.x,t,hi),di(e.y,t,mi)}function fi(e,t){return Qo(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}const gi=new WeakMap;class vi{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Do(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Fn(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:s,onDragStart:r}=this.getProps();if(n&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wn(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jo(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Kt.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const s=n.layout.layoutBox[e];if(s){t=Oo(s)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),r&&es.update(()=>r(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:s,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:i}=t;if(s&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=t;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&es.update(()=>r(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:s}=this.getProps();if(!n||!xi(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},s){return void 0!==t&&e<t?e=s?Zs(t,e,s.min):Math.max(e,t):void 0!==n&&e>n&&(e=s?Zs(n,e,s.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&ct(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:s,right:r}){return{x:Ho(e.x,n,r),y:Ho(e.y,t,s)}}(n.layoutBox,e),this.elastic=function(e=qo){return!1===e?e=0:!0===e&&(e=qo),{x:Xo(e,"left","right"),y:Xo(e,"top","bottom")}}(t),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Jo(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ct(e))return!1;const n=e.current;vs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=function(e,t,n){const s=fi(e,n),{scroll:r}=t;return r&&(ui(s.x,r.offset.x),ui(s.y,r.offset.y)),s}(n,s.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Yo(e.x,t.x),y:Yo(e.y,t.y)}}(s.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Qo(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},l=Jo(i=>{if(!xi(i,t,this.currentDirection))return;let l=a&&a[i]||{};o&&(l={min:0,max:0});const c=s?200:1e6,u=s?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(i,d)});return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(to(e,n,0,t))}stopAnimation(){Jo(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[t];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Jo(t=>{const{drag:n}=this.getProps();if(!xi(t,n,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){const{min:n,max:o}=s.layout.layoutBox[t];r.set(e[t]-Zs(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ct(t)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Jo(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();s[e]=function(e,t){let n=.5;const s=Oo(e),r=Oo(t);return r>s?n=vr(t.min,t.max-s,e.min):s>r&&(n=vr(e.min,e.max-r,t.min)),Ot(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Jo(t=>{if(!xi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(Zs(r,o,s[t]))})}addListeners(){if(!this.visualElement.current)return;gi.set(this.visualElement,this);const e=In(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();ct(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const r=Ln(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Jo(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),s(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=qo,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:i}}}function xi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const yi=e=>(t,n)=>{e&&es.update(()=>e(t,n))};const bi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ji={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Zt.test(e))return e;e=parseFloat(e)}return`${wi(e,t.target.x)}% ${wi(e,t.target.y)}%`}},ki={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=dr.parse(e);if(r.length>5)return s;const o=dr.createTransformer(e),i="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+i]/=a,r[1+i]/=l;const c=Zs(a,l,.5);return"number"==typeof r[2+i]&&(r[2+i]/=c),"number"==typeof r[3+i]&&(r[3+i]/=c),o(r)}};class Ni extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:s}=this.props,{projection:r}=e;var o;o=Ei,Object.assign(St,o),r&&(t.group&&t.group.add(r),n&&n.register&&s&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),bi.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:s,isPresent:r}=this.props,o=n.projection;return o?(o.isPresent=r,s||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||es.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ci(e){const[n,s]=function(){const e=t.useContext(ot);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=e,o=t.useId();return t.useEffect(()=>r(o),[]),!n&&s?[!1,()=>s&&s(o)]:[!0]}(),r=t.useContext(bt);return t.createElement(Ni,{...e,layoutGroup:r,switchLayoutGroup:t.useContext(wt),isPresent:n,safeToRemove:s})}const Ei={borderRadius:{...ji,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ji,borderTopRightRadius:ji,borderBottomLeftRadius:ji,borderBottomRightRadius:ji,boxShadow:ki},Pi=["TopLeft","TopRight","BottomLeft","BottomRight"],Si=Pi.length,Ti=e=>"string"==typeof e?parseFloat(e):e,Ai=e=>"number"==typeof e||Zt.test(e);function Mi(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Di=Ri(0,.5,Fs),Vi=Ri(.5,.95,rs);function Ri(e,t,n){return s=>s<e?0:s>t?1:n(vr(e,t,s))}function Li(e,t){e.min=t.min,e.max=t.max}function Bi(e,t){Li(e.x,t.x),Li(e.y,t.y)}function Fi(e,t,n,s,r){return e=oi(e-=t,1/n,s),void 0!==r&&(e=oi(e,1/r,s)),e}function Ii(e,t,[n,s,r],o,i){!function(e,t=0,n=1,s=.5,r,o=e,i=e){Kt.test(t)&&(t=parseFloat(t),t=Zs(i.min,i.max,t/100)-i.min);if("number"!=typeof t)return;let a=Zs(o.min,o.max,s);e===o&&(a-=t),e.min=Fi(e.min,t,n,a,r),e.max=Fi(e.max,t,n,a,r)}(e,t[n],t[s],t[r],t.scale,o,i)}const Oi=["x","scaleX","originX"],$i=["y","scaleY","originY"];function zi(e,t,n,s){Ii(e.x,t,Oi,n?n.x:void 0,s?s.x:void 0),Ii(e.y,t,$i,n?n.y:void 0,s?s.y:void 0)}function _i(e){return 0===e.translate&&1===e.scale}function Ui(e){return _i(e.x)&&_i(e.y)}function Wi(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Gi(e){return Oo(e.x)/Oo(e.y)}class Hi{constructor(){this.members=[]}add(e){ro(this.members,e),e.scheduleRender()}remove(e){if(oo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;!1===s&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yi(e,t,n){let s="";const r=e.x.translate/t.x,o=e.y.translate/t.y;if((r||o)&&(s=`translate3d(${r}px, ${o}px, 0) `),1===t.x&&1===t.y||(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:r}=n;e&&(s+=`rotate(${e}deg) `),t&&(s+=`rotateX(${t}deg) `),r&&(s+=`rotateY(${r}deg) `)}const i=e.x.scale*t.x,a=e.y.scale*t.y;return 1===i&&1===a||(s+=`scale(${i}, ${a})`),s||"none"}const qi=(e,t)=>e.depth-t.depth;class Xi{constructor(){this.children=[],this.isDirty=!1}add(e){ro(this.children,e),this.isDirty=!0}remove(e){oo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qi),this.isDirty=!1,this.children.forEach(e)}}const Ki=["","X","Y","Z"];let Zi=0;const Ji={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Qi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Zi++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Ji.totalNodes=Ji.resolvedTargetDeltas=Ji.recalculatedProjection=0,this.nodes.forEach(na),this.nodes.forEach(ca),this.nodes.forEach(ua),this.nodes.forEach(sa),e=Ji,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xi)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new io),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var s;this.isSVG=(s=t)instanceof SVGElement&&"svg"!==s.tagName,this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||r)&&(this.isLayoutDirty=!0),e){let n;const s=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),s=({timestamp:r})=>{const o=r-n;o>=t&&(ts(s),e(o-t))};return es.read(s,!0),()=>ts(s)}(s,250),bi.hasAnimatedSinceResize&&(bi.hasAnimatedSinceResize=!1,this.nodes.forEach(la))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||i.getDefaultTransition()||ga,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Wi(this.targetLayout,s)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...eo(r,"layout"),onPlay:o,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||la(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ts(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(da),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(oa);this.isUpdating||this.nodes.forEach(ia),this.isUpdating=!1,this.nodes.forEach(aa),this.nodes.forEach(ea),this.nodes.forEach(ta),this.clearAllSnapshots();const e=performance.now();Yn.delta=Ot(0,1e3/60,e-Yn.timestamp),Yn.timestamp=e,Yn.isProcessing=!0,Zn.update.process(Yn),Zn.preRender.process(Yn),Zn.render.process(Yn),Yn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ra),this.sharedNodes.forEach(ha)}scheduleUpdateProjection(){es.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){es.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ui(this.projectionDelta),n=this.getTransformTemplate(),s=n?n(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;e&&(t||ni(this.latestValues)||o)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var s;return e&&(n=this.removeTransform(n)),va((s=n).x),va(s.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ui(t.x,n.offset.x),ui(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Bi(t,e);for(let n=0;n<this.path.length;n++){const s=this.path[n],{scroll:r,options:o}=s;if(s!==this.root&&r&&o.layoutScroll){if(r.isRoot){Bi(t,e);const{scroll:n}=this.root;n&&(ui(t.x,-n.offset.x),ui(t.y,-n.offset.y))}ui(t.x,r.offset.x),ui(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Bi(n,e);for(let e=0;e<this.path.length;e++){const s=this.path[e];!t&&s.options.layoutScroll&&s.scroll&&s!==s.root&&pi(n,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),ni(s.latestValues)&&pi(n,s.latestValues)}return ni(this.latestValues)&&pi(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Bi(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!ni(n.latestValues))continue;ti(n.latestValues)&&n.updateSnapshot();const s=Zo();Bi(s,n.measurePageBox()),zi(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,s)}return ni(this.latestValues)&&zi(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!==Yn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const s=Boolean(this.resumingFrom)||this!==n;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=Yn.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Go(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,l=this.relativeParent.target,Uo(i.x,a.x,l.x),Uo(i.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Bi(this.target,this.layout.layoutBox),li(this.target,this.targetDelta)):Bi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Go(this.relativeTargetOrigin,this.target,e.target),Bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ji.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ti(this.parent.latestValues)&&!si(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let s=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(s=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===Yn.timestamp&&(s=!1),s)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;Bi(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,s=!1){const r=n.length;if(!r)return;let o,i;t.x=t.y=1;for(let a=0;a<r;a++){o=n[a],i=o.projectionDelta;const r=o.instance;r&&r.style&&"contents"===r.style.display||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&pi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,li(e,i)),s&&ni(o.latestValues)&&pi(e,o.latestValues))}t.x=ci(t.x),t.y=ci(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;_o(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Yi(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ji.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(fa));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,h,m,p;ma(o.x,e.x,n),ma(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Go(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,h=this.relativeTargetOrigin,m=i,p=n,pa(l.x,h.x,m.x,p),pa(l.y,h.y,m.y,p),d&&Wi(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Bi(d,this.relativeTarget)),a&&(this.animationValues=r,function(e,t,n,s,r,o){r?(e.opacity=Zs(0,void 0!==n.opacity?n.opacity:1,Di(s)),e.opacityExit=Zs(void 0!==t.opacity?t.opacity:1,0,Vi(s))):o&&(e.opacity=Zs(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,s));for(let r=0;r<Si;r++){const o=`border${Pi[r]}Radius`;let i=Mi(t,o),a=Mi(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||Ai(i)===Ai(a)?(e[o]=Math.max(Zs(Ti(i),Ti(a),s),0),(Kt.test(a)||Kt.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=Zs(t.rotate||0,n.rotate||0,s))}(r,s,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ts(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=es.update(()=>{bi.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const s=Dt(e)?e:uo(e);return s.start(to("",s,t,n)),s.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const 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(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:s,latestValues:r}=e;if(t&&n&&s){if(this!==e&&this.layout&&s&&xa(this.options.animationType,this.layout.layoutBox,s.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Oo(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const s=Oo(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+s}Bi(t,n),pi(t,r),_o(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hi);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const s=this.getStack();s&&s.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const s={};for(let t=0;t<Ki.length;t++){const r="rotate"+Ki[t];n[r]&&(s[r]=n[r],e.setStaticValue(r,0))}e.render();for(const t in s)e.setStaticValue(t,s[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";const r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=An(e.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=An(e.pointerEvents)||""),this.hasProjected&&!ni(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const i=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=Yi(this.projectionDeltaWithTransform,this.treeScale,i),r&&(s.transform=r(i,s.transform));const{x:a,y:l}=this.projectionDelta;s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:s.opacity=o===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in St){if(void 0===i[e])continue;const{correct:t,applyTo:n}=St[e],r="none"===s.transform?i[e]:t(i[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)s[n[t]]=r}else s[e]=r}return this.options.layoutId&&(s.pointerEvents=o===this?An(e.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(oa),this.root.sharedNodes.clear()}}}function ea(e){e.updateLayout()}function ta(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:s}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?Jo(e=>{const s=o?n.measuredBox[e]:n.layoutBox[e],r=Oo(s);s.min=t[e].min,s.max=s.min+r}):xa(r,n.layoutBox,t)&&Jo(s=>{const r=o?n.measuredBox[s]:n.layoutBox[s],i=Oo(t[s]);r.max=r.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+i)});const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};_o(i,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?_o(a,e.applyTransform(s,!0),n.measuredBox):_o(a,t,n.layoutBox);const l=!Ui(i);let c=!1;if(!e.resumeFrom){const s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:r,layout:o}=s;if(r&&o){const i={x:{min:0,max:0},y:{min:0,max:0}};Go(i,n.layoutBox,r.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Go(a,t,o.layoutBox),Wi(i,a)||(c=!0),s.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=i,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function na(e){Ji.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sa(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ra(e){e.clearSnapshot()}function oa(e){e.clearMeasurements()}function ia(e){e.isLayoutDirty=!1}function aa(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function la(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ca(e){e.resolveTargetDelta()}function ua(e){e.calcProjection()}function da(e){e.resetRotation()}function ha(e){e.removeLeadSnapshot()}function ma(e,t,n){e.translate=Zs(t.translate,0,n),e.scale=Zs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pa(e,t,n,s){e.min=Zs(t.min,n.min,s),e.max=Zs(t.max,n.max,s)}function fa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ga={duration:.45,ease:[.4,0,.1,1]};function va(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function xa(e,t,n){return"position"===e||"preserve-aspect"===e&&!$o(Gi(t),Gi(n),.2)}const ya=Qi({attachResizeListener:(e,t)=>Ln(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ba={current:void 0},wa=Qi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ba.current){const e=new ya({});e.mount(window),e.setOptions({layoutScroll:!0}),ba.current=e}return ba.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ja={pan:{Feature:class extends Hn{constructor(){super(...arguments),this.removePointerDownListener=rs}onPointerDown(e){this.session=new Do(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:yi(e),onStart:yi(t),onMove:n,onEnd:(e,t)=>{delete this.session,s&&es.update(()=>s(e,t))}}}mount(){this.removePointerDownListener=In(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 Hn{constructor(e){super(e),this.removeGroupControls=rs,this.removeListeners=rs,this.controls=new vi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rs}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:wa,MeasureLayout:Ci}},ka=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Na(e,t,n=1){vs(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,r]=function(e){const t=ka.exec(e);if(!t)return[,];const[,n,s]=t;return[n,s]}(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);return o?o.trim():Ft(r)?Na(r,t,n+1):r}const Ca=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ea=e=>Ca.has(e),Pa=e=>e===$t||e===Zt,Sa=(e,t)=>parseFloat(e.split(", ")[t]),Ta=(e,t)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/);if(r)return Sa(r[1],t);{const t=s.match(/^matrix\((.+)\)$/);return t?Sa(t[1],e):0}},Aa=new Set(["x","y","z"]),Ma=Tt.filter(e=>!Aa.has(e));const Da={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ta(4,13),y:Ta(5,14)},Va=(e,t,n={},s={})=>{t={...t},s={...s};const r=Object.keys(t).filter(Ea);let o=[],i=!1;const a=[];if(r.forEach(r=>{const l=e.getValue(r);if(!e.hasValue(r))return;let c=n[r],u=po(c);const d=t[r];let h;if(Sn(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=po(c);for(let n=t;n<e&&null!==d[n];n++)h?vs(po(d[n])===h,"All keyframes must be of the same type"):(h=po(d[n]),vs(h===u||Pa(u)&&Pa(h),"Keyframes must be of the same dimension as the current value"))}else h=po(d);if(u!==h)if(Pa(u)&&Pa(h)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[r]=parseFloat(d):Array.isArray(d)&&h===Zt&&(t[r]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==h?void 0:h.transform)&&(0===c||0===d)?0===c?l.set(h.transform(c)):t[r]=u.transform(d):(i||(o=function(e){const t=[];return Ma.forEach(n=>{const s=e.getValue(n);void 0!==s&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),i=!0),a.push(r),s[r]=void 0!==s[r]?s[r]:t[r],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,r=((e,t,n)=>{const s=t.measureViewportBox(),r=t.current,o=getComputedStyle(r),{display:i}=o,a={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Da[e](s,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const s=t.getValue(n);s&&s.jump(a[n]),e[n]=Da[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),it&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:s}}return{target:t,transitionEnd:s}};function Ra(e,t,n,s){return(e=>Object.keys(e).some(Ea))(t)?Va(e,t,n,s):{target:t,transitionEnd:s}}const La=(e,t,n,s)=>{const r=function(e,{...t},n){const s=e.current;if(!(s instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Ft(t))return;const n=Na(t,s);n&&e.set(n)});for(const e in t){const r=t[e];if(!Ft(r))continue;const o=Na(r,s);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=r))}return{target:t,transitionEnd:n}}(e,t,s);return Ra(e,t=r.target,n,s=r.transitionEnd)},Ba={current:null},Fa={current:!1};const Ia=new WeakMap,Oa=Object.keys(yt),$a=Oa.length,za=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_a=mt.length;class Ua{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>es.render(this.render,!1,!0);const{latestValues:i,renderState:a}=r;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=pt(t),this.isVariantNode=ft(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==i[e]&&Dt(t)&&(t.set(i[e],!1),no(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Ia.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)),Fa.current||function(){if(Fa.current=!0,it)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ba.current=e.matches;e.addListener(t),t()}else Ba.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ba.current),"production"!==process.env.NODE_ENV&&lo(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ia.delete(this.current),this.projection&&this.projection.unmount(),ts(this.notifyUpdate),ts(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=At.has(e),s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&es.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,s,r){let o,i;if("production"!==process.env.NODE_ENV&&s&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?gs(!1,e):vs(!1,e)}for(let e=0;e<$a;e++){const n=Oa[e],{isEnabled:s,Feature:r,ProjectionNode:a,MeasureLayout:l}=yt[n];a&&(o=a),s(t)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(i=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:s,dragConstraints:i,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(s)||i&&ct(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return i}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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<za.length;t++){const n=za[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=e["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(e,t,n){const{willChange:s}=t;for(const r in t){const o=t[r],i=n[r];if(Dt(o))e.addValue(r,o),no(s)&&s.add(r),"development"===process.env.NODE_ENV&&lo("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Dt(i))e.addValue(r,uo(o,{owner:e})),no(s)&&s.remove(r);else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,uo(void 0!==t?t:o,{owner:e}))}}for(const s in n)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<_a;e++){const n=mt[e],s=this.props[n];(ut(s)||!1===s)&&(t[n]=s)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const 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 n=this.values.get(e);return void 0===n&&void 0!==t&&(n=uo(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,s="string"==typeof n||"object"==typeof n?null===(t=Pn(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==s)return s;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Dt(r)?void 0!==this.initialValues[e]&&void 0===s?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new io),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wa extends Ua{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:s},r){let o=function(e,t,n){const s={};for(const r in e){const e=xo(r,t);if(void 0!==e)s[r]=e;else{const e=n.getValue(r);e&&(s[r]=e.get())}}return s}(n,e||{},this);if(s&&(t&&(t=s(t)),n&&(n=s(n)),o&&(o=s(o))),r){!function(e,t,n){var s,r;const o=Object.keys(t).filter(t=>!e.hasValue(t)),i=o.length;if(i)for(let a=0;a<i;a++){const i=o[a],l=t[i];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(r=null!==(s=n[i])&&void 0!==s?s:e.readValue(i))&&void 0!==r?r:t[i]),null!=c&&("string"==typeof c&&(so(c)||Jr(c))?c=parseFloat(c):!go(c)&&dr.test(l)&&(c=Zr(i,l)),e.addValue(i,uo(c,{owner:e})),void 0===n[i]&&(n[i]=c),null!==c&&e.setBaseTarget(i,c))}}(this,n,o);const e=La(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ga extends Wa{readValueFromInstance(e,t){if(At.has(t)){const e=Kr(t);return e&&e.default||0}{const s=(n=e,window.getComputedStyle(n)),r=(Bt(t)?s.getPropertyValue(t):s[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return fi(e,t)}build(e,t,n,s){sn(e,t,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Cn(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Dt(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,s){jn(e,t,n,s)}}class Ha extends Wa{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(At.has(t)){const e=Kr(t);return e&&e.default||0}return t=kn.has(t)?t:wn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return En(e,t)}build(e,t,n,s){gn(e,t,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,t,n,s){Nn(e,t,0,s)}mount(e){this.isSVGTag=xn(e.tagName),super.mount(e)}}const Ya=(e,t)=>Pt(e)?new Ha(t,{enableHardwareAcceleration:!1}):new Ga(t,{enableHardwareAcceleration:!0}),qa={...Ao,...hs,...ja,...{layout:{ProjectionNode:wa,MeasureLayout:Ci}}},Xa=Ct((e,t)=>function(e,{forwardMotionProps:t=!1},n,s){return{...Pt(e)?Vn:Rn,preloadedFeatures:n,useRender:bn(t),createVisualElement:s,Component:e}}(e,t,qa,Ya));function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ka.apply(null,arguments)}function Za(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(null==e||e(s),!1===n||!s.defaultPrevented)return null==t?void 0:t(s)}}function Ja(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Qa(...e){return t.useCallback(Ja(...e),e)}function el(...e){const n=e[0];if(1===e.length)return n;const s=()=>{const s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=s.reduce((t,{useScope:n,scopeName:s})=>({...t,...n(e)[`__scope${s}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return s.scopeName=n.scopeName,s}const tl=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},nl=o["useId".toString()]||(()=>{});let sl=0;function rl(e){const[t,n]=o.useState(nl());return tl(()=>{n(e=>null!=e?e:String(sl++))},[e]),e||(t?`radix-${t}`:"")}function ol(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function il({prop:e,defaultProp:n,onChange:s=()=>{}}){const[r,o]=function({defaultProp:e,onChange:n}){const s=t.useState(e),[r]=s,o=t.useRef(r),i=ol(n);return t.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),s}({defaultProp:n,onChange:s}),i=void 0!==e,a=i?e:r,l=ol(s);return[a,t.useCallback(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[i,e,o,l])]}const al=t.forwardRef((e,n)=>{const{children:s,...r}=e,o=t.Children.toArray(s),i=o.find(ul);if(i){const e=i.props.children,s=o.map(n=>n===i?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(ll,Ka({},r,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,s):null)}return t.createElement(ll,Ka({},r,{ref:n}),s)});al.displayName="Slot";const ll=t.forwardRef((e,n)=>{const{children:s,...r}=e;return t.isValidElement(s)?t.cloneElement(s,{...dl(r,s.props),ref:n?Ja(n,s.ref):s.ref}):t.Children.count(s)>1?t.Children.only(null):null});ll.displayName="SlotClone";const cl=({children:e})=>t.createElement(t.Fragment,null,e);function ul(e){return t.isValidElement(e)&&e.type===cl}function dl(e,t){const n={...t};for(const s in t){const r=e[s],o=t[s];/^on[A-Z]/.test(s)?r&&o?n[s]=(...e)=>{o(...e),r(...e)}:r&&(n[s]=r):"style"===s?n[s]={...r,...o}:"className"===s&&(n[s]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}const hl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const s=t.forwardRef((e,s)=>{const{asChild:r,...o}=e,i=r?al:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(i,Ka({},o,{ref:s}))});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});const ml="dismissableLayer.update",pl="dismissableLayer.pointerDownOutside",fl="dismissableLayer.focusOutside";let gl;const vl=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xl=t.forwardRef((e,n)=>{var s;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(vl),[h,m]=t.useState(null),p=null!==(s=null==h?void 0:h.ownerDocument)&&void 0!==s?s:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=Qa(n,e=>m(e)),v=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),b=h?v.indexOf(h):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=y,k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=ol(e),r=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!r.current){const t={originalEvent:e};function i(){bl(pl,s,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=i,n.addEventListener("click",o.current,{once:!0})):i()}else n.removeEventListener("click",o.current);r.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));j&&!n&&(null==i||i(e),null==l||l(e),e.defaultPrevented||null==c||c())},p),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=ol(e),r=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!r.current){bl(fl,s,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},p);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const s=ol(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&s(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[s,n])}(e=>{b===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),t.useEffect(()=>{if(h)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(gl=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),yl(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=gl)}},[h,p,r,d]),t.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),yl())},[h,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(ml,e),()=>document.removeEventListener(ml,e)},[]),t.createElement(hl.div,Ka({},u,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:Za(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Za(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Za(e.onPointerDownCapture,k.onPointerDownCapture)}))});function yl(){const e=new CustomEvent(ml);document.dispatchEvent(e)}function bl(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}const wl="focusScope.autoFocusOnMount",jl="focusScope.autoFocusOnUnmount",kl={bubbles:!1,cancelable:!0},Nl=t.forwardRef((e,n)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=t.useState(null),u=ol(o),d=ol(i),h=t.useRef(null),m=Qa(n,e=>c(e)),p=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(r){function e(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?h.current=t:Sl(h.current,{select:!0})}function t(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Sl(h.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Sl(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const s=new MutationObserver(n);return l&&s.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),s.disconnect()}}},[r,l,p.paused]),t.useEffect(()=>{if(l){Tl.add(p);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(wl,kl);l.addEventListener(wl,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Sl(s,{select:t}),document.activeElement!==n)return}((e=Cl(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Sl(l))}return()=>{l.removeEventListener(wl,u),setTimeout(()=>{const e=new CustomEvent(jl,kl);l.addEventListener(jl,d),l.dispatchEvent(e),e.defaultPrevented||Sl(null!=t?t:document.body,{select:!0}),l.removeEventListener(jl,d),Tl.remove(p)},0)}}var e},[l,u,d,p]);const f=t.useCallback(e=>{if(!s&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,o]=function(e){const t=Cl(e),n=El(t,e),s=El(t.reverse(),e);return[n,s]}(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),s&&Sl(o,{select:!0})):(e.preventDefault(),s&&Sl(r,{select:!0})):n===t&&e.preventDefault()}},[s,r,p.paused]);return t.createElement(hl.div,Ka({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function Cl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function El(e,t){for(const n of e)if(!Pl(n,{upTo:t}))return n}function Pl(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Sl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Tl=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Al(e,t),e.unshift(t)},remove(t){var n;e=Al(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Al(e,t){const n=[...e],s=n.indexOf(t);return-1!==s&&n.splice(s,1),n}const Ml=t.forwardRef((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return o?s.createPortal(t.createElement(hl.div,Ka({},i,{ref:n})),o):null});const Dl=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),i=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const s=n[e][t];return null!=s?s:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Vl(o.current);a.current="mounted"===c?e:"none"},[c]),tl(()=>{const t=o.current,n=i.current;if(n!==e){const s=a.current,r=Vl(t);if(e)u("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&s!==r?"ANIMATION_OUT":"UNMOUNT")}i.current=e}},[e,u]),tl(()=>{if(n){const e=e=>{const t=Vl(o.current).includes(e.animationName);e.target===n&&t&&s.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Vl(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=Qa(o.ref,i.ref);return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:a}):null};function Vl(e){return(null==e?void 0:e.animationName)||"none"}Dl.displayName="Presence";let Rl=0;function Ll(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Bl=function(){return Bl=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bl.apply(this,arguments)};function Fl(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Il="right-scroll-bar-position",Ol="width-before-scroll-bar";function $l(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var zl="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,_l=new WeakMap;function Ul(e,n){var s,r,o,i=(s=null,r=function(t){return e.forEach(function(e){return $l(e,t)})},(o=t.useState(function(){return{value:s,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return zl(function(){var t=_l.get(i);if(t){var n=new Set(t),s=new Set(e),r=i.current;n.forEach(function(e){s.has(e)||$l(e,null)}),s.forEach(function(e){n.has(e)||$l(e,r)})}_l.set(i,e)},[e]),i}function Wl(e){return e}var Gl=function(e){var t=e.sideCar,n=Fl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return o.createElement(s,Bl({},n))};Gl.isSideCarExport=!0;var Hl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Wl);var n=[],s=!1,r={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,s);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(s=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){s=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return r}(null);return t.options=Bl({async:!0,ssr:!1},e),t}(),Yl=function(){},ql=o.forwardRef(function(e,t){var n=o.useRef(null),s=o.useState({onScrollCapture:Yl,onWheelCapture:Yl,onTouchMoveCapture:Yl}),r=s[0],i=s[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,v=e.as,x=void 0===v?"div":v,y=Fl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=m,w=Ul([n,t]),j=Bl(Bl({},y),r);return o.createElement(o.Fragment,null,d&&o.createElement(b,{sideCar:Hl,removeScrollBar:u,shards:h,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?o.cloneElement(o.Children.only(l),Bl(Bl({},j),{ref:w})):o.createElement(x,Bl({},j,{className:c,ref:w}),l))});ql.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ql.classNames={fullWidth:Ol,zeroRight:Il};function Xl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Kl=function(){var e=0,t=null;return{add:function(n){var s,r;0==e&&(t=Xl())&&(r=n,(s=t).styleSheet?s.styleSheet.cssText=r:s.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zl=function(){var e,t=(e=Kl(),function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,s=e.dynamic;return t(n,s),null}},Jl={left:0,top:0,right:0,gap:0},Ql=function(e){return parseInt(e||"",10)||0},ec=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Jl;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],s=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[Ql(n),Ql(s),Ql(r)]}(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},tc=Zl(),nc="data-scroll-locked",sc=function(e,t,n,s){var r=e.left,o=e.top,i=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(s,";\n padding-right: ").concat(a,"px ").concat(s,";\n }\n body[").concat(nc,"] {\n overflow: hidden ").concat(s,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(s,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(s,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Il," {\n right: ").concat(a,"px ").concat(s,";\n }\n \n .").concat(Ol," {\n margin-right: ").concat(a,"px ").concat(s,";\n }\n \n .").concat(Il," .").concat(Il," {\n right: 0 ").concat(s,";\n }\n \n .").concat(Ol," .").concat(Ol," {\n margin-right: 0 ").concat(s,";\n }\n \n body[").concat(nc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},rc=function(){var e=parseInt(document.body.getAttribute(nc)||"0",10);return isFinite(e)?e:0},oc=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=void 0===s?"margin":s;o.useEffect(function(){return document.body.setAttribute(nc,(rc()+1).toString()),function(){var e=rc()-1;e<=0?document.body.removeAttribute(nc):document.body.setAttribute(nc,e.toString())}},[]);var i=o.useMemo(function(){return ec(r)},[r]);return o.createElement(tc,{styles:sc(i,!t,r,n?"":"!important")})},ic=!1;if("undefined"!=typeof window)try{var ac=Object.defineProperty({},"passive",{get:function(){return ic=!0,!0}});window.addEventListener("test",ac,ac),window.removeEventListener("test",ac,ac)}catch(e){ic=!1}var lc=!!ic&&{passive:!1},cc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},uc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),dc(e,n)){var s=hc(e,n);if(s[1]>s[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},dc=function(e,t){return"v"===e?function(e){return cc(e,"overflowY")}(t):function(e){return cc(e,"overflowX")}(t)},hc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},mc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pc=function(e){return[e.deltaX,e.deltaY]},fc=function(e){return e&&"current"in e?e.current:e},gc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},vc=0,xc=[];var yc,bc=(yc=function(e){var t=o.useRef([]),n=o.useRef([0,0]),s=o.useRef(),r=o.useState(vc++)[0],i=o.useState(function(){return Zl()})[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(fc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,o=mc(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-o[0],c="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=uc(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=uc(d,u)),!h)return!1;if(!s.current&&"changedTouches"in e&&(l||c)&&(s.current=r),!r)return!0;var m=s.current||r;return function(e,t,n,s){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=r*s,i=n.target,a=t.contains(i),l=!1,c=o>0,u=0,d=0;do{var h=hc(e,i),m=h[0],p=h[1]-h[2]-r*m;(m||p)&&dc(e,i)&&(u+=p,d+=m),i=i.parentNode}while(!a&&i!==document.body||a&&(t.contains(i)||t===i));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=o.useCallback(function(e){var n=e;if(xc.length&&xc[xc.length-1]===i){var s="deltaY"in n?pc(n):mc(n),r=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,r=s,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var o=(a.current.shards||[]).map(fc).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?l(n,o[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,s,r){var o={name:e,delta:n,target:s,should:r};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){n.current=mc(e),s.current=void 0},[]),h=o.useCallback(function(t){u(t.type,pc(t),t.target,l(t,e.lockRef.current))},[]),m=o.useCallback(function(t){u(t.type,mc(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return xc.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,lc),document.addEventListener("touchmove",c,lc),document.addEventListener("touchstart",d,lc),function(){xc=xc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,lc),document.removeEventListener("touchmove",c,lc),document.removeEventListener("touchstart",d,lc)}},[]);var p=e.removeScrollBar,f=e.inert;return o.createElement(o.Fragment,null,f?o.createElement(i,{styles:gc(r)}):null,p?o.createElement(oc,{gapMode:"margin"}):null)},Hl.useMedium(yc),Gl),wc=o.forwardRef(function(e,t){return o.createElement(ql,Bl({},e,{ref:t,sideCar:bc}))});wc.classNames=ql.classNames;var jc=new WeakMap,kc=new WeakMap,Nc={},Cc=0,Ec=function(e){return e&&(e.host||Ec(e.parentNode))},Pc=function(e,t,n,s){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ec(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Nc[n]||(Nc[n]=new WeakMap);var o=Nc[n],i=[],a=new Set,l=new Set(r),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(s),r=null!==t&&"false"!==t,l=(jc.get(e)||0)+1,c=(o.get(e)||0)+1;jc.set(e,l),o.set(e,c),i.push(e),1===l&&r&&kc.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),Cc++,function(){i.forEach(function(e){var t=jc.get(e)-1,r=o.get(e)-1;jc.set(e,t),o.set(e,r),t||(kc.has(e)||e.removeAttribute(s),kc.delete(e)),r||e.removeAttribute(n)}),--Cc||(jc=new WeakMap,jc=new WeakMap,kc=new WeakMap,Nc={})}},Sc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live], script"))),Pc(s,r,n,"aria-hidden")):function(){return null}};const Tc="Dialog",[Ac,Mc]=function(e,n=[]){let s=[];const r=()=>{const n=s.map(e=>t.createContext(e));return function(s){const r=(null==s?void 0:s[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...s,[e]:r}}),[s,r])}};return r.scopeName=e,[function(n,r){const o=t.createContext(r),i=s.length;function a(n){const{scope:s,children:r,...a}=n,l=(null==s?void 0:s[e][i])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},r)}return s=[...s,r],a.displayName=n+"Provider",[a,function(s,a){const l=(null==a?void 0:a[e][i])||o,c=t.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${s}\` must be used within \`${n}\``)}]},el(r,...n)]}(Tc),[Dc,Vc]=Ac(Tc),Rc="DialogPortal",[Lc,Bc]=Ac(Rc,{forceMount:void 0}),Fc="DialogOverlay",Ic=t.forwardRef((e,n)=>{const s=Bc(Fc,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,i=Vc(Fc,e.__scopeDialog);return i.modal?t.createElement(Dl,{present:r||i.open},t.createElement(Oc,Ka({},o,{ref:n}))):null}),Oc=t.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=Vc(Fc,s);return t.createElement(wc,{as:al,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(hl.div,Ka({"data-state":qc(o.open)},r,{ref:n,style:{pointerEvents:"auto",...r.style}})))}),$c="DialogContent",zc=t.forwardRef((e,n)=>{const s=Bc($c,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,i=Vc($c,e.__scopeDialog);return t.createElement(Dl,{present:r||i.open},i.modal?t.createElement(_c,Ka({},o,{ref:n})):t.createElement(Uc,Ka({},o,{ref:n})))}),_c=t.forwardRef((e,n)=>{const s=Vc($c,e.__scopeDialog),r=t.useRef(null),o=Qa(n,s.contentRef,r);return t.useEffect(()=>{const e=r.current;if(e)return Sc(e)},[]),t.createElement(Wc,Ka({},e,{ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Za(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=s.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Za(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Za(e.onFocusOutside,e=>e.preventDefault())}))}),Uc=t.forwardRef((e,n)=>{const s=Vc($c,e.__scopeDialog),r=t.useRef(!1),o=t.useRef(!1);return t.createElement(Wc,Ka({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(r.current||null===(i=s.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(i=s.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Wc=t.forwardRef((e,n)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Vc($c,s),c=Qa(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ll()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ll()),Rl++,()=>{1===Rl&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Rl--}},[]),t.createElement(t.Fragment,null,t.createElement(Nl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},t.createElement(xl,Ka({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":qc(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),Gc="DialogTitle",Hc="DialogClose",Yc=t.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=Vc(Hc,s);return t.createElement(hl.button,Ka({type:"button"},r,{ref:n,onClick:Za(e.onClick,()=>o.onOpenChange(!1))}))});function qc(e){return e?"open":"closed"}!function(e,n){const s=t.createContext(n);function r(e){const{children:n,...r}=e,o=t.useMemo(()=>r,Object.values(r));return t.createElement(s.Provider,{value:o},n)}r.displayName=e+"Provider"}("DialogTitleWarning",{contentName:$c,titleName:Gc,docsSlug:"dialog"});const Xc=e=>{const{__scopeDialog:n,children:s,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=il({prop:r,defaultProp:o,onChange:i});return t.createElement(Dc,{scope:n,triggerRef:l,contentRef:c,contentId:rl(),titleId:rl(),descriptionId:rl(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},s)},Kc=e=>{const{__scopeDialog:n,forceMount:s,children:r,container:o}=e,i=Vc(Rc,n);return t.createElement(Lc,{scope:n,forceMount:s},t.Children.map(r,e=>t.createElement(Dl,{present:s||i.open},t.createElement(Ml,{asChild:!0,container:o},e))))},Zc=Ic,Jc=zc,Qc=Yc;exports.Accordion=({items:t,title:n,background:s="white",enableHeading:r=!1,maxWidth:o=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[s]} component-container`,children:e.jsxs("div",{className:(o?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e.jsx("div",{children:e.jsx(Ne,{as:r?"h1":"h2",className:"heading1 text-left lg:text-center",children:n})}),e.jsx("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==t?void 0:t.map((t,n)=>e.jsx("div",{children:e.jsx(ke,{title:t.title,containerClassName:"border-0 border-b-[1px] rounded-none",openOnlyOnDesktop:!0,children:e.jsx(Ne,{children:t.description})})},`item-${n}`))})]})}),exports.Button=_e,exports.Callout=({title:t,items:n,enableHeading:s=!1,subtitle:r,color:o="dark",maxWidth:i=!0,maxCardsPerRow:a})=>{const l={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[a||4]||" lg:w-[calc(25%-1.125rem)]",c=1===n.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e.jsx("div",{className:"component-container",children:e.jsx("div",{className:`mx-5 mb-5 mt-12 ${i?"max-w-120 xl:mx-auto":""} ${"dark"==o?"text-text":"text-white"}`,children:e.jsxs("div",{className:"callout-container flex flex-col gap-8",children:[e.jsxs("div",{className:"title-holder",children:[t&&e.jsx(Ne,{as:s?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:t}),r&&e.jsx(Ne,{as:s?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:r})]}),e.jsx("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:n.map((t,n)=>e.jsx(Pe,{card:t,lgWidth:l,mdWidth:c},n))})]})})})},exports.Cards=({fields:t})=>e.jsx("div",{children:e.jsx(Ne,{children:"Cards"})}),exports.Carousel=({fields:t,hasTestimonialCards:n,hasProductCards:s,disclaimerText:r,backgroundColor:o,activeTab:i,setActiveTab:a,tabs:l,showSwitch:c=!1})=>e.jsx("div",{className:`${o} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:e.jsxs("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[e.jsxs("div",{children:[e.jsx(Ne,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==t?void 0:t.title}),(null==t?void 0:t.subTitle)&&e.jsx(Ne,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==t?void 0:t.subTitle})]}),c&&s&&l.length>1&&e.jsx(Ie,{tabs:l,activeTab:i,onChange:a,className:"mb-8"}),n&&e.jsx(Fe,{fields:t}),s&&e.jsx(Be,{fields:t}),e.jsx(Ne,{as:"div",className:"body1 mt-8 px-4 text-center",children:r})]})}),exports.ComparisonTable=({title:t,disclaimer:n,table:s,maxWidth:r=!0})=>e.jsx("div",{className:"component-container",children:e.jsxs("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(r?"max-w-120 xl:mx-auto":""),children:[e.jsx(Ne,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:t}),e.jsx("div",{className:"comparison-table-container mt-20 xl:mt-10",children:s}),e.jsx(Ne,{as:"div",className:"micro mt-8 text-center",children:n})]})}),exports.CtaCallout=({title:t,background:n="white",button:s,color:r,contentAlignment:o,description:i,descriptionAlignment:a,enableHeading:l,subTitle:c,maxWidth:u=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[n]} component-container`,children:e.jsxs("div",{className:`${u?"mx-auto max-w-120":""} color-${r} flex flex-col ${"dark"==r?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e.jsx(Ne,{as:l?"h1":"h2",className:`heading2 lg:heading1 text-${o}`,children:t}),e.jsx(Ne,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${o}`,children:c}),e.jsx("div",{className:`pt-2 text-body1 lg:pt-3 text-${a}`,children:i}),e.jsx("div",{className:"flex justify-center pt-5 lg:pt-14",children:e.jsx(_e,{...s})})]})}),exports.FindKinetic=({background:t="white",description:n,enableHeading:s,image:r,list:o=[],subTitle:i,title:a,color:l="dark",maxWidth:c=!0})=>e.jsx("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[t]} component-container overflow-hidden ${"dark"==l?"text-text":"text-white"}`,children:e.jsxs("div",{className:(c?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[a&&e.jsx(Ne,{as:s?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:a}),i&&e.jsx(Ne,{as:s?"h2":"h3",className:"heading3 mt-4 text-center",children:i}),e.jsxs("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[e.jsxs("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[n&&e.jsx(Ne,{as:"p",className:"body1",children:n}),o.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),s=[];for(let e=0;e<n;e++)for(let r=0;r<2;r++){const o=r*n+e;o<t.length&&s.push(t[o])}return s.map((t,n)=>e.jsx("li",{children:e.jsx(ze,{href:`/${t.code}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e.jsx("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),s=[];for(let e=0;e<n;e++)for(let r=0;r<3;r++){const o=r*n+e;o<t.length&&s.push(t[o])}return s.map((t,n)=>e.jsx("li",{children:e.jsx(ze,{href:`/${t.code}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),r&&e.jsx("aside",{className:"hidden xl:block",children:e.jsx(Ee,{width:472,height:100,src:r,alt:"image"})})]})]})}),exports.FloatingBanner=({title:t,subtitle:n,description:s,disclaimer:r,icon:o,cta:i,background:a="navy",color:l="light",enableHeading:c,maxWidth:u=!0})=>e.jsx("div",{className:"component-container",children:e.jsxs("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(u?"max-w-120":""),children:[e.jsxs("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[a]} ${"dark"==l?"text-text":"text-white"} `,children:[o&&e.jsx("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e.jsx("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e.jsx(Ee,{width:80,height:80,alt:"icon",src:o})})}),e.jsxs("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[t&&e.jsx(Ne,{as:c?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:t}),n&&e.jsx(Ne,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:n}),s&&e.jsx(Ne,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:s})]}),i&&e.jsx("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e.jsx(_e,{...i})})]}),r&&e.jsx("div",{children:e.jsx(Ne,{as:"div",className:"body3 mt-3 text-center",children:r})})]})}),exports.Footer=({body:n,links:s,bottomLinks:r,copyrights:o,terms:i,maxWidth:a=!0,onClick:l})=>{function c(e){null==l||l(e)}return e.jsx("div",{className:"component-container bg-bg-inverse text-white",children:e.jsxs("div",{className:` ${a?"mx-auto max-w-120":""} px-5 py-8`,children:[e.jsx("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e.jsx("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e.jsx("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==s?void 0:s.map((n,s)=>{var r,o;return e.jsxs(t.Fragment,{children:[e.jsx("div",{children:e.jsxs("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e.jsx(Ne,{as:"div",className:"label3",children:null==n?void 0:n.title}),e.jsx("ul",{className:"flex flex-col",children:null===(o=null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||void 0===o?void 0:o.map((t,n)=>e.jsx("li",{className:"pt-3",children:e.jsx(_e,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:c})},`site-links-${n}`))})]},`link-group-${s}`)},`footer-link-group-${s}`),e.jsx("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${s}`)})}),e.jsxs("div",{className:"pt-8",children:[e.jsx("p",{className:"copy-rights",children:o}),e.jsxs("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",i]}),e.jsx("nav",{"aria-label":"Footer legal",children:e.jsx("ul",{className:"bottom-links list-none",children:null==r?void 0:r.map((t,n)=>e.jsx("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e.jsx(_e,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:c})},`links-${n}`))})})]})]})})},exports.ImagePromoBar=({brow:n,enableHeading:s,title:r,subTitle:o,ctaDisclaimer:i,disclaimer:a,description:l,image:c,imageLinks:u,mediaPosition:d=!0,checklist:h,secondaryCta:m,cta:p,videoLink:f,maxWidth:g=!0,color:v="light",imageWidth:x=660,imageHeight:y=660,onModalButtonClick:b})=>{var w,j;const[k,N]=t.useState(""),[C,E]=t.useState(!1),P=null!==(w=null==f?void 0:f.link)&&void 0!==w?w:"",S=null==f?void 0:f.image,T=null!==(j=null==f?void 0:f.videoPopup)&&void 0!==j&&j,A=Boolean(k&&k===P),M=f&&S?P.includes("vimeo")?e.jsx(We,{link:P,autoplay:A}):e.jsx(Ge,{link:P,autoplay:A}):null;return e.jsxs("div",{className:"component-container",children:[e.jsx("div",{className:`image-promo-bar-content ${g?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:e.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:items-start xl:gap-[126px] "+(d?"xl:flex-row-reverse":"xl:flex-row"),children:[e.jsxs("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==v?"text-text":"text-white"),children:[e.jsxs("div",{className:"heading holder",children:[n&&e.jsx(Ne,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:n}),r&&e.jsx(Ne,{as:s?"h1":"h2",className:"heading2 xl:heading1",children:r}),o&&e.jsx(Ne,{as:s?"h2":"h3",className:"subheading1 mt-3",children:o})]}),l&&e.jsx(Ne,{as:"div",className:"body1",children:l}),h.length>0&&e.jsx(Me,{items:h,iconPosition:"top",iconSize:24}),e.jsx("div",{className:"flex gap-4",children:null==u?void 0:u.map((t,n)=>e.jsx("div",{className:"image-link w-[147px]",children:e.jsx(ze,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e.jsx(De,{src:t.image,alt:"icon-link"})})},n))}),e.jsxs("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[p&&e.jsx("div",{className:"primary-cta w-full xl:w-auto",children:e.jsx(_e,{...p,fullWidth:!0,onModalButtonClick:b})}),m&&e.jsx("div",{className:"secondary-cta",children:e.jsx(_e,{...m,fullWidth:!0,onModalButtonClick:b})})]}),i&&e.jsx("div",{children:i}),a&&e.jsx("div",{children:a})]}),e.jsxs("aside",{className:"flex w-full shrink-0 items-center justify-center xl:w-auto",children:[c&&e.jsx("div",{className:"relative aspect-[16/9] w-full xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:e.jsx(Ee,{src:c,alt:"section-image",width:x,height:y,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),(null==f?void 0:f.link)&&e.jsxs("div",{className:ye("video-section relative w-full cursor-pointer overflow-hidden rounded-[40px] transition-all duration-300 xl:w-[486px]",!A&&"hover:shadow-2xl"),onClick:()=>{var e;N(null!==(e=null==f?void 0:f.link)&&void 0!==e?e:"")},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:[e.jsxs("div",{className:ye(A&&!T&&"hidden",A&&!T?"opacity-0":"opacity-100","relative aspect-[16/9] w-full transition-opacity duration-300 xl:aspect-square"),children:[f.image&&e.jsx(Ee,{src:f.image,alt:"Video preview",width:486,height:486,className:"absolute inset-0 h-full w-full rounded-[40px] object-cover"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(Ue,{isHovered:C})})]}),!T&&A&&e.jsx("div",{className:ye("aspect-[16/9] w-full overflow-hidden rounded-[40px] transition-opacity duration-300",A?"opacity-100":"opacity-0"),children:M})]})]})]})}),T&&A&&e.jsx("div",{className:"fixed inset-0 top-20 z-[100] flex items-center justify-center bg-black/80 p-4 transition-all duration-300",onClick:e=>{e.stopPropagation(),N("")},children:e.jsx("div",{className:"max-w-6xl aspect-video w-full overflow-hidden rounded-3xl bg-black shadow-2xl md:w-4/6",onClick:e=>e.stopPropagation(),children:M})})]})},exports.Modal=t=>{const{isOpen:n,onRequestClose:s,size:r,title:o,content:i,description:a,children:l,bodyClassName:c}=t;return e.jsx(Xc,{open:n,onOpenChange:()=>n&&(null==s?void 0:s()),children:e.jsxs(Kc,{children:[e.jsx(Xa.div,{initial:"closed",animate:n?"open":"closed",variants:et,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(Zc,{})}),e.jsx(Xa.div,{initial:"closed",animate:n?"open":"closed",variants:tt,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:e.jsxs(Jc,{className:ye("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",c),style:{maxWidth:nt[r||"lg"]},children:[e.jsx(Qc,{asChild:!0,children:e.jsx(_e,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx(je,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[o?e.jsx(Ne,{className:ye("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:o}):null,a?e.jsx(Ne,{as:"div",children:a}):null,i,l||null]})]})})]})})},exports.Navigation=t=>{const{primaryNavigationLinks:n,utilityNavigationLinks:s,checkPlansJSX:r,primaryNavigationLogo:o,accountNavigationLinks:i,supportNavigationLinks:a,searchBarIcon:l,invocaPhoneNumberLink:c,invocaPhoneNumberDisplayText:u,onSearch:d=()=>{}}=t;return e.jsxs("div",{className:"component-container",children:[e.jsxs("nav",{className:"menu-container",children:[e.jsx("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:e.jsxs("div",{className:"mx-auto flex max-w-120 justify-between",children:[e.jsx("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==s?void 0:s.map((t,n)=>e.jsx("li",{children:e.jsx(_e,{linkClassName:ye("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),e.jsxs("div",{className:"flex items-center gap-10",children:[e.jsx(Xe,{className:"border-none",href:c,children:e.jsx(Ne,{className:"body3",children:u})}),null==i?void 0:i.map((t,n)=>e.jsx(He,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),e.jsxs("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[e.jsxs("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e.jsx("div",{children:e.jsx(ze,{href:"/",className:"flex",children:e.jsx(Ee,{src:"string"==typeof o?o:(null==o?void 0:o.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(Xe,{href:c,children:e.jsx(Ne,{as:"span",className:"footnote",children:u})}),e.jsx(Ze,{...t})]})]}),e.jsx("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:e.jsxs("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[e.jsxs("div",{className:"flex h-full",children:[e.jsx(ze,{href:"/",className:"flex",children:e.jsx(Ee,{src:"string"==typeof o?o:(null==o?void 0:o.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e.jsx("div",{className:"flex h-full items-center gap-5",children:null==n?void 0:n.map((t,n)=>e.jsx(He,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),e.jsxs("div",{className:"flex h-full items-center gap-10",children:[e.jsx(Qe,{searchBarIconURL:"string"==typeof l?l:(null==l?void 0:l.url)||"",onSearch:d}),null==a?void 0:a.map((t,n)=>e.jsx(He,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),r&&e.jsx("div",{className:"md:hidden",children:r})]})},exports.PrimaryHero=t=>{var n;const{title:s,showAsHeading:r,subTitle:o,primaryCta1:i,carouselImages:a,bottomLink:l,price:c,priceCallout:u,priceSuffix:d,checklist:h,renderCheckPlans:m,badgeImage:p,pricingDescriptionDisclaimer:f,secondaryCta:g,secondaryCtaPrefix:v,onModalButtonClick:x}=t,y=null!==(n=null==l?void 0:l.buttonLabel)&&void 0!==n?n:null==l?void 0:l.label;return e.jsx("div",{className:"component-container p-5 lg:h-[724px] lg:p-0",children:e.jsxs("div",{className:ye("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e.jsx("div",{className:ye("relative flex flex-col text-white sm:w-[485px]"),children:e.jsxs("div",{className:"flex flex-col gap-5 lg:gap-6",children:[s&&e.jsx(Ne,{as:r?"h1":"h2",className:"heading2 lg:heading1",children:s}),o&&e.jsx(Ne,{as:"p",className:"subheading3 lg:subheading1",children:o}),c?e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"mr-2 mt-0.5",children:u?u.split("|").map((t,n)=>e.jsx(Ne,{as:"p",className:"body2",children:t},n)):null}),e.jsxs("div",{className:"flex",children:[e.jsx(Ne,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e.jsx(Ne,{as:"p",className:"subheading5",children:c}),d?e.jsx(Ne,{as:"p",className:"subheading1 mt-0.5",children:d}):null]})]}):null,h&&e.jsx(Me,{listItemClassName:"text-white body2",items:h.map(e=>e.title)}),e.jsxs("div",{className:"flex flex-col gap-3",children:[i&&e.jsx("div",{className:ye("hidden lg:flex lg:flex-col"),children:e.jsx(_e,{...i,renderCheckPlans:m,onModalButtonClick:x})}),v||g?e.jsxs("div",{className:"flex",children:[v&&e.jsx(Ne,{as:"span",className:"body2 mr-1",children:v}),g&&e.jsx(_e,{linkClassName:"body2 text-text-inverse",onModalButtonClick:x,...g})]}):null,l&&(y||(null==l?void 0:l.href))&&e.jsx("div",{className:"hidden lg:block",children:e.jsx(_e,{...l,linkClassName:"text-footnote text-white",onModalButtonClick:x})}),f?e.jsx(Ne,{as:"p",className:"body3",children:f}):null]})]})}),e.jsxs("div",{className:"lg:hidden",children:[e.jsxs("div",{className:"relative my-8",children:[p?e.jsx(Ee,{src:p,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,a&&a[0]?e.jsx(Ee,{src:a[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),l&&(y||(null==l?void 0:l.href))&&e.jsx("div",{children:e.jsx(_e,{...l,onModalButtonClick:x,linkClassName:"body3 text-white"})}),f?e.jsx(Ne,{as:"p",className:"body3",children:f}):null,v||g?e.jsxs("div",{className:"flex",children:[v&&e.jsx(Ne,{as:"span",className:"body2 mr-1",children:v}),g&&e.jsx(_e,{...g,onModalButtonClick:x})]}):null]}),e.jsxs("div",{className:ye("relative hidden lg:block"),children:[p?e.jsx(Ee,{src:p,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,a&&a[0]?e.jsx(Ee,{src:a[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},exports.ProductCard=Re,exports.ShapeBackgroundWrapper=({children:t,background:n,className:s,fill:r="yellow",maxFit:o,show:i=!0,path:a="path2"})=>{const l=`${a}`,c={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},d="string"==typeof n&&n in u,h=d?u[n]:void 0,m=n&&!d?{background:n}:void 0,p=r in c?c[r]:"text-[#F5FF1E]";return i?e.jsxs("div",{className:`shape-bg relative overflow-hidden ${null!=s?s:""} ${o?"max-content":""} ${null!=h?h:m?"":"bg-white"}`,style:m,children:["path1"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${l} fill-current ${p}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${l} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${l} fill-current ${p}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${l} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e.jsx("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e.jsx("div",{className:s,style:m,children:t})},exports.SimpleCard=Pe,exports.TestimonialCard=Le,exports.Text=({fields:t})=>e.jsx("div",{children:e.jsx(Ne,{children:"Text Block"})});
|
|
4
4
|
//# sourceMappingURL=index.js.map
|