@windstream/react-shared-components 0.1.96 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/animation-wrapper/index.tsx +5 -0
- package/src/components/animation-wrapper/types.ts +7 -1
package/dist/contentful/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/link"),r=require("next/image"),i=require("react-dom"),o=require("next/navigation");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=a(t),c=a(n),u=s(r),d=s(i);function p(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=p(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function m(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=" "),r+=t);return r}const h=e=>{const t=v(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),f(n,t)||b(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},f=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?f(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},g=/^\[(.+)\]$/,b=e=>{if(g.test(e)){const t=g.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},v=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)x(n[e],r,e,t);return r},x=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:y(t,e)).classGroupId=n)}if("function"==typeof e)return I(e)?void x(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{x(i,y(t,e),n,r)})})},y=(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},I=e=>e.isThemeGetter,C=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},w=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,o=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===i){if(":"===a){t.push(e.slice(o,s)),o=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?i++:")"===a&&i--}const s=0===t.length?e:e.substring(o),a=N(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},N=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,A=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},E=/\s+/;function j(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=k(e))&&(r&&(r+=" "),r+=t);return r}const k=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=k(e[r]))&&(n&&(n+=" "),n+=t);return n};function T(e,...t){let n,r,i,o=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:C(e.cacheSize),parseClassName:w(e),sortModifiers:A(e),...h(e)}))(l),r=n.cache.get,i=n.cache.set,o=s,s(a)};function s(e){const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(E);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!m,f=r(h?p.substring(0,m):p);if(!f){if(!h){l=t+(l.length>0?" "+l:l);continue}if(f=r(p),!f){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=o(u).join(":"),b=d?g+"!":g,v=b+f;if(s.includes(v))continue;s.push(v);const x=i(f,h);for(let e=0;e<x.length;++e){const t=x[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return i(e,o),o}return function(){return o(j.apply(null,arguments))}}const P=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},R=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S=/^\d+\/\d+$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\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$/,L=/^(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)\(.+\)$/,O=e=>S.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),F=e=>e.endsWith("%")&&W(e.slice(0,-1)),H=e=>B.test(e),z=()=>!0,Z=e=>V.test(e)&&!L.test(e),Y=()=>!1,J=e=>M.test(e),U=e=>D.test(e),_=e=>!Q(e)&&!re(e),$=e=>ue(e,he,Y),Q=e=>R.test(e),K=e=>ue(e,fe,Z),q=e=>ue(e,ge,W),ee=e=>ue(e,pe,Y),te=e=>ue(e,me,U),ne=e=>ue(e,ve,J),re=e=>G.test(e),ie=e=>de(e,fe),oe=e=>de(e,be),se=e=>de(e,pe),ae=e=>de(e,he),le=e=>de(e,me),ce=e=>de(e,ve,!0),ue=(e,t,n)=>{const r=R.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},de=(e,t,n=!1)=>{const r=G.exec(e);return!!r&&(r[1]?t(r[1]):n)},pe=e=>"position"===e||"percentage"===e,me=e=>"image"===e||"url"===e,he=e=>"length"===e||"size"===e||"bg-size"===e,fe=e=>"length"===e,ge=e=>"number"===e,be=e=>"family-name"===e,ve=e=>"shadow"===e,xe=()=>{const e=P("color"),t=P("font"),n=P("text"),r=P("font-weight"),i=P("tracking"),o=P("leading"),s=P("breakpoint"),a=P("container"),l=P("spacing"),c=P("radius"),u=P("shadow"),d=P("inset-shadow"),p=P("text-shadow"),m=P("drop-shadow"),h=P("blur"),f=P("perspective"),g=P("aspect"),b=P("ease"),v=P("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,Q],y=()=>[re,Q,l],I=()=>[O,"full","auto",...y()],C=()=>[X,"none","subgrid",re,Q],w=()=>["auto",{span:["full",X,re,Q]},X,re,Q],N=()=>[X,"auto",re,Q],A=()=>["auto","min","max","fr",re,Q],E=()=>["auto",...y()],j=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],k=()=>[e,re,Q],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",se,ee,{position:[re,Q]}],R=()=>["auto","cover","contain",ae,$,{size:[re,Q]}],G=()=>[F,ie,K],S=()=>["","none","full",c,re,Q],B=()=>["",W,ie,K],V=()=>[W,F,se,ee],L=()=>["","none",h,re,Q],M=()=>["none",W,re,Q],D=()=>["none",W,re,Q],Z=()=>[W,re,Q],Y=()=>[O,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[z],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",W],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,Q,re,g]}],container:["container"],columns:[{columns:[W,Q,re,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:x()}],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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",re,Q]}],basis:[{basis:[O,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,O,"auto","initial","none",Q]}],grow:[{grow:["",W,re,Q]}],shrink:[{shrink:["",W,re,Q]}],order:[{order:[X,"first","last","none",re,Q]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"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:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,ie,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,re,q]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",F,Q]}],"font-family":[{font:[oe,Q,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:[i,re,Q]}],"line-clamp":[{"line-clamp":[W,"none",re,q]}],leading:[{leading:[o,...y()]}],"list-image":[{"list-image":["none",re,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",re,K]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[W,"auto",re,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,Q]}],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",re,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,re,Q],radial:["",re,Q],conic:[X,re,Q]},le,te]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"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:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[W,re,Q]}],"outline-w":[{outline:["",W,ie,K]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,ce,ne]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,ce,ne]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[W,K]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,ce,ne]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[W,re,Q]}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[re,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,Q]}],filter:[{filter:["","none",re,Q]}],blur:[{blur:L()}],brightness:[{brightness:[W,re,Q]}],contrast:[{contrast:[W,re,Q]}],"drop-shadow":[{"drop-shadow":["","none",m,ce,ne]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",W,re,Q]}],"hue-rotate":[{"hue-rotate":[W,re,Q]}],invert:[{invert:["",W,re,Q]}],saturate:[{saturate:[W,re,Q]}],sepia:[{sepia:["",W,re,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",re,Q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[W,re,Q]}],"backdrop-contrast":[{"backdrop-contrast":[W,re,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,re,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,re,Q]}],"backdrop-invert":[{"backdrop-invert":["",W,re,Q]}],"backdrop-opacity":[{"backdrop-opacity":[W,re,Q]}],"backdrop-saturate":[{"backdrop-saturate":[W,re,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",W,re,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",re,Q]}],ease:[{ease:["linear","initial",b,re,Q]}],delay:[{delay:[W,re,Q]}],animate:[{animate:["none",v,re,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,re,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[re,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",re,Q]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",re,Q]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[W,ie,K,q]}],stroke:[{stroke:["none",...k()]}],"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"]}},ye=(e,t,n)=>{void 0!==n&&(e[t]=n)},Ie=(e,t)=>{if(t)for(const n in t)ye(e,n,t[n])},Ce=(e,t)=>{if(t)for(const n in t)we(e,t,n)},we=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Ne=((e,...t)=>"function"==typeof e?T(xe,e,...t):T(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:o={}})=>(ye(e,"cacheSize",t),ye(e,"prefix",n),ye(e,"experimentalParseClassName",r),Ie(e.theme,o.theme),Ie(e.classGroups,o.classGroups),Ie(e.conflictingClassGroups,o.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ye(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Ce(e.theme,i.theme),Ce(e.classGroups,i.classGroups),Ce(e.conflictingClassGroups,i.conflictingClassGroups),Ce(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),we(e,i,"orderSensitiveModifiers"),e))(xe(),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"]}}}),Ae=(...e)=>Ne(m(...e)),Ee=(e="#24A76A")=>`<svg xmlns="http://www.w3.org/2000/svg" width="684" height="107" viewBox="0 0 684 107" fill="none">\n <g clip-path="url(#clip0_12352_9042)">\n <path d="M154.09 -70.5605C173.769 -7.58032 204.79 24.8889 328.202 55.2823C444.619 83.9133 629.479 141.332 667.653 80.7015C691.679 45.2165 678.322 -5.62201 670.537 -46.3554C664.452 -73.1846 658.327 -97.1939 652.913 -123.475C651.135 -132.091 638.766 -131.974 637.067 -123.318C628.136 -77.6888 612.526 -44.9062 577.593 -22.4637C517.962 20.1889 377.954 -6.48361 303.148 -38.287C223.245 -70.7171 200.918 -132.366 195.425 -199.341C193.37 -235.257 198.467 -269.841 208.07 -299.569C210.915 -308.303 199.218 -314.178 193.844 -306.697C151.324 -247.751 137.69 -140.395 154.129 -70.5213" fill="${e}" />\n <path d="M167.605 -417.382C104.062 -397.877 71.302 -367.131 40.6368 -244.813C11.7499 -129.428 -46.182 53.7941 14.9903 91.6292C50.7927 115.443 102.086 102.204 143.183 94.4883C170.253 88.4567 194.476 82.3858 220.992 77.02C229.686 75.2574 229.568 62.9983 220.834 61.3141C174.797 52.4624 141.721 36.9915 119.078 2.36813C76.0441 -56.7345 102.955 -195.502 135.043 -269.645C167.763 -348.84 229.963 -370.969 297.537 -376.414C333.774 -378.45 368.667 -373.398 398.661 -363.88C407.473 -361.06 413.401 -372.654 405.853 -377.98C346.38 -420.124 238.064 -433.636 167.565 -417.343" fill="${e}" />\n </g>\n <defs>\n <clipPath id="clip0_12352_9042">\n <rect width="684" height="107" fill="white" />\n </clipPath>\n </defs>\n </svg>`,je="function"==typeof Buffer,ke="function"==typeof TextDecoder?new TextDecoder:void 0,Te="function"==typeof TextEncoder?new TextEncoder:void 0,Pe=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Re=(()=>{let e={};return Pe.forEach((t,n)=>e[t]=n),e})(),Ge=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Se=String.fromCharCode.bind(String),Be="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Ve=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),Le=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Me=e=>{let t,n,r,i,o="";const s=e.length%3;for(let s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=Pe[t>>18&63]+Pe[t>>12&63]+Pe[t>>6&63]+Pe[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},De="function"==typeof btoa?e=>btoa(e):je?e=>Buffer.from(e,"binary").toString("base64"):Me,Oe=je?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(Se.apply(null,e.subarray(n,n+4096)));return De(t.join(""))},We=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Se(192|t>>>6)+Se(128|63&t):Se(224|t>>>12&15)+Se(128|t>>>6&63)+Se(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Se(240|t>>>18&7)+Se(128|t>>>12&63)+Se(128|t>>>6&63)+Se(128|63&t)},Xe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fe=e=>e.replace(Xe,We),He=je?e=>Buffer.from(e,"utf8").toString("base64"):Te?e=>Oe(Te.encode(e)):e=>De(Fe(e)),ze=(e,t=!1)=>t?Ve(He(e)):He(e),Ze=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ye=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Se((t>>>10)+55296)+Se(56320+(1023&t));case 3:return Se((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Se((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Je=e=>e.replace(Ze,Ye),Ue=e=>{if(e=e.replace(/\s+/g,""),!Ge.test(e))throw new TypeError("malformed base64.");let t,n,r;e+="==".slice(2-(3&e.length));let i=[];for(let o=0;o<e.length;)t=Re[e.charAt(o++)]<<18|Re[e.charAt(o++)]<<12|(n=Re[e.charAt(o++)])<<6|(r=Re[e.charAt(o++)]),64===n?i.push(Se(t>>16&255)):64===r?i.push(Se(t>>16&255,t>>8&255)):i.push(Se(t>>16&255,t>>8&255,255&t));return i.join("")},_e="function"==typeof atob?e=>atob(Le(e)):je?e=>Buffer.from(e,"base64").toString("binary"):Ue,$e=je?e=>Be(Buffer.from(e,"base64")):e=>Be(_e(e).split("").map(e=>e.charCodeAt(0))),Qe=je?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode($e(e)):e=>Je(_e(e)),Ke=e=>Le(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),qe=e=>Qe(Ke(e)),et=ze,tt=qe;
|
|
4
4
|
/*! js-cookie v3.0.5 | MIT */
|
|
5
|
-
function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var rt=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=nt({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",nt({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,nt({},this.attributes,t))},withConverter:function(t){return e(nt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const it=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const ot=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,st=e=>{if(!e)return null;if(ot(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return ot(t)?t:null}return null};var at=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),lt=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),ct=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});const ut=[at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE,at.TABLE],dt=[at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE];at.TABLE,at.TABLE_ROW,at.TABLE_CELL,at.TABLE_HEADER_CELL,at.HR,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE;const pt={[at.OL_LIST]:[at.LIST_ITEM],[at.UL_LIST]:[at.LIST_ITEM],[at.LIST_ITEM]:dt,[at.QUOTE]:[at.PARAGRAPH],[at.TABLE]:[at.TABLE_ROW],[at.TABLE_ROW]:[at.TABLE_CELL,at.TABLE_HEADER_CELL],[at.TABLE_CELL]:[at.PARAGRAPH,at.UL_LIST,at.OL_LIST],[at.TABLE_HEADER_CELL]:[at.PARAGRAPH]};at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6;at.PARAGRAPH,at.DOCUMENT,at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.LIST_ITEM,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,lt.HYPERLINK,lt.ENTRY_HYPERLINK,lt.ASSET_HYPERLINK,lt.EMBEDDED_ENTRY,ct.BOLD,ct.CODE,ct.ITALIC,ct.UNDERLINE,at.DOCUMENT,at.PARAGRAPH;function mt(e){if(!function(e){return null!=e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}(e)||e.content.length<2)return e;return function(e){if(e.nodeType!==at.PARAGRAPH)return!1;if(1!==e.content.length)return!1;const t=e.content[0];return"text"===t.nodeType&&""===t.value}(e.content[e.content.length-1])?{...e,content:e.content.slice(0,-1)}:e}const ht=({path:e,property:t,typeName:n,value:r})=>({details:`The type of "${t}" is incorrect, expected type: ${n}`,name:"type",path:e.toArray(),type:n,value:r});class ft{obj;path;_errors=[];constructor(e,t){this.obj=e,this.path=t}catch=(...e)=>{this._errors.push(...e)};get errors(){const e=e=>JSON.stringify({details:e.details,path:e.path});return this._errors.filter((t,n)=>this._errors.findIndex(n=>e(t)===e(n))===n)}exists=e=>e in this.obj||(this.catch((({property:e,path:t})=>({details:`The property "${e}" is required here`,name:"required",path:t.toArray()}))({property:e,path:this.path.of(e)})),!1);object=e=>{const t=e?this.obj[e]:this.obj;if(e&&!this.exists(e))return!1;if("object"==typeof t&&!Array.isArray(t)&&null!==t)return!0;const n=e?this.path.of(e):this.path,r=e??this.path.last()??"value";return this.catch(ht({typeName:"Object",property:r,path:n,value:t})),!1};string=e=>{const t=this.obj[e];return!(e&&!this.exists(e))&&("string"==typeof t||(this.catch(ht({typeName:"String",property:e,path:this.path.of(e),value:t})),!1))};number=(e,t)=>{const n=this.obj[e];return!(!t||e in this.obj)||!!this.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(this.catch(ht({typeName:"Number",property:e,path:this.path.of(e),value:n})),!1))};array=e=>{const t=this.obj[e];return!(e&&!this.exists(e))&&(!!Array.isArray(t)||(this.catch(ht({typeName:"Array",property:e,path:this.path.of(e),value:t})),!1))};enum=(e,t)=>{const n=this.obj[e];return!("string"!=typeof n||!t.includes(n))||(this.catch((({expected:e,value:t,path:n})=>({details:"Value must be one of expected values",name:"in",expected:[...e].sort(),path:n.toArray(),value:t}))({expected:t,value:n,path:this.path.of(e)})),!1)};empty=e=>{if(!this.array(e))return!1;const t=this.obj[e];return 0===t.length||(this.catch((({max:e,value:t,path:n})=>({name:"size",max:e,path:n.toArray(),details:`Size must be at most ${e}`,value:t}))({max:0,value:t,path:this.path.of(e)})),!1)};minLength=(e,t)=>{if(!this.array(e))return!1;const n=this.obj[e];return n.length>=t||(this.catch((({min:e,value:t,path:n})=>({name:"size",min:e,path:n.toArray(),details:`Size must be at least ${e}`,value:t}))({min:t,value:n,path:this.path.of(e)})),!1)};noAdditionalProperties=e=>{const t=Object.keys(this.obj).sort().filter(t=>!e.includes(t));return t.forEach(e=>this.catch((({property:e,path:t})=>({details:`The property "${e}" is not expected`,name:"unexpected",path:t.toArray()}))({property:e,path:this.path.of(e)}))),0===t.length};each=(e,t)=>{if(!this.array(e))return;const n=this.obj[e];let r=!1;n.forEach((n,i)=>{if(r)return;const o=t(n,this.path.of(e).of(i));o.length>0&&(r=!0),this.catch(...o)})}}const gt=[];class bt{contentRule;validateData;constructor(e,t){this.contentRule=e,this.validateData=t}assert(e,t){const n=new ft(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);const{nodeTypes:r,min:i=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t);if(0===r.length&&i>0)throw new Error(`Invalid content rule. Cannot have enforce a 'min' of ${i} with no nodeTypes`);if(n.minLength("content",i),0===r.length?n.empty("content"):n.each("content",(e,t)=>{const n=new ft(e,t);return n.object()?(n.enum("nodeType",r),n.errors):n.errors}),n.object("data")){const r=this.validateData?.(e.data,t.of("data"))??[];n.catch(...r)}return n.errors}}class vt extends bt{linkType;type;constructor(e,t){super(t,(e,t)=>this.assertLink(e,t)),this.linkType=e,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(e,t)=>{const n=new ft(e,t);if(n.object("target")){const r=new ft(e.target.sys,t.of("target").of("sys"));r.object()&&(r.enum("type",[this.type]),r.enum("linkType",[this.linkType]),"Link"===this.type?(r.string("id"),r.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(r.string("urn"),r.noAdditionalProperties(["type","linkType","urn"]))),n.catch(...r.errors)}return n.noAdditionalProperties(["target"]),n.errors}}const xt=(e,t)=>new bt(e,t),yt=(e,t)=>new vt(e,t);xt([...Object.values(lt),"text"].sort()),xt([at.LIST_ITEM]),yt("Entry",gt),xt(()=>({nodeTypes:[at.PARAGRAPH],min:1}),(e,t)=>{const n=new ft(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});function It(e,n){return e.map((e,r)=>{return i=Ct(e,n),o=r,t.isValidElement(i)&&null===i.key?t.cloneElement(i,{key:o}):i;var i,o})}function Ct(e,t){const{renderNode:n,renderMark:r,renderText:i,preserveWhitespace:o}=t;if(function(e){return"text"===e.nodeType}(e)){let t=i?i(e.value):e.value;if(o&&!i){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const e=t.split("\n"),n=[];e.forEach((t,r)=>{n.push(t),r!==e.length-1&&n.push(l.default.createElement("br",null))}),t=n}return e.marks.reduce((e,t)=>r[t.type]?r[t.type](e):e,t)}{const r=It(e.content,t);return e.nodeType&&n[e.nodeType]?n[e.nodeType](e,r):l.default.createElement(l.default.Fragment,null,r)}}at.DOCUMENT,xt(ut),at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.QUOTE,xt(pt[at.QUOTE]),at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,yt("Asset",gt),at.EMBEDDED_RESOURCE,yt("Contentful:Entry",gt),at.HR,xt(gt),at.OL_LIST,at.UL_LIST,at.LIST_ITEM,xt([...dt].sort()),at.TABLE,xt(()=>({nodeTypes:[at.TABLE_ROW],min:1})),at.TABLE_ROW,xt(()=>({nodeTypes:[at.TABLE_CELL,at.TABLE_HEADER_CELL],min:1})),at.TABLE_CELL,at.TABLE_HEADER_CELL,lt.HYPERLINK,new class extends bt{constructor(){super(["text"],(e,t)=>this.assertLink(e,t))}assertLink=(e,t)=>{const n=new ft(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}},lt.EMBEDDED_ENTRY,lt.EMBEDDED_RESOURCE,yt("Contentful:Entry",gt),lt.ENTRY_HYPERLINK,yt("Entry",["text"]),lt.ASSET_HYPERLINK,yt("Asset",["text"]),lt.RESOURCE_HYPERLINK,yt("Contentful:Entry",["text"]);const wt={[at.DOCUMENT]:(e,t)=>t,[at.PARAGRAPH]:(e,t)=>l.default.createElement("p",null,t),[at.HEADING_1]:(e,t)=>l.default.createElement("h1",null,t),[at.HEADING_2]:(e,t)=>l.default.createElement("h2",null,t),[at.HEADING_3]:(e,t)=>l.default.createElement("h3",null,t),[at.HEADING_4]:(e,t)=>l.default.createElement("h4",null,t),[at.HEADING_5]:(e,t)=>l.default.createElement("h5",null,t),[at.HEADING_6]:(e,t)=>l.default.createElement("h6",null,t),[at.EMBEDDED_ENTRY]:(e,t)=>l.default.createElement("div",null,t),[at.EMBEDDED_RESOURCE]:(e,t)=>l.default.createElement("div",null,t),[at.UL_LIST]:(e,t)=>l.default.createElement("ul",null,t),[at.OL_LIST]:(e,t)=>l.default.createElement("ol",null,t),[at.LIST_ITEM]:(e,t)=>l.default.createElement("li",null,t),[at.QUOTE]:(e,t)=>l.default.createElement("blockquote",null,t),[at.HR]:()=>l.default.createElement("hr",null),[at.TABLE]:(e,t)=>l.default.createElement("table",null,l.default.createElement("tbody",null,t)),[at.TABLE_ROW]:(e,t)=>l.default.createElement("tr",null,t),[at.TABLE_HEADER_CELL]:(e,t)=>l.default.createElement("th",null,t),[at.TABLE_CELL]:(e,t)=>l.default.createElement("td",null,t),[lt.ASSET_HYPERLINK]:e=>At(lt.ASSET_HYPERLINK,e),[lt.ENTRY_HYPERLINK]:e=>At(lt.ENTRY_HYPERLINK,e),[lt.RESOURCE_HYPERLINK]:e=>Et(lt.RESOURCE_HYPERLINK,e),[lt.EMBEDDED_ENTRY]:e=>At(lt.EMBEDDED_ENTRY,e),[lt.EMBEDDED_RESOURCE]:(e,t)=>Et(lt.EMBEDDED_RESOURCE,e),[lt.HYPERLINK]:(e,t)=>l.default.createElement("a",{href:e.data.uri},t)},Nt={[ct.BOLD]:e=>l.default.createElement("b",null,e),[ct.ITALIC]:e=>l.default.createElement("i",null,e),[ct.UNDERLINE]:e=>l.default.createElement("u",null,e),[ct.CODE]:e=>l.default.createElement("code",null,e),[ct.SUPERSCRIPT]:e=>l.default.createElement("sup",null,e),[ct.SUBSCRIPT]:e=>l.default.createElement("sub",null,e),[ct.STRIKETHROUGH]:e=>l.default.createElement("s",null,e)};function At(e,t){return l.default.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function Et(e,t){return l.default.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}function jt(e,t={}){if(!e)return null;let n=e;return t.stripEmptyTrailingParagraph&&(n=mt(e)),Ct(n,{renderNode:{...wt,...t.renderNode},renderMark:{...Nt,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}const kt={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Tt=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:i,...o},s)=>{const a=Ae("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:i,...o,children:t})});Tt.displayName="ListItem";const Pt=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:i,children:o,variant:s="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=Ae(u,`list--${t}`,`list--${s}`,r),p=o||(n&&0!==n.length?n.map((t,n)=>i?i(t,n):e.jsx(Tt,{className:t.className,variant:s,children:t.content},t.id||n)):null),m={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c}):e.jsx("ul",{...m,ref:c})});Pt.displayName="List";const Rt=({name:t,fill:n=0,opticalSize:r="48dp",weight:i="200",emphasis:o=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${i}, 'GRAD' ${o}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:p,className:Ae("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};Rt.displayName="MaterialIcon";const Gt=t.forwardRef(({children:e,as:t,className:n="",style:r,...i},o)=>{const s=t||"p";return l.default.createElement(s,{ref:o,className:n,style:r,...i},e)});Gt.displayName="Text";const St=t=>{const{items:n,listIconName:r="check",listItemClassName:i,listContainerClassName:o,iconSize:s=20,iconPosition:a="center",iconColor:c="green",iconClassName:u}=t,d="disc"!==r;return(null==n?void 0:n.length)?e.jsx(Pt,{className:Ae("mt-2 space-y-1",o),variant:d?"unstyled":"default",children:n.map((t,n)=>{const o=function(e){return null!==e&&"object"==typeof e&&!l.default.isValidElement(e)&&"title"in e}(t),p=o&&!!t.iconUrl,m=o?t.title:t;return e.jsxs(Tt,{variant:d?"unstyled":"default",className:Ae(`${d?"flex":""} ${"top"===a?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[d&&p?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:t.iconUrl,alt:t.iconAlt||"",width:s,height:s,className:Ae("block object-contain","top"===a?"mt-1":"",u)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx(Rt,{name:r,size:s,color:kt[c],weight:"600",className:Ae("block","top"===a?"mt-1":"",u)})}):null,e.jsx(Gt,{as:"div",children:m})]},n)})}):null};var Bt;St.displayName="Checklist";const Vt="function"==typeof c.default?c.default:null!==(Bt=c.default.default)&&void 0!==Bt?Bt:c.default,Lt=t.forwardRef(({children:t,href:n,className:r="",onClick:i,variant:o="unstyled",style:s,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(" ")})(),p=e=>{l?e.preventDefault():null==i||i(e)},m=Ae(d,`link--${o}`,l&&"link--disabled",r),h={...c,ref:u,className:m,style:s,href:l?void 0:n,onClick:p,...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return a||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(Vt,{href:n||"#",className:m,onClick:p,...c,children:t})});Lt.displayName="Link";const Mt={renderMark:{[ct.BOLD]:t=>e.jsx("strong",{className:"label3",children:t}),[ct.ITALIC]:t=>e.jsx("em",{children:t}),[ct.UNDERLINE]:t=>e.jsx("u",{children:t}),[ct.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[at.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4",children:n}),[at.HEADING_1]:(t,n)=>e.jsx(Gt,{as:"h1",className:"heading2 md:heading1",children:n}),[at.HEADING_2]:(t,n)=>e.jsx(Gt,{as:"h2",className:"heading6 md:heading5",children:n}),[at.HEADING_3]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6 md:heading5",children:n}),[at.HEADING_4]:(t,n)=>e.jsx(Gt,{as:"h3",className:"headingClass",children:n}),[at.HEADING_5]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6 md:heading5",children:n}),[at.HEADING_6]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6",children:n}),[at.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[at.UL_LIST]:(t,n)=>e.jsx("ul",{children:n}),[at.OL_LIST]:(t,n)=>e.jsx("ol",{children:n}),[at.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[lt.HYPERLINK]:(t,n)=>{var r;const i=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,o=/^https?:\/\//.test(i);return e.jsx("a",{href:i,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,children:n})},[at.EMBEDDED_ASSET]:t=>{var n,r;const i=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,o=null==i?void 0:i.fields,s=(null==i?void 0:i.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),a=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!s)return null;const l=s.startsWith("//")?`https:${s}`:s;return e.jsx("img",{src:l,alt:a,style:{maxWidth:"100%"}})},[at.EMBEDDED_ENTRY]:t=>{var n,r,i,o;const s=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"callout"===(null===(o=null===(i=null===(r=null==s?void 0:s.sys)||void 0===r?void 0:r.contentType)||void 0===i?void 0:i.sys)||void 0===o?void 0:o.id)?e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:s.fields.title}),e.jsx("div",{children:s.fields.body})]}):null},[lt.EMBEDDED_ENTRY]:t=>{var n,r,i,o,s,a;const l=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"componentCheckList"===(null===(o=null===(i=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===i?void 0:i.sys)||void 0===o?void 0:o.id)?e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",l.fields.title]}):e.jsx("span",{children:null!==(a=null===(s=null==l?void 0:l.fields)||void 0===s?void 0:s.title)&&void 0!==a?a:""})}}};function Dt(t,n,r="body1",i="body1 font-bold",o){if(!t||!Array.isArray(t.content))return null;const s={...Mt,...o,renderNode:{...Mt.renderNode,...null==o?void 0:o.renderNode,[at.PARAGRAPH]:(t,n)=>e.jsx("div",{className:r,children:n}),[lt.HYPERLINK]:(t,r)=>{var o;const s=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.uri,a=/^https?:\/\//.test(s),l=null!=n?n:a;return e.jsx(Lt,{href:s,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,variant:"default",className:i,children:r})}}};return jt(t,s)}const Ot={renderMark:{[ct.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const Wt=t.forwardRef(({children:t,className:n="",style:r,disabled:i,...o},s)=>e.jsx("button",{ref:s,className:Ae(n),style:r,disabled:i,...o,children:t}));Wt.displayName="Button";const Xt=n=>{const{open:r,children:i}=n,o=t.useRef(null),[s,a]=t.useState(0);return t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,i]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:o,children:i})})};Xt.displayName="Collapse";const Ft=n=>{const{title:r,defaultOpen:i,children:o,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,iconClassName:u,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[m,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(i))},[d,i]),e.jsxs("div",{className:Ae(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(Wt,{type:"button",className:Ae(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:Ae("label5 flex-1",a),children:r}),e.jsx(Rt,{className:Ae("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(Xt,{open:m,children:e.jsx("div",{className:Ae("px-4 py-4",l),children:o})})]})};Ft.displayName="Accordion";const Ht=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ae("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};Ht.displayName="Divider";const zt=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()},Zt=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:i,disabled:o,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,as:p="button",...m},h)=>{const f=(()=>{const e=Ae((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()})(l),"rounded-button 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 whitespace-nowrap",s?"w-full":"w-auto"),r=Ae((o||n)&&"cursor-not-allowed",n&&"pl-7");return Ae(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:ring-input-border-hover disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let g=`button--${t}`;n&&(g+=" button--loading"),o&&(g+=" button--disabled");const b=`${g} ${f}`,v=e.jsxs(e.Fragment,{children:[n?e.jsx(Rt,{name:"progress_activity",className:"animate-spin"}):null,i?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ae(zt(l)),children:i}),r]}):r,c?e.jsx(Rt,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===p?e.jsx("a",{ref:h,className:Ae(b),...m,children:v}):e.jsx("button",{ref:h,className:Ae(b),disabled:o||n,...m,children:v})});Zt.displayName="BrandButton";const Yt=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:i,buttonPrefix:o,href:s,target:a="_blank",anchorId:l,linkClassName:c,linkVariant:u,fullWidth:d,preDefinedFunctionExecution:p,renderCheckPlans:m,buttonClassName:h,clickToOpen:f,tabmodalNameToOpen:g,onModalButtonClick:b,onClick:v,iconName:x,iconFill:y=0,size:I,iconSize:C=24,preserveQueryParameters:w,...N}=t;if("check availability"===p){return null==m?void 0:m({ctaText:i,buttonVariant:r,showButtonAs:n,cta:{...t}})}function A(){"modal"===f&&(null==b||b(g))}function E(e){A(),null==v||v(e)}function j(e){A(),null==v||v(e)}const k="undefined"!=typeof window?window.location.search:"",T=s&&w&&k?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(it),i=new Set([...r,"searchtext","page"]);let o,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);o=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");o=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{i.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${o}?${l}`:o}(s,k):s;let P=e.jsx(Wt,{onClick:j,className:h,...N});switch(n){case"solid":P=T?e.jsx(Zt,{as:"a",href:T,id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:E}):e.jsx(Zt,{id:l,variant:r,text:i,label:o,fullWidth:d,size:I,onClick:j,buttonClassName:h});break;case"text":P=e.jsxs(Lt,{title:i,href:T,target:a,variant:u||"default",className:`text-text-brand ${c||""}`,onClick:E,children:[i," ",x&&e.jsx(Rt,{name:x,size:C,fill:y})]});break;case"button-with-icon":P=T?e.jsx(Zt,{as:"a",href:T,id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:E,iconName:x,iconSize:C,iconFill:y}):e.jsx(Zt,{id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:j,iconName:x,iconSize:C,iconFill:y});break;case"text-with-icon":{const t=(e=>({primary_brand:"text-text-brand",primary_inverse:"text-text-inverse",secondary:"text-text"}[e]||"text-text-brand"))(r);P=e.jsxs(Lt,{href:T,target:a,onClick:E,className:Ae("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,h),"aria-label":i,children:[e.jsx(Gt,{"aria-label":i,className:"label1 text-nowrap",children:i}),x&&e.jsx(Rt,{name:x,fill:y,size:C,weight:"200"})]});break}}return P};var Jt;const Ut=null!==(Jt=c.default)&&void 0!==Jt?Jt:c,_t=({href:t,title:n,description:r,date:i,category:o,image:s,imageComponent:a,readMoreText:l="Read more",asGrid:c=!0,lgWidth:u,mdWidth:d,index:p})=>{const m=c?"flex h-full flex-col overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop":`callout-card lg:w-[calc(33.3333%-1rem)] md:w-[calc(50%-1rem)] ${u} ${d} w-full overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop`;return e.jsxs("article",{className:m,"data-section-type":"blog-card","data-section-index":p,children:[e.jsx(Ut,{href:t,tabIndex:-1,"aria-hidden":"true",className:"block",children:e.jsx("div",{className:"h-[232px] w-full flex-shrink-0 overflow-hidden bg-gray-100",children:s?a?e.jsx(a,{src:s.src,alt:s.alt,width:s.width,height:s.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("img",{src:s.src,alt:s.alt,width:s.width,height:s.height,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),e.jsxs("div",{className:"flex flex-1 flex-col gap-5 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[e.jsx("span",{className:"body2 text-text-brand",children:o}),i&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:i})]})]}),n&&e.jsx(Ut,{href:t,className:"heading6 m-0 line-clamp-3 font-black transition-colors duration-150 hover:text-text-brand",children:n}),r&&e.jsx(Gt,{className:"body1 m-0 line-clamp-3 flex-1 text-text",children:r}),e.jsxs(Ut,{href:t,className:"group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm text-text-brand no-underline","aria-label":`${l} about ${n||"this article"}`,children:[e.jsx(Gt,{"aria-label":`${l} about ${n||"this article"}`,className:"label1 text-nowrap",children:l}),e.jsx(Rt,{name:"expand_circle_right",fill:1,size:24,weight:"200"})]})]})]})},$t=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(u.default),Qt=({src:e,width:t,quality:n})=>{const r=new URL(e);return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(n||90)),r.searchParams.set("fm","webp"),r.toString()},Kt=t.forwardRef(({className:t,...n},r)=>{const i="string"==typeof n.src?n.src:"",o=i.toLowerCase().split("?")[0]||"",s=i.includes("images.ctfassets.net"),a=s&&o.endsWith(".svg"),l=s&&!a?{loader:Qt,unoptimized:!1}:{unoptimized:a};return e.jsx($t,{ref:r,className:Ae(t),...n,...l})});Kt.displayName="NextImage";const qt={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},en=({card:t,lgWidth:n,mdWidth:r})=>{var i,o,s,a;const{image:l,title:c,header:u,body:d,cta:p,ctaAlignment:m,imageLink:h,imageClassName:f,className:g,isPromoBarImg:b=!1,shadow:v=!1}=t,x=m?qt[m]:qt.left,y=h?"cursor-pointer":"",I=h?()=>{"undefined"!=typeof window&&window.open(h,"_blank")}:void 0;return b?(null==l?void 0:l.href)?e.jsx(Kt,{src:l.href,alt:null!==(o=null!==(i=l.title)&&void 0!==i?i:c)&&void 0!==o?o:"promo-bar-image",width:148,height:40,onClick:I,className:y}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ae("callout-card relative flex h-full w-full flex-col gap-4 p-0 md:items-start lg:gap-6",v&&"rounded-3xl shadow-card",r,n,g),children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ae("relative aspect-video w-full overflow-hidden rounded-[40px] sm:mb-1 md:flex-none lg:mb-0",f),children:e.jsx(Kt,{src:l.href,alt:null!==(a=null!==(s=l.title)&&void 0!==s?s:c)&&void 0!==a?a:"card-image",width:l.width||400,height:l.height||285,onClick:I,className:Ae("h-full max-h-[285px] w-full object-cover",y)})}):null,u?e.jsx(Gt,{as:"h6",className:"heading6 font-black text-text lg:pb-2",children:u}):null,d?e.jsx(Gt,{as:"div",className:"body2 mb-0 flex-1 text-text",children:d}):null,e.jsx("div",{className:Ae(x,"mt-auto"),children:p?e.jsx(Yt,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...p,iconName:"expand_circle_right",iconFill:1}):null})]})},tn=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:i="FullImageCard",title:o,description:s,caption:a,image:l,cta:c,link:u,className:d,contentClassName:p,imageClassName:m,shadow:h=!0}=t,f=c||u,g=null==f?void 0:f.href,b=o?e.jsx(Gt,{as:"h3",className:"body1 text-text xl:heading6",children:o}):null;return e.jsxs("section",{id:i,className:Ae("callout-card relative flex flex-col rounded-3xl bg-white p-0",h&&"shadow-card",r,n,"w-full",d),"aria-labelledby":`card-title-${i}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ae("relative aspect-video overflow-hidden rounded-tl-3xl rounded-tr-3xl",m),children:(()=>{var t,n;if(!(null==l?void 0:l.href))return null;const r=e.jsx(Kt,{src:l.href,alt:null!==(n=null!==(t=l.title)&&void 0!==t?t:o)&&void 0!==n?n:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return g?e.jsx(Lt,{href:g,tabIndex:-1,target:null==f?void 0:f.target,children:r}):r})()}):null,e.jsxs("div",{className:Ae("flex h-full flex-col gap-4 p-6 md:p-8",p),children:[e.jsxs("div",{className:"flex flex-1 flex-col justify-between",children:[e.jsxs("div",{children:[g&&b?e.jsx(Lt,{href:g,target:null==f?void 0:f.target,className:"no-underline hover:underline",children:b}):b,s?e.jsx(Gt,{as:"p",className:"body2 mt-4 text-text md:body1",children:s}):null]}),a?e.jsx(Gt,{as:"p",className:"footnote mt-5 text-text-secondary",children:a}):null]}),c?e.jsx("div",{className:"mt-2 flex items-end",children:e.jsx(Yt,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...c,iconName:"expand_circle_right",iconFill:1})}):null]})]})},nn={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},rn={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},on={left:"justify-start",right:"justify-end",center:"justify-center"},sn=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},an=({card:t,lgWidth:n,mdWidth:r,className:i,contentClassName:o,style:s})=>{var a,l,c,u,d,p,m,h,f,g,b,v,x,y,I,C,w;const N=null===(a=t.imageView)||void 0===a?void 0:a.toLowerCase(),A="full"===N,E="margin"===N,j="standard"===N,k="icon"===N||"inset"===N||!N&&!!t.image,T=j||k,P=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",R=t.ctaAlignment&&rn[t.ctaAlignment]||rn.left,G=t.ctaAlignmentBottom&&on[t.ctaAlignmentBottom]||on.left,S=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],B=T&&t.applyCardBackgroundColor,V={...s,...B&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...B&&t.textColor?{"--scc-fg":t.textColor}:{},...B&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...B&&t.showBackgroundImage&&S?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ee(S))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},L=n=>{var r,i;return t.image?e.jsx("div",{className:Ae("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Kt,{src:t.image,alt:null!==(i=null!==(r=t.imageAlt)&&void 0!==r?r:t.title)&&void 0!==i?i:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ae("w-full",!n&&"rounded-t-3xl")})}):null},M=B&&t.textColor?{color:t.textColor}:void 0,D=t.title?e.jsx(Gt,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:M,children:t.title}):null,O=(null===(d=t.cta)||void 0===d?void 0:d.href)&&D?e.jsx(Lt,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:M,children:D}):D,W=(null!==(m=null===(p=t.workingHours)||void 0===p?void 0:p.length)&&void 0!==m?m:0)>0||(null!==(f=null===(h=t.phoneNumber)||void 0===h?void 0:h.length)&&void 0!==f?f:0)>0;return e.jsxs("section",{className:Ae("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!A&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(b=nn[null!==(g=t.backgroundColor)&&void 0!==g?g:""])&&void 0!==b?b:""),r,n,i),style:V,"aria-labelledby":t.title?`callout-${t.title}`:void 0,children:[(null===(v=t.ctaBottom)||void 0===v?void 0:v.title)&&(null===(x=t.ctaBottom)||void 0===x?void 0:x.href)?e.jsx("div",{className:Ae("top-link m-6 flex items-center lg:m-8",G),children:e.jsxs(Lt,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx(Rt,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&A?L(!1):null,t.image&&E?L(!0):null,e.jsxs("div",{className:Ae("relative flex flex-1 flex-col justify-between px-6 pb-8 pt-7 lg:px-8 lg:py-8",o),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ae("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ae(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||A||E?null:(()=>{var n,r;if(!t.image)return null;const i=j&&t.imageWidth||60,o=j&&t.imageHeight||60;return e.jsx("div",{className:Ae("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:P},children:e.jsx(Kt,{src:t.image,alt:null!==(r=null!==(n=t.imageAlt)&&void 0!==n?n:t.title)&&void 0!==r?r:"card-icon",width:i,height:o,className:Ae("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[O,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(Gt,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,W?e.jsx("div",{className:"mb-2",children:e.jsx("table",{children:e.jsxs("tbody",{children:[null===(y=t.workingHours)||void 0===y?void 0:y.map((t,n)=>{const[r,i]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(Gt,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(Gt,{className:"body2 font-bold text-text",children:i})})]},`wh-${n}`)}),null===(I=t.phoneNumber)||void 0===I?void 0:I.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx(Rt,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(Lt,{href:sn(t),className:"text-inherit no-underline",children:e.jsx(Gt,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(Gt,{as:"div",className:"body1 text-text",style:M,children:t.body}):null,t.richText?e.jsx(Gt,{as:"div",className:"body1 text-text",style:M,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ae("mt-2",R),children:e.jsx(Yt,{linkVariant:"unstyled",linkClassName:Ae("label1 flex items-center gap-2 text-text",B&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(C=t.cta.iconName)&&void 0!==C?C:"expand_circle_right",iconFill:null!==(w=t.cta.iconFill)&&void 0!==w?w:1})}):null]})]})},ln=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cn=t.createContext({}),un=t.createContext(null),dn="undefined"!=typeof document,pn=dn?t.useLayoutEffect:t.useEffect,mn=t.createContext({strict:!1});function hn(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fn(e){return"string"==typeof e||Array.isArray(e)}function gn(e){return"object"==typeof e&&"function"==typeof e.start}const bn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vn=["initial",...bn];function xn(e){return gn(e.animate)||vn.some(t=>fn(e[t]))}function yn(e){return Boolean(xn(e)||e.variants)}function In(e){const{initial:n,animate:r}=function(e,t){if(xn(e)){const{initial:t,animate:n}=e;return{initial:!1===t||fn(t)?t:void 0,animate:fn(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(cn));return t.useMemo(()=>({initial:n,animate:r}),[Cn(n),Cn(r)])}function Cn(e){return Array.isArray(e)?e.join(" "):e}const wn={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"]},Nn={};for(const e in wn)Nn[e]={isEnabled:t=>wn[e].some(e=>!!t[e])};const An=t.createContext({}),En=t.createContext({}),jn=Symbol.for("motionComponentSymbol");function kn({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Nn[t]={...Nn[t],...e[t]}}(e);const s=t.forwardRef(function(s,a){let c;const u={...t.useContext(ln),...s,layoutId:Tn(s)},{isStatic:d}=u,p=In(s),m=i(s,d);if(!d&&dn){p.visualElement=function(e,n,r,i){const{visualElement:o}=t.useContext(cn),s=t.useContext(mn),a=t.useContext(un),l=t.useContext(ln).reducedMotion,c=t.useRef();i=i||s.renderer,!c.current&&i&&(c.current=i(e,{visualState:n,parent:o,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),pn(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?pn:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(o,m,u,n);const r=t.useContext(En),i=t.useContext(mn).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,i,e,r))}return l.createElement(cn.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):hn(r)&&(r.current=t))},[n])}(m,p.visualElement,a),m,d,p.visualElement))});return s[jn]=o,s}function Tn({layoutId:e}){const n=t.useContext(An).id;return n&&void 0!==e?n+"-"+e:e}function Pn(e){function t(t,n={}){return kn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Rn=["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 Gn(e){return"string"==typeof e&&!e.includes("-")&&!!(Rn.indexOf(e)>-1||/[A-Z]/.test(e))}const Sn={};const Bn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Bn);function Ln(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Sn[e]||"opacity"===e)}const Mn=e=>Boolean(e&&e.getVelocity),Dn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},On=Bn.length;const Wn=e=>t=>"string"==typeof t&&t.startsWith(e),Xn=Wn("--"),Fn=Wn("var(--"),Hn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,zn=(e,t,n)=>Math.min(Math.max(n,e),t),Zn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Yn={...Zn,transform:e=>zn(0,1,e)},Jn={...Zn,default:1},Un=e=>Math.round(1e5*e)/1e5,_n=/(-)?([\d]*\.?[\d])+/g,$n=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Qn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kn(e){return"string"==typeof e}const qn=e=>({test:t=>Kn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),er=qn("deg"),tr=qn("%"),nr=qn("px"),rr=qn("vh"),ir=qn("vw"),or={...tr,parse:e=>tr.parse(e)/100,transform:e=>tr.transform(100*e)},sr={...Zn,transform:Math.round},ar={borderWidth:nr,borderTopWidth:nr,borderRightWidth:nr,borderBottomWidth:nr,borderLeftWidth:nr,borderRadius:nr,radius:nr,borderTopLeftRadius:nr,borderTopRightRadius:nr,borderBottomRightRadius:nr,borderBottomLeftRadius:nr,width:nr,maxWidth:nr,height:nr,maxHeight:nr,size:nr,top:nr,right:nr,bottom:nr,left:nr,padding:nr,paddingTop:nr,paddingRight:nr,paddingBottom:nr,paddingLeft:nr,margin:nr,marginTop:nr,marginRight:nr,marginBottom:nr,marginLeft:nr,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Jn,scaleX:Jn,scaleY:Jn,scaleZ:Jn,skew:er,skewX:er,skewY:er,distance:nr,translateX:nr,translateY:nr,translateZ:nr,x:nr,y:nr,z:nr,perspective:nr,transformPerspective:nr,opacity:Yn,originX:or,originY:or,originZ:nr,zIndex:sr,fillOpacity:Yn,strokeOpacity:Yn,numOctaves:sr};function lr(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Xn(e)){o[e]=n;continue}const r=ar[e],d=Hn(n,r);if(Vn.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):i[e]=d}if(t.transform||(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<On;t++){const n=Bn[t];void 0!==e[n]&&(o+=`${Dn[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}const cr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ur(e,t,n){for(const r in t)Mn(t[r])||Ln(r,n)||(e[r]=t[r])}function dr(e,n,r){const i={};return ur(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return lr(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(i):i}function pr(e,t,n){const r={},i=dr(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const mr=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 hr(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||mr.has(e)}let fr=e=>!hr(e);try{(gr=require("@emotion/is-prop-valid").default)&&(fr=e=>e.startsWith("on")?!hr(e):gr(e))}catch(Jt){}var gr;function br(e,t,n){return"string"==typeof e?e:nr.transform(t+n*e)}const vr={offset:"stroke-dashoffset",array:"stroke-dasharray"},xr={offset:"strokeDashoffset",array:"strokeDasharray"};function yr(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(lr(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${br(t,e.x,e.width)} ${br(n,e.y,e.height)}`}(f,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?vr:xr;e[o.offset]=nr.transform(-r);const s=nr.transform(t),a=nr.transform(n);e[o.array]=`${s} ${a}`}(m,s,a,l,!1)}const Ir=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Cr=e=>"string"==typeof e&&"svg"===e.toLowerCase();function wr(e,n,r,i){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return yr(t,n,{enableHardwareAcceleration:!1},Cr(i),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};ur(t,e.style,e),o.style={...t,...o.style}}return o}function Nr(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Gn(n)?wr:pr)(r,o,s,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(fr(i)||!0===n&&hr(i)||!t&&!hr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:i},{children:u}=r,d=t.useMemo(()=>Mn(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const Ar=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Er(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const jr=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 kr(e,t,n,r){Er(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(jr.has(n)?n:Ar(n),t.attrs[n])}function Tr(e,t){const{style:n}=e,r={};for(const i in n)(Mn(n[i])||t.style&&Mn(t.style[i])||Ln(i,e))&&(r[i]=n[i]);return r}function Pr(e,t){const n=Tr(e,t);for(const r in e)if(Mn(e[r])||Mn(t[r])){n[-1!==Bn.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Rr(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function Gr(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Sr=e=>Array.isArray(e),Br=e=>Sr(e)?e[e.length-1]||0:e;function Vr(e){const t=Mn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Lr=e=>(n,r)=>{const i=t.useContext(cn),o=t.useContext(un),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Mr(r,i,o,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,i,o);return r?s():Gr(s)};function Mr(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=Vr(o[e]);let{initial:s,animate:a}=e;const l=xn(e),c=yn(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!gn(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Rr(e,t);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]})}return i}const Dr={useVisualState:Lr({scrapeMotionValuesFromProps:Pr,createRenderState:Ir,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}yr(n,r,{enableHardwareAcceleration:!1},Cr(t.tagName),e.transformTemplate),kr(t,n)}})},Or={useVisualState:Lr({scrapeMotionValuesFromProps:Tr,createRenderState:cr})};function Wr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Xr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Fr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Hr(e,t,n,r){return Wr(e,t,(e=>t=>Xr(t)&&e(t,Fr(t)))(n),r)}const zr=(e,t)=>n=>t(e(n)),Zr=(...e)=>e.reduce(zr);function Yr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Jr=Yr("dragHorizontal"),Ur=Yr("dragVertical");function _r(e){let t=!1;if("y"===e)t=Ur();else if("x"===e)t=Jr();else{const e=Jr(),n=Ur();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function $r(){const e=_r(!0);return!e||(e(),!1)}class Qr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Kr={delta:0,timestamp:0,isProcessing:!1};let qr=!0,ei=!1;const ti=["read","update","preRender","render","postRender"],ni=ti.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&i,c=l?t:n;return o&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}i=!1,o&&(o=!1,a.process(l))}}};return a}(()=>ei=!0),e),{}),ri=e=>ni[e].process(Kr),ii=e=>{ei=!1,Kr.delta=qr?1e3/60:Math.max(Math.min(e-Kr.timestamp,40),1),Kr.timestamp=e,Kr.isProcessing=!0,ti.forEach(ri),Kr.isProcessing=!1,ei&&(qr=!1,requestAnimationFrame(ii))},oi=ti.reduce((e,t)=>{const n=ni[t];return e[t]=(e,t=!1,r=!1)=>(ei||(ei=!0,qr=!0,Kr.isProcessing||requestAnimationFrame(ii)),n.schedule(e,t,r)),e},{});function si(e){ti.forEach(t=>ni[t].cancel(e))}function ai(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Hr(e.current,n,(n,i)=>{if("touch"===n.type||$r())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&oi.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}const li=(e,t)=>!!t&&(e===t||li(e,t.parentElement)),ci=e=>e;function ui(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fr(n))}const di=new WeakMap,pi=new WeakMap,mi=e=>{const t=di.get(e.target);t&&t(e)},hi=e=>{e.forEach(mi)};function fi(e,t,n){const r=function({root:e,...t}){const n=e||document;pi.has(n)||pi.set(n,{});const r=pi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(hi,{root:e,...t})),r[i]}(t);return di.set(e,n),r.observe(e),()=>{di.delete(e),r.unobserve(e)}}const gi={some:0,all:1};const bi={inView:{Feature:class extends Qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:gi[r]};return fi(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;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 Qr{constructor(){super(...arguments),this.removeStartListeners=ci,this.removeEndListeners=ci,this.removeAccessibleListeners=ci,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Hr(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();oi.update(()=>{li(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=Hr(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zr(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Wr(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Wr(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ui("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&oi.update(()=>n(e,t))})}),ui("down",(e,t)=>{this.startPress(e,t)})}),t=Wr(this.node.current,"blur",()=>{this.isPressing&&ui("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Zr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&oi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$r()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&oi.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Hr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Wr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Qr{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=Zr(Wr(this.node.current,"focus",()=>this.onFocus()),Wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Qr{mount(){this.unmount=Zr(ai(this.node,!0),ai(this.node,!1))}unmount(){}}}};function vi(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function xi(e,t,n){const r=e.getProps();return Rr(r,t,void 0!==n?n:r.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 yi="data-"+Ar("framerAppearId");let Ii=ci,Ci=ci;"production"!==process.env.NODE_ENV&&(Ii=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ci=(e,t)=>{if(!e)throw new Error(t)});const wi=e=>1e3*e,Ni=e=>e/1e3,Ai=!1,Ei=e=>Array.isArray(e)&&"number"==typeof e[0];function ji(e){return Boolean(!e||"string"==typeof e&&Ti[e]||Ei(e)||Array.isArray(e)&&e.every(ji))}const ki=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ti={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ki([0,.65,.55,1]),circOut:ki([.55,0,1,.45]),backIn:ki([.31,.01,.66,-.59]),backOut:ki([.33,1.53,.69,.99])};function Pi(e){if(e)return Ei(e)?ki(e):Array.isArray(e)?e.map(Pi):Ti[e]}const Ri={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Gi={},Si={};for(const e in Ri)Si[e]=()=>(void 0===Gi[e]&&(Gi[e]=Ri[e]()),Gi[e]);const Bi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Vi(e,t,n,r){if(e===t&&n===r)return ci;const i=t=>function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=Bi(s,r,i)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Bi(i(e),t,r)}const Li=Vi(.42,0,1,1),Mi=Vi(0,0,.58,1),Di=Vi(.42,0,.58,1),Oi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wi=e=>t=>1-e(1-t),Xi=e=>1-Math.sin(Math.acos(e)),Fi=Wi(Xi),Hi=Oi(Fi),zi=Vi(.33,1.53,.69,.99),Zi=Wi(zi),Yi=Oi(Zi),Ji={linear:ci,easeIn:Li,easeInOut:Di,easeOut:Mi,circIn:Xi,circInOut:Hi,circOut:Fi,backIn:Zi,backInOut:Yi,backOut:zi,anticipate:e=>(e*=2)<1?.5*Zi(e):.5*(2-Math.pow(2,-10*(e-1)))},Ui=e=>{if(Array.isArray(e)){Ci(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Vi(t,n,r,i)}return"string"==typeof e?(Ci(void 0!==Ji[e],`Invalid easing type '${e}'`),Ji[e]):e},_i=(e,t)=>n=>Boolean(Kn(n)&&Qn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$i=(e,t,n)=>r=>{if(!Kn(r))return r;const[i,o,s,a]=r.match(_n);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Qi={...Zn,transform:e=>Math.round((e=>zn(0,255,e))(e))},Ki={test:_i("rgb","red"),parse:$i("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qi.transform(e)+", "+Qi.transform(t)+", "+Qi.transform(n)+", "+Un(Yn.transform(r))+")"};const qi={test:_i("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Ki.transform},eo={test:_i("hsl","hue"),parse:$i("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tr.transform(Un(t))+", "+tr.transform(Un(n))+", "+Un(Yn.transform(r))+")"},to={test:e=>Ki.test(e)||qi.test(e)||eo.test(e),parse:e=>Ki.test(e)?Ki.parse(e):eo.test(e)?eo.parse(e):qi.parse(e),transform:e=>Kn(e)?e:e.hasOwnProperty("red")?Ki.transform(e):eo.transform(e)},no=(e,t,n)=>-n*e+n*t+e;function ro(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 io=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},oo=[qi,Ki,eo];function so(e){const t=(n=e,oo.find(e=>e.test(n)));var n;Ci(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===eo&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=ro(a,r,e+1/3),o=ro(a,r,e),s=ro(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const ao=(e,t)=>{const n=so(e),r=so(t),i={...n};return e=>(i.red=io(n.red,r.red,e),i.green=io(n.green,r.green,e),i.blue=io(n.blue,r.blue,e),i.alpha=no(n.alpha,r.alpha,e),Ki.transform(i))};const lo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:ci},co={regex:$n,countKey:"Colors",token:"${c}",parse:to.parse},uo={regex:_n,countKey:"Numbers",token:"${n}",parse:Zn.parse};function po(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function mo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&po(n,lo),po(n,co),po(n,uo),n}function ho(e){return mo(e).values}function fo(e){const{values:t,numColors:n,numVars:r,tokenised:i}=mo(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(lo.token,e[i]):i<r+n?t.replace(co.token,to.transform(e[i])):t.replace(uo.token,Un(e[i]));return t}}const go=e=>"number"==typeof e?0:e;const bo={test:function(e){var t,n;return isNaN(e)&&Kn(e)&&((null===(t=e.match(_n))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($n))||void 0===n?void 0:n.length)||0)>0},parse:ho,createTransformer:fo,getAnimatableNone:function(e){const t=ho(e);return fo(e)(t.map(go))}},vo=(e,t)=>n=>`${n>0?t:e}`;function xo(e,t){return"number"==typeof e?n=>no(e,t,n):to.test(e)?ao(e,t):e.startsWith("var(")?vo(e,t):Co(e,t)}const yo=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>xo(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Io=(e,t)=>{const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=xo(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Co=(e,t)=>{const n=bo.createTransformer(t),r=mo(e),i=mo(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Zr(yo(r.values,i.values),n):(Ii(!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.`),vo(e,t))},wo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},No=(e,t)=>n=>no(e,t,n);function Ao(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?No:"string"==typeof o?to.test(o)?ao:Co:Array.isArray(o)?yo:"object"==typeof o?Io:No);var o;const s=e.length-1;for(let n=0;n<s;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||ci:t;o=Zr(e,o)}r.push(o)}return r}function Eo(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ci(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 s=Ao(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=wo(e[n],e[n+1],t);return s[n](r)};return n?t=>l(zn(e[0],e[o-1],t)):l}function jo(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=wo(0,t,r);e.push(no(n,1,i))}}(t,e.length-1),t}function ko({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ui):Ui(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:jo(t),e),a=Eo(s,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||Di).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function To(e,t){return t?e*(1e3/t):0}function Po(e,t,n){const r=Math.max(t-5,0);return To(n-e(r),t-r)}const Ro=.001;function Go({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ii(e<=wi(10),"Spring duration must be 10 seconds or less");let s=1-t;s=zn(.05,1,s),e=zn(.01,10,Ni(e)),s<1?(i=t=>{const r=t*s,i=r*e,o=r-n,a=Bo(t,s),l=Math.exp(-i);return Ro-o/a*l},o=t=>{const r=t*s*e,o=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Bo(Math.pow(t,2),s);return(-i(t)+Ro>0?-1:1)*((o-a)*l)/c}):(i=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 r=n;for(let n=1;n<So;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=wi(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const So=12;function Bo(e,t){return e*Math.sqrt(1-t*t)}const Vo=["duration","bounce"],Lo=["stiffness","damping","mass"];function Mo(e,t){return t.some(t=>void 0!==e[t])}function Do({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mo(e,Lo)&&Mo(e,Vo)){const n=Go(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Ni(u):0,h=l/(2*Math.sqrt(a*c)),f=o-i,g=Ni(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Bo(g,h);v=t=>{const n=Math.exp(-h*g*t);return o-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return o-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let i=m;0!==e&&(i=h<1?Po(v,e,r):0);const a=Math.abs(i)<=n,l=Math.abs(o-r)<=t;s.done=a&&l}return s.value=s.done?o:r,s}}}function Oo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,I=Do({keyframes:[p.value,m(p.value)],velocity:Po(v,e,p.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?I.next(e-y):(!t&&x(e),p)}}}const Wo=e=>{const t=({timestamp:t})=>e(t);return{start:()=>oi.update(t,!0),stop:()=>si(t),now:()=>Kr.isProcessing?Kr.timestamp:performance.now()}};function Xo(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 Fo={decay:Oo,inertia:Oo,tween:ko,keyframes:ko,spring:Do};function Ho({autoplay:e=!0,delay:t=0,driver:n=Wo,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=Fo[i]||ko;let y;x!==ko&&"number"!=typeof r[0]&&(y=Eo([0,100],r,{clamp:!1}),r=[0,100]);const I=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",N=null,A=null,E=null;null===I.calculatedDuration&&o&&(I.calculatedDuration=Xo(I));const{calculatedDuration:j}=I;let k=1/0,T=1/0;null!==j&&(k=j+s,T=k*(o+1)-s);let P=0;const R=e=>{if(null===A)return;f>0&&(A=Math.min(A,e)),P=null!==N?N:(e-A)*f;const n=P-t,i=n<0;P=Math.max(n,0),"finished"===w&&null===N&&(P=T);let l=P,c=I;if(o){const e=P/k;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/k)):"mirror"===a&&(c=C));let i=zn(0,1,n);P>T&&(i="reverse"===a&&r?1:0),l=i*k}const u=i?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;i||null===j||(p=P>=T);const m=null===N&&("finished"===w||"running"===w&&p||f<0&&P<=0);return d&&d(u.value),m&&B(),u},G=()=>{v&&v.stop(),v=void 0},S=()=>{w="idle",G(),b(),A=E=null},B=()=>{w="finished",u&&u(),G(),b()},V=()=>{if(g)return;v||(v=n(R));const e=v.now();l&&l(),null!==N?A=e-N:A&&"finished"!==w||(A=e),E=A,N=null,w="running",v.start()};e&&V();const L={then:(e,t)=>h.then(e,t),get time(){return Ni(P)},set time(e){e=wi(e),P=e,null===N&&v&&0!==f?A=v.now()-e/f:N=e},get duration(){const e=null===I.calculatedDuration?Xo(I):I.calculatedDuration;return Ni(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,L.time=Ni(P))},get state(){return w},play:V,pause:()=>{w="paused",N=P},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),S())},cancel:()=>{null!==E&&R(E),S()},complete:()=>{w="finished"},sample:e=>(A=0,R(e))};return L}const zo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Zo(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Si.waapi()&&zo.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const l=()=>{s=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!ji(t.ease))(t,i)){const e=Ho({...i,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Pi(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{oi.update(h),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,i)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Ni(m.currentTime||0)},set time(e){m.currentTime=wi(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Ni(u)},play:()=>{a||(m.play(),si(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Ho({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Yo={type:"spring",stiffness:500,damping:25,restSpeed:10},Jo={type:"keyframes",duration:.8},Uo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_o=(e,{keyframes:t})=>t.length>2?Jo:Vn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Yo:Uo,$o=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!bo.test(t)&&"0"!==t||t.startsWith("url("))),Qo=new Set(["brightness","contrast","saturate","opacity"]);function Ko(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(_n)||[];if(!r)return e;const i=n.replace(r,"");let o=Qo.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qo=/([a-z-]*)\(.*?\)/g,es={...bo,getAnimatableNone:e=>{const t=e.match(qo);return t?t.map(Ko).join(" "):e}},ts={...ar,color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:es,WebkitFilter:es},ns=e=>ts[e];function rs(e,t){let n=ns(e);return n!==es&&(n=bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const is=e=>/^0[^.\s]+$/.test(e);function os(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||is(e):void 0}function ss(e,t){return e[t]||e.default||e}const as=(e,t,n,r={})=>i=>{const o=ss(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=wi(s);const l=function(e,t,n,r){const i=$o(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?s:o[e-1]),os(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(i&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=rs(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=$o(e,c),p=$o(e,u);Ii(d===p,`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:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,..._o(e,m)}),m.duration&&(m.duration=wi(m.duration)),m.repeatDelay&&(m.repeatDelay=wi(m.repeatDelay)),!d||!p||Ai||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ci,pause:ci,stop:ci,then:e=>(e(),Promise.resolve()),cancel:ci,complete:ci});return t?Ho({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Zo(t,e,m);if(n)return n}return Ho(m)};function ls(e){return Boolean(Mn(e)&&e.add)}const cs=e=>/^\-?\d*\.?\d+$/.test(e);function us(e,t){-1===e.indexOf(t)&&e.push(t)}function ds(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ps{constructor(){this.subscriptions=[]}add(e){return us(this.subscriptions,e),()=>ds(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ms=new Set;function hs(e,t,n){e||ms.has(t)||(console.warn(t),ms.add(t))}class fs{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:r}=Kr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,oi.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=()=>oi.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&&hs(!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 ps);const n=this.events[e].add(t);return"change"===e?()=>{n(),oi.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?To(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 gs(e,t){return new fs(e,t)}const bs=e=>t=>t.test(e),vs=[Zn,nr,tr,er,ir,rr,{test:e=>"auto"===e,parse:e=>e}],xs=e=>vs.find(bs(e)),ys=[...vs,to,bo],Is=e=>ys.find(bs(e));function Cs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gs(n))}function ws(e,t){if(!t)return;return(t[e]||t.default||t).from}function Ns({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function As(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const t in a){const r=e.getValue(t),i=a[t];if(!r||void 0===i||u&&Ns(u,t))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[yi];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,oi))}r.start(as(t,r,i,e.shouldReduceMotion&&Vn.has(t)?{type:!1}:s));const d=r.animation;ls(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=xi(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const t in o)Cs(e,t,Br(o[t]))}(e,s)}),c}function Es(e,t,n={}){const r=xi(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(As(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(js).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Es(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function js(e,t){return e.sortNodePosition(t)}const ks=[...bn].reverse(),Ts=bn.length;function Ps(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Es(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Es(e,t,n);else{const i="function"==typeof t?xi(e,t,n.custom):t;r=Promise.all(As(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Rs(e){let t=Ps(e);const n={animate:Ss(!0),whileInView:Ss(),whileHover:Ss(),whileTap:Ss(),whileDrag:Ss(),whileFocus:Ss(),exit:Ss()};let r=!0;const i=(t,n)=>{const r=xi(e,n);if(r){const{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Ts;t++){const m=ks[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=fn(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||gn(f)||"boolean"==typeof f)continue;const x=Gs(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(f)?f:[f];let C=I.reduce(i,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,N={...w,...C},A=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in N){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Sr(t)&&Sr(n)?!vi(t,n)||x?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):u.add(e):void 0!==t&&u.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...I.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(i,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Gs(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!vi(t,e)}function Ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Bs=0;const Vs={animation:{Feature:class extends Qr{constructor(e){super(e),e.animationState||(e.animationState=Rs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),gn(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 Qr{constructor(){super(...arguments),this.id=Bs++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ls=(e,t)=>Math.abs(e-t);class Ms{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=Ws(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ls(e.x,t.x),r=Ls(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=Kr;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ds(t,this.transformPagePoint),oi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=Ws("pointercancel"===e.type?this.lastMoveEventInfo:Ds(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Xr(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ds(Fr(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=Kr;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=t;s&&s(e,Ws(r,this.history)),this.removeListeners=Zr(Hr(window,"pointermove",this.handlePointerMove),Hr(window,"pointerup",this.handlePointerUp),Hr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),si(this.updatePoint)}}function Ds(e,t){return t?{point:t(e.point)}:e}function Os(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ws({point:e},t){return{point:e,delta:Os(e,Fs(t)),offset:Os(e,Xs(t)),velocity:Hs(t,.1)}}function Xs(e){return e[0]}function Fs(e){return e[e.length-1]}function Hs(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fs(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wi(t)));)n--;if(!r)return{x:0,y:0};const o=Ni(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zs(e){return e.max-e.min}function Zs(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ys(e,t,n,r=.5){e.origin=r,e.originPoint=no(t.min,t.max,e.origin),e.scale=zs(n)/zs(t),(Zs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=no(n.min,n.max,e.origin)-e.originPoint,(Zs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Js(e,t,n,r){Ys(e.x,t.x,n.x,r?r.originX:void 0),Ys(e.y,t.y,n.y,r?r.originY:void 0)}function Us(e,t,n){e.min=n.min+t.min,e.max=e.min+zs(t)}function _s(e,t,n){e.min=t.min-n.min,e.max=e.min+zs(t)}function $s(e,t,n){_s(e.x,t.x,n.x),_s(e.y,t.y,n.y)}function Qs(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 Ks(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const qs=.35;function ea(e,t,n){return{min:ta(e,t),max:ta(e,n)}}function ta(e,t){return"number"==typeof e?e:e[t]||0}const na=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ra(e){return[e("x"),e("y")]}function ia({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oa(e){return void 0===e||1===e}function sa({scale:e,scaleX:t,scaleY:n}){return!oa(e)||!oa(t)||!oa(n)}function aa(e){return sa(e)||la(e)||e.z||e.rotate||e.rotateX||e.rotateY}function la(e){return ca(e.x)||ca(e.y)}function ca(e){return e&&"0%"!==e}function ua(e,t,n){return n+t*(e-n)}function da(e,t,n,r,i){return void 0!==i&&(e=ua(e,i,r)),ua(e,n,r)+t}function pa(e,t=0,n=1,r,i){e.min=da(e.min,t,n,r,i),e.max=da(e.max,t,n,r,i)}function ma(e,{x:t,y:n}){pa(e.x,t.translate,t.scale,t.originPoint),pa(e.y,n.translate,n.scale,n.originPoint)}function ha(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fa(e,t){e.min=e.min+t,e.max=e.max+t}function ga(e,t,[n,r,i]){const o=void 0!==t[i]?t[i]:.5,s=no(e.min,e.max,o);pa(e,t[n],t[r],s,t.scale)}const ba=["x","scaleX","originX"],va=["y","scaleY","originY"];function xa(e,t){ga(e.x,t,ba),ga(e.y,t,va)}function ya(e,t){return ia(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Ia=new WeakMap;class Ca{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 Ms(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Fr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_r(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),ra(e=>{let t=this.getAxisMotionValue(e).get()||0;if(tr.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=zs(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&oi.update(()=>i(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&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}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),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:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&oi.update(()=>i(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:r}=this.getProps();if(!n||!wa(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?no(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?no(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&hn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:Qs(e.x,n,i),y:Qs(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=qs){return!1===e?e=0:!0===e&&(e=qs),{x:ea(e,"left","right"),y:ea(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ra(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||!hn(e))return!1;const n=e.current;Ci(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=ya(e,n),{scroll:i}=t;return i&&(fa(r.x,i.offset.x),fa(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Ks(e.x,t.x),y:Ks(e.y,t.y)}}(r.layout.layoutBox,i);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=ia(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=ra(s=>{if(!wa(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(as(e,n,0,t))}stopAnimation(){ra(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ra(t=>{const{drag:n}=this.getProps();if(!wa(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-no(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!hn(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ra(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=zs(e),i=zs(t);return i>r?n=wo(t.min,t.max-r,e.min):r>i&&(n=wo(e.min,e.max-i,t.min)),zn(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ra(t=>{if(!wa(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(no(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;Ia.set(this.visualElement,this);const e=Hr(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();hn(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=Wr(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ra(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=qs,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function wa(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Na=e=>(t,n)=>{e&&oi.update(()=>e(t,n))};const Aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ea(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ja={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!nr.test(e))return e;e=parseFloat(e)}return`${Ea(e,t.target.x)}% ${Ea(e,t.target.y)}%`}},ka={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=bo.parse(e);if(i.length>5)return r;const o=bo.createTransformer(e),s="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=no(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=c),"number"==typeof i[3+s]&&(i[3+s]/=c),o(i)}};class Ta extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Ra,Object.assign(Sn,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Aa.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||oi.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:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pa(e){const[n,r]=function(){const e=t.useContext(un);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=t.useId();return t.useEffect(()=>i(o),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=t.useContext(An);return l.default.createElement(Ta,{...e,layoutGroup:i,switchLayoutGroup:t.useContext(En),isPresent:n,safeToRemove:r})}const Ra={borderRadius:{...ja,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomLeftRadius:ja,borderBottomRightRadius:ja,boxShadow:ka},Ga=["TopLeft","TopRight","BottomLeft","BottomRight"],Sa=Ga.length,Ba=e=>"string"==typeof e?parseFloat(e):e,Va=e=>"number"==typeof e||nr.test(e);function La(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ma=Oa(0,.5,Fi),Da=Oa(.5,.95,ci);function Oa(e,t,n){return r=>r<e?0:r>t?1:n(wo(e,t,r))}function Wa(e,t){e.min=t.min,e.max=t.max}function Xa(e,t){Wa(e.x,t.x),Wa(e.y,t.y)}function Fa(e,t,n,r,i){return e=ua(e-=t,1/n,r),void 0!==i&&(e=ua(e,1/i,r)),e}function Ha(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){tr.test(t)&&(t=parseFloat(t),t=no(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=no(o.min,o.max,r);e===o&&(a-=t),e.min=Fa(e.min,t,n,a,i),e.max=Fa(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const za=["x","scaleX","originX"],Za=["y","scaleY","originY"];function Ya(e,t,n,r){Ha(e.x,t,za,n?n.x:void 0,r?r.x:void 0),Ha(e.y,t,Za,n?n.y:void 0,r?r.y:void 0)}function Ja(e){return 0===e.translate&&1===e.scale}function Ua(e){return Ja(e.x)&&Ja(e.y)}function _a(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 $a(e){return zs(e.x)/zs(e.y)}class Qa{constructor(){this.members=[]}add(e){us(this.members,e),e.scheduleRender()}remove(e){if(ds(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:r}=e.options;!1===r&&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 Ka(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const qa=(e,t)=>e.depth-t.depth;class el{constructor(){this.children=[],this.isDirty=!1}add(e){us(this.children,e),this.isDirty=!0}remove(e){ds(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qa),this.isDirty=!1,this.children.forEach(e)}}const tl=["","X","Y","Z"];let nl=0;const rl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=nl++,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;rl.totalNodes=rl.resolvedTargetDeltas=rl.recalculatedProjection=0,this.nodes.forEach(al),this.nodes.forEach(hl),this.nodes.forEach(fl),this.nodes.forEach(ll),e=rl,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 el)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ps),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 r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(si(r),e(o-t))};return oi.read(r,!0),()=>si(r)}(r,250),Aa.hasAnimatedSinceResize&&(Aa.hasAnimatedSinceResize=!1,this.nodes.forEach(ml))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||Il,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!_a(this.targetLayout,r)||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={...ss(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,si(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(gl),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 r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(ul);this.isUpdating||this.nodes.forEach(dl),this.isUpdating=!1,this.nodes.forEach(pl),this.nodes.forEach(ol),this.nodes.forEach(sl),this.clearAllSnapshots();const e=performance.now();Kr.delta=zn(0,1e3/60,e-Kr.timestamp),Kr.timestamp=e,Kr.isProcessing=!0,ni.update.process(Kr),ni.preRender.process(Kr),ni.render.process(Kr),Kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(cl),this.sharedNodes.forEach(bl)}scheduleUpdateProjection(){oi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){oi.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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ua(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||aa(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Cl((r=n).x),Cl(r.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&&(fa(t.x,n.offset.x),fa(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xa(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){Xa(t,e);const{scroll:n}=this.root;n&&(fa(t.x,-n.offset.x),fa(t.y,-n.offset.y))}fa(t.x,i.offset.x),fa(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xa(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&xa(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),aa(r.latestValues)&&xa(n,r.latestValues)}return aa(this.latestValues)&&xa(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xa(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!aa(n.latestValues))continue;sa(n.latestValues)&&n.updateSnapshot();const r=na();Xa(r,n.measurePageBox()),Ya(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return aa(this.latestValues)&&Ya(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!==Kr.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 r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Kr.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}},$s(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,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(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Us(s.x,a.x,l.x),Us(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xa(this.target,this.layout.layoutBox),ma(this.target,this.targetDelta)):Xa(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}},$s(this.relativeTargetOrigin,this.target,e.target),Xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!sa(this.parent.latestValues)&&!la(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 r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Kr.timestamp&&(r=!1),r)return;const{layout:i,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||!i&&!o)return;Xa(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,s;t.x=t.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xa(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ma(e,s)),r&&aa(o.latestValues)&&xa(e,o.latestValues))}t.x=ha(t.x),t.y=ha(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;Js(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ka(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rl.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,r=n?n.latestValues:{},i={...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 s={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(yl));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;vl(o.x,e.x,n),vl(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($s(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){xl(e.x,t.x,n.x,r),xl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&_a(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Xa(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=no(0,void 0!==n.opacity?n.opacity:1,Ma(r)),e.opacityExit=no(void 0!==t.opacity?t.opacity:1,0,Da(r))):o&&(e.opacity=no(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Sa;i++){const o=`border${Ga[i]}Radius`;let s=La(t,o),a=La(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Va(s)===Va(a)?(e[o]=Math.max(no(Ba(s),Ba(a),r),0),(tr.test(a)||tr.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=no(t.rotate||0,n.rotate||0,r))}(i,r,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&&(si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oi.update(()=>{Aa.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Mn(e)?e:gs(e);return r.start(as("",r,t,n)),r.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:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&wl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=zs(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=zs(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Xa(t,n),xa(t,i),Js(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qa);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 r=this.getStack();r&&r.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 r={};for(let t=0;t<tl.length;t++){const i="rotate"+tl[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Vr(e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;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=Vr(e.pointerEvents)||""),this.hasProjected&&!aa(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=Ka(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Sn){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Sn[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?Vr(e.pointerEvents)||"":"none"),r}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(ul),this.root.sharedNodes.clear()}}}function ol(e){e.updateLayout()}function sl(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:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?ra(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=zs(r);r.min=t[e].min,r.max=r.min+i}):wl(i,n.layoutBox,t)&&ra(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=zs(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Js(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Js(a,e.applyTransform(r,!0),n.measuredBox):Js(a,t,n.layoutBox);const l=!Ua(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};$s(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};$s(a,t,o.layoutBox),_a(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function al(e){rl.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 ll(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cl(e){e.clearSnapshot()}function ul(e){e.clearMeasurements()}function dl(e){e.isLayoutDirty=!1}function pl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ml(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hl(e){e.resolveTargetDelta()}function fl(e){e.calcProjection()}function gl(e){e.resetRotation()}function bl(e){e.removeLeadSnapshot()}function vl(e,t,n){e.translate=no(t.translate,0,n),e.scale=no(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xl(e,t,n,r){e.min=no(t.min,n.min,r),e.max=no(t.max,n.max,r)}function yl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Il={duration:.45,ease:[.4,0,.1,1]};function Cl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Zs($a(t),$a(n),.2)}const Nl=il({attachResizeListener:(e,t)=>Wr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Al={current:void 0},El=il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Al.current){const e=new Nl({});e.mount(window),e.setOptions({layoutScroll:!0}),Al.current=e}return Al.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),jl={pan:{Feature:class extends Qr{constructor(){super(...arguments),this.removePointerDownListener=ci}onPointerDown(e){this.session=new Ms(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Na(e),onStart:Na(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&oi.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Hr(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 Qr{constructor(e){super(e),this.removeGroupControls=ci,this.removeListeners=ci,this.controls=new Ca(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ci}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:El,MeasureLayout:Pa}},kl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Tl(e,t,n=1){Ci(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=kl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Fn(i)?Tl(i,t,n+1):i}const Pl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rl=e=>Pl.has(e),Gl=e=>e===Zn||e===nr,Sl=(e,t)=>parseFloat(e.split(", ")[t]),Bl=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Sl(i[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Sl(t[1],e):0}},Vl=new Set(["x","y","z"]),Ll=Bn.filter(e=>!Vl.has(e));const Ml={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:Bl(4,13),y:Bl(5,14)},Dl=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Rl);let o=[],s=!1;const a=[];if(i.forEach(i=>{const l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],u=xs(c);const d=t[i];let p;if(Sr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=xs(c);for(let n=t;n<e&&null!==d[n];n++)p?Ci(xs(d[n])===p,"All keyframes must be of the same type"):(p=xs(d[n]),Ci(p===u||Gl(u)&&Gl(p),"Keyframes must be of the same dimension as the current value"))}else p=xs(d);if(u!==p)if(Gl(u)&&Gl(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&p===nr&&(t[i]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[i]=u.transform(d):(s||(o=function(e){const t=[];return Ll.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Ml[e](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Ml[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),dn&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:t,transitionEnd:r}};function Ol(e,t,n,r){return(e=>Object.keys(e).some(Rl))(t)?Dl(e,t,n,r):{target:t,transitionEnd:r}}const Wl=(e,t,n,r)=>{const i=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Fn(t))return;const n=Tl(t,r);n&&e.set(n)});for(const e in t){const i=t[e];if(!Fn(i))continue;const o=Tl(i,r);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=i))}return{target:t,transitionEnd:n}}(e,t,r);return Ol(e,t=i.target,n,r=i.transitionEnd)},Xl={current:null},Fl={current:!1};function Hl(){if(Fl.current=!0,dn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xl.current=e.matches;e.addListener(t),t()}else Xl.current=!1}const zl=new WeakMap,Zl=Object.keys(Nn),Yl=Zl.length,Jl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ul=vn.length;class _l{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},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=()=>oi.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=xn(t),this.isVariantNode=yn(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!==s[e]&&Mn(t)&&(t.set(s[e],!1),ls(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,zl.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)),Fl.current||Hl(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xl.current),"production"!==process.env.NODE_ENV&&hs(!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(){zl.delete(this.current),this.projection&&this.projection.unmount(),si(this.notifyUpdate),si(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=Vn.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&oi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&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?Ii(!1,e):Ci(!1,e)}for(let e=0;e<Yl;e++){const n=Zl[e],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=Nn[n];a&&(o=a),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&hn(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}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<Jl.length;t++){const n=Jl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Mn(o))e.addValue(i,o),ls(r)&&r.add(i),"development"===process.env.NODE_ENV&&hs("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Mn(s))e.addValue(i,gs(o,{owner:e})),ls(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,gs(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);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<Ul;e++){const n=vn[e],r=this.props[n];(fn(r)||!1===r)&&(t[n]=r)}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=gs(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,r="string"==typeof n||"object"==typeof n?null===(t=Rr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Mn(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ps),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class $l extends _l{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:r},i){let o=function(e,t,n){const r={};for(const i in e){const e=ws(i,t);if(void 0!==e)r[i]=e;else{const e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;const o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){const s=o[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==i?i:t[s]),null!=c&&("string"==typeof c&&(cs(c)||is(c))?c=parseFloat(c):!Is(c)&&bo.test(l)&&(c=rs(s,l)),e.addValue(s,gs(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,o);const e=Wl(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ql extends $l{readValueFromInstance(e,t){if(Vn.has(t)){const e=ns(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(Xn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ya(e,t)}build(e,t,n,r){lr(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Tr(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Mn(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Er(e,t,n,r)}}class Kl extends $l{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vn.has(t)){const e=ns(t);return e&&e.default||0}return t=jr.has(t)?t:Ar(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Pr(e,t)}build(e,t,n,r){yr(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){kr(e,t,0,r)}mount(e){this.isSVGTag=Cr(e.tagName),super.mount(e)}}const ql=(e,t)=>Gn(e)?new Kl(t,{enableHardwareAcceleration:!1}):new Ql(t,{enableHardwareAcceleration:!0}),ec={...Vs,...bi,...jl,...{layout:{ProjectionNode:El,MeasureLayout:Pa}}},tc=Pn((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Gn(e)?Dr:Or,preloadedFeatures:n,useRender:Nr(t),createVisualElement:r,Component:e}}(e,t,ec,ql));function nc(){const e=t.useRef(!1);return pn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class rc extends l.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ic({children:e,isPresent:n}){const r=t.useId(),i=t.useRef(null),o=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=o.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(rc,{isPresent:n,childRef:i,sizeRef:o},l.cloneElement(e,{ref:i}))}const oc=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:a})=>{const c=Gr(sc),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),"popLayout"===a&&(e=l.createElement(ic,{isPresent:r},e)),l.createElement(un.Provider,{value:d},e)};function sc(){return new Map}const ac=e=>e.key||"";const lc=({children:e,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Ci(!o,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(An).forceRender||function(){const e=nc(),[n,r]=t.useState(0),i=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>oi.postRender(i),[i]),n]}()[0],u=nc(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(pn(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=ac(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return l.createElement(l.Fragment,null,p.map(e=>l.createElement(oc,{key:ac(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:a},e)));p=[...p];const v=h.current.map(ac),x=d.map(ac),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===a&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const o=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),i&&i()}};g=l.createElement(oc,{key:ac(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:a},r),m.set(t,g)}p.splice(o,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(oc,{key:ac(e),isPresent:!0,presenceAffectsLayout:s,mode:a},e)}),"production"!==process.env.NODE_ENV&&"wait"===a&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),l.createElement(l.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function cc(){!Fl.current&&Hl();const[e]=t.useState(Xl.current);return"production"!==process.env.NODE_ENV&&hs(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const uc={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}}};function dc({children:t,animationType:n,disableAnimation:r=!0,whileHover:i,whileTap:o,transition:s,...a}){const c=cc(),u=l.default.Children.only(t);if(r||c)return u;const d=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=uc[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),p=d?{...d.whileHover,...i}:i,m=(null==d?void 0:d.whileTap)||o?{...null==d?void 0:d.whileTap,...o}:void 0,h=d?{...d.transition,...s}:s;if("string"==typeof u.type){const t=tc[u.type];return e.jsx(t,{...u.props,whileHover:p,whileTap:m,transition:h,...a})}return e.jsx(tc.div,{whileHover:p,whileTap:m,transition:h,...a,children:u})}dc.displayName="AnimationWrapper";const pc={cream500:"bg-[#FFFEEF]",gray100:"bg-fill-secondary",white:"bg-white",transparent:"",blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",yellow:"bg-[#F5FF1E]"},mc={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},hc={1:"lg:w-full",2:"lg:w-[calc(50%-0.75rem)]",3:"lg:w-[calc(33.333%-1rem)]",4:"lg:w-[calc(25%-1.125rem)]",5:"lg:w-[calc(20%-1.2rem)]",6:"lg:w-[calc(16.666%-1.25rem)]"},fc=e=>Math.max(1,Math.min(6,e)),gc=t.forwardRef(({as:t,className:n="",...r},i)=>{const o=Ae(n);if(t){const n=t;return e.jsx(n,{ref:i,className:o,...r})}return e.jsx("img",{ref:i,className:o,...r})});gc.displayName="Image";const bc=({onSelect:n,speed:r,isSelected:i=!1,renderCheckPlans:o,iconSize:s=24,iconClassName:a,cta:l,techType:c,isMax:u})=>{const[d,p]=t.useState(!1),m=`btn-medium rounded-button 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?" 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"} `,h=null==o?void 0:o({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(Wt,{onClick:()=>{p(!0),n()},className:Ae(m,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx(Rt,{className:Ae(a,i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),h]})},vc=({planName:n,planSubtext:r,speed:i,price:o,description:s,bestValue:a=!1,bestValueText:l="best value",giftBadge:c,innerBadge:u,theme:d="light",featuresTitle:p="Business Ready Internet features",features:m=[],isExpanded:h,onToggleExpand:f,onCtaClick:g,renderCheckPlans:b,cta:v,techType:x,ismaxSpeed:y})=>{const[I,C]=t.useState(!1),w=void 0!==h?h:I,N="dark"===d;return e.jsxs("article",{className:Ae("relative flex h-full w-full max-w-[392px] flex-col",!a&&"md:pt-[38px]"),children:[a&&e.jsx("div",{className:"label3 rounded-t-[20px] bg-bg-fill-brand-accent px-6 py-2 text-center text-text",children:l}),e.jsxs("div",{className:Ae("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",N?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",a?"rounded-t-none border-t-0":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Gt,{as:"h3",className:Ae("subheading2",N?"text-text-accent-on-bg-inverse":"text-text-brand"),children:n}),e.jsx(Gt,{as:"p",className:"label3 text-wrap "+(N?"text-text-accent-on-bg-inverse":"text-text-brand"),children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(Gt,{as:"span",className:Ae("label2 mr-1 mt-[2px]",N?"text-text-inverse":"text-text"),children:"$"}),e.jsx(Gt,{as:"span",className:Ae("subheading6",N?"text-text-inverse":"text-text"),children:o.split(".")[0]}),e.jsxs(Gt,{as:"span",className:Ae("label2",N?"text-text-inverse":"text-text"),children:[o.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Gt,{className:Ae("body2",N?"text-text-inverse":"text-text"),children:s})}),(null==c?void 0:c.length)?e.jsx("div",{className:Ae("flex-col items-center rounded-surface-sm p-2",N?"bg-bg-surface-inverse":"bg-bg-surface-info"),children:null==c?void 0:c.map(t=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gc,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Gt,{as:"div",className:Ae("body3",N?"text-text-inverse":"text-text"),children:t.title})]},t.title))}):null,e.jsx(bc,{onSelect:g,speed:i,isSelected:N,renderCheckPlans:b,cta:v,iconSize:40,techType:x,isMax:y}),m.length>0&&e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsxs(Wt,{onClick:()=>{f?f():C(!I)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(Gt,{as:"h4",className:Ae("label3",N?"text-text-inverse":"text-text"),children:p}),e.jsx(Rt,{name:"keyboard_arrow_down",fill:1,size:24,className:Ae("transition-transform duration-300",w&&"rotate-180",N?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ae("overflow-hidden transition-all duration-200 ease-in-out",w?"opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col",children:e.jsx(St,{items:m,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:N?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:""+(N?"text-text-inverse":"text-text")})}),(null==u?void 0:u.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(gc,{src:u.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"footnote text-text",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(Gt,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},xc=({title:t,quote:n,rating:r,author:i,role:o,avatarUrl:s,isActive:a=!1,className:l})=>e.jsxs("figure",{className:m("flex w-full flex-col gap-6 rounded-card-lg p-6 transition-all duration-300 md:gap-10 md:p-14",a?"bg-bg-surface-secondary shadow-drop":"bg-gray-50 opacity-40",l),children:[e.jsxs("div",{className:"flex flex-col justify-start gap-3 md:gap-5",children:[e.jsx("header",{children:e.jsx(Gt,{as:"h3",className:"label1 text-text",children:t})}),e.jsx("blockquote",{className:"body1 text-text",children:n}),r?e.jsx("div",{className:"flex","aria-label":`Rating: ${r} out of 5`,children:[...Array(5)].map((t,n)=>e.jsx(Rt,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),i&&e.jsxs("figcaption",{className:"flex gap-3 md:gap-5",children:[e.jsx("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e.jsx(u.default,{src:s,alt:i,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:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:i}),e.jsx(Gt,{as:"p",className:"body3 text-text",children:o})]})]})]});function yc({fields:n,renderCheckPlans:r,isVisible:i=!0}){var o,s,a,l;const c=(null===(a=null===(s=null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||void 0===s?void 0:s[0])||void 0===a?void 0:a.benefitsExpanded)||!1,[u,d]=t.useState(c),[p,m]=t.useState({}),[h,f]=t.useState(0),g=(null===(l=null==n?void 0:n.items)||void 0===l?void 0:l.items)||[],b=g.length>2,v=!1!==(null==n?void 0:n.showArrows)&&b,x=t.useRef([]),y=t.useCallback(()=>{b&&f(e=>(e-1+g.length)%g.length)},[b,g.length]),I=t.useCallback(()=>{b&&f(e=>(e+1)%g.length)},[b,g.length]);if(t.useEffect(()=>{if(!b||!i)return;const e=()=>{const e=x.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)},[b,i,u,g.length]),!g.length&&!(null==n?void 0:n.title))return null;const C=(t,n,i=!1)=>{var o,s,a,l,c,h,f,g;const b=null===(o=null==t?void 0:t.speed)||void 0===o?void 0:o.split("|"),v=(null==b?void 0:b[0])||"",y=(null==b?void 0:b[1])||"",I=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${I}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],N=(null==t?void 0:t.highlighted)||!1,A=(null===(h=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===h?void 0:h.items)||[],E={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},j=i?p[n]||!1:u;return e.jsx("div",{ref:i?void 0:e=>{e&&!x.current.includes(e)&&(x.current[n]=e)},className:Ae(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(vc,{planName:v,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:A,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:w,isExpanded:j,onToggleExpand:()=>{i?m(e=>({...e,[n]:!e[n]})):d(!u)},ctaText:(null===(g=null==t?void 0:t.cta)||void 0===g?void 0:g.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:r,cta:t.cta,hostType:"smb"})},n)},w=[...g,...g,...g,...g,...g],N=2*g.length;return b?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:g.map((e,t)=>C(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[v&&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(Wt,{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":"Previous",children:e.jsx(Rt,{name:"arrow_back",size:24})}),e.jsx(Wt,{onClick:I,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(Rt,{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(-${N+h} * (392px + 12px)))`},children:w.map((e,t)=>C(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-4",children:g.map((e,t)=>C(e,t))})}function Ic({fields:t,renderCheckPlans:n,activeTab:r,tabs:i}){var o;const s=(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.items)||[];return i&&i.length>1&&r?e.jsx(e.Fragment,{children:i.map(o=>{const a=s.filter(e=>(e.productCategory||i[0])===o),l={...t,items:{...t.items,items:a}};return e.jsx("div",{style:{display:o===r?"block":"none"},"aria-hidden":o!==r,children:e.jsx(yc,{fields:l,renderCheckPlans:n,isVisible:o===r})},o)})}):e.jsx(yc,{fields:t,renderCheckPlans:n})}const Cc=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:i,swipeOffset:o,isSwiping:s,isMobile:a,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>i/2&&(u-=i),u<-i/2&&(u+=i);const d=0===u,p=1===Math.abs(u),m=u*c+o/l*100,h=!a||(s?d||p:d);return e.jsx("div",{className:Ae("col-start-1 row-start-1 w-full md:max-w-[815px]","will-change-[transform,opacity]",d?"z-10":"z-5",Math.abs(u)>1?"invisible":"visible",h?"opacity-100":"opacity-0",s?"transition-opacity duration-200":"transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]"),style:{transform:`translateX(${m}%)`},children:e.jsx(xc,{...t,isActive:d,className:"h-full"})})});Cc.displayName="TestimonialCarouselSlide";const wc=({fields:n,autoScroll:r=!0,autoScrollInterval:i=8e3})=>{var o;const s=(null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||[];if(!s||0===s.length)return null;const a=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:i=.15,mobileBreakpoint:o=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState(window.innerWidth),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),I={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:i,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;f((null===(e=y.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),N=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),A=t.useCallback(e=>{x.current=e.touches[0].clientX,m(!0),v.current&&clearInterval(v.current)},[]),E=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-x.current;d(t)},[p]),j=t.useCallback(()=>{m(!1);const e=h*i;u>e?w():u<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[u,h,i,w,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:C,prevSlide:w,goToSlide:N,handleTouchStart:A,handleTouchMove:E,handleTouchEnd:j,constants:I}}({itemCount:s.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:i,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(Wt,{onClick:a.prevSlide,className:"group absolute left-5 top-1/2 z-50 hidden h-13 w-13 -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(Rt,{name:"arrow_back",size:24})}),e.jsx(Wt,{onClick:a.nextSlide,className:"group absolute right-5 top-1/2 z-50 hidden h-13 w-13 -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(Rt,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:a.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:a.handleTouchStart,onTouchMove:a.handleTouchMove,onTouchEnd:a.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:s.map((t,n)=>e.jsx(Cc,{item:t,index:n,currentIndex:a.currentIndex,totalItems:s.length,swipeOffset:a.swipeOffset,isSwiping:a.isSwiping,isMobile:a.isMobile,containerWidth:a.containerWidth,cardOffsetPercentage:a.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:s.map((t,n)=>e.jsx("button",{onClick:()=>a.goToSlide(n),className:Ae("h-2 w-2 rounded-full transition-all duration-300",a.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Nc=({tabs:n,activeTab:r,onChange:i,className:o})=>{const s=n.indexOf(r),a=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=a.current[s];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[s,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ae("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",o),children:[e.jsx("div",{className:"absolute bottom-1 top-1 rounded-button bg-bg-fill-brand shadow-md transition-all duration-300 ease-out",style:{width:`${l.width}px`,left:`${l.left}px`}}),n.map((t,n)=>e.jsx("button",{ref:e=>{a.current[n]=e},onClick:()=>i(t),className:Ae("label1 relative z-10 flex min-w-[160px] items-center justify-center whitespace-nowrap rounded-button px-4 py-2.5 transition-colors duration-200 focus:outline-none active:bg-transparent",r===t?"text-text-inverse":"text-text-disabled hover:bg-bg-surface-hover"),children:t},t))]})})},Ac=({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(Rt,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Ec=n=>{const{link:r,containerClassName:i,autoplay:o=!1,debug:s=!1}=n,{href:a,embedId:l}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),i=r[r.length-1];return(null==n?void 0:n[1])?n[1]===i?n[1]:`${n[1]}/${i}`:""})(e);return{href:e,embedId:t}},[r]);if(s&&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],r=n[2],i=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${i}?${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:Ae("relative h-0 w-full overflow-hidden pb-[56.25%]",i),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 jc=n=>{const{link:r,containerClassName:i,autoplay:o=!1}=n,s=t.useMemo(()=>{if(!r)return"";const e=r.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[r]),a=o?"?autoplay=1":"";return e.jsx("div",{className:Ae("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${s}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},kc=({link:n,anchorName:r,linkColorClassName:i})=>{const[o,s]=l.default.useState(!1),a=l.default.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Yt,{...n,showButtonAs:"text",linkClassName:Ae("body3 inline-flex items-center no-underline hover:underline",i||"text-text")},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d}=n,p=Array.isArray(null==d?void 0:d.items)?d.items:[],m=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:m},ref:a,children:[e.jsxs(Yt,{onClick:()=>s(e=>!e),"aria-expanded":o,buttonClassName:Ae("group body3 flex items-center h-full",i||"text-text"),showButtonAs:"unstyled",children:[e.jsx(Gt,{as:"span",className:"group-hover:underline leading-none",children:null!=u?u:null}),e.jsx(Rt,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50 mt-[1px]",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ae("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&p.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:m,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&s(!1)},children:p.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Yt,{...t,showButtonAs:"text",linkClassName:"body3 px-3 flex items-center text-text-link no-underline hover:underline hover:bg-bg-surface-hover"})},`submenu-link-${n}`))})})]})},Tc=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(Yt,{...t,linkClassName:"label3 flex items-center px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:i,title:o,items:s}=t,a=Array.isArray(null==s?void 0:s.items)?s.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Yt,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center px-4",showButtonAs:"unstyled",children:[null!=o?o:null,e.jsx(Rt,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),n&&a.length>0&&e.jsx(Pc,{items:a})]})},Pc=({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(Yt,{...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}`),Rc=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:i="md",children:o,className:s,prefix:a,containerClassName:l,...c}=t,u=e.jsxs(Lt,{...c,className:Ae("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"}[i],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ae("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e.jsx(Rt,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]});return null==a||!1===a||""===a?u:e.jsxs("span",{className:Ae("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,u]})};Rc.displayName="CallButton";const Gc=t.forwardRef((n,r)=>{const{className:i,size:o,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:I,...C}=n,w=y?"error":c,[N,A]=t.useState(!1),[E,j]=t.useState(!1),[k,T]=t.useState(I||"text"),P=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:Ae("inline-block pb-1"),children:e.jsxs(Gt,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ae("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],b,(N||"hover"===w)&&!E&&"error"!==w&&"border-input-border-hover",(E||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(Rt,{name:d,fill:p?1:0,size:h,className:Ae(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:Ae("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",i),placeholder:a,type:k,...C,onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),j(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:P,children:e.jsx(Rt,{name:"text"===k?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Gt,{className:Ae("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(Rt,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Gc.displayName="Input";const Sc=t=>{var n;const{primaryNavigationLinks:r,utilityNavigationLinks:i,supportNavigationLinks:o,accountNavigationLinks:s,showCallButton:a,displayCallNowCta:c,displaySearchBar:u}=t,[d,p]=l.default.useState(!1);l.default.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=d?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],i=e=>{var t,i,o,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(i=(t=r).focus)||void 0===i||i.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(o=n).focus)||void 0===s||s.call(o),e.preventDefault()))};return window.addEventListener("keydown",i),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",i)}},[d]);const m=()=>{p(!1)};return e.jsxs("div",{children:[e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>p(!0),children:e.jsx(Rt,{name:"menu"})}),d?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:Ae("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4 text-text","transition-all duration-300 ease-in-out","block",d?"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:Ae("flex items-center px-4",!1!==a||!1!==c?"justify-between":"justify-end"),children:[!1!==a||!1!==c?e.jsx("div",{children:e.jsx(Rc,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:m,children:e.jsx(Rt,{name:"close"})})})]}),!1!==u?e.jsx(Bc,{closeMenu:m,isMenuOpen:d,searchBarIconURL:"string"==typeof t.searchBarIcon?t.searchBarIcon:(null===(n=t.searchBarIcon)||void 0===n?void 0:n.url)||"",onSearch:t.onSearch||(()=>{})}):null,e.jsxs("div",{className:"flex-grow overflow-y-auto",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&m()},children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...r||[],...o||[],...s||[]].map((t,n)=>e.jsx("li",{children:e.jsx(Tc,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==i?void 0:i.map((n,r)=>e.jsx("li",{children:e.jsx(Yt,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ae("footnote flex items-center w-full h-11 text-text-link","number"!=typeof t.utilityNavActiveIndex?1===r&&"label4":t.utilityNavActiveIndex===r&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${n.anchorId}`)},`utility-menu-items-${r}`))})]})]})})]})},Bc=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:i,searchBarIconURL:o}=t,[s,a]=l.default.useState(""),c=l.default.useRef(null),u=e=>{n(),e.preventDefault(),r(s)};return l.default.useEffect(()=>{i||a("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Kt,{src:o,width:16,height:16,className:"mr-2",alt:"Search icon",role:"button",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Gc,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:s,onChange:e=>a(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},Vc=t=>{const{searchBarIconURL:n,onSearch:r}=t,[i,o]=l.default.useState(""),s=l.default.useRef(null);return e.jsxs("form",{name:"searchForm",className:"flex items-center h-10 w-80 rounded-full border border-gray-500 bg-white px-5 shadow-sm",onSubmit:e=>{e.preventDefault(),r(i)},children:[e.jsx(Rt,{name:"search",className:"text-gray-500 mr-2 text-[18px]"}),e.jsx("input",{ref:s,type:"text",name:"search",placeholder:"Search...",value:i,onChange:e=>o(e.target.value),className:"flex-1 bg-transparent outline-none text-sm text-gray-700",autoComplete:"off"})]})},Lc={closed:{opacity:0},open:{opacity:1}},Mc={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Dc={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oc.apply(null,arguments)}function Wc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Xc(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Fc(...e){return t.useCallback(Xc(...e),e)}function Hc(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}const zc=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},Zc=l["useId".toString()]||(()=>{});let Yc=0;function Jc(e){const[t,n]=l.useState(Zc());return zc(()=>{n(e=>null!=e?e:String(Yc++))},[e]),e||(t?`radix-${t}`:"")}function Uc(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 _c({prop:e,defaultProp:n,onChange:r=()=>{}}){const[i,o]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[i]=r,o=t.useRef(i),s=Uc(n);return t.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:i,l=Uc(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[s,e,o,l])]}const $c=t.forwardRef((e,n)=>{const{children:r,...i}=e,o=t.Children.toArray(r),s=o.find(qc);if(s){const e=s.props.children,r=o.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(Qc,Oc({},i,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(Qc,Oc({},i,{ref:n}),r)});$c.displayName="Slot";const Qc=t.forwardRef((e,n)=>{const{children:r,...i}=e;return t.isValidElement(r)?t.cloneElement(r,{...eu(i,r.props),ref:n?Xc(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});Qc.displayName="SlotClone";const Kc=({children:e})=>t.createElement(t.Fragment,null,e);function qc(e){return t.isValidElement(e)&&e.type===Kc}function eu(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const tu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?$c:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,Oc({},o,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const nu="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",iu="dismissableLayer.focusOutside";let ou;const su=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),au=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(su),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=Fc(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,I=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e),i=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){const t={originalEvent:e};function s(){cu(ru,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=s,n.addEventListener("click",o.current,{once:!0})):s()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e),i=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){cu(iu,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.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())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(ou=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),lu(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=ou)}},[p,h,i,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),lu())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(nu,e),()=>document.removeEventListener(nu,e)},[]),t.createElement(tu.div,Oc({},u,{ref:g,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Wc(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Wc(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Wc(e.onPointerDownCapture,w.onPointerDownCapture)}))});function lu(){const e=new CustomEvent(nu);document.dispatchEvent(e)}function cu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}(o,s):o.dispatchEvent(s)}const uu="focusScope.autoFocusOnMount",du="focusScope.autoFocusOnUnmount",pu={bubbles:!1,cancelable:!0},mu=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=Uc(o),d=Uc(s),p=t.useRef(null),m=Fc(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(i){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:bu(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||bu(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bu(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,l,h.paused]),t.useEffect(()=>{if(l){vu.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(uu,pu);l.addEventListener(uu,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bu(r,{select:t}),document.activeElement!==n)return}((e=hu(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&bu(l))}return()=>{l.removeEventListener(uu,u),setTimeout(()=>{const e=new CustomEvent(du,pu);l.addEventListener(du,d),l.dispatchEvent(e),e.defaultPrevented||bu(null!=t?t:document.body,{select:!0}),l.removeEventListener(du,d),vu.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!i)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=hu(e),n=fu(t,e),r=fu(t.reverse(),e);return[n,r]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&bu(o,{select:!0})):(e.preventDefault(),r&&bu(i,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return t.createElement(tu.div,Oc({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function hu(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 fu(e,t){for(const n of e)if(!gu(n,{upTo:t}))return n}function gu(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 bu(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 vu=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=xu(e,t),e.unshift(t)},remove(t){var n;e=xu(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function xu(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const yu=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...o}=e;return i?d.default.createPortal(t.createElement(tu.div,Oc({},o,{ref:n})),i):null});const Iu=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Cu(o.current);a.current="mounted"===c?e:"none"},[c]),zc(()=>{const t=o.current,n=s.current;if(n!==e){const r=a.current,i=Cu(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),zc(()=>{if(n){const e=e=>{const t=Cu(o.current).includes(e.animationName);e.target===n&&t&&i.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Cu(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),s="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=Fc(o.ref,s.ref);return"function"==typeof r||o.isPresent?t.cloneElement(s,{ref:a}):null};function Cu(e){return(null==e?void 0:e.animationName)||"none"}Iu.displayName="Presence";let wu=0;function Nu(){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 Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Au.apply(this,arguments)};function Eu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ju="right-scroll-bar-position",ku="width-before-scroll-bar";function Tu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Pu="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,Ru=new WeakMap;function Gu(e,n){var r,i,o,s=(r=null,i=function(t){return e.forEach(function(e){return Tu(e,t)})},(o=t.useState(function(){return{value:r,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return Pu(function(){var t=Ru.get(s);if(t){var n=new Set(t),r=new Set(e),i=s.current;n.forEach(function(e){r.has(e)||Tu(e,null)}),r.forEach(function(e){n.has(e)||Tu(e,i)})}Ru.set(s,e)},[e]),s}function Su(e){return e}var Bu=function(e){var t=e.sideCar,n=Eu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Au({},n))};Bu.isSideCarExport=!0;var Vu=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Su);var n=[],r=!1,i={read:function(){if(r)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 i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return i}(null);return t.options=Au({async:!0,ssr:!1},e),t}(),Lu=function(){},Mu=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Lu,onWheelCapture:Lu,onTouchMoveCapture:Lu}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=Eu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,I=Gu([n,t]),C=Au(Au({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:Vu,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?l.cloneElement(l.Children.only(a),Au(Au({},C),{ref:I})):l.createElement(v,Au({},C,{className:c,ref:I}),a))});Mu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mu.classNames={fullWidth:ku,zeroRight:ju};function Du(){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 Ou=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Du())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wu=function(){var e,t=(e=Ou(),function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Xu={left:0,top:0,right:0,gap:0},Fu=function(e){return parseInt(e||"",10)||0},Hu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Xu;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Fu(n),Fu(r),Fu(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zu=Wu(),Zu="data-scroll-locked",Yu=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(Zu,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ju," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ku," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ju," .").concat(ju," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ku," .").concat(ku," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Zu,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Ju=function(){var e=parseInt(document.body.getAttribute(Zu)||"0",10);return isFinite(e)?e:0},Uu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(Zu,(Ju()+1).toString()),function(){var e=Ju()-1;e<=0?document.body.removeAttribute(Zu):document.body.setAttribute(Zu,e.toString())}},[]);var o=l.useMemo(function(){return Hu(i)},[i]);return l.createElement(zu,{styles:Yu(o,!t,i,n?"":"!important")})},_u=!1;if("undefined"!=typeof window)try{var $u=Object.defineProperty({},"passive",{get:function(){return _u=!0,!0}});window.addEventListener("test",$u,$u),window.removeEventListener("test",$u,$u)}catch(e){_u=!1}var Qu=!!_u&&{passive:!1},Ku=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])},qu=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ed(e,n)){var r=td(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ed=function(e,t){return"v"===e?function(e){return Ku(e,"overflowY")}(t):function(e){return Ku(e,"overflowX")}(t)},td=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rd=function(e){return[e.deltaX,e.deltaY]},id=function(e){return e&&"current"in e?e.current:e},od=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},sd=0,ad=[];var ld,cd=(ld=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(sd++)[0],o=l.useState(function(){return Wu()})[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(id),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=nd(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[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 p=qu(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=qu(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,a=t.contains(s),l=!1,c=o>0,u=0,d=0;do{var p=td(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&ed(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=l.useCallback(function(e){var n=e;if(ad.length&&ad[ad.length-1]===o){var r="deltaY"in n?rd(n):nd(n),i=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(s.current.shards||[]).map(id).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=nd(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,rd(t),t.target,a(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,nd(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return ad.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Qu),document.addEventListener("touchmove",c,Qu),document.addEventListener("touchstart",d,Qu),function(){ad=ad.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,Qu),document.removeEventListener("touchmove",c,Qu),document.removeEventListener("touchstart",d,Qu)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(o,{styles:od(i)}):null,h?l.createElement(Uu,{gapMode:"margin"}):null)},Vu.useMedium(ld),Bu),ud=l.forwardRef(function(e,t){return l.createElement(Mu,Au({},e,{ref:t,sideCar:cd}))});ud.classNames=Mu.classNames;var dd=new WeakMap,pd=new WeakMap,md={},hd=0,fd=function(e){return e&&(e.host||fd(e.parentNode))},gd=function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fd(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]);md[n]||(md[n]=new WeakMap);var o=md[n],s=[],a=new Set,l=new Set(i),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};i.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(r),i=null!==t&&"false"!==t,l=(dd.get(e)||0)+1,c=(o.get(e)||0)+1;dd.set(e,l),o.set(e,c),s.push(e),1===l&&i&&pd.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),hd++,function(){s.forEach(function(e){var t=dd.get(e)-1,i=o.get(e)-1;dd.set(e,t),o.set(e,i),t||(pd.has(e)||e.removeAttribute(r),pd.delete(e)),i||e.removeAttribute(n)}),--hd||(dd=new WeakMap,dd=new WeakMap,pd=new WeakMap,md={})}},bd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),gd(r,i,n,"aria-hidden")):function(){return null}};const vd="Dialog",[xd,yd]=function(e,n=[]){let r=[];const i=()=>{const n=r.map(e=>t.createContext(e));return function(r){const i=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(n,i){const o=t.createContext(i),s=r.length;function a(n){const{scope:r,children:i,...a}=n,l=(null==r?void 0:r[e][s])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},i)}return r=[...r,i],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||o,c=t.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Hc(i,...n)]}(vd),[Id,Cd]=xd(vd),wd="DialogPortal",[Nd,Ad]=xd(wd,{forceMount:void 0}),Ed="DialogOverlay",jd=t.forwardRef((e,n)=>{const r=Ad(Ed,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Cd(Ed,e.__scopeDialog);return s.modal?t.createElement(Iu,{present:i||s.open},t.createElement(kd,Oc({},o,{ref:n}))):null}),kd=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Cd(Ed,r);return t.createElement(ud,{as:$c,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(tu.div,Oc({"data-state":Md(o.open)},i,{ref:n,style:{pointerEvents:"auto",...i.style}})))}),Td="DialogContent",Pd=t.forwardRef((e,n)=>{const r=Ad(Td,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Cd(Td,e.__scopeDialog);return t.createElement(Iu,{present:i||s.open},s.modal?t.createElement(Rd,Oc({},o,{ref:n})):t.createElement(Gd,Oc({},o,{ref:n})))}),Rd=t.forwardRef((e,n)=>{const r=Cd(Td,e.__scopeDialog),i=t.useRef(null),o=Fc(n,r.contentRef,i);return t.useEffect(()=>{const e=i.current;if(e)return bd(e)},[]),t.createElement(Sd,Oc({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wc(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Wc(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Wc(e.onFocusOutside,e=>e.preventDefault())}))}),Gd=t.forwardRef((e,n)=>{const r=Cd(Td,e.__scopeDialog),i=t.useRef(!1),o=t.useRef(!1);return t.createElement(Sd,Oc({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(i.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Sd=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=Cd(Td,r),c=Fc(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:Nu()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Nu()),wu++,()=>{1===wu&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wu--}},[]),t.createElement(t.Fragment,null,t.createElement(mu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s},t.createElement(au,Oc({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Md(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),Bd="DialogTitle",Vd="DialogClose",Ld=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Cd(Vd,r);return t.createElement(tu.button,Oc({type:"button"},i,{ref:n,onClick:Wc(e.onClick,()=>o.onOpenChange(!1))}))});function Md(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function i(e){const{children:n,...i}=e,o=t.useMemo(()=>i,Object.values(i));return t.createElement(r.Provider,{value:o},n)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Td,titleName:Bd,docsSlug:"dialog"});const Dd=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=_c({prop:i,defaultProp:o,onChange:s});return t.createElement(Id,{scope:n,triggerRef:l,contentRef:c,contentId:Jc(),titleId:Jc(),descriptionId:Jc(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},Od=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Cd(wd,n);return t.createElement(Nd,{scope:n,forceMount:r},t.Children.map(i,e=>t.createElement(Iu,{present:r||s.open},t.createElement(yu,{asChild:!0,container:o},e))))},Wd=jd,Xd=Pd,Fd=Ld,Hd=t=>{const{isOpen:n,onRequestClose:r,size:i,title:o,content:s,description:a,children:l,bodyClassName:c,type:u="modal",index:d=0}=t;return e.jsx(Dd,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(Od,{children:[e.jsx(tc.div,{initial:"closed",animate:n?"open":"closed",variants:Lc,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(Wd,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(tc.div,{initial:"closed",animate:n?"open":"closed",variants:Mc,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"pointer-events-auto w-[calc(100vw-10px)] focus:outline-none sm:w-[calc(100vw-90px)]",children:e.jsx(Xd,{onOpenAutoFocus:e=>e.preventDefault(),className:Ae("relative mx-auto w-full rounded-modal bg-bg p-[25px] shadow-drop focus:outline-none",c),style:{maxWidth:Dc[i||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(Fd,{asChild:!0,children:e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx(Rt,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[o?e.jsx(Gt,{className:Ae("mb-3 mt-5 w-full pr-8 text-center sm:pr-0","heading5 md:pt-0","mb-4 md:mb-[60px]"),as:"h2",children:o}):null,a?e.jsx(Gt,{as:"div",className:"mb-8 sm:mb-5",children:a}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",children:[s,l||null]})]})]})})})})]})})},zd=({currentPage:t,totalPages:n,onPageChange:r,ariaLabel:i="Pagination"})=>{const o=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);if(e<=4)return[1,2,3,4,5,"...",t];if(e>=t-3)return[1,"...",t-4,t-3,t-2,t-1,t];return[1,"...",e-1,e,e+1,"...",t]}(t,n),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":i,children:[e.jsx(Wt,{className:s,onClick:()=>r(t-1),disabled:1===t,"aria-label":"Go to previous page",children:e.jsx(Rt,{name:"chevron_left",size:32,"aria-hidden":"true"})}),o.map((n,i)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${i}`):e.jsx(Wt,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>r(n),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n},n)),e.jsx(Wt,{className:s,onClick:()=>r(t+1),disabled:t===n,"aria-label":"Go to next page",children:e.jsx(Rt,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Zd(e){return Zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(e)}function Yd(e){var t=function(e,t){if("object"!=Zd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Zd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zd(t)?t:t+""}function Jd(e,t,n){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(t){Jd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qd(e,t){if(e){if("string"==typeof e)return $d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$d(e,t):void 0}}function Kd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||Qd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ep=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(null,arguments)}function np(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yd(r.key),r)}}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rp(e,t)}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ip(e)}function op(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(op=function(){return!!e})()}function sp(e,t){if(t&&("object"==Zd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ap(e){return function(e){if(Array.isArray(e))return $d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),cp="-ms-",up="-moz-",dp="-webkit-",pp="comm",mp="rule",hp="decl",fp="@keyframes",gp=Math.abs,bp=String.fromCharCode,vp=Object.assign;function xp(e){return e.trim()}function yp(e,t,n){return e.replace(t,n)}function Ip(e,t){return e.indexOf(t)}function Cp(e,t){return 0|e.charCodeAt(t)}function wp(e,t,n){return e.slice(t,n)}function Np(e){return e.length}function Ap(e){return e.length}function Ep(e,t){return t.push(e),e}var jp=1,kp=1,Tp=0,Pp=0,Rp=0,Gp="";function Sp(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:jp,column:kp,length:s,return:""}}function Bp(e,t){return vp(Sp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vp(){return Rp=Pp>0?Cp(Gp,--Pp):0,kp--,10===Rp&&(kp=1,jp--),Rp}function Lp(){return Rp=Pp<Tp?Cp(Gp,Pp++):0,kp++,10===Rp&&(kp=1,jp++),Rp}function Mp(){return Cp(Gp,Pp)}function Dp(){return Pp}function Op(e,t){return wp(Gp,e,t)}function Wp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xp(e){return jp=kp=1,Tp=Np(Gp=e),Pp=0,[]}function Fp(e){return Gp="",e}function Hp(e){return xp(Op(Pp-1,Yp(91===e?e+2:40===e?e+1:e)))}function zp(e){for(;(Rp=Mp())&&Rp<33;)Lp();return Wp(e)>2||Wp(Rp)>3?"":" "}function Zp(e,t){for(;--t&&Lp()&&!(Rp<48||Rp>102||Rp>57&&Rp<65||Rp>70&&Rp<97););return Op(e,Dp()+(t<6&&32==Mp()&&32==Lp()))}function Yp(e){for(;Lp();)switch(Rp){case e:return Pp;case 34:case 39:34!==e&&39!==e&&Yp(Rp);break;case 40:41===e&&Yp(e);break;case 92:Lp()}return Pp}function Jp(e,t){for(;Lp()&&e+Rp!==57&&(e+Rp!==84||47!==Mp()););return"/*"+Op(t,Pp-1)+"*"+bp(47===e?e:Lp())}function Up(e){for(;!Wp(Mp());)Lp();return Op(e,Pp)}function _p(e){return Fp($p("",null,null,null,[""],e=Xp(e),0,[0],e))}function $p(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=i,I=o,C=r,w=x;g;)switch(h=v,v=Lp()){case 40:if(108!=h&&58==Cp(w,d-1)){-1!=Ip(w+=yp(Hp(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=Hp(v);break;case 9:case 10:case 13:case 32:w+=zp(h);break;case 92:w+=Zp(Dp()-1,7);continue;case 47:switch(Mp()){case 42:case 47:Ep(Kp(Jp(Lp(),Dp()),t,n),l);break;default:w+="/"}break;case 123*f:a[c++]=Np(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=yp(w,/\f/g,"")),m>0&&Np(w)-d&&Ep(m>32?qp(w+";",r,n,d-1):qp(yp(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Ep(C=Qp(w,t,n,c,u,i,a,x,y=[],I=[],d),o),123===v)if(0===u)$p(w,t,C,C,y,o,d,a,I);else switch(99===p&&110===Cp(w,3)?100:p){case 100:case 108:case 109:case 115:$p(e,C,C,r&&Ep(Qp(e,C,C,0,0,i,a,x,i,y=[],d),I),i,I,d,a,r?y:I);break;default:$p(w,C,C,C,[""],I,0,a,I)}}c=u=m=0,f=b=1,x=w="",d=s;break;case 58:d=1+Np(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Vp())continue;switch(w+=bp(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Np(w)-1)*b,b=1;break;case 64:45===Mp()&&(w+=Hp(Lp())),p=Mp(),u=d=Np(x=w+=Up(Dp())),v++;break;case 45:45===h&&2==Np(w)&&(f=0)}}return o}function Qp(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],m=Ap(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=wp(e,d+1,d=gp(f=s[h])),x=e;b<m;++b)(x=xp(f>0?p[b]+" "+v:yp(v,/&\f/g,p[b])))&&(l[g++]=x);return Sp(e,t,n,0===i?mp:a,l,c,u)}function Kp(e,t,n){return Sp(e,t,n,pp,bp(Rp),wp(e,2,-2),0)}function qp(e,t,n,r){return Sp(e,t,n,hp,wp(e,0,r),wp(e,r+1,-1),r)}function em(e,t){for(var n="",r=Ap(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function tm(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case hp:return e.return=e.return||e.value;case pp:return"";case fp:return e.return=e.value+"{"+em(e.children,r)+"}";case mp:e.value=e.props.join(",")}return Np(n=em(e.children,r))?e.return=e.value+"{"+n+"}":""}function nm(e){var t=Ap(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function rm(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var im="undefined"!=typeof document,om=function(e,t,n){for(var r=0,i=0;r=i,i=Mp(),38===r&&12===i&&(t[n]=1),!Wp(i);)Lp();return Op(e,Pp)},sm=function(e,t){return Fp(function(e,t){var n=-1,r=44;do{switch(Wp(r)){case 0:38===r&&12===Mp()&&(t[n]=1),e[n]+=om(Pp-1,t,n);break;case 2:e[n]+=Hp(r);break;case 4:if(44===r){e[++n]=58===Mp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bp(r)}}while(r=Lp());return e}(Xp(e),t))},am=new WeakMap,lm=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||am.get(n))&&!r){am.set(e,!0);for(var i=[],o=sm(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},cm=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function um(e,t){switch(function(e,t){return 45^Cp(e,0)?(((t<<2^Cp(e,0))<<2^Cp(e,1))<<2^Cp(e,2))<<2^Cp(e,3):0}(e,t)){case 5103:return dp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dp+e+up+e+cp+e+e;case 6828:case 4268:return dp+e+cp+e+e;case 6165:return dp+e+cp+"flex-"+e+e;case 5187:return dp+e+yp(e,/(\w+).+(:[^]+)/,dp+"box-$1$2"+cp+"flex-$1$2")+e;case 5443:return dp+e+cp+"flex-item-"+yp(e,/flex-|-self/,"")+e;case 4675:return dp+e+cp+"flex-line-pack"+yp(e,/align-content|flex-|-self/,"")+e;case 5548:return dp+e+cp+yp(e,"shrink","negative")+e;case 5292:return dp+e+cp+yp(e,"basis","preferred-size")+e;case 6060:return dp+"box-"+yp(e,"-grow","")+dp+e+cp+yp(e,"grow","positive")+e;case 4554:return dp+yp(e,/([^-])(transform)/g,"$1"+dp+"$2")+e;case 6187:return yp(yp(yp(e,/(zoom-|grab)/,dp+"$1"),/(image-set)/,dp+"$1"),e,"")+e;case 5495:case 3959:return yp(e,/(image-set\([^]*)/,dp+"$1$`$1");case 4968:return yp(yp(e,/(.+:)(flex-)?(.*)/,dp+"box-pack:$3"+cp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dp+e+e;case 4095:case 3583:case 4068:case 2532:return yp(e,/(.+)-inline(.+)/,dp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Np(e)-1-t>6)switch(Cp(e,t+1)){case 109:if(45!==Cp(e,t+4))break;case 102:return yp(e,/(.+:)(.+)-([^]+)/,"$1"+dp+"$2-$3$1"+up+(108==Cp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?um(yp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Cp(e,t+1))break;case 6444:switch(Cp(e,Np(e)-3-(~Ip(e,"!important")&&10))){case 107:return yp(e,":",":"+dp)+e;case 101:return yp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dp+(45===Cp(e,14)?"inline-":"")+"box$3$1"+dp+"$2$3$1"+cp+"$2box$3")+e}break;case 5936:switch(Cp(e,t+11)){case 114:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dp+e+cp+e+e}return e}var dm,pm,mm,hm=im?void 0:(dm=function(){return rm(function(){return{}})},pm=new WeakMap,function(e){if(pm.has(e))return pm.get(e);var t=dm(e);return pm.set(e,t),t}),fm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case hp:e.return=um(e.value,e.length);break;case fp:return em([Bp(e,{value:yp(e.value,"@","@"+dp)})],r);case mp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return em([Bp(e,{props:[yp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return em([Bp(e,{props:[yp(t,/:(plac\w+)/,":"+dp+"input-$1")]}),Bp(e,{props:[yp(t,/:(plac\w+)/,":-moz-$1")]}),Bp(e,{props:[yp(t,/:(plac\w+)/,cp+"input-$1")]})],r)}return""})}}],gm=function(e){var t=e.key;if(im&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||fm,s={},a=[];im&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[lm,cm];if(hm){var u=[tm],d=nm(c.concat(o,u)),p=hm(o)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=em(_p(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};i=function(e,t,n,r){var i=t.name,o=m(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),o):r?void(b.inserted[i]=o):o}}else{var h,f=[tm,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=nm(c.concat(o,f));i=function(e,t,n,r){h=n,em(_p(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new lp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(a),b},bm={exports:{}},vm={};var xm,ym,Im,Cm,wm={};
|
|
5
|
+
function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var rt=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=nt({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",nt({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,nt({},this.attributes,t))},withConverter:function(t){return e(nt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const it=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const ot=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,st=e=>{if(!e)return null;if(ot(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return ot(t)?t:null}return null};var at=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),lt=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),ct=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});const ut=[at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE,at.TABLE],dt=[at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE];at.TABLE,at.TABLE_ROW,at.TABLE_CELL,at.TABLE_HEADER_CELL,at.HR,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,at.EMBEDDED_RESOURCE;const pt={[at.OL_LIST]:[at.LIST_ITEM],[at.UL_LIST]:[at.LIST_ITEM],[at.LIST_ITEM]:dt,[at.QUOTE]:[at.PARAGRAPH],[at.TABLE]:[at.TABLE_ROW],[at.TABLE_ROW]:[at.TABLE_CELL,at.TABLE_HEADER_CELL],[at.TABLE_CELL]:[at.PARAGRAPH,at.UL_LIST,at.OL_LIST],[at.TABLE_HEADER_CELL]:[at.PARAGRAPH]};at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6;at.PARAGRAPH,at.DOCUMENT,at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.OL_LIST,at.UL_LIST,at.LIST_ITEM,at.HR,at.QUOTE,at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,lt.HYPERLINK,lt.ENTRY_HYPERLINK,lt.ASSET_HYPERLINK,lt.EMBEDDED_ENTRY,ct.BOLD,ct.CODE,ct.ITALIC,ct.UNDERLINE,at.DOCUMENT,at.PARAGRAPH;function mt(e){if(!function(e){return null!=e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}(e)||e.content.length<2)return e;return function(e){if(e.nodeType!==at.PARAGRAPH)return!1;if(1!==e.content.length)return!1;const t=e.content[0];return"text"===t.nodeType&&""===t.value}(e.content[e.content.length-1])?{...e,content:e.content.slice(0,-1)}:e}const ht=({path:e,property:t,typeName:n,value:r})=>({details:`The type of "${t}" is incorrect, expected type: ${n}`,name:"type",path:e.toArray(),type:n,value:r});class ft{obj;path;_errors=[];constructor(e,t){this.obj=e,this.path=t}catch=(...e)=>{this._errors.push(...e)};get errors(){const e=e=>JSON.stringify({details:e.details,path:e.path});return this._errors.filter((t,n)=>this._errors.findIndex(n=>e(t)===e(n))===n)}exists=e=>e in this.obj||(this.catch((({property:e,path:t})=>({details:`The property "${e}" is required here`,name:"required",path:t.toArray()}))({property:e,path:this.path.of(e)})),!1);object=e=>{const t=e?this.obj[e]:this.obj;if(e&&!this.exists(e))return!1;if("object"==typeof t&&!Array.isArray(t)&&null!==t)return!0;const n=e?this.path.of(e):this.path,r=e??this.path.last()??"value";return this.catch(ht({typeName:"Object",property:r,path:n,value:t})),!1};string=e=>{const t=this.obj[e];return!(e&&!this.exists(e))&&("string"==typeof t||(this.catch(ht({typeName:"String",property:e,path:this.path.of(e),value:t})),!1))};number=(e,t)=>{const n=this.obj[e];return!(!t||e in this.obj)||!!this.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(this.catch(ht({typeName:"Number",property:e,path:this.path.of(e),value:n})),!1))};array=e=>{const t=this.obj[e];return!(e&&!this.exists(e))&&(!!Array.isArray(t)||(this.catch(ht({typeName:"Array",property:e,path:this.path.of(e),value:t})),!1))};enum=(e,t)=>{const n=this.obj[e];return!("string"!=typeof n||!t.includes(n))||(this.catch((({expected:e,value:t,path:n})=>({details:"Value must be one of expected values",name:"in",expected:[...e].sort(),path:n.toArray(),value:t}))({expected:t,value:n,path:this.path.of(e)})),!1)};empty=e=>{if(!this.array(e))return!1;const t=this.obj[e];return 0===t.length||(this.catch((({max:e,value:t,path:n})=>({name:"size",max:e,path:n.toArray(),details:`Size must be at most ${e}`,value:t}))({max:0,value:t,path:this.path.of(e)})),!1)};minLength=(e,t)=>{if(!this.array(e))return!1;const n=this.obj[e];return n.length>=t||(this.catch((({min:e,value:t,path:n})=>({name:"size",min:e,path:n.toArray(),details:`Size must be at least ${e}`,value:t}))({min:t,value:n,path:this.path.of(e)})),!1)};noAdditionalProperties=e=>{const t=Object.keys(this.obj).sort().filter(t=>!e.includes(t));return t.forEach(e=>this.catch((({property:e,path:t})=>({details:`The property "${e}" is not expected`,name:"unexpected",path:t.toArray()}))({property:e,path:this.path.of(e)}))),0===t.length};each=(e,t)=>{if(!this.array(e))return;const n=this.obj[e];let r=!1;n.forEach((n,i)=>{if(r)return;const o=t(n,this.path.of(e).of(i));o.length>0&&(r=!0),this.catch(...o)})}}const gt=[];class bt{contentRule;validateData;constructor(e,t){this.contentRule=e,this.validateData=t}assert(e,t){const n=new ft(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);const{nodeTypes:r,min:i=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t);if(0===r.length&&i>0)throw new Error(`Invalid content rule. Cannot have enforce a 'min' of ${i} with no nodeTypes`);if(n.minLength("content",i),0===r.length?n.empty("content"):n.each("content",(e,t)=>{const n=new ft(e,t);return n.object()?(n.enum("nodeType",r),n.errors):n.errors}),n.object("data")){const r=this.validateData?.(e.data,t.of("data"))??[];n.catch(...r)}return n.errors}}class vt extends bt{linkType;type;constructor(e,t){super(t,(e,t)=>this.assertLink(e,t)),this.linkType=e,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(e,t)=>{const n=new ft(e,t);if(n.object("target")){const r=new ft(e.target.sys,t.of("target").of("sys"));r.object()&&(r.enum("type",[this.type]),r.enum("linkType",[this.linkType]),"Link"===this.type?(r.string("id"),r.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(r.string("urn"),r.noAdditionalProperties(["type","linkType","urn"]))),n.catch(...r.errors)}return n.noAdditionalProperties(["target"]),n.errors}}const xt=(e,t)=>new bt(e,t),yt=(e,t)=>new vt(e,t);xt([...Object.values(lt),"text"].sort()),xt([at.LIST_ITEM]),yt("Entry",gt),xt(()=>({nodeTypes:[at.PARAGRAPH],min:1}),(e,t)=>{const n=new ft(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});function It(e,n){return e.map((e,r)=>{return i=Ct(e,n),o=r,t.isValidElement(i)&&null===i.key?t.cloneElement(i,{key:o}):i;var i,o})}function Ct(e,t){const{renderNode:n,renderMark:r,renderText:i,preserveWhitespace:o}=t;if(function(e){return"text"===e.nodeType}(e)){let t=i?i(e.value):e.value;if(o&&!i){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const e=t.split("\n"),n=[];e.forEach((t,r)=>{n.push(t),r!==e.length-1&&n.push(l.default.createElement("br",null))}),t=n}return e.marks.reduce((e,t)=>r[t.type]?r[t.type](e):e,t)}{const r=It(e.content,t);return e.nodeType&&n[e.nodeType]?n[e.nodeType](e,r):l.default.createElement(l.default.Fragment,null,r)}}at.DOCUMENT,xt(ut),at.PARAGRAPH,at.HEADING_1,at.HEADING_2,at.HEADING_3,at.HEADING_4,at.HEADING_5,at.HEADING_6,at.QUOTE,xt(pt[at.QUOTE]),at.EMBEDDED_ENTRY,at.EMBEDDED_ASSET,yt("Asset",gt),at.EMBEDDED_RESOURCE,yt("Contentful:Entry",gt),at.HR,xt(gt),at.OL_LIST,at.UL_LIST,at.LIST_ITEM,xt([...dt].sort()),at.TABLE,xt(()=>({nodeTypes:[at.TABLE_ROW],min:1})),at.TABLE_ROW,xt(()=>({nodeTypes:[at.TABLE_CELL,at.TABLE_HEADER_CELL],min:1})),at.TABLE_CELL,at.TABLE_HEADER_CELL,lt.HYPERLINK,new class extends bt{constructor(){super(["text"],(e,t)=>this.assertLink(e,t))}assertLink=(e,t)=>{const n=new ft(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}},lt.EMBEDDED_ENTRY,lt.EMBEDDED_RESOURCE,yt("Contentful:Entry",gt),lt.ENTRY_HYPERLINK,yt("Entry",["text"]),lt.ASSET_HYPERLINK,yt("Asset",["text"]),lt.RESOURCE_HYPERLINK,yt("Contentful:Entry",["text"]);const wt={[at.DOCUMENT]:(e,t)=>t,[at.PARAGRAPH]:(e,t)=>l.default.createElement("p",null,t),[at.HEADING_1]:(e,t)=>l.default.createElement("h1",null,t),[at.HEADING_2]:(e,t)=>l.default.createElement("h2",null,t),[at.HEADING_3]:(e,t)=>l.default.createElement("h3",null,t),[at.HEADING_4]:(e,t)=>l.default.createElement("h4",null,t),[at.HEADING_5]:(e,t)=>l.default.createElement("h5",null,t),[at.HEADING_6]:(e,t)=>l.default.createElement("h6",null,t),[at.EMBEDDED_ENTRY]:(e,t)=>l.default.createElement("div",null,t),[at.EMBEDDED_RESOURCE]:(e,t)=>l.default.createElement("div",null,t),[at.UL_LIST]:(e,t)=>l.default.createElement("ul",null,t),[at.OL_LIST]:(e,t)=>l.default.createElement("ol",null,t),[at.LIST_ITEM]:(e,t)=>l.default.createElement("li",null,t),[at.QUOTE]:(e,t)=>l.default.createElement("blockquote",null,t),[at.HR]:()=>l.default.createElement("hr",null),[at.TABLE]:(e,t)=>l.default.createElement("table",null,l.default.createElement("tbody",null,t)),[at.TABLE_ROW]:(e,t)=>l.default.createElement("tr",null,t),[at.TABLE_HEADER_CELL]:(e,t)=>l.default.createElement("th",null,t),[at.TABLE_CELL]:(e,t)=>l.default.createElement("td",null,t),[lt.ASSET_HYPERLINK]:e=>At(lt.ASSET_HYPERLINK,e),[lt.ENTRY_HYPERLINK]:e=>At(lt.ENTRY_HYPERLINK,e),[lt.RESOURCE_HYPERLINK]:e=>Et(lt.RESOURCE_HYPERLINK,e),[lt.EMBEDDED_ENTRY]:e=>At(lt.EMBEDDED_ENTRY,e),[lt.EMBEDDED_RESOURCE]:(e,t)=>Et(lt.EMBEDDED_RESOURCE,e),[lt.HYPERLINK]:(e,t)=>l.default.createElement("a",{href:e.data.uri},t)},Nt={[ct.BOLD]:e=>l.default.createElement("b",null,e),[ct.ITALIC]:e=>l.default.createElement("i",null,e),[ct.UNDERLINE]:e=>l.default.createElement("u",null,e),[ct.CODE]:e=>l.default.createElement("code",null,e),[ct.SUPERSCRIPT]:e=>l.default.createElement("sup",null,e),[ct.SUBSCRIPT]:e=>l.default.createElement("sub",null,e),[ct.STRIKETHROUGH]:e=>l.default.createElement("s",null,e)};function At(e,t){return l.default.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function Et(e,t){return l.default.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}function jt(e,t={}){if(!e)return null;let n=e;return t.stripEmptyTrailingParagraph&&(n=mt(e)),Ct(n,{renderNode:{...wt,...t.renderNode},renderMark:{...Nt,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}const kt={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Tt=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:i,...o},s)=>{const a=Ae("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:i,...o,children:t})});Tt.displayName="ListItem";const Pt=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:i,children:o,variant:s="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=Ae(u,`list--${t}`,`list--${s}`,r),p=o||(n&&0!==n.length?n.map((t,n)=>i?i(t,n):e.jsx(Tt,{className:t.className,variant:s,children:t.content},t.id||n)):null),m={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c}):e.jsx("ul",{...m,ref:c})});Pt.displayName="List";const Rt=({name:t,fill:n=0,opticalSize:r="48dp",weight:i="200",emphasis:o=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${i}, 'GRAD' ${o}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:p,className:Ae("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};Rt.displayName="MaterialIcon";const Gt=t.forwardRef(({children:e,as:t,className:n="",style:r,...i},o)=>{const s=t||"p";return l.default.createElement(s,{ref:o,className:n,style:r,...i},e)});Gt.displayName="Text";const St=t=>{const{items:n,listIconName:r="check",listItemClassName:i,listContainerClassName:o,iconSize:s=20,iconPosition:a="center",iconColor:c="green",iconClassName:u}=t,d="disc"!==r;return(null==n?void 0:n.length)?e.jsx(Pt,{className:Ae("mt-2 space-y-1",o),variant:d?"unstyled":"default",children:n.map((t,n)=>{const o=function(e){return null!==e&&"object"==typeof e&&!l.default.isValidElement(e)&&"title"in e}(t),p=o&&!!t.iconUrl,m=o?t.title:t;return e.jsxs(Tt,{variant:d?"unstyled":"default",className:Ae(`${d?"flex":""} ${"top"===a?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[d&&p?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:t.iconUrl,alt:t.iconAlt||"",width:s,height:s,className:Ae("block object-contain","top"===a?"mt-1":"",u)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx(Rt,{name:r,size:s,color:kt[c],weight:"600",className:Ae("block","top"===a?"mt-1":"",u)})}):null,e.jsx(Gt,{as:"div",children:m})]},n)})}):null};var Bt;St.displayName="Checklist";const Vt="function"==typeof c.default?c.default:null!==(Bt=c.default.default)&&void 0!==Bt?Bt:c.default,Lt=t.forwardRef(({children:t,href:n,className:r="",onClick:i,variant:o="unstyled",style:s,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(" ")})(),p=e=>{l?e.preventDefault():null==i||i(e)},m=Ae(d,`link--${o}`,l&&"link--disabled",r),h={...c,ref:u,className:m,style:s,href:l?void 0:n,onClick:p,...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return a||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(Vt,{href:n||"#",className:m,onClick:p,...c,children:t})});Lt.displayName="Link";const Mt={renderMark:{[ct.BOLD]:t=>e.jsx("strong",{className:"label3",children:t}),[ct.ITALIC]:t=>e.jsx("em",{children:t}),[ct.UNDERLINE]:t=>e.jsx("u",{children:t}),[ct.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[at.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4",children:n}),[at.HEADING_1]:(t,n)=>e.jsx(Gt,{as:"h1",className:"heading2 md:heading1",children:n}),[at.HEADING_2]:(t,n)=>e.jsx(Gt,{as:"h2",className:"heading6 md:heading5",children:n}),[at.HEADING_3]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6 md:heading5",children:n}),[at.HEADING_4]:(t,n)=>e.jsx(Gt,{as:"h3",className:"headingClass",children:n}),[at.HEADING_5]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6 md:heading5",children:n}),[at.HEADING_6]:(t,n)=>e.jsx(Gt,{as:"h3",className:"heading6",children:n}),[at.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[at.UL_LIST]:(t,n)=>e.jsx("ul",{children:n}),[at.OL_LIST]:(t,n)=>e.jsx("ol",{children:n}),[at.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[lt.HYPERLINK]:(t,n)=>{var r;const i=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,o=/^https?:\/\//.test(i);return e.jsx("a",{href:i,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,children:n})},[at.EMBEDDED_ASSET]:t=>{var n,r;const i=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,o=null==i?void 0:i.fields,s=(null==i?void 0:i.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),a=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!s)return null;const l=s.startsWith("//")?`https:${s}`:s;return e.jsx("img",{src:l,alt:a,style:{maxWidth:"100%"}})},[at.EMBEDDED_ENTRY]:t=>{var n,r,i,o;const s=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"callout"===(null===(o=null===(i=null===(r=null==s?void 0:s.sys)||void 0===r?void 0:r.contentType)||void 0===i?void 0:i.sys)||void 0===o?void 0:o.id)?e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:s.fields.title}),e.jsx("div",{children:s.fields.body})]}):null},[lt.EMBEDDED_ENTRY]:t=>{var n,r,i,o,s,a;const l=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"componentCheckList"===(null===(o=null===(i=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===i?void 0:i.sys)||void 0===o?void 0:o.id)?e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",l.fields.title]}):e.jsx("span",{children:null!==(a=null===(s=null==l?void 0:l.fields)||void 0===s?void 0:s.title)&&void 0!==a?a:""})}}};function Dt(t,n,r="body1",i="body1 font-bold",o){if(!t||!Array.isArray(t.content))return null;const s={...Mt,...o,renderNode:{...Mt.renderNode,...null==o?void 0:o.renderNode,[at.PARAGRAPH]:(t,n)=>e.jsx("div",{className:r,children:n}),[lt.HYPERLINK]:(t,r)=>{var o;const s=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.uri,a=/^https?:\/\//.test(s),l=null!=n?n:a;return e.jsx(Lt,{href:s,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,variant:"default",className:i,children:r})}}};return jt(t,s)}const Ot={renderMark:{[ct.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const Wt=t.forwardRef(({children:t,className:n="",style:r,disabled:i,...o},s)=>e.jsx("button",{ref:s,className:Ae(n),style:r,disabled:i,...o,children:t}));Wt.displayName="Button";const Xt=n=>{const{open:r,children:i}=n,o=t.useRef(null),[s,a]=t.useState(0);return t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,i]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:o,children:i})})};Xt.displayName="Collapse";const Ft=n=>{const{title:r,defaultOpen:i,children:o,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,iconClassName:u,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[m,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(i))},[d,i]),e.jsxs("div",{className:Ae(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(Wt,{type:"button",className:Ae(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:Ae("label5 flex-1",a),children:r}),e.jsx(Rt,{className:Ae("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(Xt,{open:m,children:e.jsx("div",{className:Ae("px-4 py-4",l),children:o})})]})};Ft.displayName="Accordion";const Ht=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ae("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};Ht.displayName="Divider";const zt=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()},Zt=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:i,disabled:o,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,as:p="button",...m},h)=>{const f=(()=>{const e=Ae((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()})(l),"rounded-button 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 whitespace-nowrap",s?"w-full":"w-auto"),r=Ae((o||n)&&"cursor-not-allowed",n&&"pl-7");return Ae(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:ring-input-border-hover disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let g=`button--${t}`;n&&(g+=" button--loading"),o&&(g+=" button--disabled");const b=`${g} ${f}`,v=e.jsxs(e.Fragment,{children:[n?e.jsx(Rt,{name:"progress_activity",className:"animate-spin"}):null,i?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ae(zt(l)),children:i}),r]}):r,c?e.jsx(Rt,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===p?e.jsx("a",{ref:h,className:Ae(b),...m,children:v}):e.jsx("button",{ref:h,className:Ae(b),disabled:o||n,...m,children:v})});Zt.displayName="BrandButton";const Yt=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:i,buttonPrefix:o,href:s,target:a="_blank",anchorId:l,linkClassName:c,linkVariant:u,fullWidth:d,preDefinedFunctionExecution:p,renderCheckPlans:m,buttonClassName:h,clickToOpen:f,tabmodalNameToOpen:g,onModalButtonClick:b,onClick:v,iconName:x,iconFill:y=0,size:I,iconSize:C=24,preserveQueryParameters:w,...N}=t;if("check availability"===p){return null==m?void 0:m({ctaText:i,buttonVariant:r,showButtonAs:n,cta:{...t}})}function A(){"modal"===f&&(null==b||b(g))}function E(e){A(),null==v||v(e)}function j(e){A(),null==v||v(e)}const k="undefined"!=typeof window?window.location.search:"",T=s&&w&&k?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(it),i=new Set([...r,"searchtext","page"]);let o,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);o=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");o=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{i.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${o}?${l}`:o}(s,k):s;let P=e.jsx(Wt,{onClick:j,className:h,...N});switch(n){case"solid":P=T?e.jsx(Zt,{as:"a",href:T,id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:E}):e.jsx(Zt,{id:l,variant:r,text:i,label:o,fullWidth:d,size:I,onClick:j,buttonClassName:h});break;case"text":P=e.jsxs(Lt,{title:i,href:T,target:a,variant:u||"default",className:`text-text-brand ${c||""}`,onClick:E,children:[i," ",x&&e.jsx(Rt,{name:x,size:C,fill:y})]});break;case"button-with-icon":P=T?e.jsx(Zt,{as:"a",href:T,id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:E,iconName:x,iconSize:C,iconFill:y}):e.jsx(Zt,{id:l,variant:r,text:i,label:o,fullWidth:d,buttonClassName:h,size:I,onClick:j,iconName:x,iconSize:C,iconFill:y});break;case"text-with-icon":{const t=(e=>({primary_brand:"text-text-brand",primary_inverse:"text-text-inverse",secondary:"text-text"}[e]||"text-text-brand"))(r);P=e.jsxs(Lt,{href:T,target:a,onClick:E,className:Ae("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,h),"aria-label":i,children:[e.jsx(Gt,{"aria-label":i,className:"label1 text-nowrap",children:i}),x&&e.jsx(Rt,{name:x,fill:y,size:C,weight:"200"})]});break}}return P};var Jt;const Ut=null!==(Jt=c.default)&&void 0!==Jt?Jt:c,_t=({href:t,title:n,description:r,date:i,category:o,image:s,imageComponent:a,readMoreText:l="Read more",asGrid:c=!0,lgWidth:u,mdWidth:d,index:p})=>{const m=c?"flex h-full flex-col overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop":`callout-card lg:w-[calc(33.3333%-1rem)] md:w-[calc(50%-1rem)] ${u} ${d} w-full overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop`;return e.jsxs("article",{className:m,"data-section-type":"blog-card","data-section-index":p,children:[e.jsx(Ut,{href:t,tabIndex:-1,"aria-hidden":"true",className:"block",children:e.jsx("div",{className:"h-[232px] w-full flex-shrink-0 overflow-hidden bg-gray-100",children:s?a?e.jsx(a,{src:s.src,alt:s.alt,width:s.width,height:s.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("img",{src:s.src,alt:s.alt,width:s.width,height:s.height,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),e.jsxs("div",{className:"flex flex-1 flex-col gap-5 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[e.jsx("span",{className:"body2 text-text-brand",children:o}),i&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:i})]})]}),n&&e.jsx(Ut,{href:t,className:"heading6 m-0 line-clamp-3 font-black transition-colors duration-150 hover:text-text-brand",children:n}),r&&e.jsx(Gt,{className:"body1 m-0 line-clamp-3 flex-1 text-text",children:r}),e.jsxs(Ut,{href:t,className:"group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm text-text-brand no-underline","aria-label":`${l} about ${n||"this article"}`,children:[e.jsx(Gt,{"aria-label":`${l} about ${n||"this article"}`,className:"label1 text-nowrap",children:l}),e.jsx(Rt,{name:"expand_circle_right",fill:1,size:24,weight:"200"})]})]})]})},$t=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(u.default),Qt=({src:e,width:t,quality:n})=>{const r=new URL(e);return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(n||90)),r.searchParams.set("fm","webp"),r.toString()},Kt=t.forwardRef(({className:t,...n},r)=>{const i="string"==typeof n.src?n.src:"",o=i.toLowerCase().split("?")[0]||"",s=i.includes("images.ctfassets.net"),a=s&&o.endsWith(".svg"),l=s&&!a?{loader:Qt,unoptimized:!1}:{unoptimized:a};return e.jsx($t,{ref:r,className:Ae(t),...n,...l})});Kt.displayName="NextImage";const qt={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},en=({card:t,lgWidth:n,mdWidth:r})=>{var i,o,s,a;const{image:l,title:c,header:u,body:d,cta:p,ctaAlignment:m,imageLink:h,imageClassName:f,className:g,isPromoBarImg:b=!1,shadow:v=!1}=t,x=m?qt[m]:qt.left,y=h?"cursor-pointer":"",I=h?()=>{"undefined"!=typeof window&&window.open(h,"_blank")}:void 0;return b?(null==l?void 0:l.href)?e.jsx(Kt,{src:l.href,alt:null!==(o=null!==(i=l.title)&&void 0!==i?i:c)&&void 0!==o?o:"promo-bar-image",width:148,height:40,onClick:I,className:y}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ae("callout-card relative flex h-full w-full flex-col gap-4 p-0 md:items-start lg:gap-6",v&&"rounded-3xl shadow-card",r,n,g),children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ae("relative aspect-video w-full overflow-hidden rounded-[40px] sm:mb-1 md:flex-none lg:mb-0",f),children:e.jsx(Kt,{src:l.href,alt:null!==(a=null!==(s=l.title)&&void 0!==s?s:c)&&void 0!==a?a:"card-image",width:l.width||400,height:l.height||285,onClick:I,className:Ae("h-full max-h-[285px] w-full object-cover",y)})}):null,u?e.jsx(Gt,{as:"h6",className:"heading6 font-black text-text lg:pb-2",children:u}):null,d?e.jsx(Gt,{as:"div",className:"body2 mb-0 flex-1 text-text",children:d}):null,e.jsx("div",{className:Ae(x,"mt-auto"),children:p?e.jsx(Yt,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...p,iconName:"expand_circle_right",iconFill:1}):null})]})},tn=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:i="FullImageCard",title:o,description:s,caption:a,image:l,cta:c,link:u,className:d,contentClassName:p,imageClassName:m,shadow:h=!0}=t,f=c||u,g=null==f?void 0:f.href,b=o?e.jsx(Gt,{as:"h3",className:"body1 text-text xl:heading6",children:o}):null;return e.jsxs("section",{id:i,className:Ae("callout-card relative flex flex-col rounded-3xl bg-white p-0",h&&"shadow-card",r,n,"w-full",d),"aria-labelledby":`card-title-${i}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ae("relative aspect-video overflow-hidden rounded-tl-3xl rounded-tr-3xl",m),children:(()=>{var t,n;if(!(null==l?void 0:l.href))return null;const r=e.jsx(Kt,{src:l.href,alt:null!==(n=null!==(t=l.title)&&void 0!==t?t:o)&&void 0!==n?n:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return g?e.jsx(Lt,{href:g,tabIndex:-1,target:null==f?void 0:f.target,children:r}):r})()}):null,e.jsxs("div",{className:Ae("flex h-full flex-col gap-4 p-6 md:p-8",p),children:[e.jsxs("div",{className:"flex flex-1 flex-col justify-between",children:[e.jsxs("div",{children:[g&&b?e.jsx(Lt,{href:g,target:null==f?void 0:f.target,className:"no-underline hover:underline",children:b}):b,s?e.jsx(Gt,{as:"p",className:"body2 mt-4 text-text md:body1",children:s}):null]}),a?e.jsx(Gt,{as:"p",className:"footnote mt-5 text-text-secondary",children:a}):null]}),c?e.jsx("div",{className:"mt-2 flex items-end",children:e.jsx(Yt,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...c,iconName:"expand_circle_right",iconFill:1})}):null]})]})},nn={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},rn={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},on={left:"justify-start",right:"justify-end",center:"justify-center"},sn=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},an=({card:t,lgWidth:n,mdWidth:r,className:i,contentClassName:o,style:s})=>{var a,l,c,u,d,p,m,h,f,g,b,v,x,y,I,C,w;const N=null===(a=t.imageView)||void 0===a?void 0:a.toLowerCase(),A="full"===N,E="margin"===N,j="standard"===N,k="icon"===N||"inset"===N||!N&&!!t.image,T=j||k,P=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",R=t.ctaAlignment&&rn[t.ctaAlignment]||rn.left,G=t.ctaAlignmentBottom&&on[t.ctaAlignmentBottom]||on.left,S=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],B=T&&t.applyCardBackgroundColor,V={...s,...B&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...B&&t.textColor?{"--scc-fg":t.textColor}:{},...B&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...B&&t.showBackgroundImage&&S?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ee(S))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},L=n=>{var r,i;return t.image?e.jsx("div",{className:Ae("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Kt,{src:t.image,alt:null!==(i=null!==(r=t.imageAlt)&&void 0!==r?r:t.title)&&void 0!==i?i:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ae("w-full",!n&&"rounded-t-3xl")})}):null},M=B&&t.textColor?{color:t.textColor}:void 0,D=t.title?e.jsx(Gt,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:M,children:t.title}):null,O=(null===(d=t.cta)||void 0===d?void 0:d.href)&&D?e.jsx(Lt,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:M,children:D}):D,W=(null!==(m=null===(p=t.workingHours)||void 0===p?void 0:p.length)&&void 0!==m?m:0)>0||(null!==(f=null===(h=t.phoneNumber)||void 0===h?void 0:h.length)&&void 0!==f?f:0)>0;return e.jsxs("section",{className:Ae("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!A&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(b=nn[null!==(g=t.backgroundColor)&&void 0!==g?g:""])&&void 0!==b?b:""),r,n,i),style:V,"aria-labelledby":t.title?`callout-${t.title}`:void 0,children:[(null===(v=t.ctaBottom)||void 0===v?void 0:v.title)&&(null===(x=t.ctaBottom)||void 0===x?void 0:x.href)?e.jsx("div",{className:Ae("top-link m-6 flex items-center lg:m-8",G),children:e.jsxs(Lt,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx(Rt,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&A?L(!1):null,t.image&&E?L(!0):null,e.jsxs("div",{className:Ae("relative flex flex-1 flex-col justify-between px-6 pb-8 pt-7 lg:px-8 lg:py-8",o),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ae("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ae(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||A||E?null:(()=>{var n,r;if(!t.image)return null;const i=j&&t.imageWidth||60,o=j&&t.imageHeight||60;return e.jsx("div",{className:Ae("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:P},children:e.jsx(Kt,{src:t.image,alt:null!==(r=null!==(n=t.imageAlt)&&void 0!==n?n:t.title)&&void 0!==r?r:"card-icon",width:i,height:o,className:Ae("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[O,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(Gt,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,W?e.jsx("div",{className:"mb-2",children:e.jsx("table",{children:e.jsxs("tbody",{children:[null===(y=t.workingHours)||void 0===y?void 0:y.map((t,n)=>{const[r,i]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(Gt,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(Gt,{className:"body2 font-bold text-text",children:i})})]},`wh-${n}`)}),null===(I=t.phoneNumber)||void 0===I?void 0:I.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx(Rt,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(Lt,{href:sn(t),className:"text-inherit no-underline",children:e.jsx(Gt,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(Gt,{as:"div",className:"body1 text-text",style:M,children:t.body}):null,t.richText?e.jsx(Gt,{as:"div",className:"body1 text-text",style:M,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ae("mt-2",R),children:e.jsx(Yt,{linkVariant:"unstyled",linkClassName:Ae("label1 flex items-center gap-2 text-text",B&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(C=t.cta.iconName)&&void 0!==C?C:"expand_circle_right",iconFill:null!==(w=t.cta.iconFill)&&void 0!==w?w:1})}):null]})]})},ln=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cn=t.createContext({}),un=t.createContext(null),dn="undefined"!=typeof document,pn=dn?t.useLayoutEffect:t.useEffect,mn=t.createContext({strict:!1});function hn(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fn(e){return"string"==typeof e||Array.isArray(e)}function gn(e){return"object"==typeof e&&"function"==typeof e.start}const bn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vn=["initial",...bn];function xn(e){return gn(e.animate)||vn.some(t=>fn(e[t]))}function yn(e){return Boolean(xn(e)||e.variants)}function In(e){const{initial:n,animate:r}=function(e,t){if(xn(e)){const{initial:t,animate:n}=e;return{initial:!1===t||fn(t)?t:void 0,animate:fn(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(cn));return t.useMemo(()=>({initial:n,animate:r}),[Cn(n),Cn(r)])}function Cn(e){return Array.isArray(e)?e.join(" "):e}const wn={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"]},Nn={};for(const e in wn)Nn[e]={isEnabled:t=>wn[e].some(e=>!!t[e])};const An=t.createContext({}),En=t.createContext({}),jn=Symbol.for("motionComponentSymbol");function kn({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Nn[t]={...Nn[t],...e[t]}}(e);const s=t.forwardRef(function(s,a){let c;const u={...t.useContext(ln),...s,layoutId:Tn(s)},{isStatic:d}=u,p=In(s),m=i(s,d);if(!d&&dn){p.visualElement=function(e,n,r,i){const{visualElement:o}=t.useContext(cn),s=t.useContext(mn),a=t.useContext(un),l=t.useContext(ln).reducedMotion,c=t.useRef();i=i||s.renderer,!c.current&&i&&(c.current=i(e,{visualState:n,parent:o,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),pn(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?pn:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(o,m,u,n);const r=t.useContext(En),i=t.useContext(mn).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,i,e,r))}return l.createElement(cn.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):hn(r)&&(r.current=t))},[n])}(m,p.visualElement,a),m,d,p.visualElement))});return s[jn]=o,s}function Tn({layoutId:e}){const n=t.useContext(An).id;return n&&void 0!==e?n+"-"+e:e}function Pn(e){function t(t,n={}){return kn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Rn=["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 Gn(e){return"string"==typeof e&&!e.includes("-")&&!!(Rn.indexOf(e)>-1||/[A-Z]/.test(e))}const Sn={};const Bn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Bn);function Ln(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Sn[e]||"opacity"===e)}const Mn=e=>Boolean(e&&e.getVelocity),Dn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},On=Bn.length;const Wn=e=>t=>"string"==typeof t&&t.startsWith(e),Xn=Wn("--"),Fn=Wn("var(--"),Hn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,zn=(e,t,n)=>Math.min(Math.max(n,e),t),Zn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Yn={...Zn,transform:e=>zn(0,1,e)},Jn={...Zn,default:1},Un=e=>Math.round(1e5*e)/1e5,_n=/(-)?([\d]*\.?[\d])+/g,$n=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Qn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kn(e){return"string"==typeof e}const qn=e=>({test:t=>Kn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),er=qn("deg"),tr=qn("%"),nr=qn("px"),rr=qn("vh"),ir=qn("vw"),or={...tr,parse:e=>tr.parse(e)/100,transform:e=>tr.transform(100*e)},sr={...Zn,transform:Math.round},ar={borderWidth:nr,borderTopWidth:nr,borderRightWidth:nr,borderBottomWidth:nr,borderLeftWidth:nr,borderRadius:nr,radius:nr,borderTopLeftRadius:nr,borderTopRightRadius:nr,borderBottomRightRadius:nr,borderBottomLeftRadius:nr,width:nr,maxWidth:nr,height:nr,maxHeight:nr,size:nr,top:nr,right:nr,bottom:nr,left:nr,padding:nr,paddingTop:nr,paddingRight:nr,paddingBottom:nr,paddingLeft:nr,margin:nr,marginTop:nr,marginRight:nr,marginBottom:nr,marginLeft:nr,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Jn,scaleX:Jn,scaleY:Jn,scaleZ:Jn,skew:er,skewX:er,skewY:er,distance:nr,translateX:nr,translateY:nr,translateZ:nr,x:nr,y:nr,z:nr,perspective:nr,transformPerspective:nr,opacity:Yn,originX:or,originY:or,originZ:nr,zIndex:sr,fillOpacity:Yn,strokeOpacity:Yn,numOctaves:sr};function lr(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Xn(e)){o[e]=n;continue}const r=ar[e],d=Hn(n,r);if(Vn.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):i[e]=d}if(t.transform||(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<On;t++){const n=Bn[t];void 0!==e[n]&&(o+=`${Dn[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}const cr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ur(e,t,n){for(const r in t)Mn(t[r])||Ln(r,n)||(e[r]=t[r])}function dr(e,n,r){const i={};return ur(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return lr(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(i):i}function pr(e,t,n){const r={},i=dr(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const mr=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 hr(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||mr.has(e)}let fr=e=>!hr(e);try{(gr=require("@emotion/is-prop-valid").default)&&(fr=e=>e.startsWith("on")?!hr(e):gr(e))}catch(Jt){}var gr;function br(e,t,n){return"string"==typeof e?e:nr.transform(t+n*e)}const vr={offset:"stroke-dashoffset",array:"stroke-dasharray"},xr={offset:"strokeDashoffset",array:"strokeDasharray"};function yr(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(lr(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${br(t,e.x,e.width)} ${br(n,e.y,e.height)}`}(f,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?vr:xr;e[o.offset]=nr.transform(-r);const s=nr.transform(t),a=nr.transform(n);e[o.array]=`${s} ${a}`}(m,s,a,l,!1)}const Ir=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Cr=e=>"string"==typeof e&&"svg"===e.toLowerCase();function wr(e,n,r,i){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return yr(t,n,{enableHardwareAcceleration:!1},Cr(i),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};ur(t,e.style,e),o.style={...t,...o.style}}return o}function Nr(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Gn(n)?wr:pr)(r,o,s,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(fr(i)||!0===n&&hr(i)||!t&&!hr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:i},{children:u}=r,d=t.useMemo(()=>Mn(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const Ar=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Er(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const jr=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 kr(e,t,n,r){Er(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(jr.has(n)?n:Ar(n),t.attrs[n])}function Tr(e,t){const{style:n}=e,r={};for(const i in n)(Mn(n[i])||t.style&&Mn(t.style[i])||Ln(i,e))&&(r[i]=n[i]);return r}function Pr(e,t){const n=Tr(e,t);for(const r in e)if(Mn(e[r])||Mn(t[r])){n[-1!==Bn.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Rr(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function Gr(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Sr=e=>Array.isArray(e),Br=e=>Sr(e)?e[e.length-1]||0:e;function Vr(e){const t=Mn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Lr=e=>(n,r)=>{const i=t.useContext(cn),o=t.useContext(un),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Mr(r,i,o,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,i,o);return r?s():Gr(s)};function Mr(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=Vr(o[e]);let{initial:s,animate:a}=e;const l=xn(e),c=yn(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!gn(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Rr(e,t);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]})}return i}const Dr={useVisualState:Lr({scrapeMotionValuesFromProps:Pr,createRenderState:Ir,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}yr(n,r,{enableHardwareAcceleration:!1},Cr(t.tagName),e.transformTemplate),kr(t,n)}})},Or={useVisualState:Lr({scrapeMotionValuesFromProps:Tr,createRenderState:cr})};function Wr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Xr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Fr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Hr(e,t,n,r){return Wr(e,t,(e=>t=>Xr(t)&&e(t,Fr(t)))(n),r)}const zr=(e,t)=>n=>t(e(n)),Zr=(...e)=>e.reduce(zr);function Yr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Jr=Yr("dragHorizontal"),Ur=Yr("dragVertical");function _r(e){let t=!1;if("y"===e)t=Ur();else if("x"===e)t=Jr();else{const e=Jr(),n=Ur();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function $r(){const e=_r(!0);return!e||(e(),!1)}class Qr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Kr={delta:0,timestamp:0,isProcessing:!1};let qr=!0,ei=!1;const ti=["read","update","preRender","render","postRender"],ni=ti.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&i,c=l?t:n;return o&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}i=!1,o&&(o=!1,a.process(l))}}};return a}(()=>ei=!0),e),{}),ri=e=>ni[e].process(Kr),ii=e=>{ei=!1,Kr.delta=qr?1e3/60:Math.max(Math.min(e-Kr.timestamp,40),1),Kr.timestamp=e,Kr.isProcessing=!0,ti.forEach(ri),Kr.isProcessing=!1,ei&&(qr=!1,requestAnimationFrame(ii))},oi=ti.reduce((e,t)=>{const n=ni[t];return e[t]=(e,t=!1,r=!1)=>(ei||(ei=!0,qr=!0,Kr.isProcessing||requestAnimationFrame(ii)),n.schedule(e,t,r)),e},{});function si(e){ti.forEach(t=>ni[t].cancel(e))}function ai(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Hr(e.current,n,(n,i)=>{if("touch"===n.type||$r())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&oi.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}const li=(e,t)=>!!t&&(e===t||li(e,t.parentElement)),ci=e=>e;function ui(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fr(n))}const di=new WeakMap,pi=new WeakMap,mi=e=>{const t=di.get(e.target);t&&t(e)},hi=e=>{e.forEach(mi)};function fi(e,t,n){const r=function({root:e,...t}){const n=e||document;pi.has(n)||pi.set(n,{});const r=pi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(hi,{root:e,...t})),r[i]}(t);return di.set(e,n),r.observe(e),()=>{di.delete(e),r.unobserve(e)}}const gi={some:0,all:1};const bi={inView:{Feature:class extends Qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:gi[r]};return fi(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;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 Qr{constructor(){super(...arguments),this.removeStartListeners=ci,this.removeEndListeners=ci,this.removeAccessibleListeners=ci,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Hr(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();oi.update(()=>{li(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=Hr(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zr(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Wr(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Wr(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ui("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&oi.update(()=>n(e,t))})}),ui("down",(e,t)=>{this.startPress(e,t)})}),t=Wr(this.node.current,"blur",()=>{this.isPressing&&ui("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Zr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&oi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$r()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&oi.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Hr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Wr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Qr{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=Zr(Wr(this.node.current,"focus",()=>this.onFocus()),Wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Qr{mount(){this.unmount=Zr(ai(this.node,!0),ai(this.node,!1))}unmount(){}}}};function vi(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function xi(e,t,n){const r=e.getProps();return Rr(r,t,void 0!==n?n:r.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 yi="data-"+Ar("framerAppearId");let Ii=ci,Ci=ci;"production"!==process.env.NODE_ENV&&(Ii=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ci=(e,t)=>{if(!e)throw new Error(t)});const wi=e=>1e3*e,Ni=e=>e/1e3,Ai=!1,Ei=e=>Array.isArray(e)&&"number"==typeof e[0];function ji(e){return Boolean(!e||"string"==typeof e&&Ti[e]||Ei(e)||Array.isArray(e)&&e.every(ji))}const ki=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ti={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ki([0,.65,.55,1]),circOut:ki([.55,0,1,.45]),backIn:ki([.31,.01,.66,-.59]),backOut:ki([.33,1.53,.69,.99])};function Pi(e){if(e)return Ei(e)?ki(e):Array.isArray(e)?e.map(Pi):Ti[e]}const Ri={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Gi={},Si={};for(const e in Ri)Si[e]=()=>(void 0===Gi[e]&&(Gi[e]=Ri[e]()),Gi[e]);const Bi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Vi(e,t,n,r){if(e===t&&n===r)return ci;const i=t=>function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=Bi(s,r,i)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Bi(i(e),t,r)}const Li=Vi(.42,0,1,1),Mi=Vi(0,0,.58,1),Di=Vi(.42,0,.58,1),Oi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wi=e=>t=>1-e(1-t),Xi=e=>1-Math.sin(Math.acos(e)),Fi=Wi(Xi),Hi=Oi(Fi),zi=Vi(.33,1.53,.69,.99),Zi=Wi(zi),Yi=Oi(Zi),Ji={linear:ci,easeIn:Li,easeInOut:Di,easeOut:Mi,circIn:Xi,circInOut:Hi,circOut:Fi,backIn:Zi,backInOut:Yi,backOut:zi,anticipate:e=>(e*=2)<1?.5*Zi(e):.5*(2-Math.pow(2,-10*(e-1)))},Ui=e=>{if(Array.isArray(e)){Ci(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Vi(t,n,r,i)}return"string"==typeof e?(Ci(void 0!==Ji[e],`Invalid easing type '${e}'`),Ji[e]):e},_i=(e,t)=>n=>Boolean(Kn(n)&&Qn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$i=(e,t,n)=>r=>{if(!Kn(r))return r;const[i,o,s,a]=r.match(_n);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Qi={...Zn,transform:e=>Math.round((e=>zn(0,255,e))(e))},Ki={test:_i("rgb","red"),parse:$i("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qi.transform(e)+", "+Qi.transform(t)+", "+Qi.transform(n)+", "+Un(Yn.transform(r))+")"};const qi={test:_i("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Ki.transform},eo={test:_i("hsl","hue"),parse:$i("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tr.transform(Un(t))+", "+tr.transform(Un(n))+", "+Un(Yn.transform(r))+")"},to={test:e=>Ki.test(e)||qi.test(e)||eo.test(e),parse:e=>Ki.test(e)?Ki.parse(e):eo.test(e)?eo.parse(e):qi.parse(e),transform:e=>Kn(e)?e:e.hasOwnProperty("red")?Ki.transform(e):eo.transform(e)},no=(e,t,n)=>-n*e+n*t+e;function ro(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 io=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},oo=[qi,Ki,eo];function so(e){const t=(n=e,oo.find(e=>e.test(n)));var n;Ci(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===eo&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=ro(a,r,e+1/3),o=ro(a,r,e),s=ro(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const ao=(e,t)=>{const n=so(e),r=so(t),i={...n};return e=>(i.red=io(n.red,r.red,e),i.green=io(n.green,r.green,e),i.blue=io(n.blue,r.blue,e),i.alpha=no(n.alpha,r.alpha,e),Ki.transform(i))};const lo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:ci},co={regex:$n,countKey:"Colors",token:"${c}",parse:to.parse},uo={regex:_n,countKey:"Numbers",token:"${n}",parse:Zn.parse};function po(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function mo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&po(n,lo),po(n,co),po(n,uo),n}function ho(e){return mo(e).values}function fo(e){const{values:t,numColors:n,numVars:r,tokenised:i}=mo(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(lo.token,e[i]):i<r+n?t.replace(co.token,to.transform(e[i])):t.replace(uo.token,Un(e[i]));return t}}const go=e=>"number"==typeof e?0:e;const bo={test:function(e){var t,n;return isNaN(e)&&Kn(e)&&((null===(t=e.match(_n))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($n))||void 0===n?void 0:n.length)||0)>0},parse:ho,createTransformer:fo,getAnimatableNone:function(e){const t=ho(e);return fo(e)(t.map(go))}},vo=(e,t)=>n=>`${n>0?t:e}`;function xo(e,t){return"number"==typeof e?n=>no(e,t,n):to.test(e)?ao(e,t):e.startsWith("var(")?vo(e,t):Co(e,t)}const yo=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>xo(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Io=(e,t)=>{const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=xo(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Co=(e,t)=>{const n=bo.createTransformer(t),r=mo(e),i=mo(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Zr(yo(r.values,i.values),n):(Ii(!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.`),vo(e,t))},wo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},No=(e,t)=>n=>no(e,t,n);function Ao(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?No:"string"==typeof o?to.test(o)?ao:Co:Array.isArray(o)?yo:"object"==typeof o?Io:No);var o;const s=e.length-1;for(let n=0;n<s;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||ci:t;o=Zr(e,o)}r.push(o)}return r}function Eo(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ci(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 s=Ao(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=wo(e[n],e[n+1],t);return s[n](r)};return n?t=>l(zn(e[0],e[o-1],t)):l}function jo(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=wo(0,t,r);e.push(no(n,1,i))}}(t,e.length-1),t}function ko({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ui):Ui(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:jo(t),e),a=Eo(s,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||Di).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function To(e,t){return t?e*(1e3/t):0}function Po(e,t,n){const r=Math.max(t-5,0);return To(n-e(r),t-r)}const Ro=.001;function Go({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ii(e<=wi(10),"Spring duration must be 10 seconds or less");let s=1-t;s=zn(.05,1,s),e=zn(.01,10,Ni(e)),s<1?(i=t=>{const r=t*s,i=r*e,o=r-n,a=Bo(t,s),l=Math.exp(-i);return Ro-o/a*l},o=t=>{const r=t*s*e,o=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Bo(Math.pow(t,2),s);return(-i(t)+Ro>0?-1:1)*((o-a)*l)/c}):(i=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 r=n;for(let n=1;n<So;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=wi(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const So=12;function Bo(e,t){return e*Math.sqrt(1-t*t)}const Vo=["duration","bounce"],Lo=["stiffness","damping","mass"];function Mo(e,t){return t.some(t=>void 0!==e[t])}function Do({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mo(e,Lo)&&Mo(e,Vo)){const n=Go(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Ni(u):0,h=l/(2*Math.sqrt(a*c)),f=o-i,g=Ni(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Bo(g,h);v=t=>{const n=Math.exp(-h*g*t);return o-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return o-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let i=m;0!==e&&(i=h<1?Po(v,e,r):0);const a=Math.abs(i)<=n,l=Math.abs(o-r)<=t;s.done=a&&l}return s.value=s.done?o:r,s}}}function Oo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,I=Do({keyframes:[p.value,m(p.value)],velocity:Po(v,e,p.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?I.next(e-y):(!t&&x(e),p)}}}const Wo=e=>{const t=({timestamp:t})=>e(t);return{start:()=>oi.update(t,!0),stop:()=>si(t),now:()=>Kr.isProcessing?Kr.timestamp:performance.now()}};function Xo(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 Fo={decay:Oo,inertia:Oo,tween:ko,keyframes:ko,spring:Do};function Ho({autoplay:e=!0,delay:t=0,driver:n=Wo,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=Fo[i]||ko;let y;x!==ko&&"number"!=typeof r[0]&&(y=Eo([0,100],r,{clamp:!1}),r=[0,100]);const I=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",N=null,A=null,E=null;null===I.calculatedDuration&&o&&(I.calculatedDuration=Xo(I));const{calculatedDuration:j}=I;let k=1/0,T=1/0;null!==j&&(k=j+s,T=k*(o+1)-s);let P=0;const R=e=>{if(null===A)return;f>0&&(A=Math.min(A,e)),P=null!==N?N:(e-A)*f;const n=P-t,i=n<0;P=Math.max(n,0),"finished"===w&&null===N&&(P=T);let l=P,c=I;if(o){const e=P/k;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/k)):"mirror"===a&&(c=C));let i=zn(0,1,n);P>T&&(i="reverse"===a&&r?1:0),l=i*k}const u=i?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;i||null===j||(p=P>=T);const m=null===N&&("finished"===w||"running"===w&&p||f<0&&P<=0);return d&&d(u.value),m&&B(),u},G=()=>{v&&v.stop(),v=void 0},S=()=>{w="idle",G(),b(),A=E=null},B=()=>{w="finished",u&&u(),G(),b()},V=()=>{if(g)return;v||(v=n(R));const e=v.now();l&&l(),null!==N?A=e-N:A&&"finished"!==w||(A=e),E=A,N=null,w="running",v.start()};e&&V();const L={then:(e,t)=>h.then(e,t),get time(){return Ni(P)},set time(e){e=wi(e),P=e,null===N&&v&&0!==f?A=v.now()-e/f:N=e},get duration(){const e=null===I.calculatedDuration?Xo(I):I.calculatedDuration;return Ni(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,L.time=Ni(P))},get state(){return w},play:V,pause:()=>{w="paused",N=P},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),S())},cancel:()=>{null!==E&&R(E),S()},complete:()=>{w="finished"},sample:e=>(A=0,R(e))};return L}const zo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Zo(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Si.waapi()&&zo.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const l=()=>{s=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!ji(t.ease))(t,i)){const e=Ho({...i,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Pi(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{oi.update(h),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,i)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Ni(m.currentTime||0)},set time(e){m.currentTime=wi(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Ni(u)},play:()=>{a||(m.play(),si(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Ho({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Yo={type:"spring",stiffness:500,damping:25,restSpeed:10},Jo={type:"keyframes",duration:.8},Uo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_o=(e,{keyframes:t})=>t.length>2?Jo:Vn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Yo:Uo,$o=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!bo.test(t)&&"0"!==t||t.startsWith("url("))),Qo=new Set(["brightness","contrast","saturate","opacity"]);function Ko(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(_n)||[];if(!r)return e;const i=n.replace(r,"");let o=Qo.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qo=/([a-z-]*)\(.*?\)/g,es={...bo,getAnimatableNone:e=>{const t=e.match(qo);return t?t.map(Ko).join(" "):e}},ts={...ar,color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:es,WebkitFilter:es},ns=e=>ts[e];function rs(e,t){let n=ns(e);return n!==es&&(n=bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const is=e=>/^0[^.\s]+$/.test(e);function os(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||is(e):void 0}function ss(e,t){return e[t]||e.default||e}const as=(e,t,n,r={})=>i=>{const o=ss(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=wi(s);const l=function(e,t,n,r){const i=$o(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?s:o[e-1]),os(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(i&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=rs(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=$o(e,c),p=$o(e,u);Ii(d===p,`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:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,..._o(e,m)}),m.duration&&(m.duration=wi(m.duration)),m.repeatDelay&&(m.repeatDelay=wi(m.repeatDelay)),!d||!p||Ai||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ci,pause:ci,stop:ci,then:e=>(e(),Promise.resolve()),cancel:ci,complete:ci});return t?Ho({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Zo(t,e,m);if(n)return n}return Ho(m)};function ls(e){return Boolean(Mn(e)&&e.add)}const cs=e=>/^\-?\d*\.?\d+$/.test(e);function us(e,t){-1===e.indexOf(t)&&e.push(t)}function ds(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ps{constructor(){this.subscriptions=[]}add(e){return us(this.subscriptions,e),()=>ds(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ms=new Set;function hs(e,t,n){e||ms.has(t)||(console.warn(t),ms.add(t))}class fs{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:r}=Kr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,oi.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=()=>oi.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&&hs(!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 ps);const n=this.events[e].add(t);return"change"===e?()=>{n(),oi.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?To(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 gs(e,t){return new fs(e,t)}const bs=e=>t=>t.test(e),vs=[Zn,nr,tr,er,ir,rr,{test:e=>"auto"===e,parse:e=>e}],xs=e=>vs.find(bs(e)),ys=[...vs,to,bo],Is=e=>ys.find(bs(e));function Cs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gs(n))}function ws(e,t){if(!t)return;return(t[e]||t.default||t).from}function Ns({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function As(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const t in a){const r=e.getValue(t),i=a[t];if(!r||void 0===i||u&&Ns(u,t))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[yi];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,oi))}r.start(as(t,r,i,e.shouldReduceMotion&&Vn.has(t)?{type:!1}:s));const d=r.animation;ls(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=xi(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const t in o)Cs(e,t,Br(o[t]))}(e,s)}),c}function Es(e,t,n={}){const r=xi(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(As(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(js).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Es(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function js(e,t){return e.sortNodePosition(t)}const ks=[...bn].reverse(),Ts=bn.length;function Ps(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Es(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Es(e,t,n);else{const i="function"==typeof t?xi(e,t,n.custom):t;r=Promise.all(As(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Rs(e){let t=Ps(e);const n={animate:Ss(!0),whileInView:Ss(),whileHover:Ss(),whileTap:Ss(),whileDrag:Ss(),whileFocus:Ss(),exit:Ss()};let r=!0;const i=(t,n)=>{const r=xi(e,n);if(r){const{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Ts;t++){const m=ks[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=fn(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||gn(f)||"boolean"==typeof f)continue;const x=Gs(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(f)?f:[f];let C=I.reduce(i,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,N={...w,...C},A=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in N){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Sr(t)&&Sr(n)?!vi(t,n)||x?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):u.add(e):void 0!==t&&u.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...I.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(i,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Gs(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!vi(t,e)}function Ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Bs=0;const Vs={animation:{Feature:class extends Qr{constructor(e){super(e),e.animationState||(e.animationState=Rs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),gn(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 Qr{constructor(){super(...arguments),this.id=Bs++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ls=(e,t)=>Math.abs(e-t);class Ms{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=Ws(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ls(e.x,t.x),r=Ls(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=Kr;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ds(t,this.transformPagePoint),oi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=Ws("pointercancel"===e.type?this.lastMoveEventInfo:Ds(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Xr(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ds(Fr(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=Kr;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=t;s&&s(e,Ws(r,this.history)),this.removeListeners=Zr(Hr(window,"pointermove",this.handlePointerMove),Hr(window,"pointerup",this.handlePointerUp),Hr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),si(this.updatePoint)}}function Ds(e,t){return t?{point:t(e.point)}:e}function Os(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ws({point:e},t){return{point:e,delta:Os(e,Fs(t)),offset:Os(e,Xs(t)),velocity:Hs(t,.1)}}function Xs(e){return e[0]}function Fs(e){return e[e.length-1]}function Hs(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fs(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wi(t)));)n--;if(!r)return{x:0,y:0};const o=Ni(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zs(e){return e.max-e.min}function Zs(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ys(e,t,n,r=.5){e.origin=r,e.originPoint=no(t.min,t.max,e.origin),e.scale=zs(n)/zs(t),(Zs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=no(n.min,n.max,e.origin)-e.originPoint,(Zs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Js(e,t,n,r){Ys(e.x,t.x,n.x,r?r.originX:void 0),Ys(e.y,t.y,n.y,r?r.originY:void 0)}function Us(e,t,n){e.min=n.min+t.min,e.max=e.min+zs(t)}function _s(e,t,n){e.min=t.min-n.min,e.max=e.min+zs(t)}function $s(e,t,n){_s(e.x,t.x,n.x),_s(e.y,t.y,n.y)}function Qs(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 Ks(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const qs=.35;function ea(e,t,n){return{min:ta(e,t),max:ta(e,n)}}function ta(e,t){return"number"==typeof e?e:e[t]||0}const na=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ra(e){return[e("x"),e("y")]}function ia({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oa(e){return void 0===e||1===e}function sa({scale:e,scaleX:t,scaleY:n}){return!oa(e)||!oa(t)||!oa(n)}function aa(e){return sa(e)||la(e)||e.z||e.rotate||e.rotateX||e.rotateY}function la(e){return ca(e.x)||ca(e.y)}function ca(e){return e&&"0%"!==e}function ua(e,t,n){return n+t*(e-n)}function da(e,t,n,r,i){return void 0!==i&&(e=ua(e,i,r)),ua(e,n,r)+t}function pa(e,t=0,n=1,r,i){e.min=da(e.min,t,n,r,i),e.max=da(e.max,t,n,r,i)}function ma(e,{x:t,y:n}){pa(e.x,t.translate,t.scale,t.originPoint),pa(e.y,n.translate,n.scale,n.originPoint)}function ha(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fa(e,t){e.min=e.min+t,e.max=e.max+t}function ga(e,t,[n,r,i]){const o=void 0!==t[i]?t[i]:.5,s=no(e.min,e.max,o);pa(e,t[n],t[r],s,t.scale)}const ba=["x","scaleX","originX"],va=["y","scaleY","originY"];function xa(e,t){ga(e.x,t,ba),ga(e.y,t,va)}function ya(e,t){return ia(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Ia=new WeakMap;class Ca{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 Ms(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Fr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_r(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),ra(e=>{let t=this.getAxisMotionValue(e).get()||0;if(tr.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=zs(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&oi.update(()=>i(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&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}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),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:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&oi.update(()=>i(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:r}=this.getProps();if(!n||!wa(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?no(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?no(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&hn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:Qs(e.x,n,i),y:Qs(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=qs){return!1===e?e=0:!0===e&&(e=qs),{x:ea(e,"left","right"),y:ea(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ra(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||!hn(e))return!1;const n=e.current;Ci(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=ya(e,n),{scroll:i}=t;return i&&(fa(r.x,i.offset.x),fa(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Ks(e.x,t.x),y:Ks(e.y,t.y)}}(r.layout.layoutBox,i);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=ia(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=ra(s=>{if(!wa(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(as(e,n,0,t))}stopAnimation(){ra(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ra(t=>{const{drag:n}=this.getProps();if(!wa(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-no(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!hn(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ra(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=zs(e),i=zs(t);return i>r?n=wo(t.min,t.max-r,e.min):r>i&&(n=wo(e.min,e.max-i,t.min)),zn(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ra(t=>{if(!wa(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(no(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;Ia.set(this.visualElement,this);const e=Hr(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();hn(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=Wr(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ra(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=qs,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function wa(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Na=e=>(t,n)=>{e&&oi.update(()=>e(t,n))};const Aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ea(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ja={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!nr.test(e))return e;e=parseFloat(e)}return`${Ea(e,t.target.x)}% ${Ea(e,t.target.y)}%`}},ka={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=bo.parse(e);if(i.length>5)return r;const o=bo.createTransformer(e),s="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=no(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=c),"number"==typeof i[3+s]&&(i[3+s]/=c),o(i)}};class Ta extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Ra,Object.assign(Sn,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Aa.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||oi.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:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pa(e){const[n,r]=function(){const e=t.useContext(un);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=t.useId();return t.useEffect(()=>i(o),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=t.useContext(An);return l.default.createElement(Ta,{...e,layoutGroup:i,switchLayoutGroup:t.useContext(En),isPresent:n,safeToRemove:r})}const Ra={borderRadius:{...ja,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomLeftRadius:ja,borderBottomRightRadius:ja,boxShadow:ka},Ga=["TopLeft","TopRight","BottomLeft","BottomRight"],Sa=Ga.length,Ba=e=>"string"==typeof e?parseFloat(e):e,Va=e=>"number"==typeof e||nr.test(e);function La(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ma=Oa(0,.5,Fi),Da=Oa(.5,.95,ci);function Oa(e,t,n){return r=>r<e?0:r>t?1:n(wo(e,t,r))}function Wa(e,t){e.min=t.min,e.max=t.max}function Xa(e,t){Wa(e.x,t.x),Wa(e.y,t.y)}function Fa(e,t,n,r,i){return e=ua(e-=t,1/n,r),void 0!==i&&(e=ua(e,1/i,r)),e}function Ha(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){tr.test(t)&&(t=parseFloat(t),t=no(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=no(o.min,o.max,r);e===o&&(a-=t),e.min=Fa(e.min,t,n,a,i),e.max=Fa(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const za=["x","scaleX","originX"],Za=["y","scaleY","originY"];function Ya(e,t,n,r){Ha(e.x,t,za,n?n.x:void 0,r?r.x:void 0),Ha(e.y,t,Za,n?n.y:void 0,r?r.y:void 0)}function Ja(e){return 0===e.translate&&1===e.scale}function Ua(e){return Ja(e.x)&&Ja(e.y)}function _a(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 $a(e){return zs(e.x)/zs(e.y)}class Qa{constructor(){this.members=[]}add(e){us(this.members,e),e.scheduleRender()}remove(e){if(ds(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:r}=e.options;!1===r&&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 Ka(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const qa=(e,t)=>e.depth-t.depth;class el{constructor(){this.children=[],this.isDirty=!1}add(e){us(this.children,e),this.isDirty=!0}remove(e){ds(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qa),this.isDirty=!1,this.children.forEach(e)}}const tl=["","X","Y","Z"];let nl=0;const rl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=nl++,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;rl.totalNodes=rl.resolvedTargetDeltas=rl.recalculatedProjection=0,this.nodes.forEach(al),this.nodes.forEach(hl),this.nodes.forEach(fl),this.nodes.forEach(ll),e=rl,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 el)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ps),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 r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(si(r),e(o-t))};return oi.read(r,!0),()=>si(r)}(r,250),Aa.hasAnimatedSinceResize&&(Aa.hasAnimatedSinceResize=!1,this.nodes.forEach(ml))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||Il,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!_a(this.targetLayout,r)||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={...ss(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,si(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(gl),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 r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(ul);this.isUpdating||this.nodes.forEach(dl),this.isUpdating=!1,this.nodes.forEach(pl),this.nodes.forEach(ol),this.nodes.forEach(sl),this.clearAllSnapshots();const e=performance.now();Kr.delta=zn(0,1e3/60,e-Kr.timestamp),Kr.timestamp=e,Kr.isProcessing=!0,ni.update.process(Kr),ni.preRender.process(Kr),ni.render.process(Kr),Kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(cl),this.sharedNodes.forEach(bl)}scheduleUpdateProjection(){oi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){oi.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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ua(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||aa(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Cl((r=n).x),Cl(r.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&&(fa(t.x,n.offset.x),fa(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xa(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){Xa(t,e);const{scroll:n}=this.root;n&&(fa(t.x,-n.offset.x),fa(t.y,-n.offset.y))}fa(t.x,i.offset.x),fa(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xa(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&xa(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),aa(r.latestValues)&&xa(n,r.latestValues)}return aa(this.latestValues)&&xa(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xa(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!aa(n.latestValues))continue;sa(n.latestValues)&&n.updateSnapshot();const r=na();Xa(r,n.measurePageBox()),Ya(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return aa(this.latestValues)&&Ya(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!==Kr.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 r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Kr.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}},$s(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,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(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Us(s.x,a.x,l.x),Us(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xa(this.target,this.layout.layoutBox),ma(this.target,this.targetDelta)):Xa(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}},$s(this.relativeTargetOrigin,this.target,e.target),Xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!sa(this.parent.latestValues)&&!la(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 r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Kr.timestamp&&(r=!1),r)return;const{layout:i,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||!i&&!o)return;Xa(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,s;t.x=t.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xa(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ma(e,s)),r&&aa(o.latestValues)&&xa(e,o.latestValues))}t.x=ha(t.x),t.y=ha(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;Js(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ka(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rl.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,r=n?n.latestValues:{},i={...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 s={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(yl));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;vl(o.x,e.x,n),vl(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($s(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){xl(e.x,t.x,n.x,r),xl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&_a(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Xa(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=no(0,void 0!==n.opacity?n.opacity:1,Ma(r)),e.opacityExit=no(void 0!==t.opacity?t.opacity:1,0,Da(r))):o&&(e.opacity=no(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Sa;i++){const o=`border${Ga[i]}Radius`;let s=La(t,o),a=La(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Va(s)===Va(a)?(e[o]=Math.max(no(Ba(s),Ba(a),r),0),(tr.test(a)||tr.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=no(t.rotate||0,n.rotate||0,r))}(i,r,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&&(si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oi.update(()=>{Aa.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Mn(e)?e:gs(e);return r.start(as("",r,t,n)),r.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:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&wl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=zs(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=zs(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Xa(t,n),xa(t,i),Js(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qa);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 r=this.getStack();r&&r.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 r={};for(let t=0;t<tl.length;t++){const i="rotate"+tl[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Vr(e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;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=Vr(e.pointerEvents)||""),this.hasProjected&&!aa(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=Ka(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Sn){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Sn[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?Vr(e.pointerEvents)||"":"none"),r}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(ul),this.root.sharedNodes.clear()}}}function ol(e){e.updateLayout()}function sl(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:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?ra(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=zs(r);r.min=t[e].min,r.max=r.min+i}):wl(i,n.layoutBox,t)&&ra(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=zs(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Js(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Js(a,e.applyTransform(r,!0),n.measuredBox):Js(a,t,n.layoutBox);const l=!Ua(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};$s(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};$s(a,t,o.layoutBox),_a(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function al(e){rl.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 ll(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cl(e){e.clearSnapshot()}function ul(e){e.clearMeasurements()}function dl(e){e.isLayoutDirty=!1}function pl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ml(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hl(e){e.resolveTargetDelta()}function fl(e){e.calcProjection()}function gl(e){e.resetRotation()}function bl(e){e.removeLeadSnapshot()}function vl(e,t,n){e.translate=no(t.translate,0,n),e.scale=no(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xl(e,t,n,r){e.min=no(t.min,n.min,r),e.max=no(t.max,n.max,r)}function yl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Il={duration:.45,ease:[.4,0,.1,1]};function Cl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Zs($a(t),$a(n),.2)}const Nl=il({attachResizeListener:(e,t)=>Wr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Al={current:void 0},El=il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Al.current){const e=new Nl({});e.mount(window),e.setOptions({layoutScroll:!0}),Al.current=e}return Al.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),jl={pan:{Feature:class extends Qr{constructor(){super(...arguments),this.removePointerDownListener=ci}onPointerDown(e){this.session=new Ms(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Na(e),onStart:Na(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&oi.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Hr(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 Qr{constructor(e){super(e),this.removeGroupControls=ci,this.removeListeners=ci,this.controls=new Ca(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ci}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:El,MeasureLayout:Pa}},kl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Tl(e,t,n=1){Ci(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=kl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Fn(i)?Tl(i,t,n+1):i}const Pl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rl=e=>Pl.has(e),Gl=e=>e===Zn||e===nr,Sl=(e,t)=>parseFloat(e.split(", ")[t]),Bl=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Sl(i[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Sl(t[1],e):0}},Vl=new Set(["x","y","z"]),Ll=Bn.filter(e=>!Vl.has(e));const Ml={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:Bl(4,13),y:Bl(5,14)},Dl=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Rl);let o=[],s=!1;const a=[];if(i.forEach(i=>{const l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],u=xs(c);const d=t[i];let p;if(Sr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=xs(c);for(let n=t;n<e&&null!==d[n];n++)p?Ci(xs(d[n])===p,"All keyframes must be of the same type"):(p=xs(d[n]),Ci(p===u||Gl(u)&&Gl(p),"Keyframes must be of the same dimension as the current value"))}else p=xs(d);if(u!==p)if(Gl(u)&&Gl(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&p===nr&&(t[i]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[i]=u.transform(d):(s||(o=function(e){const t=[];return Ll.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Ml[e](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Ml[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),dn&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:t,transitionEnd:r}};function Ol(e,t,n,r){return(e=>Object.keys(e).some(Rl))(t)?Dl(e,t,n,r):{target:t,transitionEnd:r}}const Wl=(e,t,n,r)=>{const i=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Fn(t))return;const n=Tl(t,r);n&&e.set(n)});for(const e in t){const i=t[e];if(!Fn(i))continue;const o=Tl(i,r);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=i))}return{target:t,transitionEnd:n}}(e,t,r);return Ol(e,t=i.target,n,r=i.transitionEnd)},Xl={current:null},Fl={current:!1};function Hl(){if(Fl.current=!0,dn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xl.current=e.matches;e.addListener(t),t()}else Xl.current=!1}const zl=new WeakMap,Zl=Object.keys(Nn),Yl=Zl.length,Jl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ul=vn.length;class _l{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},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=()=>oi.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=xn(t),this.isVariantNode=yn(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!==s[e]&&Mn(t)&&(t.set(s[e],!1),ls(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,zl.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)),Fl.current||Hl(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xl.current),"production"!==process.env.NODE_ENV&&hs(!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(){zl.delete(this.current),this.projection&&this.projection.unmount(),si(this.notifyUpdate),si(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=Vn.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&oi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&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?Ii(!1,e):Ci(!1,e)}for(let e=0;e<Yl;e++){const n=Zl[e],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=Nn[n];a&&(o=a),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&hn(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}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<Jl.length;t++){const n=Jl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Mn(o))e.addValue(i,o),ls(r)&&r.add(i),"development"===process.env.NODE_ENV&&hs("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Mn(s))e.addValue(i,gs(o,{owner:e})),ls(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,gs(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);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<Ul;e++){const n=vn[e],r=this.props[n];(fn(r)||!1===r)&&(t[n]=r)}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=gs(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,r="string"==typeof n||"object"==typeof n?null===(t=Rr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Mn(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ps),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class $l extends _l{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:r},i){let o=function(e,t,n){const r={};for(const i in e){const e=ws(i,t);if(void 0!==e)r[i]=e;else{const e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;const o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){const s=o[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==i?i:t[s]),null!=c&&("string"==typeof c&&(cs(c)||is(c))?c=parseFloat(c):!Is(c)&&bo.test(l)&&(c=rs(s,l)),e.addValue(s,gs(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,o);const e=Wl(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ql extends $l{readValueFromInstance(e,t){if(Vn.has(t)){const e=ns(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(Xn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ya(e,t)}build(e,t,n,r){lr(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Tr(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Mn(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Er(e,t,n,r)}}class Kl extends $l{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vn.has(t)){const e=ns(t);return e&&e.default||0}return t=jr.has(t)?t:Ar(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Pr(e,t)}build(e,t,n,r){yr(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){kr(e,t,0,r)}mount(e){this.isSVGTag=Cr(e.tagName),super.mount(e)}}const ql=(e,t)=>Gn(e)?new Kl(t,{enableHardwareAcceleration:!1}):new Ql(t,{enableHardwareAcceleration:!0}),ec={...Vs,...bi,...jl,...{layout:{ProjectionNode:El,MeasureLayout:Pa}}},tc=Pn((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Gn(e)?Dr:Or,preloadedFeatures:n,useRender:Nr(t),createVisualElement:r,Component:e}}(e,t,ec,ql));function nc(){const e=t.useRef(!1);return pn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class rc extends l.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ic({children:e,isPresent:n}){const r=t.useId(),i=t.useRef(null),o=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=o.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(rc,{isPresent:n,childRef:i,sizeRef:o},l.cloneElement(e,{ref:i}))}const oc=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:a})=>{const c=Gr(sc),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),"popLayout"===a&&(e=l.createElement(ic,{isPresent:r},e)),l.createElement(un.Provider,{value:d},e)};function sc(){return new Map}const ac=e=>e.key||"";const lc=({children:e,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Ci(!o,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(An).forceRender||function(){const e=nc(),[n,r]=t.useState(0),i=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>oi.postRender(i),[i]),n]}()[0],u=nc(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(pn(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=ac(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return l.createElement(l.Fragment,null,p.map(e=>l.createElement(oc,{key:ac(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:a},e)));p=[...p];const v=h.current.map(ac),x=d.map(ac),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===a&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const o=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),i&&i()}};g=l.createElement(oc,{key:ac(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:a},r),m.set(t,g)}p.splice(o,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(oc,{key:ac(e),isPresent:!0,presenceAffectsLayout:s,mode:a},e)}),"production"!==process.env.NODE_ENV&&"wait"===a&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),l.createElement(l.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function cc(){!Fl.current&&Hl();const[e]=t.useState(Xl.current);return"production"!==process.env.NODE_ENV&&hs(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const uc={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}},pop:{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.15}}};function dc({children:t,animationType:n,disableAnimation:r=!0,whileHover:i,whileTap:o,transition:s,...a}){const c=cc(),u=l.default.Children.only(t);if(r||c)return u;const d=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=uc[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),p=d?{...d.whileHover,...i}:i,m=(null==d?void 0:d.whileTap)||o?{...null==d?void 0:d.whileTap,...o}:void 0,h=d?{...d.transition,...s}:s;if("string"==typeof u.type){const t=tc[u.type];return e.jsx(t,{...u.props,whileHover:p,whileTap:m,transition:h,...a})}return e.jsx(tc.div,{whileHover:p,whileTap:m,transition:h,...a,children:u})}dc.displayName="AnimationWrapper";const pc={cream500:"bg-[#FFFEEF]",gray100:"bg-fill-secondary",white:"bg-white",transparent:"",blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",yellow:"bg-[#F5FF1E]"},mc={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},hc={1:"lg:w-full",2:"lg:w-[calc(50%-0.75rem)]",3:"lg:w-[calc(33.333%-1rem)]",4:"lg:w-[calc(25%-1.125rem)]",5:"lg:w-[calc(20%-1.2rem)]",6:"lg:w-[calc(16.666%-1.25rem)]"},fc=e=>Math.max(1,Math.min(6,e)),gc=t.forwardRef(({as:t,className:n="",...r},i)=>{const o=Ae(n);if(t){const n=t;return e.jsx(n,{ref:i,className:o,...r})}return e.jsx("img",{ref:i,className:o,...r})});gc.displayName="Image";const bc=({onSelect:n,speed:r,isSelected:i=!1,renderCheckPlans:o,iconSize:s=24,iconClassName:a,cta:l,techType:c,isMax:u})=>{const[d,p]=t.useState(!1),m=`btn-medium rounded-button 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?" 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"} `,h=null==o?void 0:o({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(Wt,{onClick:()=>{p(!0),n()},className:Ae(m,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx(Rt,{className:Ae(a,i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),h]})},vc=({planName:n,planSubtext:r,speed:i,price:o,description:s,bestValue:a=!1,bestValueText:l="best value",giftBadge:c,innerBadge:u,theme:d="light",featuresTitle:p="Business Ready Internet features",features:m=[],isExpanded:h,onToggleExpand:f,onCtaClick:g,renderCheckPlans:b,cta:v,techType:x,ismaxSpeed:y})=>{const[I,C]=t.useState(!1),w=void 0!==h?h:I,N="dark"===d;return e.jsxs("article",{className:Ae("relative flex h-full w-full max-w-[392px] flex-col",!a&&"md:pt-[38px]"),children:[a&&e.jsx("div",{className:"label3 rounded-t-[20px] bg-bg-fill-brand-accent px-6 py-2 text-center text-text",children:l}),e.jsxs("div",{className:Ae("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",N?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",a?"rounded-t-none border-t-0":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Gt,{as:"h3",className:Ae("subheading2",N?"text-text-accent-on-bg-inverse":"text-text-brand"),children:n}),e.jsx(Gt,{as:"p",className:"label3 text-wrap "+(N?"text-text-accent-on-bg-inverse":"text-text-brand"),children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(Gt,{as:"span",className:Ae("label2 mr-1 mt-[2px]",N?"text-text-inverse":"text-text"),children:"$"}),e.jsx(Gt,{as:"span",className:Ae("subheading6",N?"text-text-inverse":"text-text"),children:o.split(".")[0]}),e.jsxs(Gt,{as:"span",className:Ae("label2",N?"text-text-inverse":"text-text"),children:[o.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Gt,{className:Ae("body2",N?"text-text-inverse":"text-text"),children:s})}),(null==c?void 0:c.length)?e.jsx("div",{className:Ae("flex-col items-center rounded-surface-sm p-2",N?"bg-bg-surface-inverse":"bg-bg-surface-info"),children:null==c?void 0:c.map(t=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gc,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Gt,{as:"div",className:Ae("body3",N?"text-text-inverse":"text-text"),children:t.title})]},t.title))}):null,e.jsx(bc,{onSelect:g,speed:i,isSelected:N,renderCheckPlans:b,cta:v,iconSize:40,techType:x,isMax:y}),m.length>0&&e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsxs(Wt,{onClick:()=>{f?f():C(!I)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(Gt,{as:"h4",className:Ae("label3",N?"text-text-inverse":"text-text"),children:p}),e.jsx(Rt,{name:"keyboard_arrow_down",fill:1,size:24,className:Ae("transition-transform duration-300",w&&"rotate-180",N?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ae("overflow-hidden transition-all duration-200 ease-in-out",w?"opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col",children:e.jsx(St,{items:m,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:N?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:""+(N?"text-text-inverse":"text-text")})}),(null==u?void 0:u.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(gc,{src:u.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"footnote text-text",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(Gt,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},xc=({title:t,quote:n,rating:r,author:i,role:o,avatarUrl:s,isActive:a=!1,className:l})=>e.jsxs("figure",{className:m("flex w-full flex-col gap-6 rounded-card-lg p-6 transition-all duration-300 md:gap-10 md:p-14",a?"bg-bg-surface-secondary shadow-drop":"bg-gray-50 opacity-40",l),children:[e.jsxs("div",{className:"flex flex-col justify-start gap-3 md:gap-5",children:[e.jsx("header",{children:e.jsx(Gt,{as:"h3",className:"label1 text-text",children:t})}),e.jsx("blockquote",{className:"body1 text-text",children:n}),r?e.jsx("div",{className:"flex","aria-label":`Rating: ${r} out of 5`,children:[...Array(5)].map((t,n)=>e.jsx(Rt,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),i&&e.jsxs("figcaption",{className:"flex gap-3 md:gap-5",children:[e.jsx("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e.jsx(u.default,{src:s,alt:i,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:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:i}),e.jsx(Gt,{as:"p",className:"body3 text-text",children:o})]})]})]});function yc({fields:n,renderCheckPlans:r,isVisible:i=!0}){var o,s,a,l;const c=(null===(a=null===(s=null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||void 0===s?void 0:s[0])||void 0===a?void 0:a.benefitsExpanded)||!1,[u,d]=t.useState(c),[p,m]=t.useState({}),[h,f]=t.useState(0),g=(null===(l=null==n?void 0:n.items)||void 0===l?void 0:l.items)||[],b=g.length>2,v=!1!==(null==n?void 0:n.showArrows)&&b,x=t.useRef([]),y=t.useCallback(()=>{b&&f(e=>(e-1+g.length)%g.length)},[b,g.length]),I=t.useCallback(()=>{b&&f(e=>(e+1)%g.length)},[b,g.length]);if(t.useEffect(()=>{if(!b||!i)return;const e=()=>{const e=x.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)},[b,i,u,g.length]),!g.length&&!(null==n?void 0:n.title))return null;const C=(t,n,i=!1)=>{var o,s,a,l,c,h,f,g;const b=null===(o=null==t?void 0:t.speed)||void 0===o?void 0:o.split("|"),v=(null==b?void 0:b[0])||"",y=(null==b?void 0:b[1])||"",I=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${I}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],N=(null==t?void 0:t.highlighted)||!1,A=(null===(h=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===h?void 0:h.items)||[],E={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},j=i?p[n]||!1:u;return e.jsx("div",{ref:i?void 0:e=>{e&&!x.current.includes(e)&&(x.current[n]=e)},className:Ae(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(vc,{planName:v,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:A,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:w,isExpanded:j,onToggleExpand:()=>{i?m(e=>({...e,[n]:!e[n]})):d(!u)},ctaText:(null===(g=null==t?void 0:t.cta)||void 0===g?void 0:g.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:r,cta:t.cta,hostType:"smb"})},n)},w=[...g,...g,...g,...g,...g],N=2*g.length;return b?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:g.map((e,t)=>C(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[v&&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(Wt,{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":"Previous",children:e.jsx(Rt,{name:"arrow_back",size:24})}),e.jsx(Wt,{onClick:I,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(Rt,{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(-${N+h} * (392px + 12px)))`},children:w.map((e,t)=>C(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-4",children:g.map((e,t)=>C(e,t))})}function Ic({fields:t,renderCheckPlans:n,activeTab:r,tabs:i}){var o;const s=(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.items)||[];return i&&i.length>1&&r?e.jsx(e.Fragment,{children:i.map(o=>{const a=s.filter(e=>(e.productCategory||i[0])===o),l={...t,items:{...t.items,items:a}};return e.jsx("div",{style:{display:o===r?"block":"none"},"aria-hidden":o!==r,children:e.jsx(yc,{fields:l,renderCheckPlans:n,isVisible:o===r})},o)})}):e.jsx(yc,{fields:t,renderCheckPlans:n})}const Cc=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:i,swipeOffset:o,isSwiping:s,isMobile:a,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>i/2&&(u-=i),u<-i/2&&(u+=i);const d=0===u,p=1===Math.abs(u),m=u*c+o/l*100,h=!a||(s?d||p:d);return e.jsx("div",{className:Ae("col-start-1 row-start-1 w-full md:max-w-[815px]","will-change-[transform,opacity]",d?"z-10":"z-5",Math.abs(u)>1?"invisible":"visible",h?"opacity-100":"opacity-0",s?"transition-opacity duration-200":"transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]"),style:{transform:`translateX(${m}%)`},children:e.jsx(xc,{...t,isActive:d,className:"h-full"})})});Cc.displayName="TestimonialCarouselSlide";const wc=({fields:n,autoScroll:r=!0,autoScrollInterval:i=8e3})=>{var o;const s=(null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||[];if(!s||0===s.length)return null;const a=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:i=.15,mobileBreakpoint:o=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState(window.innerWidth),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),I={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:i,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;f((null===(e=y.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),N=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),A=t.useCallback(e=>{x.current=e.touches[0].clientX,m(!0),v.current&&clearInterval(v.current)},[]),E=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-x.current;d(t)},[p]),j=t.useCallback(()=>{m(!1);const e=h*i;u>e?w():u<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[u,h,i,w,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:C,prevSlide:w,goToSlide:N,handleTouchStart:A,handleTouchMove:E,handleTouchEnd:j,constants:I}}({itemCount:s.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:i,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(Wt,{onClick:a.prevSlide,className:"group absolute left-5 top-1/2 z-50 hidden h-13 w-13 -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(Rt,{name:"arrow_back",size:24})}),e.jsx(Wt,{onClick:a.nextSlide,className:"group absolute right-5 top-1/2 z-50 hidden h-13 w-13 -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(Rt,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:a.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:a.handleTouchStart,onTouchMove:a.handleTouchMove,onTouchEnd:a.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:s.map((t,n)=>e.jsx(Cc,{item:t,index:n,currentIndex:a.currentIndex,totalItems:s.length,swipeOffset:a.swipeOffset,isSwiping:a.isSwiping,isMobile:a.isMobile,containerWidth:a.containerWidth,cardOffsetPercentage:a.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:s.map((t,n)=>e.jsx("button",{onClick:()=>a.goToSlide(n),className:Ae("h-2 w-2 rounded-full transition-all duration-300",a.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Nc=({tabs:n,activeTab:r,onChange:i,className:o})=>{const s=n.indexOf(r),a=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=a.current[s];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[s,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ae("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",o),children:[e.jsx("div",{className:"absolute bottom-1 top-1 rounded-button bg-bg-fill-brand shadow-md transition-all duration-300 ease-out",style:{width:`${l.width}px`,left:`${l.left}px`}}),n.map((t,n)=>e.jsx("button",{ref:e=>{a.current[n]=e},onClick:()=>i(t),className:Ae("label1 relative z-10 flex min-w-[160px] items-center justify-center whitespace-nowrap rounded-button px-4 py-2.5 transition-colors duration-200 focus:outline-none active:bg-transparent",r===t?"text-text-inverse":"text-text-disabled hover:bg-bg-surface-hover"),children:t},t))]})})},Ac=({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(Rt,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Ec=n=>{const{link:r,containerClassName:i,autoplay:o=!1,debug:s=!1}=n,{href:a,embedId:l}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),i=r[r.length-1];return(null==n?void 0:n[1])?n[1]===i?n[1]:`${n[1]}/${i}`:""})(e);return{href:e,embedId:t}},[r]);if(s&&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],r=n[2],i=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${i}?${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:Ae("relative h-0 w-full overflow-hidden pb-[56.25%]",i),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 jc=n=>{const{link:r,containerClassName:i,autoplay:o=!1}=n,s=t.useMemo(()=>{if(!r)return"";const e=r.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[r]),a=o?"?autoplay=1":"";return e.jsx("div",{className:Ae("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${s}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},kc=({link:n,anchorName:r,linkColorClassName:i})=>{const[o,s]=l.default.useState(!1),a=l.default.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Yt,{...n,showButtonAs:"text",linkClassName:Ae("body3 inline-flex items-center no-underline hover:underline",i||"text-text")},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d}=n,p=Array.isArray(null==d?void 0:d.items)?d.items:[],m=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:m},ref:a,children:[e.jsxs(Yt,{onClick:()=>s(e=>!e),"aria-expanded":o,buttonClassName:Ae("group body3 flex items-center h-full",i||"text-text"),showButtonAs:"unstyled",children:[e.jsx(Gt,{as:"span",className:"group-hover:underline leading-none",children:null!=u?u:null}),e.jsx(Rt,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50 mt-[1px]",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ae("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&p.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:m,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&s(!1)},children:p.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Yt,{...t,showButtonAs:"text",linkClassName:"body3 px-3 flex items-center text-text-link no-underline hover:underline hover:bg-bg-surface-hover"})},`submenu-link-${n}`))})})]})},Tc=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(Yt,{...t,linkClassName:"label3 flex items-center px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:i,title:o,items:s}=t,a=Array.isArray(null==s?void 0:s.items)?s.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Yt,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center px-4",showButtonAs:"unstyled",children:[null!=o?o:null,e.jsx(Rt,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),n&&a.length>0&&e.jsx(Pc,{items:a})]})},Pc=({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(Yt,{...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}`),Rc=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:i="md",children:o,className:s,prefix:a,containerClassName:l,...c}=t,u=e.jsxs(Lt,{...c,className:Ae("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"}[i],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ae("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e.jsx(Rt,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]});return null==a||!1===a||""===a?u:e.jsxs("span",{className:Ae("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,u]})};Rc.displayName="CallButton";const Gc=t.forwardRef((n,r)=>{const{className:i,size:o,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:I,...C}=n,w=y?"error":c,[N,A]=t.useState(!1),[E,j]=t.useState(!1),[k,T]=t.useState(I||"text"),P=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:Ae("inline-block pb-1"),children:e.jsxs(Gt,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ae("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],b,(N||"hover"===w)&&!E&&"error"!==w&&"border-input-border-hover",(E||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(Rt,{name:d,fill:p?1:0,size:h,className:Ae(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:Ae("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",i),placeholder:a,type:k,...C,onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),j(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:P,children:e.jsx(Rt,{name:"text"===k?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Gt,{className:Ae("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(Rt,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Gc.displayName="Input";const Sc=t=>{var n;const{primaryNavigationLinks:r,utilityNavigationLinks:i,supportNavigationLinks:o,accountNavigationLinks:s,showCallButton:a,displayCallNowCta:c,displaySearchBar:u}=t,[d,p]=l.default.useState(!1);l.default.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=d?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],i=e=>{var t,i,o,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(i=(t=r).focus)||void 0===i||i.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(o=n).focus)||void 0===s||s.call(o),e.preventDefault()))};return window.addEventListener("keydown",i),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",i)}},[d]);const m=()=>{p(!1)};return e.jsxs("div",{children:[e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>p(!0),children:e.jsx(Rt,{name:"menu"})}),d?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:Ae("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4 text-text","transition-all duration-300 ease-in-out","block",d?"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:Ae("flex items-center px-4",!1!==a||!1!==c?"justify-between":"justify-end"),children:[!1!==a||!1!==c?e.jsx("div",{children:e.jsx(Rc,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:m,children:e.jsx(Rt,{name:"close"})})})]}),!1!==u?e.jsx(Bc,{closeMenu:m,isMenuOpen:d,searchBarIconURL:"string"==typeof t.searchBarIcon?t.searchBarIcon:(null===(n=t.searchBarIcon)||void 0===n?void 0:n.url)||"",onSearch:t.onSearch||(()=>{})}):null,e.jsxs("div",{className:"flex-grow overflow-y-auto",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&m()},children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...r||[],...o||[],...s||[]].map((t,n)=>e.jsx("li",{children:e.jsx(Tc,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==i?void 0:i.map((n,r)=>e.jsx("li",{children:e.jsx(Yt,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ae("footnote flex items-center w-full h-11 text-text-link","number"!=typeof t.utilityNavActiveIndex?1===r&&"label4":t.utilityNavActiveIndex===r&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${n.anchorId}`)},`utility-menu-items-${r}`))})]})]})})]})},Bc=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:i,searchBarIconURL:o}=t,[s,a]=l.default.useState(""),c=l.default.useRef(null),u=e=>{n(),e.preventDefault(),r(s)};return l.default.useEffect(()=>{i||a("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Kt,{src:o,width:16,height:16,className:"mr-2",alt:"Search icon",role:"button",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Gc,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:s,onChange:e=>a(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},Vc=t=>{const{searchBarIconURL:n,onSearch:r}=t,[i,o]=l.default.useState(""),s=l.default.useRef(null);return e.jsxs("form",{name:"searchForm",className:"flex items-center h-10 w-80 rounded-full border border-gray-500 bg-white px-5 shadow-sm",onSubmit:e=>{e.preventDefault(),r(i)},children:[e.jsx(Rt,{name:"search",className:"text-gray-500 mr-2 text-[18px]"}),e.jsx("input",{ref:s,type:"text",name:"search",placeholder:"Search...",value:i,onChange:e=>o(e.target.value),className:"flex-1 bg-transparent outline-none text-sm text-gray-700",autoComplete:"off"})]})},Lc={closed:{opacity:0},open:{opacity:1}},Mc={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Dc={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oc.apply(null,arguments)}function Wc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Xc(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Fc(...e){return t.useCallback(Xc(...e),e)}function Hc(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}const zc=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},Zc=l["useId".toString()]||(()=>{});let Yc=0;function Jc(e){const[t,n]=l.useState(Zc());return zc(()=>{n(e=>null!=e?e:String(Yc++))},[e]),e||(t?`radix-${t}`:"")}function Uc(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 _c({prop:e,defaultProp:n,onChange:r=()=>{}}){const[i,o]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[i]=r,o=t.useRef(i),s=Uc(n);return t.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:i,l=Uc(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[s,e,o,l])]}const $c=t.forwardRef((e,n)=>{const{children:r,...i}=e,o=t.Children.toArray(r),s=o.find(qc);if(s){const e=s.props.children,r=o.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(Qc,Oc({},i,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(Qc,Oc({},i,{ref:n}),r)});$c.displayName="Slot";const Qc=t.forwardRef((e,n)=>{const{children:r,...i}=e;return t.isValidElement(r)?t.cloneElement(r,{...eu(i,r.props),ref:n?Xc(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});Qc.displayName="SlotClone";const Kc=({children:e})=>t.createElement(t.Fragment,null,e);function qc(e){return t.isValidElement(e)&&e.type===Kc}function eu(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const tu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?$c:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,Oc({},o,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const nu="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",iu="dismissableLayer.focusOutside";let ou;const su=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),au=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(su),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=Fc(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,I=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e),i=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){const t={originalEvent:e};function s(){cu(ru,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=s,n.addEventListener("click",o.current,{once:!0})):s()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e),i=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){cu(iu,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.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())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Uc(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(ou=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),lu(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=ou)}},[p,h,i,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),lu())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(nu,e),()=>document.removeEventListener(nu,e)},[]),t.createElement(tu.div,Oc({},u,{ref:g,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Wc(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Wc(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Wc(e.onPointerDownCapture,w.onPointerDownCapture)}))});function lu(){const e=new CustomEvent(nu);document.dispatchEvent(e)}function cu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}(o,s):o.dispatchEvent(s)}const uu="focusScope.autoFocusOnMount",du="focusScope.autoFocusOnUnmount",pu={bubbles:!1,cancelable:!0},mu=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=Uc(o),d=Uc(s),p=t.useRef(null),m=Fc(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(i){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:bu(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||bu(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bu(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,l,h.paused]),t.useEffect(()=>{if(l){vu.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(uu,pu);l.addEventListener(uu,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bu(r,{select:t}),document.activeElement!==n)return}((e=hu(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&bu(l))}return()=>{l.removeEventListener(uu,u),setTimeout(()=>{const e=new CustomEvent(du,pu);l.addEventListener(du,d),l.dispatchEvent(e),e.defaultPrevented||bu(null!=t?t:document.body,{select:!0}),l.removeEventListener(du,d),vu.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!i)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=hu(e),n=fu(t,e),r=fu(t.reverse(),e);return[n,r]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&bu(o,{select:!0})):(e.preventDefault(),r&&bu(i,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return t.createElement(tu.div,Oc({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function hu(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 fu(e,t){for(const n of e)if(!gu(n,{upTo:t}))return n}function gu(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 bu(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 vu=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=xu(e,t),e.unshift(t)},remove(t){var n;e=xu(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function xu(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const yu=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...o}=e;return i?d.default.createPortal(t.createElement(tu.div,Oc({},o,{ref:n})),i):null});const Iu=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Cu(o.current);a.current="mounted"===c?e:"none"},[c]),zc(()=>{const t=o.current,n=s.current;if(n!==e){const r=a.current,i=Cu(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),zc(()=>{if(n){const e=e=>{const t=Cu(o.current).includes(e.animationName);e.target===n&&t&&i.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Cu(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),s="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=Fc(o.ref,s.ref);return"function"==typeof r||o.isPresent?t.cloneElement(s,{ref:a}):null};function Cu(e){return(null==e?void 0:e.animationName)||"none"}Iu.displayName="Presence";let wu=0;function Nu(){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 Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Au.apply(this,arguments)};function Eu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ju="right-scroll-bar-position",ku="width-before-scroll-bar";function Tu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Pu="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,Ru=new WeakMap;function Gu(e,n){var r,i,o,s=(r=null,i=function(t){return e.forEach(function(e){return Tu(e,t)})},(o=t.useState(function(){return{value:r,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return Pu(function(){var t=Ru.get(s);if(t){var n=new Set(t),r=new Set(e),i=s.current;n.forEach(function(e){r.has(e)||Tu(e,null)}),r.forEach(function(e){n.has(e)||Tu(e,i)})}Ru.set(s,e)},[e]),s}function Su(e){return e}var Bu=function(e){var t=e.sideCar,n=Eu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Au({},n))};Bu.isSideCarExport=!0;var Vu=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Su);var n=[],r=!1,i={read:function(){if(r)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 i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return i}(null);return t.options=Au({async:!0,ssr:!1},e),t}(),Lu=function(){},Mu=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Lu,onWheelCapture:Lu,onTouchMoveCapture:Lu}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=Eu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,I=Gu([n,t]),C=Au(Au({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:Vu,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?l.cloneElement(l.Children.only(a),Au(Au({},C),{ref:I})):l.createElement(v,Au({},C,{className:c,ref:I}),a))});Mu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mu.classNames={fullWidth:ku,zeroRight:ju};function Du(){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 Ou=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Du())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wu=function(){var e,t=(e=Ou(),function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Xu={left:0,top:0,right:0,gap:0},Fu=function(e){return parseInt(e||"",10)||0},Hu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Xu;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Fu(n),Fu(r),Fu(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zu=Wu(),Zu="data-scroll-locked",Yu=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(Zu,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ju," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ku," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ju," .").concat(ju," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ku," .").concat(ku," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Zu,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Ju=function(){var e=parseInt(document.body.getAttribute(Zu)||"0",10);return isFinite(e)?e:0},Uu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(Zu,(Ju()+1).toString()),function(){var e=Ju()-1;e<=0?document.body.removeAttribute(Zu):document.body.setAttribute(Zu,e.toString())}},[]);var o=l.useMemo(function(){return Hu(i)},[i]);return l.createElement(zu,{styles:Yu(o,!t,i,n?"":"!important")})},_u=!1;if("undefined"!=typeof window)try{var $u=Object.defineProperty({},"passive",{get:function(){return _u=!0,!0}});window.addEventListener("test",$u,$u),window.removeEventListener("test",$u,$u)}catch(e){_u=!1}var Qu=!!_u&&{passive:!1},Ku=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])},qu=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ed(e,n)){var r=td(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ed=function(e,t){return"v"===e?function(e){return Ku(e,"overflowY")}(t):function(e){return Ku(e,"overflowX")}(t)},td=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rd=function(e){return[e.deltaX,e.deltaY]},id=function(e){return e&&"current"in e?e.current:e},od=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},sd=0,ad=[];var ld,cd=(ld=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(sd++)[0],o=l.useState(function(){return Wu()})[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(id),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=nd(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[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 p=qu(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=qu(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,a=t.contains(s),l=!1,c=o>0,u=0,d=0;do{var p=td(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&ed(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=l.useCallback(function(e){var n=e;if(ad.length&&ad[ad.length-1]===o){var r="deltaY"in n?rd(n):nd(n),i=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(s.current.shards||[]).map(id).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=nd(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,rd(t),t.target,a(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,nd(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return ad.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Qu),document.addEventListener("touchmove",c,Qu),document.addEventListener("touchstart",d,Qu),function(){ad=ad.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,Qu),document.removeEventListener("touchmove",c,Qu),document.removeEventListener("touchstart",d,Qu)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(o,{styles:od(i)}):null,h?l.createElement(Uu,{gapMode:"margin"}):null)},Vu.useMedium(ld),Bu),ud=l.forwardRef(function(e,t){return l.createElement(Mu,Au({},e,{ref:t,sideCar:cd}))});ud.classNames=Mu.classNames;var dd=new WeakMap,pd=new WeakMap,md={},hd=0,fd=function(e){return e&&(e.host||fd(e.parentNode))},gd=function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fd(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]);md[n]||(md[n]=new WeakMap);var o=md[n],s=[],a=new Set,l=new Set(i),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};i.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(r),i=null!==t&&"false"!==t,l=(dd.get(e)||0)+1,c=(o.get(e)||0)+1;dd.set(e,l),o.set(e,c),s.push(e),1===l&&i&&pd.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),hd++,function(){s.forEach(function(e){var t=dd.get(e)-1,i=o.get(e)-1;dd.set(e,t),o.set(e,i),t||(pd.has(e)||e.removeAttribute(r),pd.delete(e)),i||e.removeAttribute(n)}),--hd||(dd=new WeakMap,dd=new WeakMap,pd=new WeakMap,md={})}},bd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),gd(r,i,n,"aria-hidden")):function(){return null}};const vd="Dialog",[xd,yd]=function(e,n=[]){let r=[];const i=()=>{const n=r.map(e=>t.createContext(e));return function(r){const i=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(n,i){const o=t.createContext(i),s=r.length;function a(n){const{scope:r,children:i,...a}=n,l=(null==r?void 0:r[e][s])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},i)}return r=[...r,i],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||o,c=t.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Hc(i,...n)]}(vd),[Id,Cd]=xd(vd),wd="DialogPortal",[Nd,Ad]=xd(wd,{forceMount:void 0}),Ed="DialogOverlay",jd=t.forwardRef((e,n)=>{const r=Ad(Ed,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Cd(Ed,e.__scopeDialog);return s.modal?t.createElement(Iu,{present:i||s.open},t.createElement(kd,Oc({},o,{ref:n}))):null}),kd=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Cd(Ed,r);return t.createElement(ud,{as:$c,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(tu.div,Oc({"data-state":Md(o.open)},i,{ref:n,style:{pointerEvents:"auto",...i.style}})))}),Td="DialogContent",Pd=t.forwardRef((e,n)=>{const r=Ad(Td,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Cd(Td,e.__scopeDialog);return t.createElement(Iu,{present:i||s.open},s.modal?t.createElement(Rd,Oc({},o,{ref:n})):t.createElement(Gd,Oc({},o,{ref:n})))}),Rd=t.forwardRef((e,n)=>{const r=Cd(Td,e.__scopeDialog),i=t.useRef(null),o=Fc(n,r.contentRef,i);return t.useEffect(()=>{const e=i.current;if(e)return bd(e)},[]),t.createElement(Sd,Oc({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wc(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Wc(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Wc(e.onFocusOutside,e=>e.preventDefault())}))}),Gd=t.forwardRef((e,n)=>{const r=Cd(Td,e.__scopeDialog),i=t.useRef(!1),o=t.useRef(!1);return t.createElement(Sd,Oc({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(i.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Sd=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=Cd(Td,r),c=Fc(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:Nu()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Nu()),wu++,()=>{1===wu&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wu--}},[]),t.createElement(t.Fragment,null,t.createElement(mu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s},t.createElement(au,Oc({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Md(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),Bd="DialogTitle",Vd="DialogClose",Ld=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Cd(Vd,r);return t.createElement(tu.button,Oc({type:"button"},i,{ref:n,onClick:Wc(e.onClick,()=>o.onOpenChange(!1))}))});function Md(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function i(e){const{children:n,...i}=e,o=t.useMemo(()=>i,Object.values(i));return t.createElement(r.Provider,{value:o},n)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Td,titleName:Bd,docsSlug:"dialog"});const Dd=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=_c({prop:i,defaultProp:o,onChange:s});return t.createElement(Id,{scope:n,triggerRef:l,contentRef:c,contentId:Jc(),titleId:Jc(),descriptionId:Jc(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},Od=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Cd(wd,n);return t.createElement(Nd,{scope:n,forceMount:r},t.Children.map(i,e=>t.createElement(Iu,{present:r||s.open},t.createElement(yu,{asChild:!0,container:o},e))))},Wd=jd,Xd=Pd,Fd=Ld,Hd=t=>{const{isOpen:n,onRequestClose:r,size:i,title:o,content:s,description:a,children:l,bodyClassName:c,type:u="modal",index:d=0}=t;return e.jsx(Dd,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(Od,{children:[e.jsx(tc.div,{initial:"closed",animate:n?"open":"closed",variants:Lc,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(Wd,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(tc.div,{initial:"closed",animate:n?"open":"closed",variants:Mc,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"pointer-events-auto w-[calc(100vw-10px)] focus:outline-none sm:w-[calc(100vw-90px)]",children:e.jsx(Xd,{onOpenAutoFocus:e=>e.preventDefault(),className:Ae("relative mx-auto w-full rounded-modal bg-bg p-[25px] shadow-drop focus:outline-none",c),style:{maxWidth:Dc[i||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(Fd,{asChild:!0,children:e.jsx(Yt,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx(Rt,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[o?e.jsx(Gt,{className:Ae("mb-3 mt-5 w-full pr-8 text-center sm:pr-0","heading5 md:pt-0","mb-4 md:mb-[60px]"),as:"h2",children:o}):null,a?e.jsx(Gt,{as:"div",className:"mb-8 sm:mb-5",children:a}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",children:[s,l||null]})]})]})})})})]})})},zd=({currentPage:t,totalPages:n,onPageChange:r,ariaLabel:i="Pagination"})=>{const o=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);if(e<=4)return[1,2,3,4,5,"...",t];if(e>=t-3)return[1,"...",t-4,t-3,t-2,t-1,t];return[1,"...",e-1,e,e+1,"...",t]}(t,n),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":i,children:[e.jsx(Wt,{className:s,onClick:()=>r(t-1),disabled:1===t,"aria-label":"Go to previous page",children:e.jsx(Rt,{name:"chevron_left",size:32,"aria-hidden":"true"})}),o.map((n,i)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${i}`):e.jsx(Wt,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>r(n),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n},n)),e.jsx(Wt,{className:s,onClick:()=>r(t+1),disabled:t===n,"aria-label":"Go to next page",children:e.jsx(Rt,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Zd(e){return Zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(e)}function Yd(e){var t=function(e,t){if("object"!=Zd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Zd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zd(t)?t:t+""}function Jd(e,t,n){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(t){Jd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qd(e,t){if(e){if("string"==typeof e)return $d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$d(e,t):void 0}}function Kd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||Qd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ep=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(null,arguments)}function np(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yd(r.key),r)}}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rp(e,t)}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ip(e)}function op(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(op=function(){return!!e})()}function sp(e,t){if(t&&("object"==Zd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ap(e){return function(e){if(Array.isArray(e))return $d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),cp="-ms-",up="-moz-",dp="-webkit-",pp="comm",mp="rule",hp="decl",fp="@keyframes",gp=Math.abs,bp=String.fromCharCode,vp=Object.assign;function xp(e){return e.trim()}function yp(e,t,n){return e.replace(t,n)}function Ip(e,t){return e.indexOf(t)}function Cp(e,t){return 0|e.charCodeAt(t)}function wp(e,t,n){return e.slice(t,n)}function Np(e){return e.length}function Ap(e){return e.length}function Ep(e,t){return t.push(e),e}var jp=1,kp=1,Tp=0,Pp=0,Rp=0,Gp="";function Sp(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:jp,column:kp,length:s,return:""}}function Bp(e,t){return vp(Sp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vp(){return Rp=Pp>0?Cp(Gp,--Pp):0,kp--,10===Rp&&(kp=1,jp--),Rp}function Lp(){return Rp=Pp<Tp?Cp(Gp,Pp++):0,kp++,10===Rp&&(kp=1,jp++),Rp}function Mp(){return Cp(Gp,Pp)}function Dp(){return Pp}function Op(e,t){return wp(Gp,e,t)}function Wp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xp(e){return jp=kp=1,Tp=Np(Gp=e),Pp=0,[]}function Fp(e){return Gp="",e}function Hp(e){return xp(Op(Pp-1,Yp(91===e?e+2:40===e?e+1:e)))}function zp(e){for(;(Rp=Mp())&&Rp<33;)Lp();return Wp(e)>2||Wp(Rp)>3?"":" "}function Zp(e,t){for(;--t&&Lp()&&!(Rp<48||Rp>102||Rp>57&&Rp<65||Rp>70&&Rp<97););return Op(e,Dp()+(t<6&&32==Mp()&&32==Lp()))}function Yp(e){for(;Lp();)switch(Rp){case e:return Pp;case 34:case 39:34!==e&&39!==e&&Yp(Rp);break;case 40:41===e&&Yp(e);break;case 92:Lp()}return Pp}function Jp(e,t){for(;Lp()&&e+Rp!==57&&(e+Rp!==84||47!==Mp()););return"/*"+Op(t,Pp-1)+"*"+bp(47===e?e:Lp())}function Up(e){for(;!Wp(Mp());)Lp();return Op(e,Pp)}function _p(e){return Fp($p("",null,null,null,[""],e=Xp(e),0,[0],e))}function $p(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=i,I=o,C=r,w=x;g;)switch(h=v,v=Lp()){case 40:if(108!=h&&58==Cp(w,d-1)){-1!=Ip(w+=yp(Hp(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=Hp(v);break;case 9:case 10:case 13:case 32:w+=zp(h);break;case 92:w+=Zp(Dp()-1,7);continue;case 47:switch(Mp()){case 42:case 47:Ep(Kp(Jp(Lp(),Dp()),t,n),l);break;default:w+="/"}break;case 123*f:a[c++]=Np(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=yp(w,/\f/g,"")),m>0&&Np(w)-d&&Ep(m>32?qp(w+";",r,n,d-1):qp(yp(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Ep(C=Qp(w,t,n,c,u,i,a,x,y=[],I=[],d),o),123===v)if(0===u)$p(w,t,C,C,y,o,d,a,I);else switch(99===p&&110===Cp(w,3)?100:p){case 100:case 108:case 109:case 115:$p(e,C,C,r&&Ep(Qp(e,C,C,0,0,i,a,x,i,y=[],d),I),i,I,d,a,r?y:I);break;default:$p(w,C,C,C,[""],I,0,a,I)}}c=u=m=0,f=b=1,x=w="",d=s;break;case 58:d=1+Np(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Vp())continue;switch(w+=bp(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Np(w)-1)*b,b=1;break;case 64:45===Mp()&&(w+=Hp(Lp())),p=Mp(),u=d=Np(x=w+=Up(Dp())),v++;break;case 45:45===h&&2==Np(w)&&(f=0)}}return o}function Qp(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],m=Ap(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=wp(e,d+1,d=gp(f=s[h])),x=e;b<m;++b)(x=xp(f>0?p[b]+" "+v:yp(v,/&\f/g,p[b])))&&(l[g++]=x);return Sp(e,t,n,0===i?mp:a,l,c,u)}function Kp(e,t,n){return Sp(e,t,n,pp,bp(Rp),wp(e,2,-2),0)}function qp(e,t,n,r){return Sp(e,t,n,hp,wp(e,0,r),wp(e,r+1,-1),r)}function em(e,t){for(var n="",r=Ap(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function tm(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case hp:return e.return=e.return||e.value;case pp:return"";case fp:return e.return=e.value+"{"+em(e.children,r)+"}";case mp:e.value=e.props.join(",")}return Np(n=em(e.children,r))?e.return=e.value+"{"+n+"}":""}function nm(e){var t=Ap(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function rm(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var im="undefined"!=typeof document,om=function(e,t,n){for(var r=0,i=0;r=i,i=Mp(),38===r&&12===i&&(t[n]=1),!Wp(i);)Lp();return Op(e,Pp)},sm=function(e,t){return Fp(function(e,t){var n=-1,r=44;do{switch(Wp(r)){case 0:38===r&&12===Mp()&&(t[n]=1),e[n]+=om(Pp-1,t,n);break;case 2:e[n]+=Hp(r);break;case 4:if(44===r){e[++n]=58===Mp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bp(r)}}while(r=Lp());return e}(Xp(e),t))},am=new WeakMap,lm=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||am.get(n))&&!r){am.set(e,!0);for(var i=[],o=sm(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},cm=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function um(e,t){switch(function(e,t){return 45^Cp(e,0)?(((t<<2^Cp(e,0))<<2^Cp(e,1))<<2^Cp(e,2))<<2^Cp(e,3):0}(e,t)){case 5103:return dp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dp+e+up+e+cp+e+e;case 6828:case 4268:return dp+e+cp+e+e;case 6165:return dp+e+cp+"flex-"+e+e;case 5187:return dp+e+yp(e,/(\w+).+(:[^]+)/,dp+"box-$1$2"+cp+"flex-$1$2")+e;case 5443:return dp+e+cp+"flex-item-"+yp(e,/flex-|-self/,"")+e;case 4675:return dp+e+cp+"flex-line-pack"+yp(e,/align-content|flex-|-self/,"")+e;case 5548:return dp+e+cp+yp(e,"shrink","negative")+e;case 5292:return dp+e+cp+yp(e,"basis","preferred-size")+e;case 6060:return dp+"box-"+yp(e,"-grow","")+dp+e+cp+yp(e,"grow","positive")+e;case 4554:return dp+yp(e,/([^-])(transform)/g,"$1"+dp+"$2")+e;case 6187:return yp(yp(yp(e,/(zoom-|grab)/,dp+"$1"),/(image-set)/,dp+"$1"),e,"")+e;case 5495:case 3959:return yp(e,/(image-set\([^]*)/,dp+"$1$`$1");case 4968:return yp(yp(e,/(.+:)(flex-)?(.*)/,dp+"box-pack:$3"+cp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dp+e+e;case 4095:case 3583:case 4068:case 2532:return yp(e,/(.+)-inline(.+)/,dp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Np(e)-1-t>6)switch(Cp(e,t+1)){case 109:if(45!==Cp(e,t+4))break;case 102:return yp(e,/(.+:)(.+)-([^]+)/,"$1"+dp+"$2-$3$1"+up+(108==Cp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?um(yp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Cp(e,t+1))break;case 6444:switch(Cp(e,Np(e)-3-(~Ip(e,"!important")&&10))){case 107:return yp(e,":",":"+dp)+e;case 101:return yp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dp+(45===Cp(e,14)?"inline-":"")+"box$3$1"+dp+"$2$3$1"+cp+"$2box$3")+e}break;case 5936:switch(Cp(e,t+11)){case 114:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dp+e+cp+yp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dp+e+cp+e+e}return e}var dm,pm,mm,hm=im?void 0:(dm=function(){return rm(function(){return{}})},pm=new WeakMap,function(e){if(pm.has(e))return pm.get(e);var t=dm(e);return pm.set(e,t),t}),fm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case hp:e.return=um(e.value,e.length);break;case fp:return em([Bp(e,{value:yp(e.value,"@","@"+dp)})],r);case mp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return em([Bp(e,{props:[yp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return em([Bp(e,{props:[yp(t,/:(plac\w+)/,":"+dp+"input-$1")]}),Bp(e,{props:[yp(t,/:(plac\w+)/,":-moz-$1")]}),Bp(e,{props:[yp(t,/:(plac\w+)/,cp+"input-$1")]})],r)}return""})}}],gm=function(e){var t=e.key;if(im&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||fm,s={},a=[];im&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[lm,cm];if(hm){var u=[tm],d=nm(c.concat(o,u)),p=hm(o)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=em(_p(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};i=function(e,t,n,r){var i=t.name,o=m(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),o):r?void(b.inserted[i]=o):o}}else{var h,f=[tm,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=nm(c.concat(o,f));i=function(e,t,n,r){h=n,em(_p(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new lp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(a),b},bm={exports:{}},vm={};var xm,ym,Im,Cm,wm={};
|
|
6
6
|
/** @license React v16.13.1
|
|
7
7
|
* react-is.development.js
|
|
8
8
|
*
|