@windstream/react-shared-components 0.2.26 → 0.2.28

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.
@@ -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"),o=require("react-dom"),i=require("next/navigation");function a(e){return e&&e.__esModule?e:{default:e}}function s(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=s(t),c=s(n),u=a(r),d=a(o);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 o=e.length;for(t=0;t<o;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="",o=arguments.length;n<o;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 o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},f=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?f(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.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 C(e)?void x(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{x(o,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},C=e=>e.isThemeGetter,I=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),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))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},w=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(i),s=A(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>i?n-i: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},A=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,N=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=S(e))&&(r&&(r+=" "),r+=t);return r}const S=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=S(e[r]))&&(n&&(n+=" "),n+=t);return n};function T(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:I(e.cacheSize),parseClassName:w(e),sortModifiers:N(e),...h(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(E);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[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=i(u).join(":"),b=d?g+"!":g,v=b+f;if(a.includes(v))continue;a.push(v);const x=o(f,h);for(let e=0;e<x.length;++e){const t=x[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(j.apply(null,arguments))}}const k=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P=/^\((?:(\w[\w-]*):)?(.+)\)$/i,R=/^\d+\/\d+$/,L=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G=/\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$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>R.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),W=e=>!!e&&Number.isInteger(Number(e)),F=e=>e.endsWith("%")&&H(e.slice(0,-1)),X=e=>L.test(e),z=()=>!0,Z=e=>G.test(e)&&!O.test(e),Y=()=>!1,_=e=>D.test(e),J=e=>M.test(e),U=e=>!K(e)&&!re(e),$=e=>ue(e,he,Y),K=e=>B.test(e),Q=e=>ue(e,fe,Z),q=e=>ue(e,ge,H),ee=e=>ue(e,pe,Y),te=e=>ue(e,me,J),ne=e=>ue(e,ve,_),re=e=>P.test(e),oe=e=>de(e,fe),ie=e=>de(e,be),ae=e=>de(e,pe),se=e=>de(e,he),le=e=>de(e,me),ce=e=>de(e,ve,!0),ue=(e,t,n)=>{const r=B.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},de=(e,t,n=!1)=>{const r=P.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=k("color"),t=k("font"),n=k("text"),r=k("font-weight"),o=k("tracking"),i=k("leading"),a=k("breakpoint"),s=k("container"),l=k("spacing"),c=k("radius"),u=k("shadow"),d=k("inset-shadow"),p=k("text-shadow"),m=k("drop-shadow"),h=k("blur"),f=k("perspective"),g=k("aspect"),b=k("ease"),v=k("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,K],y=()=>[re,K,l],C=()=>[V,"full","auto",...y()],I=()=>[W,"none","subgrid",re,K],w=()=>["auto",{span:["full",W,re,K]},W,re,K],A=()=>[W,"auto",re,K],N=()=>["auto","min","max","fr",re,K],E=()=>["auto",...y()],j=()=>[V,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],S=()=>[e,re,K],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ae,ee,{position:[re,K]}],B=()=>["auto","cover","contain",se,$,{size:[re,K]}],P=()=>[F,oe,Q],R=()=>["","none","full",c,re,K],L=()=>["",H,oe,Q],G=()=>[H,F,ae,ee],O=()=>["","none",h,re,K],D=()=>["none",H,re,K],M=()=>["none",H,re,K],Z=()=>[H,re,K],Y=()=>[V,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[X],breakpoint:[X],color:[z],container:[X],"drop-shadow":[X],ease:["in","out","in-out"],font:[U],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[X],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[X],shadow:[X],spacing:["px",H],text:[X],"text-shadow":[X],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",V,K,re,g]}],container:["container"],columns:[{columns:[H,K,re,s]}],"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:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[W,"auto",re,K]}],basis:[{basis:[V,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,V,"auto","initial","none",K]}],grow:[{grow:["",H,re,K]}],shrink:[{shrink:["",H,re,K]}],order:[{order:[W,"first","last","none",re,K]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],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:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...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,oe,Q]}],"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,K]}],"font-family":[{font:[ie,K,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:[o,re,K]}],"line-clamp":[{"line-clamp":[H,"none",re,q]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",re,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",re,Q]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[H,"auto",re,K]}],"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,K]}],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,K]}],"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:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},W,re,K],radial:["",re,K],conic:[W,re,K]},le,te]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"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:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[H,re,K]}],"outline-w":[{outline:["",H,oe,Q]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",u,ce,ne]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",d,ce,ne]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[H,Q]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",p,ce,ne]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[H,re,K]}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[re,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"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:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,K]}],filter:[{filter:["","none",re,K]}],blur:[{blur:O()}],brightness:[{brightness:[H,re,K]}],contrast:[{contrast:[H,re,K]}],"drop-shadow":[{"drop-shadow":["","none",m,ce,ne]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",H,re,K]}],"hue-rotate":[{"hue-rotate":[H,re,K]}],invert:[{invert:["",H,re,K]}],saturate:[{saturate:[H,re,K]}],sepia:[{sepia:["",H,re,K]}],"backdrop-filter":[{"backdrop-filter":["","none",re,K]}],"backdrop-blur":[{"backdrop-blur":O()}],"backdrop-brightness":[{"backdrop-brightness":[H,re,K]}],"backdrop-contrast":[{"backdrop-contrast":[H,re,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,re,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,re,K]}],"backdrop-invert":[{"backdrop-invert":["",H,re,K]}],"backdrop-opacity":[{"backdrop-opacity":[H,re,K]}],"backdrop-saturate":[{"backdrop-saturate":[H,re,K]}],"backdrop-sepia":[{"backdrop-sepia":["",H,re,K]}],"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,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",re,K]}],ease:[{ease:["linear","initial",b,re,K]}],delay:[{delay:[H,re,K]}],animate:[{animate:["none",v,re,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,re,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[re,K,"","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:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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,K]}],"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,K]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[H,oe,Q,q]}],stroke:[{stroke:["none",...S()]}],"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)},Ce=(e,t)=>{if(t)for(const n in t)ye(e,n,t[n])},Ie=(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)},Ae=((e,...t)=>"function"==typeof e?T(xe,e,...t):T(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(ye(e,"cacheSize",t),ye(e,"prefix",n),ye(e,"experimentalParseClassName",r),Ce(e.theme,i.theme),Ce(e.classGroups,i.classGroups),Ce(e.conflictingClassGroups,i.conflictingClassGroups),Ce(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ye(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ie(e.theme,o.theme),Ie(e.classGroups,o.classGroups),Ie(e.conflictingClassGroups,o.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),we(e,o,"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"]}}}),Ne=(...e)=>Ae(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,Se="function"==typeof TextDecoder?new TextDecoder:void 0,Te="function"==typeof TextEncoder?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Be=(()=>{let e={};return ke.forEach((t,n)=>e[t]=n),e})(),Pe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Re=String.fromCharCode.bind(String),Le="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Ge=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),Oe=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),De=e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=ke[t>>18&63]+ke[t>>12&63]+ke[t>>6&63]+ke[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},Me="function"==typeof btoa?e=>btoa(e):je?e=>Buffer.from(e,"binary").toString("base64"):De,Ve=je?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(Re.apply(null,e.subarray(n,n+4096)));return Me(t.join(""))},He=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Re(192|t>>>6)+Re(128|63&t):Re(224|t>>>12&15)+Re(128|t>>>6&63)+Re(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Re(240|t>>>18&7)+Re(128|t>>>12&63)+Re(128|t>>>6&63)+Re(128|63&t)},We=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fe=e=>e.replace(We,He),Xe=je?e=>Buffer.from(e,"utf8").toString("base64"):Te?e=>Ve(Te.encode(e)):e=>Me(Fe(e)),ze=(e,t=!1)=>t?Ge(Xe(e)):Xe(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 Re((t>>>10)+55296)+Re(56320+(1023&t));case 3:return Re((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Re((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_e=e=>e.replace(Ze,Ye),Je=e=>{if(e=e.replace(/\s+/g,""),!Pe.test(e))throw new TypeError("malformed base64.");let t,n,r;e+="==".slice(2-(3&e.length));let o=[];for(let i=0;i<e.length;)t=Be[e.charAt(i++)]<<18|Be[e.charAt(i++)]<<12|(n=Be[e.charAt(i++)])<<6|(r=Be[e.charAt(i++)]),64===n?o.push(Re(t>>16&255)):64===r?o.push(Re(t>>16&255,t>>8&255)):o.push(Re(t>>16&255,t>>8&255,255&t));return o.join("")},Ue="function"==typeof atob?e=>atob(Oe(e)):je?e=>Buffer.from(e,"base64").toString("binary"):Je,$e=je?e=>Le(Buffer.from(e,"base64")):e=>Le(Ue(e).split("").map(e=>e.charCodeAt(0))),Ke=je?e=>Buffer.from(e,"base64").toString("utf8"):Se?e=>Se.decode($e(e)):e=>_e(Ue(e)),Qe=e=>Oe(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),qe=e=>Ke(Qe(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,o){if("undefined"!=typeof document){"number"==typeof(o=nt({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)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 ot=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const it=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,at=e=>{if(!e)return null;if(it(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return it(t)?t:null}return null};function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt,ct={},ut={},dt={};function pt(){return lt||(lt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=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}({})}(dt)),dt}var mt,ht={};function ft(){return mt||(mt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=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}({})}(ht)),ht}var gt,bt={};function vt(){return gt||(gt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=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}({})}(bt)),bt}var xt,yt={};function Ct(){return xt||(xt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get CONTAINERS(){return p},get HEADINGS(){return m},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return u},get TEXT_CONTAINERS(){return h},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return g},get V1_NODE_TYPES(){return f},get VOID_BLOCKS(){return d}});var t=pt(),n=ft(),r=vt();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a,s,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],u=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],p=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,c),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),m=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],h=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(s=m)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(s)||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.")}()),f=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],g=[r.MARKS.BOLD,r.MARKS.CODE,r.MARKS.ITALIC,r.MARKS.UNDERLINE]}(yt)),yt}var It,wt={};var At,Nt={};var Et,jt={};var St,Tt={};function kt(){return St||(St=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get isBlock(){return s},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return p}});var t=pt(),n=ft();function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function i(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){if(t===e[i.value])return!0}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return!1}function a(e){return i(n.INLINES,e.nodeType)}function s(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function c(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var n=e.content[0];return"text"===n.nodeType&&""===n.value}function u(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function p(e){return!u(e)||e.content.length<d?e:c(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(Tt)),Tt}var Bt,Pt,Rt={},Lt={};function Gt(){return Pt?Bt:(Pt=1,Bt=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var Ot,Dt,Mt={};function Vt(){return Ot||(Ot=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return r},get unknownPropertyError(){return s}});var r=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}},o=function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}},i=function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}},a=function(e){var t=e.expected,r=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:n(t).sort(),path:o.toArray(),value:r}},s=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}},l=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}}(Mt)),Mt}function Ht(){return Dt||(Dt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(Gt()),n=Vt();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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 l=function(){function e(r,o){var a=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=r,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=l._errors).push.apply(r,s(t))},this.exists=function(e){return e in a.obj||(a.catch((0,n.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var r=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(r))return!0;var o,i=e?a.path.of(e):a.path,s=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,n.typeMismatchError)({typeName:"Object",property:s,path:i,value:r})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,n.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var r=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(a.catch((0,n.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:r})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,n.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=a.obj[e];return!("string"!=typeof r||!t.includes(r))||(a.catch((0,n.enumError)({expected:t,value:r,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,n.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var r=a.obj[e];return r.length>=t||(a.catch((0,n.minSizeError)({min:t,value:r,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,n.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var n=a.obj[e],r=!1;n.forEach(function(n,o){if(!r){var i=t(n,a.path.of(e).of(o));i.length>0&&(r=!0),a.catch.apply(a,s(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}()}(Lt)),Lt}var Wt,Ft={};function Xt(){return Wt||(Wt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get EntityLinkAssertion(){return f},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return m},get assert(){return b},get assertLink(){return v}});var t=Ht();function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t=l(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return r(e)}(e,p()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(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.")}()}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var m=[],h=function(){function e(t,n){i(this,e),s(this,"contentRule",void 0),s(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return a(e,[{key:"assert",value:function(e,n){var r=new t.ObjectAssertion(e,n);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,n),i=o.nodeTypes,a=o.min,s=void 0===a?0:a;if(0===i.length&&s>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(s," with no nodeTypes"));if(r.minLength("content",s),0===i.length?r.empty("content"):r.each("content",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.enum("nodeType",i),r.errors):r.errors}),r.object("data")){var l,c,u,p=null!==(u=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,n.of("data")))&&void 0!==u?u:[];(l=r).catch.apply(l,d(p))}return r.errors}}]),e}(),f=function(e){function n(e,a){var l;return i(this,n),l=o(this,n,[a,function(e,t){return r(l).assertLink(e,t)}]),s(l,"linkType",void 0),s(l,"type",void 0),s(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,n){var r=new t.ObjectAssertion(e,n);if(r.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,n.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,d(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return c(n,e),n}(h),g=function(e){function n(){var e;return i(this,n),e=o(this,n,[["text"],function(t,n){return r(e).assertLink(t,n)}]),s(e,"assertLink",function(e,n){var r=new t.ObjectAssertion(e,n);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return c(n,e),n}(h),b=function(e,t){return new h(e,t)},v=function(e,t){return new f(e,t)}}(Ft)),Ft}var zt,Zt={};function Yt(){return zt||(zt=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"path",void 0),n(this,"of",void 0),n(this,"isRoot",void 0),n(this,"last",void 0),n(this,"toArray",void 0),this.path=o,this.of=function(n){return new e(r(t.path).concat([n]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(Zt)),Zt}var _t,Jt,Ut,$t,Kt={};function Qt(){return Jt||(Jt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=pt(),n=ft(),r=Ct(),o=Ht(),i=Xt(),a=Yt(),s=(_t||(_t=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=Ht();function n(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.string("type"),r.errors):r.errors}),r.string("value"),r.errors):r.errors}}(Kt)),Kt);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 d,p=(0,i.assert)(u(Object.values(n.INLINES)).concat(["text"]).sort()),m=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),f=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var n=new o.ObjectAssertion(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),g=(c(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(r.TOP_LEVEL_BLOCKS)),c(d,t.BLOCKS.PARAGRAPH,p),c(d,t.BLOCKS.HEADING_1,p),c(d,t.BLOCKS.HEADING_2,p),c(d,t.BLOCKS.HEADING_3,p),c(d,t.BLOCKS.HEADING_4,p),c(d,t.BLOCKS.HEADING_5,p),c(d,t.BLOCKS.HEADING_6,p),c(d,t.BLOCKS.QUOTE,(0,i.assert)(r.CONTAINERS[t.BLOCKS.QUOTE])),c(d,t.BLOCKS.EMBEDDED_ENTRY,h),c(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),c(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),c(d,t.BLOCKS.OL_LIST,m),c(d,t.BLOCKS.UL_LIST,m),c(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(u(r.LIST_ITEM_BLOCKS).sort())),c(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),c(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),c(d,t.BLOCKS.TABLE_CELL,f),c(d,t.BLOCKS.TABLE_HEADER_CELL,f),c(d,n.INLINES.HYPERLINK,new i.HyperLinkAssertion),c(d,n.INLINES.EMBEDDED_ENTRY,h),c(d,n.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,n.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),c(d,n.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),c(d,n.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function b(e,t){if("text"===e.nodeType)return(0,s.assertText)(e,t);var n=g[e.nodeType].assert(e,t);if(n.length>0)return n;var r=new o.ObjectAssertion(e,t);return r.each("content",function(e,t){return b(e,t)}),r.errors}var v=function(e){var n=new a.Path,r=new o.ObjectAssertion(e,n);return r.object()&&r.enum("nodeType",[t.BLOCKS.DOCUMENT]),r.errors.length>0?r.errors:b(e,n)}}(Rt)),Rt}function qt(){return Ut||(Ut=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return n.INLINES},get MARKS(){return r.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=pt(),n=ft(),r=vt();s(Ct(),e),s((It||(It=1,Object.defineProperty(wt,"__esModule",{value:!0})),wt),e),s((At||(At=1,Object.defineProperty(Nt,"__esModule",{value:!0})),Nt),e);var o=(Et||(Et=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=pt(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(jt)),jt),i=c(kt()),a=Qt();function s(e,t){return Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}}(ut)),ut}var en=function(){if($t)return ct;$t=1;var e=l.default,t=qt();function n(t,n){return t.map((t,o)=>{return i=r(t,n),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function r(r,o){const{renderNode:i,renderMark:a,renderText:s,preserveWhitespace:l}=o;if(t.helpers.isText(r)){let t=s?s(r.value):r.value;if(l&&!s){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const n=t.split("\n"),r=[];n.forEach((t,o)=>{r.push(t),o!==n.length-1&&r.push(e.createElement("br",null))}),t=r}return r.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=n(r.content,o);return r.nodeType&&i[r.nodeType]?i[r.nodeType](r,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,n)=>e.createElement("p",null,n),[t.BLOCKS.HEADING_1]:(t,n)=>e.createElement("h1",null,n),[t.BLOCKS.HEADING_2]:(t,n)=>e.createElement("h2",null,n),[t.BLOCKS.HEADING_3]:(t,n)=>e.createElement("h3",null,n),[t.BLOCKS.HEADING_4]:(t,n)=>e.createElement("h4",null,n),[t.BLOCKS.HEADING_5]:(t,n)=>e.createElement("h5",null,n),[t.BLOCKS.HEADING_6]:(t,n)=>e.createElement("h6",null,n),[t.BLOCKS.EMBEDDED_ENTRY]:(t,n)=>e.createElement("div",null,n),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,n)=>e.createElement("div",null,n),[t.BLOCKS.UL_LIST]:(t,n)=>e.createElement("ul",null,n),[t.BLOCKS.OL_LIST]:(t,n)=>e.createElement("ol",null,n),[t.BLOCKS.LIST_ITEM]:(t,n)=>e.createElement("li",null,n),[t.BLOCKS.QUOTE]:(t,n)=>e.createElement("blockquote",null,n),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,n)=>e.createElement("table",null,e.createElement("tbody",null,n)),[t.BLOCKS.TABLE_ROW]:(t,n)=>e.createElement("tr",null,n),[t.BLOCKS.TABLE_HEADER_CELL]:(t,n)=>e.createElement("th",null,n),[t.BLOCKS.TABLE_CELL]:(t,n)=>e.createElement("td",null,n),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>s(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,n)=>s(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function s(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}return ct.documentToReactComponents=function(e,n={}){if(!e)return null;let a=e;return n.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),r(a,{renderNode:{...o,...n.renderNode},renderMark:{...i,...n.renderMark},renderText:n.renderText,preserveWhitespace:n.preserveWhitespace})},ct}(),tn=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}({}),nn=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}({}),rn=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}({});function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn,ln=[tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE,tn.TABLE],cn=[tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE];tn.TABLE,tn.TABLE_ROW,tn.TABLE_CELL,tn.TABLE_HEADER_CELL,tn.HR,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE;var un,dn=(an(sn={},tn.OL_LIST,[tn.LIST_ITEM]),an(sn,tn.UL_LIST,[tn.LIST_ITEM]),an(sn,tn.LIST_ITEM,cn),an(sn,tn.QUOTE,[tn.PARAGRAPH]),an(sn,tn.TABLE,[tn.TABLE_ROW]),an(sn,tn.TABLE_ROW,[tn.TABLE_CELL,tn.TABLE_HEADER_CELL]),an(sn,tn.TABLE_CELL,[tn.PARAGRAPH,tn.UL_LIST,tn.OL_LIST]),an(sn,tn.TABLE_HEADER_CELL,[tn.PARAGRAPH]),sn),pn=[tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6];[tn.PARAGRAPH].concat(function(e){if(Array.isArray(e))return on(e)}(un=pn)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(un)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}(un)||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.")}()),tn.DOCUMENT,tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.LIST_ITEM,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,nn.HYPERLINK,nn.ENTRY_HYPERLINK,nn.ASSET_HYPERLINK,nn.EMBEDDED_ENTRY,tn.DOCUMENT,tn.PARAGRAPH;var mn=st(Gt());function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(e,t)}(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 gn=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}};function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vn(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return function(e){if(Array.isArray(e))return bn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bn(e,t)}(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 Cn=function(){function e(t,n){var r=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xn(this,"obj",void 0),xn(this,"path",void 0),xn(this,"_errors",void 0),xn(this,"catch",void 0),xn(this,"exists",void 0),xn(this,"object",void 0),xn(this,"string",void 0),xn(this,"number",void 0),xn(this,"array",void 0),xn(this,"enum",void 0),xn(this,"empty",void 0),xn(this,"minLength",void 0),xn(this,"noAdditionalProperties",void 0),xn(this,"each",void 0),this.obj=t,this.path=n,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=o._errors).push.apply(r,yn(t))},this.exists=function(e){return e in r.obj||(r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}({property:e,path:r.path.of(e)})),!1)},this.object=function(e){var t=e?r.obj[e]:r.obj;if(e&&!r.exists(e))return!1;if(mn(t))return!0;var n,o=e?r.path.of(e):r.path,i=null!==(n=null!=e?e:r.path.last())&&void 0!==n?n:"value";return r.catch(gn({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&("string"==typeof t||(r.catch(gn({typeName:"String",property:e,path:r.path.of(e),value:t})),!1))},this.number=function(e,t){var n=r.obj[e];return!(!t||e in r.obj)||!!r.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(r.catch(gn({typeName:"Number",property:e,path:r.path.of(e),value:n})),!1))},this.array=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&(!!Array.isArray(t)||(r.catch(gn({typeName:"Array",property:e,path:r.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=r.obj[e];return!("string"!=typeof n||!t.includes(n))||(r.catch(function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:fn(t).sort(),path:r.toArray(),value:n}}({expected:t,value:n,path:r.path.of(e)})),!1)},this.empty=function(e){if(!r.array(e))return!1;var t=r.obj[e];return 0===t.length||(r.catch(function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}}({max:0,value:t,path:r.path.of(e)})),!1)},this.minLength=function(e,t){if(!r.array(e))return!1;var n=r.obj[e];return n.length>=t||(r.catch(function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}}({min:t,value:n,path:r.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(r.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}}({property:e,path:r.path.of(e)}))}),0===t.length},this.each=function(e,t){if(r.array(e)){var n=r.obj[e],o=!1;n.forEach(function(n,i){if(!o){var a=t(n,r.path.of(e).of(i));a.length>0&&(o=!0),r.catch.apply(r,yn(a))}})}}}return vn(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}();function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e,t,n){return t=Sn(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return wn(e)}(e,Pn()?Reflect.construct(t,n||[],Sn(e).constructor):t.apply(e,n))}function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Tn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function kn(e,t){return kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kn(e,t)}function Bn(e){return function(e){if(Array.isArray(e))return In(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return In(e,t)}(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.")}()}function Pn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pn=function(){return!!e})()}var Rn=[],Ln=function(){function e(t,n){Nn(this,e),jn(this,"contentRule",void 0),jn(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return En(e,[{key:"assert",value:function(e,t){var n=new Cn(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var r=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=r.nodeTypes,i=r.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(n.minLength("content",a),0===o.length?n.empty("content"):n.each("content",function(e,t){var n=new Cn(e,t);return n.object()?(n.enum("nodeType",o),n.errors):n.errors}),n.object("data")){var s,l,c,u=null!==(c=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==c?c:[];(s=n).catch.apply(s,Bn(u))}return n.errors}}]),e}(),Gn=function(e){function t(e,n){var r;return Nn(this,t),r=An(this,t,[n,function(e,t){return wn(r).assertLink(e,t)}]),jn(r,"linkType",void 0),jn(r,"type",void 0),jn(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new Cn(e,t);if(n.object("target")){var o,i=new Cn(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,Bn(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return Tn(t,e),t}(Ln),On=function(e){function t(){var e;return Nn(this,t),e=An(this,t,[["text"],function(t,n){return wn(e).assertLink(t,n)}]),jn(e,"assertLink",function(e,t){var n=new Cn(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return Tn(t,e),t}(Ln),Dn=function(e,t){return new Ln(e,t)},Mn=function(e,t){return new Gn(e,t)};function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){return function(e){if(Array.isArray(e))return Vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vn(e,t)}(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 Fn,Xn=Dn(Wn(Object.values(nn)).concat(["text"]).sort()),zn=Dn([tn.LIST_ITEM]),Zn=Mn("Entry",Rn),Yn=Dn(function(){return{nodeTypes:[tn.PARAGRAPH],min:1}},function(e,t){var n=new Cn(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});Hn(Fn={},tn.DOCUMENT,Dn(ln)),Hn(Fn,tn.PARAGRAPH,Xn),Hn(Fn,tn.HEADING_1,Xn),Hn(Fn,tn.HEADING_2,Xn),Hn(Fn,tn.HEADING_3,Xn),Hn(Fn,tn.HEADING_4,Xn),Hn(Fn,tn.HEADING_5,Xn),Hn(Fn,tn.HEADING_6,Xn),Hn(Fn,tn.QUOTE,Dn(dn[tn.QUOTE])),Hn(Fn,tn.EMBEDDED_ENTRY,Zn),Hn(Fn,tn.EMBEDDED_ASSET,Mn("Asset",Rn)),Hn(Fn,tn.EMBEDDED_RESOURCE,Mn("Contentful:Entry",Rn)),Hn(Fn,tn.HR,Dn(Rn)),Hn(Fn,tn.OL_LIST,zn),Hn(Fn,tn.UL_LIST,zn),Hn(Fn,tn.LIST_ITEM,Dn(Wn(cn).sort())),Hn(Fn,tn.TABLE,Dn(function(){return{nodeTypes:[tn.TABLE_ROW],min:1}})),Hn(Fn,tn.TABLE_ROW,Dn(function(){return{nodeTypes:[tn.TABLE_CELL,tn.TABLE_HEADER_CELL],min:1}})),Hn(Fn,tn.TABLE_CELL,Yn),Hn(Fn,tn.TABLE_HEADER_CELL,Yn),Hn(Fn,nn.HYPERLINK,new On),Hn(Fn,nn.EMBEDDED_ENTRY,Zn),Hn(Fn,nn.EMBEDDED_RESOURCE,Mn("Contentful:Entry",Rn)),Hn(Fn,nn.ENTRY_HYPERLINK,Mn("Entry",["text"])),Hn(Fn,nn.ASSET_HYPERLINK,Mn("Asset",["text"])),Hn(Fn,nn.RESOURCE_HYPERLINK,Mn("Contentful:Entry",["text"]));const _n={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Jn=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},a)=>{const s=Ne("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:a,className:s,style:o,...i,children:t})});Jn.displayName="ListItem";const Un=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:a="unstyled",style:s,...l},c)=>{const u=(()=>{if("unstyled"===a)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=Ne(u,`list--${t}`,`list--${a}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(Jn,{className:t.className,variant:a,children:t.content},t.id||n)):null),m={className:d,style:s,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c,role:"list"}):e.jsx("ul",{...m,ref:c,role:"list"})});Un.displayName="List";const $n=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:a=24,color:s="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${a}px`,fontFamily:"'Material Symbols Rounded'",color:s||"currentColor",...l};return e.jsx("span",{style:p,className:Ne("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,"aria-hidden":"true",children:t})};$n.displayName="MaterialIcon";const Kn=t.forwardRef(({children:e,as:t,className:n="",style:r,...o},i)=>{const a=t||"p";return l.default.createElement(a,{ref:i,className:n,style:r,...o},e)});Kn.displayName="Text";const Qn=t=>{const{items:n,listIconName:r="check",listItemClassName:o,listContainerClassName:i,iconSize:a=20,iconPosition:s="center",iconColor:c="green",iconClassName:u}=t,d="disc"!==r;if(!(null==n?void 0:n.length))return null;const p=t=>{if("string"==typeof t&&t.includes("|")&&(t.match(/\|/g)||[]).length%2==0){const n=t.split("|"),r=(t.match(/\|/g)||[]).length;return n.map((t,n)=>{if(!t)return null;return r>1&&n%2==1?e.jsx(Kn,{as:"span",style:{fontWeight:900},children:t},n):e.jsx("span",{children:t},n)})}return t};return e.jsx(Un,{className:Ne("mt-2 space-y-1",i),variant:d?"unstyled":"default",children:n.map((t,n)=>{const i=function(e){return null!==e&&"object"==typeof e&&!l.default.isValidElement(e)&&"title"in e}(t),m=i&&!!t.iconUrl,h=i?t.title:t;return e.jsxs(Jn,{variant:d?"unstyled":"default",className:Ne(`${d?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,o),children:[d&&m?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:t.iconUrl,alt:t.iconAlt||"",width:a,height:a,className:Ne("block object-contain","top"===s?"mt-1":"",u)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx($n,{name:r,size:a,color:_n[c],weight:"600",className:Ne("block","top"===s?"mt-1":"",u)})}):null,e.jsx(Kn,{as:"div",children:p(h)})]},n)})})};var qn;Qn.displayName="Checklist";const er="function"==typeof c.default?c.default:null!==(qn=c.default.default)&&void 0!==qn?qn:c.default,tr=t.forwardRef(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:a,external:s=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===i)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[i]||e.default,t].filter(Boolean).join(" ")})(),p=e=>{l?e.preventDefault():null==o||o(e)},m=Ne(d,`link--${i}`,l&&"link--disabled",r),h={...c,ref:u,className:m,style:a,href:l?void 0:n,onClick:p,...s&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||s||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(er,{href:n||"#",ref:u,className:m,style:a,onClick:p,...c,children:t})});tr.displayName="Link";const nr={renderMark:{[rn.BOLD]:t=>e.jsx("strong",{children:t}),[rn.ITALIC]:t=>e.jsx("em",{children:t}),[rn.UNDERLINE]:t=>e.jsx("u",{children:t}),[rn.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[tn.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4",children:n}),[tn.HEADING_1]:(t,n)=>e.jsx(Kn,{as:"h1",className:"heading2 md:heading1",children:n}),[tn.HEADING_2]:(t,n)=>e.jsx(Kn,{as:"h2",className:"heading3 md:heading2",children:n}),[tn.HEADING_3]:(t,n)=>e.jsx(Kn,{as:"h3",className:"heading4 md:heading3",children:n}),[tn.HEADING_4]:(t,n)=>e.jsx(Kn,{as:"h4",className:"heading5 md:heading4",children:n}),[tn.HEADING_5]:(t,n)=>e.jsx(Kn,{as:"h5",className:"heading6 md:heading5",children:n}),[tn.HEADING_6]:(t,n)=>e.jsx(Kn,{as:"h6",className:"heading6",children:n}),[tn.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[tn.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-6",children:n}),[tn.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-6",children:n}),[tn.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[nn.HYPERLINK]:(t,n)=>{var r;const o=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,i=/^https?:\/\//.test(o);return e.jsx("a",{href:o,target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,children:n})},[tn.EMBEDDED_ASSET]:t=>{var n,r;const o=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,i=null==o?void 0:o.fields,a=(null==o?void 0:o.url)||(null===(r=null==i?void 0:i.file)||void 0===r?void 0:r.url),s=(null==i?void 0:i.title)||(null==i?void 0:i.description)||"Embedded asset";if(!a)return null;const l=a.startsWith("//")?`https:${a}`:a;return e.jsx("img",{src:l,alt:s,style:{maxWidth:"100%"}})},[tn.EMBEDDED_ENTRY]:t=>{var n,r,o,i;const a=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"callout"===(null===(i=null===(o=null===(r=null==a?void 0:a.sys)||void 0===r?void 0:r.contentType)||void 0===o?void 0:o.sys)||void 0===i?void 0:i.id)?e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:a.fields.title}),e.jsx("div",{children:a.fields.body})]}):null},[nn.EMBEDDED_ENTRY]:t=>{var n,r,o,i,a,s;const l=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"componentCheckList"===(null===(i=null===(o=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===o?void 0:o.sys)||void 0===i?void 0:i.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!==(s=null===(a=null==l?void 0:l.fields)||void 0===a?void 0:a.title)&&void 0!==s?s:""})}}};function rr(t,n,r="body1",o="body1 font-bold",i){if(!t||!Array.isArray(t.content))return null;const a={...nr,...i,renderNode:{...nr.renderNode,...null==i?void 0:i.renderNode,[tn.PARAGRAPH]:(t,n)=>e.jsx("div",{className:r,children:n}),[nn.HYPERLINK]:(t,r)=>{var i;const a=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.uri,s=/^https?:\/\//.test(a),l=null!=n?n:s;return e.jsx(tr,{href:a,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,variant:"default",className:o,children:r})}}};return en.documentToReactComponents(t,a)}const or={renderMark:{[rn.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const ir=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},a)=>e.jsx("button",{ref:a,className:Ne(n),style:r,disabled:o,...i,children:t}));ir.displayName="Button";const ar=n=>{const{open:r,children:o}=n,i=t.useRef(null),[a,s]=t.useState(0);return t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{s(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:a,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:i,children:o})})};ar.displayName="Collapse";const sr=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:a,titleClassName:s,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(o))},[d,o]),e.jsxs("div",{className:Ne(p?"rounded-none border":"rounded-surface-xs border",a),children:[e.jsxs(ir,{type:"button",className:Ne(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:Ne("label5 flex-1",s),children:r}),e.jsx($n,{className:Ne("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(ar,{open:m,children:e.jsx("div",{className:Ne("px-4 py-4",l),children:i})})]})};sr.displayName="Accordion";const lr=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ne("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};lr.displayName="Divider";const cr="pop",ur=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dr=t.createContext({}),pr=t.createContext(null),mr="undefined"!=typeof document,hr=mr?t.useLayoutEffect:t.useEffect,fr=t.createContext({strict:!1});function gr(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function br(e){return"string"==typeof e||Array.isArray(e)}function vr(e){return"object"==typeof e&&"function"==typeof e.start}const xr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yr=["initial",...xr];function Cr(e){return vr(e.animate)||yr.some(t=>br(e[t]))}function Ir(e){return Boolean(Cr(e)||e.variants)}function wr(e){const{initial:n,animate:r}=function(e,t){if(Cr(e)){const{initial:t,animate:n}=e;return{initial:!1===t||br(t)?t:void 0,animate:br(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(dr));return t.useMemo(()=>({initial:n,animate:r}),[Ar(n),Ar(r)])}function Ar(e){return Array.isArray(e)?e.join(" "):e}const Nr={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"]},Er={};for(const e in Nr)Er[e]={isEnabled:t=>Nr[e].some(e=>!!t[e])};const jr=t.createContext({}),Sr=t.createContext({}),Tr=Symbol.for("motionComponentSymbol");function kr({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Er[t]={...Er[t],...e[t]}}(e);const a=t.forwardRef(function(a,s){let c;const u={...t.useContext(ur),...a,layoutId:Br(a)},{isStatic:d}=u,p=wr(a),m=o(a,d);if(!d&&mr){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(dr),a=t.useContext(fr),s=t.useContext(pr),l=t.useContext(ur).reducedMotion,c=t.useRef();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,s)}),hr(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?hr:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const r=t.useContext(Sr),o=t.useContext(fr).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,o,e,r))}return l.createElement(dr.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(i,a,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):gr(r)&&(r.current=t))},[n])}(m,p.visualElement,s),m,d,p.visualElement))});return a[Tr]=i,a}function Br({layoutId:e}){const n=t.useContext(jr).id;return n&&void 0!==e?n+"-"+e:e}function Pr(e){function t(t,n={}){return kr(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 Rr=["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 Lr(e){return"string"==typeof e&&!e.includes("-")&&!!(Rr.indexOf(e)>-1||/[A-Z]/.test(e))}const Gr={};const Or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dr=new Set(Or);function Mr(e,{layout:t,layoutId:n}){return Dr.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Gr[e]||"opacity"===e)}const Vr=e=>Boolean(e&&e.getVelocity),Hr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wr=Or.length;const Fr=e=>t=>"string"==typeof t&&t.startsWith(e),Xr=Fr("--"),zr=Fr("var(--"),Zr=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Yr=(e,t,n)=>Math.min(Math.max(n,e),t),_r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jr={..._r,transform:e=>Yr(0,1,e)},Ur={..._r,default:1},$r=e=>Math.round(1e5*e)/1e5,Kr=/(-)?([\d]*\.?[\d])+/g,Qr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function eo(e){return"string"==typeof e}const to=e=>({test:t=>eo(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),no=to("deg"),ro=to("%"),oo=to("px"),io=to("vh"),ao=to("vw"),so={...ro,parse:e=>ro.parse(e)/100,transform:e=>ro.transform(100*e)},lo={..._r,transform:Math.round},co={borderWidth:oo,borderTopWidth:oo,borderRightWidth:oo,borderBottomWidth:oo,borderLeftWidth:oo,borderRadius:oo,radius:oo,borderTopLeftRadius:oo,borderTopRightRadius:oo,borderBottomRightRadius:oo,borderBottomLeftRadius:oo,width:oo,maxWidth:oo,height:oo,maxHeight:oo,size:oo,top:oo,right:oo,bottom:oo,left:oo,padding:oo,paddingTop:oo,paddingRight:oo,paddingBottom:oo,paddingLeft:oo,margin:oo,marginTop:oo,marginRight:oo,marginBottom:oo,marginLeft:oo,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:Ur,scaleX:Ur,scaleY:Ur,scaleZ:Ur,skew:no,skewX:no,skewY:no,distance:oo,translateX:oo,translateY:oo,translateZ:oo,x:oo,y:oo,z:oo,perspective:oo,transformPerspective:oo,opacity:Jr,originX:so,originY:so,originZ:oo,zIndex:lo,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:lo};function uo(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Xr(e)){i[e]=n;continue}const r=co[e],d=Zr(n,r);if(Dr.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Wr;t++){const n=Or[t];void 0!==e[n]&&(i+=`${Hr[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mo(e,t,n){for(const r in t)Vr(t[r])||Mr(r,n)||(e[r]=t[r])}function ho(e,n,r){const o={};return mo(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return uo(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function fo(e,t,n){const r={},o=ho(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,r}const go=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 bo(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||go.has(e)}let vo=e=>!bo(e);try{(xo=require("@emotion/is-prop-valid").default)&&(vo=e=>e.startsWith("on")?!bo(e):xo(e))}catch(bu){}var xo;function yo(e,t,n){return"string"==typeof e?e:oo.transform(t+n*e)}const Co={offset:"stroke-dashoffset",array:"stroke-dasharray"},Io={offset:"strokeDashoffset",array:"strokeDasharray"};function wo(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(uo(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!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${yo(t,e.x,e.width)} ${yo(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Co:Io;e[i.offset]=oo.transform(-r);const a=oo.transform(t),s=oo.transform(n);e[i.array]=`${a} ${s}`}(m,a,s,l,!1)}const Ao=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),No=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Eo(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return wo(t,n,{enableHardwareAcceleration:!1},No(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};mo(t,e.style,e),i.style={...t,...i.style}}return i}function jo(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(Lr(n)?Eo:fo)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(vo(o)||!0===n&&bo(o)||!t&&!bo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),c={...l,...s,ref:o},{children:u}=r,d=t.useMemo(()=>Vr(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const So=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function To(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const ko=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 Bo(e,t,n,r){To(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(ko.has(n)?n:So(n),t.attrs[n])}function Po(e,t){const{style:n}=e,r={};for(const o in n)(Vr(n[o])||t.style&&Vr(t.style[o])||Mr(o,e))&&(r[o]=n[o]);return r}function Ro(e,t){const n=Po(e,t);for(const r in e)if(Vr(e[r])||Vr(t[r])){n[-1!==Or.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Lo(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Go(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Oo=e=>Array.isArray(e),Do=e=>Oo(e)?e[e.length-1]||0:e;function Mo(e){const t=Vr(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Vo=e=>(n,r)=>{const o=t.useContext(dr),i=t.useContext(pr),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Ho(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,n,o,i);return r?a():Go(a)};function Ho(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Mo(i[e]);let{initial:a,animate:s}=e;const l=Cr(e),c=Ir(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!vr(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Lo(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Wo={useVisualState:Vo({scrapeMotionValuesFromProps:Ro,createRenderState:Ao,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}}wo(n,r,{enableHardwareAcceleration:!1},No(t.tagName),e.transformTemplate),Bo(t,n)}})},Fo={useVisualState:Vo({scrapeMotionValuesFromProps:Po,createRenderState:po})};function Xo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const zo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Zo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Yo(e,t,n,r){return Xo(e,t,(e=>t=>zo(t)&&e(t,Zo(t)))(n),r)}const _o=(e,t)=>n=>t(e(n)),Jo=(...e)=>e.reduce(_o);function Uo(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const $o=Uo("dragHorizontal"),Ko=Uo("dragVertical");function Qo(e){let t=!1;if("y"===e)t=Ko();else if("x"===e)t=$o();else{const e=$o(),n=Ko();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function qo(){const e=Qo(!0);return!e||(e(),!1)}class ei{constructor(e){this.isMounted=!1,this.node=e}update(){}}const ti={delta:0,timestamp:0,isProcessing:!1};let ni=!0,ri=!1;const oi=["read","update","preRender","render","postRender"],ii=oi.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!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),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>ri=!0),e),{}),ai=e=>ii[e].process(ti),si=e=>{ri=!1,ti.delta=ni?1e3/60:Math.max(Math.min(e-ti.timestamp,40),1),ti.timestamp=e,ti.isProcessing=!0,oi.forEach(ai),ti.isProcessing=!1,ri&&(ni=!1,requestAnimationFrame(si))},li=oi.reduce((e,t)=>{const n=ii[t];return e[t]=(e,t=!1,r=!1)=>(ri||(ri=!0,ni=!0,ti.isProcessing||requestAnimationFrame(si)),n.schedule(e,t,r)),e},{});function ci(e){oi.forEach(t=>ii[t].cancel(e))}function ui(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Yo(e.current,n,(n,o)=>{if("touch"===n.type||qo())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&li.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const di=(e,t)=>!!t&&(e===t||di(e,t.parentElement)),pi=e=>e;function mi(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Zo(n))}const hi=new WeakMap,fi=new WeakMap,gi=e=>{const t=hi.get(e.target);t&&t(e)},bi=e=>{e.forEach(gi)};function vi(e,t,n){const r=function({root:e,...t}){const n=e||document;fi.has(n)||fi.set(n,{});const r=fi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(bi,{root:e,...t})),r[o]}(t);return hi.set(e,n),r.observe(e),()=>{hi.delete(e),r.unobserve(e)}}const xi={some:0,all:1};const yi={inView:{Feature:class extends ei{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:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:xi[r]};return vi(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!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(),i=t?n:r;i&&i(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 ei{constructor(){super(...arguments),this.removeStartListeners=pi,this.removeEndListeners=pi,this.removeAccessibleListeners=pi,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Yo(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();li.update(()=>{di(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Yo(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Jo(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Xo(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Xo(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&mi("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&li.update(()=>n(e,t))})}),mi("down",(e,t)=>{this.startPress(e,t)})}),t=Xo(this.node.current,"blur",()=>{this.isPressing&&mi("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Jo(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&&li.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!qo()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&li.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Yo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Xo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jo(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ei{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=Jo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ei{mount(){this.unmount=Jo(ui(this.node,!0),ui(this.node,!1))}unmount(){}}}};function Ci(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 Ii(e,t,n){const r=e.getProps();return Lo(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 wi="data-"+So("framerAppearId");let Ai=pi,Ni=pi;"production"!==process.env.NODE_ENV&&(Ai=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ni=(e,t)=>{if(!e)throw new Error(t)});const Ei=e=>1e3*e,ji=e=>e/1e3,Si=!1,Ti=e=>Array.isArray(e)&&"number"==typeof e[0];function ki(e){return Boolean(!e||"string"==typeof e&&Pi[e]||Ti(e)||Array.isArray(e)&&e.every(ki))}const Bi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bi([0,.65,.55,1]),circOut:Bi([.55,0,1,.45]),backIn:Bi([.31,.01,.66,-.59]),backOut:Bi([.33,1.53,.69,.99])};function Ri(e){if(e)return Ti(e)?Bi(e):Array.isArray(e)?e.map(Ri):Pi[e]}const Li={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Gi={},Oi={};for(const e in Li)Oi[e]=()=>(void 0===Gi[e]&&(Gi[e]=Li[e]()),Gi[e]);const Di=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Mi(e,t,n,r){if(e===t&&n===r)return pi;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Di(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Di(o(e),t,r)}const Vi=Mi(.42,0,1,1),Hi=Mi(0,0,.58,1),Wi=Mi(.42,0,.58,1),Fi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xi=e=>t=>1-e(1-t),zi=e=>1-Math.sin(Math.acos(e)),Zi=Xi(zi),Yi=Fi(Zi),_i=Mi(.33,1.53,.69,.99),Ji=Xi(_i),Ui=Fi(Ji),$i={linear:pi,easeIn:Vi,easeInOut:Wi,easeOut:Hi,circIn:zi,circInOut:Yi,circOut:Zi,backIn:Ji,backInOut:Ui,backOut:_i,anticipate:e=>(e*=2)<1?.5*Ji(e):.5*(2-Math.pow(2,-10*(e-1)))},Ki=e=>{if(Array.isArray(e)){Ni(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Mi(t,n,r,o)}return"string"==typeof e?(Ni(void 0!==$i[e],`Invalid easing type '${e}'`),$i[e]):e},Qi=(e,t)=>n=>Boolean(eo(n)&&qr.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),qi=(e,t,n)=>r=>{if(!eo(r))return r;const[o,i,a,s]=r.match(Kr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ea={..._r,transform:e=>Math.round((e=>Yr(0,255,e))(e))},ta={test:Qi("rgb","red"),parse:qi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ea.transform(e)+", "+ea.transform(t)+", "+ea.transform(n)+", "+$r(Jr.transform(r))+")"};const na={test:Qi("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ta.transform},ra={test:Qi("hsl","hue"),parse:qi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ro.transform($r(t))+", "+ro.transform($r(n))+", "+$r(Jr.transform(r))+")"},oa={test:e=>ta.test(e)||na.test(e)||ra.test(e),parse:e=>ta.test(e)?ta.parse(e):ra.test(e)?ra.parse(e):na.parse(e),transform:e=>eo(e)?e:e.hasOwnProperty("red")?ta.transform(e):ra.transform(e)},ia=(e,t,n)=>-n*e+n*t+e;function aa(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 sa=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},la=[na,ta,ra];function ca(e){const t=(n=e,la.find(e=>e.test(n)));var n;Ni(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ra&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=aa(s,r,e+1/3),i=aa(s,r,e),a=aa(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const ua=(e,t)=>{const n=ca(e),r=ca(t),o={...n};return e=>(o.red=sa(n.red,r.red,e),o.green=sa(n.green,r.green,e),o.blue=sa(n.blue,r.blue,e),o.alpha=ia(n.alpha,r.alpha,e),ta.transform(o))};const da={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:pi},pa={regex:Qr,countKey:"Colors",token:"${c}",parse:oa.parse},ma={regex:Kr,countKey:"Numbers",token:"${n}",parse:_r.parse};function ha(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function fa(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ha(n,da),ha(n,pa),ha(n,ma),n}function ga(e){return fa(e).values}function ba(e){const{values:t,numColors:n,numVars:r,tokenised:o}=fa(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(da.token,e[o]):o<r+n?t.replace(pa.token,oa.transform(e[o])):t.replace(ma.token,$r(e[o]));return t}}const va=e=>"number"==typeof e?0:e;const xa={test:function(e){var t,n;return isNaN(e)&&eo(e)&&((null===(t=e.match(Kr))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Qr))||void 0===n?void 0:n.length)||0)>0},parse:ga,createTransformer:ba,getAnimatableNone:function(e){const t=ga(e);return ba(e)(t.map(va))}},ya=(e,t)=>n=>`${n>0?t:e}`;function Ca(e,t){return"number"==typeof e?n=>ia(e,t,n):oa.test(e)?ua(e,t):e.startsWith("var(")?ya(e,t):Aa(e,t)}const Ia=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Ca(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},wa=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ca(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Aa=(e,t)=>{const n=xa.createTransformer(t),r=fa(e),o=fa(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jo(Ia(r.values,o.values),n):(Ai(!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.`),ya(e,t))},Na=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ea=(e,t)=>n=>ia(e,t,n);function ja(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Ea:"string"==typeof i?oa.test(i)?ua:Aa:Array.isArray(i)?Ia:"object"==typeof i?wa:Ea);var i;const a=e.length-1;for(let n=0;n<a;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||pi:t;i=Jo(e,i)}r.push(i)}return r}function Sa(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ni(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ja(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Na(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Yr(e[0],e[i-1],t)):l}function Ta(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Na(0,t,r);e.push(ia(n,1,o))}}(t,e.length-1),t}function ka({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ki):Ki(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Ta(t),e),s=Sa(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Wi).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Ba(e,t){return t?e*(1e3/t):0}function Pa(e,t,n){const r=Math.max(t-5,0);return Ba(n-e(r),t-r)}const Ra=.001;function La({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ai(e<=Ei(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Yr(.05,1,a),e=Yr(.01,10,ji(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Oa(t,a),l=Math.exp(-o);return Ra-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Oa(Math.pow(t,2),a);return(-o(t)+Ra>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Ga;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Ei(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Ga=12;function Oa(e,t){return e*Math.sqrt(1-t*t)}const Da=["duration","bounce"],Ma=["stiffness","damping","mass"];function Va(e,t){return t.some(t=>void 0!==e[t])}function Ha({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,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(!Va(e,Ma)&&Va(e,Da)){const n=La(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-ji(u):0,h=l/(2*Math.sqrt(s*c)),f=i-o,g=ji(Math.sqrt(s/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Oa(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>i-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 i-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)a.done=e>=d;else{let o=m;0!==e&&(o=h<1?Pa(v,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Wa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const f=d+h,g=void 0===a?f:a(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,C;const I=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(y=e,C=Ha({keyframes:[p.value,m(p.value)],velocity:Pa(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:e=>{let t=!1;return C||void 0!==y||(t=!0,x(e),I(e)),void 0!==y&&e>y?C.next(e-y):(!t&&x(e),p)}}}const Fa=e=>{const t=({timestamp:t})=>e(t);return{start:()=>li.update(t,!0),stop:()=>ci(t),now:()=>ti.isProcessing?ti.timestamp:performance.now()}};function Xa(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 za={decay:Wa,inertia:Wa,tween:ka,keyframes:ka,spring:Ha};function Za({autoplay:e=!0,delay:t=0,driver:n=Fa,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="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=za[o]||ka;let y;x!==ka&&"number"!=typeof r[0]&&(y=Sa([0,100],r,{clamp:!1}),r=[0,100]);const C=x({...p,keyframes:r});let I;"mirror"===s&&(I=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,E=null;null===C.calculatedDuration&&i&&(C.calculatedDuration=Xa(C));const{calculatedDuration:j}=C;let S=1/0,T=1/0;null!==j&&(S=j+a,T=S*(i+1)-a);let k=0;const B=e=>{if(null===N)return;f>0&&(N=Math.min(N,e)),k=null!==A?A:(e-N)*f;const n=k-t,o=n<0;k=Math.max(n,0),"finished"===w&&null===A&&(k=T);let l=k,c=C;if(i){const e=k/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/S)):"mirror"===s&&(c=I));let o=Yr(0,1,n);k>T&&(o="reverse"===s&&r?1:0),l=o*S}const u=o?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;o||null===j||(p=k>=T);const m=null===A&&("finished"===w||"running"===w&&p||f<0&&k<=0);return d&&d(u.value),m&&L(),u},P=()=>{v&&v.stop(),v=void 0},R=()=>{w="idle",P(),b(),N=E=null},L=()=>{w="finished",u&&u(),P(),b()},G=()=>{if(g)return;v||(v=n(B));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),E=N,A=null,w="running",v.start()};e&&G();const O={then:(e,t)=>h.then(e,t),get time(){return ji(k)},set time(e){e=Ei(e),k=e,null===A&&v&&0!==f?N=v.now()-e/f:A=e},get duration(){const e=null===C.calculatedDuration?Xa(C):C.calculatedDuration;return ji(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,O.time=ji(k))},get state(){return w},play:G,pause:()=>{w="paused",A=k},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),R())},cancel:()=>{null!==E&&B(E),R()},complete:()=>{w="finished"},sample:e=>(N=0,B(e))};return O}const Ya=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function _a(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Oi.waapi()&&Ya.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise(e=>{i=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!ki(t.ease))(t,o)){const e=Za({...o,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:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ri(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{li.update(h),i(),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,o)),r&&r(),f()},{then:(e,t)=>a.then(e,t),get time(){return ji(m.currentTime||0)},set time(e){m.currentTime=Ei(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return ji(u)},play:()=>{s||(m.play(),ci(h))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Za({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Ja={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua={type:"keyframes",duration:.8},$a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ka=(e,{keyframes:t})=>t.length>2?Ua:Dr.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ja:$a,Qa=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!xa.test(t)&&"0"!==t||t.startsWith("url("))),qa=new Set(["brightness","contrast","saturate","opacity"]);function es(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Kr)||[];if(!r)return e;const o=n.replace(r,"");let i=qa.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ts=/([a-z-]*)\(.*?\)/g,ns={...xa,getAnimatableNone:e=>{const t=e.match(ts);return t?t.map(es).join(" "):e}},rs={...co,color:oa,backgroundColor:oa,outlineColor:oa,fill:oa,stroke:oa,borderColor:oa,borderTopColor:oa,borderRightColor:oa,borderBottomColor:oa,borderLeftColor:oa,filter:ns,WebkitFilter:ns},os=e=>rs[e];function is(e,t){let n=os(e);return n!==ns&&(n=xa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const as=e=>/^0[^.\s]+$/.test(e);function ss(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||as(e):void 0}function ls(e,t){return e[t]||e.default||e}const cs=(e,t,n,r={})=>o=>{const i=ls(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Ei(a);const l=function(e,t,n,r){const o=Qa(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),ss(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=is(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Qa(e,c),p=Qa(e,u);Ai(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",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...Ka(e,m)}),m.duration&&(m.duration=Ei(m.duration)),m.repeatDelay&&(m.repeatDelay=Ei(m.repeatDelay)),!d||!p||Si||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:pi,pause:pi,stop:pi,then:e=>(e(),Promise.resolve()),cancel:pi,complete:pi});return t?Za({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=_a(t,e,m);if(n)return n}return Za(m)};function us(e){return Boolean(Vr(e)&&e.add)}const ds=e=>/^\-?\d*\.?\d+$/.test(e);function ps(e,t){-1===e.indexOf(t)&&e.push(t)}function ms(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hs{constructor(){this.subscriptions=[]}add(e){return ps(this.subscriptions,e),()=>ms(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 o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fs=new Set;function gs(e,t,n){e||fs.has(t)||(console.warn(t),fs.add(t))}class bs{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}=ti;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,li.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=()=>li.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&&gs(!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 hs);const n=this.events[e].add(t);return"change"===e?()=>{n(),li.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?Ba(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 vs(e,t){return new bs(e,t)}const xs=e=>t=>t.test(e),ys=[_r,oo,ro,no,ao,io,{test:e=>"auto"===e,parse:e=>e}],Cs=e=>ys.find(xs(e)),Is=[...ys,oa,xa],ws=e=>Is.find(xs(e));function As(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vs(n))}function Ns(e,t){if(!t)return;return(t[e]||t.default||t).from}function Es({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function js(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&Es(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[wi];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,li))}r.start(cs(t,r,o,e.shouldReduceMotion&&Dr.has(t)?{type:!1}:a));const d=r.animation;us(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=Ii(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)As(e,t,Do(i[t]))}(e,a)}),c}function Ss(e,t,n={}){const r=Ii(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(js(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ts).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(Ss(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(n.delay)])}function Ts(e,t){return e.sortNodePosition(t)}const ks=[...xr].reverse(),Bs=xr.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 o=t.map(t=>Ss(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Ss(e,t,n);else{const o="function"==typeof t?Ii(e,t,n.custom):t;r=Promise.all(js(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Rs(e){let t=Ps(e);const n={animate:Gs(!0),whileInView:Gs(),whileHover:Gs(),whileTap:Gs(),whileDrag:Gs(),whileFocus:Gs(),exit:Gs()};let r=!0;const o=(t,n)=>{const r=Ii(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Bs;t++){const m=ks[t],h=n[m],f=void 0!==s[m]?s[m]:l[m],g=br(f),b=m===a?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==s[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||vr(f)||"boolean"==typeof f)continue;const x=Ls(h.prevProp,f);let y=x||m===a&&h.isActive&&!v&&g||t>p&&g;const C=Array.isArray(f)?f:[f];let I=C.reduce(o,{});!1===b&&(I={});const{prevResolvedValues:w={}}=h,A={...w,...I},N=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in A){const t=I[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Oo(t)&&Oo(n)?!Ci(t,n)||x?N(e):h.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=I,h.isActive&&(d={...d,...I}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...C.map(e=>({animation:e,options:{type:m,...i}})))}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===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Ls(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Ci(t,e)}function Gs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Os=0;const Ds={animation:{Feature:class extends ei{constructor(e){super(e),e.animationState||(e.animationState=Rs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),vr(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 ei{constructor(){super(...arguments),this.id=Os++}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 o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ms=(e,t)=>Math.abs(e-t);class Vs{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=Fs(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ms(e.x,t.x),r=Ms(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:o}=ti;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Hs(t,this.transformPagePoint),li.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Fs("pointercancel"===e.type?this.lastMoveEventInfo:Hs(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!zo(e))return;this.handlers=t,this.transformPagePoint=n;const r=Hs(Zo(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=ti;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Fs(r,this.history)),this.removeListeners=Jo(Yo(window,"pointermove",this.handlePointerMove),Yo(window,"pointerup",this.handlePointerUp),Yo(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ci(this.updatePoint)}}function Hs(e,t){return t?{point:t(e.point)}:e}function Ws(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fs({point:e},t){return{point:e,delta:Ws(e,zs(t)),offset:Ws(e,Xs(t)),velocity:Zs(t,.1)}}function Xs(e){return e[0]}function zs(e){return e[e.length-1]}function Zs(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zs(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ei(t)));)n--;if(!r)return{x:0,y:0};const i=ji(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ys(e){return e.max-e.min}function _s(e,t=0,n=.01){return Math.abs(e-t)<=n}function Js(e,t,n,r=.5){e.origin=r,e.originPoint=ia(t.min,t.max,e.origin),e.scale=Ys(n)/Ys(t),(_s(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ia(n.min,n.max,e.origin)-e.originPoint,(_s(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Us(e,t,n,r){Js(e.x,t.x,n.x,r?r.originX:void 0),Js(e.y,t.y,n.y,r?r.originY:void 0)}function $s(e,t,n){e.min=n.min+t.min,e.max=e.min+Ys(t)}function Ks(e,t,n){e.min=t.min-n.min,e.max=e.min+Ys(t)}function Qs(e,t,n){Ks(e.x,t.x,n.x),Ks(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 el(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 tl=.35;function nl(e,t,n){return{min:rl(e,t),max:rl(e,n)}}function rl(e,t){return"number"==typeof e?e:e[t]||0}const ol=()=>({x:{min:0,max:0},y:{min:0,max:0}});function il(e){return[e("x"),e("y")]}function al({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sl(e){return void 0===e||1===e}function ll({scale:e,scaleX:t,scaleY:n}){return!sl(e)||!sl(t)||!sl(n)}function cl(e){return ll(e)||ul(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ul(e){return dl(e.x)||dl(e.y)}function dl(e){return e&&"0%"!==e}function pl(e,t,n){return n+t*(e-n)}function ml(e,t,n,r,o){return void 0!==o&&(e=pl(e,o,r)),pl(e,n,r)+t}function hl(e,t=0,n=1,r,o){e.min=ml(e.min,t,n,r,o),e.max=ml(e.max,t,n,r,o)}function fl(e,{x:t,y:n}){hl(e.x,t.translate,t.scale,t.originPoint),hl(e.y,n.translate,n.scale,n.originPoint)}function gl(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function bl(e,t){e.min=e.min+t,e.max=e.max+t}function vl(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=ia(e.min,e.max,i);hl(e,t[n],t[r],a,t.scale)}const xl=["x","scaleX","originX"],yl=["y","scaleY","originY"];function Cl(e,t){vl(e.x,t,xl),vl(e.y,t,yl)}function Il(e,t){return al(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 wl=new WeakMap;class Al{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 Vs(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Zo(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qo(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),il(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ro.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ys(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&li.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=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}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(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:o}=this.getProps();o&&li.update(()=>o(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||!Nl(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ia(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ia(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&gr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:qs(e.x,n,o),y:qs(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=tl){return!1===e?e=0:!0===e&&(e=tl),{x:nl(e,"left","right"),y:nl(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&il(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||!gr(e))return!1;const n=e.current;Ni(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 o=function(e,t,n){const r=Il(e,n),{scroll:o}=t;return o&&(bl(r.x,o.offset.x),bl(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:el(e.x,t.x),y:el(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=al(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=il(a=>{if(!Nl(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(cs(e,n,0,t))}stopAnimation(){il(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){il(t=>{const{drag:n}=this.getProps();if(!Nl(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-ia(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!gr(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};il(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ys(e),o=Ys(t);return o>r?n=Na(t.min,t.max-r,e.min):r>o&&(n=Na(e.min,e.max-o,t.min)),Yr(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),il(t=>{if(!Nl(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(ia(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;wl.set(this.visualElement,this);const e=Yo(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();gr(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 o=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(il(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=tl,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Nl(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const El=e=>(t,n)=>{e&&li.update(()=>e(t,n))};const jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Tl={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!oo.test(e))return e;e=parseFloat(e)}return`${Sl(e,t.target.x)}% ${Sl(e,t.target.y)}%`}},kl={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xa.parse(e);if(o.length>5)return r;const i=xa.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=ia(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Bl extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rl,Object.assign(Gr,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||li.postRender(()=>{const e=i.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 Pl(e){const[n,r]=function(){const e=t.useContext(pr);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(jr);return l.default.createElement(Bl,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(Sr),isPresent:n,safeToRemove:r})}const Rl={borderRadius:{...Tl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tl,borderTopRightRadius:Tl,borderBottomLeftRadius:Tl,borderBottomRightRadius:Tl,boxShadow:kl},Ll=["TopLeft","TopRight","BottomLeft","BottomRight"],Gl=Ll.length,Ol=e=>"string"==typeof e?parseFloat(e):e,Dl=e=>"number"==typeof e||oo.test(e);function Ml(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Vl=Wl(0,.5,Zi),Hl=Wl(.5,.95,pi);function Wl(e,t,n){return r=>r<e?0:r>t?1:n(Na(e,t,r))}function Fl(e,t){e.min=t.min,e.max=t.max}function Xl(e,t){Fl(e.x,t.x),Fl(e.y,t.y)}function zl(e,t,n,r,o){return e=pl(e-=t,1/n,r),void 0!==o&&(e=pl(e,1/o,r)),e}function Zl(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){ro.test(t)&&(t=parseFloat(t),t=ia(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=ia(i.min,i.max,r);e===i&&(s-=t),e.min=zl(e.min,t,n,s,o),e.max=zl(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Yl=["x","scaleX","originX"],_l=["y","scaleY","originY"];function Jl(e,t,n,r){Zl(e.x,t,Yl,n?n.x:void 0,r?r.x:void 0),Zl(e.y,t,_l,n?n.y:void 0,r?r.y:void 0)}function Ul(e){return 0===e.translate&&1===e.scale}function $l(e){return Ul(e.x)&&Ul(e.y)}function Kl(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 Ql(e){return Ys(e.x)/Ys(e.y)}class ql{constructor(){this.members=[]}add(e){ps(this.members,e),e.scheduleRender()}remove(e){if(ms(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 ec(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const tc=(e,t)=>e.depth-t.depth;class nc{constructor(){this.children=[],this.isDirty=!1}add(e){ps(this.children,e),this.isDirty=!0}remove(e){ms(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tc),this.isDirty=!1,this.children.forEach(e)}}const rc=["","X","Y","Z"];let oc=0;const ic={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ac({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=oc++,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;ic.totalNodes=ic.resolvedTargetDeltas=ic.recalculatedProjection=0,this.nodes.forEach(cc),this.nodes.forEach(gc),this.nodes.forEach(bc),this.nodes.forEach(uc),e=ic,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 nc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hs),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:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(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:o})=>{const i=o-n;i>=t&&(ci(r),e(i-t))};return li.read(r,!0),()=>ci(r)}(r,250),jl.hasAnimatedSinceResize&&(jl.hasAnimatedSinceResize=!1,this.nodes.forEach(fc))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&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 o=this.options.transition||a.getDefaultTransition()||wc,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Kl(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={...ls(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||fc(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,ci(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(vc),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(pc);this.isUpdating||this.nodes.forEach(mc),this.isUpdating=!1,this.nodes.forEach(hc),this.nodes.forEach(sc),this.nodes.forEach(lc),this.clearAllSnapshots();const e=performance.now();ti.delta=Yr(0,1e3/60,e-ti.timestamp),ti.timestamp=e,ti.isProcessing=!0,ii.update.process(ti),ii.preRender.process(ti),ii.render.process(ti),ti.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(dc),this.sharedNodes.forEach(xc)}scheduleUpdateProjection(){li.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){li.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(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!$l(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||cl(this.latestValues)||i)&&(o(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)),Ac((r=n).x),Ac(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&&(bl(t.x,n.offset.x),bl(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xl(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Xl(t,e);const{scroll:n}=this.root;n&&(bl(t.x,-n.offset.x),bl(t.y,-n.offset.y))}bl(t.x,o.offset.x),bl(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xl(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&&Cl(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),cl(r.latestValues)&&Cl(n,r.latestValues)}return cl(this.latestValues)&&Cl(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xl(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!cl(n.latestValues))continue;ll(n.latestValues)&&n.updateSnapshot();const r=ol();Xl(r,n.measurePageBox()),Jl(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return cl(this.latestValues)&&Jl(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!==ti.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:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=ti.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}},Qs(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Xl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,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(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,$s(a.x,s.x,l.x),$s(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xl(this.target,this.layout.layoutBox),fl(this.target,this.targetDelta)):Xl(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}},Qs(this.relativeTargetOrigin,this.target,e.target),Xl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ic.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ll(this.parent.latestValues)&&!ul(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===ti.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=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||!o&&!i)return;Xl(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Cl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,fl(e,a)),r&&cl(i.latestValues)&&Cl(e,i.latestValues))}t.x=gl(t.x),t.y=gl(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;Us(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ec(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ic.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:{},o={...this.latestValues},i={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 a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Ic));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;yc(i.x,e.x,n),yc(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qs(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Cc(e.x,t.x,n.x,r),Cc(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Kl(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Xl(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=ia(0,void 0!==n.opacity?n.opacity:1,Vl(r)),e.opacityExit=ia(void 0!==t.opacity?t.opacity:1,0,Hl(r))):i&&(e.opacity=ia(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Gl;o++){const i=`border${Ll[o]}Radius`;let a=Ml(t,i),s=Ml(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Dl(a)===Dl(s)?(e[i]=Math.max(ia(Ol(a),Ol(s),r),0),(ro.test(s)||ro.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=ia(t.rotate||0,n.rotate||0,r))}(o,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&&(ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=li.update(()=>{jl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Vr(e)?e:vs(e);return r.start(cs("",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:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Nc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ys(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ys(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Xl(t,n),Cl(t,o),Us(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ql);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<rc.length;t++){const o="rotate"+rc[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,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 o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Mo(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Mo(e.pointerEvents)||""),this.hasProjected&&!cl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ec(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Gr){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Gr[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Mo(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(pc),this.root.sharedNodes.clear()}}}function sc(e){e.updateLayout()}function lc(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:o}=e.options,i=n.source!==e.layout.source;"size"===o?il(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Ys(r);r.min=t[e].min,r.max=r.min+o}):Nc(o,n.layoutBox,t)&&il(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Ys(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Us(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Us(s,e.applyTransform(r,!0),n.measuredBox):Us(s,t,n.layoutBox);const l=!$l(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Qs(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Qs(s,t,i.layoutBox),Kl(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function cc(e){ic.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 uc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dc(e){e.clearSnapshot()}function pc(e){e.clearMeasurements()}function mc(e){e.isLayoutDirty=!1}function hc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gc(e){e.resolveTargetDelta()}function bc(e){e.calcProjection()}function vc(e){e.resetRotation()}function xc(e){e.removeLeadSnapshot()}function yc(e,t,n){e.translate=ia(t.translate,0,n),e.scale=ia(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cc(e,t,n,r){e.min=ia(t.min,n.min,r),e.max=ia(t.max,n.max,r)}function Ic(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wc={duration:.45,ease:[.4,0,.1,1]};function Ac(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Nc(e,t,n){return"position"===e||"preserve-aspect"===e&&!_s(Ql(t),Ql(n),.2)}const Ec=ac({attachResizeListener:(e,t)=>Xo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Sc=ac({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new Ec({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Tc={pan:{Feature:class extends ei{constructor(){super(...arguments),this.removePointerDownListener=pi}onPointerDown(e){this.session=new Vs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:El(e),onStart:El(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&li.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Yo(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 ei{constructor(e){super(e),this.removeGroupControls=pi,this.removeListeners=pi,this.controls=new Al(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pi}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sc,MeasureLayout:Pl}},kc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Bc(e,t,n=1){Ni(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=kc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():zr(o)?Bc(o,t,n+1):o}const Pc=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rc=e=>Pc.has(e),Lc=e=>e===_r||e===oo,Gc=(e,t)=>parseFloat(e.split(", ")[t]),Oc=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Gc(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Gc(t[1],e):0}},Dc=new Set(["x","y","z"]),Mc=Or.filter(e=>!Dc.has(e));const Vc={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:Oc(4,13),y:Oc(5,14)},Hc=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Rc);let i=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Cs(c);const d=t[o];let p;if(Oo(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Cs(c);for(let n=t;n<e&&null!==d[n];n++)p?Ni(Cs(d[n])===p,"All keyframes must be of the same type"):(p=Cs(d[n]),Ni(p===u||Lc(u)&&Lc(p),"Keyframes must be of the same dimension as the current value"))}else p=Cs(d);if(u!==p)if(Lc(u)&&Lc(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===oo&&(t[o]=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[o]=u.transform(d):(a||(i=function(e){const t=[];return Mc.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),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))}),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=Vc[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Vc[n](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),mr&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Wc(e,t,n,r){return(e=>Object.keys(e).some(Rc))(t)?Hc(e,t,n,r):{target:t,transitionEnd:r}}const Fc=(e,t,n,r)=>{const o=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(!zr(t))return;const n=Bc(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!zr(o))continue;const i=Bc(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Wc(e,t=o.target,n,r=o.transitionEnd)},Xc={current:null},zc={current:!1};function Zc(){if(zc.current=!0,mr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xc.current=e.matches;e.addListener(t),t()}else Xc.current=!1}const Yc=new WeakMap,_c=Object.keys(Er),Jc=_c.length,Uc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$c=yr.length;class Kc{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){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=()=>li.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Cr(t),this.isVariantNode=Ir(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!==a[e]&&Vr(t)&&(t.set(a[e],!1),us(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Yc.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)),zc.current||Zc(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xc.current),"production"!==process.env.NODE_ENV&&gs(!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(){Yc.delete(this.current),this.projection&&this.projection.unmount(),ci(this.notifyUpdate),ci(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=Dr.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&li.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;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?Ai(!1,e):Ni(!1,e)}for(let e=0;e<Jc;e++){const n=_c[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Er[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&gr(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}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<Uc.length;t++){const n=Uc[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 o in t){const i=t[o],a=n[o];if(Vr(i))e.addValue(o,i),us(r)&&r.add(o),"development"===process.env.NODE_ENV&&gs("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Vr(a))e.addValue(o,vs(i,{owner:e})),us(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,vs(void 0!==t?t:i,{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<$c;e++){const n=yr[e],r=this.props[n];(br(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=vs(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=Lo(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Vr(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new hs),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Qc extends Kc{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},o){let i=function(e,t,n){const r={};for(const o in e){const e=Ns(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(ds(c)||as(c))?c=parseFloat(c):!ws(c)&&xa.test(l)&&(c=is(a,l)),e.addValue(a,vs(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Fc(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class qc extends Qc{readValueFromInstance(e,t){if(Dr.has(t)){const e=os(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Xr(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Il(e,t)}build(e,t,n,r){uo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Po(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Vr(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){To(e,t,n,r)}}class eu extends Qc{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Dr.has(t)){const e=os(t);return e&&e.default||0}return t=ko.has(t)?t:So(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Ro(e,t)}build(e,t,n,r){wo(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Bo(e,t,0,r)}mount(e){this.isSVGTag=No(e.tagName),super.mount(e)}}const tu=(e,t)=>Lr(e)?new eu(t,{enableHardwareAcceleration:!1}):new qc(t,{enableHardwareAcceleration:!0}),nu={...Ds,...yi,...Tc,...{layout:{ProjectionNode:Sc,MeasureLayout:Pl}}},ru=Pr((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Lr(e)?Wo:Fo,preloadedFeatures:n,useRender:jo(t),createVisualElement:r,Component:e}}(e,t,nu,tu));function ou(){const e=t.useRef(!1);return hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class iu 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 au({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),i=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:a,left:s}=i.current;if(n||!o.current||!e||!t)return;o.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: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(iu,{isPresent:n,childRef:o,sizeRef:i},l.cloneElement(e,{ref:o}))}const su=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const c=Go(lu),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;o&&o()},register:e=>(c.set(e,!1),()=>c.delete(e))}),a?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&o&&o()},[r]),"popLayout"===s&&(e=l.createElement(au,{isPresent:r},e)),l.createElement(pr.Provider,{value:d},e)};function lu(){return new Map}const cu=e=>e.key||"";const uu=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Ni(!i,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(jr).forceRender||function(){const e=ou(),[n,r]=t.useState(0),o=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>li.postRender(o),[o]),n]}()[0],u=ou(),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(hr(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=cu(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(su,{key:cu(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e)));p=[...p];const v=h.current.map(cu),x=d.map(cu),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"===s&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const i=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(),o&&o()}};g=l.createElement(su,{key:cu(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:a,mode:s},r),m.set(t,g)}p.splice(i,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(su,{key:cu(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)}),"production"!==process.env.NODE_ENV&&"wait"===s&&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 du(){!zc.current&&Zc();const[e]=t.useState(Xc.current);return"production"!==process.env.NODE_ENV&&gs(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const pu={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 mu({children:t,animationType:n=cr,disableAnimation:r=!0,whileHover:o,whileTap:i,transition:a,...s}){const c=du(),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=pu[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,...o}:o,m=(null==d?void 0:d.whileTap)||i?{...null==d?void 0:d.whileTap,...i}:void 0,h=d?{...d.transition,...a}:a;if("string"==typeof u.type){const t=ru[u.type];return e.jsx(t,{...u.props,ref:u.ref,whileHover:p,whileTap:m,transition:h,...s})}return e.jsx(ru.div,{whileHover:p,whileTap:m,transition:h,...s,children:u})}mu.displayName="AnimationWrapper";const hu=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()},fu=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:a,buttonClassName:s,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,disableAnimation:p,animationType:m=cr,as:h="button",...f},g)=>{const b=(()=>{const e=Ne((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 focus:ring-offset-transparent cursor-pointer transition-colors duration-200 align-top sm:whitespace-nowrap",a?"w-full":"w-auto"),r=Ne((i||n)&&"cursor-not-allowed",n&&"pl-7");return Ne(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-border-secondary-on-bg-fill disabled:bg-bg-fill-secondary"}[t]||"",r,s)})();let v=`button--${t}`;n&&(v+=" button--loading"),i&&(v+=" button--disabled");const x=`${v} ${b}`,y=e.jsxs(e.Fragment,{children:[n?e.jsx($n,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ne(hu(l)),children:o}),r]}):r,c?e.jsx($n,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(mu,{disableAnimation:p,animationType:m,children:e.jsx("a",{ref:g,className:Ne(x),...f,"data-component":"BrandButton","data-variant":"anchor",children:y})}):e.jsx(mu,{disableAnimation:p,animationType:m,children:e.jsx("button",{ref:g,className:Ne(x),disabled:i||n,...f,"data-component":"BrandButton","data-variant":"button",children:y})})});fu.displayName="BrandButton";const gu=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:o,buttonPrefix:i,href:a,target:s="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:m,renderCheckPlans:h,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:b,idNameToOpen:v,onModalButtonClick:x,onClick:y,iconName:C,iconFill:I=0,size:w,iconSize:A=24,preserveQueryParameters:N,disableAnimation:E,animationType:j=cr,...S}=t;if("check availability"===m&&h){const i=null==h?void 0:h({ctaText:o,buttonVariant:r,showButtonAs:n,cta:{...t}});return l.default.isValidElement(i)?e.jsx(mu,{disableAnimation:E,animationType:j,children:i}):i}function T(){"modal"===g&&(null==x||x(b)),"clickId"===g&&function(){var e;if("clickId"===g&&v){const t=document.getElementById(v);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),null===(e=t.click)||void 0===e||e.call(t))}}()}function k(e){T(),null==y||y(e)}function B(e){T(),null==y||y(e)}const P="undefined"!=typeof window?window.location.search:"",R=m?void 0:a&&N&&P?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(ot),o=new Set([...r,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,n]=e.split("?");i=t,a=new URLSearchParams(n||"")}}catch(t){return e}const s=new URLSearchParams(a);n.forEach((e,t)=>{o.has(t.toLowerCase())||s.has(t)||s.set(t,e)});const l=s.toString();return l?`${i}?${l}`:i}(a,P):a;let L=e.jsx(ir,{onClick:B,className:f,...S});switch(n){case"solid":L=R?e.jsx(fu,{as:"a",href:R,id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:k,disableAnimation:E,animationType:j}):e.jsx(fu,{id:c,variant:r,text:o,label:i,fullWidth:p,size:w,onClick:B,buttonClassName:f,disableAnimation:E,animationType:j});break;case"text":L=e.jsxs(tr,{title:o,href:R,target:s,variant:d||"default",className:`text-text-brand ${u||""}`,onClick:k,children:[o," ",C&&e.jsx($n,{name:C,size:A,fill:I})]});break;case"button-with-icon":L=R?e.jsx(fu,{as:"a",href:R,id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:k,iconName:C,iconSize:A,iconFill:I,disableAnimation:E,animationType:j}):e.jsx(fu,{id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:B,iconName:C,iconSize:A,iconFill:I,disableAnimation:E,animationType:j});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);L=e.jsxs(tr,{href:R,target:s,onClick:k,className:Ne("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,f),"aria-label":o,children:[e.jsx(Kn,{"aria-label":o,className:"label1 text-nowrap",children:o}),C&&e.jsx($n,{name:C,fill:I,size:A,weight:"200"})]});break}}return e.jsx(mu,{disableAnimation:E,animationType:j,children:L})};var bu;const vu=null!==(bu=c.default)&&void 0!==bu?bu:c,xu=({href:t,title:n,description:r,date:o,category:i,image:a,imageComponent:s,readMoreText:l="Read more",asGrid:c=!0,index:u})=>{const d=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 w-full 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";return e.jsxs("article",{className:d,"data-section-type":"blog-card","data-section-index":u,children:[e.jsx(vu,{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:a?s?e.jsx(s,{src:a.src,alt:a.alt,width:a.width,height:a.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:a.src,alt:a.alt,width:a.width,height:a.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:i}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:o})]})]}),n&&e.jsx(vu,{href:t,className:"heading6 m-0 line-clamp-3 font-black transition-colors duration-150 hover:text-text-brand",children:n}),r&&e.jsx(Kn,{className:"body1 m-0 line-clamp-3 flex-1 text-text",children:r}),e.jsxs(vu,{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(Kn,{"aria-label":`${l} about ${n||"this article"}`,className:"label1 text-nowrap",children:l}),e.jsx($n,{name:"expand_circle_right",fill:1,size:24,weight:"200"})]})]})]})},yu=(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),Cu=({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()},Iu=t.forwardRef(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net"),s=a&&i.endsWith(".svg"),l=a&&!s?{loader:Cu,unoptimized:!1}:{unoptimized:s};return e.jsx(yu,{ref:r,className:Ne(t),...n,...l})});Iu.displayName="NextImage";const wu={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Au=({card:t,lgWidth:n,mdWidth:r})=>{var o,i,a,s;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?wu[m]:wu.left,y=h?"cursor-pointer":"",C=h?()=>{"undefined"!=typeof window&&window.open(h,"_blank")}:void 0;return b?(null==l?void 0:l.href)?e.jsx(Iu,{src:l.href,alt:null!==(i=null!==(o=l.title)&&void 0!==o?o:c)&&void 0!==i?i:"promo-bar-image",width:148,height:40,onClick:C,className:y}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ne("callout-card relative flex h-full w-full flex-col gap-5 px-0 pb-4 pt-0 md:items-start md:gap-6 lg:pb-0",v&&"rounded-3xl shadow-card",r,n,g),children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ne("relative h-[233px] w-full overflow-hidden sm:mb-1 md:h-[274px] md:flex-none lg:h-[330px] lg:mb-0",f),children:e.jsx(Iu,{src:l.href,alt:null!==(s=null!==(a=l.title)&&void 0!==a?a:c)&&void 0!==s?s:"card-image",width:l.width||400,height:l.height||330,onClick:C,className:Ne("h-full w-full rounded-[40px] object-cover",y)})}):null,u?e.jsx(Kn,{as:"h6",className:"heading6 text-text",children:u}):null,d?e.jsx(Kn,{as:"div",className:"body1 -mt-1 mb-0 flex-1 text-text md:-mt-2 lg:mt-2",children:d}):null,e.jsx("div",{className:Ne(x,"mt-auto"),children:p?e.jsx(gu,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...p,iconName:"expand_circle_right",iconFill:1}):null})]})},Nu=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:o="FullImageCard",title:i,description:a,caption:s,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=i?e.jsx(Kn,{as:"h3",className:"body1 text-text xl:heading6",children:i}):null;return e.jsxs("section",{id:o,className:Ne("callout-card relative flex flex-col rounded-3xl bg-white p-0",h&&"shadow-card",r,n,"w-full",d),"aria-labelledby":`card-title-${o}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ne("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(Iu,{src:l.href,alt:null!==(n=null!==(t=l.title)&&void 0!==t?t:i)&&void 0!==n?n:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return g?e.jsx(tr,{href:g,tabIndex:-1,target:null==f?void 0:f.target,children:r}):r})()}):null,e.jsxs("div",{className:Ne("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(tr,{href:g,target:null==f?void 0:f.target,className:"no-underline hover:underline",children:b}):b,a?e.jsx(Kn,{as:"p",className:"body2 mt-4 text-text md:body1",children:a}):null]}),s?e.jsx(Kn,{as:"p",className:"footnote mt-5 text-text-secondary",children:s}):null]}),c?e.jsx("div",{className:"mt-2 flex items-end",children:e.jsx(gu,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...c,iconName:"expand_circle_right",iconFill:1})}):null]})]})},Eu={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},ju={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Su={left:"justify-start",right:"justify-end",center:"justify-center"},Tu=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},ku=({card:t,lgWidth:n,mdWidth:r,className:o,contentClassName:i,style:a})=>{var s,l,c,u,d,p,m,h,f,g,b,v,x,y,C,I,w;const A=null===(s=t.imageView)||void 0===s?void 0:s.toLowerCase(),N="full"===A,E="margin"===A,j="standard"===A,S="icon"===A||"inset"===A||!A&&!!t.image,T=j||S,k=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",B=t.ctaAlignment&&ju[t.ctaAlignment]||ju.left,P=t.ctaAlignmentBottom&&Su[t.ctaAlignmentBottom]||Su.left,R=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],L=T&&t.applyCardBackgroundColor,G={...a,...L&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...L&&t.textColor?{"--scc-fg":t.textColor}:{},...L&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...L&&t.showBackgroundImage&&R?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ee(R))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},O=n=>{var r,o;return t.image?e.jsx("div",{className:Ne("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Iu,{src:t.image,alt:null!==(o=null!==(r=t.imageAlt)&&void 0!==r?r:t.title)&&void 0!==o?o:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ne("w-full",!n&&"rounded-t-3xl")})}):null},D=L&&t.textColor?{color:t.textColor}:void 0,M=t.title?e.jsx(Kn,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:D,children:t.title}):null,V=(null===(d=t.cta)||void 0===d?void 0:d.href)&&M?e.jsx(tr,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:D,children:M}):M,H=(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:Ne("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!N&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(b=Eu[null!==(g=t.backgroundColor)&&void 0!==g?g:""])&&void 0!==b?b:""),r,n,o),style:G,"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:Ne("top-link m-6 flex items-center lg:m-8",P),children:e.jsxs(tr,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx($n,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&N?O(!1):null,t.image&&E?O(!0):null,e.jsxs("div",{className:Ne("relative flex flex-1 flex-col justify-between px-6 pb-8 pt-7 lg:px-8 lg:py-8",i),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ne("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ne(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||N||E?null:(()=>{var n,r;if(!t.image)return null;const o=j&&t.imageWidth||60,i=j&&t.imageHeight||60;return e.jsx("div",{className:Ne("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:k},children:e.jsx(Iu,{src:t.image,alt:null!==(r=null!==(n=t.imageAlt)&&void 0!==n?n:t.title)&&void 0!==r?r:"card-icon",width:o,height:i,className:Ne("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[V,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(Kn,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,H?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,o]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(Kn,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(Kn,{className:"body2 font-bold text-text",children:o})})]},`wh-${n}`)}),null===(C=t.phoneNumber)||void 0===C?void 0:C.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx($n,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(tr,{href:Tu(t),className:"text-inherit no-underline",children:e.jsx(Kn,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(Kn,{as:"div",className:"body1 text-text",style:D,children:t.body}):null,t.richText?e.jsx(Kn,{as:"div",className:"body1 text-text",style:D,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ne("mt-2",B),children:e.jsx(gu,{linkVariant:"unstyled",linkClassName:Ne("label1 flex items-center gap-2 text-text",L&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(I=t.cta.iconName)&&void 0!==I?I:"expand_circle_right",iconFill:null!==(w=t.cta.iconFill)&&void 0!==w?w:1})}):null]})]})},Bu={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]"},Pu={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},Ru={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)]"},Lu=e=>Math.max(1,Math.min(6,e)),Gu=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=Ne(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});Gu.displayName="Image";const Ou=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,iconSize:a=24,iconClassName:s,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 ${o?" 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==i?void 0:i({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(ir,{onClick:()=>{p(!0),n()},className:Ne(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($n,{className:Ne(s,o?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:a})]}),h]})},Du=({planName:n,planSubtext:r,speed:o,price:i,description:a,bestValue:s=!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[C,I]=t.useState(!1),w=void 0!==h?h:C,A="dark"===d;return e.jsxs("article",{className:Ne("relative flex h-full w-full max-w-[392px] flex-col",!s&&"md:pt-[38px]"),children:[s&&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:Ne("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",A?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",s?"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(Kn,{as:"h3",className:Ne("subheading2",A?"text-text-accent-on-bg-inverse":"text-text-brand"),children:n}),e.jsx(Kn,{as:"p",className:"label3 text-wrap "+(A?"text-text-accent-on-bg-inverse":"text-text-brand"),children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(Kn,{as:"span",className:Ne("label2 mr-1 mt-[2px]",A?"text-text-inverse":"text-text"),children:"$"}),e.jsx(Kn,{as:"span",className:Ne("subheading6",A?"text-text-inverse":"text-text"),children:i.split(".")[0]}),e.jsxs(Kn,{as:"span",className:Ne("label2",A?"text-text-inverse":"text-text"),children:[i.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Kn,{className:Ne("body2",A?"text-text-inverse":"text-text"),children:a})}),(null==c?void 0:c.length)?e.jsx("div",{className:Ne("flex-col items-center rounded-surface-sm p-2",A?"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(Gu,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Kn,{as:"div",className:Ne("body3",A?"text-text-inverse":"text-text"),children:t.title})]},t.title))}):null,e.jsx(Ou,{onSelect:g,speed:o,isSelected:A,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(ir,{onClick:()=>{f?f():I(!C)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(Kn,{as:"h4",className:Ne("label3",A?"text-text-inverse":"text-text"),children:p}),e.jsx($n,{name:"keyboard_arrow_down",fill:1,size:24,className:Ne("transition-transform duration-300",w&&"rotate-180",A?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ne("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(Qn,{items:m,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:A?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:""+(A?"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(Gu,{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(Kn,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},Mu=({title:t,quote:n,rating:r,author:o,role:i,avatarUrl:a,isActive:s=!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",s?"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(Kn,{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($n,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),o&&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:a?e.jsx(u.default,{src:a,alt:o,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:o.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:o}),e.jsx(Kn,{as:"p",className:"body3 text-text",children:i})]})]})]});function Vu({fields:n,renderCheckPlans:r,isVisible:o=!0}){var i,a,s,l;const c=(null===(s=null===(a=null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||void 0===a?void 0:a[0])||void 0===s?void 0:s.benefitsExpanded)||!1,[u,d]=t.useState(c),[p,m]=t.useState({}),[h,f]=t.useState(0),[g,b]=t.useState(0),[v,x]=t.useState(0),[y,C]=t.useState(!1),I=(null===(l=null==n?void 0:n.items)||void 0===l?void 0:l.items)||[],w=I.length>2,A=!1!==(null==n?void 0:n.showArrows)&&w,N=t.useRef([]),E=t.useRef(null),j=t.useRef(0);t.useEffect(()=>{if(!w||!o)return;const e=()=>{var e;const t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0;if(0===t)return;const n=t-32,r=Math.max(1,Math.floor((n+16)/408));b(Math.max(0,I.length-r))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[w,o,I.length]),t.useEffect(()=>{f(e=>Math.min(e,g))},[g]);const S=t.useCallback(()=>{w&&f(e=>Math.max(0,e-1))},[w]),T=t.useCallback(()=>{w&&f(e=>Math.min(g,e+1))},[w,g]),k=t.useCallback(e=>{w&&(j.current=e.touches[0].clientX,C(!0))},[w]),B=t.useCallback(e=>{if(!y)return;const t=e.touches[0].clientX-j.current;x(0===h&&t>0||h>=g&&t<0?.3*t:t)},[y,h,g]),P=t.useCallback(()=>{var e;if(!y)return;C(!1);const t=.15*((null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0);v>t?S():v<-t&&T(),x(0)},[y,v,S,T]);if(t.useEffect(()=>{if(!w||!o)return;const e=()=>{const e=N.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)},[w,o,u,I.length]),!I.length&&!(null==n?void 0:n.title))return null;const R=(t,n,o=!1)=>{var i,a,s,l,c,h,f,g;const b=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),v=(null==b?void 0:b[0])||"",x=(null==b?void 0:b[1])||"",y=(null===(s=null===(a=null==t?void 0:t.priceSuffix)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${y}`,I=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],w=(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=o?p[n]||!1:u;return e.jsx("div",{ref:o?void 0:e=>{e&&!N.current.includes(e)&&(N.current[n]=e)},className:Ne(o?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Du,{planName:v,planSubtext:x,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:w,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:I,isExpanded:j,onToggleExpand:()=>{o?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)};return w?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:I.map((e,t)=>R(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[A&&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:[h>0?e.jsx(ir,{onClick:S,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($n,{name:"arrow_back",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"}),h<g?e.jsx(ir,{onClick:T,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($n,{name:"arrow_forward",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"})]}),e.jsx("div",{ref:E,className:"mx-auto max-w-[1280px] select-none overflow-hidden",onTouchStart:k,onTouchMove:B,onTouchEnd:P,onTouchCancel:P,children:e.jsx("div",{className:Ne("ml-8 flex items-stretch gap-4 pb-4",y?"transition-none":"transition-transform duration-500 ease-in-out"),style:{transform:`translateX(calc(-${h} * (392px + 16px) + ${v}px))`},children:I.map((e,t)=>R(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-4",children:I.map((e,t)=>R(e,t))})}function Hu({fields:t,renderCheckPlans:n,activeTab:r,tabs:o}){var i;const a=(null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.items)||[];return o&&o.length>1&&r?e.jsx(e.Fragment,{children:o.map(i=>{const s=a.filter(e=>(e.productCategory||o[0])===i),l={...t,items:{...t.items,items:s}};return e.jsx("div",{style:{display:i===r?"block":"none"},"aria-hidden":i!==r,children:e.jsx(Vu,{fields:l,renderCheckPlans:n,isVisible:i===r})},i)})}):e.jsx(Vu,{fields:t,renderCheckPlans:n})}const Wu=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:o,swipeOffset:i,isSwiping:a,isMobile:s,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>o/2&&(u-=o),u<-o/2&&(u+=o);const d=0===u,p=1===Math.abs(u),m=u*c+i/l*100,h=!s||(a?d||p:d);return e.jsx("div",{className:Ne("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",a?"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(Mu,{...t,isActive:d,className:"h-full"})})});Wu.displayName="TestimonialCarouselSlide";const Fu=({fields:n,autoScroll:r=!0,autoScrollInterval:o=8e3})=>{var i;const a=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[];if(!a||0===a.length)return null;const s=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:o=.15,mobileBreakpoint:i=768,autoScrollInterval:a=8e3,enableAutoScroll:s=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),C={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:o,MOBILE_BREAKPOINT:i,AUTO_SCROLL_INTERVAL:a};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 I=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),A=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),N=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*o;u>e?w():u<-e&&I(),d(0),s&&a>0&&(v.current=setInterval(()=>{I()},a))},[u,h,o,w,I,s,a]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<i)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),t.useEffect(()=>{if(s&&0!==n&&0!==a)return v.current=setInterval(()=>{I()},a),()=>{v.current&&clearInterval(v.current)}},[I,n,s,a]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:I,prevSlide:w,goToSlide:A,handleTouchStart:N,handleTouchMove:E,handleTouchEnd:j,constants:C}}({itemCount:a.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:o,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(ir,{onClick:s.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($n,{name:"arrow_back",size:24})}),e.jsx(ir,{onClick:s.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($n,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:s.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:s.handleTouchStart,onTouchMove:s.handleTouchMove,onTouchEnd:s.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:a.map((t,n)=>e.jsx(Wu,{item:t,index:n,currentIndex:s.currentIndex,totalItems:a.length,swipeOffset:s.swipeOffset,isSwiping:s.isSwiping,isMobile:s.isMobile,containerWidth:s.containerWidth,cardOffsetPercentage:s.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:a.map((t,n)=>e.jsx("button",{onClick:()=>s.goToSlide(n),className:Ne("h-2 w-2 rounded-full transition-all duration-300",s.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Xu=({tabs:n,activeTab:r,onChange:o,className:i})=>{const a=n.indexOf(r),s=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=s.current[a];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[a,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ne("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",i),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=>{s.current[n]=e},onClick:()=>o(t),className:Ne("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))]})})},zu=({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($n,{name:"play_arrow",size:72,fill:1,className:"max-w-[72px] transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Zu=n=>{const{link:r,containerClassName:o,autoplay:i=!1,debug:a=!1}=n,{href:s,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("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[r]);if(a&&console.log("[VimeoEmbed] href:",s,"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],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${l}?${new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e.jsx("div",{className:Ne("relative h-0 w-full overflow-hidden pb-[56.25%]",o),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 Yu=n=>{const{link:r,containerClassName:o,autoplay:i=!1}=n,a=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]),s=i?"?autoplay=1":"";return e.jsx("div",{className:Ne("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${a}${s}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},_u=({link:n,anchorName:r,linkColorClassName:o})=>{const[i,a]=l.default.useState(!1),s=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)}))})(s,()=>a(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(gu,{...n,linkClassName:Ne("body3 flex items-center h-full",o||"text-text"),linkVariant:"unstyled"},`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:s,children:[e.jsxs(gu,{onClick:()=>a(e=>!e),"aria-expanded":i,buttonClassName:Ne("group body3 flex items-center h-full",o||"text-text"),showButtonAs:"unstyled",children:[e.jsx(Kn,{as:"span",className:"group-hover:underline",children:null!=u?u:null}),e.jsx($n,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ne("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",i&&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"))&&a(!1)},children:p.map((t,n)=>e.jsx("li",{className:"submenu-link type1",children:e.jsx(gu,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},Ju=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(gu,{...t,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:o,title:i,items:a}=t,s=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(gu,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center w-full h-11 px-4",showButtonAs:"unstyled",children:[null!=i?i:null,e.jsx($n,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},o),n&&s.length>0&&e.jsx(Uu,{items:s})]})},Uu=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link type2",children:e.jsx(gu,{...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}`),$u=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:a,prefix:s,containerClassName:l,...c}=t,u=e.jsxs(tr,{...c,className:Ne("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"}[o],{primary:"border-[0.727px] border-border text-text"}[r],a),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ne("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"}[o]),children:e.jsx($n,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]});return null==s||!1===s||""===s?u:e.jsxs("span",{className:Ne("flex items-center gap-2",l),children:["string"==typeof s||"number"==typeof s?e.jsx("span",{className:"text-sm font-normal text-text",children:s}):s,u]})};$u.displayName="CallButton";const Ku=t.forwardRef((n,r)=>{const{className:o,size:i,required:a,placeholder:s,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:C,...I}=n,w=y?"error":c,[A,N]=t.useState(!1),[E,j]=t.useState(!1),[S,T]=t.useState(C||"text"),k=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:Ne("inline-block pb-1"),children:e.jsxs(Kn,{as:"span",className:"footnote text-text",children:[l,a?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ne("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]"}[i||"medium"],b,(A||"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($n,{name:d,fill:p?1:0,size:h,className:Ne(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||I.disabled,className:Ne("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:s,type:S,...I,onMouseOver:()=>N(!0),onMouseOut:()=>N(!1),onFocus:e=>{var t;null===(t=I.onFocus)||void 0===t||t.call(I,e),j(!0)},onBlur:e=>{var t;null===(t=I.onBlur)||void 0===t||t.call(I,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:k,children:e.jsx($n,{name:"text"===S?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Kn,{className:Ne("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx($n,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Ku.displayName="Input";const Qu=t=>{var n;const{primaryNavigationLinks:r,utilityNavigationLinks:o,supportNavigationLinks:i,accountNavigationLinks:a,showCallButton:s,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],o=e=>{var t,o,i,a;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(a=(i=n).focus)||void 0===a||a.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[d]);const m=()=>{p(!1)};return e.jsxs("div",{children:[e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>p(!0),children:e.jsx($n,{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:Ne("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:Ne("flex items-center px-4",!1!==s||!1!==c?"justify-between":"justify-end"),children:[!1!==s||!1!==c?e.jsx("div",{children:e.jsx($u,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:m,children:e.jsx($n,{name:"close"})})})]}),!1!==u?e.jsx(qu,{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||[],...i||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx(Ju,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((n,r)=>e.jsx("li",{children:e.jsx(gu,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ne("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}`))})]})]})})]})},qu=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:o,searchBarIconURL:i}=t,[a,s]=l.default.useState(""),c=l.default.useRef(null),u=e=>{n(),e.preventDefault(),r(a)};return l.default.useEffect(()=>{o||s("")},[o]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Iu,{src:i,width:32,height:32,className:"ml-2",alt:"Search icon",role:"button",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Ku,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},ed=t=>{const{searchBarIconURL:n,onSearch:r}=t,[o,i]=l.default.useState(""),a=l.default.useRef(null),s=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:s,children:[e.jsx(Iu,{src:n,width:32,height:32,alt:"Search icon",role:"button",onClick:s}),e.jsx(Ku,{ref:a,type:"text",name:"search",placeholder:"Search...",value:o,onChange:e=>i(e.target.value),className:"body3 rounded-full px-3 text-text",containerClassName:"px-0 h-full border-none rounded-full",autoComplete:"off"})]})},td={closed:{opacity:0},open:{opacity:1}},nd={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},rd={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function od(){return od=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},od.apply(null,arguments)}function id(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 ad(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function sd(...e){return t.useCallback(ad(...e),e)}function ld(...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 o=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}const cd=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},ud=l["useId".toString()]||(()=>{});let dd=0;function pd(e){const[t,n]=l.useState(ud());return cd(()=>{n(e=>null!=e?e:String(dd++))},[e]),e||(t?`radix-${t}`:"")}function md(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 hd({prop:e,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=md(n);return t.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=md(r);return[s,t.useCallback(t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}const fd=t.forwardRef((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(vd);if(a){const e=a.props.children,r=i.map(n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(gd,od({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(gd,od({},o,{ref:n}),r)});fd.displayName="Slot";const gd=t.forwardRef((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...xd(o,r.props),ref:n?ad(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});gd.displayName="SlotClone";const bd=({children:e})=>t.createElement(t.Fragment,null,e);function vd(e){return t.isValidElement(e)&&e.type===bd}function xd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const yd=["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:o,...i}=e,a=o?fd:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(a,od({},i,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const Cd="dismissableLayer.update",Id="dismissableLayer.pointerDownOutside",wd="dismissableLayer.focusOutside";let Ad;const Nd=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ed=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Nd),[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=sd(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,I=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=md(e),o=t.useRef(!1),i=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Sd(Id,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));I&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),A=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=md(e),o=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Sd(wd,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(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=md(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==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ad=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),jd(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ad)}},[p,h,o,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),jd())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(Cd,e),()=>document.removeEventListener(Cd,e)},[]),t.createElement(yd.div,od({},u,{ref:g,style:{pointerEvents:C?I?"auto":"none":void 0,...e.style},onFocusCapture:id(e.onFocusCapture,A.onFocusCapture),onBlurCapture:id(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:id(e.onPointerDownCapture,w.onPointerDownCapture)}))});function jd(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function Sd(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}(i,a):i.dispatchEvent(a)}const Td="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",Bd={bubbles:!1,cancelable:!0},Pd=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=t.useState(null),u=md(i),d=md(a),p=t.useRef(null),m=sd(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(o){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Od(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Od(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Od(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()}}},[o,l,h.paused]),t.useEffect(()=>{if(l){Dd.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Td,Bd);l.addEventListener(Td,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Od(r,{select:t}),document.activeElement!==n)return}((e=Rd(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Od(l))}return()=>{l.removeEventListener(Td,u),setTimeout(()=>{const e=new CustomEvent(kd,Bd);l.addEventListener(kd,d),l.dispatchEvent(e),e.defaultPrevented||Od(null!=t?t:document.body,{select:!0}),l.removeEventListener(kd,d),Dd.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!o)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,[o,i]=function(e){const t=Rd(e),n=Ld(t,e),r=Ld(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Od(i,{select:!0})):(e.preventDefault(),r&&Od(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.createElement(yd.div,od({tabIndex:-1},s,{ref:m,onKeyDown:f}))});function Rd(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 Ld(e,t){for(const n of e)if(!Gd(n,{upTo:t}))return n}function Gd(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 Od(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 Dd=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Md(e,t),e.unshift(t)},remove(t){var n;e=Md(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Md(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Vd=t.forwardRef((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return o?d.default.createPortal(t.createElement(yd.div,od({},i,{ref:n})),o):null});const Hd=e=>{const{present:n,children:r}=e,i=function(e){const[n,r]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=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=Wd(i.current);s.current="mounted"===c?e:"none"},[c]),cd(()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=Wd(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}},[e,u]),cd(()=>{if(n){const e=e=>{const t=Wd(i.current).includes(e.animationName);e.target===n&&t&&o.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(s.current=Wd(i.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&&(i.current=getComputedStyle(e)),r(e)},[])}}(n),a="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),s=sd(i.ref,a.ref);return"function"==typeof r||i.isPresent?t.cloneElement(a,{ref:s}):null};function Wd(e){return(null==e?void 0:e.animationName)||"none"}Hd.displayName="Presence";let Fd=0;function Xd(){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 zd=function(){return zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zd.apply(this,arguments)};function Zd(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Yd="right-scroll-bar-position",_d="width-before-scroll-bar";function Jd(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ud="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,$d=new WeakMap;function Kd(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach(function(e){return Jd(e,t)})},(i=t.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Ud(function(){var t=$d.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||Jd(e,null)}),r.forEach(function(e){n.has(e)||Jd(e,o)})}$d.set(a,e)},[e]),a}function Qd(e){return e}var qd=function(e){var t=e.sideCar,n=Zd(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,zd({},n))};qd.isSideCarExport=!0;var ep=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Qd);var n=[],r=!1,o={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 o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},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 o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=zd({async:!0,ssr:!1},e),t}(),tp=function(){},np=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:tp,onWheelCapture:tp,onTouchMoveCapture:tp}),o=r[0],i=r[1],a=e.forwardProps,s=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=Zd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,C=Kd([n,t]),I=zd(zd({},x),o);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:ep,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?l.cloneElement(l.Children.only(s),zd(zd({},I),{ref:C})):l.createElement(v,zd({},I,{className:c,ref:C}),s))});np.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},np.classNames={fullWidth:_d,zeroRight:Yd};function rp(){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 op=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=rp())&&(!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)}}},ip=function(){var e,t=(e=op(),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}},ap={left:0,top:0,right:0,gap:0},sp=function(e){return parseInt(e||"",10)||0},lp=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ap;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[sp(n),sp(r),sp(o)]}(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])}},cp=ip(),up="data-scroll-locked",dp=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(up,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(_d," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Yd," .").concat(Yd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(_d," .").concat(_d," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(up,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},pp=function(){var e=parseInt(document.body.getAttribute(up)||"0",10);return isFinite(e)?e:0},mp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(up,(pp()+1).toString()),function(){var e=pp()-1;e<=0?document.body.removeAttribute(up):document.body.setAttribute(up,e.toString())}},[]);var i=l.useMemo(function(){return lp(o)},[o]);return l.createElement(cp,{styles:dp(i,!t,o,n?"":"!important")})},hp=!1;if("undefined"!=typeof window)try{var fp=Object.defineProperty({},"passive",{get:function(){return hp=!0,!0}});window.addEventListener("test",fp,fp),window.removeEventListener("test",fp,fp)}catch(e){hp=!1}var gp=!!hp&&{passive:!1},bp=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])},vp=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),xp(e,n)){var r=yp(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},xp=function(e,t){return"v"===e?function(e){return bp(e,"overflowY")}(t):function(e){return bp(e,"overflowX")}(t)},yp=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)},Cp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ip=function(e){return[e.deltaX,e.deltaY]},wp=function(e){return e&&"current"in e?e.current:e},Ap=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Np=0,Ep=[];var jp,Sp=(jp=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Np++)[0],i=l.useState(function(){return ip()})[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(wp),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Cp(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[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=vp(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=vp(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,c=i>0,u=0,d=0;do{var p=yp(e,a),m=p[0],h=p[1]-p[2]-o*m;(m||h)&&xp(e,a)&&(u+=h,d+=m),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));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(Ep.length&&Ep[Ep.length-1]===i){var r="deltaY"in n?Ip(n):Cp(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(wp).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=Cp(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,Ip(t),t.target,s(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,Cp(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return Ep.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,gp),document.addEventListener("touchmove",c,gp),document.addEventListener("touchstart",d,gp),function(){Ep=Ep.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,gp),document.removeEventListener("touchmove",c,gp),document.removeEventListener("touchstart",d,gp)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(i,{styles:Ap(o)}):null,h?l.createElement(mp,{gapMode:"margin"}):null)},ep.useMedium(jp),qd),Tp=l.forwardRef(function(e,t){return l.createElement(np,zd({},e,{ref:t,sideCar:Sp}))});Tp.classNames=np.classNames;var kp=new WeakMap,Bp=new WeakMap,Pp={},Rp=0,Lp=function(e){return e&&(e.host||Lp(e.parentNode))},Gp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lp(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]);Pp[n]||(Pp[n]=new WeakMap);var i=Pp[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(kp.get(e)||0)+1,c=(i.get(e)||0)+1;kp.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Bp.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),Rp++,function(){a.forEach(function(e){var t=kp.get(e)-1,o=i.get(e)-1;kp.set(e,t),i.set(e,o),t||(Bp.has(e)||e.removeAttribute(r),Bp.delete(e)),o||e.removeAttribute(n)}),--Rp||(kp=new WeakMap,kp=new WeakMap,Bp=new WeakMap,Pp={})}},Op=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gp(r,o,n,"aria-hidden")):function(){return null}};const Dp="Dialog",[Mp,Vp]=function(e,n=[]){let r=[];const o=()=>{const n=r.map(e=>t.createContext(e));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,c=t.useMemo(()=>s,Object.values(s));return t.createElement(l.Provider,{value:c},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ld(o,...n)]}(Dp),[Hp,Wp]=Mp(Dp),Fp="DialogPortal",[Xp,zp]=Mp(Fp,{forceMount:void 0}),Zp="DialogOverlay",Yp=t.forwardRef((e,n)=>{const r=zp(Zp,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Wp(Zp,e.__scopeDialog);return a.modal?t.createElement(Hd,{present:o||a.open},t.createElement(_p,od({},i,{ref:n}))):null}),_p=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Wp(Zp,r);return t.createElement(Tp,{as:fd,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(yd.div,od({"data-state":nm(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))}),Jp="DialogContent",Up=t.forwardRef((e,n)=>{const r=zp(Jp,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Wp(Jp,e.__scopeDialog);return t.createElement(Hd,{present:o||a.open},a.modal?t.createElement($p,od({},i,{ref:n})):t.createElement(Kp,od({},i,{ref:n})))}),$p=t.forwardRef((e,n)=>{const r=Wp(Jp,e.__scopeDialog),o=t.useRef(null),i=sd(n,r.contentRef,o);return t.useEffect(()=>{const e=o.current;if(e)return Op(e)},[]),t.createElement(Qp,od({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:id(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:id(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:id(e.onFocusOutside,e=>e.preventDefault())}))}),Kp=t.forwardRef((e,n)=>{const r=Wp(Jp,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(Qp,od({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),Qp=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=Wp(Jp,r),c=sd(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:Xd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Xd()),Fd++,()=>{1===Fd&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Fd--}},[]),t.createElement(t.Fragment,null,t.createElement(Pd,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(Ed,od({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":nm(l.open)},s,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),qp="DialogTitle",em="DialogClose",tm=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Wp(em,r);return t.createElement(yd.button,od({type:"button"},o,{ref:n,onClick:id(e.onClick,()=>i.onOpenChange(!1))}))});function nm(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return t.createElement(r.Provider,{value:i},n)}o.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Jp,titleName:qp,docsSlug:"dialog"});const rm=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=hd({prop:o,defaultProp:i,onChange:a});return t.createElement(Hp,{scope:n,triggerRef:l,contentRef:c,contentId:pd(),titleId:pd(),descriptionId:pd(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:s},r)},om=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=Wp(Fp,n);return t.createElement(Xp,{scope:n,forceMount:r},t.Children.map(o,e=>t.createElement(Hd,{present:r||a.open},t.createElement(Vd,{asChild:!0,container:i},e))))},im=Yp,am=Up,sm=tm,lm=t=>{const{isOpen:n,onRequestClose:r,size:o,title:i,content:a,description:s,children:l,bodyClassName:c,type:u="modal",index:d=0}=t;return e.jsx(rm,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(om,{children:[e.jsx(ru.div,{initial:"closed",animate:n?"open":"closed",variants:td,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(im,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(ru.div,{initial:"closed",animate:n?"open":"closed",variants:nd,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(am,{onOpenAutoFocus:e=>e.preventDefault(),className:Ne("relative mx-auto w-full rounded-modal bg-bg p-[25px] shadow-drop focus:outline-none",c),style:{maxWidth:rd[o||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(sm,{asChild:!0,children:e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx($n,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[i?e.jsx(Kn,{className:Ne("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:i}):null,s?e.jsx(Kn,{as:"div",className:"mb-8 sm:mb-5",children:s}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",children:[a,l||null]})]})]})})})})]})})},cm=e=>`?page=${e}`,um=({currentPage:t,totalPages:n,onPageChange:r,getPageHref:o=cm,ariaLabel:i="Pagination"})=>{const a=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",l="opacity-40 pointer-events-none";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":i,children:[e.jsx(tr,{href:1===t?"#":o(t-1),className:`${s} ${1===t?l:""}`,"aria-label":"Go to previous page","aria-disabled":1===t,tabIndex:1===t?-1:void 0,onClick:e=>{1!==t?null==r||r(t-1):e.preventDefault()},children:e.jsx($n,{name:"chevron_left",size:32,"aria-hidden":"true"})}),a.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(tr,{href:o(n),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":""),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,onClick:()=>null==r?void 0:r(n),children:n},n)),e.jsx(tr,{href:t===n?"#":o(t+1),className:`${s} ${t===n?l:""}`,"aria-label":"Go to next page","aria-disabled":t===n,tabIndex:t===n?-1:void 0,onClick:e=>{t!==n?null==r||r(t+1):e.preventDefault()},children:e.jsx($n,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function dm(e){return dm="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},dm(e)}function pm(e){var t=function(e,t){if("object"!=dm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dm(t)?t:t+""}function mm(e,t,n){return(t=pm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hm(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 fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(n),!0).forEach(function(t){mm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gm(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 bm(e,t){if(e){if("string"==typeof e)return gm(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)?gm(e,t):void 0}}function vm(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||bm(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 xm(e,t){if(null==e)return{};var n,r,o=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 i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ym=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Cm(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,pm(r.key),r)}}function Im(e,t){return Im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Im(e,t)}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wm(e)}function Am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Am=function(){return!!e})()}function Nm(e,t){if(t&&("object"==dm(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 Em(e){return function(e){if(Array.isArray(e))return gm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bm(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 jm=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}(),Sm="-ms-",Tm="-moz-",km="-webkit-",Bm="comm",Pm="rule",Rm="decl",Lm="@keyframes",Gm=Math.abs,Om=String.fromCharCode,Dm=Object.assign;function Mm(e){return e.trim()}function Vm(e,t,n){return e.replace(t,n)}function Hm(e,t){return e.indexOf(t)}function Wm(e,t){return 0|e.charCodeAt(t)}function Fm(e,t,n){return e.slice(t,n)}function Xm(e){return e.length}function zm(e){return e.length}function Zm(e,t){return t.push(e),e}var Ym=1,_m=1,Jm=0,Um=0,$m=0,Km="";function Qm(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ym,column:_m,length:a,return:""}}function qm(e,t){return Dm(Qm("",null,null,"",null,null,0),e,{length:-e.length},t)}function eh(){return $m=Um>0?Wm(Km,--Um):0,_m--,10===$m&&(_m=1,Ym--),$m}function th(){return $m=Um<Jm?Wm(Km,Um++):0,_m++,10===$m&&(_m=1,Ym++),$m}function nh(){return Wm(Km,Um)}function rh(){return Um}function oh(e,t){return Fm(Km,e,t)}function ih(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 ah(e){return Ym=_m=1,Jm=Xm(Km=e),Um=0,[]}function sh(e){return Km="",e}function lh(e){return Mm(oh(Um-1,dh(91===e?e+2:40===e?e+1:e)))}function ch(e){for(;($m=nh())&&$m<33;)th();return ih(e)>2||ih($m)>3?"":" "}function uh(e,t){for(;--t&&th()&&!($m<48||$m>102||$m>57&&$m<65||$m>70&&$m<97););return oh(e,rh()+(t<6&&32==nh()&&32==th()))}function dh(e){for(;th();)switch($m){case e:return Um;case 34:case 39:34!==e&&39!==e&&dh($m);break;case 40:41===e&&dh(e);break;case 92:th()}return Um}function ph(e,t){for(;th()&&e+$m!==57&&(e+$m!==84||47!==nh()););return"/*"+oh(t,Um-1)+"*"+Om(47===e?e:th())}function mh(e){for(;!ih(nh());)th();return oh(e,Um)}function hh(e){return sh(fh("",null,null,null,[""],e=ah(e),0,[0],e))}function fh(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=o,C=i,I=r,w=x;g;)switch(h=v,v=th()){case 40:if(108!=h&&58==Wm(w,d-1)){-1!=Hm(w+=Vm(lh(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=lh(v);break;case 9:case 10:case 13:case 32:w+=ch(h);break;case 92:w+=uh(rh()-1,7);continue;case 47:switch(nh()){case 42:case 47:Zm(bh(ph(th(),rh()),t,n),l);break;default:w+="/"}break;case 123*f:s[c++]=Xm(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Vm(w,/\f/g,"")),m>0&&Xm(w)-d&&Zm(m>32?vh(w+";",r,n,d-1):vh(Vm(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Zm(I=gh(w,t,n,c,u,o,s,x,y=[],C=[],d),i),123===v)if(0===u)fh(w,t,I,I,y,i,d,s,C);else switch(99===p&&110===Wm(w,3)?100:p){case 100:case 108:case 109:case 115:fh(e,I,I,r&&Zm(gh(e,I,I,0,0,o,s,x,o,y=[],d),C),o,C,d,s,r?y:C);break;default:fh(w,I,I,I,[""],C,0,s,C)}}c=u=m=0,f=b=1,x=w="",d=a;break;case 58:d=1+Xm(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==eh())continue;switch(w+=Om(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Xm(w)-1)*b,b=1;break;case 64:45===nh()&&(w+=lh(th())),p=nh(),u=d=Xm(x=w+=mh(rh())),v++;break;case 45:45===h&&2==Xm(w)&&(f=0)}}return i}function gh(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],m=zm(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=Fm(e,d+1,d=Gm(f=a[h])),x=e;b<m;++b)(x=Mm(f>0?p[b]+" "+v:Vm(v,/&\f/g,p[b])))&&(l[g++]=x);return Qm(e,t,n,0===o?Pm:s,l,c,u)}function bh(e,t,n){return Qm(e,t,n,Bm,Om($m),Fm(e,2,-2),0)}function vh(e,t,n,r){return Qm(e,t,n,Rm,Fm(e,0,r),Fm(e,r+1,-1),r)}function xh(e,t){for(var n="",r=zm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Rm:return e.return=e.return||e.value;case Bm:return"";case Lm:return e.return=e.value+"{"+xh(e.children,r)+"}";case Pm:e.value=e.props.join(",")}return Xm(n=xh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ch(e){var t=zm(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Ih="undefined"!=typeof document,wh=function(e,t,n){for(var r=0,o=0;r=o,o=nh(),38===r&&12===o&&(t[n]=1),!ih(o);)th();return oh(e,Um)},Ah=function(e,t){return sh(function(e,t){var n=-1,r=44;do{switch(ih(r)){case 0:38===r&&12===nh()&&(t[n]=1),e[n]+=wh(Um-1,t,n);break;case 2:e[n]+=lh(r);break;case 4:if(44===r){e[++n]=58===nh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Om(r)}}while(r=th());return e}(ah(e),t))},Nh=new WeakMap,Eh=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)||Nh.get(n))&&!r){Nh.set(e,!0);for(var o=[],i=Ah(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},jh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sh(e,t){switch(function(e,t){return 45^Wm(e,0)?(((t<<2^Wm(e,0))<<2^Wm(e,1))<<2^Wm(e,2))<<2^Wm(e,3):0}(e,t)){case 5103:return km+"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 km+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return km+e+Tm+e+Sm+e+e;case 6828:case 4268:return km+e+Sm+e+e;case 6165:return km+e+Sm+"flex-"+e+e;case 5187:return km+e+Vm(e,/(\w+).+(:[^]+)/,km+"box-$1$2"+Sm+"flex-$1$2")+e;case 5443:return km+e+Sm+"flex-item-"+Vm(e,/flex-|-self/,"")+e;case 4675:return km+e+Sm+"flex-line-pack"+Vm(e,/align-content|flex-|-self/,"")+e;case 5548:return km+e+Sm+Vm(e,"shrink","negative")+e;case 5292:return km+e+Sm+Vm(e,"basis","preferred-size")+e;case 6060:return km+"box-"+Vm(e,"-grow","")+km+e+Sm+Vm(e,"grow","positive")+e;case 4554:return km+Vm(e,/([^-])(transform)/g,"$1"+km+"$2")+e;case 6187:return Vm(Vm(Vm(e,/(zoom-|grab)/,km+"$1"),/(image-set)/,km+"$1"),e,"")+e;case 5495:case 3959:return Vm(e,/(image-set\([^]*)/,km+"$1$`$1");case 4968:return Vm(Vm(e,/(.+:)(flex-)?(.*)/,km+"box-pack:$3"+Sm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+km+e+e;case 4095:case 3583:case 4068:case 2532:return Vm(e,/(.+)-inline(.+)/,km+"$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(Xm(e)-1-t>6)switch(Wm(e,t+1)){case 109:if(45!==Wm(e,t+4))break;case 102:return Vm(e,/(.+:)(.+)-([^]+)/,"$1"+km+"$2-$3$1"+Tm+(108==Wm(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hm(e,"stretch")?Sh(Vm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wm(e,t+1))break;case 6444:switch(Wm(e,Xm(e)-3-(~Hm(e,"!important")&&10))){case 107:return Vm(e,":",":"+km)+e;case 101:return Vm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+km+(45===Wm(e,14)?"inline-":"")+"box$3$1"+km+"$2$3$1"+Sm+"$2box$3")+e}break;case 5936:switch(Wm(e,t+11)){case 114:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return km+e+Sm+e+e}return e}var Th,kh,Bh,Ph=Ih?void 0:(Th=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},kh=new WeakMap,function(e){if(kh.has(e))return kh.get(e);var t=Th(e);return kh.set(e,t),t}),Rh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Rm:e.return=Sh(e.value,e.length);break;case Lm:return xh([qm(e,{value:Vm(e.value,"@","@"+km)})],r);case Pm: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 xh([qm(e,{props:[Vm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return xh([qm(e,{props:[Vm(t,/:(plac\w+)/,":"+km+"input-$1")]}),qm(e,{props:[Vm(t,/:(plac\w+)/,":-moz-$1")]}),qm(e,{props:[Vm(t,/:(plac\w+)/,Sm+"input-$1")]})],r)}return""})}}],Lh=function(e){var t=e.key;if(Ih&&"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,o,i=e.stylisPlugins||Rh,a={},s=[];Ih&&(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++)a[t[n]]=!0;s.push(e)}));var l,c=[Eh,jh];if(Ph){var u=[yh],d=Ch(c.concat(i,u)),p=Ph(i)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=xh(hh(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,f=[yh,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Ch(c.concat(i,f));o=function(e,t,n,r){h=n,xh(hh(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new jm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b},Gh={exports:{}},Oh={};var Dh,Mh,Vh,Hh,Wh={};
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,o){if("undefined"!=typeof document){"number"==typeof(o=nt({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)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 ot=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const it=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,at=e=>{if(!e)return null;if(it(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return it(t)?t:null}return null};function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt,ct={},ut={},dt={};function pt(){return lt||(lt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=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}({})}(dt)),dt}var mt,ht={};function ft(){return mt||(mt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=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}({})}(ht)),ht}var gt,bt={};function vt(){return gt||(gt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=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}({})}(bt)),bt}var xt,yt={};function Ct(){return xt||(xt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get CONTAINERS(){return p},get HEADINGS(){return m},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return u},get TEXT_CONTAINERS(){return h},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return g},get V1_NODE_TYPES(){return f},get VOID_BLOCKS(){return d}});var t=pt(),n=ft(),r=vt();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a,s,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],u=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],p=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,c),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),m=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],h=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(s=m)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(s)||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.")}()),f=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],g=[r.MARKS.BOLD,r.MARKS.CODE,r.MARKS.ITALIC,r.MARKS.UNDERLINE]}(yt)),yt}var It,wt={};var At,Nt={};var Et,jt={};var St,Tt={};function kt(){return St||(St=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get isBlock(){return s},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return p}});var t=pt(),n=ft();function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function i(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){if(t===e[i.value])return!0}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return!1}function a(e){return i(n.INLINES,e.nodeType)}function s(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function c(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var n=e.content[0];return"text"===n.nodeType&&""===n.value}function u(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function p(e){return!u(e)||e.content.length<d?e:c(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(Tt)),Tt}var Bt,Pt,Rt={},Lt={};function Gt(){return Pt?Bt:(Pt=1,Bt=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var Ot,Dt,Mt={};function Vt(){return Ot||(Ot=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return r},get unknownPropertyError(){return s}});var r=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}},o=function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}},i=function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}},a=function(e){var t=e.expected,r=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:n(t).sort(),path:o.toArray(),value:r}},s=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}},l=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}}(Mt)),Mt}function Ht(){return Dt||(Dt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(Gt()),n=Vt();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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 l=function(){function e(r,o){var a=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=r,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=l._errors).push.apply(r,s(t))},this.exists=function(e){return e in a.obj||(a.catch((0,n.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var r=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(r))return!0;var o,i=e?a.path.of(e):a.path,s=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,n.typeMismatchError)({typeName:"Object",property:s,path:i,value:r})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,n.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var r=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(a.catch((0,n.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:r})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,n.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=a.obj[e];return!("string"!=typeof r||!t.includes(r))||(a.catch((0,n.enumError)({expected:t,value:r,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,n.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var r=a.obj[e];return r.length>=t||(a.catch((0,n.minSizeError)({min:t,value:r,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,n.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var n=a.obj[e],r=!1;n.forEach(function(n,o){if(!r){var i=t(n,a.path.of(e).of(o));i.length>0&&(r=!0),a.catch.apply(a,s(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}()}(Lt)),Lt}var Wt,Ft={};function Xt(){return Wt||(Wt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get EntityLinkAssertion(){return f},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return m},get assert(){return b},get assertLink(){return v}});var t=Ht();function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t=l(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return r(e)}(e,p()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(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.")}()}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var m=[],h=function(){function e(t,n){i(this,e),s(this,"contentRule",void 0),s(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return a(e,[{key:"assert",value:function(e,n){var r=new t.ObjectAssertion(e,n);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,n),i=o.nodeTypes,a=o.min,s=void 0===a?0:a;if(0===i.length&&s>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(s," with no nodeTypes"));if(r.minLength("content",s),0===i.length?r.empty("content"):r.each("content",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.enum("nodeType",i),r.errors):r.errors}),r.object("data")){var l,c,u,p=null!==(u=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,n.of("data")))&&void 0!==u?u:[];(l=r).catch.apply(l,d(p))}return r.errors}}]),e}(),f=function(e){function n(e,a){var l;return i(this,n),l=o(this,n,[a,function(e,t){return r(l).assertLink(e,t)}]),s(l,"linkType",void 0),s(l,"type",void 0),s(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,n){var r=new t.ObjectAssertion(e,n);if(r.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,n.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,d(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return c(n,e),n}(h),g=function(e){function n(){var e;return i(this,n),e=o(this,n,[["text"],function(t,n){return r(e).assertLink(t,n)}]),s(e,"assertLink",function(e,n){var r=new t.ObjectAssertion(e,n);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return c(n,e),n}(h),b=function(e,t){return new h(e,t)},v=function(e,t){return new f(e,t)}}(Ft)),Ft}var zt,Zt={};function Yt(){return zt||(zt=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"path",void 0),n(this,"of",void 0),n(this,"isRoot",void 0),n(this,"last",void 0),n(this,"toArray",void 0),this.path=o,this.of=function(n){return new e(r(t.path).concat([n]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(Zt)),Zt}var _t,Jt,Ut,$t,Kt={};function Qt(){return Jt||(Jt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=pt(),n=ft(),r=Ct(),o=Ht(),i=Xt(),a=Yt(),s=(_t||(_t=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=Ht();function n(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.string("type"),r.errors):r.errors}),r.string("value"),r.errors):r.errors}}(Kt)),Kt);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 d,p=(0,i.assert)(u(Object.values(n.INLINES)).concat(["text"]).sort()),m=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),f=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var n=new o.ObjectAssertion(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),g=(c(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(r.TOP_LEVEL_BLOCKS)),c(d,t.BLOCKS.PARAGRAPH,p),c(d,t.BLOCKS.HEADING_1,p),c(d,t.BLOCKS.HEADING_2,p),c(d,t.BLOCKS.HEADING_3,p),c(d,t.BLOCKS.HEADING_4,p),c(d,t.BLOCKS.HEADING_5,p),c(d,t.BLOCKS.HEADING_6,p),c(d,t.BLOCKS.QUOTE,(0,i.assert)(r.CONTAINERS[t.BLOCKS.QUOTE])),c(d,t.BLOCKS.EMBEDDED_ENTRY,h),c(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),c(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),c(d,t.BLOCKS.OL_LIST,m),c(d,t.BLOCKS.UL_LIST,m),c(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(u(r.LIST_ITEM_BLOCKS).sort())),c(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),c(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),c(d,t.BLOCKS.TABLE_CELL,f),c(d,t.BLOCKS.TABLE_HEADER_CELL,f),c(d,n.INLINES.HYPERLINK,new i.HyperLinkAssertion),c(d,n.INLINES.EMBEDDED_ENTRY,h),c(d,n.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,n.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),c(d,n.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),c(d,n.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function b(e,t){if("text"===e.nodeType)return(0,s.assertText)(e,t);var n=g[e.nodeType].assert(e,t);if(n.length>0)return n;var r=new o.ObjectAssertion(e,t);return r.each("content",function(e,t){return b(e,t)}),r.errors}var v=function(e){var n=new a.Path,r=new o.ObjectAssertion(e,n);return r.object()&&r.enum("nodeType",[t.BLOCKS.DOCUMENT]),r.errors.length>0?r.errors:b(e,n)}}(Rt)),Rt}function qt(){return Ut||(Ut=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return n.INLINES},get MARKS(){return r.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=pt(),n=ft(),r=vt();s(Ct(),e),s((It||(It=1,Object.defineProperty(wt,"__esModule",{value:!0})),wt),e),s((At||(At=1,Object.defineProperty(Nt,"__esModule",{value:!0})),Nt),e);var o=(Et||(Et=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=pt(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(jt)),jt),i=c(kt()),a=Qt();function s(e,t){return Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}}(ut)),ut}var en=function(){if($t)return ct;$t=1;var e=l.default,t=qt();function n(t,n){return t.map((t,o)=>{return i=r(t,n),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function r(r,o){const{renderNode:i,renderMark:a,renderText:s,preserveWhitespace:l}=o;if(t.helpers.isText(r)){let t=s?s(r.value):r.value;if(l&&!s){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const n=t.split("\n"),r=[];n.forEach((t,o)=>{r.push(t),o!==n.length-1&&r.push(e.createElement("br",null))}),t=r}return r.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=n(r.content,o);return r.nodeType&&i[r.nodeType]?i[r.nodeType](r,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,n)=>e.createElement("p",null,n),[t.BLOCKS.HEADING_1]:(t,n)=>e.createElement("h1",null,n),[t.BLOCKS.HEADING_2]:(t,n)=>e.createElement("h2",null,n),[t.BLOCKS.HEADING_3]:(t,n)=>e.createElement("h3",null,n),[t.BLOCKS.HEADING_4]:(t,n)=>e.createElement("h4",null,n),[t.BLOCKS.HEADING_5]:(t,n)=>e.createElement("h5",null,n),[t.BLOCKS.HEADING_6]:(t,n)=>e.createElement("h6",null,n),[t.BLOCKS.EMBEDDED_ENTRY]:(t,n)=>e.createElement("div",null,n),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,n)=>e.createElement("div",null,n),[t.BLOCKS.UL_LIST]:(t,n)=>e.createElement("ul",null,n),[t.BLOCKS.OL_LIST]:(t,n)=>e.createElement("ol",null,n),[t.BLOCKS.LIST_ITEM]:(t,n)=>e.createElement("li",null,n),[t.BLOCKS.QUOTE]:(t,n)=>e.createElement("blockquote",null,n),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,n)=>e.createElement("table",null,e.createElement("tbody",null,n)),[t.BLOCKS.TABLE_ROW]:(t,n)=>e.createElement("tr",null,n),[t.BLOCKS.TABLE_HEADER_CELL]:(t,n)=>e.createElement("th",null,n),[t.BLOCKS.TABLE_CELL]:(t,n)=>e.createElement("td",null,n),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>s(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,n)=>s(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function s(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}return ct.documentToReactComponents=function(e,n={}){if(!e)return null;let a=e;return n.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),r(a,{renderNode:{...o,...n.renderNode},renderMark:{...i,...n.renderMark},renderText:n.renderText,preserveWhitespace:n.preserveWhitespace})},ct}(),tn=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}({}),nn=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}({}),rn=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}({});function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn,ln=[tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE,tn.TABLE],cn=[tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE];tn.TABLE,tn.TABLE_ROW,tn.TABLE_CELL,tn.TABLE_HEADER_CELL,tn.HR,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,tn.EMBEDDED_RESOURCE;var un,dn=(an(sn={},tn.OL_LIST,[tn.LIST_ITEM]),an(sn,tn.UL_LIST,[tn.LIST_ITEM]),an(sn,tn.LIST_ITEM,cn),an(sn,tn.QUOTE,[tn.PARAGRAPH]),an(sn,tn.TABLE,[tn.TABLE_ROW]),an(sn,tn.TABLE_ROW,[tn.TABLE_CELL,tn.TABLE_HEADER_CELL]),an(sn,tn.TABLE_CELL,[tn.PARAGRAPH,tn.UL_LIST,tn.OL_LIST]),an(sn,tn.TABLE_HEADER_CELL,[tn.PARAGRAPH]),sn),pn=[tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6];[tn.PARAGRAPH].concat(function(e){if(Array.isArray(e))return on(e)}(un=pn)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(un)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}(un)||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.")}()),tn.DOCUMENT,tn.PARAGRAPH,tn.HEADING_1,tn.HEADING_2,tn.HEADING_3,tn.HEADING_4,tn.HEADING_5,tn.HEADING_6,tn.OL_LIST,tn.UL_LIST,tn.LIST_ITEM,tn.HR,tn.QUOTE,tn.EMBEDDED_ENTRY,tn.EMBEDDED_ASSET,nn.HYPERLINK,nn.ENTRY_HYPERLINK,nn.ASSET_HYPERLINK,nn.EMBEDDED_ENTRY,tn.DOCUMENT,tn.PARAGRAPH;var mn=st(Gt());function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(e,t)}(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 gn=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}};function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vn(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return function(e){if(Array.isArray(e))return bn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bn(e,t)}(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 Cn=function(){function e(t,n){var r=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xn(this,"obj",void 0),xn(this,"path",void 0),xn(this,"_errors",void 0),xn(this,"catch",void 0),xn(this,"exists",void 0),xn(this,"object",void 0),xn(this,"string",void 0),xn(this,"number",void 0),xn(this,"array",void 0),xn(this,"enum",void 0),xn(this,"empty",void 0),xn(this,"minLength",void 0),xn(this,"noAdditionalProperties",void 0),xn(this,"each",void 0),this.obj=t,this.path=n,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=o._errors).push.apply(r,yn(t))},this.exists=function(e){return e in r.obj||(r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}({property:e,path:r.path.of(e)})),!1)},this.object=function(e){var t=e?r.obj[e]:r.obj;if(e&&!r.exists(e))return!1;if(mn(t))return!0;var n,o=e?r.path.of(e):r.path,i=null!==(n=null!=e?e:r.path.last())&&void 0!==n?n:"value";return r.catch(gn({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&("string"==typeof t||(r.catch(gn({typeName:"String",property:e,path:r.path.of(e),value:t})),!1))},this.number=function(e,t){var n=r.obj[e];return!(!t||e in r.obj)||!!r.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(r.catch(gn({typeName:"Number",property:e,path:r.path.of(e),value:n})),!1))},this.array=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&(!!Array.isArray(t)||(r.catch(gn({typeName:"Array",property:e,path:r.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=r.obj[e];return!("string"!=typeof n||!t.includes(n))||(r.catch(function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:fn(t).sort(),path:r.toArray(),value:n}}({expected:t,value:n,path:r.path.of(e)})),!1)},this.empty=function(e){if(!r.array(e))return!1;var t=r.obj[e];return 0===t.length||(r.catch(function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}}({max:0,value:t,path:r.path.of(e)})),!1)},this.minLength=function(e,t){if(!r.array(e))return!1;var n=r.obj[e];return n.length>=t||(r.catch(function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}}({min:t,value:n,path:r.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(r.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}}({property:e,path:r.path.of(e)}))}),0===t.length},this.each=function(e,t){if(r.array(e)){var n=r.obj[e],o=!1;n.forEach(function(n,i){if(!o){var a=t(n,r.path.of(e).of(i));a.length>0&&(o=!0),r.catch.apply(r,yn(a))}})}}}return vn(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}();function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e,t,n){return t=Sn(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return wn(e)}(e,Pn()?Reflect.construct(t,n||[],Sn(e).constructor):t.apply(e,n))}function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Tn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function kn(e,t){return kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kn(e,t)}function Bn(e){return function(e){if(Array.isArray(e))return In(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return In(e,t)}(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.")}()}function Pn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pn=function(){return!!e})()}var Rn=[],Ln=function(){function e(t,n){Nn(this,e),jn(this,"contentRule",void 0),jn(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return En(e,[{key:"assert",value:function(e,t){var n=new Cn(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var r=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=r.nodeTypes,i=r.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(n.minLength("content",a),0===o.length?n.empty("content"):n.each("content",function(e,t){var n=new Cn(e,t);return n.object()?(n.enum("nodeType",o),n.errors):n.errors}),n.object("data")){var s,l,c,u=null!==(c=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==c?c:[];(s=n).catch.apply(s,Bn(u))}return n.errors}}]),e}(),Gn=function(e){function t(e,n){var r;return Nn(this,t),r=An(this,t,[n,function(e,t){return wn(r).assertLink(e,t)}]),jn(r,"linkType",void 0),jn(r,"type",void 0),jn(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new Cn(e,t);if(n.object("target")){var o,i=new Cn(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,Bn(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return Tn(t,e),t}(Ln),On=function(e){function t(){var e;return Nn(this,t),e=An(this,t,[["text"],function(t,n){return wn(e).assertLink(t,n)}]),jn(e,"assertLink",function(e,t){var n=new Cn(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return Tn(t,e),t}(Ln),Dn=function(e,t){return new Ln(e,t)},Mn=function(e,t){return new Gn(e,t)};function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){return function(e){if(Array.isArray(e))return Vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vn(e,t)}(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 Fn,Xn=Dn(Wn(Object.values(nn)).concat(["text"]).sort()),zn=Dn([tn.LIST_ITEM]),Zn=Mn("Entry",Rn),Yn=Dn(function(){return{nodeTypes:[tn.PARAGRAPH],min:1}},function(e,t){var n=new Cn(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});Hn(Fn={},tn.DOCUMENT,Dn(ln)),Hn(Fn,tn.PARAGRAPH,Xn),Hn(Fn,tn.HEADING_1,Xn),Hn(Fn,tn.HEADING_2,Xn),Hn(Fn,tn.HEADING_3,Xn),Hn(Fn,tn.HEADING_4,Xn),Hn(Fn,tn.HEADING_5,Xn),Hn(Fn,tn.HEADING_6,Xn),Hn(Fn,tn.QUOTE,Dn(dn[tn.QUOTE])),Hn(Fn,tn.EMBEDDED_ENTRY,Zn),Hn(Fn,tn.EMBEDDED_ASSET,Mn("Asset",Rn)),Hn(Fn,tn.EMBEDDED_RESOURCE,Mn("Contentful:Entry",Rn)),Hn(Fn,tn.HR,Dn(Rn)),Hn(Fn,tn.OL_LIST,zn),Hn(Fn,tn.UL_LIST,zn),Hn(Fn,tn.LIST_ITEM,Dn(Wn(cn).sort())),Hn(Fn,tn.TABLE,Dn(function(){return{nodeTypes:[tn.TABLE_ROW],min:1}})),Hn(Fn,tn.TABLE_ROW,Dn(function(){return{nodeTypes:[tn.TABLE_CELL,tn.TABLE_HEADER_CELL],min:1}})),Hn(Fn,tn.TABLE_CELL,Yn),Hn(Fn,tn.TABLE_HEADER_CELL,Yn),Hn(Fn,nn.HYPERLINK,new On),Hn(Fn,nn.EMBEDDED_ENTRY,Zn),Hn(Fn,nn.EMBEDDED_RESOURCE,Mn("Contentful:Entry",Rn)),Hn(Fn,nn.ENTRY_HYPERLINK,Mn("Entry",["text"])),Hn(Fn,nn.ASSET_HYPERLINK,Mn("Asset",["text"])),Hn(Fn,nn.RESOURCE_HYPERLINK,Mn("Contentful:Entry",["text"]));const _n={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Jn=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},a)=>{const s=Ne("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:a,className:s,style:o,...i,children:t})});Jn.displayName="ListItem";const Un=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:a="unstyled",style:s,...l},c)=>{const u=(()=>{if("unstyled"===a)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=Ne(u,`list--${t}`,`list--${a}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(Jn,{className:t.className,variant:a,children:t.content},t.id||n)):null),m={className:d,style:s,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c,role:"list"}):e.jsx("ul",{...m,ref:c,role:"list"})});Un.displayName="List";const $n=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:a=24,color:s="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${a}px`,fontFamily:"'Material Symbols Rounded'",color:s||"currentColor",...l};return e.jsx("span",{style:p,className:Ne("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,"aria-hidden":"true",children:t})};$n.displayName="MaterialIcon";const Kn=t.forwardRef(({children:e,as:t,className:n="",style:r,...o},i)=>{const a=t||"p";return l.default.createElement(a,{ref:i,className:n,style:r,...o},e)});Kn.displayName="Text";const Qn=t=>{const{items:n,listIconName:r="check",listItemClassName:o,listContainerClassName:i,iconSize:a=20,iconPosition:s="center",iconColor:c="green",iconClassName:u}=t,d="disc"!==r;if(!(null==n?void 0:n.length))return null;const p=t=>{if("string"==typeof t&&t.includes("|")&&(t.match(/\|/g)||[]).length%2==0){const n=t.split("|"),r=(t.match(/\|/g)||[]).length;return n.map((t,n)=>{if(!t)return null;return r>1&&n%2==1?e.jsx(Kn,{as:"span",style:{fontWeight:900},children:t},n):e.jsx("span",{children:t},n)})}return t};return e.jsx(Un,{className:Ne("mt-2 space-y-1",i),variant:d?"unstyled":"default",children:n.map((t,n)=>{const i=function(e){return null!==e&&"object"==typeof e&&!l.default.isValidElement(e)&&"title"in e}(t),m=i&&!!t.iconUrl,h=i?t.title:t;return e.jsxs(Jn,{variant:d?"unstyled":"default",className:Ne(`${d?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,o),children:[d&&m?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:t.iconUrl,alt:t.iconAlt||"",width:a,height:a,className:Ne("block object-contain","top"===s?"mt-1":"",u)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx($n,{name:r,size:a,color:_n[c],weight:"600",className:Ne("block","top"===s?"mt-1":"",u)})}):null,e.jsx(Kn,{as:"div",children:p(h)})]},n)})})};var qn;Qn.displayName="Checklist";const er="function"==typeof c.default?c.default:null!==(qn=c.default.default)&&void 0!==qn?qn:c.default,tr=t.forwardRef(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:a,external:s=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===i)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[i]||e.default,t].filter(Boolean).join(" ")})(),p=e=>{l?e.preventDefault():null==o||o(e)},m=Ne(d,`link--${i}`,l&&"link--disabled",r),h={...c,ref:u,className:m,style:a,href:l?void 0:n,onClick:p,...s&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||s||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(er,{href:n||"#",ref:u,className:m,style:a,onClick:p,...c,children:t})});tr.displayName="Link";const nr={renderMark:{[rn.BOLD]:t=>e.jsx("strong",{className:"font-black",children:t}),[rn.ITALIC]:t=>e.jsx("em",{children:t}),[rn.UNDERLINE]:t=>e.jsx("u",{children:t}),[rn.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[tn.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4",children:n}),[tn.HEADING_1]:(t,n)=>e.jsx(Kn,{as:"h1",className:"heading2 md:heading1",children:n}),[tn.HEADING_2]:(t,n)=>e.jsx(Kn,{as:"h2",className:"heading3 md:heading2",children:n}),[tn.HEADING_3]:(t,n)=>e.jsx(Kn,{as:"h3",className:"heading4 md:heading3",children:n}),[tn.HEADING_4]:(t,n)=>e.jsx(Kn,{as:"h4",className:"heading5 md:heading4",children:n}),[tn.HEADING_5]:(t,n)=>e.jsx(Kn,{as:"h5",className:"heading6 md:heading5",children:n}),[tn.HEADING_6]:(t,n)=>e.jsx(Kn,{as:"h6",className:"heading6",children:n}),[tn.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[tn.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-6",children:n}),[tn.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-6",children:n}),[tn.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[nn.HYPERLINK]:(t,n)=>{var r;const o=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,i=/^https?:\/\//.test(o);return e.jsx("a",{href:o,target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,children:n})},[tn.EMBEDDED_ASSET]:t=>{var n,r;const o=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,i=null==o?void 0:o.fields,a=(null==o?void 0:o.url)||(null===(r=null==i?void 0:i.file)||void 0===r?void 0:r.url),s=(null==i?void 0:i.title)||(null==i?void 0:i.description)||"Embedded asset";if(!a)return null;const l=a.startsWith("//")?`https:${a}`:a;return e.jsx("img",{src:l,alt:s,style:{maxWidth:"100%"}})},[tn.EMBEDDED_ENTRY]:t=>{var n,r,o,i;const a=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"callout"===(null===(i=null===(o=null===(r=null==a?void 0:a.sys)||void 0===r?void 0:r.contentType)||void 0===o?void 0:o.sys)||void 0===i?void 0:i.id)?e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:a.fields.title}),e.jsx("div",{children:a.fields.body})]}):null},[nn.EMBEDDED_ENTRY]:t=>{var n,r,o,i,a,s;const l=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target;return"componentCheckList"===(null===(i=null===(o=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===o?void 0:o.sys)||void 0===i?void 0:i.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!==(s=null===(a=null==l?void 0:l.fields)||void 0===a?void 0:a.title)&&void 0!==s?s:""})}}};function rr(t,n,r="body1",o="body1 font-bold",i){if(!t||!Array.isArray(t.content))return null;const a={...nr,...i,renderNode:{...nr.renderNode,...null==i?void 0:i.renderNode,[tn.PARAGRAPH]:(t,n)=>e.jsx("div",{className:r,children:n}),[nn.HYPERLINK]:(t,r)=>{var i;const a=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.uri,s=/^https?:\/\//.test(a),l=null!=n?n:s;return e.jsx(tr,{href:a,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,variant:"default",className:o,children:r})}}};return en.documentToReactComponents(t,a)}const or={renderMark:{[rn.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const ir=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},a)=>e.jsx("button",{ref:a,className:Ne(n),style:r,disabled:o,...i,children:t}));ir.displayName="Button";const ar=n=>{const{open:r,children:o}=n,i=t.useRef(null),[a,s]=t.useState(0);return t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{s(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:a,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:i,children:o})})};ar.displayName="Collapse";const sr=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:a,titleClassName:s,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(o))},[d,o]),e.jsxs("div",{className:Ne(p?"rounded-none border":"rounded-surface-xs border",a),children:[e.jsxs(ir,{type:"button",className:Ne(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:Ne("label5 flex-1",s),children:r}),e.jsx($n,{className:Ne("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(ar,{open:m,children:e.jsx("div",{className:Ne("px-4 py-4",l),children:i})})]})};sr.displayName="Accordion";const lr=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ne("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};lr.displayName="Divider";const cr="pop",ur=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dr=t.createContext({}),pr=t.createContext(null),mr="undefined"!=typeof document,hr=mr?t.useLayoutEffect:t.useEffect,fr=t.createContext({strict:!1});function gr(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function br(e){return"string"==typeof e||Array.isArray(e)}function vr(e){return"object"==typeof e&&"function"==typeof e.start}const xr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yr=["initial",...xr];function Cr(e){return vr(e.animate)||yr.some(t=>br(e[t]))}function Ir(e){return Boolean(Cr(e)||e.variants)}function wr(e){const{initial:n,animate:r}=function(e,t){if(Cr(e)){const{initial:t,animate:n}=e;return{initial:!1===t||br(t)?t:void 0,animate:br(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(dr));return t.useMemo(()=>({initial:n,animate:r}),[Ar(n),Ar(r)])}function Ar(e){return Array.isArray(e)?e.join(" "):e}const Nr={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"]},Er={};for(const e in Nr)Er[e]={isEnabled:t=>Nr[e].some(e=>!!t[e])};const jr=t.createContext({}),Sr=t.createContext({}),Tr=Symbol.for("motionComponentSymbol");function kr({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Er[t]={...Er[t],...e[t]}}(e);const a=t.forwardRef(function(a,s){let c;const u={...t.useContext(ur),...a,layoutId:Br(a)},{isStatic:d}=u,p=wr(a),m=o(a,d);if(!d&&mr){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(dr),a=t.useContext(fr),s=t.useContext(pr),l=t.useContext(ur).reducedMotion,c=t.useRef();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,s)}),hr(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?hr:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const r=t.useContext(Sr),o=t.useContext(fr).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,o,e,r))}return l.createElement(dr.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(i,a,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):gr(r)&&(r.current=t))},[n])}(m,p.visualElement,s),m,d,p.visualElement))});return a[Tr]=i,a}function Br({layoutId:e}){const n=t.useContext(jr).id;return n&&void 0!==e?n+"-"+e:e}function Pr(e){function t(t,n={}){return kr(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 Rr=["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 Lr(e){return"string"==typeof e&&!e.includes("-")&&!!(Rr.indexOf(e)>-1||/[A-Z]/.test(e))}const Gr={};const Or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dr=new Set(Or);function Mr(e,{layout:t,layoutId:n}){return Dr.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Gr[e]||"opacity"===e)}const Vr=e=>Boolean(e&&e.getVelocity),Hr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wr=Or.length;const Fr=e=>t=>"string"==typeof t&&t.startsWith(e),Xr=Fr("--"),zr=Fr("var(--"),Zr=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Yr=(e,t,n)=>Math.min(Math.max(n,e),t),_r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jr={..._r,transform:e=>Yr(0,1,e)},Ur={..._r,default:1},$r=e=>Math.round(1e5*e)/1e5,Kr=/(-)?([\d]*\.?[\d])+/g,Qr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function eo(e){return"string"==typeof e}const to=e=>({test:t=>eo(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),no=to("deg"),ro=to("%"),oo=to("px"),io=to("vh"),ao=to("vw"),so={...ro,parse:e=>ro.parse(e)/100,transform:e=>ro.transform(100*e)},lo={..._r,transform:Math.round},co={borderWidth:oo,borderTopWidth:oo,borderRightWidth:oo,borderBottomWidth:oo,borderLeftWidth:oo,borderRadius:oo,radius:oo,borderTopLeftRadius:oo,borderTopRightRadius:oo,borderBottomRightRadius:oo,borderBottomLeftRadius:oo,width:oo,maxWidth:oo,height:oo,maxHeight:oo,size:oo,top:oo,right:oo,bottom:oo,left:oo,padding:oo,paddingTop:oo,paddingRight:oo,paddingBottom:oo,paddingLeft:oo,margin:oo,marginTop:oo,marginRight:oo,marginBottom:oo,marginLeft:oo,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:Ur,scaleX:Ur,scaleY:Ur,scaleZ:Ur,skew:no,skewX:no,skewY:no,distance:oo,translateX:oo,translateY:oo,translateZ:oo,x:oo,y:oo,z:oo,perspective:oo,transformPerspective:oo,opacity:Jr,originX:so,originY:so,originZ:oo,zIndex:lo,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:lo};function uo(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Xr(e)){i[e]=n;continue}const r=co[e],d=Zr(n,r);if(Dr.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Wr;t++){const n=Or[t];void 0!==e[n]&&(i+=`${Hr[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mo(e,t,n){for(const r in t)Vr(t[r])||Mr(r,n)||(e[r]=t[r])}function ho(e,n,r){const o={};return mo(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return uo(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function fo(e,t,n){const r={},o=ho(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,r}const go=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 bo(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||go.has(e)}let vo=e=>!bo(e);try{(xo=require("@emotion/is-prop-valid").default)&&(vo=e=>e.startsWith("on")?!bo(e):xo(e))}catch(bu){}var xo;function yo(e,t,n){return"string"==typeof e?e:oo.transform(t+n*e)}const Co={offset:"stroke-dashoffset",array:"stroke-dasharray"},Io={offset:"strokeDashoffset",array:"strokeDasharray"};function wo(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(uo(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!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${yo(t,e.x,e.width)} ${yo(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Co:Io;e[i.offset]=oo.transform(-r);const a=oo.transform(t),s=oo.transform(n);e[i.array]=`${a} ${s}`}(m,a,s,l,!1)}const Ao=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),No=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Eo(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return wo(t,n,{enableHardwareAcceleration:!1},No(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};mo(t,e.style,e),i.style={...t,...i.style}}return i}function jo(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(Lr(n)?Eo:fo)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(vo(o)||!0===n&&bo(o)||!t&&!bo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),c={...l,...s,ref:o},{children:u}=r,d=t.useMemo(()=>Vr(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const So=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function To(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const ko=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 Bo(e,t,n,r){To(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(ko.has(n)?n:So(n),t.attrs[n])}function Po(e,t){const{style:n}=e,r={};for(const o in n)(Vr(n[o])||t.style&&Vr(t.style[o])||Mr(o,e))&&(r[o]=n[o]);return r}function Ro(e,t){const n=Po(e,t);for(const r in e)if(Vr(e[r])||Vr(t[r])){n[-1!==Or.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Lo(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Go(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Oo=e=>Array.isArray(e),Do=e=>Oo(e)?e[e.length-1]||0:e;function Mo(e){const t=Vr(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Vo=e=>(n,r)=>{const o=t.useContext(dr),i=t.useContext(pr),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Ho(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,n,o,i);return r?a():Go(a)};function Ho(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Mo(i[e]);let{initial:a,animate:s}=e;const l=Cr(e),c=Ir(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!vr(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Lo(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Wo={useVisualState:Vo({scrapeMotionValuesFromProps:Ro,createRenderState:Ao,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}}wo(n,r,{enableHardwareAcceleration:!1},No(t.tagName),e.transformTemplate),Bo(t,n)}})},Fo={useVisualState:Vo({scrapeMotionValuesFromProps:Po,createRenderState:po})};function Xo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const zo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Zo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Yo(e,t,n,r){return Xo(e,t,(e=>t=>zo(t)&&e(t,Zo(t)))(n),r)}const _o=(e,t)=>n=>t(e(n)),Jo=(...e)=>e.reduce(_o);function Uo(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const $o=Uo("dragHorizontal"),Ko=Uo("dragVertical");function Qo(e){let t=!1;if("y"===e)t=Ko();else if("x"===e)t=$o();else{const e=$o(),n=Ko();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function qo(){const e=Qo(!0);return!e||(e(),!1)}class ei{constructor(e){this.isMounted=!1,this.node=e}update(){}}const ti={delta:0,timestamp:0,isProcessing:!1};let ni=!0,ri=!1;const oi=["read","update","preRender","render","postRender"],ii=oi.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!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),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>ri=!0),e),{}),ai=e=>ii[e].process(ti),si=e=>{ri=!1,ti.delta=ni?1e3/60:Math.max(Math.min(e-ti.timestamp,40),1),ti.timestamp=e,ti.isProcessing=!0,oi.forEach(ai),ti.isProcessing=!1,ri&&(ni=!1,requestAnimationFrame(si))},li=oi.reduce((e,t)=>{const n=ii[t];return e[t]=(e,t=!1,r=!1)=>(ri||(ri=!0,ni=!0,ti.isProcessing||requestAnimationFrame(si)),n.schedule(e,t,r)),e},{});function ci(e){oi.forEach(t=>ii[t].cancel(e))}function ui(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Yo(e.current,n,(n,o)=>{if("touch"===n.type||qo())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&li.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const di=(e,t)=>!!t&&(e===t||di(e,t.parentElement)),pi=e=>e;function mi(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Zo(n))}const hi=new WeakMap,fi=new WeakMap,gi=e=>{const t=hi.get(e.target);t&&t(e)},bi=e=>{e.forEach(gi)};function vi(e,t,n){const r=function({root:e,...t}){const n=e||document;fi.has(n)||fi.set(n,{});const r=fi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(bi,{root:e,...t})),r[o]}(t);return hi.set(e,n),r.observe(e),()=>{hi.delete(e),r.unobserve(e)}}const xi={some:0,all:1};const yi={inView:{Feature:class extends ei{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:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:xi[r]};return vi(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!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(),i=t?n:r;i&&i(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 ei{constructor(){super(...arguments),this.removeStartListeners=pi,this.removeEndListeners=pi,this.removeAccessibleListeners=pi,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Yo(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();li.update(()=>{di(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Yo(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Jo(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Xo(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Xo(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&mi("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&li.update(()=>n(e,t))})}),mi("down",(e,t)=>{this.startPress(e,t)})}),t=Xo(this.node.current,"blur",()=>{this.isPressing&&mi("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Jo(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&&li.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!qo()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&li.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Yo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Xo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jo(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ei{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=Jo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ei{mount(){this.unmount=Jo(ui(this.node,!0),ui(this.node,!1))}unmount(){}}}};function Ci(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 Ii(e,t,n){const r=e.getProps();return Lo(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 wi="data-"+So("framerAppearId");let Ai=pi,Ni=pi;"production"!==process.env.NODE_ENV&&(Ai=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ni=(e,t)=>{if(!e)throw new Error(t)});const Ei=e=>1e3*e,ji=e=>e/1e3,Si=!1,Ti=e=>Array.isArray(e)&&"number"==typeof e[0];function ki(e){return Boolean(!e||"string"==typeof e&&Pi[e]||Ti(e)||Array.isArray(e)&&e.every(ki))}const Bi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bi([0,.65,.55,1]),circOut:Bi([.55,0,1,.45]),backIn:Bi([.31,.01,.66,-.59]),backOut:Bi([.33,1.53,.69,.99])};function Ri(e){if(e)return Ti(e)?Bi(e):Array.isArray(e)?e.map(Ri):Pi[e]}const Li={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Gi={},Oi={};for(const e in Li)Oi[e]=()=>(void 0===Gi[e]&&(Gi[e]=Li[e]()),Gi[e]);const Di=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Mi(e,t,n,r){if(e===t&&n===r)return pi;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Di(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Di(o(e),t,r)}const Vi=Mi(.42,0,1,1),Hi=Mi(0,0,.58,1),Wi=Mi(.42,0,.58,1),Fi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xi=e=>t=>1-e(1-t),zi=e=>1-Math.sin(Math.acos(e)),Zi=Xi(zi),Yi=Fi(Zi),_i=Mi(.33,1.53,.69,.99),Ji=Xi(_i),Ui=Fi(Ji),$i={linear:pi,easeIn:Vi,easeInOut:Wi,easeOut:Hi,circIn:zi,circInOut:Yi,circOut:Zi,backIn:Ji,backInOut:Ui,backOut:_i,anticipate:e=>(e*=2)<1?.5*Ji(e):.5*(2-Math.pow(2,-10*(e-1)))},Ki=e=>{if(Array.isArray(e)){Ni(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Mi(t,n,r,o)}return"string"==typeof e?(Ni(void 0!==$i[e],`Invalid easing type '${e}'`),$i[e]):e},Qi=(e,t)=>n=>Boolean(eo(n)&&qr.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),qi=(e,t,n)=>r=>{if(!eo(r))return r;const[o,i,a,s]=r.match(Kr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ea={..._r,transform:e=>Math.round((e=>Yr(0,255,e))(e))},ta={test:Qi("rgb","red"),parse:qi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ea.transform(e)+", "+ea.transform(t)+", "+ea.transform(n)+", "+$r(Jr.transform(r))+")"};const na={test:Qi("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ta.transform},ra={test:Qi("hsl","hue"),parse:qi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ro.transform($r(t))+", "+ro.transform($r(n))+", "+$r(Jr.transform(r))+")"},oa={test:e=>ta.test(e)||na.test(e)||ra.test(e),parse:e=>ta.test(e)?ta.parse(e):ra.test(e)?ra.parse(e):na.parse(e),transform:e=>eo(e)?e:e.hasOwnProperty("red")?ta.transform(e):ra.transform(e)},ia=(e,t,n)=>-n*e+n*t+e;function aa(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 sa=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},la=[na,ta,ra];function ca(e){const t=(n=e,la.find(e=>e.test(n)));var n;Ni(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ra&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=aa(s,r,e+1/3),i=aa(s,r,e),a=aa(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const ua=(e,t)=>{const n=ca(e),r=ca(t),o={...n};return e=>(o.red=sa(n.red,r.red,e),o.green=sa(n.green,r.green,e),o.blue=sa(n.blue,r.blue,e),o.alpha=ia(n.alpha,r.alpha,e),ta.transform(o))};const da={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:pi},pa={regex:Qr,countKey:"Colors",token:"${c}",parse:oa.parse},ma={regex:Kr,countKey:"Numbers",token:"${n}",parse:_r.parse};function ha(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function fa(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ha(n,da),ha(n,pa),ha(n,ma),n}function ga(e){return fa(e).values}function ba(e){const{values:t,numColors:n,numVars:r,tokenised:o}=fa(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(da.token,e[o]):o<r+n?t.replace(pa.token,oa.transform(e[o])):t.replace(ma.token,$r(e[o]));return t}}const va=e=>"number"==typeof e?0:e;const xa={test:function(e){var t,n;return isNaN(e)&&eo(e)&&((null===(t=e.match(Kr))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Qr))||void 0===n?void 0:n.length)||0)>0},parse:ga,createTransformer:ba,getAnimatableNone:function(e){const t=ga(e);return ba(e)(t.map(va))}},ya=(e,t)=>n=>`${n>0?t:e}`;function Ca(e,t){return"number"==typeof e?n=>ia(e,t,n):oa.test(e)?ua(e,t):e.startsWith("var(")?ya(e,t):Aa(e,t)}const Ia=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Ca(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},wa=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ca(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Aa=(e,t)=>{const n=xa.createTransformer(t),r=fa(e),o=fa(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jo(Ia(r.values,o.values),n):(Ai(!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.`),ya(e,t))},Na=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ea=(e,t)=>n=>ia(e,t,n);function ja(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Ea:"string"==typeof i?oa.test(i)?ua:Aa:Array.isArray(i)?Ia:"object"==typeof i?wa:Ea);var i;const a=e.length-1;for(let n=0;n<a;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||pi:t;i=Jo(e,i)}r.push(i)}return r}function Sa(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ni(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ja(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Na(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Yr(e[0],e[i-1],t)):l}function Ta(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Na(0,t,r);e.push(ia(n,1,o))}}(t,e.length-1),t}function ka({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ki):Ki(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Ta(t),e),s=Sa(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Wi).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Ba(e,t){return t?e*(1e3/t):0}function Pa(e,t,n){const r=Math.max(t-5,0);return Ba(n-e(r),t-r)}const Ra=.001;function La({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ai(e<=Ei(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Yr(.05,1,a),e=Yr(.01,10,ji(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Oa(t,a),l=Math.exp(-o);return Ra-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Oa(Math.pow(t,2),a);return(-o(t)+Ra>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Ga;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Ei(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Ga=12;function Oa(e,t){return e*Math.sqrt(1-t*t)}const Da=["duration","bounce"],Ma=["stiffness","damping","mass"];function Va(e,t){return t.some(t=>void 0!==e[t])}function Ha({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,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(!Va(e,Ma)&&Va(e,Da)){const n=La(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-ji(u):0,h=l/(2*Math.sqrt(s*c)),f=i-o,g=ji(Math.sqrt(s/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Oa(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>i-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 i-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)a.done=e>=d;else{let o=m;0!==e&&(o=h<1?Pa(v,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Wa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const f=d+h,g=void 0===a?f:a(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,C;const I=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(y=e,C=Ha({keyframes:[p.value,m(p.value)],velocity:Pa(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:e=>{let t=!1;return C||void 0!==y||(t=!0,x(e),I(e)),void 0!==y&&e>y?C.next(e-y):(!t&&x(e),p)}}}const Fa=e=>{const t=({timestamp:t})=>e(t);return{start:()=>li.update(t,!0),stop:()=>ci(t),now:()=>ti.isProcessing?ti.timestamp:performance.now()}};function Xa(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 za={decay:Wa,inertia:Wa,tween:ka,keyframes:ka,spring:Ha};function Za({autoplay:e=!0,delay:t=0,driver:n=Fa,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="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=za[o]||ka;let y;x!==ka&&"number"!=typeof r[0]&&(y=Sa([0,100],r,{clamp:!1}),r=[0,100]);const C=x({...p,keyframes:r});let I;"mirror"===s&&(I=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,E=null;null===C.calculatedDuration&&i&&(C.calculatedDuration=Xa(C));const{calculatedDuration:j}=C;let S=1/0,T=1/0;null!==j&&(S=j+a,T=S*(i+1)-a);let k=0;const B=e=>{if(null===N)return;f>0&&(N=Math.min(N,e)),k=null!==A?A:(e-N)*f;const n=k-t,o=n<0;k=Math.max(n,0),"finished"===w&&null===A&&(k=T);let l=k,c=C;if(i){const e=k/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/S)):"mirror"===s&&(c=I));let o=Yr(0,1,n);k>T&&(o="reverse"===s&&r?1:0),l=o*S}const u=o?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;o||null===j||(p=k>=T);const m=null===A&&("finished"===w||"running"===w&&p||f<0&&k<=0);return d&&d(u.value),m&&L(),u},P=()=>{v&&v.stop(),v=void 0},R=()=>{w="idle",P(),b(),N=E=null},L=()=>{w="finished",u&&u(),P(),b()},G=()=>{if(g)return;v||(v=n(B));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),E=N,A=null,w="running",v.start()};e&&G();const O={then:(e,t)=>h.then(e,t),get time(){return ji(k)},set time(e){e=Ei(e),k=e,null===A&&v&&0!==f?N=v.now()-e/f:A=e},get duration(){const e=null===C.calculatedDuration?Xa(C):C.calculatedDuration;return ji(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,O.time=ji(k))},get state(){return w},play:G,pause:()=>{w="paused",A=k},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),R())},cancel:()=>{null!==E&&B(E),R()},complete:()=>{w="finished"},sample:e=>(N=0,B(e))};return O}const Ya=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function _a(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Oi.waapi()&&Ya.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise(e=>{i=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!ki(t.ease))(t,o)){const e=Za({...o,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:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ri(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{li.update(h),i(),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,o)),r&&r(),f()},{then:(e,t)=>a.then(e,t),get time(){return ji(m.currentTime||0)},set time(e){m.currentTime=Ei(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return ji(u)},play:()=>{s||(m.play(),ci(h))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Za({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Ja={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua={type:"keyframes",duration:.8},$a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ka=(e,{keyframes:t})=>t.length>2?Ua:Dr.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ja:$a,Qa=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!xa.test(t)&&"0"!==t||t.startsWith("url("))),qa=new Set(["brightness","contrast","saturate","opacity"]);function es(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Kr)||[];if(!r)return e;const o=n.replace(r,"");let i=qa.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ts=/([a-z-]*)\(.*?\)/g,ns={...xa,getAnimatableNone:e=>{const t=e.match(ts);return t?t.map(es).join(" "):e}},rs={...co,color:oa,backgroundColor:oa,outlineColor:oa,fill:oa,stroke:oa,borderColor:oa,borderTopColor:oa,borderRightColor:oa,borderBottomColor:oa,borderLeftColor:oa,filter:ns,WebkitFilter:ns},os=e=>rs[e];function is(e,t){let n=os(e);return n!==ns&&(n=xa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const as=e=>/^0[^.\s]+$/.test(e);function ss(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||as(e):void 0}function ls(e,t){return e[t]||e.default||e}const cs=(e,t,n,r={})=>o=>{const i=ls(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Ei(a);const l=function(e,t,n,r){const o=Qa(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),ss(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=is(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Qa(e,c),p=Qa(e,u);Ai(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",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...Ka(e,m)}),m.duration&&(m.duration=Ei(m.duration)),m.repeatDelay&&(m.repeatDelay=Ei(m.repeatDelay)),!d||!p||Si||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:pi,pause:pi,stop:pi,then:e=>(e(),Promise.resolve()),cancel:pi,complete:pi});return t?Za({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=_a(t,e,m);if(n)return n}return Za(m)};function us(e){return Boolean(Vr(e)&&e.add)}const ds=e=>/^\-?\d*\.?\d+$/.test(e);function ps(e,t){-1===e.indexOf(t)&&e.push(t)}function ms(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hs{constructor(){this.subscriptions=[]}add(e){return ps(this.subscriptions,e),()=>ms(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 o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fs=new Set;function gs(e,t,n){e||fs.has(t)||(console.warn(t),fs.add(t))}class bs{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}=ti;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,li.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=()=>li.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&&gs(!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 hs);const n=this.events[e].add(t);return"change"===e?()=>{n(),li.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?Ba(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 vs(e,t){return new bs(e,t)}const xs=e=>t=>t.test(e),ys=[_r,oo,ro,no,ao,io,{test:e=>"auto"===e,parse:e=>e}],Cs=e=>ys.find(xs(e)),Is=[...ys,oa,xa],ws=e=>Is.find(xs(e));function As(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vs(n))}function Ns(e,t){if(!t)return;return(t[e]||t.default||t).from}function Es({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function js(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&Es(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[wi];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,li))}r.start(cs(t,r,o,e.shouldReduceMotion&&Dr.has(t)?{type:!1}:a));const d=r.animation;us(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=Ii(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)As(e,t,Do(i[t]))}(e,a)}),c}function Ss(e,t,n={}){const r=Ii(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(js(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ts).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(Ss(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(n.delay)])}function Ts(e,t){return e.sortNodePosition(t)}const ks=[...xr].reverse(),Bs=xr.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 o=t.map(t=>Ss(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Ss(e,t,n);else{const o="function"==typeof t?Ii(e,t,n.custom):t;r=Promise.all(js(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Rs(e){let t=Ps(e);const n={animate:Gs(!0),whileInView:Gs(),whileHover:Gs(),whileTap:Gs(),whileDrag:Gs(),whileFocus:Gs(),exit:Gs()};let r=!0;const o=(t,n)=>{const r=Ii(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Bs;t++){const m=ks[t],h=n[m],f=void 0!==s[m]?s[m]:l[m],g=br(f),b=m===a?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==s[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||vr(f)||"boolean"==typeof f)continue;const x=Ls(h.prevProp,f);let y=x||m===a&&h.isActive&&!v&&g||t>p&&g;const C=Array.isArray(f)?f:[f];let I=C.reduce(o,{});!1===b&&(I={});const{prevResolvedValues:w={}}=h,A={...w,...I},N=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in A){const t=I[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Oo(t)&&Oo(n)?!Ci(t,n)||x?N(e):h.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=I,h.isActive&&(d={...d,...I}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...C.map(e=>({animation:e,options:{type:m,...i}})))}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===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Ls(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Ci(t,e)}function Gs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Os=0;const Ds={animation:{Feature:class extends ei{constructor(e){super(e),e.animationState||(e.animationState=Rs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),vr(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 ei{constructor(){super(...arguments),this.id=Os++}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 o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ms=(e,t)=>Math.abs(e-t);class Vs{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=Fs(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ms(e.x,t.x),r=Ms(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:o}=ti;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Hs(t,this.transformPagePoint),li.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Fs("pointercancel"===e.type?this.lastMoveEventInfo:Hs(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!zo(e))return;this.handlers=t,this.transformPagePoint=n;const r=Hs(Zo(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=ti;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Fs(r,this.history)),this.removeListeners=Jo(Yo(window,"pointermove",this.handlePointerMove),Yo(window,"pointerup",this.handlePointerUp),Yo(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ci(this.updatePoint)}}function Hs(e,t){return t?{point:t(e.point)}:e}function Ws(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fs({point:e},t){return{point:e,delta:Ws(e,zs(t)),offset:Ws(e,Xs(t)),velocity:Zs(t,.1)}}function Xs(e){return e[0]}function zs(e){return e[e.length-1]}function Zs(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zs(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ei(t)));)n--;if(!r)return{x:0,y:0};const i=ji(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ys(e){return e.max-e.min}function _s(e,t=0,n=.01){return Math.abs(e-t)<=n}function Js(e,t,n,r=.5){e.origin=r,e.originPoint=ia(t.min,t.max,e.origin),e.scale=Ys(n)/Ys(t),(_s(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ia(n.min,n.max,e.origin)-e.originPoint,(_s(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Us(e,t,n,r){Js(e.x,t.x,n.x,r?r.originX:void 0),Js(e.y,t.y,n.y,r?r.originY:void 0)}function $s(e,t,n){e.min=n.min+t.min,e.max=e.min+Ys(t)}function Ks(e,t,n){e.min=t.min-n.min,e.max=e.min+Ys(t)}function Qs(e,t,n){Ks(e.x,t.x,n.x),Ks(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 el(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 tl=.35;function nl(e,t,n){return{min:rl(e,t),max:rl(e,n)}}function rl(e,t){return"number"==typeof e?e:e[t]||0}const ol=()=>({x:{min:0,max:0},y:{min:0,max:0}});function il(e){return[e("x"),e("y")]}function al({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sl(e){return void 0===e||1===e}function ll({scale:e,scaleX:t,scaleY:n}){return!sl(e)||!sl(t)||!sl(n)}function cl(e){return ll(e)||ul(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ul(e){return dl(e.x)||dl(e.y)}function dl(e){return e&&"0%"!==e}function pl(e,t,n){return n+t*(e-n)}function ml(e,t,n,r,o){return void 0!==o&&(e=pl(e,o,r)),pl(e,n,r)+t}function hl(e,t=0,n=1,r,o){e.min=ml(e.min,t,n,r,o),e.max=ml(e.max,t,n,r,o)}function fl(e,{x:t,y:n}){hl(e.x,t.translate,t.scale,t.originPoint),hl(e.y,n.translate,n.scale,n.originPoint)}function gl(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function bl(e,t){e.min=e.min+t,e.max=e.max+t}function vl(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=ia(e.min,e.max,i);hl(e,t[n],t[r],a,t.scale)}const xl=["x","scaleX","originX"],yl=["y","scaleY","originY"];function Cl(e,t){vl(e.x,t,xl),vl(e.y,t,yl)}function Il(e,t){return al(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 wl=new WeakMap;class Al{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 Vs(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Zo(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qo(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),il(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ro.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ys(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&li.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=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}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(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:o}=this.getProps();o&&li.update(()=>o(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||!Nl(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ia(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ia(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&gr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:qs(e.x,n,o),y:qs(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=tl){return!1===e?e=0:!0===e&&(e=tl),{x:nl(e,"left","right"),y:nl(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&il(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||!gr(e))return!1;const n=e.current;Ni(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 o=function(e,t,n){const r=Il(e,n),{scroll:o}=t;return o&&(bl(r.x,o.offset.x),bl(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:el(e.x,t.x),y:el(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=al(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=il(a=>{if(!Nl(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(cs(e,n,0,t))}stopAnimation(){il(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){il(t=>{const{drag:n}=this.getProps();if(!Nl(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-ia(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!gr(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};il(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ys(e),o=Ys(t);return o>r?n=Na(t.min,t.max-r,e.min):r>o&&(n=Na(e.min,e.max-o,t.min)),Yr(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),il(t=>{if(!Nl(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(ia(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;wl.set(this.visualElement,this);const e=Yo(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();gr(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 o=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(il(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=tl,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Nl(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const El=e=>(t,n)=>{e&&li.update(()=>e(t,n))};const jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Tl={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!oo.test(e))return e;e=parseFloat(e)}return`${Sl(e,t.target.x)}% ${Sl(e,t.target.y)}%`}},kl={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xa.parse(e);if(o.length>5)return r;const i=xa.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=ia(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Bl extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rl,Object.assign(Gr,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||li.postRender(()=>{const e=i.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 Pl(e){const[n,r]=function(){const e=t.useContext(pr);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(jr);return l.default.createElement(Bl,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(Sr),isPresent:n,safeToRemove:r})}const Rl={borderRadius:{...Tl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tl,borderTopRightRadius:Tl,borderBottomLeftRadius:Tl,borderBottomRightRadius:Tl,boxShadow:kl},Ll=["TopLeft","TopRight","BottomLeft","BottomRight"],Gl=Ll.length,Ol=e=>"string"==typeof e?parseFloat(e):e,Dl=e=>"number"==typeof e||oo.test(e);function Ml(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Vl=Wl(0,.5,Zi),Hl=Wl(.5,.95,pi);function Wl(e,t,n){return r=>r<e?0:r>t?1:n(Na(e,t,r))}function Fl(e,t){e.min=t.min,e.max=t.max}function Xl(e,t){Fl(e.x,t.x),Fl(e.y,t.y)}function zl(e,t,n,r,o){return e=pl(e-=t,1/n,r),void 0!==o&&(e=pl(e,1/o,r)),e}function Zl(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){ro.test(t)&&(t=parseFloat(t),t=ia(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=ia(i.min,i.max,r);e===i&&(s-=t),e.min=zl(e.min,t,n,s,o),e.max=zl(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Yl=["x","scaleX","originX"],_l=["y","scaleY","originY"];function Jl(e,t,n,r){Zl(e.x,t,Yl,n?n.x:void 0,r?r.x:void 0),Zl(e.y,t,_l,n?n.y:void 0,r?r.y:void 0)}function Ul(e){return 0===e.translate&&1===e.scale}function $l(e){return Ul(e.x)&&Ul(e.y)}function Kl(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 Ql(e){return Ys(e.x)/Ys(e.y)}class ql{constructor(){this.members=[]}add(e){ps(this.members,e),e.scheduleRender()}remove(e){if(ms(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 ec(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const tc=(e,t)=>e.depth-t.depth;class nc{constructor(){this.children=[],this.isDirty=!1}add(e){ps(this.children,e),this.isDirty=!0}remove(e){ms(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tc),this.isDirty=!1,this.children.forEach(e)}}const rc=["","X","Y","Z"];let oc=0;const ic={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ac({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=oc++,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;ic.totalNodes=ic.resolvedTargetDeltas=ic.recalculatedProjection=0,this.nodes.forEach(cc),this.nodes.forEach(gc),this.nodes.forEach(bc),this.nodes.forEach(uc),e=ic,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 nc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hs),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:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(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:o})=>{const i=o-n;i>=t&&(ci(r),e(i-t))};return li.read(r,!0),()=>ci(r)}(r,250),jl.hasAnimatedSinceResize&&(jl.hasAnimatedSinceResize=!1,this.nodes.forEach(fc))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&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 o=this.options.transition||a.getDefaultTransition()||wc,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Kl(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={...ls(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||fc(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,ci(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(vc),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(pc);this.isUpdating||this.nodes.forEach(mc),this.isUpdating=!1,this.nodes.forEach(hc),this.nodes.forEach(sc),this.nodes.forEach(lc),this.clearAllSnapshots();const e=performance.now();ti.delta=Yr(0,1e3/60,e-ti.timestamp),ti.timestamp=e,ti.isProcessing=!0,ii.update.process(ti),ii.preRender.process(ti),ii.render.process(ti),ti.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(dc),this.sharedNodes.forEach(xc)}scheduleUpdateProjection(){li.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){li.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(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!$l(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||cl(this.latestValues)||i)&&(o(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)),Ac((r=n).x),Ac(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&&(bl(t.x,n.offset.x),bl(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xl(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Xl(t,e);const{scroll:n}=this.root;n&&(bl(t.x,-n.offset.x),bl(t.y,-n.offset.y))}bl(t.x,o.offset.x),bl(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xl(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&&Cl(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),cl(r.latestValues)&&Cl(n,r.latestValues)}return cl(this.latestValues)&&Cl(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Xl(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!cl(n.latestValues))continue;ll(n.latestValues)&&n.updateSnapshot();const r=ol();Xl(r,n.measurePageBox()),Jl(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return cl(this.latestValues)&&Jl(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!==ti.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:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=ti.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}},Qs(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Xl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,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(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,$s(a.x,s.x,l.x),$s(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xl(this.target,this.layout.layoutBox),fl(this.target,this.targetDelta)):Xl(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}},Qs(this.relativeTargetOrigin,this.target,e.target),Xl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ic.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ll(this.parent.latestValues)&&!ul(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===ti.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=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||!o&&!i)return;Xl(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Cl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,fl(e,a)),r&&cl(i.latestValues)&&Cl(e,i.latestValues))}t.x=gl(t.x),t.y=gl(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;Us(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ec(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ic.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:{},o={...this.latestValues},i={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 a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Ic));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;yc(i.x,e.x,n),yc(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qs(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Cc(e.x,t.x,n.x,r),Cc(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Kl(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Xl(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=ia(0,void 0!==n.opacity?n.opacity:1,Vl(r)),e.opacityExit=ia(void 0!==t.opacity?t.opacity:1,0,Hl(r))):i&&(e.opacity=ia(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Gl;o++){const i=`border${Ll[o]}Radius`;let a=Ml(t,i),s=Ml(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Dl(a)===Dl(s)?(e[i]=Math.max(ia(Ol(a),Ol(s),r),0),(ro.test(s)||ro.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=ia(t.rotate||0,n.rotate||0,r))}(o,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&&(ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=li.update(()=>{jl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Vr(e)?e:vs(e);return r.start(cs("",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:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Nc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ys(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ys(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Xl(t,n),Cl(t,o),Us(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ql);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<rc.length;t++){const o="rotate"+rc[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,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 o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Mo(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Mo(e.pointerEvents)||""),this.hasProjected&&!cl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ec(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Gr){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Gr[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Mo(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(pc),this.root.sharedNodes.clear()}}}function sc(e){e.updateLayout()}function lc(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:o}=e.options,i=n.source!==e.layout.source;"size"===o?il(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Ys(r);r.min=t[e].min,r.max=r.min+o}):Nc(o,n.layoutBox,t)&&il(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Ys(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Us(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Us(s,e.applyTransform(r,!0),n.measuredBox):Us(s,t,n.layoutBox);const l=!$l(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Qs(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Qs(s,t,i.layoutBox),Kl(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function cc(e){ic.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 uc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dc(e){e.clearSnapshot()}function pc(e){e.clearMeasurements()}function mc(e){e.isLayoutDirty=!1}function hc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gc(e){e.resolveTargetDelta()}function bc(e){e.calcProjection()}function vc(e){e.resetRotation()}function xc(e){e.removeLeadSnapshot()}function yc(e,t,n){e.translate=ia(t.translate,0,n),e.scale=ia(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cc(e,t,n,r){e.min=ia(t.min,n.min,r),e.max=ia(t.max,n.max,r)}function Ic(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wc={duration:.45,ease:[.4,0,.1,1]};function Ac(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Nc(e,t,n){return"position"===e||"preserve-aspect"===e&&!_s(Ql(t),Ql(n),.2)}const Ec=ac({attachResizeListener:(e,t)=>Xo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Sc=ac({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new Ec({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Tc={pan:{Feature:class extends ei{constructor(){super(...arguments),this.removePointerDownListener=pi}onPointerDown(e){this.session=new Vs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:El(e),onStart:El(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&li.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Yo(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 ei{constructor(e){super(e),this.removeGroupControls=pi,this.removeListeners=pi,this.controls=new Al(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pi}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sc,MeasureLayout:Pl}},kc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Bc(e,t,n=1){Ni(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=kc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():zr(o)?Bc(o,t,n+1):o}const Pc=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rc=e=>Pc.has(e),Lc=e=>e===_r||e===oo,Gc=(e,t)=>parseFloat(e.split(", ")[t]),Oc=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Gc(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Gc(t[1],e):0}},Dc=new Set(["x","y","z"]),Mc=Or.filter(e=>!Dc.has(e));const Vc={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:Oc(4,13),y:Oc(5,14)},Hc=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Rc);let i=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Cs(c);const d=t[o];let p;if(Oo(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Cs(c);for(let n=t;n<e&&null!==d[n];n++)p?Ni(Cs(d[n])===p,"All keyframes must be of the same type"):(p=Cs(d[n]),Ni(p===u||Lc(u)&&Lc(p),"Keyframes must be of the same dimension as the current value"))}else p=Cs(d);if(u!==p)if(Lc(u)&&Lc(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===oo&&(t[o]=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[o]=u.transform(d):(a||(i=function(e){const t=[];return Mc.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),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))}),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=Vc[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Vc[n](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),mr&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Wc(e,t,n,r){return(e=>Object.keys(e).some(Rc))(t)?Hc(e,t,n,r):{target:t,transitionEnd:r}}const Fc=(e,t,n,r)=>{const o=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(!zr(t))return;const n=Bc(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!zr(o))continue;const i=Bc(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Wc(e,t=o.target,n,r=o.transitionEnd)},Xc={current:null},zc={current:!1};function Zc(){if(zc.current=!0,mr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xc.current=e.matches;e.addListener(t),t()}else Xc.current=!1}const Yc=new WeakMap,_c=Object.keys(Er),Jc=_c.length,Uc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$c=yr.length;class Kc{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){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=()=>li.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Cr(t),this.isVariantNode=Ir(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!==a[e]&&Vr(t)&&(t.set(a[e],!1),us(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Yc.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)),zc.current||Zc(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xc.current),"production"!==process.env.NODE_ENV&&gs(!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(){Yc.delete(this.current),this.projection&&this.projection.unmount(),ci(this.notifyUpdate),ci(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=Dr.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&li.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;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?Ai(!1,e):Ni(!1,e)}for(let e=0;e<Jc;e++){const n=_c[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Er[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&gr(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}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<Uc.length;t++){const n=Uc[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 o in t){const i=t[o],a=n[o];if(Vr(i))e.addValue(o,i),us(r)&&r.add(o),"development"===process.env.NODE_ENV&&gs("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Vr(a))e.addValue(o,vs(i,{owner:e})),us(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,vs(void 0!==t?t:i,{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<$c;e++){const n=yr[e],r=this.props[n];(br(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=vs(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=Lo(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Vr(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new hs),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Qc extends Kc{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},o){let i=function(e,t,n){const r={};for(const o in e){const e=Ns(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(ds(c)||as(c))?c=parseFloat(c):!ws(c)&&xa.test(l)&&(c=is(a,l)),e.addValue(a,vs(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Fc(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class qc extends Qc{readValueFromInstance(e,t){if(Dr.has(t)){const e=os(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Xr(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Il(e,t)}build(e,t,n,r){uo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Po(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Vr(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){To(e,t,n,r)}}class eu extends Qc{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Dr.has(t)){const e=os(t);return e&&e.default||0}return t=ko.has(t)?t:So(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Ro(e,t)}build(e,t,n,r){wo(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Bo(e,t,0,r)}mount(e){this.isSVGTag=No(e.tagName),super.mount(e)}}const tu=(e,t)=>Lr(e)?new eu(t,{enableHardwareAcceleration:!1}):new qc(t,{enableHardwareAcceleration:!0}),nu={...Ds,...yi,...Tc,...{layout:{ProjectionNode:Sc,MeasureLayout:Pl}}},ru=Pr((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Lr(e)?Wo:Fo,preloadedFeatures:n,useRender:jo(t),createVisualElement:r,Component:e}}(e,t,nu,tu));function ou(){const e=t.useRef(!1);return hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class iu 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 au({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),i=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:a,left:s}=i.current;if(n||!o.current||!e||!t)return;o.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: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(iu,{isPresent:n,childRef:o,sizeRef:i},l.cloneElement(e,{ref:o}))}const su=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const c=Go(lu),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;o&&o()},register:e=>(c.set(e,!1),()=>c.delete(e))}),a?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&o&&o()},[r]),"popLayout"===s&&(e=l.createElement(au,{isPresent:r},e)),l.createElement(pr.Provider,{value:d},e)};function lu(){return new Map}const cu=e=>e.key||"";const uu=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Ni(!i,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(jr).forceRender||function(){const e=ou(),[n,r]=t.useState(0),o=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>li.postRender(o),[o]),n]}()[0],u=ou(),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(hr(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=cu(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(su,{key:cu(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e)));p=[...p];const v=h.current.map(cu),x=d.map(cu),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"===s&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const i=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(),o&&o()}};g=l.createElement(su,{key:cu(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:a,mode:s},r),m.set(t,g)}p.splice(i,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(su,{key:cu(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)}),"production"!==process.env.NODE_ENV&&"wait"===s&&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 du(){!zc.current&&Zc();const[e]=t.useState(Xc.current);return"production"!==process.env.NODE_ENV&&gs(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const pu={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 mu({children:t,animationType:n=cr,disableAnimation:r=!0,whileHover:o,whileTap:i,transition:a,...s}){const c=du(),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=pu[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,...o}:o,m=(null==d?void 0:d.whileTap)||i?{...null==d?void 0:d.whileTap,...i}:void 0,h=d?{...d.transition,...a}:a;if("string"==typeof u.type){const t=ru[u.type];return e.jsx(t,{...u.props,ref:u.ref,whileHover:p,whileTap:m,transition:h,...s})}return e.jsx(ru.div,{whileHover:p,whileTap:m,transition:h,...s,children:u})}mu.displayName="AnimationWrapper";const hu=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()},fu=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:a,buttonClassName:s,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,disableAnimation:p,animationType:m=cr,as:h="button",...f},g)=>{const b=(()=>{const e=Ne((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 sm:whitespace-nowrap",a?"w-full":"w-auto"),r=Ne((i||n)&&"cursor-not-allowed",n&&"pl-7");return Ne(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,s)})();let v=`button--${t}`;n&&(v+=" button--loading"),i&&(v+=" button--disabled");const x=`${v} ${b}`,y=e.jsxs(e.Fragment,{children:[n?e.jsx($n,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ne(hu(l)),children:o}),r]}):r,c?e.jsx($n,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(mu,{disableAnimation:p,animationType:m,children:e.jsx("a",{ref:g,className:Ne(x),...f,"data-component":"BrandButton","data-variant":"anchor",children:y})}):e.jsx(mu,{disableAnimation:p,animationType:m,children:e.jsx("button",{ref:g,className:Ne(x),disabled:i||n,...f,"data-component":"BrandButton","data-variant":"button",children:y})})});fu.displayName="BrandButton";const gu=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:o,buttonPrefix:i,href:a,target:s="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:m,renderCheckPlans:h,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:b,idNameToOpen:v,onModalButtonClick:x,onClick:y,iconName:C,iconFill:I=0,size:w,iconSize:A=24,preserveQueryParameters:N,disableAnimation:E,animationType:j=cr,...S}=t;if("check availability"===m&&h){const i=null==h?void 0:h({ctaText:o,buttonVariant:r,showButtonAs:n,cta:{...t}});return l.default.isValidElement(i)?e.jsx(mu,{disableAnimation:E,animationType:j,children:i}):i}function T(){"modal"===g&&(null==x||x(b)),"clickId"===g&&function(){var e;if("clickId"===g&&v){const t=document.getElementById(v);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),null===(e=t.click)||void 0===e||e.call(t))}}()}function k(e){T(),null==y||y(e)}function B(e){T(),null==y||y(e)}const P="undefined"!=typeof window?window.location.search:"",R=m?void 0:a&&N&&P?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(ot),o=new Set([...r,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,n]=e.split("?");i=t,a=new URLSearchParams(n||"")}}catch(t){return e}const s=new URLSearchParams(a);n.forEach((e,t)=>{o.has(t.toLowerCase())||s.has(t)||s.set(t,e)});const l=s.toString();return l?`${i}?${l}`:i}(a,P):a;let L=e.jsx(ir,{onClick:B,className:f,...S});switch(n){case"solid":L=R?e.jsx(fu,{as:"a",href:R,id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:k,disableAnimation:E,animationType:j}):e.jsx(fu,{id:c,variant:r,text:o,label:i,fullWidth:p,size:w,onClick:B,buttonClassName:f,disableAnimation:E,animationType:j});break;case"text":L=e.jsxs(tr,{title:o,href:R,target:s,variant:d||"default",className:`text-text-brand ${u||""}`,onClick:k,children:[o," ",C&&e.jsx($n,{name:C,size:A,fill:I})]});break;case"button-with-icon":L=R?e.jsx(fu,{as:"a",href:R,id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:k,iconName:C,iconSize:A,iconFill:I,disableAnimation:E,animationType:j}):e.jsx(fu,{id:c,variant:r,text:o,label:i,fullWidth:p,buttonClassName:f,size:w,onClick:B,iconName:C,iconSize:A,iconFill:I,disableAnimation:E,animationType:j});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);L=e.jsxs(tr,{href:R,target:s,onClick:k,className:Ne("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,f),"aria-label":o,children:[e.jsx(Kn,{"aria-label":o,className:"label1 text-nowrap",children:o}),C&&e.jsx($n,{name:C,fill:I,size:A,weight:"200"})]});break}}return e.jsx(mu,{disableAnimation:E,animationType:j,children:L})};var bu;const vu=null!==(bu=c.default)&&void 0!==bu?bu:c,xu=({href:t,title:n,description:r,date:o,category:i,image:a,imageComponent:s,readMoreText:l="Read more",asGrid:c=!0,index:u})=>{const d=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 w-full 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";return e.jsxs("article",{className:d,"data-section-type":"blog-card","data-section-index":u,children:[e.jsx(vu,{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:a?s?e.jsx(s,{src:a.src,alt:a.alt,width:a.width,height:a.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:a.src,alt:a.alt,width:a.width,height:a.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:i}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:o})]})]}),n&&e.jsx(vu,{href:t,className:"heading6 m-0 line-clamp-3 font-black transition-colors duration-150 hover:text-text-brand",children:n}),r&&e.jsx(Kn,{className:"body1 m-0 line-clamp-3 flex-1 text-text",children:r}),e.jsxs(vu,{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(Kn,{"aria-label":`${l} about ${n||"this article"}`,className:"label1 text-nowrap",children:l}),e.jsx($n,{name:"expand_circle_right",fill:1,size:24,weight:"200"})]})]})]})},yu=(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),Cu=({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()},Iu=t.forwardRef(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net"),s=a&&i.endsWith(".svg"),l=a&&!s?{loader:Cu,unoptimized:!1}:{unoptimized:s};return e.jsx(yu,{ref:r,className:Ne(t),...n,...l})});Iu.displayName="NextImage";const wu={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Au=({card:t,lgWidth:n,mdWidth:r})=>{var o,i,a,s;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?wu[m]:wu.left,y=h?"cursor-pointer":"",C=h?()=>{"undefined"!=typeof window&&window.open(h,"_blank")}:void 0;return b?(null==l?void 0:l.href)?e.jsx(Iu,{src:l.href,alt:null!==(i=null!==(o=l.title)&&void 0!==o?o:c)&&void 0!==i?i:"promo-bar-image",width:148,height:40,onClick:C,className:y}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ne("callout-card relative flex h-full w-full flex-col gap-5 px-0 pb-4 pt-0 md:items-start md:gap-6 lg:pb-0",v&&"rounded-3xl shadow-card",r,n,g),children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ne("relative h-[233px] w-full overflow-hidden sm:mb-1 md:h-[274px] md:flex-none lg:h-[330px] lg:mb-0",f),children:e.jsx(Iu,{src:l.href,alt:null!==(s=null!==(a=l.title)&&void 0!==a?a:c)&&void 0!==s?s:"card-image",width:l.width||400,height:l.height||330,onClick:C,className:Ne("h-full w-full rounded-[40px] object-cover",y)})}):null,u?e.jsx(Kn,{as:"h6",className:"heading6 text-text",children:u}):null,d?e.jsx(Kn,{as:"div",className:"body1 -mt-1 mb-0 flex-1 text-text md:-mt-2 lg:mt-2",children:d}):null,e.jsx("div",{className:Ne(x,"mt-auto"),children:p?e.jsx(gu,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...p,iconName:"expand_circle_right",iconFill:1}):null})]})},Nu=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:o="FullImageCard",title:i,description:a,caption:s,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=i?e.jsx(Kn,{as:"h3",className:"body1 text-text xl:heading6",children:i}):null;return e.jsxs("section",{id:o,className:Ne("callout-card relative flex flex-col rounded-3xl bg-white p-0",h&&"shadow-card",r,n,"w-full",d),"aria-labelledby":`card-title-${o}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ne("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(Iu,{src:l.href,alt:null!==(n=null!==(t=l.title)&&void 0!==t?t:i)&&void 0!==n?n:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return g?e.jsx(tr,{href:g,tabIndex:-1,target:null==f?void 0:f.target,children:r}):r})()}):null,e.jsxs("div",{className:Ne("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(tr,{href:g,target:null==f?void 0:f.target,className:"no-underline hover:underline",children:b}):b,a?e.jsx(Kn,{as:"p",className:"body2 mt-4 text-text md:body1",children:a}):null]}),s?e.jsx(Kn,{as:"p",className:"footnote mt-5 text-text-secondary",children:s}):null]}),c?e.jsx("div",{className:"mt-2 flex items-end",children:e.jsx(gu,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...c,iconName:"expand_circle_right",iconFill:1})}):null]})]})},Eu={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},ju={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Su={left:"justify-start",right:"justify-end",center:"justify-center"},Tu=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},ku=({card:t,lgWidth:n,mdWidth:r,className:o,contentClassName:i,style:a})=>{var s,l,c,u,d,p,m,h,f,g,b,v,x,y,C,I,w;const A=null===(s=t.imageView)||void 0===s?void 0:s.toLowerCase(),N="full"===A,E="margin"===A,j="standard"===A,S="icon"===A||"inset"===A||!A&&!!t.image,T=j||S,k=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",B=t.ctaAlignment&&ju[t.ctaAlignment]||ju.left,P=t.ctaAlignmentBottom&&Su[t.ctaAlignmentBottom]||Su.left,R=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],L=T&&t.applyCardBackgroundColor,G={...a,...L&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...L&&t.textColor?{"--scc-fg":t.textColor}:{},...L&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...L&&t.showBackgroundImage&&R?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ee(R))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},O=n=>{var r,o;return t.image?e.jsx("div",{className:Ne("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Iu,{src:t.image,alt:null!==(o=null!==(r=t.imageAlt)&&void 0!==r?r:t.title)&&void 0!==o?o:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ne("w-full",!n&&"rounded-t-3xl")})}):null},D=L&&t.textColor?{color:t.textColor}:void 0,M=t.title?e.jsx(Kn,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:D,children:t.title}):null,V=(null===(d=t.cta)||void 0===d?void 0:d.href)&&M?e.jsx(tr,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:D,children:M}):M,H=(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:Ne("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!N&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(b=Eu[null!==(g=t.backgroundColor)&&void 0!==g?g:""])&&void 0!==b?b:""),r,n,o),style:G,"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:Ne("top-link m-6 flex items-center lg:m-8",P),children:e.jsxs(tr,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx($n,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&N?O(!1):null,t.image&&E?O(!0):null,e.jsxs("div",{className:Ne("relative flex flex-1 flex-col justify-between px-6 pb-8 pt-7 lg:px-8 lg:py-8",i),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ne("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ne(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||N||E?null:(()=>{var n,r;if(!t.image)return null;const o=j&&t.imageWidth||60,i=j&&t.imageHeight||60;return e.jsx("div",{className:Ne("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:k},children:e.jsx(Iu,{src:t.image,alt:null!==(r=null!==(n=t.imageAlt)&&void 0!==n?n:t.title)&&void 0!==r?r:"card-icon",width:o,height:i,className:Ne("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[V,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(Kn,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,H?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,o]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(Kn,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(Kn,{className:"body2 font-bold text-text",children:o})})]},`wh-${n}`)}),null===(C=t.phoneNumber)||void 0===C?void 0:C.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx($n,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(tr,{href:Tu(t),className:"text-inherit no-underline",children:e.jsx(Kn,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(Kn,{as:"div",className:"body1 text-text",style:D,children:t.body}):null,t.richText?e.jsx(Kn,{as:"div",className:"body1 text-text",style:D,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ne("mt-2",B),children:e.jsx(gu,{linkVariant:"unstyled",linkClassName:Ne("label1 flex items-center gap-2 text-text",L&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(I=t.cta.iconName)&&void 0!==I?I:"expand_circle_right",iconFill:null!==(w=t.cta.iconFill)&&void 0!==w?w:1})}):null]})]})},Bu={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]"},Pu={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},Ru={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)]"},Lu=e=>Math.max(1,Math.min(6,e)),Gu=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=Ne(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});Gu.displayName="Image";const Ou=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,iconSize:a=24,iconClassName:s,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 ${o?" 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==i?void 0:i({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(ir,{onClick:()=>{p(!0),n()},className:Ne(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($n,{className:Ne(s,o?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:a})]}),h]})},Du=({planName:n,planSubtext:r,speed:o,price:i,description:a,bestValue:s=!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[C,I]=t.useState(!1),w=void 0!==h?h:C,A="dark"===d;return e.jsxs("article",{className:Ne("relative flex h-full w-full max-w-[392px] flex-col",!s&&"md:pt-[38px]"),children:[s&&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:Ne("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",A?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",s?"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(Kn,{as:"h3",className:Ne("subheading2",A?"text-text-accent-on-bg-inverse":"text-text-brand"),children:n}),e.jsx(Kn,{as:"p",className:"label3 text-wrap "+(A?"text-text-accent-on-bg-inverse":"text-text-brand"),children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(Kn,{as:"span",className:Ne("label2 mr-1 mt-[2px]",A?"text-text-inverse":"text-text"),children:"$"}),e.jsx(Kn,{as:"span",className:Ne("subheading6",A?"text-text-inverse":"text-text"),children:i.split(".")[0]}),e.jsxs(Kn,{as:"span",className:Ne("label2",A?"text-text-inverse":"text-text"),children:[i.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Kn,{className:Ne("body2",A?"text-text-inverse":"text-text"),children:a})}),(null==c?void 0:c.length)?e.jsx("div",{className:Ne("flex-col items-center rounded-surface-sm p-2",A?"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(Gu,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Kn,{as:"div",className:Ne("body3",A?"text-text-inverse":"text-text"),children:t.title})]},t.title))}):null,e.jsx(Ou,{onSelect:g,speed:o,isSelected:A,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(ir,{onClick:()=>{f?f():I(!C)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(Kn,{as:"h4",className:Ne("label3",A?"text-text-inverse":"text-text"),children:p}),e.jsx($n,{name:"keyboard_arrow_down",fill:1,size:24,className:Ne("transition-transform duration-300",w&&"rotate-180",A?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ne("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(Qn,{items:m,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:A?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:""+(A?"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(Gu,{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(Kn,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},Mu=({title:t,quote:n,rating:r,author:o,role:i,avatarUrl:a,isActive:s=!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",s?"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(Kn,{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($n,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),o&&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:a?e.jsx(u.default,{src:a,alt:o,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:o.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:o}),e.jsx(Kn,{as:"p",className:"body3 text-text",children:i})]})]})]});function Vu({fields:n,renderCheckPlans:r,isVisible:o=!0}){var i,a,s,l;const c=(null===(s=null===(a=null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||void 0===a?void 0:a[0])||void 0===s?void 0:s.benefitsExpanded)||!1,[u,d]=t.useState(c),[p,m]=t.useState({}),[h,f]=t.useState(0),[g,b]=t.useState(0),[v,x]=t.useState(0),[y,C]=t.useState(!1),I=(null===(l=null==n?void 0:n.items)||void 0===l?void 0:l.items)||[],w=I.length>2,A=!1!==(null==n?void 0:n.showArrows)&&w,N=t.useRef([]),E=t.useRef(null),j=t.useRef(0);t.useEffect(()=>{if(!w||!o)return;const e=()=>{var e;const t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0;if(0===t)return;const n=t-32,r=Math.max(1,Math.floor((n+16)/408));b(Math.max(0,I.length-r))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[w,o,I.length]),t.useEffect(()=>{f(e=>Math.min(e,g))},[g]);const S=t.useCallback(()=>{w&&f(e=>Math.max(0,e-1))},[w]),T=t.useCallback(()=>{w&&f(e=>Math.min(g,e+1))},[w,g]),k=t.useCallback(e=>{w&&(j.current=e.touches[0].clientX,C(!0))},[w]),B=t.useCallback(e=>{if(!y)return;const t=e.touches[0].clientX-j.current;x(0===h&&t>0||h>=g&&t<0?.3*t:t)},[y,h,g]),P=t.useCallback(()=>{var e;if(!y)return;C(!1);const t=.15*((null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0);v>t?S():v<-t&&T(),x(0)},[y,v,S,T]);if(t.useEffect(()=>{if(!w||!o)return;const e=()=>{const e=N.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)},[w,o,u,I.length]),!I.length&&!(null==n?void 0:n.title))return null;const R=(t,n,o=!1)=>{var i,a,s,l,c,h,f,g;const b=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),v=(null==b?void 0:b[0])||"",x=(null==b?void 0:b[1])||"",y=(null===(s=null===(a=null==t?void 0:t.priceSuffix)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${y}`,I=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],w=(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=o?p[n]||!1:u;return e.jsx("div",{ref:o?void 0:e=>{e&&!N.current.includes(e)&&(N.current[n]=e)},className:Ne(o?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Du,{planName:v,planSubtext:x,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:w,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:I,isExpanded:j,onToggleExpand:()=>{o?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)};return w?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:I.map((e,t)=>R(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[A&&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:[h>0?e.jsx(ir,{onClick:S,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($n,{name:"arrow_back",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"}),h<g?e.jsx(ir,{onClick:T,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($n,{name:"arrow_forward",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"})]}),e.jsx("div",{ref:E,className:"mx-auto max-w-[1280px] select-none overflow-hidden",onTouchStart:k,onTouchMove:B,onTouchEnd:P,onTouchCancel:P,children:e.jsx("div",{className:Ne("ml-8 flex items-stretch gap-4 pb-4",y?"transition-none":"transition-transform duration-500 ease-in-out"),style:{transform:`translateX(calc(-${h} * (392px + 16px) + ${v}px))`},children:I.map((e,t)=>R(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-4",children:I.map((e,t)=>R(e,t))})}function Hu({fields:t,renderCheckPlans:n,activeTab:r,tabs:o}){var i;const a=(null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.items)||[];return o&&o.length>1&&r?e.jsx(e.Fragment,{children:o.map(i=>{const s=a.filter(e=>(e.productCategory||o[0])===i),l={...t,items:{...t.items,items:s}};return e.jsx("div",{style:{display:i===r?"block":"none"},"aria-hidden":i!==r,children:e.jsx(Vu,{fields:l,renderCheckPlans:n,isVisible:i===r})},i)})}):e.jsx(Vu,{fields:t,renderCheckPlans:n})}const Wu=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:o,swipeOffset:i,isSwiping:a,isMobile:s,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>o/2&&(u-=o),u<-o/2&&(u+=o);const d=0===u,p=1===Math.abs(u),m=u*c+i/l*100,h=!s||(a?d||p:d);return e.jsx("div",{className:Ne("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",a?"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(Mu,{...t,isActive:d,className:"h-full"})})});Wu.displayName="TestimonialCarouselSlide";const Fu=({fields:n,autoScroll:r=!0,autoScrollInterval:o=8e3})=>{var i;const a=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[];if(!a||0===a.length)return null;const s=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:o=.15,mobileBreakpoint:i=768,autoScrollInterval:a=8e3,enableAutoScroll:s=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),C={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:o,MOBILE_BREAKPOINT:i,AUTO_SCROLL_INTERVAL:a};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 I=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),A=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),N=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*o;u>e?w():u<-e&&I(),d(0),s&&a>0&&(v.current=setInterval(()=>{I()},a))},[u,h,o,w,I,s,a]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<i)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),t.useEffect(()=>{if(s&&0!==n&&0!==a)return v.current=setInterval(()=>{I()},a),()=>{v.current&&clearInterval(v.current)}},[I,n,s,a]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:I,prevSlide:w,goToSlide:A,handleTouchStart:N,handleTouchMove:E,handleTouchEnd:j,constants:C}}({itemCount:a.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:o,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(ir,{onClick:s.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($n,{name:"arrow_back",size:24})}),e.jsx(ir,{onClick:s.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($n,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:s.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:s.handleTouchStart,onTouchMove:s.handleTouchMove,onTouchEnd:s.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:a.map((t,n)=>e.jsx(Wu,{item:t,index:n,currentIndex:s.currentIndex,totalItems:a.length,swipeOffset:s.swipeOffset,isSwiping:s.isSwiping,isMobile:s.isMobile,containerWidth:s.containerWidth,cardOffsetPercentage:s.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:a.map((t,n)=>e.jsx("button",{onClick:()=>s.goToSlide(n),className:Ne("h-2 w-2 rounded-full transition-all duration-300",s.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Xu=({tabs:n,activeTab:r,onChange:o,className:i})=>{const a=n.indexOf(r),s=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=s.current[a];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[a,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ne("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",i),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=>{s.current[n]=e},onClick:()=>o(t),className:Ne("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))]})})},zu=({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($n,{name:"play_arrow",size:72,fill:1,className:"max-w-[72px] transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Zu=n=>{const{link:r,containerClassName:o,autoplay:i=!1,debug:a=!1}=n,{href:s,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("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[r]);if(a&&console.log("[VimeoEmbed] href:",s,"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],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${l}?${new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e.jsx("div",{className:Ne("relative h-0 w-full overflow-hidden pb-[56.25%]",o),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 Yu=n=>{const{link:r,containerClassName:o,autoplay:i=!1}=n,a=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]),s=i?"?autoplay=1":"";return e.jsx("div",{className:Ne("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${a}${s}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},_u=({link:n,anchorName:r,linkColorClassName:o})=>{const[i,a]=l.default.useState(!1),s=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)}))})(s,()=>a(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(gu,{...n,linkClassName:Ne("body3 flex items-center h-full",o||"text-text"),linkVariant:"unstyled"},`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:s,children:[e.jsxs(gu,{onClick:()=>a(e=>!e),"aria-expanded":i,buttonClassName:Ne("group body3 flex items-center h-full",o||"text-text"),showButtonAs:"unstyled",children:[e.jsx(Kn,{as:"span",className:"group-hover:underline",children:null!=u?u:null}),e.jsx($n,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ne("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",i&&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"))&&a(!1)},children:p.map((t,n)=>e.jsx("li",{className:"submenu-link type1",children:e.jsx(gu,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},Ju=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(gu,{...t,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:o,title:i,items:a}=t,s=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(gu,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center w-full h-11 px-4",showButtonAs:"unstyled",children:[null!=i?i:null,e.jsx($n,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},o),n&&s.length>0&&e.jsx(Uu,{items:s})]})},Uu=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link type2",children:e.jsx(gu,{...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}`),$u=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:a,prefix:s,containerClassName:l,...c}=t,u=e.jsxs(tr,{...c,className:Ne("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"}[o],{primary:"border-[0.727px] border-border text-text"}[r],a),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ne("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"}[o]),children:e.jsx($n,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]});return null==s||!1===s||""===s?u:e.jsxs("span",{className:Ne("flex items-center gap-2",l),children:["string"==typeof s||"number"==typeof s?e.jsx("span",{className:"text-sm font-normal text-text",children:s}):s,u]})};$u.displayName="CallButton";const Ku=t.forwardRef((n,r)=>{const{className:o,size:i,required:a,placeholder:s,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:C,...I}=n,w=y?"error":c,[A,N]=t.useState(!1),[E,j]=t.useState(!1),[S,T]=t.useState(C||"text"),k=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:Ne("inline-block pb-1"),children:e.jsxs(Kn,{as:"span",className:"footnote text-text",children:[l,a?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ne("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]"}[i||"medium"],b,(A||"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($n,{name:d,fill:p?1:0,size:h,className:Ne(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||I.disabled,className:Ne("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:s,type:S,...I,onMouseOver:()=>N(!0),onMouseOut:()=>N(!1),onFocus:e=>{var t;null===(t=I.onFocus)||void 0===t||t.call(I,e),j(!0)},onBlur:e=>{var t;null===(t=I.onBlur)||void 0===t||t.call(I,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:k,children:e.jsx($n,{name:"text"===S?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Kn,{className:Ne("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx($n,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});Ku.displayName="Input";const Qu=t=>{var n;const{primaryNavigationLinks:r,utilityNavigationLinks:o,supportNavigationLinks:i,accountNavigationLinks:a,showCallButton:s,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],o=e=>{var t,o,i,a;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(a=(i=n).focus)||void 0===a||a.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[d]);const m=()=>{p(!1)};return e.jsxs("div",{children:[e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>p(!0),children:e.jsx($n,{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:Ne("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:Ne("flex items-center px-4",!1!==s||!1!==c?"justify-between":"justify-end"),children:[!1!==s||!1!==c?e.jsx("div",{children:e.jsx($u,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:m,children:e.jsx($n,{name:"close"})})})]}),!1!==u?e.jsx(qu,{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||[],...i||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx(Ju,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((n,r)=>e.jsx("li",{children:e.jsx(gu,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ne("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}`))})]})]})})]})},qu=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:o,searchBarIconURL:i}=t,[a,s]=l.default.useState(""),c=l.default.useRef(null),u=e=>{n(),e.preventDefault(),r(a)};return l.default.useEffect(()=>{o||s("")},[o]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Iu,{src:i,width:32,height:32,className:"ml-2",alt:"Search icon",role:"button",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(Ku,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},ed=t=>{const{searchBarIconURL:n,onSearch:r}=t,[o,i]=l.default.useState(""),a=l.default.useRef(null),s=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:s,children:[e.jsx(Iu,{src:n,width:32,height:32,alt:"Search icon",role:"button",onClick:s}),e.jsx(Ku,{ref:a,type:"text",name:"search",placeholder:"Search...",value:o,onChange:e=>i(e.target.value),className:"body3 rounded-full px-3 text-text",containerClassName:"px-0 h-full border-none rounded-full",autoComplete:"off"})]})},td={closed:{opacity:0},open:{opacity:1}},nd={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},rd={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function od(){return od=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},od.apply(null,arguments)}function id(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 ad(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function sd(...e){return t.useCallback(ad(...e),e)}function ld(...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 o=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}const cd=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},ud=l["useId".toString()]||(()=>{});let dd=0;function pd(e){const[t,n]=l.useState(ud());return cd(()=>{n(e=>null!=e?e:String(dd++))},[e]),e||(t?`radix-${t}`:"")}function md(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 hd({prop:e,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=md(n);return t.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=md(r);return[s,t.useCallback(t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}const fd=t.forwardRef((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(vd);if(a){const e=a.props.children,r=i.map(n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(gd,od({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(gd,od({},o,{ref:n}),r)});fd.displayName="Slot";const gd=t.forwardRef((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...xd(o,r.props),ref:n?ad(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});gd.displayName="SlotClone";const bd=({children:e})=>t.createElement(t.Fragment,null,e);function vd(e){return t.isValidElement(e)&&e.type===bd}function xd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const yd=["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:o,...i}=e,a=o?fd:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(a,od({},i,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const Cd="dismissableLayer.update",Id="dismissableLayer.pointerDownOutside",wd="dismissableLayer.focusOutside";let Ad;const Nd=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ed=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Nd),[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=sd(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,I=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=md(e),o=t.useRef(!1),i=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Sd(Id,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));I&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),A=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=md(e),o=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Sd(wd,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(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=md(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==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ad=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),jd(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ad)}},[p,h,o,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),jd())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(Cd,e),()=>document.removeEventListener(Cd,e)},[]),t.createElement(yd.div,od({},u,{ref:g,style:{pointerEvents:C?I?"auto":"none":void 0,...e.style},onFocusCapture:id(e.onFocusCapture,A.onFocusCapture),onBlurCapture:id(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:id(e.onPointerDownCapture,w.onPointerDownCapture)}))});function jd(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function Sd(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}(i,a):i.dispatchEvent(a)}const Td="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",Bd={bubbles:!1,cancelable:!0},Pd=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=t.useState(null),u=md(i),d=md(a),p=t.useRef(null),m=sd(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(o){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Od(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Od(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Od(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()}}},[o,l,h.paused]),t.useEffect(()=>{if(l){Dd.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Td,Bd);l.addEventListener(Td,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Od(r,{select:t}),document.activeElement!==n)return}((e=Rd(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Od(l))}return()=>{l.removeEventListener(Td,u),setTimeout(()=>{const e=new CustomEvent(kd,Bd);l.addEventListener(kd,d),l.dispatchEvent(e),e.defaultPrevented||Od(null!=t?t:document.body,{select:!0}),l.removeEventListener(kd,d),Dd.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!o)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,[o,i]=function(e){const t=Rd(e),n=Ld(t,e),r=Ld(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Od(i,{select:!0})):(e.preventDefault(),r&&Od(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.createElement(yd.div,od({tabIndex:-1},s,{ref:m,onKeyDown:f}))});function Rd(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 Ld(e,t){for(const n of e)if(!Gd(n,{upTo:t}))return n}function Gd(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 Od(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 Dd=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Md(e,t),e.unshift(t)},remove(t){var n;e=Md(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Md(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Vd=t.forwardRef((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return o?d.default.createPortal(t.createElement(yd.div,od({},i,{ref:n})),o):null});const Hd=e=>{const{present:n,children:r}=e,i=function(e){const[n,r]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=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=Wd(i.current);s.current="mounted"===c?e:"none"},[c]),cd(()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=Wd(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}},[e,u]),cd(()=>{if(n){const e=e=>{const t=Wd(i.current).includes(e.animationName);e.target===n&&t&&o.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(s.current=Wd(i.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&&(i.current=getComputedStyle(e)),r(e)},[])}}(n),a="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),s=sd(i.ref,a.ref);return"function"==typeof r||i.isPresent?t.cloneElement(a,{ref:s}):null};function Wd(e){return(null==e?void 0:e.animationName)||"none"}Hd.displayName="Presence";let Fd=0;function Xd(){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 zd=function(){return zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zd.apply(this,arguments)};function Zd(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Yd="right-scroll-bar-position",_d="width-before-scroll-bar";function Jd(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ud="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,$d=new WeakMap;function Kd(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach(function(e){return Jd(e,t)})},(i=t.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Ud(function(){var t=$d.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||Jd(e,null)}),r.forEach(function(e){n.has(e)||Jd(e,o)})}$d.set(a,e)},[e]),a}function Qd(e){return e}var qd=function(e){var t=e.sideCar,n=Zd(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,zd({},n))};qd.isSideCarExport=!0;var ep=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Qd);var n=[],r=!1,o={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 o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},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 o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=zd({async:!0,ssr:!1},e),t}(),tp=function(){},np=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:tp,onWheelCapture:tp,onTouchMoveCapture:tp}),o=r[0],i=r[1],a=e.forwardProps,s=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=Zd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,C=Kd([n,t]),I=zd(zd({},x),o);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:ep,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?l.cloneElement(l.Children.only(s),zd(zd({},I),{ref:C})):l.createElement(v,zd({},I,{className:c,ref:C}),s))});np.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},np.classNames={fullWidth:_d,zeroRight:Yd};function rp(){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 op=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=rp())&&(!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)}}},ip=function(){var e,t=(e=op(),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}},ap={left:0,top:0,right:0,gap:0},sp=function(e){return parseInt(e||"",10)||0},lp=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ap;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[sp(n),sp(r),sp(o)]}(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])}},cp=ip(),up="data-scroll-locked",dp=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(up,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(_d," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Yd," .").concat(Yd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(_d," .").concat(_d," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(up,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},pp=function(){var e=parseInt(document.body.getAttribute(up)||"0",10);return isFinite(e)?e:0},mp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(up,(pp()+1).toString()),function(){var e=pp()-1;e<=0?document.body.removeAttribute(up):document.body.setAttribute(up,e.toString())}},[]);var i=l.useMemo(function(){return lp(o)},[o]);return l.createElement(cp,{styles:dp(i,!t,o,n?"":"!important")})},hp=!1;if("undefined"!=typeof window)try{var fp=Object.defineProperty({},"passive",{get:function(){return hp=!0,!0}});window.addEventListener("test",fp,fp),window.removeEventListener("test",fp,fp)}catch(e){hp=!1}var gp=!!hp&&{passive:!1},bp=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])},vp=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),xp(e,n)){var r=yp(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},xp=function(e,t){return"v"===e?function(e){return bp(e,"overflowY")}(t):function(e){return bp(e,"overflowX")}(t)},yp=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)},Cp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ip=function(e){return[e.deltaX,e.deltaY]},wp=function(e){return e&&"current"in e?e.current:e},Ap=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Np=0,Ep=[];var jp,Sp=(jp=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Np++)[0],i=l.useState(function(){return ip()})[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(wp),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Cp(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[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=vp(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=vp(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,c=i>0,u=0,d=0;do{var p=yp(e,a),m=p[0],h=p[1]-p[2]-o*m;(m||h)&&xp(e,a)&&(u+=h,d+=m),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));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(Ep.length&&Ep[Ep.length-1]===i){var r="deltaY"in n?Ip(n):Cp(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(wp).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=Cp(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,Ip(t),t.target,s(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,Cp(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return Ep.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,gp),document.addEventListener("touchmove",c,gp),document.addEventListener("touchstart",d,gp),function(){Ep=Ep.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,gp),document.removeEventListener("touchmove",c,gp),document.removeEventListener("touchstart",d,gp)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(i,{styles:Ap(o)}):null,h?l.createElement(mp,{gapMode:"margin"}):null)},ep.useMedium(jp),qd),Tp=l.forwardRef(function(e,t){return l.createElement(np,zd({},e,{ref:t,sideCar:Sp}))});Tp.classNames=np.classNames;var kp=new WeakMap,Bp=new WeakMap,Pp={},Rp=0,Lp=function(e){return e&&(e.host||Lp(e.parentNode))},Gp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lp(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]);Pp[n]||(Pp[n]=new WeakMap);var i=Pp[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(kp.get(e)||0)+1,c=(i.get(e)||0)+1;kp.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Bp.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),Rp++,function(){a.forEach(function(e){var t=kp.get(e)-1,o=i.get(e)-1;kp.set(e,t),i.set(e,o),t||(Bp.has(e)||e.removeAttribute(r),Bp.delete(e)),o||e.removeAttribute(n)}),--Rp||(kp=new WeakMap,kp=new WeakMap,Bp=new WeakMap,Pp={})}},Op=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gp(r,o,n,"aria-hidden")):function(){return null}};const Dp="Dialog",[Mp,Vp]=function(e,n=[]){let r=[];const o=()=>{const n=r.map(e=>t.createContext(e));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,c=t.useMemo(()=>s,Object.values(s));return t.createElement(l.Provider,{value:c},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ld(o,...n)]}(Dp),[Hp,Wp]=Mp(Dp),Fp="DialogPortal",[Xp,zp]=Mp(Fp,{forceMount:void 0}),Zp="DialogOverlay",Yp=t.forwardRef((e,n)=>{const r=zp(Zp,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Wp(Zp,e.__scopeDialog);return a.modal?t.createElement(Hd,{present:o||a.open},t.createElement(_p,od({},i,{ref:n}))):null}),_p=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Wp(Zp,r);return t.createElement(Tp,{as:fd,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(yd.div,od({"data-state":nm(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))}),Jp="DialogContent",Up=t.forwardRef((e,n)=>{const r=zp(Jp,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Wp(Jp,e.__scopeDialog);return t.createElement(Hd,{present:o||a.open},a.modal?t.createElement($p,od({},i,{ref:n})):t.createElement(Kp,od({},i,{ref:n})))}),$p=t.forwardRef((e,n)=>{const r=Wp(Jp,e.__scopeDialog),o=t.useRef(null),i=sd(n,r.contentRef,o);return t.useEffect(()=>{const e=o.current;if(e)return Op(e)},[]),t.createElement(Qp,od({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:id(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:id(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:id(e.onFocusOutside,e=>e.preventDefault())}))}),Kp=t.forwardRef((e,n)=>{const r=Wp(Jp,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(Qp,od({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),Qp=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=Wp(Jp,r),c=sd(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:Xd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Xd()),Fd++,()=>{1===Fd&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Fd--}},[]),t.createElement(t.Fragment,null,t.createElement(Pd,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(Ed,od({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":nm(l.open)},s,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),qp="DialogTitle",em="DialogClose",tm=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Wp(em,r);return t.createElement(yd.button,od({type:"button"},o,{ref:n,onClick:id(e.onClick,()=>i.onOpenChange(!1))}))});function nm(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return t.createElement(r.Provider,{value:i},n)}o.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Jp,titleName:qp,docsSlug:"dialog"});const rm=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=hd({prop:o,defaultProp:i,onChange:a});return t.createElement(Hp,{scope:n,triggerRef:l,contentRef:c,contentId:pd(),titleId:pd(),descriptionId:pd(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:s},r)},om=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=Wp(Fp,n);return t.createElement(Xp,{scope:n,forceMount:r},t.Children.map(o,e=>t.createElement(Hd,{present:r||a.open},t.createElement(Vd,{asChild:!0,container:i},e))))},im=Yp,am=Up,sm=tm,lm=t=>{const{isOpen:n,onRequestClose:r,size:o,title:i,content:a,description:s,children:l,bodyClassName:c,type:u="modal",index:d=0}=t;return e.jsx(rm,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(om,{children:[e.jsx(ru.div,{initial:"closed",animate:n?"open":"closed",variants:td,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(im,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(ru.div,{initial:"closed",animate:n?"open":"closed",variants:nd,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(am,{onOpenAutoFocus:e=>e.preventDefault(),className:Ne("relative mx-auto w-full rounded-modal bg-bg p-[25px] shadow-drop focus:outline-none",c),style:{maxWidth:rd[o||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(sm,{asChild:!0,children:e.jsx(gu,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e.jsx($n,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[i?e.jsx(Kn,{className:Ne("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:i}):null,s?e.jsx(Kn,{as:"div",className:"mb-8 sm:mb-5",children:s}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",children:[a,l||null]})]})]})})})})]})})},cm=e=>`?page=${e}`,um=({currentPage:t,totalPages:n,onPageChange:r,getPageHref:o=cm,ariaLabel:i="Pagination"})=>{const a=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",l="opacity-40 pointer-events-none";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":i,children:[e.jsx(tr,{href:1===t?"#":o(t-1),className:`${s} ${1===t?l:""}`,"aria-label":"Go to previous page","aria-disabled":1===t,tabIndex:1===t?-1:void 0,onClick:e=>{1!==t?null==r||r(t-1):e.preventDefault()},children:e.jsx($n,{name:"chevron_left",size:32,"aria-hidden":"true"})}),a.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(tr,{href:o(n),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":""),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,onClick:()=>null==r?void 0:r(n),children:n},n)),e.jsx(tr,{href:t===n?"#":o(t+1),className:`${s} ${t===n?l:""}`,"aria-label":"Go to next page","aria-disabled":t===n,tabIndex:t===n?-1:void 0,onClick:e=>{t!==n?null==r||r(t+1):e.preventDefault()},children:e.jsx($n,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function dm(e){return dm="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},dm(e)}function pm(e){var t=function(e,t){if("object"!=dm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dm(t)?t:t+""}function mm(e,t,n){return(t=pm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hm(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 fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(n),!0).forEach(function(t){mm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gm(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 bm(e,t){if(e){if("string"==typeof e)return gm(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)?gm(e,t):void 0}}function vm(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||bm(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 xm(e,t){if(null==e)return{};var n,r,o=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 i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ym=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Cm(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,pm(r.key),r)}}function Im(e,t){return Im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Im(e,t)}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wm(e)}function Am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Am=function(){return!!e})()}function Nm(e,t){if(t&&("object"==dm(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 Em(e){return function(e){if(Array.isArray(e))return gm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bm(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 jm=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}(),Sm="-ms-",Tm="-moz-",km="-webkit-",Bm="comm",Pm="rule",Rm="decl",Lm="@keyframes",Gm=Math.abs,Om=String.fromCharCode,Dm=Object.assign;function Mm(e){return e.trim()}function Vm(e,t,n){return e.replace(t,n)}function Hm(e,t){return e.indexOf(t)}function Wm(e,t){return 0|e.charCodeAt(t)}function Fm(e,t,n){return e.slice(t,n)}function Xm(e){return e.length}function zm(e){return e.length}function Zm(e,t){return t.push(e),e}var Ym=1,_m=1,Jm=0,Um=0,$m=0,Km="";function Qm(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ym,column:_m,length:a,return:""}}function qm(e,t){return Dm(Qm("",null,null,"",null,null,0),e,{length:-e.length},t)}function eh(){return $m=Um>0?Wm(Km,--Um):0,_m--,10===$m&&(_m=1,Ym--),$m}function th(){return $m=Um<Jm?Wm(Km,Um++):0,_m++,10===$m&&(_m=1,Ym++),$m}function nh(){return Wm(Km,Um)}function rh(){return Um}function oh(e,t){return Fm(Km,e,t)}function ih(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 ah(e){return Ym=_m=1,Jm=Xm(Km=e),Um=0,[]}function sh(e){return Km="",e}function lh(e){return Mm(oh(Um-1,dh(91===e?e+2:40===e?e+1:e)))}function ch(e){for(;($m=nh())&&$m<33;)th();return ih(e)>2||ih($m)>3?"":" "}function uh(e,t){for(;--t&&th()&&!($m<48||$m>102||$m>57&&$m<65||$m>70&&$m<97););return oh(e,rh()+(t<6&&32==nh()&&32==th()))}function dh(e){for(;th();)switch($m){case e:return Um;case 34:case 39:34!==e&&39!==e&&dh($m);break;case 40:41===e&&dh(e);break;case 92:th()}return Um}function ph(e,t){for(;th()&&e+$m!==57&&(e+$m!==84||47!==nh()););return"/*"+oh(t,Um-1)+"*"+Om(47===e?e:th())}function mh(e){for(;!ih(nh());)th();return oh(e,Um)}function hh(e){return sh(fh("",null,null,null,[""],e=ah(e),0,[0],e))}function fh(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=o,C=i,I=r,w=x;g;)switch(h=v,v=th()){case 40:if(108!=h&&58==Wm(w,d-1)){-1!=Hm(w+=Vm(lh(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=lh(v);break;case 9:case 10:case 13:case 32:w+=ch(h);break;case 92:w+=uh(rh()-1,7);continue;case 47:switch(nh()){case 42:case 47:Zm(bh(ph(th(),rh()),t,n),l);break;default:w+="/"}break;case 123*f:s[c++]=Xm(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Vm(w,/\f/g,"")),m>0&&Xm(w)-d&&Zm(m>32?vh(w+";",r,n,d-1):vh(Vm(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Zm(I=gh(w,t,n,c,u,o,s,x,y=[],C=[],d),i),123===v)if(0===u)fh(w,t,I,I,y,i,d,s,C);else switch(99===p&&110===Wm(w,3)?100:p){case 100:case 108:case 109:case 115:fh(e,I,I,r&&Zm(gh(e,I,I,0,0,o,s,x,o,y=[],d),C),o,C,d,s,r?y:C);break;default:fh(w,I,I,I,[""],C,0,s,C)}}c=u=m=0,f=b=1,x=w="",d=a;break;case 58:d=1+Xm(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==eh())continue;switch(w+=Om(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Xm(w)-1)*b,b=1;break;case 64:45===nh()&&(w+=lh(th())),p=nh(),u=d=Xm(x=w+=mh(rh())),v++;break;case 45:45===h&&2==Xm(w)&&(f=0)}}return i}function gh(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],m=zm(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=Fm(e,d+1,d=Gm(f=a[h])),x=e;b<m;++b)(x=Mm(f>0?p[b]+" "+v:Vm(v,/&\f/g,p[b])))&&(l[g++]=x);return Qm(e,t,n,0===o?Pm:s,l,c,u)}function bh(e,t,n){return Qm(e,t,n,Bm,Om($m),Fm(e,2,-2),0)}function vh(e,t,n,r){return Qm(e,t,n,Rm,Fm(e,0,r),Fm(e,r+1,-1),r)}function xh(e,t){for(var n="",r=zm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Rm:return e.return=e.return||e.value;case Bm:return"";case Lm:return e.return=e.value+"{"+xh(e.children,r)+"}";case Pm:e.value=e.props.join(",")}return Xm(n=xh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ch(e){var t=zm(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Ih="undefined"!=typeof document,wh=function(e,t,n){for(var r=0,o=0;r=o,o=nh(),38===r&&12===o&&(t[n]=1),!ih(o);)th();return oh(e,Um)},Ah=function(e,t){return sh(function(e,t){var n=-1,r=44;do{switch(ih(r)){case 0:38===r&&12===nh()&&(t[n]=1),e[n]+=wh(Um-1,t,n);break;case 2:e[n]+=lh(r);break;case 4:if(44===r){e[++n]=58===nh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Om(r)}}while(r=th());return e}(ah(e),t))},Nh=new WeakMap,Eh=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)||Nh.get(n))&&!r){Nh.set(e,!0);for(var o=[],i=Ah(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},jh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sh(e,t){switch(function(e,t){return 45^Wm(e,0)?(((t<<2^Wm(e,0))<<2^Wm(e,1))<<2^Wm(e,2))<<2^Wm(e,3):0}(e,t)){case 5103:return km+"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 km+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return km+e+Tm+e+Sm+e+e;case 6828:case 4268:return km+e+Sm+e+e;case 6165:return km+e+Sm+"flex-"+e+e;case 5187:return km+e+Vm(e,/(\w+).+(:[^]+)/,km+"box-$1$2"+Sm+"flex-$1$2")+e;case 5443:return km+e+Sm+"flex-item-"+Vm(e,/flex-|-self/,"")+e;case 4675:return km+e+Sm+"flex-line-pack"+Vm(e,/align-content|flex-|-self/,"")+e;case 5548:return km+e+Sm+Vm(e,"shrink","negative")+e;case 5292:return km+e+Sm+Vm(e,"basis","preferred-size")+e;case 6060:return km+"box-"+Vm(e,"-grow","")+km+e+Sm+Vm(e,"grow","positive")+e;case 4554:return km+Vm(e,/([^-])(transform)/g,"$1"+km+"$2")+e;case 6187:return Vm(Vm(Vm(e,/(zoom-|grab)/,km+"$1"),/(image-set)/,km+"$1"),e,"")+e;case 5495:case 3959:return Vm(e,/(image-set\([^]*)/,km+"$1$`$1");case 4968:return Vm(Vm(e,/(.+:)(flex-)?(.*)/,km+"box-pack:$3"+Sm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+km+e+e;case 4095:case 3583:case 4068:case 2532:return Vm(e,/(.+)-inline(.+)/,km+"$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(Xm(e)-1-t>6)switch(Wm(e,t+1)){case 109:if(45!==Wm(e,t+4))break;case 102:return Vm(e,/(.+:)(.+)-([^]+)/,"$1"+km+"$2-$3$1"+Tm+(108==Wm(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hm(e,"stretch")?Sh(Vm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wm(e,t+1))break;case 6444:switch(Wm(e,Xm(e)-3-(~Hm(e,"!important")&&10))){case 107:return Vm(e,":",":"+km)+e;case 101:return Vm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+km+(45===Wm(e,14)?"inline-":"")+"box$3$1"+km+"$2$3$1"+Sm+"$2box$3")+e}break;case 5936:switch(Wm(e,t+11)){case 114:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return km+e+Sm+Vm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return km+e+Sm+e+e}return e}var Th,kh,Bh,Ph=Ih?void 0:(Th=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},kh=new WeakMap,function(e){if(kh.has(e))return kh.get(e);var t=Th(e);return kh.set(e,t),t}),Rh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Rm:e.return=Sh(e.value,e.length);break;case Lm:return xh([qm(e,{value:Vm(e.value,"@","@"+km)})],r);case Pm: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 xh([qm(e,{props:[Vm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return xh([qm(e,{props:[Vm(t,/:(plac\w+)/,":"+km+"input-$1")]}),qm(e,{props:[Vm(t,/:(plac\w+)/,":-moz-$1")]}),qm(e,{props:[Vm(t,/:(plac\w+)/,Sm+"input-$1")]})],r)}return""})}}],Lh=function(e){var t=e.key;if(Ih&&"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,o,i=e.stylisPlugins||Rh,a={},s=[];Ih&&(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++)a[t[n]]=!0;s.push(e)}));var l,c=[Eh,jh];if(Ph){var u=[yh],d=Ch(c.concat(i,u)),p=Ph(i)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=xh(hh(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,f=[yh,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Ch(c.concat(i,f));o=function(e,t,n,r){h=n,xh(hh(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new jm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b},Gh={exports:{}},Oh={};var Dh,Mh,Vh,Hh,Wh={};
6
6
  /** @license React v16.13.1
7
7
  * react-is.development.js
8
8
  *